:root {
  --bg:#081220; --panel:rgba(9,20,36,.84); --panel2:rgba(16,30,52,.94); --panel-solid:#0e1c32;
  --akz:#f0b54a; --akz-hell:#ffd88a; --akz2:#a8761c; --linie:rgba(240,181,74,.3);
  --text:#eef4fa; --text-2:#cddbea; --text-3:#9db2ca; --dim:#94aac4;
  --gold:#ffd86b; --rot:#ff7a7a; --gruen:#6dff9e; --blau:#7ec8ff;
  --ov-a:#13243e; --ov-b:#07101e; --scrim:rgba(2,6,14,.7);
  --kopf:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --knopf-a:#ffd98a; --knopf-b:#d29a32; --knopf-t:#2a1a02; --knopf-r:#fff0cc; --knopf-s:#7a5410;
}
:root[data-theme="light"] {
  --bg:#efe8da; --panel:rgba(250,245,234,.9); --panel2:rgba(238,231,216,.96); --panel-solid:#f3ecdd;
  --akz:#0e6a72; --akz-hell:#0a545b; --akz2:#5fa8ae; --linie:rgba(14,106,114,.3);
  --text:#14202c; --text-2:#28384a; --text-3:#4a5c70; --dim:#4e6072;
  --gold:#7a5600; --rot:#b42a2a; --gruen:#1d7a40; --blau:#1f4fb4;
  --ov-a:#f6f1e6; --ov-b:#e2d9c6; --scrim:rgba(30,30,40,.42);
  --knopf-a:#8fd3d8; --knopf-b:#3a9ca4; --knopf-t:#062a2e; --knopf-r:#d6f3f5; --knopf-s:#1e5c62;
}
:where(html, html *) { scrollbar-width:thin; scrollbar-color:var(--akz, #f0b54a) var(--panel2, rgba(16,30,52,.94)); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--panel2, rgba(16,30,52,.94)); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--akz, #f0b54a); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#03060c; 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, #14243e 0%, #02040a 80%); }
:root[data-theme="light"] #wrap { background:radial-gradient(ellipse at center, #efe6d4 0%, #b8ab92 85%); }
#stage { position:relative; width:1280px; height:800px; flex:none; transform-origin:center center; overflow:hidden; background:var(--bg); -webkit-touch-callout:none; }
#kulisse { position:absolute; inset:0; overflow:hidden; background:#1a1410; }
#kulisse-bild { position:absolute; inset:-36px; background:url(img/salon-q.webp?v=1) center / cover no-repeat; transform:rotate(var(--kipp, 0deg)); will-change:transform; animation:wiegen 9s ease-in-out infinite; }
:root[data-ansicht="deck"] #kulisse { background-color:#d8cbb0; }
:root[data-ansicht="deck"] #kulisse-bild { background-image:url(img/deck-q.webp?v=1); }
:root[data-ansicht="nacht"] #kulisse { background-color:#0a0c18; }
:root[data-ansicht="nacht"] #kulisse-bild { background-image:url(img/nacht-q.webp?v=1); }
#stage.hoch #kulisse-bild { background-image:url(img/salon-h.webp?v=1); }
:root[data-ansicht="deck"] #stage.hoch #kulisse-bild { background-image:url(img/deck-h.webp?v=1); }
:root[data-ansicht="nacht"] #stage.hoch #kulisse-bild { background-image:url(img/nacht-h.webp?v=1); }
@keyframes wiegen { 0%, 100% { translate:-6px 4px; } 50% { translate:6px -4px; } }
@media (prefers-reduced-motion: reduce) { #kulisse-bild { animation:none; transform:none; } }
#stage.lobbyhg #kulisse-bild { filter:blur(2px) brightness(.72); }
[hidden] { display:none !important; }
button { font-family:var(--sans); cursor:pointer; }
input, select { font-family:var(--sans); font-size:16px; }
.sgzi { width:18px; height:18px; flex:none; display:inline-block; vertical-align:-3px; }

.kb { display:inline-flex; align-items:center; justify-content:center; gap:7px; background:linear-gradient(180deg, #1c2c50, #0c1426); 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(200,240,255,.12), 0 2px 8px rgba(0,0,0,.4); }
:root[data-theme="light"] .kb { background:linear-gradient(180deg, #f2f5fa, #d2dce8); box-shadow:inset 0 1px 0 #fff8, 0 2px 6px rgba(20,40,70,.2); }
@media (hover: hover) { .kb:hover:not(:disabled) { border-color:var(--akz-hell); } }
.kb:disabled { opacity:.45; cursor:default; }
.kb-gold { background:linear-gradient(var(--knopf-a), var(--knopf-b)) !important; color:var(--knopf-t) !important; border-color:var(--knopf-r); box-shadow:0 2px 0 var(--knopf-s), 0 0 14px rgba(240,181,74,.25), inset 0 1px 0 #fff6; }
.kb-gruen { background:linear-gradient(#a6ffc4, #2fbf68) !important; border-color:#d8ffe6; color:#04220f !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(250,252,255,.6); }
.kb-ic .sgzi { width:20px; height:20px; }
.kb-ic.an { background:rgba(240,181,74,.22); 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; }
.knopf { display:inline-flex; align-items:center; gap:6px; font-weight:800; font-size:14px; color:var(--knopf-t); cursor:pointer; padding:7px 13px; border-radius:8px; border:1px solid var(--knopf-r); background:linear-gradient(var(--knopf-a), var(--knopf-b)); white-space:nowrap; }
.knopf.leise { color:var(--text); background:var(--panel2); border-color:var(--linie); }
.knopf.klein { padding:5px 10px; font-size:13.5px; }

.live-box { display:inline-flex; }
.live-mikro { display:inline-flex; gap:4px; align-items:center; }
.live-mikro button { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 11px; border-radius:8px; border:1px solid var(--linie); background:rgba(0,0,0,.28); color:var(--text); font-size:14px; font-weight:700; }
:root[data-theme="light"] .live-mikro button { background:rgba(250,252,255,.6); }
.live-mikro button:disabled { opacity:.45; cursor:default; }
.live-mikro svg { width:18px; height:18px; }
.live-mikro .live-zu { width:30px; padding:0; justify-content:center; }
.live-pegel { display:inline-block; width:38px; height:6px; border-radius:3px; background:rgba(255,255,255,.14); overflow:hidden; }
.live-pegel b { display:block; height:100%; width:0; background:var(--gruen); transition:width .08s linear; }
.live-mikro.live-an .live-haupt { background:rgba(109,255,158,.22); border-color:var(--gruen); color:var(--gruen); }
.live-mikro.live-stumm .live-haupt { background:rgba(255,122,122,.18); border-color:var(--rot); color:var(--rot); }
.live-wahl { display:inline-flex; border:1px solid var(--linie); border-radius:8px; overflow:hidden; }
.live-wahl button { height:34px; padding:0 10px; border:0 !important; border-radius:0 !important; font-size:13px; font-weight:700; background:rgba(0,0,0,.28); color:var(--text-2); }
.live-wahl button + button { border-left:1px solid var(--linie) !important; }
.live-wahl button.an { background:rgba(240,181,74,.22); color:var(--akz-hell); }
.live-wahl button[data-w=mikro].an { background:rgba(109,255,158,.22); color:var(--gruen); }
:root[data-theme="light"] .live-wahl button { background:rgba(250,252,255,.6); }
@media (pointer: coarse) { .live-wahl button { height:44px; } }
.live-mikro .live-modus { height:34px; padding:0 9px; font-size:12.5px; font-weight:700; color:var(--text-2); }
.live-mikro.live-ptt .live-haupt { background:rgba(240,181,74,.14); border-color:var(--akz); color:var(--akz-hell); }
.live-mikro.live-ptt.live-an .live-haupt { background:rgba(109,255,158,.22); border-color:var(--gruen); color:var(--gruen); }
#live-menue { position:absolute; z-index:90; width:250px; padding:10px 12px; display:flex; flex-direction:column; gap:8px; font-size:14px; }
.live-menue .lm-titel { font-weight:800; color:var(--akz-hell); }
.live-menue .lm-zeile { display:flex; align-items:center; gap:8px; cursor:pointer; }
.live-menue .lm-zeile span { flex:none; }
.live-menue input[type=range] { flex:1; min-width:0; accent-color:var(--akz); }
.live-menue input[type=checkbox] { width:18px; height:18px; accent-color:var(--akz); flex:none; }
.live-menue .lm-melden { align-self:flex-start; padding:6px 12px; border-radius:7px; border:1px solid var(--rot); background:transparent; color:var(--rot); font-weight:700; }
.mit-menue { cursor:pointer; }
@media (hover: hover) { .mit-menue:hover { border-color:var(--akz-hell); } }
.live-punkt { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-3); white-space:nowrap; }
.live-punkt i { width:10px; height:10px; border-radius:50%; background:var(--text-3); box-shadow:0 0 0 1px #0006; }
.live-punkt.ok i { background:var(--gruen); box-shadow:0 0 8px var(--gruen); }
.live-punkt.wieder i { background:var(--gold); animation:puls .7s infinite alternate; }
.live-punkt.fehler i { background:var(--rot); }
@keyframes puls { to { opacity:.4; } }

#lobby, #tisch { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; background:linear-gradient(180deg, rgba(2,6,14,.3), rgba(2,6,14,.55)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(240,244,250,.3), rgba(214,224,238,.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-size:29px; font-weight:900; letter-spacing:6px; color:var(--akz-hell); text-shadow:0 0 14px rgba(240,181,74,.55); font-style:italic; }
:root[data-theme="light"] .lo-logo { text-shadow:none; }
.lo-raum { font-size:17px; color:var(--text-2); }
.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; align-items:center; }
.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 var(--linie); 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(250,252,255,.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(250,252,255,.8); }
#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; }
:root[data-theme="light"] .lo-tabs button { background:rgba(250,252,255,.5); }
.lo-tabs button.an { background:rgba(240,181,74,.16); 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 .pk { width:9px; height:9px; border-radius:50%; background:var(--gruen); }
.it.spielt .pk { 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; }
:root[data-theme="light"] .tb, :root[data-theme="light"] .it, :root[data-theme="light"] .ar { background:rgba(250,252,255,.55); }
@media (hover: hover) { .tb:hover { border-color:var(--akz-hell); background:rgba(240,181,74,.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:15px; height:15px; }
.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:12.5px; font-weight:800; vertical-align:2px; color:var(--akz-hell); background:rgba(240,181,74,.1); border:1px solid var(--linie); }
.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 var(--linie); 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 320px; display:flex; flex-direction:column; gap:6px; overflow:auto; }
.pl { display:flex; align-items:center; gap:10px; padding:7px 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 .nm2 { flex:1; display:flex; flex-direction:column; font-weight:bold; font-size:15.5px; min-width:0; }
.pl .nm2 small { font-weight:normal; color:var(--text-3); font-size:12.5px; }
.pl .st { font-size:13px; color:var(--text-2); }
.pl.spricht { box-shadow:0 0 0 2px var(--gruen), 0 0 12px rgba(109,255,158,.45); }
.pl-farbe { display:block; width:10px; height:28px; border-radius:4px; flex:none; box-shadow:0 0 8px var(--pf, #fff); background:var(--pf, #fff); }
.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(250,252,255,.65); }
.ti-wahl button.an { background:rgba(240,181,74,.2); 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-kopf { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ti-chat-kopf .live-mikro button { text-transform:none; letter-spacing: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(109,255,158,.18), rgba(240,181,74,.1)); border:1px solid var(--gruen); }
.lo-streifen.warten { background:linear-gradient(90deg, rgba(240,181,74,.18), rgba(255,79,216,.1)); 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(240,181,74,.1), 0 0 30px rgba(240,181,74,.12), 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:var(--knopf-t); background:linear-gradient(var(--knopf-a), var(--knopf-b)); }
.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-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(240,181,74,.22); border-color:var(--akz-hell); color:var(--akz-hell); font-weight:800; }
.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(250,252,255,.85); }
.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 11px/1 var(--sans); color:var(--knopf-t);
  background:var(--akz-hell); border:0; vertical-align:1px; cursor:pointer; padding:0; }
:root[data-theme="light"] .lw-info { color:#eef6fa; }
.lw-box { font-size:12.5px; color:var(--text-2); line-height:1.45; background:rgba(240,181,74,.07); border:1px solid var(--linie); 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(240,181,74,.1), rgba(2,6,14,.3)); border:1px solid var(--linie); }
:root[data-theme="light"] .lw-anleitung { background:rgba(10,111,134,.07); }
.lw-an-titel { font-size:12.5px; 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:var(--knopf-t); background:var(--akz-hell); }
:root[data-theme="light"] .lw-schritt > b { color:#eef6fa; }
.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)); }

#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(200,240,255,.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(20,40,70,.2); }
.pt { font-size:12.5px; 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); }
#kopf { left:12px; right:12px; top:10px; height:56px; display:flex; align-items:center; gap:14px; padding:0 12px 0 14px; z-index:5; }
.logo { font-weight:900; font-style:italic; font-size:22px; letter-spacing:4px; color:var(--akz-hell); text-shadow:0 0 12px rgba(240,181,74,.5); line-height:1; white-space:nowrap; }
:root[data-theme="light"] .logo { text-shadow:none; }
.logo small { display:block; font-style:normal; font-weight:800; font-size:12.5px; letter-spacing:2px; color:var(--dim); margin-top:3px; text-shadow:none; }
.trenner { width:1px; align-self:stretch; margin:10px 0; background:var(--linie); }
.runde { font-size:12.5px; letter-spacing:2px; color:var(--dim); white-space:nowrap; text-transform:uppercase; font-weight:700; }
.runde b { display:block; font-size:19px; letter-spacing:0; color:var(--text); }
.k-phase { display:flex; align-items:center; gap:8px; font-size:15px; 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; }

#arena { left:12px; right:368px; top:74px; bottom:12px; overflow:hidden; background:transparent; border-color:transparent; box-shadow:none; backdrop-filter:none; padding:0; }
:root[data-theme="light"] #arena { background:transparent; }
#feld { position:absolute; left:0; top:0; width:100%; height:100%; display:block; touch-action:none; box-shadow:10px 16px 28px rgba(0,0,0,.5), 3px 5px 8px rgba(0,0,0,.35); }
#zaehler { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:4; pointer-events:none; text-align:center; }
#zaehler b { display:block; font-size:120px; font-weight:900; font-style:italic; line-height:1; color:var(--akz-hell); text-shadow:0 0 30px rgba(240,181,74,.8); animation:zaehl .9s ease-out; }
:root[data-theme="light"] #zaehler b { text-shadow:0 0 18px rgba(10,111,134,.35); }
#zaehler small { display:block; margin-top:10px; font-size:18px; font-weight:800; letter-spacing:1px; color:var(--text); text-shadow:0 2px 6px #000a; }
:root[data-theme="light"] #zaehler small { text-shadow:none; }
@keyframes zaehl { from { transform:scale(1.7); opacity:0; } to { transform:none; opacity:1; } }
#ergebnis { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:5; min-width:380px; max-width:86%; padding:16px 22px 14px; border-radius:14px; text-align:center;
  background:linear-gradient(180deg, var(--ov-a), var(--ov-b)); border:2px solid var(--akz); box-shadow:0 0 30px rgba(240,181,74,.3), 0 18px 50px rgba(0,0,0,.6); animation:egRein .35s ease-out; pointer-events:none; }
@keyframes egRein { from { opacity:0; transform:translate(-50%, -50%) scale(.9); } to { opacity:1; transform:translate(-50%, -50%); } }
.eg-titel { font-size:28px; font-weight:900; font-style:italic; letter-spacing:1px; color:var(--akz-hell); }
.eg-unter { margin:4px 0 10px; font-size:14px; color:var(--text-2); }
.eg-liste { display:flex; flex-direction:column; gap:4px; text-align:left; }
.eg-z { display:grid; grid-template-columns:28px 14px minmax(0, 1fr) auto; align-items:center; gap:8px; padding:4px 8px; border-radius:7px; background:rgba(0,0,0,.2); font-size:14.5px; }
:root[data-theme="light"] .eg-z { background:rgba(250,252,255,.6); }
.eg-z b { font-size:16px; text-align:center; }
.eg-z i { width:12px; height:12px; border-radius:3px; background:var(--pf); box-shadow:0 0 8px var(--pf); }
.eg-z small { color:var(--text-3); font-size:12.5px; }
.eg-z.sieg { outline:1px solid var(--gold); }
.eg-status { margin-top:8px; font-size:13px; color:var(--text-3); }
#warten { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); z-index:4; padding:8px 16px; border-radius:10px; font-size:15px; font-weight:700; color:var(--text); background:var(--panel-solid); border:1px solid var(--linie); white-space:nowrap; }
#tasten { position:absolute; left:12px; right:12px; display:none; gap:12px; z-index:4; }
#tasten .kb { flex:1; height:100%; font-size:24px; }
#tasten .sgzi { width:34px; height:34px; }
#seite { right:12px; top:74px; width:344px; bottom:12px; padding:8px 10px 10px; display:flex; flex-direction:column; }
#fahrer { display:flex; flex-direction:column; gap:5px; margin-bottom:10px; flex:none; max-height:56%; overflow:auto; }
.fz { position:relative; display:grid; grid-template-columns:12px minmax(0, 1fr) auto; align-items:center; gap:9px; padding:6px 9px; border-radius:9px; background:rgba(0,0,0,.2); border:1px solid var(--linie); }
:root[data-theme="light"] .fz { background:rgba(250,252,255,.6); }
.fz > i { width:12px; height:30px; border-radius:4px; background:var(--pf); box-shadow:0 0 8px var(--pf); }
.fz.ich { border-color:var(--akz-hell); }
.fz.aus { opacity:.55; }
.fz.aus > i { box-shadow:none; }
.fz.spricht { box-shadow:0 0 0 2px var(--gruen), 0 0 12px rgba(109,255,158,.45); }
.fz-t { min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.fz-t b { font-size:14.5px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; align-items:center; gap:5px; }
.fz-t b .sgzi, .fz-t b svg { width:15px; height:15px; flex:none; }
.fz-t > small { font-size:12px; color:var(--dim); line-height:1.25; }
.fz-pk { display:flex; gap:3px; }
.fz-pk i { width:11px; height:11px; border-radius:3px; border:1.5px solid var(--pf); }
.fz-pk i.voll { background:var(--pf); box-shadow:0 0 6px var(--pf); }
.fz-mik { color:var(--gruen); } .fz-mik.stumm { color:var(--rot); }
#pchatwin { font-size:12.5px; padding:5px 7px; }
#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; flex:none; }
.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:12.5px; line-height:1.38; 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(250,252,255,.55); }
.ch-z b { color:var(--text); }
.ch-z small { font-size:12.5px; color:var(--dim); }
.ch-z.gut { color:#c8ffd8; } .ch-z.schlecht { color:#ffd0d0; }
:root[data-theme="light"] .ch-z.gut { color:#1d6a36; } :root[data-theme="light"] .ch-z.schlecht { color:#9c2a1a; }
.ch-z.runde { border-left-color:transparent; background:transparent; color:var(--dim); font-size:12.5px; 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; }

#ansicht-menu { right:12px; top:72px; padding:10px 12px; z-index:40; width:320px; display:flex; flex-direction:column; gap:6px; }
#ansicht-menu label { display:flex; align-items:flex-start; gap:9px; font-size:14px; cursor:pointer; padding:3px 0; }
#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:12.5px; 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; }
#hinweise { position:absolute; left:calc((100% - 356px) / 2); top:96px; transform:translateX(-50%); z-index:70; width:max-content; max-width:680px; display:flex; flex-direction:column; align-items:center; gap:6px; pointer-events:none; }
.meldung { padding:9px 18px; border-radius:9px; background:rgba(110,24,36,.95); border:1px solid #ffb0b8; color:#fff2f4; font-size:15px; font-weight:700; text-align:center; box-shadow:0 6px 18px rgba(0,0,0,.45);
  max-height:120px; overflow:hidden; animation:meldungRein .45s ease-out; transition:opacity .6s, max-height .6s, padding .6s, margin .6s, border-width .6s; }
.meldung.neutral { background:var(--panel-solid); border-color:var(--akz-hell); color:var(--text); }
.meldung.weg { opacity:0; max-height:0; padding-top:0; padding-bottom:0; margin-top:-6px; border-width:0; }
@keyframes meldungRein { from { opacity:0; max-height:0; padding-top:0; padding-bottom:0; transform:translateY(-10px); } to { opacity:1; max-height:120px; transform:none; } }
.banner { position:absolute; left:calc((100% - 356px) / 2); top:44%; 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 0 30px rgba(240,181,74,.3), 0 18px 50px rgba(0,0,0,.6); }
.banner.an { transform:translate(-50%, -50%) scale(1); opacity:1; }
.bn-titel { font-weight:900; font-style:italic; font-size:40px; letter-spacing:3px; color:var(--akz-hell); text-shadow:0 0 14px rgba(240,181,74,.5); }
: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; }
.konfetti { position:absolute; top:-24px; width:10px; height:14px; border-radius:2px; z-index:76; pointer-events:none; animation:fallen 3s ease-in forwards; }
@keyframes fallen { to { transform:translateY(860px) rotate(540deg); opacity:.2; } }
#stage.hoch .konfetti { animation-name:fallenH; }
@keyframes fallenH { to { transform:translateY(1860px) rotate(540deg); opacity:.2; } }

.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 0 30px rgba(240,181,74,.2), 0 14px 40px rgba(0,0,0,.6); }
.ov-box.ov-breit { max-width:960px; width:92%; }
.ov-titel { font-size:26px; font-weight:900; font-style:italic; color:var(--akz-hell); text-align:center; margin-bottom:8px; letter-spacing:1px; }
.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; }
.en-platz { display:grid; grid-template-columns:44px 14px minmax(0, 1fr) 72px 80px 112px; align-items:center; gap:10px; padding:8px 14px; background:rgba(0,0,0,.2); border:1px solid var(--linie); border-radius:10px; font-size:15px; }
:root[data-theme="light"] .en-platz { background:rgba(250,252,255,.6); }
.en-platz.kopf { background:transparent; border-color:transparent; padding-top:0; padding-bottom:0; font-size:12.5px; letter-spacing:1px; text-transform:uppercase; color:var(--dim); font-weight:800; }
.en-platz.p1 { border-color:var(--gold); background:rgba(255,216,107,.1); }
.en-platz.ich { outline:1px solid var(--akz-hell); }
.en-platz .pz { font-size:22px; font-weight:900; text-align:center; color:var(--text-2); }
.en-platz > i { width:12px; height:30px; border-radius:4px; background:var(--pf); box-shadow:0 0 8px var(--pf); }
.medaille { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; font:900 17px/1 var(--sans); 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%, #f4f6f8, #c9d1d6 55%, #6f7c84); }
.medaille.m3 { background:radial-gradient(circle at 35% 30%, #ffd9b0, #d08a4a 55%, #7a4416); }
.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-size:18px; color:var(--text); }
.en-platz .pk2 b { color:var(--gold); }
.en-platz .pk2 small { display:block; font-size:12.5px; font-weight:600; color:var(--dim); white-space:nowrap; }
.en-einladung { margin:10px 0 0; padding:8px 12px; border-radius:10px; text-align:center; font-size:15px; background:rgba(109,255,158,.12); 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 { 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; }
.hilfe-text .anl-kurz { padding:8px 14px; border-radius:10px; background:rgba(240,181,74,.08); border:1px solid var(--linie); }
#note { position:absolute; left:50%; top:10px; transform:translateX(-50%); background:rgba(150,24,36,.95); color:#fff2f4; padding:8px 16px; border-radius:8px; z-index:99; }

@media (pointer: coarse) {
  .kb-ic { width:50px; height:44px; }
  .live-mikro button { height:44px; }
  .lw-wahl button, .ti-wahl button { min-height:40px; min-width:40px; padding:8px 13px; font-size:15px; }
  .kb { min-height:42px; }
  .pc-knoepfe button { min-height:40px; }
  .ch-tabs 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.hoch .lo-haupt { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); }
#stage.hoch .lo-rechts { 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:360px; }
#stage.hoch .ti-chat { flex:1 1 100%; min-height:220px; }
#stage.hoch #kopf { height:72px; gap:6px; padding:0 6px; }
#stage.hoch #kopf .logo, #stage.hoch #kopf .trenner:first-of-type { display:none; }
#stage.hoch #kopf .kb-ic { width:64px; height:64px; }
#stage.hoch #kopf .kb-ic .sgzi { width:24px; height:24px; }
#stage.hoch .live-punkt span { display:none; }
#stage.hoch .k-phase { font-size:19px; }
#stage.hoch .runde { font-size:13px; }
#stage.hoch .runde b { font-size:22px; }
#stage.hoch #arena { left:8px; right:8px; top:132px; bottom:auto; height:var(--arena-h, 600px); }
#stage.hoch #seite { left:8px; right:8px; width:auto; top:var(--seite-top, 700px); bottom:8px; overflow-y:auto; }
#stage.hoch #seite .ch-liste, #stage.hoch #seite .ch-chat { min-height:110px; flex:none; }
#stage.hoch #ansicht-menu .am-4 { grid-template-columns:1fr 1fr; }
#stage.hoch .fz-t b { font-size:18px; }
#stage.hoch .fz-t > small { font-size:15px; }
#stage.hoch .ch-liste { font-size:16px; }
#stage.hoch .ch-liste small { font-size:15px; }
#stage.hoch .bn-unter { font-size:20px; }
#stage.hoch .ch-tabs button { font-size:16px; padding:8px; min-height:64px; }
#stage.hoch #pchatwin { font-size:17px; }
#stage.hoch #pchatin { font-size:20px; padding:9px 12px; }
#stage.hoch #hinweise, #stage.hoch .banner { left:50%; }
#stage.hoch #hinweise { top:100px; max-width:500px; }
#stage.hoch .meldung { font-size:20px; }
#stage.hoch .banner { min-width:0; width:86%; top:30%; }
#stage.hoch .en-platz { grid-template-columns:36px 12px minmax(0, 1fr) 60px 112px; }
#stage.hoch .en-platz .nur-quer { display:none; }
#stage.hoch #ansicht-menu { width:auto; left:8px; right:8px; top:80px; }
#stage.hoch #ansicht-menu label { font-size:18px; }
#stage.hoch #ansicht-menu label small { font-size:15px; }
#stage.hoch #ergebnis { min-width:0; width:90%; }
#stage.hoch .eg-z { font-size:18px; }
#stage.verdeckt .lo-kopf, #stage.verdeckt #kopf { transform:translateY(var(--verdeckt, 0px)); z-index:30; box-shadow:0 6px 18px rgba(0,0,0,.45); }
#stage.hoch #kopf .k-ziel-box, #stage.hoch #kopf .live-modus, #stage.hoch #kopf #k-mikro { display:none; }
#stage.hoch #kopf .live-wahl button { padding:0 6px; min-width:64px; min-height:64px; font-size:15px; }
#stage.hoch #kopf .runde { font-size:15px; }
#stage.hoch #seite .pt { font-size:15px; }
#stage.hoch #s-info { font-size:15px; }
#stage.hoch #kopf .k-phase { justify-content:center; flex-wrap:wrap; position:absolute; left:0; right:0; top:78px; min-height:34px; padding:4px 10px; font-size:15px; line-height:1.25; white-space:normal; text-align:center; background:var(--panel); border:1px solid var(--linie); border-radius:9px; overflow:visible; text-overflow:clip; }


#ansicht-menu .am-4 { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; }
#ansicht-menu .am-4 .knopf { width:100%; justify-content:center; white-space:nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.lw-multi button.an::before { content:'✓ '; }
.ti-wahl.lw-multi button.an::before { content:'✓ '; }
#en-zurueck { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); z-index:85; display:flex; gap:10px; padding:8px 10px; border-radius:14px; background:rgba(0,0,0,.74); box-shadow:0 6px 20px rgba(0,0,0,.55); }
.ti-opt .lw-info { margin-left:6px; }

.lw-leiter { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:5px; }
.lw-stufe { display:grid; grid-template-columns:22px minmax(0, 1fr) 18px; align-items:center; gap:7px; padding:5px 8px; border-radius:8px; border:1px solid var(--linie); background:rgba(0,0,0,.22); color:var(--text); text-align:left; font-size:13.5px; font-weight:700; }
.lw-stufe > b { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--knopf-t); background:var(--akz-hell); }
.lw-stufe small { display:block; font-size:12.5px; font-weight:500; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lw-stufe > span { min-width:0; }
.lw-stufe > i { display:flex; color:var(--text-3); } .lw-stufe > i svg { width:16px; height:16px; }
.lw-stufe.geschafft > i { color:var(--gruen); }
.lw-stufe.an { border-color:var(--akz-hell); background:rgba(240,181,74,.18); }
.lw-stufe:disabled { opacity:.5; }
@media (hover: hover) { .lw-stufe:not(:disabled):hover { border-color:var(--akz-hell); } }
.lw-tages { display:flex; flex-direction:column; gap:2px; max-height:150px; overflow:auto; }
.lw-tages .lt { display:grid; grid-template-columns:28px minmax(0, 1fr) auto; gap:6px; font-size:13px; padding:3px 8px; border-radius:6px; background:rgba(0,0,0,.18); color:var(--text-2); }
.lw-tages .lt.ich { color:var(--text); background:rgba(240,181,74,.16); font-weight:700; }
:root[data-theme="light"] .lw-stufe, :root[data-theme="light"] .lw-tages .lt { background:rgba(250,252,255,.65); }
:root[data-theme="light"] .lw-stufe > b { color:#eef6fa; }
#stage.hoch .lw-stufe { font-size:15px; min-height:44px; }

#pause .ov-box { max-width:420px; text-align:center; }
.pause-hin { color:var(--text-3); font-size:14px; }

#kopf, #seite { background:
  linear-gradient(180deg, rgba(255,230,190,.10), rgba(0,0,0,.18)),
  repeating-linear-gradient(92deg, rgba(0,0,0,.07) 0 2px, transparent 2px 9px, rgba(255,220,170,.05) 9px 11px, transparent 11px 23px),
  linear-gradient(180deg, #5b321a, #3b1f10); border:2px solid #c9a24a; box-shadow:inset 0 0 0 1px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,236,190,.25), 0 10px 26px rgba(0,0,0,.5); backdrop-filter:none; }
:root[data-theme="light"] #kopf, :root[data-theme="light"] #seite { background:
  linear-gradient(180deg, rgba(255,250,235,.25), rgba(0,0,0,.06)),
  repeating-linear-gradient(92deg, rgba(90,50,10,.07) 0 2px, transparent 2px 9px, rgba(255,240,210,.12) 9px 11px, transparent 11px 23px),
  linear-gradient(180deg, #d7b07a, #b98a52); border-color:#8a6420; }
#kopf .logo, #kopf .runde, #kopf .k-phase, #seite .pt { color:#f6e8c8; }
:root[data-theme="light"] #kopf .logo, :root[data-theme="light"] #kopf .runde, :root[data-theme="light"] #kopf .k-phase, :root[data-theme="light"] #seite .pt { color:#2a1806; }
.fz { background:linear-gradient(180deg, #ecd8a2, #c39a4a); border:1px solid #7a5418; box-shadow:inset 0 1px 0 rgba(255,250,225,.7), 0 2px 4px rgba(0,0,0,.35); }
.fz .fz-t b { color:#24160a; }
.fz .fz-t small { color:#4a3210; }
.fz.ich { outline:2px solid #fff3cf; outline-offset:1px; }
.fz.aus { filter:grayscale(.7); }
.ch-liste, #pchatwin { background:linear-gradient(180deg, #f3e9cf, #e9dcba); border:1px solid #9a7a3c; border-radius:6px; padding:4px; }
.ch-z { background:transparent; color:#2b2214; }
.ch-z small { color:#5a4a2c; }
.ch-z b { color:#24160a; }
.ch-z.gut { color:#1b5a2c; }
.ch-z.schlecht { color:#8a1f1a; }
.ch-z.runde { color:#5a4a2c; }
#pchattext { color:#2b2214; }
#k-runde { display:inline-block; padding:1px 7px; border-radius:5px; background:linear-gradient(180deg, #1c1c22 0 49%, #000 49% 51%, #2a2a32 51%); color:#f4ead2 !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.12); transform-origin:50% 50%; }
#k-runde.klapp { animation:klapp .38s ease-in; }
@keyframes klapp { 0% { transform:rotateX(0); } 45% { transform:rotateX(88deg); } 55% { transform:rotateX(-88deg); } 100% { transform:rotateX(0); } }
@media (prefers-reduced-motion: reduce) { #k-runde.klapp { animation:none; } }
.fz-bild { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--pf); box-shadow:0 1px 3px rgba(0,0,0,.5); }
.fz.mit-bild { grid-template-columns:12px 38px minmax(0, 1fr) auto; }
#stage.hoch .fz-bild { width:46px; height:46px; }
#stage.hoch .fz.mit-bild { grid-template-columns:12px 46px minmax(0, 1fr) auto; }
#zaehler .zl-bild { display:block; width:96px; height:96px; margin:0 auto 6px; border-radius:50%; border:3px solid #c9a24a; object-fit:cover; }
#zugfeld { position:absolute; left:8px; right:8px; height:86px; display:none; align-items:center; justify-content:center; border-radius:12px; border:2px dashed rgba(240,210,150,.7);
  background:rgba(20,12,6,.45); color:#f6e8c8; font-size:16px; font-weight:700; touch-action:none; z-index:4; }
#stage.hoch #zugfeld.an { display:flex; top:var(--zug-top, 760px); }

.lo-kopf { background:linear-gradient(180deg, rgba(255,230,190,.08), rgba(0,0,0,.2)), repeating-linear-gradient(92deg, rgba(0,0,0,.07) 0 2px, transparent 2px 9px, rgba(255,220,170,.05) 9px 11px, transparent 11px 23px), linear-gradient(180deg, #5b321a, #3b1f10); border-bottom:2px solid #c9a24a; }
.lo-kopf .lo-raum, .lo-kopf .lo-ich { color:#f6e8c8; }
.lo-start, .ti-opts, .lo-rechts .lo-spieler, .lo-rechts .lo-chat { background:linear-gradient(180deg, rgba(255,230,190,.07), rgba(0,0,0,.25)), repeating-linear-gradient(92deg, rgba(0,0,0,.06) 0 2px, transparent 2px 10px), linear-gradient(180deg, rgba(74,40,20,.94), rgba(46,24,12,.95));
  border:2px solid #c9a24a; box-shadow:inset 0 1px 0 rgba(255,236,190,.2), 0 10px 24px rgba(0,0,0,.45); }
:root[data-theme="light"] .lo-kopf, :root[data-theme="light"] .lo-start, :root[data-theme="light"] .ti-opts, :root[data-theme="light"] .lo-rechts .lo-spieler, :root[data-theme="light"] .lo-rechts .lo-chat {
  background:linear-gradient(180deg, rgba(255,250,235,.3), rgba(0,0,0,.04)), repeating-linear-gradient(92deg, rgba(90,50,10,.06) 0 2px, transparent 2px 10px), linear-gradient(180deg, #e2c290, #c99c62); border-color:#8a6420; }
:root[data-theme="light"] .lo-kopf .lo-raum, :root[data-theme="light"] .lo-kopf .lo-ich { color:#2a1806; }
.lw-oeffentlich { border-color:#e8a23a; background:rgba(232,162,58,.14); }
.lw-sterne { font-style:normal; font-size:15px; letter-spacing:1px; color:#b88a2a; white-space:nowrap; }
.lw-sterne b { color:#f2c14e; font-weight:400; }
.ti-links { flex:0 0 320px; display:flex; flex-direction:column; gap:8px; min-height:0; }
.ti-links .ti-plaetze { flex:1; }
.ti-tischbild { border-radius:12px; padding:6px; background:rgba(20,10,4,.35); }
.ti-tischbild svg { display:block; width:100%; height:auto; }
.fz-pk i { width:14px; height:14px; border-radius:50%; background:transparent; border:3px solid rgba(80,60,30,.35); box-shadow:none; }
.fz-pk i.voll { border:none; background:conic-gradient(#d9432f 0 25%, #f4efe4 0 50%, #d9432f 0 75%, #f4efe4 0); -webkit-mask:radial-gradient(circle, transparent 3px, #000 3.5px); mask:radial-gradient(circle, transparent 3px, #000 3.5px); }
#stage.hoch .ti-links { flex:1 1 100%; }
#stage.hoch .ti-tischbild { max-width:340px; align-self:center; width:100%; }

:root[data-ansicht="calais"] #kulisse { background-color:#2a140c; }
:root[data-ansicht="calais"] #kulisse-bild { background-image:url(img/calais-q.webp?v=1); }
:root[data-ansicht="calais"] #stage.hoch #kulisse-bild { background-image:url(img/calais-h.webp?v=1); }
.am-orte { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.am-ort { position:relative; height:64px; border-radius:8px; border:2px solid rgba(201,162,74,.45); background:#222 center / cover no-repeat; cursor:pointer; overflow:hidden; }
.am-ort span { position:absolute; left:0; right:0; bottom:0; padding:3px 6px; font-size:13px; font-weight:700; color:#fff6e0; background:linear-gradient(transparent, rgba(0,0,0,.75)); text-align:left; }
.am-ort.an { border-color:#ffd88a; box-shadow:0 0 0 2px rgba(255,216,138,.4); }
.am-regler { display:grid !important; grid-template-columns:110px 1fr 48px; align-items:center; gap:8px; font-size:14px; }
.am-regler input { width:100%; accent-color:var(--akz); }
.am-regler b { font-variant-numeric:tabular-nums; text-align:right; font-weight:700; }
.en-platz.kommt { animation:kommt .45s ease-out both; }
@keyframes kommt { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.en-platz .pk2 b { font-variant-numeric:tabular-nums; }
.fz-bild.wackelt { animation:wackelt .5s ease-in-out; }
@keyframes wackelt { 0%, 100% { transform:rotate(0); } 25% { transform:rotate(-12deg) scale(1.08); } 75% { transform:rotate(10deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .en-platz.kommt, .fz-bild.wackelt { animation:none; } }
.lw-geister .lt { width:100%; border:1px solid var(--linie); background:rgba(0,0,0,.18); color:var(--text); border-radius:7px; padding:6px 9px; display:flex; justify-content:space-between; cursor:pointer; font-size:14px; margin-bottom:4px; }
.lw-geister .lt.an { border-color:var(--akz); background:rgba(240,181,74,.18); }
#seite-klapp { display:none; }
#stage.hoch #seite-klapp { display:flex; width:100%; min-height:56px; margin-bottom:6px; font-size:16px; }
#stage.hoch #seite:not(.auf) #fahrer, #stage.hoch #seite:not(.auf) .pt, #stage.hoch #seite:not(.auf) .ch-tabs, #stage.hoch #seite:not(.auf) #ch-chat { display:none !important; }
#stage.hoch #seite:not(.auf) .ch-liste { min-height:0; max-height:56px; flex:1; }
#stage.hoch #seite.auf { top:auto !important; bottom:8px; height:62%; z-index:8; }
#ansicht-menu .am-regler input[type=range] { width:100% !important; min-width:120px; height:22px; margin:0; appearance:auto; -webkit-appearance:auto; }
#ansicht-menu .am-regler span { font-size:14px; }
#stage.hoch #kopf #k-hilfe { display:none; }
