:root {
  --bg:#2a1a0e; --panel:rgba(40,26,14,.86); --panel2:rgba(54,36,20,.94); --panel-solid:#3a2614;
  --akz:#e8c06a; --akz-hell:#ffdc8e; --akz2:#b8863a; --linie:rgba(240,200,120,.32);
  --text:#fbf3e4; --text-2:#eadcc0; --text-3:#c8b694; --dim:#cdbb98;
  --gold:#f6c85a; --rot:#ff9078; --gruen:#a8e08a; --blau:#9cd0f2; --dran:#7ad6c0;
  --ov-a:#4a3220; --ov-b:#22140a; --scrim:rgba(14,8,4,.7);
  --kn-a:#5a3c24; --kn-b:#32200f;
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg:#e8e2d4; --panel:rgba(250,246,236,.9); --panel2:rgba(242,236,222,.96); --panel-solid:#f4eedf;
  --akz:#1f4f7a; --akz-hell:#16406a; --akz2:#4a7aa0; --linie:rgba(40,70,100,.3);
  --text:#1a1e24; --text-2:#2c3440; --text-3:#4a5260; --dim:#4a5260;
  --gold:#7a4400; --rot:#b4232f; --gruen:#24683a; --blau:#1a5fb4; --dran:#0f7a62;
  --ov-a:#f7f4ec; --ov-b:#e2dccc; --scrim:rgba(30,36,44,.42);
  --kn-a:#f7f4ec; --kn-b:#d8d0bc;
}
html[data-design="winter"]:not([data-theme="light"]) {
  --bg:#18141e; --panel:rgba(30,24,36,.88); --panel2:rgba(42,34,52,.95); --panel-solid:#2a2232;
  --linie:rgba(255,200,130,.3); --ov-a:#3a2e44; --ov-b:#14101a; --kn-a:#4a3a54; --kn-b:#241a2c;
}
: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:#140c06; 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, #4a3220 0%, #140c06 80%); }
:root[data-theme="light"] #wrap { background:radial-gradient(ellipse at center, #f2ead8 0%, #c8b894 85%); }
#stage { position:relative; width:1280px; height:800px; flex:none; transform-origin:center center; overflow:hidden; background:var(--bg); -webkit-touch-callout:none; }
[hidden] { display:none !important; }
button { font-family:var(--sans); cursor:pointer; }
input, select { font-family:var(--sans); font-size:16px; }
.pl-punkt { flex:none; overflow:visible; }

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

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

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

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


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

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




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


#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.quer-handy .lo-kopf { gap:12px; padding:2px 8px 2px 14px; min-height:74px; }
#stage.quer-handy .lo-logo { font-size:26px; letter-spacing:3px; }
#stage.quer-handy #lobby .lo-raum { display:none; }
#stage.quer-handy #tisch .lo-raum { font-size:17px; white-space:normal; min-width:0; }
#stage.quer-handy .lo-ich { font-size:16px; }
#stage.quer-handy .lo-kopf .kb-ic { width:72px; height:68px; } #stage.quer-handy .lo-kopf .kb-ic .sgzi { width:28px; height:28px; }
#stage.quer-handy .lo-kopf .kb, #stage.quer-handy .lo-fuss .kb, #stage.quer-handy #ls-knopf { min-height:68px; font-size:17px; padding:6px 16px; }
#stage.quer-handy .lo-streifen { margin:6px 8px 0; padding:4px 10px; gap:10px; }
#stage.quer-handy .ls-text, #stage.quer-handy .ls-text small { font-size:16px; }
#stage.quer-handy .lo-haupt { grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:8px; padding:6px 8px; }
#stage.quer-handy .lo-start { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:8px 10px 0; gap:6px; }
#stage.quer-handy .lo-optionen { flex:none; overflow:visible; row-gap:6px; column-gap:10px; }
#stage.quer-handy .lo-label, #stage.quer-handy .lo-label small { font-size:16px; letter-spacing:1px; }
#stage.quer-handy .lo-seg button { min-height:68px; font-size:17px; }
#stage.quer-handy .lw-titel, #stage.quer-handy .lw-titel b { font-size:16px; }
#stage.quer-handy .lw-wahl:not(.lw-ausgabe) button { min-height:68px; min-width:68px; padding:4px 12px; font-size:17px; }
#stage.quer-handy .lw-ausgabe button { min-height:68px; font-size:16px; } #stage.quer-handy .lw-ausgabe button b { font-size:17px; }
#stage.quer-handy button.lw-info { width:68px; height:68px; margin:-25px -20px -25px -10px; font-size:16px; border-radius:34px; background:radial-gradient(circle at center, var(--akz-hell) 0 13px, transparent 13.5px); }
#stage.quer-handy .lw-box, #stage.quer-handy .lw-schritt, #stage.quer-handy .lw-an-titel { font-size:16px; }
#stage.quer-handy .lw-schritt { grid-template-columns:26px minmax(0, 1fr); } #stage.quer-handy .lw-schritt > b { width:26px; height:26px; font-size:16px; }
#stage.quer-handy .lw-name input { min-height:68px; font-size:17px; } #stage.quer-handy .lw-wuerfel { width:68px; }
#stage.quer-handy .lo-los { position:sticky; bottom:0; z-index:2; padding:6px 0 8px; background:linear-gradient(180deg, transparent, var(--panel) 10px); }
#stage.quer-handy .lo-los .kb-gross { min-height:68px; font-size:19px; } #stage.quer-handy .lo-los-hin { font-size:16px; }
#stage.quer-handy .lo-rechts { grid-template-rows:minmax(0, 1fr) 146px; gap:8px; }
#stage.quer-handy .lo-rechts .lo-spieler, #stage.quer-handy .lo-rechts .lo-chat { padding:6px 8px; }
#stage.quer-handy .lo-tabs { margin-bottom:6px; } #stage.quer-handy .lo-tabs button { min-height:68px; font-size:16px; padding:4px; }
#stage.quer-handy .lo-seg button, #stage.quer-handy .lo-tabs button { white-space:nowrap; }
#stage.quer-handy .lo-hinweis, #stage.quer-handy .it { font-size:16px; }
#stage.quer-handy .tb { gap:8px; padding:6px 8px; } #stage.quer-handy .tb-kopf { font-size:17px; } #stage.quer-handy :is(.tb-kopf .frei, .tb-sub, .tb-route) { font-size:16px; }
#stage.quer-handy .tb-knopf { min-height:68px; font-size:16px; }
#stage.quer-handy .st-k small, #stage.quer-handy .ar, #stage.quer-handy .ar-sub { font-size:16px; }
#stage.quer-handy #lobby .lo-chat .lo-label { display:none; }
#stage.quer-handy #chatwin, #stage.quer-handy #tchatwin { font-size:16px; padding:5px 8px; }
#stage.quer-handy #chatin, #stage.quer-handy #tchatin { min-height:68px; margin-top:4px; font-size:17px; }
#stage.quer-handy .ti-mitte { gap:8px; padding:6px 8px; }
#stage.quer-handy .ti-plaetze { flex:0 0 250px; gap:5px; }
#stage.quer-handy .pl { padding:5px 8px; gap:8px; } #stage.quer-handy .pl .nm2 { font-size:17px; } #stage.quer-handy :is(.pl .nm2 small, .pl .st) { font-size:16px; }
#stage.quer-handy .ti-opts { padding:8px 10px; gap:8px; }
#stage.quer-handy .ti-opt { font-size:17px; } #stage.quer-handy .ti-opt small { display:block; margin:0; font-size:16px; }
#stage.quer-handy .ti-wahl button { min-height:68px; min-width:68px; font-size:17px; padding:4px 12px; }
#stage.quer-handy .ti-info { font-size:16px; }
#stage.quer-handy .ti-chat { flex:0 0 250px; padding:6px 8px; }
#stage.quer-handy .lo-fuss { padding:4px 8px; gap:8px; }
#grund { position:absolute; inset:0; background:var(--bg) center / cover no-repeat; overflow:hidden; }
#grund .kulisse-svg { position:absolute; inset:0; width:100%; height:100%; display:block; }
#grund::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse 85% 75% at 50% 50%, rgba(10,6,2,0), rgba(10,6,2,.28)); pointer-events:none; }
:root[data-theme="light"] #grund::after { background:radial-gradient(ellipse 85% 75% at 50% 50%, rgba(250,246,236,0), rgba(220,210,190,.2)); }
#stage.lobbyhg #grund { filter:blur(3px) brightness(.72) saturate(.9); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(3px) brightness(1.04) saturate(.8); }
#lobby, #tisch { background:linear-gradient(180deg, rgba(20,12,6,.3), rgba(14,8,4,.6)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(250,246,236,.35), rgba(232,224,204,.55)); }
.tg-l { margin-top:4px; } .tg-liste { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:4px; } .tg-liste .ich { color:var(--akz-hell); } .tg-liste i { color:var(--gold); font-style:normal; font-weight:800; }
@media (prefers-reduced-motion: no-preference) {
  #grund .flamme { animation:flamme 3.2s ease-in-out infinite alternate; transform-box:fill-box; transform-origin:50% 100%; }
  #grund .flocke { animation:flocke 9s linear infinite; }
}
@keyframes flamme { 0% { transform:scale(1, 1); opacity:.85; } 45% { transform:scale(.94, 1.06); opacity:.95; } 100% { transform:scale(1.04, .95); opacity:.8; } }
@keyframes flocke { from { transform:translateY(-40px); } to { transform:translateY(60px); } }

:root { --holz:linear-gradient(180deg, #7a5232, #4e321c); --tischholz:url(img/holz-sommer.webp) center/cover, linear-gradient(135deg, #8a5c34, #5a3a1e 60%, #4a2e16); --kante:#2e1a0c; --tafel:linear-gradient(rgba(44,28,16,.86), rgba(30,18,10,.92));
  --papier:linear-gradient(180deg, #f4e9cc, #e4d3a8); --papier-t:#3a2a14; --messing:linear-gradient(180deg, #e8cf8a, #b8913e); --messing-t:#2a1c06; --gut:#a8e08a; --schlecht:#ff9a86;
  --maserung:repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 2px, transparent 2px 11px, rgba(255,220,170,.035) 11px 13px, transparent 13px 23px); }
:root[data-theme="light"] { --holz:linear-gradient(180deg, #e2d2b4, #c8b490); --tischholz:url(img/holz-pause.webp) center/cover, linear-gradient(135deg, #e0cfae, #c6ae86 60%, #b49a70); --kante:#8a7452; --tafel:linear-gradient(rgba(250,246,236,.92), rgba(240,234,218,.95));
  --papier:linear-gradient(180deg, #f2f5f7, #dfe7ee); --papier-t:#1f3a56; --messing:linear-gradient(180deg, #f2e4bc, #d6bc80); --gut:#24683a; --schlecht:#a32418;
  --maserung:repeating-linear-gradient(90deg, rgba(90,50,10,.06) 0 2px, transparent 2px 11px, rgba(255,255,255,.12) 11px 13px, transparent 13px 23px); }
html[data-design="winter"]:not([data-theme="light"]) { --tischholz:url(img/holz-winter.webp) center/cover, linear-gradient(135deg, #5e3a22, #3a2212 60%, #2a180c); --tafel:linear-gradient(rgba(26,22,34,.9), rgba(16,12,22,.94)); --holz:linear-gradient(180deg, #5a3a26, #34200f); }

#feld { position:absolute; left:12px; top:72px; right:338px; bottom:10px; display:grid; grid-template-rows:54px minmax(0, 1fr) 168px; gap:8px; }
#seite { position:absolute; right:12px; top:72px; bottom:10px; width:316px; display:flex; flex-direction:column; justify-content:space-between; gap:8px; }
#seite > #pchat { flex:0 0 268px; }
#seite > .panel { position:relative; background:var(--maserung), var(--tafel); backdrop-filter:none; -webkit-backdrop-filter:none; }
#partie > #kopf { background:linear-gradient(rgba(30,18,8,.36), rgba(24,14,6,.42)); backdrop-filter:none; -webkit-backdrop-filter:none; text-shadow:0 1px 3px rgba(0,0,0,.85); }
:root[data-theme="light"] #partie > #kopf { background:linear-gradient(rgba(250,246,236,.4), rgba(244,238,224,.44)); text-shadow:0 1px 2px rgba(255,250,240,.9); }

#schilder { display:flex; gap:8px; justify-content:center; align-items:stretch; min-width:0; }
.schild { position:relative; flex:0 1 250px; min-width:0; display:grid; grid-template-columns:36px minmax(0, 1fr) auto; grid-template-rows:auto auto; column-gap:7px; align-items:center; padding:4px 10px 4px 6px; border-radius:8px; cursor:help;
  background:var(--messing); color:var(--messing-t); border:1px solid #7a5a1e; border-bottom:4px solid var(--sf); box-shadow:inset 0 1px 0 #fff8, 0 4px 10px rgba(0,0,0,.45); }
.schild .bn { grid-row:1 / 3; }
.schild.dran { box-shadow:0 0 0 3px var(--dran), 0 4px 10px rgba(0,0,0,.45); }
.schild.weg { filter:grayscale(.6); }
.sd-nm { font-weight:800; font-size:14px; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sd-pk { grid-row:1 / 3; grid-column:3; text-align:center; font-family:var(--kopf); line-height:1; }
.sd-pk b { display:block; font-size:22px; } .sd-pk small { font:700 11.5px var(--sans); }
.sd-st { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#4a3610; }
.sd-start { display:inline-block; margin-left:5px; padding:0 5px; border-radius:5px; font:800 11.5px/1.4 var(--sans); font-style:normal; color:#fbf3e0; background:#6a4a16; cursor:help; }
.schild.neu .sd-pk b { animation:geld .9s ease-out; }
@keyframes geld { from { transform:scale(1.35); } to { transform:none; } }

#brett { position:relative; min-height:0; border-radius:14px; padding:14px; background:var(--tischholz); border:2px solid var(--kante);
  box-shadow:inset 0 2px 0 rgba(255,230,190,.25), inset 0 -4px 0 rgba(0,0,0,.35), 0 18px 34px rgba(0,0,0,.55), 0 4px 0 var(--kante); }
#karte-wrap { position:absolute; inset:14px; display:flex; align-items:center; justify-content:center; touch-action:none; overflow:hidden; border-radius:4px; }
#karte-wrap.gezoomt { cursor:grab; }
#brett.kann #karte-wrap { cursor:pointer; }
#karte { width:100%; height:100%; display:block; filter:drop-shadow(4px 7px 8px rgba(0,0,0,.45)); }
#karte .vk-kamm { font:italic 600 16px var(--kopf); letter-spacing:3px; text-anchor:middle; opacity:.75; }
#karte .vk-fluss { font:italic 600 16px var(--kopf); letter-spacing:2px; text-anchor:middle; opacity:.8; }
#karte .vk-n { font:700 13px var(--kopf); text-anchor:middle; }
#karte .ort-nm { font:700 15px var(--kopf); fill:var(--papier-t); paint-order:stroke; stroke:#f6edd6; stroke-width:3.4px; stroke-linejoin:round; pointer-events:none; }
:root[data-theme="light"] #karte .ort-nm { stroke:#eef3f7; }
#karte .ort { cursor:help; }
#karte .ort.ziel .ort-nm { font-size:16px; text-decoration:underline; }
#karte .ort-ring { opacity:.9; }
@media (prefers-reduced-motion: no-preference) { #karte .ort.ziel:not(.fertig) .ort-ring { animation:ring 2.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; } }
@keyframes ring { 50% { transform:scale(1.18); opacity:.45; } }
#karte .ort-fremd { fill:none; stroke:var(--of); stroke-width:3; stroke-dasharray:4 3; }
#karte .ort-zeig { fill:none; stroke:#fff6c0; stroke-width:5; opacity:.95; }
#karte .li-baubar { stroke:#ffe066; stroke-width:9; stroke-linecap:round; opacity:.85; fill:none; filter:drop-shadow(0 0 3px rgba(255,220,90,.9)); }
@media (prefers-reduced-motion: no-preference) { #karte .li-baubar:not(.voll) { animation:baubar 1.4s ease-in-out infinite alternate; } }
@keyframes baubar { from { opacity:.95; } to { opacity:.55; } }
#karte .li-baubar.dop { stroke-dasharray:3 4; stroke-width:10; }
#karte .li-baubar.voll { opacity:.22; filter:none; }
#karte .li-baubar.rat { stroke:#7ef0c8; opacity:.95; }
#karte .li-hover { stroke:#fff3a0; stroke-width:11; stroke-linecap:round; opacity:.8; fill:none; }
#karte .li-hover.nein { stroke:#ff8a70; opacity:.6; }
#karte .gl.plan { opacity:.8; }
@media (prefers-reduced-motion: no-preference) { #karte .gl.plan { animation:plan 1.1s ease-in-out infinite alternate; } #karte .gl.neu { animation:neu .9s ease-out; } }
@keyframes plan { to { opacity:.45; } }
@keyframes neu { from { filter:drop-shadow(0 0 6px #fff2a0); } to { filter:none; } }
#karte .gl.seit { filter:drop-shadow(0 0 3px rgba(255,236,150,.95)); }
#karte .gl { cursor:help; }
#karte .weg-fehlt { stroke:var(--wf); stroke-width:6; stroke-dasharray:7 6; stroke-linecap:round; fill:none; opacity:.95; }
#karte .kn-hover { fill:rgba(255,243,160,.35); stroke:#fff3a0; stroke-width:3; }
#karte .kn-rat { fill:none; stroke:#7ef0c8; stroke-width:4; stroke-dasharray:6 4; }
#karte .schuppen-plan { opacity:.75; }
#vorrat { position:absolute; left:22px; bottom:20px; z-index:3; display:flex; align-items:center; gap:8px; padding:6px 10px 6px 8px; border-radius:8px; cursor:help;
  background:var(--maserung), var(--holz); border:1px solid var(--kante); box-shadow:0 6px 12px rgba(0,0,0,.45); color:#fbf0d8; text-shadow:0 1px 2px #000; }
:root[data-theme="light"] #vorrat { color:#2a1c0c; text-shadow:none; }
#vorrat-st { position:relative; width:46px; height:calc(14px + var(--d, 5) * 2px); }
#vorrat-st .gs-ic { position:absolute; left:3px; bottom:0; filter:drop-shadow(0 calc(var(--d, 5) * 2px) 0 #4a2a14); }
#vorrat b { font:900 20px/1 var(--kopf); } #vorrat small { display:block; font-size:12px; font-weight:700; }
.zoom { position:absolute; right:22px; top:20px; z-index:3; display:flex; flex-direction:column; gap:6px; }
.zoom-k { width:40px; height:40px; border-radius:8px; font:900 22px/1 var(--kopf); color:#fbf0d8; background:var(--maserung), var(--holz); border:1px solid var(--kante); box-shadow:0 4px 8px rgba(0,0,0,.4); }
.zoom-k:disabled { opacity:.45; border-style:dashed; }
:root[data-theme="light"] .zoom-k { color:#2a1c0c; }
#meldungen { position:absolute; left:50%; top:10px; transform:translateX(-50%); width:min(720px, 80%); z-index:6; display:flex; flex-direction:column; gap:4px; pointer-events:none; }
.meldung { padding:5px 12px; border-radius:8px; font-size:14.5px; opacity:.94; line-height:1.3; color:var(--papier-t); background:var(--papier); border:1px solid rgba(90,60,20,.4); box-shadow:0 6px 14px rgba(0,0,0,.4); animation:mein .35s ease-out; transition:opacity .6s, transform .6s; }
.meldung b { color:#000; } :root[data-theme="light"] .meldung b { color:#0a1a2a; }
.meldung.weg { opacity:0; transform:translateY(-8px); }
@keyframes mein { from { opacity:0; transform:translateY(-10px); } }
.meldung:not(:last-child) { display:none; }
.rat-text { font-weight:800; color:#1e6a4a; }
.sz-karte { top:auto !important; bottom:76px; }

#unten { min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 440px; gap:10px; }
#vertraege { min-height:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); grid-template-rows:repeat(2, minmax(0, 1fr)); gap:6px 8px; align-items:stretch; padding:2px; }
.zt { position:relative; min-height:0; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:1px; padding:3px 7px 3px 9px; border-radius:3px; cursor:help; color:var(--papier-t);
  background:var(--papier); border:1px solid rgba(90,60,20,.35); border-left:6px solid var(--zf); box-shadow:2px 4px 8px rgba(0,0,0,.4); transform:rotate(-1deg); }
.zt:nth-child(even) { transform:rotate(1.2deg); }
.zt.zeig { box-shadow:0 0 0 3px #fff3a0, 2px 4px 8px rgba(0,0,0,.4); }
.zt.an { background:linear-gradient(180deg, #e6efd4, #ccdcae); }
:root[data-theme="light"] .zt.an { background:linear-gradient(180deg, #e2f0e0, #c8e0c4); }
.zt.unterwegs { visibility:hidden; }
.zt-tal { font-size:12px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color:var(--papier-t); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.zt-ort { font:900 15.5px/1.1 var(--kopf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:-.2px; }
.zt-st { font-size:12px; font-weight:700; display:flex; align-items:center; gap:3px; white-space:nowrap; line-height:1.15; color:var(--papier-t); }
.zt.an .zt-st { color:#1f5a1f; }
.zt-leer { grid-column:1 / -1; align-self:center; text-align:center; color:var(--text-2); font-size:15px; }
.zt-flug { width:60px; height:40px; border-radius:3px; background:linear-gradient(90deg, var(--zf) 0 6px, #f4e9cc 6px); box-shadow:2px 4px 8px rgba(0,0,0,.4); }
#ich { min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 210px; gap:8px; }
.ich-box { min-height:0; display:grid; grid-template-rows:40px 24px minmax(0, 1fr); gap:3px; padding:6px 10px; border-radius:10px; border:1px solid var(--kante); border-top:4px solid var(--sf);
  background:var(--maserung), var(--holz); color:#fbf0d8; }
:root[data-theme="light"] .ich-box { color:#2a1c0c; }
.ich-box.dran { box-shadow:0 0 0 2px var(--dran); }
.ich-box.blink { animation:blink 1s ease-out 2; }
@keyframes blink { 50% { box-shadow:0 0 0 4px var(--akz-hell); } }
.ich-zeile { display:flex; align-items:center; gap:8px; min-width:0; }
.ich-kopf { display:flex; align-items:center; gap:7px; min-width:0; flex:1; cursor:help; }
.ich-name { font-weight:800; font-size:14.5px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.15; }
.ich-name small { display:block; font-weight:600; font-size:12px; opacity:.85; }
.ich-werte { display:flex; gap:12px; align-items:baseline; white-space:nowrap; }
.ich-pk, .ich-fehlt { cursor:help; white-space:nowrap; line-height:1; display:flex; align-items:baseline; gap:4px; }
.ich-pk b, .ich-fehlt b { font:900 21px/1 var(--kopf); color:var(--gold); }
.ich-fehlt b { color:var(--akz-hell); }
.ich-pk small, .ich-fehlt small { font-size:13px; }
.lage { font-size:14px; line-height:1.22; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.lage b { color:#fff4d4; } :root[data-theme="light"] .lage b { color:#000; }
.lage .schlecht { color:var(--schlecht); } .lage .gut { color:var(--gut); }
.wahl-box { min-height:0; display:grid; grid-template-rows:minmax(0, 1fr) 18px; gap:3px; padding:6px; border-radius:10px; border:1px solid var(--kante); background:var(--maserung), var(--holz); }
.wahl-box.lockt { box-shadow:0 0 0 2px var(--akz-hell); }
.wahl-knoepfe { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-rows:minmax(0, 1fr); gap:5px; min-height:0; }
.wahl { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:3px 6px; border-radius:9px; font-weight:800; font-size:14.5px; color:var(--text);
  background:linear-gradient(180deg, var(--kn-a), var(--kn-b)); border:1px solid var(--linie); box-shadow:inset 0 1px 0 rgba(255,236,200,.14), 0 2px 6px rgba(0,0,0,.35); min-width:0; min-height:0; }
.wahl small { font-weight:600; font-size:12px; line-height:15px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.wahl .sgzi { width:18px; height:18px; }
.wahl.haupt { grid-column:1 / -1; background:linear-gradient(#ffe39a, #e0a52a); color:#2b2405; border-color:#fff3c8; }
.wahl.haupt small { color:#4a3a10; }
.wahl.klein { font-size:13.5px; }
.wahl.an { outline:2px solid var(--akz-hell); }
.wahl.empf { outline:3px dashed #7ef0c8; outline-offset:2px; }
.wahl:disabled { opacity:.5; cursor:default; border-style:dashed; }
@media (hover: hover) { .wahl:not(:disabled):hover { border-color:var(--akz-hell); } }
.wahl-ruhe { grid-column:1 / -1; grid-row:1 / 3; display:flex; align-items:center; justify-content:center; gap:8px; font-size:14px; color:#fbf0d8; text-align:center; padding:0 6px; }
:root[data-theme="light"] .wahl-ruhe { color:#2a1a0c; }
.wahl-unter { font-size:12px; color:#f0e2c4; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
:root[data-theme="light"] .wahl-unter { color:#3a2a14; }
.wahl-unter .warn { color:var(--rot); font-weight:800; }

#tafel { flex:none; padding:8px 10px 10px; display:flex; flex-direction:column; gap:4px; }
.tl { display:grid; grid-template-rows:repeat(var(--n), minmax(0, 1fr)); height:min(290px, calc(var(--n) * 21px)); border-left:6px solid #6a6258; padding-left:4px; cursor:help;
  background:repeating-linear-gradient(180deg, transparent 0 9px, rgba(255,255,255,.07) 9px 11px); }
.tl-stufe { position:relative; display:flex; align-items:center; gap:6px; min-height:0; border-bottom:1px dashed rgba(240,200,120,.18); }
.tl-n { width:22px; text-align:right; font:800 13px var(--kopf); color:var(--text-3); }
.tl-gleis { flex:1; display:flex; gap:2px; min-width:0; overflow:hidden; }
.tl-lok { cursor:help; display:inline-flex; }
.tl-lok.ich { filter:drop-shadow(0 0 3px #fff3a0); }
.tl-stufe.schranke { border-bottom:4px solid; border-image:repeating-linear-gradient(90deg, #c8322a 0 10px, #f6efe0 10px 20px) 4; }
.tl-stufe.drunter { opacity:.55; }
.tl-schr { font-size:12px; font-weight:800; color:var(--rot); letter-spacing:1px; text-transform:uppercase; }
.lt-kopf { margin-top:6px; font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--text-3); display:flex; justify-content:space-between; gap:6px; }
.rlog { max-height:52px; overflow:hidden; display:flex; flex-wrap:wrap; align-content:flex-start; gap:3px; }
.rlog span { padding:1px 6px; border-radius:5px; border-left:3px solid var(--sf, var(--akz)); background:rgba(0,0,0,.2); font-size:12px; white-space:nowrap; }
:root[data-theme="light"] .rlog span { background:rgba(255,255,255,.55); }
.rlog i { font-style:normal; color:var(--text-2); }
.rlog .leer { border-left-color:transparent; background:transparent; color:var(--text-3); white-space:normal; }
.tf-probe { font-size:14px; color:var(--text-2); display:flex; flex-wrap:wrap; gap:6px 14px; } .tf-probe p { margin:0 0 4px; flex-basis:100%; }
.tf-zahl b { display:block; font:900 26px/1 var(--kopf); color:var(--gold); } .tf-zahl small { font-size:12px; }
.en-probe { display:flex; justify-content:center; gap:28px; margin:8px 0; text-align:center; } .en-probe b { display:block; font:900 34px/1 var(--kopf); color:var(--gold); } .en-probe small { font-size:14px; color:var(--text-2); }
.gs-flug { display:inline-block; }
.flieger .sch-ic, .flieger .gs-ic { filter:drop-shadow(2px 5px 4px rgba(0,0,0,.5)); }
.ki-ort { display:block; width:70px; height:70px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff8 0 14%, var(--zf) 15%); border:4px solid #fbf5e6; box-shadow:0 3px 8px rgba(0,0,0,.4); }
.ki-gs svg { display:block; }
.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.6s ease-out forwards; white-space:nowrap; }
.stempel.rot { border-color:#b02a2a; color:#8a1414; } .stempel.gruen { border-color:#2a7a3a; color:#1a5a24; }
@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-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:200px; 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); }
#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-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; }
.ki-bildnis svg, .ki-bildnis .bn { display:block; }
.bn-bild { display:inline-block; flex:none; border-radius:50%; background:#5a3a22 center/cover no-repeat; box-shadow:0 0 0 2px var(--bf), 0 2px 4px rgba(0,0,0,.45); vertical-align:middle; }

#stage.hoch #kopf { left:8px; right:8px; height:160px; flex-wrap:wrap; align-content:center; column-gap:10px; row-gap:6px; padding:6px 8px; }
#stage.hoch .logo, #stage.hoch .trenner { display:none; }
#stage.hoch .rechts { order:1; flex:1 1 100%; justify-content:flex-end; gap:6px; }
#stage.hoch #k-verlauf { order:2; width:96px; height:60px; font-size:18px; font-weight:800; gap:6px; }
#stage.hoch .runde { order:3; font-size:15px; letter-spacing:.5px; }
#stage.hoch .runde b { font-size:21px; }
#stage.hoch .k-phase { order:4; flex:1 1 100%; font-size:18px; }
#stage.hoch .uhr { order:5; font-size:22px; }
#stage.hoch .kb-ic { width:64px; height:60px; }
#stage.hoch .kb-ic .sgzi { width:26px; height:26px; }
#stage.hoch #feld { left:8px; right:8px; top:176px; bottom:8px; grid-template-rows:auto minmax(330px, 400px) minmax(0, 1fr); gap:8px; }
#stage.hoch #seite { display:none; }
#stage.hoch #seite.offen { display:flex; flex-direction:column; left:8px; right:8px; width:auto; top:176px; bottom:8px; height:auto; z-index:55; gap:6px; }
#stage.hoch #tafel { flex:0 0 auto; overflow:auto; }
#stage.hoch #pchat { flex:1; min-width:0; }
#stage.hoch .ch-liste, #stage.hoch #pchatwin { font-size:17px; }
#stage.hoch .ch-tabs button { font-size:16px; min-height:52px; }
#stage.hoch #pchatin { min-height:60px; font-size:18px; }
#stage.hoch .pc-knoepfe button { min-height:56px; font-size:16px; }
#stage.hoch #schilder { flex-wrap:wrap; }
#stage.hoch .schild { flex:1 1 46%; grid-template-columns:34px minmax(0, 1fr) auto; }
#stage.hoch .sd-nm { font-size:16px; white-space:normal; line-height:1.05; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; } #stage.hoch .sd-st, #stage.hoch .sd-pk small, #stage.hoch .sd-start { font-size:15px; } #stage.hoch .sd-pk b { font-size:24px; }
#stage.hoch #brett { padding:10px; } #stage.hoch #karte-wrap { inset:10px; }
#stage.hoch .zoom { right:16px; top:16px; } #stage.hoch .zoom-k { width:64px; height:64px; font-size:30px; }
#stage.hoch #vorrat { left:16px; bottom:16px; } #stage.hoch #vorrat small { font-size:15px; } #stage.hoch #vorrat b { font-size:24px; }
#stage.hoch .meldung { font-size:16px; line-height:1.25; padding:4px 10px; }
#stage.hoch .meldung:not(:last-child) { display:none; }
#stage.hoch #meldungen { width:92%; }
#stage.hoch #unten { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); gap:8px; }
#stage.hoch #vertraege { grid-template-columns:repeat(3, minmax(0, 1fr)); grid-auto-rows:92px; }
#stage.hoch .zt-tal, #stage.hoch .zt-st { font-size:15px; } #stage.hoch .zt-ort { font-size:19px; }
#stage.hoch #ich { grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(150px, 1fr) 176px; }
#stage.hoch .ich-box { grid-template-rows:48px 30px minmax(0, 1fr); }
#stage.hoch .lage { font-size:16px; display:block; -webkit-line-clamp:unset; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
#stage.hoch .ich-name { font-size:17px; } #stage.hoch .ich-name small, #stage.hoch .ich-pk small, #stage.hoch .ich-fehlt small { font-size:15px; } #stage.hoch .ich-pk b, #stage.hoch .ich-fehlt b { font-size:24px; }
#stage.hoch .wahl { font-size:18px; line-height:1.1; padding:2px 5px; } #stage.hoch .wahl small { font-size:15px; white-space:normal; line-height:1.1; text-align:center; } #stage.hoch .wahl-unter { font-size:15px; }
#stage.hoch .wahl-box { grid-template-rows:minmax(0, 1fr) 20px; }
#stage.hoch #hinweis, #stage.hoch .banner { left:50%; }
#stage.hoch #hinweis { font-size:18px; bottom:360px; max-width:500px; }
#stage.hoch .banner { min-width:0; width:94%; }
#stage.hoch #ansicht-menu { left:8px; right:8px; width:auto; top:176px; }
#stage.hoch #ansicht-menu label { font-size:18px; min-height:56px; align-items:center; } #stage.hoch #ansicht-menu label small { font-size:16px; }
#stage.hoch #ansicht-menu input { width:28px; height:28px; }
#stage.hoch .knopf { min-height:60px; font-size:17px; }
#stage.hoch .en-unter, #stage.hoch .en-stat { font-size:17px; } #stage.hoch .en-unter small { font-size:15px; }
#stage.hoch #en-zurueck .kb { min-height:68px; font-size:18px; white-space:nowrap; }
#stage.hoch .tl-n, #stage.hoch .tl-schr, #stage.hoch .rlog span, #stage.hoch .lt-kopf { font-size:15px; }
#stage.hoch #karte .ort-nm { font-size:19px; }
@media (pointer: coarse) {
  .wahl { min-height:44px; }
  .knopf { min-height:42px; }
  .ch-tabs button { min-height:38px; }
  .zoom-k { width:52px; height:52px; }
}
#stage.quer-handy #kopf { height:60px; }
#stage.quer-handy #feld { right:12px; top:76px; grid-template-rows:0 minmax(0, 1fr) 150px; gap:6px; }
#stage.quer-handy #schilder { position:absolute; left:0; right:0; top:-2px; height:0; z-index:4; overflow:visible; align-items:flex-start; }
#stage.quer-handy .schild { flex:0 1 210px; transform:translateY(4px); }
#stage.quer-handy #brett { padding-top:62px; } #stage.quer-handy #karte-wrap { top:62px; }
#stage.quer-handy #seite { display:none; }
#stage.quer-handy #seite.offen { display:flex; left:auto; right:12px; top:76px; bottom:10px; z-index:55; }
#stage.quer-handy .sd-nm { font-size:16px; } #stage.quer-handy .sd-st, #stage.quer-handy .sd-pk small, #stage.quer-handy .zt-tal, #stage.quer-handy .zt-st, #stage.quer-handy .wahl small, #stage.quer-handy .wahl-unter, #stage.quer-handy .ich-name small { font-size:15px; }
#stage.quer-handy .wahl { font-size:17px; min-height:52px; } #stage.quer-handy .zoom-k { width:64px; height:64px; font-size:28px; }
#stage.quer-handy .lage { font-size:15px; } #stage.quer-handy .meldung { font-size:16px; }
#stage.quer-handy #unten { grid-template-columns:minmax(0, 1fr) 520px; }
#stage.quer-handy .kb-ic { width:62px; height:52px; } #stage.quer-handy #k-verlauf { width:auto; padding:0 10px; font-size:16px; font-weight:800; gap:6px; }
