:root {
  --bg:#1c1812; --panel:rgba(38,30,22,.88); --panel2:rgba(54,42,30,.95); --panel-solid:#2c2218;
  --akz:#e9b65c; --akz-hell:#ffd88a; --akz2:#b8863a; --linie:rgba(233,190,110,.34);
  --text:#fbf4e6; --text-2:#ecdfc6; --text-3:#cdbb98; --dim:#cfbd9a;
  --gold:#f2c65a; --rot:#ff9a84; --gruen:#a8e08a; --blau:#9cc4f2; --dran:#7ad6a0;
  --ov-a:#3c2c1c; --ov-b:#17100a; --scrim:rgba(12,8,4,.7);
  --kn-a:#5c4228; --kn-b:#2c1c10;
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --grund-q:url(img/morgen.webp?v=1); --grund-h:url(img/morgen-hoch.webp?v=1);
  --holz-a:#b98446; --holz-b:#7a4f22; --holz-kante:#4a2e12; --papier:url(img/papier.webp?v=1); --holz:url(img/holz.webp?v=1);
  --schatten:rgba(0,0,0,.5); --abdunkeln:rgba(20,12,4,.16);
  --ok:#2b7434; --falsch:#b0301f; --letzt:#655d50; --schild:#f4ead2; --schild-t:#2a1d0c; --tafel:#2f3a32; --tafel-t:#f3efe2; --tafel-2:#cfd8c8;
}
:root[data-theme="light"] {
  --bg:#ece6d8; --panel:rgba(250,246,236,.92); --panel2:rgba(242,236,222,.97); --panel-solid:#f4eedf;
  --akz:#8a4c0e; --akz-hell:#6a3606; --akz2:#b8803a; --linie:rgba(90,70,40,.32);
  --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/hof.webp?v=1); --grund-h:url(img/hof-hoch.webp?v=1);
  --holz-a:#d9b07a; --holz-b:#a8784a; --holz-kante:#7a5430;
  --schatten:rgba(70,50,20,.34); --abdunkeln:rgba(255,250,236,.04);
  --ok:#2e7d3a; --falsch:#b02a1e; --letzt:#7a7062; --tafel:#f6f0e0; --tafel-t:#1e1a12; --tafel-2:#4a3c26;
}
html[data-design="abend"]:not([data-theme="light"]) {
  --bg:#100c10; --panel:rgba(26,20,24,.9); --panel2:rgba(42,32,34,.96); --panel-solid:#221a1c;
  --linie:rgba(255,200,120,.32); --ov-a:#30242a; --ov-b:#0e0a0c; --kn-a:#4a3436; --kn-b:#1e1416;
  --grund-q:url(img/abend.webp?v=1); --grund-h:url(img/abend-hoch.webp?v=1);
  --holz-a:#8a5a2c; --holz-b:#4e3014; --abdunkeln:rgba(8,4,0,.26);
}
: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 { text-transform:none; 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; z-index:0; background:var(--grund-q) center/cover no-repeat; }
#grund::after { content:""; position:absolute; inset:0; background:var(--abdunkeln); }
#stage.hoch #grund { background-image:var(--grund-h); }
#stage.lobbyhg #grund { filter:blur(3px) brightness(.85); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(3px) brightness(1.02); }
#grund::before { content:""; position:absolute; left:-10%; top:8%; width:38%; height:70%; z-index:1; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(255,236,190,.16), transparent 65%); animation:licht 26s ease-in-out infinite alternate; }
html[data-design="abend"]:not([data-theme="light"]) #grund::before { background:radial-gradient(ellipse at center, rgba(255,190,110,.14), transparent 65%); animation-duration:9s; }
@keyframes licht { to { transform:translate(30%, 6%); opacity:.6; } }
@media (prefers-reduced-motion: reduce) { #grund::before { animation:none; } }

#feld { position:absolute; left:12px; top:74px; right:340px; bottom:10px; z-index:2; display:flex; flex-direction:column; gap:8px; }
#seite { position:absolute; right:12px; top:74px; bottom:10px; width:316px; z-index:3; display:flex; flex-direction:column; gap:10px; }
#seite .panel { position:relative; }
#tafel { flex:none; padding:10px 12px 12px; }
#pchat { flex:1 1 auto; }

#plaetze { flex:none; height:96px; display:flex; justify-content:center; align-items:flex-end; gap:22px; }
.sitz { position:relative; display:flex; align-items:center; gap:8px; min-width:0; }
.sitz .bildnis { width:66px; height:66px; }
.bildnis { display:inline-flex; align-items:center; justify-content:center; flex:none; border-radius:50%; background-size:cover; background-position:center; background-color:#6a5030;
  border:3px solid var(--sf, var(--akz)); box-shadow:0 3px 6px rgba(0,0,0,.45); color:#fff6e4; font:900 20px/1 var(--kopf); }
.bildnis.mensch { background:radial-gradient(circle at 35% 30%, #7a4c22, #3e220c); }
.schild { display:flex; flex-direction:column; gap:2px; padding:5px 10px 6px; min-width:150px; max-width:220px; border-radius:6px; background:var(--schild); color:var(--schild-t);
  box-shadow:0 3px 8px var(--schatten); border:1px solid rgba(90,60,20,.4); }
.schild b { font:700 15px/1.15 var(--kopf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.schild .tuben { display:flex; gap:2px; height:26px; color:rgba(90,60,30,.55); }
.spg-tube { width:14px; height:26px; flex:none; }
.schild .lage { font-size:12.5px; font-weight:700; color:#5a4428; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; height:16px; font-variant-numeric:lining-nums tabular-nums; }
.sitz.aktiv .schild { box-shadow:0 0 0 3px var(--akz-hell), 0 3px 8px var(--schatten); }
.sitz.gelegt .lage { color:#1f5a2a; }
.sitz.letzt .lage { color:#8a2a1a; }
.sitz.weg { opacity:.7; }
.sitz .denkt { position:absolute; left:46px; top:-4px; width:24px; height:24px; border-radius:50%; background:var(--schild); color:#5a4428; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 4px var(--schatten); animation:denkt 1.1s ease-in-out infinite alternate; }
.sitz .denkt .sgzi { width:15px; height:15px; }
@keyframes denkt { to { transform:translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sitz .denkt { animation:none; } }

#tischplatte { position:relative; flex:1 1 auto; min-height:300px; border-radius:16px; background:var(--holz) center/cover, linear-gradient(180deg, var(--holz-a), var(--holz-b));
  box-shadow:inset 0 2px 0 rgba(255,230,190,.25), 0 22px 34px var(--schatten); margin-bottom:16px; }
#tischplatte::after { content:""; position:absolute; left:6px; right:6px; bottom:-16px; height:18px; border-radius:0 0 14px 14px; background:linear-gradient(180deg, var(--holz-b), var(--holz-kante)); z-index:-1; }
#bogen { position:absolute; inset:18px 22px 20px; border-radius:4px; background:var(--papier) center/cover, #d8c39a; box-shadow:0 3px 8px rgba(0,0,0,.35), inset 0 0 30px rgba(120,80,30,.18); }
#auslage { position:absolute; left:150px; right:150px; top:14px; height:58%; display:flex; align-items:center; justify-content:center; gap:28px; }
.ta { position:relative; height:calc(100% - 30px); aspect-ratio:120 / 124; flex:none; max-width:30%; }
.ta svg { width:100%; height:100%; display:block; filter:drop-shadow(3px 6px 5px rgba(40,20,0,.35)); }
.ta.unterwegs, .st-slot .spg-stempel.unterwegs { visibility:hidden; }
.ta.neu { animation:leuchten .7s ease-out; }
@keyframes leuchten { from { filter:drop-shadow(0 0 16px rgba(255,236,160,.9)); } to { filter:none; } }
.ta .ta-name { position:absolute; left:-20px; right:-20px; bottom:-22px; text-align:center; font:700 13px/1.2 var(--kopf); color:#3a2810; text-shadow:0 1px 0 rgba(255,240,210,.7); white-space:nowrap; }
#stapel, #ablage { position:absolute; top:24px; width:108px; height:112px; }
#stapel { left:18px; } #ablage { right:18px; }
#stapel .st-dicke { position:absolute; left:4px; right:-2px; top:6px; bottom:calc(-1 * var(--dicke, 6px)); border-radius:9px; background:repeating-linear-gradient(180deg, #8c6c42 0 2px, #6e5432 2px 3px); }
#stapel .st-oben { position:absolute; inset:0; }
#stapel .st-oben svg, #ablage svg { width:100%; height:100%; display:block; filter:drop-shadow(2px 4px 4px rgba(40,20,0,.35)); }
#stapel b { position:absolute; left:50%; bottom:-30px; transform:translateX(-50%); font:700 13px var(--kopf); color:#3a2810; white-space:nowrap; }
#stapel.leer .st-oben { opacity:.25; }
#ablage .ab-ka { position:absolute; inset:0; }
#ablage .ab-ka:nth-child(2) { transform:rotate(7deg) translate(4px, 2px); } #ablage .ab-ka:nth-child(3) { transform:rotate(-6deg) translate(-3px, 4px); }
#count { position:absolute; left:50%; top:30%; transform:translate(-50%, -50%); font:900 110px/1 var(--kopf); color:#7a3a12; text-shadow:0 3px 0 rgba(255,240,210,.7); pointer-events:none; z-index:4; }
#count.an { animation:zaehlen .9s ease-out forwards; }
@keyframes zaehlen { from { transform:translate(-50%, -50%) scale(1.6); opacity:0; } 25% { transform:translate(-50%, -50%) scale(1); opacity:1; } to { opacity:0; } }

#stempelreihe { position:absolute; left:16px; right:16px; bottom:8px; height:34%; display:flex; justify-content:center; align-items:flex-end; gap:18px; }
.st-slot { position:relative; width:150px; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:2px; }
.st-slot .st-feld { position:relative; width:78px; height:78px; flex:none; border:2px dashed rgba(90,60,30,.45); border-radius:14px; }
.st-slot .spg-stempel { position:absolute; inset:-4px; width:calc(100% + 8px); height:calc(100% + 8px); filter:drop-shadow(2px 4px 4px rgba(40,20,0,.4)); }
.st-slot .st-name { font:700 13px/1.15 var(--kopf); color:#3a2810; max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.st-slot .st-zeit { font:700 12.5px/1.2 var(--sans); color:#4a3418; height:16px; font-variant-numeric:lining-nums tabular-nums; white-space:nowrap; }
.st-slot .st-nr { position:absolute; left:-12px; top:-10px; width:26px; height:26px; border-radius:50%; background:#3a2810; color:#f8eedb; font:800 13px/26px var(--sans); text-align:center; z-index:2; }
.st-slot.ok .st-zeit, .st-slot.falsch .st-zeit, .st-slot.letzter .st-zeit, .st-slot.ohne .st-zeit, .st-slot.zuschau .st-zeit { padding:0 7px; border-radius:6px; color:#fff; height:auto; line-height:18px; }
.st-slot.ok .st-zeit { background:var(--ok); } .st-slot.falsch .st-zeit { background:var(--falsch); } .st-slot:is(.letzter, .ohne, .zuschau) .st-zeit { background:var(--letzt); }
.st-slot.ok .st-feld { border-color:var(--ok); border-style:solid; } .st-slot.falsch .st-feld { border-color:var(--falsch); border-style:solid; }
.st-slot.letzter .spg-stempel { filter:grayscale(.7) drop-shadow(2px 4px 4px rgba(40,20,0,.4)); opacity:.75; }
.st-slot.dreht .spg-stempel { animation:dreh .5s ease-in-out; }
@keyframes dreh { 0% { transform:scaleX(1); } 50% { transform:scaleX(0); } 100% { transform:scaleX(1); } }
.st-slot.ich .st-name { text-decoration:underline; text-decoration-color:var(--akz2); text-underline-offset:3px; }
.st-slot.letztkand .st-feld { border-color:#b04a2a; animation:puls .8s infinite alternate; }

#unten { flex:none; height:178px; display:flex; gap:10px; }
#kasten, #rechnung { flex:1 1 auto; min-width:0; position:relative; border-radius:12px; }
#kasten { display:flex; align-items:center; gap:12px; padding:10px 14px; background:linear-gradient(180deg, #8a5a2c, #5a3616); border:1px solid #2e1a0a;
  box-shadow:inset 0 2px 0 rgba(255,220,170,.3), inset 0 -6px 12px rgba(0,0,0,.35), 0 10px 20px var(--schatten); }
:root[data-theme="light"] #kasten { background:linear-gradient(180deg, #c99a62, #8e6236); }
#ich-bild { flex:none; display:flex; flex-direction:column; align-items:center; gap:4px; }
#ich-bild .bildnis { width:58px; height:58px; }
#ich-bild .tuben { display:flex; gap:2px; color:rgba(255,236,200,.7); }
#ich-bild .tuben .spg-tube { width:15px; height:28px; }
#stempel { flex:1; display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; touch-action:manipulation; }
.st-knopf { position:relative; width:82px; height:82px; padding:0; border:0; background:none; border-radius:16px; transition:transform .12s; }
.st-knopf svg { width:100%; height:100%; display:block; filter:drop-shadow(0 5px 4px rgba(0,0,0,.45)); }
@media (hover: hover) { .st-knopf:hover:not(:disabled) { transform:translateY(-4px); } }
.st-knopf:active:not(:disabled) { transform:translateY(2px) scale(.96); }
.st-knopf:disabled { cursor:default; opacity:.5; filter:grayscale(.5); }
.st-knopf.gewaehlt { opacity:1; filter:none; outline:3px solid var(--akz-hell); outline-offset:2px; }
.st-knopf .taste { position:absolute; right:2px; bottom:2px; font:700 12px var(--sans); color:#2a1606; background:#f6e8cc; border-radius:4px; padding:0 4px; }
#kasten.zu #stempel { opacity:.55; }

#rechnung { padding:10px 14px; background:var(--tafel); color:var(--tafel-t); border:8px solid #6e4a26; box-shadow:inset 0 0 18px rgba(0,0,0,.4), 0 10px 20px var(--schatten);
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)) 100px; gap:10px; align-items:stretch; }
:root[data-theme="light"] #rechnung { border-color:#b08a5a; box-shadow:inset 0 0 10px rgba(120,90,40,.2), 0 8px 16px var(--schatten); }
.rg-spalte { display:flex; flex-direction:column; gap:4px; min-width:0; }
.rg-titel { font:700 12.5px/1.2 var(--sans); letter-spacing:1.5px; text-transform:uppercase; color:var(--tafel-2); }
.rg-dinge { display:flex; flex-wrap:wrap; gap:6px; align-items:flex-start; min-height:44px; }
.rg-ding { display:flex; flex-direction:column; align-items:center; gap:1px; font:700 12.5px/1.15 var(--sans); color:var(--tafel-t); }
.rg-ding.abg { padding:2px 4px; border-radius:6px; background:rgba(255,236,160,.14); outline:1px dashed rgba(255,236,160,.6); }
:root[data-theme="light"] .rg-ding.abg { background:rgba(160,110,20,.1); outline-color:rgba(120,80,10,.6); }
.rg-ding small { font-size:12px; font-weight:600; color:var(--tafel-2); white-space:nowrap; }
.rg-zahl { font:900 22px/1 var(--kopf); color:var(--tafel-t); font-variant-numeric:lining-nums tabular-nums; }
.rg-summe { display:flex; flex-direction:column; align-items:center; justify-content:center; border-left:2px solid rgba(255,255,255,.25); }
:root[data-theme="light"] .rg-summe { border-left-color:rgba(60,40,10,.25); }
.rg-summe b { font:900 52px/1 var(--kopf); color:var(--gold); font-variant-numeric:lining-nums tabular-nums; }
.rg-summe small { font:700 12.5px var(--sans); color:var(--tafel-2); text-align:center; }
.rg-leer { font-size:12.5px; color:var(--tafel-2); font-style:italic; }
.rg-ding, .rg-summe { opacity:0; transform:translateY(6px); transition:opacity .3s, transform .3s; }
.rg-ding.da, .rg-summe.da { opacity:1; transform:none; }

#bedien { flex:0 0 300px; display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-radius:12px; background:var(--panel-solid); border:1px solid var(--linie); box-shadow:0 8px 18px var(--schatten); }
.auftrag { height:88px; overflow:hidden; font-size:15px; line-height:1.38; color:var(--text); }
.auftrag b { color:var(--akz-hell); }
.bd-knoepfe { margin-top:auto; display:flex; gap:8px; flex-wrap:wrap; }
.bd-knoepfe .kb { flex:1 1 auto; min-height:46px; }
.bd-knoepfe .schild { display:inline-flex; align-items:center; justify-content:center; flex-direction:row; gap:6px; flex:1 1 auto; min-height:40px; min-width:0; max-width:none; padding:6px 10px; border-radius:8px; font:700 14px var(--sans);
  color:var(--schild-t); background:var(--schild); border:1px solid rgba(90,60,20,.5); box-shadow:0 2px 4px var(--schatten); }
.bd-knoepfe .schild.leise { background:var(--panel2); color:var(--text); border-color:var(--linie); }
.bd-knoepfe .schild:disabled { opacity:.5; border-style:dashed; }

.tz { display:grid; grid-template-columns:34px minmax(0, 1fr) auto; align-items:center; gap:8px; padding:5px 6px; border-radius:7px; }
.tz + .tz { margin-top:3px; }
.tz.ich { background:rgba(255,207,106,.1); }
.tz .bildnis { width:32px; height:32px; font-size:15px; border-width:2px; }
.tz-n { font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tz-n small { display:block; font-weight:500; font-size:12.5px; color:var(--text-3); }
.tz .tuben { display:flex; gap:1px; color:var(--text-3); margin-top:2px; }
.tz .tuben .spg-tube { width:10px; height:18px; }
.tz-w { font:900 20px var(--kopf); color:var(--gold); text-align:right; min-width:42px; font-variant-numeric:lining-nums tabular-nums; }
.tf-regel { margin-top:8px; padding:6px 8px; border-radius:7px; font-size:12.5px; line-height:1.4; color:var(--text-2); background:rgba(0,0,0,.18); }
:root[data-theme="light"] .tf-regel { background:rgba(120,90,40,.08); }
.tf-regel .spg-misch { vertical-align:middle; }
.vz { padding:4px 7px; border-left:3px solid var(--akz); background:rgba(0,0,0,.18); border-radius:0 5px 5px 0; color:var(--text-2); font-size:13px; }
:root[data-theme="light"] .vz { background:rgba(255,255,255,.55); }
.vz b { color:var(--text); } .vz small { display:block; color:var(--text-3); font-size:12.5px; }
.vz.sys { border-left-color:transparent; color:var(--text-3); font-style:italic; }
.vz .vz-ta { display:inline-flex; gap:2px; vertical-align:middle; } .vz .vz-ta svg { width:20px; height:20px; }

#meldungen { position:absolute; left:50%; top:100px; width:min(660px, 90%); transform:translateX(-50%); z-index:30; display:flex; flex-direction:column; gap:6px; pointer-events:none; }
.meldung { padding:8px 14px; border-radius:9px; background:var(--panel-solid); border:1px solid var(--akz); color:var(--text); font-size:15px; line-height:1.4; text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,.45); animation:mein .3s ease-out; }
.meldung b { color:var(--akz-hell); }
.meldung.weg { opacity:0; transform:translateY(-6px); transition:opacity .5s, transform .5s; }
@keyframes mein { from { opacity:0; transform:translateY(-8px); } }
.meldung .spg-misch { vertical-align:middle; }

.ov-box { position:relative; }
.ov-zu { position:sticky; float:right; top:-8px; margin:-8px -14px 0 8px; z-index:5; width:40px; height:40px; border-radius:50%; border:1px solid var(--linie); background:var(--panel2); color:var(--text);
  font:700 24px/1 var(--sans); display:flex; align-items:center; justify-content:center; padding:0; }
.en-podest { display:flex; justify-content:center; align-items:flex-end; gap:16px; margin:4px 0 12px; }
.en-podest .pd { display:flex; flex-direction:column; align-items:center; gap:4px; }
.en-podest .pd .bildnis { width:64px; height:64px; }
.en-podest .pd.p1 .bildnis { width:84px; height:84px; border-color:var(--gold); }
.en-podest .pd b { font:700 14px var(--kopf); max-width:130px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.en-podest .pd .stufe { width:96px; border-radius:6px 6px 0 0; background:linear-gradient(180deg, var(--holz-a), var(--holz-b)); color:#fff4dc; font:900 20px/1 var(--kopf); display:flex; align-items:center; justify-content:center; }
.en-podest .pd.p1 .stufe { height:62px; } .en-podest .pd.p2 .stufe { height:44px; } .en-podest .pd.p3 .stufe { height:30px; } .en-podest .pd.p4 .stufe { height:20px; }

.flieger .spg-tafel, .flieger .spg-stempel, .flieger .spg-tube { width:100%; height:100%; display:block; filter:drop-shadow(4px 8px 6px rgba(40,20,0,.4)); }

#stage.hoch #kopf { padding-left:12px; gap:8px; height:56px; }
#stage.hoch #kopf .logo { font-size:16px; letter-spacing:1px; } #stage.hoch #kopf .logo small { font-size:12px; }
#stage.hoch #kopf .k-phase, #stage.hoch #kopf .trenner { display:none; }
#stage.hoch #kopf .runde b { font-size:17px; }
#stage.hoch #feld { left:8px; right:8px; top:72px; bottom:8px; }
#stage.hoch #seite { display:none; left:8px; right:8px; width:auto; top:72px; bottom:auto; max-height:70%; z-index:45; }
#stage.hoch #seite.offen { display:flex; }
#stage.hoch #seite #pchat { min-height:240px; }
#stage.hoch #plaetze { height:auto; gap:8px; flex-wrap:wrap; }
#stage.hoch .sitz .bildnis { width:52px; height:52px; }
#stage.hoch .schild { min-width:0; max-width:150px; padding:4px 7px; }
#stage.hoch .schild b { font-size:15px; }
#stage.hoch #bogen { inset:14px 14px 16px; }
#stage.hoch #auslage { left:10px; right:10px; top:10px; height:36%; gap:14px; }
#stage.hoch .ta { max-width:31%; }
#stage.hoch #stapel, #stage.hoch #ablage { top:calc(36% + 30px); width:76px; height:78px; }
#stage.hoch #stapel { left:14px; } #stage.hoch #ablage { right:14px; }
#stage.hoch #stempelreihe { height:34%; gap:8px; flex-wrap:wrap; align-content:flex-end; }
#stage.hoch .st-slot { width:112px; height:auto; }
#stage.hoch #unten { height:auto; flex-direction:column; }
#stage.hoch #kasten, #stage.hoch #rechnung { min-height:206px; }
#stage.hoch #kasten { flex-direction:column; align-items:stretch; }
#stage.hoch #ich-bild { flex-direction:row; justify-content:center; }
#stage.hoch #stempel { gap:12px; }
#stage.hoch .st-knopf { width:92px; height:92px; }
#stage.hoch #rechnung { grid-template-columns:repeat(3, minmax(0, 1fr)); }
#stage.hoch .rg-summe { grid-column:1 / -1; flex-direction:row; gap:12px; border-left:0; border-top:2px solid rgba(255,255,255,.25); padding-top:4px; }
#stage.hoch .rg-summe b { font-size:40px; }
#stage.hoch #bedien { flex:none; }
#stage.hoch .auftrag { height:64px; font-size:16px; }
#stage.hoch #meldungen { top:120px; }

#stage.quer-handy #kopf { height:64px; padding-left:12px; gap:10px; }
#stage.quer-handy #kopf .logo { font-size:18px; } #stage.quer-handy #kopf .logo small, #stage.quer-handy .runde { font-size:16px; }
#stage.quer-handy #kopf .k-phase { display:none; }
#stage.quer-handy #kopf .kb-ic { width:72px; height:58px; }
#stage.quer-handy #feld { top:80px; right:8px; left:8px; bottom:6px; gap:4px; }
#stage.quer-handy #seite { display:none; left:auto; right:8px; width:420px; top:80px; bottom:8px; z-index:45; }
#stage.quer-handy #seite.offen { display:flex; }
#stage.quer-handy #plaetze { height:76px; gap:12px; }
#stage.quer-handy .sitz .bildnis { width:56px; height:56px; }
#stage.quer-handy .schild b { font-size:17px; } #stage.quer-handy .schild .lage { font-size:16px; height:20px; }
#stage.quer-handy .schild { min-width:0; max-width:200px; padding:3px 8px; }
#stage.quer-handy #tischplatte { min-height:180px; margin-bottom:12px; }
#stage.quer-handy #auslage { left:120px; right:120px; top:6px; height:60%; }
#stage.quer-handy #stapel, #stage.quer-handy #ablage { width:82px; height:86px; top:10px; }
#stage.quer-handy :is(.ta .ta-name, #stapel b) { font-size:16px; }
#stage.quer-handy #stempelreihe { height:38%; }
#stage.quer-handy .st-slot .st-feld { width:62px; height:62px; }
#stage.quer-handy .st-slot :is(.st-name, .st-zeit, .st-nr) { font-size:16px; }
#stage.quer-handy #unten { height:150px; }
#stage.quer-handy .st-knopf { width:76px; height:76px; }
#stage.quer-handy #bedien { flex-basis:320px; }
#stage.quer-handy .auftrag { height:64px; font-size:16px; }
#stage.quer-handy .bd-knoepfe .kb, #stage.quer-handy .bd-knoepfe .schild { min-height:68px; font-size:17px; }
#stage.quer-handy :is(.rg-titel, .rg-ding, .rg-ding small, .rg-summe small, .rg-leer) { font-size:16px; }
#stage.quer-handy .meldung { font-size:17px; }
#stage.quer-handy #meldungen { top:84px; }
#stage.quer-handy :is(.tz-n, .tz-n small, .vz, .vz small, .tf-regel, .ch-tabs button) { font-size:16px; }
@media (pointer: coarse) {
  .st-knopf { min-width:76px; min-height:76px; }
  #stage.hoch .bd-knoepfe .kb, #stage.hoch .bd-knoepfe .schild { min-height:56px; font-size:17px; }
  .ov-zu { width:52px; height:52px; }
  .schild .lage, .st-slot .st-zeit, .st-slot .st-name { font-size:14px; }
}

.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; }
.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; width:172px; } .bsp-ka > span { display:block; width:54px; height:56px; } .bsp-ka svg { width:100%; height:100%; display:block; }
.bsp-t { font-size:14px; line-height:1.35; } .bsp-t .ok { color:var(--gruen); font-size:18px; } .bsp-t i { color:var(--text-2); }
.bsp-tipp { font-size:14px; color:var(--text-2); font-style:italic; }
#stage.hoch .bsp-t, #stage.hoch .bsp-tipp { font-size:15px; } #stage.hoch .bsp-reihe { flex-direction:column; align-items:flex-start; }
#stage.quer-handy .bsp-t, #stage.quer-handy .bsp-tipp { font-size:16px; }

#seite { bottom:auto; }
#pchat { flex:none; height:200px; }
#kasten { background:linear-gradient(180deg, rgba(110,66,26,.45), rgba(52,30,10,.72)), var(--holz) center/cover; }
:root[data-theme="light"] #kasten { background:linear-gradient(180deg, rgba(200,150,90,.25), rgba(120,80,40,.45)), var(--holz) center/cover; }
#rechnung { background:repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 3px, transparent 3px 10px), var(--tafel); }
#bedien { background:var(--papier) center/cover, #e6d5b0; border-color:rgba(90,60,20,.5); color:#2a1d0c; }
#bedien .auftrag { color:#2a1d0c; } #bedien .auftrag b { color:#7a3608; }
#stage.quer-handy #seite { bottom:8px; } #stage.hoch #pchat { flex:none; height:300px; } #stage.quer-handy #pchat { flex:1 1 auto; height:auto; }
#tischplatte { margin:0 38px 16px; } #stage.hoch #tischplatte, #stage.quer-handy #tischplatte { margin-left:0; margin-right:0; }
#stage.hoch #kopf .logo, #stage.hoch #k-ziel-box { display:none; } #stage.hoch #kopf { gap:6px; padding:0 8px; } #stage.hoch #kopf .rechts { gap:5px; } #stage.hoch #auslage { height:42%; } #stage.hoch #stapel, #stage.hoch #ablage { top:calc(42% + 34px); }
#stage.hoch #kopf { height:64px; } #stage.hoch #feld, #stage.hoch #seite { top:80px; }
#stage.hoch #kopf .kb-ic { width:58px; height:58px; } #stage.hoch #kopf .kb-ic .sgzi { width:24px; height:24px; }
#stage.hoch .runde { font-size:14px; letter-spacing:1px; }
#stage.hoch :is(.rg-titel, .rg-ding, .rg-ding small, .rg-summe small, .rg-leer, .st-slot .st-zeit, .st-slot .st-name, #stapel b, .ta .ta-name) { font-size:14px; }
#stage.hoch .schild .lage { font-size:14px; height:19px; }
#stage.hoch .bd-knoepfe .kb, #stage.hoch .bd-knoepfe .schild { min-height:60px; }
#stage.hoch :is(.tz-n small, .vz, .vz small, .tf-regel, .ch-tabs button, .meldung) { font-size:14px; }
.st-knopf svg, .st-knopf .taste, #b-weiter > *, .bd-knoepfe .schild > * { pointer-events:none; }
#stage.quer-handy #auslage { height:50%; top:4px; } #stage.quer-handy .ta .ta-name { display:none; } #stage.quer-handy #stempelreihe { height:46%; bottom:4px; } #stage.quer-handy .st-slot .st-feld { width:58px; height:58px; } #stage.quer-handy .st-slot { width:170px; }
#stage.quer-handy #kopf { height:74px; } #stage.quer-handy #feld, #stage.quer-handy #seite { top:90px; } #stage.quer-handy #kopf .kb-ic { width:74px; height:68px; font-size:16px; } #stage.quer-handy #tischplatte { margin-left:34px; margin-right:34px; }
#stage.quer-handy #tischplatte { margin-left:56px; margin-right:56px; } #stage.quer-handy #unten { margin:0 24px; }
:root[data-theme="light"] .en-liste { background:#2c2218; border-radius:12px; padding:8px; }

.plus { position:absolute; z-index:64; transform:translate(-50%, -50%); font:900 26px/1 var(--kopf); pointer-events:none; text-shadow:0 2px 3px rgba(0,0,0,.5); animation:plusAuf 1.2s ease-out forwards; }
.plus.gut { color:#7fe08a; } .plus.schlecht { color:#ff9a84; }
:root[data-theme="light"] .plus.gut { color:#1f7a2e; text-shadow:0 1px 0 #fff; } :root[data-theme="light"] .plus.schlecht { color:#b02a1e; text-shadow:0 1px 0 #fff; }
@keyframes plusAuf { 0% { opacity:0; transform:translate(-50%, -20%) scale(.7); } 20% { opacity:1; transform:translate(-50%, -60%) scale(1.1); } 100% { opacity:0; transform:translate(-50%, -160%) scale(1); } }
#aufdeck { position:absolute; left:20%; right:20%; top:4px; height:6px; border-radius:3px; background:rgba(90,60,30,.25); opacity:0; transition:opacity .2s; pointer-events:none; z-index:3; }
#aufdeck.an { opacity:1; }
#aufdeck i { display:block; height:100%; width:0; border-radius:3px; background:linear-gradient(90deg, #c8322b, #e2b11c, #2c56a8); }
#b-weiter.puls { animation:dranPuls 1s ease-in-out infinite alternate; }
@keyframes dranPuls { from { box-shadow:0 2px 0 #6a4a06, 0 0 0 0 rgba(255,216,138,.0); } to { box-shadow:0 2px 0 #6a4a06, 0 0 0 7px rgba(255,216,138,.55); } }
.rg-ding.abg .spg-misch circle:nth-of-type(2), .rg-ding.abg .spg-misch circle:nth-of-type(3) { animation:klecksLauf 1.6s ease-in-out infinite alternate; }
.rg-ding.abg .spg-misch circle:nth-of-type(3) { animation-direction:alternate-reverse; }
@keyframes klecksLauf { from { transform:translateX(0); } to { transform:translateX(3px); } }
@media (prefers-reduced-motion: reduce) { #b-weiter.puls, .rg-ding.abg .spg-misch circle, .plus { animation:none; } }
#stage.hoch #tischplatte { margin-left:28px; margin-right:28px; } #stage.hoch #unten { margin:0 18px; } #stage.hoch #feld { gap:12px; }

#count { z-index:20; }
.flieger svg * { filter:none !important; }
.ta.gold::after { content:""; position:absolute; inset:-5px; border-radius:14px; border:4px solid #e3b22a; box-shadow:0 0 14px rgba(255,214,90,.75), inset 0 0 8px rgba(255,214,90,.5); pointer-events:none; animation:goldGlanz 1.6s ease-in-out infinite alternate; }
@keyframes goldGlanz { to { box-shadow:0 0 22px rgba(255,214,90,.95), inset 0 0 12px rgba(255,214,90,.7); } }
@media (prefers-reduced-motion: reduce) { .ta.gold::after { animation:none; } }
#aufgabe-schild { position:absolute; left:50%; top:10px; transform:translateX(-50%) rotate(-1.2deg); z-index:6; padding:6px 16px; border-radius:4px; background:#fff6dc; color:#5a1e08;
  font:800 16px/1.25 var(--kopf); box-shadow:0 3px 8px rgba(60,30,0,.35); border:1px solid #c9a46a; white-space:nowrap; max-width:92%; overflow:hidden; text-overflow:ellipsis; }
#aufgabe-schild::before { content:""; position:absolute; left:50%; top:-6px; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:radial-gradient(circle at 35% 35%, #ff8a6a, #a8231a); box-shadow:0 1px 2px rgba(0,0,0,.4); }
.rg-spalte.aus { opacity:.55; }
.rg-spalte.aus .rg-dinge { text-decoration:line-through; }
.rg-nicht { font:700 12.5px var(--sans); color:var(--tafel-2); font-style:italic; }
#rechnung.hinweis .rg-ding.abg { animation:hinweisBlink .7s ease-in-out 4 alternate; }
@keyframes hinweisBlink { to { outline-color:#ffd88a; background:rgba(255,216,138,.35); } }
#kasten.duo #stempel { flex-direction:column; gap:6px; }
.duo-reihe { display:flex; align-items:center; gap:8px; }
.duo-nm { min-width:92px; max-width:130px; padding:3px 8px; border-radius:6px; background:var(--schild); color:var(--schild-t); font:700 14px/1.2 var(--kopf); border-left:5px solid var(--sf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#kasten.duo .st-knopf { width:64px; height:64px; }
#stage.hoch #kasten.duo .st-knopf, #stage.quer-handy #kasten.duo .st-knopf { width:68px; height:68px; }
#stage.hoch .duo-reihe { flex-wrap:wrap; justify-content:center; } #stage.hoch .duo-nm { flex-basis:100%; max-width:none; text-align:center; font-size:15px; }
#stage.quer-handy #unten:has(#kasten.duo) { height:190px; }
#stage.quer-handy .duo-nm { font-size:16px; }
.kurs-gitter { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; margin-top:6px; }
.kurs-gitter button { display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:6px 8px; text-align:left; line-height:1.2; min-height:70px; }
.kurs-gitter button b { font:900 18px var(--kopf); }
.kurs-gitter button span { font-size:12.5px; }
.kurs-gitter button i { font-style:normal; font-size:12.5px; color:var(--gold); display:flex; align-items:center; gap:3px; }
.kurs-gitter button i .sgzi { width:13px; height:13px; }
.kurs-gitter button:disabled { opacity:.5; border-style:dashed; cursor:default; }
#stage.hoch .kurs-gitter, #stage.quer-handy .kurs-gitter { grid-template-columns:repeat(2, minmax(0, 1fr)); }
#stage.quer-handy .kurs-gitter button span, #stage.quer-handy .kurs-gitter button i { font-size:16px; }
.lw-gast { margin-top:6px; } .lw-gast input { max-width:260px; }
.abz-liste { flex-basis:100%; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:5px; margin-bottom:6px; }
.abz { display:grid; grid-template-columns:22px minmax(0, 1fr); column-gap:6px; align-items:center; padding:4px 8px; border-radius:7px; background:rgba(0,0,0,.18); border:1px dashed var(--linie); color:var(--text-3); }
.abz.da { border-style:solid; border-color:var(--gold); color:var(--text); background:rgba(255,207,106,.1); }
.abz .sgzi { width:20px; height:20px; grid-row:span 2; } .abz.da .sgzi { color:var(--gold); }
.abz b { font-size:12.5px; line-height:1.2; } .abz small { font-size:12px; color:var(--text-3); }
#stage.hoch .abz-liste, #stage.quer-handy .abz-liste { grid-template-columns:minmax(0, 1fr); }
#stage.quer-handy .abz b, #stage.quer-handy .abz small { font-size:16px; }
#anl-bsp .bsp { margin:8px 0 12px; }
#stage.lobbyhg #grund { filter:blur(1.5px) brightness(.85); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(1.5px) brightness(1.02); }
.lo-start, .lo-rechts .lo-spieler, .lo-rechts .lo-chat { border:5px solid #6e4a26; box-shadow:inset 0 0 0 1px rgba(255,220,170,.25), 0 10px 26px rgba(0,0,0,.45); }
:root[data-theme="light"] :is(.lo-start, .lo-rechts .lo-spieler, .lo-rechts .lo-chat) { border-color:#b08a5a; }
#lobby, #tisch { background:linear-gradient(180deg, rgba(8,6,4,.12), rgba(6,4,2,.4)); }
.klassenfoto { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:6px 0 2px; }
.klassenfoto .bildnis { width:44px; height:44px; }

#stage.quer-handy #auslage { left:108px; right:calc(40% + 10px); top:6px; height:calc(100% - 12px); gap:14px; }
#stage.quer-handy .ta { height:calc(100% - 10px); max-width:46%; }
#stage.quer-handy #stempelreihe { left:auto; right:104px; width:40%; top:6px; bottom:6px; height:auto; flex-wrap:wrap; align-content:center; align-items:center; gap:6px 10px; }
#stage.quer-handy .st-slot { width:118px; height:auto; }
#stage.quer-handy .st-slot .st-feld { width:54px; height:54px; }
#stage.quer-handy #ablage { right:12px; top:auto; bottom:12px; width:78px; height:80px; }
#stage.quer-handy #stapel { left:12px; top:auto; bottom:30px; width:78px; height:80px; }
#stage.quer-handy #aufgabe-schild { font-size:16px; top:2px; }
#stage.hoch #stempelreihe { flex-wrap:nowrap; gap:6px; height:30%; align-items:flex-end; }
#stage.hoch .st-slot { width:96px; height:auto; }
#stage.hoch .st-slot .st-feld { width:62px; height:62px; }
#stage.hoch #stapel, #stage.hoch #ablage { top:calc(42% + 22px); width:64px; height:66px; }
#stage.hoch #stapel b { bottom:-22px; }
#stage.hoch #aufgabe-schild { font-size:15px; }
#aufgabe-schild { left:auto; right:12px; top:22px; transform:rotate(2deg); width:150px; white-space:normal; text-align:center; font-size:15px; padding:10px 10px 8px; }
#aufgabe-schild small { display:block; font:800 12.5px var(--sans); letter-spacing:1px; text-transform:uppercase; color:#8a3a14; margin-bottom:2px; }
#bogen.mit-aufgabe #ablage { visibility:hidden; }
#stage.hoch #aufgabe-schild { width:118px; top:calc(42% + 16px); font-size:14px; padding:6px; }
#stage.quer-handy #aufgabe-schild { width:118px; top:auto; bottom:8px; font-size:16px; padding:6px; }
#stage.quer-handy #aufgabe-schild small, #stage.hoch #aufgabe-schild small { font-size:12.5px; }
#stage.quer-handy #aufgabe-schild small { font-size:16px; } #stage.hoch #aufgabe-schild small { font-size:14px; }
#stage.quer-handy #aufgabe-schild { width:132px; } #stage.quer-handy #aufgabe-schild small { letter-spacing:0; }
#stage.hoch #aufgabe-schild { width:128px; } #stage.hoch #aufgabe-schild small { letter-spacing:0; }
#stage.hoch .runde, #stage.hoch .schild .lage, #stage.hoch :is(.rg-titel, .rg-ding, .rg-ding small, .rg-summe small, .rg-leer, .rg-nicht, .st-slot .st-zeit, .st-slot .st-name, .st-slot .st-nr, #stapel b, .ta .ta-name, #aufgabe-schild, #aufgabe-schild small, .tz-n small, .vz, .vz small, .tf-regel, .ch-tabs button, .meldung, .duo-nm) { font-size:16px; }
#stage.hoch .schild .lage { height:20px; }
#stage.hoch .st-slot .st-nr { width:28px; height:28px; line-height:28px; left:-16px; top:4px; }
#stage.hoch #kopf { height:70px; } #stage.hoch #feld, #stage.hoch #seite { top:86px; }
#stage.hoch #kopf .kb-ic { width:66px; height:66px; }
#stage.hoch #k-verlauf { width:auto; min-width:66px; font-size:16px; padding:0 8px; } #stage.hoch .runde { font-size:16px; }
#stage.hoch .bd-knoepfe .kb, #stage.hoch .bd-knoepfe .schild { min-height:66px; }
#stage.hoch .schild { max-width:172px; }
#stage.hoch #kopf .rechts { gap:4px; }
#stage.hoch #k-verlauf .sgzi { width:26px; height:26px; } #stage.hoch .rg-ding small { white-space:normal; text-align:center; }
#stage.quer-handy :is(.rg-nicht, .duo-nm, .kurs-gitter button b) { font-size:16px; }
#pchat { height:150px; } .tz + .tz { margin-top:1px; } .tz { padding:3px 6px; }

#auslage[data-n="4"] { gap:16px; } #auslage[data-n="4"] .ta { max-width:22.5%; }
#stage.hoch #auslage[data-n="4"] { gap:6px; } #stage.hoch #auslage[data-n="4"] .ta { max-width:24%; }
#stage.quer-handy #auslage[data-n="4"] { gap:6px; } #stage.quer-handy #auslage[data-n="4"] .ta { max-width:24%; height:auto; }
#stage.quer-handy #auslage[data-n="3"] .ta { max-width:32%; height:auto; }
#stage.hoch #bogen.solo #auslage { height:46%; } #stage.hoch #bogen.solo #auslage .ta { max-width:46%; }
#stage.hoch #bogen.solo #auslage[data-n="3"] .ta { max-width:32%; }
#meldungen { width:min(520px, 86%); }
#stage:has(#bogen.mit-aufgabe) #meldungen { top:148px; }
#stage.hoch:has(#bogen.mit-aufgabe) #meldungen { top:170px; }
#stage.quer-handy:has(#bogen.mit-aufgabe) #meldungen { top:120px; }
.kl { display:flex; align-items:center; gap:10px; text-align:left; } .kl .bildnis { flex:none; }
.lw-kopf { grid-column:1 / -1; margin-top:6px; padding-top:6px; border-top:1px dashed var(--linie); font-size:12.5px; letter-spacing:2px; text-transform:uppercase; color:var(--akz); font-weight:800; }
.duo-haus { display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:center; gap:6px 10px; margin-top:8px; }
#stage.quer-handy .lw-kopf { font-size:16px; letter-spacing:1px; }
.kb-klein { padding:4px 10px; min-height:32px; font-size:13px; vertical-align:middle; margin-left:6px; }
#stage.hoch .kb-klein, #stage.quer-handy .kb-klein { min-height:44px; font-size:16px; }
.zh { display:flex; gap:12px; align-items:flex-start; text-align:left; }
.zh-liste { flex:1; display:grid; gap:4px; }
.zh-z { display:grid; grid-template-columns:26px minmax(0, 1fr) auto; gap:8px; align-items:center; padding:4px 8px; border-radius:6px; background:rgba(0,0,0,.18); border:1px solid var(--linie); }
.zh-z b { font:900 17px var(--kopf); color:var(--gold); } .zh-z span { font-size:14px; } .zh-z i { font-style:normal; font-weight:800; font-size:14px; }
.zh-z.zu { opacity:.55; border-style:dashed; }
.zh-hin { margin-top:10px; font-size:14px; color:var(--text-2); }
.diplom { display:block; width:100%; max-width:560px; margin:12px auto 0; filter:drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.wa { position:relative; display:flex; justify-content:space-between; gap:8px; padding:6px 10px 10px; margin-bottom:5px; border-radius:7px; background:rgba(0,0,0,.18); border:1px solid var(--linie); font-size:14px; overflow:hidden; }
.wa i { position:absolute; left:0; bottom:0; height:4px; width:var(--w); background:var(--akz); }
.wa.fertig { border-color:var(--gold); } .wa.fertig i { background:var(--gold); }
#stage.quer-handy .wa, #stage.hoch .wa { font-size:16px; }
#auslage[data-n="4"] .ta .ta-name { white-space:normal; left:-6px; right:-6px; bottom:auto; top:calc(100% + 4px); font-size:12px; line-height:1.15; }
#stage.hoch #auslage[data-n="4"] .ta .ta-name { display:none; }
#stage.hoch .st-slot .st-zeit { white-space:normal; text-align:center; max-width:100%; }
#stage.hoch #meldungen { top:132px; }
#stage.hoch #hinweis { left:50%; bottom:auto; top:44%; width:max-content; max-width:92%; }
#stage.quer-handy #auslage[data-n="4"] .ta { width:calc(25% - 5px); height:auto; max-width:none; }
#stage.quer-handy #auslage[data-n="3"] .ta { width:calc(33.3% - 10px); height:auto; max-width:none; }
#stage.quer-handy #hinweis { left:50%; bottom:auto; top:38%; width:max-content; max-width:80%; }
#stage.quer-handy #auslage { right:calc(40% + 112px); }

.eilt { display:block; padding:3px 8px; border-radius:6px; background:#b5281c; color:#fff6e4; animation:eiltPuls .5s ease-in-out infinite alternate; }
#auftrag .eilt, #auftrag .eilt b { color:#fff; } #stage.quer-handy .eilt-zu { display:none; }
@keyframes eiltPuls { to { background:#d8382a; box-shadow:0 0 0 3px rgba(255,184,163,.5); } }
.ta.zaehlt { animation:zaehltLeuchten .56s ease-out; z-index:2; }
.ta.zaehlt-aus { animation:zaehltAus .56s ease-out; }
@keyframes zaehltLeuchten { 0% { transform:none; filter:none; } 30% { transform:translateY(-6px) scale(1.06); filter:drop-shadow(0 0 14px rgba(255,236,160,.95)); } 100% { transform:none; filter:none; } }
@keyframes zaehltAus { 30% { filter:grayscale(.8) brightness(.8); } }
.stempelring { position:absolute; transform:translate(-50%, -50%); border-radius:50%; border:3px solid #ffd88a; box-shadow:0 0 12px rgba(255,216,138,.8); pointer-events:none; animation:ringAus .9s ease-out forwards; }
@keyframes ringAus { from { opacity:1; transform:translate(-50%, -50%) scale(.85); } to { opacity:0; transform:translate(-50%, -50%) scale(1.35); } }
.kreidekreuz { width:100%; height:100%; } .kreidekreuz path { fill:none; stroke:rgba(150,40,20,.75); stroke-width:6; stroke-linecap:round; stroke-dasharray:46; animation:kreide .5s ease-out both; }
@keyframes kreide { from { stroke-dashoffset:46; } to { stroke-dashoffset:0; } }
.banner.klein.unten { top:72%; }
#meldungen { top:132px; }
#stage:has(#bogen.mit-aufgabe) #meldungen { top:172px; }
#stage.quer-handy #meldungen { top:84px; } #stage.quer-handy:has(#bogen.mit-aufgabe) #meldungen { top:120px; }
#stage.hoch #meldungen { top:132px; } #stage.hoch:has(#bogen.mit-aufgabe) #meldungen { top:170px; }
@media (prefers-reduced-motion: reduce) { .eilt, .ta.zaehlt, .stempelring { animation:none; } }

.zf { display:inline-block; width:.62em; text-align:center; font-style:normal; }

.ta.fehler { animation:fehlerBlink .6s ease-in-out 5 alternate; }
@keyframes fehlerBlink { to { filter:drop-shadow(0 0 12px rgba(220,60,40,.95)); transform:translateY(-3px); } }
.ta[data-fehler]::before { content:attr(data-fehler); position:absolute; left:50%; top:auto; bottom:6px; transform:translateX(-50%) rotate(-2deg); z-index:3; padding:2px 9px; border-radius:4px;
  background:#fff6dc; color:#a8231a; border:1px solid #c9a46a; font:800 13px/1.25 var(--sans); white-space:nowrap; box-shadow:0 2px 5px rgba(60,30,0,.35); pointer-events:none; }
#stage.hoch .ta[data-fehler]::before, #stage.quer-handy .ta[data-fehler]::before { font-size:16px; }
.pkt-chip { display:flex; align-items:baseline; justify-content:center; gap:4px; width:100%; height:100%; border-radius:17px; background:#2f6b2a; color:#fff; box-shadow:0 3px 8px rgba(0,0,0,.4); border:1px solid #bfe3a8; }
.pkt-chip b { font:900 18px/34px var(--kopf); } .pkt-chip small { font:700 12px var(--sans); color:#e2f5d6; }
#k-b-box { position:relative; min-width:64px; }
#k-b-box::after { content:""; position:absolute; left:0; bottom:-3px; height:3px; width:var(--b, 100%); background:var(--gold); border-radius:2px; transition:width .1s linear; }
#k-b-box.knapp b { color:#c0392b; } #k-b-box.knapp::after { background:#c0392b; }
#stage.hoch #k-z-box:has(~ #k-b-box:not([hidden])) { display:none; }
.duo-reihe.spaet { opacity:.45; filter:grayscale(.8); } .duo-reihe.spaet .duo-nm::after { content:" · zu spät"; }
.taste-t { margin-left:6px; padding:0 5px; border-radius:4px; border:1px solid currentColor; font:700 11.5px/16px var(--sans); opacity:.75; }
.ti-kurz { padding:6px 10px; border-radius:8px; background:rgba(0,0,0,.16); border:1px dashed var(--linie); font-size:14px; font-weight:700; color:var(--text); }
.ti-gruppe { margin-top:4px; padding-top:6px; border-top:1px dashed var(--linie); font-size:12.5px; letter-spacing:2px; text-transform:uppercase; color:var(--akz); font-weight:800; }
.ti-opt small { font-size:13px; }
#stage.hoch :is(.ti-kurz, .ti-gruppe), #stage.quer-handy :is(.ti-kurz, .ti-gruppe) { font-size:16px; letter-spacing:1px; }
@media (prefers-reduced-motion: reduce) { .ta.fehler { animation:none; outline:3px solid #c0392b; } }

.en-podest .pd .stufe { width:112px; background:linear-gradient(180deg, #7a4f22, #4a2e12); color:#fff4dc; text-shadow:0 1px 0 rgba(0,0,0,.6); flex-direction:column; gap:2px; border:1px solid #2e1c0a; }
.en-podest .pd.p1 .stufe { height:78px; } .en-podest .pd.p2 .stufe { height:58px; } .en-podest .pd.p3 .stufe { height:42px; } .en-podest .pd.p4 .stufe { height:32px; }
.pd-platz { font:900 20px/1 var(--kopf); } .pd-tuben { font:700 12.5px/1.1 var(--sans); color:#ffd88a; }
.en-podest .pd.p4 .pd-tuben, .en-podest .pd.p3 .pd-tuben { display:none; }
#endtafel .sz-chip { color:#f3ead8; } #endtafel .sz-chip em { color:#e2d6bf; }
.en-podest .pd.steigt { animation:pdSteigt .55s cubic-bezier(.2,1.3,.4,1) both; animation-delay:var(--v, 0s); }
@keyframes pdSteigt { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:none; } }
#bedien #en-zurueck { position:static; transform:none; margin-top:auto; justify-content:center; flex-wrap:wrap; padding:6px; background:none; border:0; }
#bedien:has(#en-zurueck[style*="flex"]) .bd-knoepfe { display:none; }
#ansicht-menu { position:absolute; }
#ansicht-menu .am-zu { position:sticky; top:0; align-self:flex-end; margin:-4px -4px -26px 0; width:32px; height:32px; border-radius:50%; border:1px solid var(--linie); background:var(--panel-solid); color:var(--text); font:700 20px/1 var(--sans); cursor:pointer; z-index:2; }
#stage.hoch #ansicht-menu .am-zu, #stage.quer-handy #ansicht-menu .am-zu { width:48px; height:48px; margin-bottom:-40px; }
#en-runden { margin-top:10px; max-height:260px; overflow:auto; border-radius:10px; background:rgba(0,0,0,.18); border:1px solid var(--linie); padding:6px 8px; }
.rv { display:flex; flex-direction:column; gap:4px; }
.rv-z { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:4px 6px; border-radius:7px; background:rgba(255,255,255,.04); }
.rv-r { min-width:24px; font:900 15px var(--kopf); color:var(--akz); }
.rv-ta { display:inline-flex; gap:2px; } .rv-ta svg { width:22px; height:22px; }
.rv-w { font:900 16px var(--kopf); color:var(--gold); }
.rv-af { font-size:12px; color:var(--text-3); font-style:italic; }
.rv-je { display:flex; flex-wrap:wrap; gap:4px; margin-left:auto; }
.rv-p { padding:1px 8px; border-radius:999px; font-size:12.5px; border:1px solid var(--linie); white-space:nowrap; }
.rv-p i { font-style:normal; opacity:.85; } .rv-p.ich { font-weight:800; }
.rv-p.ok { background:rgba(80,170,90,.22); border-color:rgba(127,217,154,.6); }
.rv-p.falsch { background:rgba(200,60,40,.2); border-color:rgba(255,140,120,.6); }
.rv-p.letzter, .rv-p.ohne { opacity:.7; border-style:dashed; }
#stage.hoch :is(.rv-p, .rv-af), #stage.quer-handy :is(.rv-p, .rv-af) { font-size:15px; }
#pop-text .rv { max-height:60vh; overflow:auto; text-align:left; }
.abz-kurz { flex-basis:100%; display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:8px; border:1px solid var(--gold); background:rgba(255,207,106,.08); color:var(--text); cursor:pointer; font:inherit; text-align:left; margin-bottom:6px; }
.abz-kurz .sgzi { width:18px; height:18px; color:var(--gold); } .abz-kurz span { display:inline-flex; gap:2px; flex:1; } .abz-kurz small { color:var(--text-3); font-size:12.5px; }
#stage.hoch .abz-kurz, #stage.quer-handy .abz-kurz { min-height:52px; font-size:16px; } #stage.hoch .abz-kurz small, #stage.quer-handy .abz-kurz small { font-size:15px; }
.ar[data-id] { cursor:pointer; } .ar[data-id]:hover, .ar[data-id]:focus-visible { outline:2px solid var(--akz); outline-offset:1px; }
.blase.lang { white-space:nowrap; animation-duration:2.8s; }
#stage.hoch #pop-x, #stage.quer-handy #pop-x { width:66px; height:66px; font-size:30px; }
#stage.hoch #pop-btns .kb, #stage.quer-handy #pop-btns .kb { min-height:66px; min-width:120px; font-size:18px; }
#stage:is(.hoch, .quer-handy) #en-zu { width:66px; height:66px; font-size:30px; }
#stage:is(.hoch, .quer-handy) #en-unter small { font-size:16px; }
#stage:is(.hoch, .quer-handy) .en-podest { gap:8px; }
#stage:is(.hoch, .quer-handy) .en-podest .pd b { font-size:18px; max-width:170px; }
#stage:is(.hoch, .quer-handy) .en-podest .pd .stufe { width:150px; }
#stage:is(.hoch, .quer-handy) .pd-platz { font-size:24px; } #stage:is(.hoch, .quer-handy) .pd-tuben { font-size:18px; }
#stage:is(.hoch, .quer-handy) .en-podest .pd.p3 .pd-tuben { display:block; }
#stage:is(.hoch, .quer-handy) #en-stat, #stage:is(.hoch, .quer-handy) #en-stat b { font-size:18px; }
#stage:is(.hoch, .quer-handy) :is(#en-runden-k, #en-revanche, #en-brett, #en-weg, #en-teilen) { min-height:66px; font-size:18px; }
#stage:is(.hoch, .quer-handy) .en-podest .pd b { white-space:normal; text-align:center; line-height:1.15; overflow:visible; }
#stage.quer-handy #en-zu { width:76px; height:76px; }
#stage.quer-handy :is(#en-runden-k, #en-revanche, #en-brett, #en-weg, #en-teilen) { min-height:76px; }
#stage.quer-handy :is(.rv-p, .rv-p i, .rv-af) { font-size:18px; }

.st-knopf.st-platz { display:inline-block; visibility:hidden; pointer-events:none; }
#kasten.eilt { outline:3px solid #c0392b; outline-offset:-3px; animation:kastenEilt .5s ease-in-out infinite alternate; }
@keyframes kastenEilt { to { outline-color:#ff8a6a; box-shadow:0 0 0 4px rgba(192,57,43,.35); } }
@media (prefers-reduced-motion: reduce) { #kasten.eilt { animation:none; } }
#kopf .kb-ic { width:46px; height:44px; }
.ch-tabs button { min-height:44px; }

@media (any-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); }
}

#stage:not(.hoch):not(.quer-handy) #seite { bottom:10px; width:300px; }
#stage:not(.hoch):not(.quer-handy) #pchat { flex:1 1 auto; height:auto; min-height:240px; }
#pchatwin { min-height:90px; }
#stage:not(.hoch):not(.quer-handy) #kopf { background:none; border-color:transparent; box-shadow:none; backdrop-filter:none; gap:8px; }
#stage:not(.hoch):not(.quer-handy) #kopf .trenner { display:none; }
#stage:not(.hoch):not(.quer-handy) #kopf :is(.logo, .runde:not([hidden]), .k-phase) { padding:5px 12px; border-radius:9px; background-image:linear-gradient(var(--panel), var(--panel)), var(--papier); background-size:cover; border:1px solid var(--linie); box-shadow:0 4px 10px rgba(0,0,0,.3); }
#stage:not(.hoch):not(.quer-handy) #kopf .k-phase:empty { display:none; }

#lernen { position:absolute; inset:0; z-index:60; display:flex; flex-direction:column; padding:14px 18px 16px; gap:10px; background:linear-gradient(180deg, rgba(8,6,4,.18), rgba(6,4,2,.42)); }
#lernen[hidden] { display:none; }
.ln-kopf { display:flex; align-items:center; gap:14px; padding:6px 10px 6px 16px; border-radius:10px; background-image:linear-gradient(var(--panel), var(--panel)), var(--papier); background-size:cover; border:1px solid var(--linie); box-shadow:0 6px 16px rgba(0,0,0,.35); }
.ln-titel { font:800 19px var(--kopf); color:var(--text); flex:1; min-width:0; }
.ln-fort { display:flex; gap:6px; align-items:center; } .ln-fort i { width:14px; height:14px; border-radius:50%; border:2px solid var(--akz); background:transparent; }
.ln-fort i.da { background:var(--gold); border-color:var(--gold); } .ln-fort i.jetzt { background:rgba(255,207,106,.35); box-shadow:0 0 0 3px rgba(255,207,106,.3); }
.ln-serie { display:inline-flex; gap:4px; align-items:center; font-weight:800; color:var(--gold); } .ln-serie .sgzi { width:18px; height:18px; }
.ln-zu { width:46px; height:44px; border-radius:50%; border:1px solid var(--linie); background:var(--panel-solid); color:var(--text); font:700 24px/1 var(--sans); cursor:pointer; }
.ln-haupt { flex:1; min-height:0; display:grid; grid-template-columns:250px minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto auto; gap:10px 16px; }
.ln-lehrer { grid-row:1 / span 3; display:flex; flex-direction:column; align-items:center; gap:12px; }
.ln-lehrer .bildnis { width:96px; height:96px; border:3px solid var(--gold); box-shadow:0 6px 14px rgba(0,0,0,.4); }
.ln-blase { position:relative; padding:12px 14px; border-radius:12px; background-image:linear-gradient(rgba(255,250,236,.94), rgba(255,250,236,.94)), var(--papier); background-size:cover; color:#2a1606; font:600 16px/1.4 var(--sans); box-shadow:0 6px 16px rgba(0,0,0,.35); border:1px solid #c9a46a; }
.ln-blase::before { content:""; position:absolute; top:-9px; left:50%; margin-left:-9px; border:9px solid transparent; border-top:0; border-bottom-color:#fffaec; }
.ln-blase b { color:#8a2410; } .ln-blase.neu { animation:lnBlase .35s ease-out; }
@keyframes lnBlase { from { opacity:.3; } }
.ln-bogen { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:14px; border-radius:6px; background:var(--papier) center/cover, #d8c39a; border:6px solid #6e4a26; box-shadow:0 8px 22px rgba(0,0,0,.45), inset 0 0 30px rgba(120,80,30,.18); min-height:0; }
.ln-ziel { font:800 20px var(--kopf); color:#3a2810; } .ln-ziel:empty { display:none; } .ln-ziel b { font-size:30px; color:#8a2410; }
.ln-aus, .ln-angebot { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:18px; }
.ln-angebot:empty { display:none; } .ln-angebot { padding-top:10px; border-top:2px dashed rgba(90,60,30,.35); }
.ln-ta { width:128px; aspect-ratio:120 / 124; padding:0; border:0; background:none; border-radius:12px; cursor:pointer; transition:transform .15s; }
.ln-ta svg { width:100%; height:100%; display:block; filter:drop-shadow(3px 6px 5px rgba(40,20,0,.35)); }
.ln-ta:hover:not(:disabled) { transform:translateY(-3px); } .ln-ta:disabled { cursor:default; opacity:.5; }
.ln-ta.gezaehlt { outline:4px solid #2f7d32; outline-offset:3px; }
.ln-ta.schon { animation:lnSchon .45s ease-in-out 2; } @keyframes lnSchon { 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }
.ln-ta.zaehlt { animation:zaehltLeuchten .56s ease-out; }
.ln-ta.fehler { animation:fehlerBlink .6s ease-in-out 5 alternate; }
.ln-angebot .ln-hinweis { flex-basis:100%; text-align:center; }
.ln-hinweis { font:700 15px var(--sans); color:#4a3418; }
.ln-aktion .ln-hinweis { color:var(--text); }
.ln-balken { width:70%; height:10px; border-radius:5px; background:rgba(90,60,30,.25); overflow:hidden; } .ln-balken i { display:block; height:100%; width:100%; background:linear-gradient(90deg, #c0392b, #e9b65c); }
.ln-balken[hidden] { display:none; }
.ln-palette { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)) auto; gap:8px; padding:10px 12px; border-radius:10px; background-image:linear-gradient(rgba(42,30,20,.92), rgba(42,30,20,.92)), var(--holz); background-size:cover; color:#f3ead8; min-height:96px; box-shadow:0 6px 16px rgba(0,0,0,.35); }
.ln-palette:empty { display:none; }
.ln-reihe b { display:block; font:800 13px var(--sans); letter-spacing:1px; text-transform:uppercase; color:#e9cf9a; } .ln-reihe .zf-n { font:900 18px var(--kopf); color:#fff; }
.ln-reihe > div { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.ln-ding { display:flex; flex-direction:column; align-items:center; font-size:12.5px; } .ln-ding small { font-size:12.5px; color:#e2d6bf; }
.ln-ding.neu { animation:lnDing .5s cubic-bezier(.2,1.5,.4,1); } @keyframes lnDing { from { opacity:0; transform:scale(.6); } }
.ln-ding.abg { padding:2px 4px; border-radius:6px; outline:1px dashed rgba(255,236,160,.6); }
.ln-leer { color:#a8987c; }
.ln-summe { display:flex; align-items:center; justify-content:center; padding-left:12px; border-left:2px solid rgba(233,207,154,.4); } .ln-summe b { font:900 44px var(--kopf); color:var(--gold); }
.ln-aktion { display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; min-height:60px; padding:8px; border-radius:10px; background-image:linear-gradient(var(--panel), var(--panel)), var(--papier); background-size:cover; }
.ln-stempel { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.ln-stempel .st-knopf { width:74px; height:74px; }
.ln-weiter, .ln-mischen { min-height:48px; font-size:17px; }
.ln-mischen svg { width:20px; height:20px; vertical-align:-4px; }
.ln-brief svg { width:min(520px, 100%); height:auto; display:block; filter:drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
#stage.hoch .ln-haupt { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr) auto auto; }
#stage.hoch .ln-lehrer { grid-row:auto; flex-direction:row; align-items:flex-start; } #stage.hoch .ln-lehrer .bildnis { width:72px; height:72px; flex:none; }
#stage.hoch .ln-blase::before { top:18px; left:-9px; margin:0; border:9px solid transparent; border-left:0; border-right-color:#fffaec; }
#stage.hoch .ln-ta { width:150px; } #stage.hoch .ln-palette { grid-template-columns:repeat(3, minmax(0, 1fr)); } #stage.hoch .ln-summe { grid-column:1 / -1; border-left:0; }
#stage.quer-handy .ln-haupt { grid-template-columns:200px minmax(0, 1fr); } #stage.quer-handy .ln-ta { width:110px; }
#stage:is(.hoch, .quer-handy) :is(.ln-blase, .ln-hinweis, .ln-ding, .ln-ding small, .ln-reihe b) { font-size:17px; }
#stage:is(.hoch, .quer-handy) .ln-titel { font-size:20px; } #stage:is(.hoch, .quer-handy) .ln-zu { width:66px; height:66px; }
#stage:is(.hoch, .quer-handy) .ln-stempel .st-knopf { width:84px; height:84px; } #stage:is(.hoch, .quer-handy) :is(.ln-weiter, .ln-mischen) { min-height:66px; font-size:18px; }
@media (prefers-reduced-motion: reduce) { .ln-ding.neu, .ln-ta.schon, .ln-blase.neu { animation:none; } }
.ln-stand { display:flex; align-items:center; gap:6px; margin-top:8px; } .ln-stand i { width:14px; height:14px; border-radius:50%; border:2px solid var(--akz); } .ln-stand i.da { background:var(--gold); border-color:var(--gold); } .ln-stand span { margin-left:6px; font-size:14px; color:var(--text-2); }
.fh { flex-basis:100%; margin:6px 0; } .fh-z { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 0; border-bottom:1px dashed var(--linie); font-size:14px; } .fh-z b { color:var(--akz-hell); }
.kf-block { flex-basis:100%; margin-bottom:6px; } .kf { display:flex; flex-wrap:wrap; gap:6px; }
.kf-p { display:flex; flex-direction:column; align-items:center; gap:2px; } .kf-p .bildnis { width:44px; height:44px; filter:grayscale(1) brightness(.85); opacity:.75; }
.kf-p.da .bildnis { filter:none; opacity:1; border-color:var(--gold); } .kf-p small { font-size:12.5px; color:var(--text-3); } .kf-p.da small { color:var(--gold); font-weight:800; }
#stage:is(.hoch, .quer-handy) :is(.fh-z, .kf-p small, .ln-stand span) { font-size:16px; }
#stage.lernt #lobby { visibility:hidden; }
#stage:not(.hoch):not(.quer-handy) .ln-ta { width:170px; }
.ln-brief { width:min(560px, 92%); }
#stage.hoch #lernen { padding:14px 34px 20px; } #stage.hoch .ln-reihe b { letter-spacing:0; }
#stage.quer-handy #lernen { padding:6px 12px 8px; gap:6px; }
#stage.quer-handy .ln-kopf { padding:2px 4px 2px 12px; } #stage.quer-handy .ln-zu { width:76px; height:76px; }
#stage.quer-handy .ln-haupt { gap:6px 12px; grid-template-rows:minmax(0, 1fr) auto auto; }
#stage.quer-handy .ln-palette { min-height:0; padding:4px 10px; } #stage.quer-handy .ln-reihe > div { margin-top:1px; }
#stage.quer-handy .ln-aktion { min-height:0; padding:4px; } #stage.quer-handy .ln-stempel .st-knopf { width:76px; height:76px; }
#tab-archiv { overflow-y:auto; padding-right:4px; } #tab-archiv .lo-liste { flex:none; overflow:visible; } #tab-archiv .lo-stat { flex:none; }

#bogen > #meldungen { position:absolute; left:50%; transform:translateX(-50%); z-index:30; width:min(760px, 94%); top:calc(38% + 28px); gap:4px; }
#bogen > #meldungen .meldung:not(:last-child) { display:none; }
#bogen > #meldungen .meldung { padding:6px 14px; }
#stage:not(.hoch):not(.quer-handy) #auslage { top:6px; height:38%; }
#stage:not(.hoch):not(.quer-handy) #auslage .ta { height:calc(100% - 4px); width:auto; max-width:none; }
#stage:not(.hoch):not(.quer-handy) #auslage[data-n="4"] .ta { max-width:none; }
#stage:not(.hoch):not(.quer-handy) .ta .ta-name { bottom:-19px; }
#stage.hoch #bogen > #meldungen { top:calc(42% + 26px); width:58%; }
#stage.quer-handy #auslage { align-items:flex-start; }
#stage.quer-handy #auslage .ta, #stage.quer-handy #auslage[data-n] .ta { height:calc(100% - 46px); width:auto; max-width:none; }
#stage.quer-handy #auslage { gap:6px; }
#stage.quer-handy #bogen > #meldungen { top:auto; bottom:6px; left:108px; transform:none; width:calc(60% - 222px); }
#stage.quer-handy #bogen > #meldungen .meldung { padding:4px 10px; line-height:1.25; }
#bogen > #meldungen .meldung { background:rgba(42,30,20,.95); color:#f3ead8; border-color:#c9a46a; box-shadow:0 4px 12px rgba(40,20,0,.35); }
#bogen > #meldungen .meldung b { color:#ffd88a; }
#stage:not(.hoch):not(.quer-handy) #auslage[data-n="4"] .ta { height:calc(100% - 30px); }
#stage.hoch #bogen > #meldungen { top:calc(42% + 14px); width:96%; }

:root { --rand-flur:blur(1.5px) brightness(.85); --rand-flur-hell:blur(1.5px) brightness(1.02); }
body.mit-rand.rand-flur #randbild::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(8,6,4,.12), rgba(6,4,2,.4)); }
body.mit-rand.rand-flur :is(#lobby, #tisch) { background:none; }

#hilfe .ov-box { display:flex; flex-direction:column; overflow:hidden; }
#hilfe .hilfe-text { max-height:none; overflow:auto; min-height:0; flex:1 1 auto; padding-right:8px; }
