/* Speedtakt – Orchesterprobe im Goldenen Saal, Wien 1898: Blattgold, Eichenparkett, Notenpapier, Rotstift.
 * Bühne 1180–1600 × 800 (Hochformat 540 × 1060–1600), skaliert. Hinter allen Bildschirmen liegt der Saal (#grund, gemaltes Bild img/<ansicht>[-hoch].webp).
 * Ansichten: „Goldener Saal“ (Standard), „Probenkeller“ (html[data-design="keller"]) und hell „Musikpavillon“
 * (html[data-theme="light"], sgz.takt.theme bzw. sgz.theme) – Sommermorgen am See, kein Reinweiß. Alle Farben über Variablen. */
:root {
  --bg:#1c140c; --panel:rgba(30,20,12,.86); --panel2:rgba(44,30,18,.94); --panel-solid:#2e2014;
  --akz:#e8b84a; --akz-hell:#ffd98a; --akz2:#b8862a; --linie:rgba(240,200,120,.32);
  --text:#fbf3e4; --text-2:#ecdcc0; --text-3:#c9b694; --dim:#cdb994;
  --gold:#f2c35a; --rot:#ff8f7a; --gruen:#a8e08a; --blau:#9cc4f2; --dran:#7ad6c0;
  --ov-a:#3a2a18; --ov-b:#140c06; --scrim:rgba(10,6,2,.7);
  --kn-a:#4a3420; --kn-b:#24180c;
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --grund-q:url(img/saal.webp?v=1); --grund-h:url(img/saal-hoch.webp?v=1);
  --boden:url(img/boden-saal.webp?v=1); --kante:#4a2c12; --kante2:#2a1808; --licht:rgba(255,226,160,.18);
  --tafel:linear-gradient(rgba(34,22,12,.88), rgba(22,14,8,.93)); --holz:linear-gradient(180deg, #7a5230, #4a3018);
  --papier:#f5ecd6; --papier-rand:#b9a882; --tinte:#2a1c10; --gut:#a8e08a; --schlecht:#ff9a86; --schild:linear-gradient(180deg, rgba(40,26,14,.92), rgba(24,14,6,.94));
}
:root[data-theme="light"] {
  --bg:#eae4d2; --panel:rgba(250,246,236,.9); --panel2:rgba(242,236,222,.96); --panel-solid:#f4eedf;
  --akz:#8a5a10; --akz-hell:#6e4206; --akz2:#b8803a; --linie:rgba(90,70,40,.3);
  --text:#1e1a12; --text-2:#3a3020; --text-3:#5a4a32; --dim:#5a4a32;
  --gold:#7a4c00; --rot:#b4232f; --gruen:#24683a; --blau:#1a5fb4; --dran:#0f7a62;
  --ov-a:#f7f2e6; --ov-b:#e6dcc6; --scrim:rgba(40,34,24,.42);
  --kn-a:#f7f2e6; --kn-b:#ddd2b8;
  --grund-q:url(img/pavillon.webp?v=1); --grund-h:url(img/pavillon-hoch.webp?v=1);
  --boden:url(img/boden-pavillon.webp?v=1); --kante:#a8957a; --kante2:#7a6a50; --licht:rgba(255,250,220,.22);
  --tafel:linear-gradient(rgba(250,246,236,.9), rgba(240,234,218,.94)); --holz:linear-gradient(180deg, #d8b888, #b08a58);
  --papier:#fbf5e6; --papier-rand:#c4b48c; --gut:#24683a; --schlecht:#a32418; --schild:linear-gradient(180deg, rgba(252,248,238,.94), rgba(238,230,212,.95));
}
html[data-design="keller"]:not([data-theme="light"]) {
  --bg:#1a120c; --panel:rgba(36,22,12,.88); --panel2:rgba(52,32,18,.95); --panel-solid:#30200f;
  --linie:rgba(255,190,120,.3); --ov-a:#4a2e18; --ov-b:#1a0e06; --kn-a:#5a3a1e; --kn-b:#2a180a;
  --grund-q:url(img/keller.webp?v=1); --grund-h:url(img/keller-hoch.webp?v=1);
  --boden:url(img/boden-keller.webp?v=1); --kante:#2e1c0c; --kante2:#160c04; --licht:rgba(255,180,90,.2);
}
/* Scrollleisten in der Spielfarbe (REGELN.md): Blattgold auf dunklem Holz, im hellen Modus Bernstein auf Creme */
: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:#08080f; 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, #262a48 0%, #08080f 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; }

/* Knöpfe */
.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; }

/* ================================================================ Foyer / Probenzimmer */
#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 */
.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; }

/* Overlays */
.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; }


/* ================================================================ Hochformat (Handy hochkant): Bühne 800 × 1100–1800 */
#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 */
#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; }   /* links Platz für die Pille „Kurzregeln“ der Spielseite */
.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; }



/* Meldungen in der eigenen Leiste unter der Lage – neue unten, ältere rutschen oben hinaus; belegen keinen Platz im Layout */

/* ---------------------------------------------------------------- Seite: Punktetafel */
#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; }

/* Flug, Blasen, Hinweis, Ansicht */




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


/* ================================================================ Speedtakt: Goldener Saal, Bühnenpodium, Notenpulte
 * Gesamtbild (Gate R40): Ort = der gemalte Saal (#grund, überall scharf). Darauf das Bühnenpodium #podium (data-flaeche): Eichenparkett
 * (gemaltes Bild img/boden-<ansicht>.webp) mit Stirnkante und Schatten auf den Saal; darauf stehen die Notenpulte der Ensembles im Bogen,
 * das Dirigentenpodest in der Mitte und das eigene Pult vorn. Die eigenen Musiker liegen auf der Notenbank (Holz), Spielstand und Verlauf
 * auf Holztafeln. Ansicht = anderer Ort und anderer Boden (Goldener Saal, Probenkeller, Musikpavillon am See). */
#grund { position:absolute; inset:0; background:var(--grund-q) center / cover no-repeat, var(--bg); }
#stage.hoch #grund { background-image:var(--grund-h); }
#grund::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse 85% 75% at 50% 45%, rgba(20,12,4,.02), rgba(14,8,2,.3)); }
:root[data-theme="light"] #grund::after { background:radial-gradient(ellipse 85% 75% at 50% 45%, rgba(250,246,236,.02), rgba(236,228,210,.18)); }
#stage.lobbyhg #grund { filter:blur(3px) brightness(.75) saturate(.9); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(3px) brightness(1.05) saturate(.8); }
#lobby, #tisch { background:linear-gradient(180deg, rgba(20,12,4,.32), rgba(14,8,2,.6)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(250,246,236,.35), rgba(232,224,204,.55)); }
.tg-l { margin-top:4px; } .tg-liste { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:4px; } .tg-liste .ich { color:var(--akz-hell); } .tg-liste i { color:var(--gold); font-style:normal; font-weight:800; }
/* der Ort lebt: der Lüster glimmt sacht im oberen Drittel (nicht hinter Text), aus bei reduzierter Bewegung */
#grund::before { content:""; position:absolute; left:6%; top:2%; width:40%; height:34%; pointer-events:none; opacity:0; z-index:1;
  background:radial-gradient(ellipse at 40% 30%, var(--licht), transparent 70%); }
@media (prefers-reduced-motion: no-preference) { #grund::before { opacity:1; animation:gluehen 8s ease-in-out infinite alternate; } }
@keyframes gluehen { 0% { opacity:.5; } 45% { opacity:.95; } 60% { opacity:.75; } 100% { opacity:1; } }

:root { --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"] { --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); }
#feld { position:absolute; left:12px; top:72px; right:338px; bottom:10px; display:grid; grid-template-rows:minmax(0, 1fr) 196px; gap:12px; }
#seite { position:absolute; right:12px; top:72px; bottom:10px; width:316px; display:flex; flex-direction:column; gap:8px; }
#seite > .panel { position:relative; background:var(--maserung), var(--tafel); backdrop-filter:none; -webkit-backdrop-filter:none; }
#partie > #kopf { background:linear-gradient(rgba(20,12,4,.5), rgba(20,12,4,.56)); backdrop-filter:none; -webkit-backdrop-filter:none; text-shadow:0 1px 3px rgba(0,0,0,.85); }
:root[data-theme="light"] #partie > #kopf { background:linear-gradient(rgba(250,246,236,.5), rgba(244,238,224,.55)); text-shadow:0 1px 2px rgba(255,250,240,.9); }
#tafel { flex:0 0 auto; padding:10px 12px; max-height:56%; overflow:auto; }

/* ---------------------------------------------------------------- Podium (Spielfläche) */
#podium { position:relative; min-height:0; border-radius:22px 22px 10px 10px; background:var(--boden) center / cover, #7a5230;
  box-shadow:0 14px 0 -2px var(--kante), 0 16px 0 -2px var(--kante2), 0 26px 34px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,230,180,.12), inset 0 -30px 60px rgba(0,0,0,.25); margin:6px 46px 22px; }
:root[data-theme="light"] #podium { box-shadow:0 14px 0 -2px var(--kante), 0 16px 0 -2px var(--kante2), 0 22px 28px rgba(80,60,30,.35), inset 0 0 0 2px rgba(255,255,255,.3), inset 0 -30px 60px rgba(120,90,50,.12); }
#podium::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255,236,190,.16), transparent 70%); }
#podium-in { position:absolute; inset:0; }
#podium, #notenbank { touch-action:pinch-zoom; }   /* kein Scrollen, kein pointercancel beim Wischen (R34) */
.pult { position:absolute; display:flex; flex-direction:column; align-items:stretch; gap:4px; transition:filter .3s; }
.pu-schild { position:relative; z-index:2; display:flex; align-items:center; gap:6px; padding:3px 8px 3px 4px; border-radius:18px; background:var(--schild); border:1px solid var(--linie); border-left:5px solid var(--sf);
  box-shadow:0 3px 8px rgba(0,0,0,.4); min-height:38px; }
.pu-schild.neu { animation:schildRot .9s ease-out; }
@keyframes schildRot { 0% { box-shadow:0 0 0 0 rgba(220,50,40,.8); } 100% { box-shadow:0 0 0 14px rgba(220,50,40,0); } }
.pu-nm { flex:1; min-width:0; font-weight:800; font-size:13.5px; line-height:1.15; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pu-nm small { display:block; font-weight:600; font-size:12px; color:var(--dim); }
.pult.dran .pu-schild { border-color:var(--akz-hell); box-shadow:0 0 0 3px rgba(255,217,138,.45), 0 3px 8px rgba(0,0,0,.4); }
.pult.dran .pu-nm small { color:var(--akz-hell); }
.pult.weg { filter:saturate(.4); }
.pu-minus { position:absolute; right:-8px; top:-12px; display:flex; align-items:center; gap:2px; padding:2px 7px 2px 4px; border-radius:11px; font:900 15px/1 var(--kopf); color:#3a1208; background:linear-gradient(#fff6e2, #ead8b0); border:1px solid #c42a22; box-shadow:0 2px 4px rgba(0,0,0,.4); }
.pu-staender { position:relative; flex:1; display:flex; justify-content:center; }
.pu-staender::after { content:""; position:absolute; left:50%; bottom:-6px; width:6px; height:22px; margin-left:-3px; background:linear-gradient(90deg, #1a120a, #4a3220, #1a120a); border-radius:3px; z-index:0; }
.pu-blatt { position:relative; z-index:1; display:flex; justify-content:center; gap:6px; padding:6px 8px 7px; border-radius:6px 6px 3px 3px; width:100%;
  background:linear-gradient(180deg, #3a2614, #22160a); border:1px solid #5a3e22; box-shadow:0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,220,170,.18); transform:perspective(400px) rotateX(8deg); }
:root[data-theme="light"] .pu-blatt { background:linear-gradient(180deg, #e8dcc0, #cbb88e); border-color:#a8946a; box-shadow:0 6px 10px rgba(90,70,40,.3), inset 0 1px 0 #fff8; }
.pu-platz { width:58px; height:82px; border-radius:6px; flex:none; }
.pu-platz.leer { border:1.5px dashed rgba(255,226,170,.35); background:rgba(0,0,0,.12); }
:root[data-theme="light"] .pu-platz.leer { border-color:rgba(90,70,40,.35); background:rgba(255,255,255,.25); }
.pu-fuss { display:flex; justify-content:center; gap:8px; align-items:center; }
.pu-fuss > span { display:inline-flex; align-items:center; gap:3px; padding:1px 6px 1px 3px; border-radius:9px; background:rgba(16,10,4,.6); border:1px solid var(--linie); font:800 13px/1.4 var(--sans); color:var(--text); }
:root[data-theme="light"] .pu-fuss > span { background:rgba(255,250,236,.75); }
.pu-fuss .karte.mini { width:16px; height:22px; border-radius:2px; }
.pu-fuss .gd { width:20px; height:20px; }
.pu-gabel { position:absolute; right:-10px; top:30px; z-index:3; width:24px; height:48px; filter:drop-shadow(2px 3px 2px rgba(0,0,0,.5)); transform:rotate(14deg); }
.pu-gabel .gabel { width:100%; height:100%; }
.pult.ich .pu-blatt { box-shadow:0 0 0 2px var(--sf), 0 6px 10px rgba(0,0,0,.45); }
.dirigent { position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; }
.dirigent::before { content:""; position:absolute; left:6px; right:6px; bottom:0; height:34px; border-radius:6px 6px 4px 4px; background:linear-gradient(180deg, #7a2a24, #4a1410);
  box-shadow:0 8px 0 -1px #2a0a06, 0 14px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,180,.3); }
.di-schild { position:relative; z-index:1; padding:3px 12px 4px; border-radius:6px; text-align:center; font:900 15px/1.15 var(--kopf); letter-spacing:1px; color:#2a1a06;
  background:linear-gradient(#f6e2a8, #c99a3a); border:1px solid #fff2c6; box-shadow:0 3px 6px rgba(0,0,0,.45); white-space:nowrap; }
.di-schild small { display:block; font:700 11.5px/1.2 var(--sans); letter-spacing:0; color:#4a3008; }
.di-stapel { position:relative; z-index:1; margin-bottom:6px; }
.di-laut { position:relative; z-index:1; display:flex; gap:4px; }
.dl { display:inline-flex; align-items:baseline; gap:2px; padding:1px 6px; border-radius:8px; font:800 11px/1.5 var(--sans); color:#fff; box-shadow:0 1px 3px rgba(0,0,0,.45); }
.dl b { font:italic 900 13px/1 var(--kopf); }
.dl.r0 { background:#24508f; } .dl.r1 { background:#7a5208; } .dl.r2 { background:#5e2c86; }
.dl.leer { opacity:1; background:#4a3e30; color:#d8ccb4; }
.karte.pk.vgl { box-shadow:0 0 0 3px #ffd98a, 0 0 14px rgba(255,217,138,.8); }
.karte.pk.neu { animation:ankunft .9s ease-out; }
.di-stapel .ruege.gross { width:46px; height:34px; filter:drop-shadow(0 2px 2px rgba(0,0,0,.5)); }

/* ---------------------------------------------------------------- Karten */
.karte { position:relative; display:inline-flex; flex-direction:column; align-items:center; width:58px; height:82px; border-radius:6px; flex:none; overflow:hidden;
  background:linear-gradient(160deg, #fffaf0 0%, var(--papier) 55%, #e6d8b8 100%); border:2px solid var(--rf); box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 5px rgba(0,0,0,.45); color:var(--tinte); }
.ka-kopf { position:absolute; left:0; right:0; top:0; height:17px; display:flex; align-items:center; justify-content:center; background:var(--rd); background:linear-gradient(180deg, var(--rf), var(--rd)); }
.karte.r1 .ka-kopf { background:#8a5c08; background:linear-gradient(180deg, #8a5c08, var(--rd)); }
.ka-ecke { position:absolute; left:3px; top:2px; z-index:1; font:900 13px/1 var(--kopf); color:#fff; text-shadow:0 1px 1px var(--rd); }
.ka-dyn { position:relative; z-index:1; font:italic 900 14px/1 var(--kopf); color:#fff; text-shadow:0 1px 1px var(--rd); letter-spacing:-.5px; }
.ka-bild { width:84%; height:auto; margin-top:20px; filter:drop-shadow(1px 1.5px 1px rgba(0,0,0,.35)); }
.ka-schall { width:76%; height:auto; margin-top:auto; margin-bottom:3px; }
.ka-reg { display:none; }
.karte > *, .karte svg { pointer-events:none; }   /* Finger und Maus treffen immer die ganze Karte (R34) */
.karte.rueck { background:none; border:0; box-shadow:0 2px 4px rgba(0,0,0,.4); }
.karte.rueck svg { width:100%; height:100%; display:block; }
.karte.pk.laut { box-shadow:0 0 0 3px #e0322a, 0 0 18px 4px rgba(230,60,40,.75); animation:laut .5s ease-in-out 2 alternate; }
@keyframes laut { to { transform:scale(1.12) rotate(-3deg); } }
.karte.unterwegs { visibility:hidden; }   /* fliegt noch – erst bei Ankunft sichtbar (R32) */
.karte.weg { transition:transform .3s ease-in, opacity .3s; transform:translateY(-30px) scale(.8); opacity:0; }
.flieger .karte { width:58px; height:82px; }
.flieger .karte.rueck { width:40px; height:56px; }
.flieger .ruege { width:44px; height:32px; }
.flieger .gabel { width:24px; height:48px; }
.ruege { position:relative; display:inline-flex; align-items:center; justify-content:center; width:24px; height:18px; flex:none; }
.ruege svg { width:100%; height:100%; display:block; }
.ruege b { position:absolute; right:-4px; bottom:-4px; min-width:16px; height:16px; border-radius:8px; background:#c42a22; color:#fff; font:900 11px/16px var(--sans); text-align:center; }
.ruege.klein { width:22px; height:17px; }
.gabel { display:block; }

/* ---------------------------------------------------------------- Unten: Notenbank (Hand) und eigener Platz */
#unten { display:grid; grid-template-columns:minmax(0, 1fr) 400px; gap:12px; min-height:0; }
#notenbank { position:relative; display:flex; align-items:center; justify-content:center; padding:10px 16px 12px; border-radius:12px; background:var(--maserung), var(--holz);
  border:1px solid rgba(255,220,170,.25); box-shadow:inset 0 2px 0 rgba(255,220,170,.2), inset 0 -6px 12px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.45); }
#notenbank::after { content:""; position:absolute; left:14px; right:14px; bottom:10px; height:8px; border-radius:4px; background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(255,220,170,.12)); pointer-events:none; }
#hand { position:relative; z-index:1; display:flex; gap:14px; align-items:flex-end; justify-content:center; touch-action:manipulation; }
#hand .karte { width:96px; height:136px; border-radius:9px; border-width:3px; transition:transform .18s, box-shadow .18s; }
#hand .karte .ka-kopf { height:28px; }
#hand .karte .ka-ecke { font-size:20px; left:6px; top:4px; }
#hand .karte .ka-dyn { font-size:22px; }
#hand .karte .ka-bild { margin-top:32px; }
#hand .karte.tippbar { cursor:pointer; }
@media (hover: hover) { #hand .karte.tippbar:hover { transform:translateY(-8px); } }
#hand .karte.gew { transform:translateY(-16px); box-shadow:0 0 0 3px var(--akz-hell), 0 10px 18px rgba(0,0,0,.5); }
#hand .karte.empf { box-shadow:0 0 0 3px #7ad6c0, 0 0 14px rgba(122,214,192,.7); }
#hand .karte.neu { animation:ankunft .5s ease-out; }
@keyframes ankunft { from { filter:brightness(1.5); } }   /* nur Leuchten, kein zweites Einrutschen (Prüfroutine 3h) */
.hd-marke { position:absolute; left:50%; bottom:20px; transform:translateX(-50%); z-index:2; padding:1px 6px; border-radius:7px; font:800 11.5px/1.35 var(--sans); font-style:normal; white-space:nowrap; }
.hd-marke.sicher { background:#e4f4d8; color:#1f5a2a; border:1px solid #6aa85a; }
.hd-marke.laut { background:#fde0d8; color:#9a1a10; border:1px solid #d86a5a; }
.hd-leer { color:var(--text-2); font-style:italic; font-size:15px; }
#ich { display:grid; grid-template-rows:minmax(0, 1fr) 76px; grid-template-columns:minmax(0, 1fr); gap:8px; min-height:0; min-width:0; }
.ich-box { display:flex; flex-direction:column; gap:4px; padding:7px 10px; border-radius:12px; background:var(--maserung), var(--tafel); border:1px solid var(--linie); border-left:5px solid var(--sf); min-height:0; }
.ich-box.dran { border-color:var(--akz-hell); }
.ich-box.blink { animation:blink 1s ease-out 2; }
@keyframes blink { 50% { box-shadow:0 0 0 4px rgba(255,217,138,.6); } }
.ich-zeile { display:flex; align-items:center; gap:10px; }
.ich-kopf { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.ich-name { font-weight:800; font-size:15px; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ich-name small { display:block; font-weight:600; font-size:12px; color:var(--dim); }
.ich-wert { display:flex; align-items:center; gap:4px; font:900 18px/1 var(--kopf); white-space:nowrap; } .ich-wert small { font:700 12px var(--sans); color:var(--dim); } .ich-wert .gd { width:22px; height:22px; }
.lage { height:40px; overflow:hidden; font-size:14px; line-height:1.4; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.lage b { color:var(--text); } .lage .gut { color:var(--gut); font-weight:800; } .lage .schlecht { color:var(--schlecht); font-weight:800; }
.wahl-box { display:flex; flex-direction:column; gap:3px; height:76px; }
.wahl-knoepfe { display:flex; gap:8px; height:52px; }
.wahl { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; flex:1; border-radius:10px; font:800 16px/1.15 var(--sans); color:#2b2405;
  background:linear-gradient(#ffe39a, #e0a52a); border:1px solid #fff3c8; box-shadow:0 3px 0 #6a4a06, inset 0 1px 0 #fff6; }
.wahl small { font-weight:600; font-size:12px; color:#4a3608; }
.wahl.klein { flex:0 0 96px; color:var(--text); background:var(--maserung), var(--holz); border-color:rgba(255,220,170,.35); box-shadow:0 3px 0 #2a1808; } .wahl.klein small { color:var(--text-2); }
.wahl:disabled { opacity:.5; cursor:default; border-style:dashed; }
.wahl .sgzi { width:18px; height:18px; }
.wahl-ruhe { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; border-radius:10px; font-size:15px; color:var(--text-2); background:var(--maserung), var(--tafel); border:1px dashed var(--linie); }
.wahl-unter { height:18px; font-size:12px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .wahl-unter .warn { color:var(--rot); font-weight:800; }

/* ---------------------------------------------------------------- Seite: Spielstand */
.tf-kopf, .tz { display:grid; grid-template-columns:24px minmax(0, 1fr) 30px 30px 30px 44px; align-items:center; gap:4px; }
.tf-kopf { font-size:11px; letter-spacing:.5px; color:var(--dim); text-transform:uppercase; font-weight:800; padding:0 4px 3px; }
.tf-kopf span:nth-child(n+3) { text-align:center; }
.tz { padding:4px; border-radius:6px; border-left:3px solid var(--sf); background:rgba(0,0,0,.18); margin-bottom:3px; font-size:14px; }
:root[data-theme="light"] .tz { background:rgba(255,255,255,.5); }
.tz.ich { outline:1px solid var(--akz-hell); }
.tz-nm { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.tz-gabel { display:inline-block; width:10px; height:20px; vertical-align:-5px; } .tz-gabel .gabel { width:10px; height:20px; }
.tz-w { text-align:center; font-variant-numeric:tabular-nums; color:var(--text-2); }
.tz-w.jetzt { color:var(--akz-hell); font-weight:800; }
.tz-m b { font-family:var(--kopf); font-size:16px; color:var(--text); }
.tf-hin { font-size:11.5px; color:var(--dim); margin:4px 2px 2px; line-height:1.35; }
.lt-kopf { display:flex; justify-content:space-between; gap:6px; margin:8px 2px 4px; font-size:11.5px; letter-spacing:1.5px; text-transform:uppercase; font-weight:800; color:var(--dim); }
.lt-kopf span { letter-spacing:0; text-transform:none; font-weight:600; }
.mz { display:flex; flex-direction:column; gap:3px; }
.mz-z { display:grid; grid-template-columns:70px repeat(3, minmax(0, 1fr)); gap:4px; align-items:center; padding:2px 4px; border-left:3px solid var(--sf); font-size:12px; }
.mz-nm { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.mz-r { font-style:italic; font-family:var(--kopf); font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mz-r.r0 { color:#9cc0f6; } .mz-r.r1 { color:#f2cc6a; } .mz-r.r2 { color:#cfa8f0; }
:root[data-theme="light"] .mz-r.r0 { color:#1f4c96; } :root[data-theme="light"] .mz-r.r1 { color:#7a5206; } :root[data-theme="light"] .mz-r.r2 { color:#5a2a86; }

/* ---------------------------------------------------------------- Meldungen, Info-Fenster */
#meldungen { position:absolute; left:50%; top:-2px; transform:translate(-50%, -100%); width:min(720px, 92%); z-index:20; display:flex; flex-direction:column; gap:4px; pointer-events:none; }
#meldungen { top:6px; transform:translateX(-50%); }
.meldung { padding:5px 12px; border-radius:9px; background:rgba(26,16,8,.9); border:1px solid var(--linie); color:var(--text); font-size:14px; line-height:1.3; box-shadow:0 4px 12px rgba(0,0,0,.45); animation:mein .35s ease-out;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.meldung:not(:last-child) { display:none; }
:root[data-theme="light"] .meldung { background:rgba(252,248,238,.95); }
@keyframes mein { from { opacity:0; transform:translateY(-6px); } }
.meldung.weg { opacity:0; transform:translateY(-6px); transition:opacity .5s, transform .5s; }
.meldung b { color:var(--akz-hell); } :root[data-theme="light"] .meldung b { color:#7a3a08; }
b.kn.r0 { color:#9cc0f6 !important; } b.kn.r1 { color:#f2cc6a !important; } b.kn.r2 { color:#d2adf2 !important; }
:root[data-theme="light"] b.kn.r0 { color:#1f4c96 !important; } :root[data-theme="light"] b.kn.r1 { color:#7a5206 !important; } :root[data-theme="light"] b.kn.r2 { color:#5a2a86 !important; }
.rat-text { color:#7ad6c0; font-weight:800; } .rat-text .sgzi { vertical-align:-3px; }
.zk-bild .karte.mini { width:44px; height:62px; }
.ki-karte .karte { width:86px; height:122px; border-width:3px; } .ki-karte .karte .ka-kopf { height:24px; } .ki-karte .karte .ka-ecke { font-size:17px; } .ki-karte .karte .ka-dyn { font-size:18px; } .ki-karte .karte .ka-bild { margin-top:28px; }
.ki-gabel .gabel { width:40px; height:80px; }

/* ================================================================ Handy quer (Finger, Höhe bis 500 px) und Hochformat */
#stage.quer-handy #feld { grid-template-rows:minmax(0, 1fr) 170px; }
#stage.quer-handy #hand .karte { width:84px; height:118px; }
#stage.hoch #kopf { left:8px; right:8px; height:132px; 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 calc(100% - 112px); justify-content:flex-end; gap:6px; }
#stage.hoch #k-verlauf { order:0; width:96px; height:66px; 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:20px; }
#stage.hoch .k-phase { order:4; flex:1 1 0; font-size:17px; }
#stage.hoch .uhr { order:5; font-size:22px; }
#stage.hoch .kb-ic { width:68px; height:66px; } #stage.hoch .kb-ic .sgzi { width:26px; height:26px; }
#stage.hoch #feld { left:8px; right:8px; top:146px; bottom:8px; grid-template-rows:minmax(0, 1fr) 372px; gap:12px; }
#stage.hoch #podium { margin:4px 6px 22px; }
#stage.hoch.seite-unten #feld { bottom:calc(var(--seite-h) + 14px); }
#stage.hoch #seite { display:none; }
#stage.hoch.seite-unten #seite { display:flex; left:8px; right:8px; width:auto; top:auto; bottom:8px; height:var(--seite-h); flex-direction:row; gap:6px; }
#stage.hoch #seite.offen { display:flex; flex-direction:column; left:8px; right:8px; width:auto; top:146px; bottom:8px; height:auto; z-index:55; gap:6px; }
#stage.hoch #tafel { flex:0 0 auto; overflow:auto; max-height:none; } #stage.hoch.seite-unten #tafel { flex:0 0 52%; }
#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 .tz { font-size:17px; } #stage.hoch .tf-kopf { font-size:14px; } #stage.hoch .tf-hin, #stage.hoch .mz-z { font-size:15px; }
#stage.hoch #unten { grid-template-columns:minmax(0, 1fr); grid-template-rows:166px minmax(0, 1fr); gap:10px; }
#stage.hoch #notenbank { padding:8px 10px 10px; }
#stage.hoch #hand { gap:10px; }
#stage.hoch #hand .karte { width:104px; height:146px; }
#stage.hoch #ich { grid-template-rows:minmax(0, 1fr) 90px; } #stage.hoch .wahl-box { height:90px; } #stage.hoch .wahl-knoepfe { height:64px; } #stage.hoch .ich-box { padding:6px 10px; } #stage.hoch .lage { height:42px; }
#stage.hoch .ich-name { font-size:17px; } #stage.hoch .ich-name small, #stage.hoch .ich-wert small { font-size:14px; } #stage.hoch .ich-wert { font-size:20px; }
#stage.hoch .lage { font-size:15px; height:44px; }
#stage.hoch .wahl { font-size:17px; } #stage.hoch .wahl small { font-size:13.5px; } #stage.hoch .wahl.klein { flex-basis:110px; }
#stage.hoch .wahl-unter { font-size:13px; }
#stage.hoch .pu-nm { font-size:16px; } #stage.hoch .pu-nm small { font-size:14px; }
#stage.hoch .pu-fuss > span { font-size:15px; }
#stage.hoch .pu-platz, #stage.hoch .pu-platz .karte { width:62px; height:88px; }
#stage.hoch .di-schild { font-size:16px; } #stage.hoch .di-schild small { font-size:13px; } #stage.hoch .dl { font-size:14px; } #stage.hoch .dl b { font-size:16px; }
#stage.hoch .meldung { font-size:16px; line-height:1.25; }
#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:146px; }
#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 .hd-marke { font-size:14.5px; }
@media (pointer: coarse) {
  .wahl { min-height:48px; }
  .pu-fuss > span { min-height:28px; }
}
@media (orientation: portrait) and (max-width: 900px) { #stage:not(.hoch) .lang { display:none; } }
@media (prefers-reduced-motion: reduce) { .karte.pk.laut, .pu-schild.neu, #hand .karte.neu { animation:none; } }
