:root {
  --bg:#1a1610; --panel:rgba(36,24,16,.86); --panel2:rgba(52,36,24,.94); --panel-solid:#2a1d12;
  --akz:#e6bc68; --akz-hell:#ffd98e; --akz2:#b8863a; --linie:rgba(230,190,110,.32);
  --text:#fbf3e4; --text-2:#eadcc2; --text-3:#c9b796; --dim:#cdbb98;
  --gold:#f2c65a; --rot:#ff9a84; --gruen:#a8e08a; --blau:#9cc4f2; --dran:#7ad6a0;
  --ov-a:#3a2818; --ov-b:#160e08; --scrim:rgba(10,6,2,.7);
  --kn-a:#5a3e26; --kn-b:#2a1a0e;
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --grund-q:url(img/kulisse-morgen.webp?v=1); --grund-h:url(img/kulisse-morgen-hoch.webp?v=1); --flaeche:url(img/tisch-morgen.webp?v=1);
  --holz-a:#8d5c34; --holz-b:#4c2d16; --holz-kante:#2e1a0c; --messing-a:#f1d38a; --messing-b:#a8803a; --messing-t:#2a1d0a;
  --glas:rgba(232,242,236,.16); --papier:#efe4c8; --schatten:rgba(0,0,0,.5); --abdunkeln:rgba(16,10,4,.18);
}
:root[data-theme="light"] {
  --bg:#ece6d8; --panel:rgba(250,246,236,.9); --panel2:rgba(242,236,222,.96); --panel-solid:#f4eedf;
  --akz:#7a4410; --akz-hell:#5e3006; --akz2:#b8803a; --linie:rgba(90,70,40,.3);
  --text:#1e1a12; --text-2:#3a3020; --text-3:#5a4a32; --dim:#5a4a32;
  --gold:#7a4400; --rot:#b4232f; --gruen:#24683a; --blau:#1a5fb4; --dran:#0f7a62;
  --ov-a:#f7f2e6; --ov-b:#e6dcc6; --scrim:rgba(40,34,24,.42);
  --kn-a:#f7f2e6; --kn-b:#ddd2b8;
  --grund-q:url(img/kulisse-palmenhaus.webp?v=1); --grund-h:url(img/kulisse-palmenhaus-hoch.webp?v=1); --flaeche:url(img/tisch-palmenhaus.webp?v=1);
  --holz-a:#d9c09a; --holz-b:#a8885e; --holz-kante:#7a5e3a; --messing-a:#f6e2ae; --messing-b:#c49a4e; --messing-t:#2a1d0a;
  --glas:rgba(255,255,255,.3); --schatten:rgba(70,50,20,.32); --abdunkeln:rgba(255,250,236,.06);
}
html[data-design="abend"]:not([data-theme="light"]) {
  --bg:#0e0c10; --panel:rgba(24,18,22,.88); --panel2:rgba(40,30,32,.95); --panel-solid:#221a1c;
  --linie:rgba(255,200,120,.3); --ov-a:#30242a; --ov-b:#0e0a0c; --kn-a:#4a3436; --kn-b:#1e1416;
  --grund-q:url(img/kulisse-abend.webp?v=1); --grund-h:url(img/kulisse-abend-hoch.webp?v=1); --flaeche:url(img/tisch-abend.webp?v=1);
  --holz-a:#6a3e22; --holz-b:#341c0c; --abdunkeln:rgba(8,4,0,.28);
}
:where(html, html *) { scrollbar-width:thin; scrollbar-color:var(--akz, #ffcf6a) var(--panel2, rgba(8,52,66,.94)); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--panel2, rgba(8,52,66,.94)); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--akz, #ffcf6a); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#08141c; color:var(--text); font-family:var(--sans); overflow:hidden; user-select:none; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
#wrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse at center, #1e3a4c 0%, #08141c 80%); }
:root[data-theme="light"] #wrap { background:radial-gradient(ellipse at center, #f2ead8 0%, #c8b894 85%); }
#stage { position:relative; width:1280px; height:800px; flex:none; transform-origin:center center; overflow:hidden; background:var(--bg); -webkit-touch-callout:none; }
[hidden] { display:none !important; }
button { font-family:var(--sans); cursor:pointer; }
input, select { font-family:var(--sans); font-size:16px; }
.pl-punkt { flex:none; overflow:visible; }

.kb { display:inline-flex; align-items:center; justify-content:center; gap:7px; background:linear-gradient(180deg, var(--kn-a), var(--kn-b)); color:var(--text); border:1px solid var(--linie); border-radius:9px; padding:9px 16px; font-size:16px; font-weight:700; box-shadow:inset 0 1px 0 rgba(255,236,200,.14), 0 2px 8px rgba(0,0,0,.4); }
:root[data-theme="light"] .kb { background:linear-gradient(180deg, var(--kn-a), var(--kn-b)); box-shadow:inset 0 1px 0 #fff8, 0 2px 6px rgba(60,40,20,.2); }
@media (hover: hover) { .kb:hover:not(:disabled) { border-color:var(--akz-hell); } }
.kb:disabled { opacity:.45; cursor:default; }
.kb-gold { background:linear-gradient(#ffe39a, #e0a52a) !important; color:#2b2405 !important; border-color:#fff3c8; box-shadow:0 2px 0 #6a4a06, inset 0 1px 0 #fff6; }
.kb-gruen { background:linear-gradient(#b3e08c, #5f9f3a) !important; border-color:#def3c8; color:#142408 !important; }
.kb.an { outline:2px solid var(--akz-hell); }
.kb-ic { width:38px; height:34px; display:inline-flex; align-items:center; justify-content:center; background:rgba(0,0,0,.28); color:var(--text); border:1px solid var(--linie); border-radius:8px; padding:0; }
:root[data-theme="light"] .kb-ic { background:rgba(255,250,236,.6); }
.kb-ic .sgzi { width:20px; height:20px; }
.kb-ic.an { background:rgba(255,207,106,.3); border-color:var(--akz-hell); }
@media (hover: hover) { .kb-ic:hover { border-color:var(--akz-hell); } }
.kb-klein { padding:5px 12px; font-size:14px; }
.kb-gross { width:100%; padding:11px 18px; font-size:18px; }

#lobby, #tisch { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; background:linear-gradient(180deg, rgba(8,14,10,.25), rgba(6,10,8,.55)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(250,250,236,.3), rgba(226,232,206,.5)); }
.lo-kopf { position:relative; display:flex; align-items:center; gap:18px; padding:12px 24px 10px; border-bottom:1px solid var(--linie); background:var(--panel); }
.lo-logo { font-family:var(--kopf); font-size:30px; font-weight:900; letter-spacing:5px; color:var(--akz-hell); text-shadow:0 2px 0 rgba(0,0,0,.6), 0 0 18px rgba(255,207,106,.22); }
:root[data-theme="light"] .lo-logo { text-shadow:none; }
.lo-raum { font-size:18px; color:var(--text-2); font-style:italic; }
.lo-ich { margin-left:auto; font-size:15px; color:var(--text-2); }
.lo-ich b { color:var(--akz-hell); }
.lo-kopf-r { display:flex; gap:8px; margin-left:14px; }
.lo-label { font-size:12.5px; letter-spacing:2.5px; text-transform:uppercase; color:var(--akz); margin-bottom:6px; font-weight:800; }
.lo-label small { text-transform:none; letter-spacing:0; color:var(--text-3); font-weight:500; font-size:12px; }
#chatwin, #tchatwin, #pchatwin { flex:1; overflow-y:auto; background:rgba(0,0,0,.25); border:1px solid rgba(255,207,106,.2); border-radius:8px; padding:9px 11px; font-size:15px; line-height:1.45; user-select:text; }
:root[data-theme="light"] #chatwin, :root[data-theme="light"] #tchatwin, :root[data-theme="light"] #pchatwin { background:rgba(255,250,236,.55); }
#chatin, #tchatin, #pchatin { margin-top:8px; padding:8px 12px; background:rgba(0,0,0,.3); color:var(--text); border:1px solid var(--linie); border-radius:8px; outline:none; font-size:16px; }
:root[data-theme="light"] #chatin, :root[data-theme="light"] #tchatin, :root[data-theme="light"] #pchatin { background:rgba(255,250,236,.75); }
#chatin:focus, #tchatin:focus, #pchatin:focus { border-color:var(--akz-hell); }
.nm { color:var(--akz-hell); font-weight:bold; }
.sys { color:var(--text-3); font-style:italic; }
.lo-chat { display:flex; flex-direction:column; min-height:0; }
.lo-spieler { display:flex; flex-direction:column; min-height:0; }
.lo-tabs { display:flex; gap:4px; margin-bottom:8px; }
.lo-tabs button { flex:1; background:rgba(0,0,0,.22); color:var(--text-2); border:1px solid var(--linie); border-radius:8px 8px 0 0; padding:8px; font-size:15px; font-weight:700; }
.lo-tabs button.an { background:rgba(255,207,106,.18); color:var(--akz-hell); border-color:var(--akz); }
.lo-tab { flex:1; display:flex; flex-direction:column; min-height:0; }
.lo-liste { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding-right:4px; }
.lo-hinweis { color:var(--text-3); font-style:italic; font-size:14px; margin:8px 0; }
.it { display:flex; align-items:center; gap:8px; padding:6px 10px; background:rgba(0,0,0,.18); border-radius:6px; font-size:15px; }
.it .pkt { width:9px; height:9px; border-radius:50%; background:var(--gruen); }
.it.spielt .pkt { background:var(--gold); }
.it.me { color:var(--akz-hell); }
.tb { display:flex; align-items:center; gap:12px; padding:10px 12px; background:rgba(0,0,0,.18); border:1px solid var(--linie); border-radius:8px; cursor:pointer; }
@media (hover: hover) { .tb:hover { border-color:var(--akz-hell); background:rgba(255,207,106,.08); } }
.tb.voll { opacity:.55; cursor:default; }
.tb.laeuft { border-style:dashed; }
.tb-links { flex:1; min-width:0; }
.tb-kopf { display:flex; justify-content:space-between; font-weight:bold; font-size:16px; gap:8px; }
.tb-kopf .frei { color:var(--gruen); font-size:14px; white-space:nowrap; }
.tb-kopf .frei.aus { color:var(--text-3); }
.tb-sub { color:var(--text-2); font-size:13px; margin-top:3px; }
.tb-plaetze { display:flex; gap:2px; white-space:nowrap; }
.tb-plaetze .sgzi { width:16px; height:16px; }
.tb-plaetze .p-frei { opacity:.35; }
.tb-knopf { flex:none; padding:6px 14px; font-size:14px; }
.tb-route { display:inline-block; margin-left:6px; padding:0 7px; border-radius:7px; font-size:12px; font-weight:800; vertical-align:2px; color:var(--gold); background:rgba(255,216,107,.12); border:1px solid rgba(255,216,107,.6); }
:root[data-theme="light"] .tb-route { background:rgba(122,82,0,.08); border-color:rgba(122,82,0,.5); }
.lo-stat { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.st-k { flex:1 1 90px; background:rgba(0,0,0,.2); border:1px solid rgba(255,207,106,.22); border-radius:8px; padding:6px 8px; text-align:center; }
.st-k b { display:block; font-size:20px; color:var(--akz-hell); }
.st-k small { color:var(--text-3); font-size:12px; }
.ar { padding:8px 10px; background:rgba(0,0,0,.18); border-left:3px solid var(--text-3); border-radius:6px; font-size:14px; }
.ar.sieg { border-left-color:var(--gold); }
.ar.weg { border-left-color:var(--rot); opacity:.75; }
.ar-kopf { display:flex; justify-content:space-between; font-weight:bold; }
.ar-kopf .erg { color:var(--akz-hell); }
.ar-sub { color:var(--text-2); font-size:13px; margin-top:2px; }
.lo-fuss { display:flex; align-items:center; gap:10px; padding:12px 24px 16px; border-top:1px solid var(--linie); background:var(--panel); }
.lo-fuss-r { margin-left:auto; display:flex; gap:8px; }
.ti-mitte { flex:1; display:flex; gap:16px; padding:16px 24px; min-height:0; }
.ti-plaetze { flex:0 0 300px; display:flex; flex-direction:column; gap:7px; overflow:auto; }
.pl { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--panel); border:1px solid var(--linie); border-radius:8px; }
.pl.me { border-color:var(--akz-hell); }
.pl.bereit { box-shadow:inset 3px 0 0 var(--gruen); }
.pl.leer { opacity:.75; }
.pl.ki { opacity:.85; border-style:dashed; }
.pl .nm2 { flex:1; display:flex; flex-direction:column; font-weight:bold; font-size:16px; }
.pl .nm2 small { font-weight:normal; color:var(--text-3); font-size:13px; }
.pl .st { font-size:13px; color:var(--text-2); }
.ti-opts { flex:1; display:flex; flex-direction:column; gap:8px; overflow:auto; padding:12px 16px; border-radius:12px; background:var(--panel); border:1px solid var(--linie); }
.ti-opt { display:flex; flex-direction:column; gap:4px; font-size:15px; }
.ti-opt small { color:var(--text-3); font-size:12px; margin-left:6px; }
.ti-wahl { display:flex; gap:6px; flex-wrap:wrap; }
.ti-wahl button { background:rgba(0,0,0,.22); color:var(--text); border:1px solid var(--linie); border-radius:6px; padding:5px 12px; font-size:15px; }
:root[data-theme="light"] .ti-wahl button, :root[data-theme="light"] .lw-wahl button { background:rgba(255,250,236,.65); }
.ti-wahl button.an { background:rgba(255,207,106,.22); border-color:var(--akz-hell); color:var(--akz-hell); font-weight:700; }
.ti-wahl.aus button { pointer-events:none; opacity:.7; }
.ti-info { color:var(--text-2); font-size:14px; margin:6px 0 0; }
.ti-chat { flex:0 0 280px; padding:10px 12px; border-radius:12px; background:var(--panel); border:1px solid var(--linie); }
.lo-streifen { display:flex; align-items:center; gap:14px; margin:10px 24px 0; padding:9px 16px; border-radius:12px; background:linear-gradient(90deg, rgba(154,214,111,.2), rgba(255,207,106,.1)); border:1px solid var(--gruen); }
.lo-streifen.warten { background:linear-gradient(90deg, rgba(255,207,106,.2), rgba(134,192,240,.12)); border-color:var(--akz-hell); }
.ls-ico .sgzi { width:24px; height:24px; }
.ls-text { display:flex; flex-direction:column; font-size:15px; } .ls-text small { color:var(--text-2); font-size:13px; }
#ls-knopf { margin-left:auto; }
.lo-haupt { position:relative; flex:1; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; padding:12px 24px 16px; min-height:0; }
.lo-start { display:flex; flex-direction:column; gap:8px; min-height:0; padding:12px 16px; border-radius:14px; border:2px solid var(--akz);
  background:linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow:0 0 0 3px rgba(255,207,106,.1), 0 10px 30px rgba(0,0,0,.45); }
.lo-start .lo-label { margin:0; }
.lo-seg { display:flex; border:1px solid var(--akz); border-radius:10px; overflow:hidden; flex:none; }
.lo-seg button { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 6px; font-size:15px; font-weight:800; color:var(--text-2); background:rgba(0,0,0,.18); border:0; }
.lo-seg button + button { border-left:1px solid var(--linie); }
.lo-seg button.an { color:#2b2405; background:linear-gradient(#ffe39a, #e0a52a); }
.seg-ic .sgzi { width:19px; height:19px; vertical-align:-4px; }
.lo-optionen { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow:row dense; align-content:start; column-gap:14px; row-gap:7px; }
.lo-optionen > .lw-paar { display:contents; }
.lo-optionen > :not(.lw-zeile, .lw-paar), .lo-optionen > .lw-zeile:is(.lw-breit, :has(.lw-name, .lw-ausgabe, .lw-wahl > :nth-child(6))), .lo-optionen > .lw-paar > .lw-zeile:is(.lw-breit, :has(.lw-wahl > :nth-child(6))) { grid-column:1 / -1; }
.lw-zeile { display:flex; flex-direction:column; gap:4px; }
.lw-titel { font-size:13px; color:var(--text-2); } .lw-titel b { color:var(--text); font-size:14px; }
.lw-wahl { display:flex; gap:5px; flex-wrap:wrap; }
.lw-wahl button { padding:5px 9px; border-radius:7px; font-size:14px; color:var(--text); background:rgba(0,0,0,.22); border:1px solid var(--linie); }
@media (hover: hover) { .lw-wahl button:hover { border-color:var(--akz-hell); } }
.lw-wahl button.an { background:rgba(255,207,106,.24); border-color:var(--akz-hell); color:var(--akz-hell); font-weight:800; }
.lw-ausgabe { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.lw-ausgabe button { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:7px 10px 8px; border-radius:9px; text-align:left; color:var(--text-2);
  background:linear-gradient(160deg, rgba(232,184,96,.28), rgba(16,8,24,.6)); border:1px solid var(--linie); font-size:12px; line-height:1.3; }
:root[data-theme="light"] .lw-ausgabe button { background:linear-gradient(160deg, rgba(232,184,96,.22), rgba(255,250,236,.6)); }
.lw-ausgabe button b { font-size:15px; color:var(--text); font-family:var(--kopf); }
.lw-ausgabe button.an { border-color:var(--akz-hell); box-shadow:0 0 0 2px rgba(255,207,106,.35); color:var(--text); }
.lw-name { display:flex; gap:6px; }
.lw-name input { flex:1; min-width:0; padding:6px 12px; background:rgba(0,0,0,.3); color:var(--text); border:1px solid var(--akz); border-radius:8px; outline:none; font-size:16px; }
:root[data-theme="light"] .lw-name input { background:rgba(255,250,236,.8); }
.lw-wuerfel { width:40px; flex:none; padding:0; }
.lw-info { display:inline-flex; width:18px; height:18px; margin-left:5px; border-radius:50%; align-items:center; justify-content:center; font:800 12px/1 var(--sans); color:#2b2405;
  background:var(--akz-hell); border:0; vertical-align:1px; cursor:pointer; padding:0; }
:root[data-theme="light"] .lw-info { color:#fff8e6; }
.lw-box { font-size:12.5px; color:var(--text-2); line-height:1.45; background:rgba(255,207,106,.08); border:1px solid rgba(255,207,106,.26); border-radius:8px; padding:7px 10px; }
.nw { white-space:nowrap; }
.lo-los { flex:none; display:flex; flex-direction:column; gap:5px; }
.lw-anleitung { padding:8px 10px; border-radius:10px; background:linear-gradient(180deg, rgba(232,184,96,.16), rgba(16,8,24,.3)); border:1px solid rgba(255,207,106,.25); }
:root[data-theme="light"] .lw-anleitung { background:rgba(232,184,96,.14); }
.lw-an-titel { font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--akz-hell); margin-bottom:5px; font-weight:800; }
.lw-schritt { display:grid; grid-template-columns:20px minmax(0, 1fr); align-items:center; gap:8px; padding:3px 0; font-size:12.5px; line-height:1.35; color:var(--text-2); }
.lw-schritt > b { width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; color:#2b2405; background:var(--akz-hell); }
:root[data-theme="light"] .lw-schritt > b { color:#fff8e6; }
.lw-schritt span b { color:var(--text); }
.lo-los-hin { font-size:12.5px; color:var(--text-3); text-align:center; }
.lo-rechts { display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) 200px; gap:14px; min-height:0; }
.lo-rechts .lo-spieler, .lo-rechts .lo-chat { min-height:0; padding:10px 12px; border-radius:12px; border:1px solid var(--linie); background:linear-gradient(180deg, var(--panel2), var(--panel)); }

.banner { position:absolute; left:calc((100% - 328px) / 2); top:40%; z-index:75; min-width:420px; max-width:760px; padding:16px 34px 14px; text-align:center; border-radius:14px; pointer-events:none;
  transform:translate(-50%, -50%) scale(.6); opacity:0; transition:transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .35s;
  background:linear-gradient(180deg, var(--ov-a), var(--ov-b)); border:2px solid var(--akz); box-shadow:0 18px 50px rgba(0,0,0,.6); }
.banner.an { transform:translate(-50%, -50%) scale(1); opacity:1; }
.bn-titel { font-family:var(--kopf); font-weight:900; font-size:42px; letter-spacing:4px; color:var(--akz-hell); text-shadow:0 3px 0 rgba(0,0,0,.6); }
:root[data-theme="light"] .bn-titel { text-shadow:none; }
.bn-unter { margin-top:6px; font-size:15px; font-weight:800; letter-spacing:1.5px; color:var(--text); text-transform:uppercase; }
.banner.gold { background:linear-gradient(180deg, #fbe7a6, #c99a2e); border-color:#fff3cf; }
.banner.gold .bn-titel { color:#2a1d04; text-shadow:none; } .banner.gold .bn-unter { color:#3a2a08; }
.banner.klein { top:22%; min-width:0; padding:10px 24px 9px; }
.banner.klein .bn-titel { font-size:26px; letter-spacing:2px; }

.overlay { position:absolute; inset:0; background:var(--scrim); display:flex; align-items:center; justify-content:center; z-index:80; }
.ov-box { max-width:640px; max-height:92%; overflow:auto; background:linear-gradient(180deg, var(--ov-a), var(--ov-b)); border:2px solid var(--akz); border-radius:12px; padding:20px 26px; box-shadow:0 14px 40px rgba(0,0,0,.6); }
.ov-box.ov-breit { max-width:960px; width:92%; }
.ov-titel { font-family:var(--kopf); font-size:26px; font-weight:900; color:var(--akz-hell); text-align:center; margin-bottom:8px; letter-spacing:2px; }
.ov-knoepfe { display:flex; gap:10px; justify-content:center; margin-top:16px; flex-wrap:wrap; }
#pop-text { font-size:16px; line-height:1.5; color:var(--text); white-space:pre-line; }
.en-unter { text-align:center; color:var(--text-2); font-size:15px; margin-bottom:12px; }
.en-liste { display:flex; flex-direction:column; gap:7px; }
:root[data-theme="light"] .en-platz { background:rgba(255,250,236,.55); }
.en-platz.kopf { background:transparent; border-color:transparent; padding-top:0; padding-bottom:0; font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--dim); font-weight:800; }
.en-platz.p1 { border-color:var(--gold); background:rgba(255,216,107,.12); }
.en-platz.ich { outline:1px solid var(--akz-hell); }
.en-platz .pz { font-family:var(--kopf); font-size:22px; font-weight:900; text-align:center; color:var(--text-2); }
.medaille { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; font:900 17px/1 var(--kopf); color:#2b2405;
  box-shadow:inset 0 2px 0 #fff8, inset 0 -3px 0 #0003, 0 2px 4px #0006; border:1px solid #0006; }
.medaille.m1 { background:radial-gradient(circle at 35% 30%, #fff3b0, #f2c531 55%, #9a7414); }
.medaille.m2 { background:radial-gradient(circle at 35% 30%, #ffffff, #c9d1d6 55%, #6f7c84); }
.medaille.m3 { background:radial-gradient(circle at 35% 30%, #ffd9b0, #d08a4a 55%, #7a4416); }
.en-platz .pl-punkt { width:28px; height:28px; }
.en-platz .nmx { font-weight:bold; line-height:1.15; min-width:0; overflow-wrap:anywhere; } .en-platz .nmx small { display:block; font-weight:500; font-size:12.5px; color:var(--dim); }
.en-platz .w { text-align:right; font-variant-numeric:tabular-nums; }
.en-platz .w b { font-family:var(--kopf); font-size:18px; color:var(--text); }
.en-platz .bl b { color:var(--gold); }
.en-platz .w small { display:block; font-size:12px; color:var(--dim); }
.en-einladung { margin:10px 0 0; padding:8px 12px; border-radius:10px; text-align:center; font-size:15px; background:rgba(111,214,190,.14); border:1px solid var(--gruen); color:var(--text); }
.hilfe-text { font-size:15px; line-height:1.55; color:var(--text); max-height:600px; overflow:auto; user-select:text; }
.hilfe-text h1, .hilfe-text h2, .hilfe-text h3 { font-family:var(--kopf); color:var(--akz-hell); margin:14px 0 6px; }
.hilfe-text h1 { margin-top:0; }
.hilfe-text table { border-collapse:collapse; font-size:14px; } .hilfe-text td, .hilfe-text th { border-bottom:1px solid var(--linie); padding:3px 8px; text-align:left; }
#note { position:absolute; left:50%; top:10px; transform:translateX(-50%); background:rgba(150,40,20,.95); color:#fff; padding:8px 16px; border-radius:8px; z-index:99; }


#stage.hoch .lo-haupt { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); }
#stage.hoch .lo-rechts { grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) 200px; }
#stage.hoch .lo-streifen { margin:10px 16px 0; }
#stage.hoch .lo-raum { display:none; }
#stage.hoch .ti-mitte { flex-wrap:wrap; }
#stage.hoch .ti-plaetze { flex:1 1 100%; max-height:300px; }
#stage.hoch .ti-chat { flex:1 1 100%; min-height:220px; }
@media (pointer: coarse) {
  .kb-ic { width:50px; height:44px; }
  .lw-wahl:not(.lw-ausgabe) button, .ti-wahl button { min-height:40px; min-width:40px; padding:8px 13px; font-size:15px; }
  .kb { min-height:42px; }
  .knopf { min-height:42px; }
  .pc-knoepfe button { min-height:40px; }
  button.lw-info { width:40px; height:36px; margin:-9px -11px -9px -6px; border-radius:18px; background:radial-gradient(circle at center, var(--akz-hell) 0 9px, transparent 9.5px); }
}

#partie { position:absolute; inset:0; z-index:2; }
.panel { position:absolute; background:var(--panel); backdrop-filter:blur(5px); border:1px solid var(--linie); border-radius:10px; box-shadow:inset 0 1px 0 rgba(255,236,200,.06), 0 8px 24px rgba(0,0,0,.4); }
:root[data-theme="light"] .panel { box-shadow:inset 0 1px 0 #fff8, 0 6px 18px rgba(60,40,80,.22); }
.pt { font-size:12px; letter-spacing:3px; color:var(--dim); margin:2px 4px 6px; text-transform:uppercase; font-weight:800; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.pt-r { letter-spacing:0; text-transform:none; font-size:12px; color:var(--text-2); font-weight:600; }
#kopf { left:12px; right:12px; top:10px; height:56px; display:flex; align-items:center; gap:14px; padding:0 12px 0 128px; z-index:5; }
.logo { font-family:var(--kopf); font-weight:900; font-size:22px; letter-spacing:3px; color:var(--akz); text-shadow:0 2px 0 rgba(0,0,0,.6); line-height:1; white-space:nowrap; }
:root[data-theme="light"] .logo { text-shadow:none; }
.logo small { display:block; font-family:var(--sans); font-weight:800; font-size:12px; letter-spacing:2px; color:var(--dim); margin-top:3px; }
.trenner { width:1px; align-self:stretch; margin:10px 0; background:var(--linie); }
.runde { font-size:12px; letter-spacing:2px; color:var(--dim); white-space:nowrap; text-transform:uppercase; font-weight:700; }
.runde b { display:block; font-family:var(--kopf); font-size:19px; letter-spacing:0; color:var(--text); }
.k-phase { display:flex; align-items:center; gap:8px; font-size:16px; color:var(--text-2); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.k-phase b { color:var(--text); }
.rechts { margin-left:auto; display:flex; align-items:center; gap:8px; }
.uhr { font-family:var(--kopf); font-weight:700; font-size:20px; color:var(--gold); min-width:52px; text-align:right; }
.uhr.knapp { color:var(--rot); animation:puls .8s infinite alternate; }
@keyframes puls { to { opacity:.55; } }
.sgzi { width:18px; height:18px; flex:none; display:inline-block; vertical-align:-3px; }
.sym { flex:none; display:inline-block; vertical-align:middle; filter:drop-shadow(0 1px 1px rgba(0,0,0,.5)); }




#pchat { flex:1; min-height:120px; padding:8px 10px 10px; display:flex; flex-direction:column; }
#pchatwin { font-size:13.5px; padding:6px 8px; }
#pchatin { margin-top:6px; padding:6px 9px; }
.pc-knoepfe { display:flex; gap:5px; margin-top:5px; }
.pc-knoepfe button { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; font-size:12.5px; padding:4px; color:var(--text); background:var(--panel2); border:1px solid var(--linie); border-radius:6px; }
.pc-knoepfe .sgzi { width:15px; height:15px; }
.ch-tabs { display:flex; gap:4px; margin-bottom:6px; }
.ch-tabs button { flex:1; font-size:12px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--dim); background:transparent; border:1px solid transparent; border-radius:6px; padding:5px; }
.ch-tabs button.an { color:var(--text); background:var(--panel2); border-color:var(--linie); }
#ch-neu { color:var(--rot); }
.ch-liste { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; font-size:13px; line-height:1.4; display:flex; flex-direction:column; gap:3px; user-select:text; }
.ch-z { padding:3px 7px; border-left:3px solid var(--rf, var(--akz)); background:rgba(0,0,0,.18); border-radius:0 5px 5px 0; color:var(--text-2); }
:root[data-theme="light"] .ch-z { background:rgba(255,255,255,.55); }
.ch-z b { color:var(--text); }
.ch-z.gut { color:#c8f3e2; } .ch-z.schlecht { color:#ffcabd; } .ch-z.leise { opacity:.8; }
:root[data-theme="light"] .ch-z.gut { color:#1f6448; } :root[data-theme="light"] .ch-z.schlecht { color:#9c2a1a; }
.ch-z.abschnitt { border-left-color:transparent; background:transparent; color:var(--dim); font-size:12px; letter-spacing:1.5px; text-transform:uppercase; font-weight:800; padding-top:6px; }
.ch-chat { flex:1; display:flex; flex-direction:column; min-height:0; }





.bildnis { display:inline-block; flex:none; border-radius:50%; background-size:cover; background-position:center; border:2px solid var(--sf, var(--akz)); box-shadow:0 2px 4px rgba(0,0,0,.4); background-color:var(--sf, #8a6a4a); }
.stempel { position:absolute; z-index:63; transform:translate(-50%, -50%) rotate(-8deg); padding:4px 14px; border:3px solid #b05a2a; border-radius:8px; color:#8a3a14; background:rgba(255,246,230,.94);
  font:900 22px/1.1 var(--kopf); letter-spacing:1.5px; pointer-events:none; animation:stempel 1.4s ease-out forwards; white-space:nowrap; }
.stempel.gold { border-color:#b08a10; color:#7a5208; }
@keyframes stempel { 0% { opacity:0; transform:translate(-50%, -50%) rotate(-8deg) scale(2); } 18% { opacity:1; transform:translate(-50%, -50%) rotate(-8deg) scale(1); } 80% { opacity:1; } 100% { opacity:0; } }
.konfetti { position:absolute; top:-20px; z-index:90; width:var(--gr); height:calc(var(--gr) * .7); border-radius:2px; pointer-events:none; opacity:.9; animation:fallen linear forwards; }
@keyframes fallen { to { transform:translateY(860px) rotate(540deg); opacity:.2; } }
.en-platz { display:grid; grid-template-columns:48px 40px minmax(0, 1fr) 110px 100px; align-items:center; gap:10px; padding:7px 12px; border-radius:10px; background:rgba(0,0,0,.2); border:1px solid var(--linie); }
.en-stat { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 16px; margin-top:12px; font-size:15px; color:var(--text-2); }
.en-stat b { color:var(--gold); font-family:var(--kopf); }
.en-bilanz { flex-basis:100%; text-align:center; color:var(--text-2); }
#en-zurueck { position:absolute; left:50%; bottom:16px; transform:translateX(-50%); z-index:85; display:flex; gap:10px; padding:8px 12px; border-radius:12px; background:var(--panel-solid); border:1px solid var(--akz); }
#hinweis { position:absolute; left:calc((100% - 328px) / 2); bottom:300px; transform:translateX(-50%); z-index:70; padding:9px 18px; border-radius:9px; background:rgba(120,30,20,.95); border:1px solid #ffb8a3; color:#fff; font-size:15px; font-weight:700; pointer-events:none; max-width:640px; text-align:center; }
#hinweis.neutral { background:var(--panel-solid); border-color:var(--akz-hell); color:var(--text); }
.banner { left:calc((100% - 328px) / 2); }
#ansicht-menu { right:12px; top:72px; padding:10px 12px; z-index:40; width:320px; display:flex; flex-direction:column; gap:6px; background:var(--panel-solid); }
#ansicht-menu label { display:flex; gap:8px; font-size:14px; cursor:pointer; }
#ansicht-menu label small { display:block; font-size:12px; color:var(--dim); }
#ansicht-menu input { width:18px; height:18px; margin-top:1px; accent-color:var(--akz); flex:none; }
#ansicht-menu .am-knoepfe { display:flex; gap:6px; } #ansicht-menu .am-knoepfe .knopf { flex:1; justify-content:center; }
#stage.hoch #ansicht-menu { left:12px; right:12px; width:auto; top:76px; margin:0 auto; } #stage.hoch #ansicht-menu :is(label, .knopf) { font-size:16px; min-height:52px; } #stage.hoch #ansicht-menu label small { font-size:14px; }
#ansicht-menu .am-t { font-size:12px; letter-spacing:2.5px; text-transform:uppercase; color:var(--dim); font-weight:800; margin-top:4px; }
.am-reihe { display:flex; gap:6px; flex-wrap:wrap; }
.knopf { display:inline-flex; align-items:center; gap:6px; font-weight:800; font-size:14px; color:#2b2405; cursor:pointer; padding:6px 12px; border-radius:8px;
  border:1px solid #fff3c8; background:linear-gradient(#ffe39a, #e0a52a); box-shadow:0 2px 0 #6a4a06, inset 0 1px 0 #fff6; white-space:nowrap; }
.knopf.leise { color:var(--text); background:var(--panel2); border-color:var(--linie); box-shadow:none; }
#flug { position:absolute; inset:0; z-index:60; pointer-events:none; }
.flieger { position:absolute; z-index:61; pointer-events:none; }
.blase { position:absolute; z-index:62; transform:translate(-50%, -100%); padding:5px 12px; border-radius:12px; background:#fffaea; color:#2a1d08; font:800 14px var(--sans); white-space:nowrap;
  box-shadow:0 4px 10px rgba(0,0,0,.4); animation:blase 1.6s ease-out forwards; }
.blase::after { content:""; position:absolute; left:50%; bottom:-6px; margin-left:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#fffaea; }
@keyframes blase { 0% { opacity:0; transform:translate(-50%, -80%) scale(.8); } 15% { opacity:1; transform:translate(-50%, -100%) scale(1); } 80% { opacity:1; } 100% { opacity:0; transform:translate(-50%, -120%); } }



#stage.hoch .lw-mobil .lw-wahl button, #stage.hoch .lw-mobil .lo-seg button, #stage.hoch .lw-mobil .kb, #stage.hoch .lw-mobil .lo-tabs button { min-height:52px !important; min-width:52px !important; }
#stage.hoch .lw-mobil .kb-ic { min-width:52px !important; min-height:52px !important; }
#stage.hoch .lw-mobil input:not([type=checkbox]) { min-height:52px !important; }
#stage.hoch .lw-mobil .lo-tabs button { white-space:nowrap; font-size:13px; padding-left:3px; padding-right:3px; }
#stage.hoch .ti-wahl button { min-height:80px; min-width:80px; font-size:18px; }
#stage.hoch .lo-fuss .kb { min-height:80px; font-size:20px; }
#stage.hoch #tchatin { min-height:80px; font-size:18px; }
#stage.hoch :is(.pl .nm2 small, .pl .st, .ti-opt small, .ti-info, #tisch .lo-label, .lo-label small) { font-size:15px; }
#stage.hoch .ti-mitte { overflow-y:auto; overscroll-behavior:contain; align-content:flex-start; }
#stage.hoch .ti-opts { flex:1 1 100%; overflow:visible; }
#stage.hoch .lo-fuss { padding:8px 10px 10px; gap:8px; } #stage.hoch .lo-fuss .kb { white-space:nowrap; font-size:18px; padding:6px 12px; }
@media (pointer: coarse) {
  #stage.hoch #lobby :is(.lw-wahl:not(.lw-ausgabe) button, .lo-seg button, .lo-tabs button, .kb, .kb-ic, .tb-knopf, #chatin, .lw-name input) { min-height:52px; min-width:52px; }
  #stage.hoch #lobby button.lw-info { width:52px; height:52px; margin:-17px -16px -17px -8px; border-radius:26px; }
  #stage.hoch #lobby:not(.lw-mobil) .lo-haupt { grid-template-rows:minmax(0, 1.25fr) minmax(0, 1fr); }
  #stage.hoch #lobby:not(.lw-mobil) .lo-start { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding-bottom:0; }
  #stage.hoch #lobby:not(.lw-mobil) .lo-optionen { flex:none; overflow:visible; }
  #stage.hoch #lobby:not(.lw-mobil) .lo-los { position:sticky; bottom:0; z-index:2; padding:6px 0 10px; background:linear-gradient(180deg, transparent, var(--panel) 10px); }
}
#stage.hoch .lw-mobil .lang { display:none; }
#stage.hoch .lw-mobil .lo-seg .seg-ic { display:none; }

#stage.hoch :is(.sz-nm small, .sz-krone, .sz-ok, .sz-pk small, .sz-chip, .sz-chip em, .sz-uhr) { font-size:15px; }
#stage.quer-handy :is(.sz-nm small, .sz-krone, .sz-ok, .sz-pk small, .sz-chip, .sz-chip em, .sz-uhr, .sz-erkl) { font-size:16px; }
#stage.hoch .sz-knopf { min-height:66px; font-size:18px; } #stage.quer-handy .sz-knopf { min-height:68px; font-size:18px; }
#stage.hoch .wahl { line-height:1.1; padding:2px 5px; } #stage.hoch .wahl small { white-space:normal; line-height:1.1; text-align:center; } #stage.hoch .wahl.haupt .sgzi { display:none; }
#stage.quer-handy .ov-box { padding:12px 18px; max-height:96%; }
#stage.quer-handy .ov-titel { font-size:24px; margin-bottom:4px; }
#stage.quer-handy .ov-knoepfe { margin-top:8px; }
#stage.quer-handy .overlay .kb { min-height:68px; font-size:17px; }
#stage.quer-handy .hilfe-text { font-size:16px; max-height:330px; } #stage.quer-handy .hilfe-text table { font-size:16px; }
#stage.quer-handy #pop-text { font-size:17px; line-height:1.4; }
#stage.quer-handy .en-unter, #stage.quer-handy .en-unter small, #stage.quer-handy .en-einladung, #stage.quer-handy .en-stat { font-size:16px; }
#stage.quer-handy .en-platz.kopf, #stage.quer-handy .en-platz .nmx small, #stage.quer-handy .en-platz .w small { font-size:16px; }
#stage.quer-handy .bn-unter { font-size:17px; }

#stage.quer-handy .lo-kopf { gap:12px; padding:2px 8px 2px 14px; min-height:74px; }
#stage.quer-handy .lo-logo { font-size:26px; letter-spacing:3px; }
#stage.quer-handy #lobby .lo-raum { display:none; }
#stage.quer-handy #tisch .lo-raum { font-size:17px; white-space:normal; min-width:0; }
#stage.quer-handy .lo-ich { font-size:16px; }
#stage.quer-handy .lo-kopf .kb-ic { width:72px; height:68px; } #stage.quer-handy .lo-kopf .kb-ic .sgzi { width:28px; height:28px; }
#stage.quer-handy .lo-kopf .kb, #stage.quer-handy .lo-fuss .kb, #stage.quer-handy #ls-knopf { min-height:68px; font-size:17px; padding:6px 16px; }
#stage.quer-handy .lo-streifen { margin:6px 8px 0; padding:4px 10px; gap:10px; }
#stage.quer-handy .ls-text, #stage.quer-handy .ls-text small { font-size:16px; }
#stage.quer-handy .lo-haupt { grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:8px; padding:6px 8px; }
#stage.quer-handy .lo-start { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:8px 10px 0; gap:6px; }
#stage.quer-handy .lo-optionen { flex:none; overflow:visible; row-gap:6px; column-gap:10px; }
#stage.quer-handy .lo-label, #stage.quer-handy .lo-label small { font-size:16px; letter-spacing:1px; }
#stage.quer-handy .lo-seg button { min-height:68px; font-size:17px; }
#stage.quer-handy .lw-titel, #stage.quer-handy .lw-titel b { font-size:16px; }
#stage.quer-handy .lw-wahl:not(.lw-ausgabe) button { min-height:68px; min-width:68px; padding:4px 12px; font-size:17px; }
#stage.quer-handy .lw-ausgabe button { min-height:68px; font-size:16px; } #stage.quer-handy .lw-ausgabe button b { font-size:17px; }
#stage.quer-handy button.lw-info { width:68px; height:68px; margin:-25px -20px -25px -10px; font-size:16px; border-radius:34px; background:radial-gradient(circle at center, var(--akz-hell) 0 13px, transparent 13.5px); }
#stage.quer-handy .lw-box, #stage.quer-handy .lw-schritt, #stage.quer-handy .lw-an-titel { font-size:16px; }
#stage.quer-handy .lw-schritt { grid-template-columns:26px minmax(0, 1fr); } #stage.quer-handy .lw-schritt > b { width:26px; height:26px; font-size:16px; }
#stage.quer-handy .lw-name input { min-height:68px; font-size:17px; } #stage.quer-handy .lw-wuerfel { width:68px; }
#stage.quer-handy .lo-los { position:sticky; bottom:0; z-index:2; padding:6px 0 8px; background:linear-gradient(180deg, transparent, var(--panel) 10px); }
#stage.quer-handy .lo-los .kb-gross { min-height:68px; font-size:19px; } #stage.quer-handy .lo-los-hin { font-size:16px; }
#stage.quer-handy .lo-rechts { grid-template-rows:minmax(0, 1fr) 146px; gap:8px; }
#stage.quer-handy .lo-rechts .lo-spieler, #stage.quer-handy .lo-rechts .lo-chat { padding:6px 8px; }
#stage.quer-handy .lo-tabs { margin-bottom:6px; } #stage.quer-handy .lo-tabs button { min-height:68px; font-size:16px; padding:4px; }
#stage.quer-handy .lo-seg button, #stage.quer-handy .lo-tabs button { white-space:nowrap; }
#stage.quer-handy .lo-hinweis, #stage.quer-handy .it { font-size:16px; }
#stage.quer-handy .tb { gap:8px; padding:6px 8px; } #stage.quer-handy .tb-kopf { font-size:17px; } #stage.quer-handy :is(.tb-kopf .frei, .tb-sub, .tb-route) { font-size:16px; }
#stage.quer-handy .tb-knopf { min-height:68px; font-size:16px; }
#stage.quer-handy .st-k small, #stage.quer-handy .ar, #stage.quer-handy .ar-sub { font-size:16px; }
#stage.quer-handy #lobby .lo-chat .lo-label { display:none; }
#stage.quer-handy #chatwin, #stage.quer-handy #tchatwin { font-size:16px; padding:5px 8px; }
#stage.quer-handy #chatin, #stage.quer-handy #tchatin { min-height:68px; margin-top:4px; font-size:17px; }
#stage.quer-handy .ti-mitte { gap:8px; padding:6px 8px; }
#stage.quer-handy .ti-plaetze { flex:0 0 250px; gap:5px; }
#stage.quer-handy .pl { padding:5px 8px; gap:8px; } #stage.quer-handy .pl .nm2 { font-size:17px; } #stage.quer-handy :is(.pl .nm2 small, .pl .st) { font-size:16px; }
#stage.quer-handy .ti-opts { padding:8px 10px; gap:8px; }
#stage.quer-handy .ti-opt { font-size:17px; } #stage.quer-handy .ti-opt small { display:block; margin:0; font-size:16px; }
#stage.quer-handy .ti-wahl button { min-height:68px; min-width:68px; font-size:17px; padding:4px 12px; }
#stage.quer-handy .ti-info { font-size:16px; }
#stage.quer-handy .ti-chat { flex:0 0 250px; padding:6px 8px; }
#stage.quer-handy .lo-fuss { padding:4px 8px; gap:8px; }

#grund { position:absolute; inset:0; background:var(--grund-q) center / cover no-repeat, var(--bg); }
#stage.hoch #grund { background-image:var(--grund-h); }
#grund::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse 85% 75% at 50% 45%, transparent, var(--abdunkeln)); }
#stage.lobbyhg #grund { filter:blur(3px) brightness(.75) saturate(.9); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(3px) brightness(1.05) saturate(.8); }
#lobby, #tisch { background:linear-gradient(180deg, rgba(20,12,4,.3), rgba(14,8,2,.6)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(250,246,236,.35), rgba(232,224,204,.55)); }
.tg-l { margin-top:4px; } .tg-liste { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:4px; } .tg-liste .ich { color:var(--akz-hell); } .tg-liste i { color:var(--gold); font-style:normal; font-weight:800; }
.lw-klein { margin-top:6px; flex-wrap:wrap; }
.li-block { margin-bottom:10px; } .li-block .it { display:flex; gap:6px; align-items:baseline; } .li-block .it i { margin-left:auto; color:var(--gold); font-style:normal; font-weight:800; }
#grund::before { content:""; position:absolute; left:2%; top:4%; width:30%; height:46%; pointer-events:none; opacity:0; z-index:1;
  background:radial-gradient(circle, rgba(255,240,200,.55) 0 1.2px, transparent 1.6px) 0 0 / 46px 52px, radial-gradient(circle, rgba(255,240,200,.4) 0 1px, transparent 1.4px) 23px 17px / 61px 47px; }
@media (prefers-reduced-motion: no-preference) { #grund::before { opacity:.8; animation:staub 24s linear infinite; } }
@keyframes staub { from { background-position:0 0, 23px 17px; } to { background-position:46px 104px, 84px 111px; } }
:root[data-theme="light"] #grund::before { background:radial-gradient(circle, rgba(120,90,40,.35) 0 1.2px, transparent 1.6px) 0 0 / 46px 52px; }

:root { --tafel:linear-gradient(rgba(54,30,16,.9), rgba(34,18,8,.94)); --maserung:repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 11px, rgba(255,210,160,.04) 11px 13px, transparent 13px 23px); }
:root[data-theme="light"] { --tafel:linear-gradient(rgba(250,244,230,.92), rgba(238,228,206,.95)); --maserung:repeating-linear-gradient(90deg, rgba(90,50,10,.05) 0 2px, transparent 2px 11px, rgba(255,255,255,.14) 11px 13px, transparent 13px 23px); }
#feld { position:absolute; left:12px; top:74px; right:330px; bottom:10px; }
#seite { position:absolute; right:12px; top:74px; bottom:10px; width:306px; display:flex; flex-direction:column; gap:8px; }
#seite > .panel { position:relative; background:var(--maserung), var(--tafel); backdrop-filter:none; -webkit-backdrop-filter:none; border-color:color-mix(in srgb, var(--messing-b) 60%, transparent); }
#partie > #kopf { background:linear-gradient(rgba(30,18,8,.5), rgba(30,18,8,.56)); backdrop-filter:none; -webkit-backdrop-filter:none; text-shadow:0 1px 3px rgba(0,0,0,.85); }
:root[data-theme="light"] #partie > #kopf { background:linear-gradient(rgba(250,246,236,.5), rgba(244,238,224,.56)); text-shadow:0 1px 2px rgba(255,250,240,.9); }
#k-z-box.knapp b { color:var(--rot); animation:puls .8s infinite alternate; }
.runde b { min-width:44px; }

#kustoden { position:absolute; left:0; right:0; top:0; height:66px; display:flex; justify-content:center; gap:10px; z-index:3; }
.kus { position:relative; display:flex; align-items:center; gap:6px; padding:3px 8px 3px 3px; border-radius:30px; min-width:0; max-width:220px;
  background:linear-gradient(var(--messing-a), var(--messing-b)); color:var(--messing-t); border:1px solid #6b5020; box-shadow:0 3px 8px var(--schatten), inset 0 1px 0 #fff8; }
.kus .bildnis { border-width:3px; }
.kus-schild { display:flex; flex-direction:column; min-width:0; line-height:1.15; }
.kus-schild b { font:700 15px var(--kopf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:130px; }
.kus-z { font-size:13px; font-weight:700; white-space:nowrap; }
.kus-lade { display:flex; flex-wrap:wrap; width:36px; gap:2px; align-content:center; }
.kus-lade i { width:9px; height:12px; background:var(--papier); border:1px solid #8a7048; border-radius:1.5px; box-shadow:0 1px 1px rgba(0,0,0,.3); }
.kus-lupe { position:absolute; right:-6px; top:-8px; width:22px; height:22px; border-radius:50%; background:var(--sf); display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.kus-lupe .sgzi { width:14px; height:14px; color:#fff; }
.kus.neu { animation:kusNeu .9s ease-out; }
@keyframes kusNeu { 0% { transform:scale(1); } 30% { transform:scale(1.08); box-shadow:0 0 0 4px var(--sf), 0 3px 8px var(--schatten); } 100% { transform:scale(1); } }
.kus.rot { animation:kusRot .9s ease-out; }
@keyframes kusRot { 30% { box-shadow:0 0 0 4px #c0392b, 0 3px 8px var(--schatten); } }
.kus.gesperrt { filter:saturate(.4); opacity:.75; }
.kus.weg .kus-schild b { text-decoration:line-through; }
#kustoden.viele .kus { padding-right:6px; } #kustoden.viele .kus-schild b { max-width:84px; font-size:14px; } #kustoden.viele .kus-lade { display:none; }

#meldungen { position:absolute; left:8%; right:8%; top:70px; height:56px; z-index:6; display:flex; flex-direction:column; justify-content:flex-end; gap:4px; pointer-events:none; overflow:hidden; }
.meldung { align-self:center; max-width:100%; padding:4px 14px; border-radius:8px; font-size:14.5px; line-height:1.3; text-align:center; color:var(--text); background:color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border:1px solid var(--linie); box-shadow:0 3px 10px var(--schatten); animation:meldungAn .3s ease-out; transition:opacity .4s, transform .4s; }
.meldung b { color:var(--akz-hell); }
.meldung.weg { opacity:0; transform:translateY(-12px); }
@keyframes meldungAn { from { opacity:0; transform:translateY(10px); } }
#platte { position:absolute; left:0; right:0; top:126px; bottom:136px; border-radius:16px; padding:16px;
  background:var(--maserung), linear-gradient(160deg, var(--holz-a), var(--holz-b)); border:1px solid var(--holz-kante);
  box-shadow:inset 0 2px 0 rgba(255,220,170,.25), 0 10px 0 var(--holz-kante), 0 24px 34px var(--schatten); }
#filz { position:absolute; inset:16px; border-radius:8px; background:var(--flaeche) center / cover no-repeat, #24402c; box-shadow:inset 0 3px 10px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.25); }
#auslage { position:absolute; left:14px; top:12px; bottom:12px; right:132px; touch-action:none; }
.ka { position:absolute; padding:0; margin:0; border:0; background:none; cursor:pointer; border-radius:9px; transition:left .35s ease, top .35s ease, width .35s ease, height .35s ease, transform .15s ease;
  filter:drop-shadow(2px 5px 4px rgba(0,0,0,.45)); -webkit-touch-callout:none; }
.ka svg { width:100%; height:100%; display:block; pointer-events:none; }
.ka:focus-visible { outline:3px solid var(--akz-hell); outline-offset:2px; }
@media (hover: hover) { .ka:hover { transform:translateY(-3px); } }
.ka.an { transform:translateY(-9px) rotate(-1.2deg); filter:drop-shadow(3px 12px 8px rgba(0,0,0,.5)); }
.ka.an::after { content:""; position:absolute; inset:-4px; border-radius:12px; border:4px solid #e6b33a; box-shadow:0 0 14px #ffd76a; pointer-events:none; }
.ka.fund::after { content:""; position:absolute; inset:-5px; border-radius:12px; border:5px solid var(--fund, #e6b33a); box-shadow:0 0 18px var(--fund, #e6b33a); pointer-events:none; animation:fund .4s ease-out; }
@keyframes fund { from { transform:scale(1.12); opacity:0; } }
.ka.tipp::before { content:""; position:absolute; inset:-6px; border-radius:13px; border:3px dashed #ffd76a; pointer-events:none; animation:puls .8s infinite alternate; }
.ka.neu { animation:kaNeu .45s ease-out; }
@keyframes kaNeu { from { transform:scale(1.06); } }
.ka.gesperrt { opacity:.55; cursor:not-allowed; }
.ka.wackel { animation:wackel .5s ease-in-out; }
@keyframes wackel { 20% { transform:translateX(-7px) rotate(-2deg); } 40% { transform:translateX(6px) rotate(2deg); } 60% { transform:translateX(-4px); } 80% { transform:translateX(3px); } }
.ka[data-fz]:not([data-fz=""])::before { content:attr(data-fz) "×"; position:absolute; right:-6px; top:-8px; z-index:2; min-width:24px; height:24px; padding:0 4px; border-radius:12px; background:#2e7a4a; color:#fff; font:800 13px/24px var(--sans); text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.lupe { position:absolute; z-index:3; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%; pointer-events:none; border:3px solid var(--sf); background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), rgba(200,230,255,.12) 60%);
  box-shadow:0 2px 6px rgba(0,0,0,.4); transition:left 1.2s ease-in-out, top 1.2s ease-in-out; opacity:.85; }
.lupe .sgzi { display:none; }
.lupe::after { content:""; position:absolute; right:-12px; bottom:-10px; width:16px; height:5px; border-radius:3px; background:var(--sf); transform:rotate(45deg); }
#kasten { position:absolute; right:30px; top:50%; width:96px; height:120px; margin-top:-60px; z-index:2; }
.ks-deckel { position:absolute; left:6px; right:6px; top:calc(10px - var(--dicke, 12px)); height:calc(var(--dicke, 12px) + 4px); border-radius:3px;
  background:repeating-linear-gradient(180deg, var(--papier) 0 2px, #cbb68a 2px 3px); box-shadow:0 -1px 2px rgba(0,0,0,.25); }
.ks-front { position:absolute; inset:10px 0 0; border-radius:6px; background:var(--maserung), linear-gradient(170deg, var(--holz-a), var(--holz-b)); border:1px solid var(--holz-kante);
  box-shadow:0 8px 14px var(--schatten), inset 0 1px 0 rgba(255,220,170,.3); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fbe9c8; }
.ks-front b { font:800 28px var(--kopf); text-shadow:0 1px 2px #000; }
.ks-front small { font-size:12.5px; font-weight:700; }
#kasten.leer .ks-deckel { display:none; } #kasten.leer .ks-front { opacity:.7; }
:root[data-theme="light"] .ks-front { color:#2a1d0a; } :root[data-theme="light"] .ks-front b { text-shadow:none; }

#unten { position:absolute; left:0; right:0; bottom:0; height:122px; display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:12px; }
#lade { position:relative; border-radius:10px; padding:8px 10px 30px; background:var(--maserung), linear-gradient(170deg, var(--holz-a), var(--holz-b)); border:1px solid var(--holz-kante);
  box-shadow:0 8px 16px var(--schatten), inset 0 1px 0 rgba(255,220,170,.25); overflow:hidden; }
#lade-in { position:relative; height:100%; border-radius:5px; background:linear-gradient(#e8dcc0, #d8c8a2); box-shadow:inset 0 2px 6px rgba(0,0,0,.35); display:flex; flex-wrap:nowrap; gap:8px; align-items:center; padding:4px 8px; overflow:hidden; }
.ld-glas { position:absolute; left:10px; right:10px; top:8px; bottom:30px; z-index:2; pointer-events:none; border-radius:5px; background:linear-gradient(115deg, rgba(255,255,255,.28) 0 12%, transparent 12% 30%, rgba(255,255,255,.12) 30% 34%, transparent 34%); }
.ld-satz { display:flex; gap:2px; flex:none; padding:2px; border-radius:4px; background:rgba(120,90,50,.18); }
.ld-ka { display:block; width:30px; height:42px; } .ld-ka svg { width:100%; height:100%; display:block; }
.ld-schild { position:absolute; left:50%; bottom:5px; transform:translateX(-50%); z-index:3; padding:2px 14px; border-radius:5px; white-space:nowrap; font:700 14px var(--kopf);
  background:linear-gradient(var(--messing-a), var(--messing-b)); color:var(--messing-t); border:1px solid #6b5020; box-shadow:0 1px 3px rgba(0,0,0,.4); }
#bedien { display:flex; flex-direction:column; gap:8px; min-width:0; }
.auftrag { height:56px; flex:none; overflow:hidden; display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; padding:4px 12px; border-radius:8px; font-size:15px; line-height:1.25;
  background:var(--maserung), var(--tafel); border:1px solid color-mix(in srgb, var(--messing-b) 60%, transparent); color:var(--text-2); }
.auftrag b { color:var(--akz-hell); }
.fehlt { display:inline-flex; align-items:center; gap:4px; } .ft-ka { display:inline-block; width:46px; height:31px; vertical-align:middle; } .ft-ka svg { width:100%; height:100%; display:block; }
.hilfe-n { color:var(--gold); font-weight:700; }
.bd-knoepfe { display:flex; gap:8px; flex:1; min-height:0; }
.schild { flex:1; min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:4px 10px; border-radius:8px; cursor:pointer; white-space:nowrap;
  font:800 15px var(--kopf); color:var(--messing-t); background:linear-gradient(var(--messing-a), var(--messing-b)); border:1px solid #6b5020; box-shadow:0 3px 0 #5a4214, inset 0 1px 0 #fff9; }
.bd-knoepfe.vier { gap:6px; } .bd-knoepfe.vier .schild { padding:4px 4px; font-size:14px; } .bd-knoepfe.vier .schild .sgzi { display:none; }
.schild.leise { background:linear-gradient(#d9c8a6, #a8916a); }
.schild:disabled { opacity:.5; cursor:default; box-shadow:none; border-style:dashed; }
.schild:not(:disabled):active { transform:translateY(2px); box-shadow:0 1px 0 #5a4214; }

#tafel { flex:none; max-height:46%; overflow-y:auto; padding:8px 10px; }
#partie #pchat { flex:0 0 268px; margin-top:auto; }
.tz { display:grid; grid-template-columns:8px minmax(0, 1fr) auto; grid-template-rows:auto auto; column-gap:8px; align-items:center; padding:5px 6px; border-radius:6px; margin-bottom:3px; background:rgba(0,0,0,.18); }
:root[data-theme="light"] .tz { background:rgba(255,255,255,.5); }
.tz.ich { box-shadow:inset 0 0 0 1px var(--akz); }
.tz-f { grid-row:1 / 3; width:8px; height:100%; border-radius:4px; background:var(--sf); }
.tz-n { font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tz-w { font:800 19px var(--kopf); color:var(--gold); }
.tz small { grid-column:2 / 4; font-size:12.5px; color:var(--text-3); }
.tg-saetze { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:8px 0 4px; }
.tg-s { display:flex; justify-content:center; align-items:center; gap:2px; height:48px; border-radius:6px; border:1px dashed var(--linie); color:var(--dim); font:700 16px var(--kopf); }
.tg-s.da { border-style:solid; background:rgba(46,122,74,.22); }
.tg-s .ld-ka { width:24px; height:34px; }
.tf-regel { margin-top:6px; font-size:12.5px; color:var(--text-3); display:flex; gap:5px; align-items:center; }
.vz { padding:3px 7px; border-left:3px solid var(--sf, var(--akz)); background:rgba(0,0,0,.18); border-radius:0 5px 5px 0; color:var(--text-2); }
:root[data-theme="light"] .vz { background:rgba(255,255,255,.55); }
.vz b { color:var(--text); } .vz small { display:block; font-size:12px; color:var(--text-3); }
.vz.rot { border-left-color:#c0392b; } .vz.sys { border-left-color:transparent; color:var(--dim); font-size:12.5px; }
#pchatwin { flex:1; min-height:0; overflow-y:auto; background:rgba(0,0,0,.18); border-radius:6px; user-select:text; }
#pchatin { width:100%; font-size:16px; border-radius:6px; border:1px solid var(--linie); background:var(--panel2); color:var(--text); }

.flieger .ka-flug, .ka-flug { width:100%; height:100%; filter:drop-shadow(3px 8px 6px rgba(0,0,0,.45)); }
.ka-flug svg { width:100%; height:100%; display:block; }
.ki-ka { display:block; width:110px; } .ki-ka svg { width:100%; height:auto; display:block; }
.zk-bild { display:flex; gap:4px; } .zk-ka { display:block; width:34px; height:48px; } .zk-ka svg { width:100%; height:100%; display:block; }
.flatter { position:absolute; bottom:-60px; z-index:90; width:56px; height:50px; pointer-events:none; animation:flattern linear forwards; }
.flatter svg { width:100%; height:100%; animation:fluegel .25s ease-in-out infinite alternate; transform-origin:center; }
@keyframes flattern { to { transform:translate(60px, -900px) rotate(18deg); opacity:.3; } }
@keyframes fluegel { to { transform:scaleX(.55); } }
#hinweis { position:absolute; left:calc((100% - 318px) / 2); bottom:170px; transform:translateX(-50%); z-index:70; padding:9px 18px; border-radius:9px; background:rgba(120,30,20,.95); border:1px solid #ffb8a3; color:#fff; font-size:15px; font-weight:700; pointer-events:none; max-width:640px; text-align:center; }
#hinweis.neutral { background:var(--panel-solid); border-color:var(--akz-hell); color:var(--text); }
.banner { left:calc((100% - 318px) / 2); }

#stage.hoch #kopf { left:12px; right:12px; top:6px; height:62px; padding:0 6px 0 104px; gap:8px; }
#stage.hoch .logo { display:none; }
#stage.hoch #kopf .trenner, #stage.hoch .k-phase { display:none; }
#stage.hoch .runde { font-size:14px; letter-spacing:1px; } #stage.hoch .runde b { font-size:20px; min-width:40px; }
#stage.hoch #k-ton, #stage.hoch #k-hilfe { display:none; }
#stage.hoch #k-st-box { display:none; }
#stage.hoch #kopf .kb-ic { width:60px; height:58px; } #stage.hoch #kopf .kb-ic .sgzi { width:24px; height:24px; }
#stage.hoch #k-verlauf { height:58px; font-size:16px; }
#stage.hoch #feld { left:12px; right:12px; top:74px; bottom:8px; }
#stage.hoch #kustoden { height:58px; gap:5px; flex-wrap:nowrap; overflow:hidden; }
#stage.hoch .kus { padding:2px 6px 2px 2px; } #stage.hoch .kus-schild b { font-size:15px; max-width:118px; } #stage.hoch .kus-z { font-size:13.5px; } #stage.hoch .kus-lade { display:none; }
#stage.hoch #kustoden.viele .kus-schild b { display:none; }
#stage.hoch #meldungen { left:2%; right:2%; top:60px; height:62px; }
#stage.hoch .meldung { font-size:15px; }
#stage.hoch #platte { top:126px; bottom:232px; padding:12px; }
#stage.hoch #filz { inset:12px; }
#stage.hoch #auslage { left:8px; right:8px; top:8px; bottom:78px; }
#stage.hoch #kasten { right:auto; left:50%; top:auto; bottom:10px; margin:0 0 0 -60px; width:120px; height:62px; }
#stage.hoch .ks-front { flex-direction:row; gap:8px; } #stage.hoch .ks-front b { font-size:24px; } #stage.hoch .ks-front small { font-size:15px; }
#stage.hoch #unten { height:222px; grid-template-columns:minmax(0, 1fr); grid-template-rows:84px minmax(0, 1fr); gap:8px; }
#stage.hoch #lade { padding:6px 8px 28px; }
#stage.hoch .ld-schild { font-size:15px; }
#stage.hoch .auftrag { height:60px; font-size:15.5px; }
#stage.hoch .schild { min-height:62px; font-size:16px; padding:4px 6px; }
#stage.hoch .schild .sgzi { width:20px; height:20px; }
#stage.hoch #seite { display:none; right:8px; left:8px; top:76px; bottom:240px; width:auto; z-index:30; }
#stage.hoch #seite.offen { display:flex; }
#stage.hoch .tz-n, #stage.hoch .vz, #stage.hoch .tz small, #stage.hoch .vz small, #stage.hoch .tf-regel { font-size:15px; }
#stage.hoch #hinweis { left:50%; bottom:250px; max-width:500px; font-size:16px; }
#stage.hoch .banner { left:50%; }
#k-verlauf { width:auto !important; padding:0 10px; gap:5px; font-size:14px; font-weight:800; }
#stage.quer-handy #seite { display:none; z-index:30; } #stage.quer-handy #seite.offen { display:flex; }
#stage.quer-handy #feld { right:12px; }
#stage.quer-handy #kopf { height:62px; } #stage.quer-handy #kopf .kb-ic { width:58px; height:52px; }
#stage.quer-handy #kustoden { height:54px; } #stage.quer-handy .kus-schild b { font-size:16px; } #stage.quer-handy .kus-z { font-size:16px; }
#stage.quer-handy #meldungen { top:54px; height:44px; } #stage.quer-handy .meldung { font-size:16px; }
#stage.quer-handy #platte { top:98px; bottom:112px; padding:10px; } #stage.quer-handy #filz { inset:10px; }
#stage.quer-handy #unten { height:104px; }
#stage.quer-handy .auftrag { height:44px; font-size:16px; } #stage.quer-handy .schild { font-size:16px; min-height:52px; }
#stage.quer-handy .ld-schild { font-size:16px; }
@media (pointer: coarse) { .schild { min-height:46px; } }
#stage.hoch .en-unter, #stage.hoch .en-stat { font-size:17px; } #stage.hoch .en-unter small { font-size:15px; }
#stage.hoch .overlay .kb, #stage.hoch #en-zurueck .kb { min-height:62px; font-size:17px; }
#stage.hoch .ov-knoepfe { flex-wrap:wrap; }
#stage.hoch .sz-chip, #stage.hoch .sz-chip em, #stage.hoch .sz-chip b { font-size:15px; }

.countdown { position:absolute; left:50%; top:50%; z-index:4; transform:translate(-50%, -50%); font:900 150px/1 var(--kopf); color:#f6e7c0; text-shadow:0 6px 18px rgba(0,0,0,.6); pointer-events:none; opacity:0; }
.countdown.an { animation:zaehlen .95s ease-out forwards; }
@keyframes zaehlen { 0% { opacity:0; transform:translate(-50%, -50%) scale(1.6); } 20% { opacity:1; transform:translate(-50%, -50%) scale(1); } 80% { opacity:1; } 100% { opacity:0; transform:translate(-50%, -50%) scale(.9); } }
.ka .fm { position:absolute; left:6%; right:6%; bottom:8%; z-index:3; padding:2px 4px; border-radius:5px; background:#b8322a; color:#fff; font:800 12.5px/1.2 var(--sans); text-align:center; box-shadow:0 2px 5px rgba(0,0,0,.4); pointer-events:none; animation:fmAn .25s ease-out; }
@keyframes fmAn { from { transform:translateY(6px); opacity:0; } }
#stage.hoch .ka .fm { font-size:15px; bottom:auto; top:6%; }
.ka .taste { position:absolute; left:5px; top:5px; z-index:2; min-width:18px; height:18px; padding:0 4px; border-radius:4px; background:rgba(60,40,20,.78); color:#fbeed2; font:800 11.5px/18px var(--sans); text-align:center; pointer-events:none; }
.ld-mehr { flex:none; display:flex; align-items:center; justify-content:center; min-width:38px; height:42px; padding:0 6px; border-radius:5px; background:rgba(120,90,50,.28); color:#3a2a14; font:800 15px var(--kopf); }
.en-arten { flex-basis:100%; text-align:center; font-size:14px; color:var(--text-2); }
#stage.hoch .en-arten { font-size:15px; }
.lw-bsp { margin-top:6px; align-self:flex-start; }
.bsp { display:flex; flex-direction:column; gap:10px; text-align:left; }
.bsp-reihe { display:flex; align-items:center; gap:12px; }
.bsp-ka { display:flex; gap:4px; flex:none; } .bsp-ka > span { display:block; width:48px; height:67px; } .bsp-ka svg { width:100%; height:100%; display:block; }
.bsp-t { font-size:14px; line-height:1.35; } .bsp-t .ok { color:var(--gruen); } .bsp-t .nein { color:var(--rot); }
.bsp-tipp { font-size:14px; color:var(--text-2); font-style:italic; }
#stage.hoch .bsp-t, #stage.hoch .bsp-tipp { font-size:15px; }
