:root {
  --bg:#141210; --panel:rgba(30,26,20,.9); --panel2:rgba(40,34,28,.95); --panel-solid:#241e18;
  --akz:#d6a845; --akz-hell:#ffd98a; --akz2:#9a6a1a; --linie:rgba(230,190,120,.3);
  --text:#f4ede0; --text-2:#e2d6c2; --text-3:#bfb19a; --dim:#c8b99f;
  --gold:#ffc861; --rot:#ff8a7a; --gruen:#9fe08e; --blau:#9cd0f0; --dran:#7ad6c0;
  --ov-a:#33291f; --ov-b:#120e0a; --scrim:rgba(8,6,4,.72);
  --kn-a:#4a3c2c; --kn-b:#241b13;
  --holz-a:#6b4a2c; --holz-b:#3a2616; --papier-a:#efe2c4; --papier-b:#d9c49a; --tinte:#2e2214;
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg:#ebe3d3; --panel:rgba(250,245,234,.93); --panel2:rgba(238,230,214,.97); --panel-solid:#f1e9da;
  --akz:#8a5a10; --akz-hell:#7a4a06; --akz2:#c48a3a; --linie:rgba(90,60,30,.3);
  --text:#22190f; --text-2:#3c2d1d; --text-3:#5a4836; --dim:#5a4836;
  --gold:#8a5600; --rot:#b4232f; --gruen:#2a6e3a; --blau:#1a5fb4; --dran:#0f7a62;
  --ov-a:#f5efe2; --ov-b:#e2d6bf; --scrim:rgba(40,30,20,.42);
  --kn-a:#f5efe2; --kn-b:#ddcfb6;
  --holz-a:#d9bc8e; --holz-b:#b58f5c; --papier-a:#fbf3df; --papier-b:#eadbb8; --tinte:#2e2214;
}
html[data-design="abend"]:not([data-theme="light"]) {
  --bg:#1c1410; --panel:rgba(34,22,16,.9); --panel2:rgba(48,32,22,.95); --panel-solid:#2a1c14;
  --linie:rgba(240,180,120,.3); --akz:#e0a24a; --akz-hell:#ffd08a; --ov-a:#3a2618; --ov-b:#140c08; --kn-a:#4c3220; --kn-b:#24160c;
  --holz-a:#5e3a20; --holz-b:#2e1a0c;
}
:where(html, html *) { scrollbar-width:thin; scrollbar-color:var(--akz, #d6a845) var(--panel2, rgba(40,34,28,.95)); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--panel2, rgba(40,34,28,.95)); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--akz, #d6a845); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#0e0b09; 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, #33281e 0%, #0d0b09 80%); }
:root[data-theme="light"] #wrap { background:radial-gradient(ellipse at center, #f4ece0 0%, #cdbba0 85%); }
#stage { position:relative; width:1280px; height:800px; flex:none; transform-origin:center center; overflow:hidden; background:var(--bg); -webkit-touch-callout:none; }
#grund { position:absolute; inset:0; background:url(img/kulisse-maerz.webp?v=1) center 40% / cover no-repeat, #2a241c; }
#stage.hoch #grund { background-image:url(img/kulisse-maerz-hoch.webp?v=1); }
html[data-design="abend"]:not([data-theme="light"]) #grund { background-image:url(img/kulisse-abend.webp?v=1); }
html[data-design="abend"]:not([data-theme="light"]) #stage.hoch #grund { background-image:url(img/kulisse-abend-hoch.webp?v=1); }
:root[data-theme="light"] #grund { background-image:url(img/kulisse-sommer.webp?v=1); }
:root[data-theme="light"] #stage.hoch #grund { background-image:url(img/kulisse-sommer-hoch.webp?v=1); }
#grund::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse 75% 70% at 45% 50%, rgba(10,6,4,0), rgba(10,6,4,.4)); }
:root[data-theme="light"] #grund::after { background:radial-gradient(ellipse 75% 70% at 45% 50%, rgba(255,246,228,0), rgba(244,234,216,.3)); }
#grund .wolken { position:absolute; left:-20%; right:-20%; bottom:0; height:45%; background:radial-gradient(ellipse 40% 50% at 30% 70%, rgba(230,220,200,.12), transparent 70%), radial-gradient(ellipse 35% 45% at 75% 80%, rgba(230,220,200,.1), transparent 70%); animation:wolken 46s ease-in-out infinite alternate; pointer-events:none; }
@keyframes wolken { from { transform:translateX(-4%); } to { transform:translateX(4%); } }
@media (prefers-reduced-motion: reduce) { #grund .wolken { animation:none; } }
#stage.lobbyhg #grund { filter:blur(3px) brightness(.72); }
:root[data-theme="light"] #stage.lobbyhg #grund { filter:blur(2px) brightness(1.04) saturate(.85); }
[hidden] { display:none !important; }
button { font-family:var(--sans); cursor:pointer; }
input, select { font-family:var(--sans); font-size:16px; }

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

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


.banner { position:absolute; left:calc((100% - 404px) / 2); top:40%; z-index:75; min-width:420px; max-width:720px; 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:40px; 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.2px; color:var(--text); }
.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:24%; min-width:0; padding:10px 24px 9px; }
.banner.klein .bn-titel { font-size:26px; letter-spacing:2px; }
.banner .bn-karte { display:flex; justify-content:center; margin-bottom:4px; }

.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; }
.en-platz { display:grid; grid-template-columns:48px 40px minmax(0, 1fr) 70px 100px; align-items:center; gap:10px; padding:7px 12px; border-radius:10px; background:rgba(0,0,0,.2); border:1px solid var(--linie); }
: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 .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 .pk 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); }
.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); }
.hilfe-text { font-size:15px; line-height:1.55; color:var(--text); max-height:600px; overflow:auto; user-select:text; }
.hilfe-text h1, .hilfe-text h2, .hilfe-text h3 { font-family:var(--kopf); color:var(--akz-hell); margin:14px 0 6px; }
.hilfe-text h1 { margin-top:0; }
.hilfe-text table { border-collapse:collapse; font-size:14px; } .hilfe-text td, .hilfe-text th { border-bottom:1px solid var(--linie); padding:3px 8px; text-align:left; }
#note { position:absolute; left:50%; top:10px; transform:translateX(-50%); background:rgba(150,40,20,.95); color:#fff; padding:8px 16px; border-radius:8px; z-index:99; }

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

#partie { position:absolute; inset:0; z-index:2; }
.tafel { position:absolute; border-radius:10px; color:var(--text); border:1px solid rgba(0,0,0,.6);
  background:repeating-linear-gradient(92deg, rgba(255,230,190,.045) 0 3px, rgba(0,0,0,.05) 3px 7px, rgba(255,230,190,.02) 7px 13px), linear-gradient(170deg, var(--holz-a), var(--holz-b));
  box-shadow:inset 0 1px 0 rgba(255,236,200,.22), inset 0 -2px 0 rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.45); }
.tafel::before { content:""; position:absolute; inset:5px; border-radius:7px; pointer-events:none;
  background:radial-gradient(circle at 0 0, #d8b46a 0 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat, radial-gradient(circle at 100% 0, #d8b46a 0 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 0 100%, #d8b46a 0 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat, radial-gradient(circle at 100% 100%, #d8b46a 0 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat; }
:root[data-theme="light"] .tafel { color:#1e1810; border-color:rgba(60,50,40,.45); box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(80,60,30,.25); }
.zettel { position:relative; color:var(--tinte); border-radius:3px; transform:rotate(-.5deg);
  background:repeating-linear-gradient(0deg, rgba(60,90,140,.08) 0 1px, transparent 1px 22px), linear-gradient(175deg, var(--papier-a), var(--papier-b));
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset, 0 8px 18px rgba(0,0,0,.45); }
.zettel::after { content:""; position:absolute; left:50%; top:-7px; width:16px; height:16px; margin-left:-8px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #ffd0c0, #c0432f 60%, #5a160c); box-shadow:0 2px 3px rgba(0,0,0,.5); }

#kopf { left:12px; right:12px; top:10px; height:56px; display:flex; align-items:center; gap:14px; padding:0 12px 0 128px; z-index:5; }
.logo { font-family:var(--kopf); font-weight:900; font-size:22px; letter-spacing:3px; color:var(--akz-hell); text-shadow:0 2px 0 rgba(0,0,0,.6); line-height:1; white-space:nowrap; }
:root[data-theme="light"] .logo { color:#5a3a06; 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); font-variant-numeric:tabular-nums; min-width:44px; }
:root[data-theme="light"] .runde, :root[data-theme="light"] .logo small { color:#3a2e20; }
:root[data-theme="light"] .runde b { color:#1e1810; }
.k-phase { flex:1 1 auto; display:flex; align-items:center; gap:4px; font-size:16px; color:var(--text-2); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.k-phase b { color:var(--text); }
:root[data-theme="light"] .k-phase, :root[data-theme="light"] .k-phase b { color:#1e1810; }
.rechts { 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; font-variant-numeric:tabular-nums; }
.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; }
.knopf { display:inline-flex; align-items:center; justify-content:center; gap:6px; font-weight:800; letter-spacing:.3px; font-size:14px; color:#2b1a05; cursor:pointer; padding:6px 10px; border-radius:8px;
  border:1px solid #fff0d0; background:linear-gradient(#ffd89a, #d99a3a); box-shadow:0 2px 0 #6a4210, inset 0 1px 0 #fff6; white-space:nowrap; }
.knopf.leise { color:var(--text); background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.18)); border-color:rgba(255,255,255,.22); box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
:root[data-theme="light"] .knopf.leise { color:#1e1810; background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(0,0,0,.06)); border-color:rgba(60,40,20,.3); }
.knopf:disabled { opacity:.5; cursor:default; filter:grayscale(.85) brightness(.85); }
.knopf.puls { animation:knopfPuls 1s ease-in-out infinite alternate; }
@keyframes knopfPuls { to { box-shadow:0 0 0 4px rgba(255,208,138,.55), 0 2px 0 #6a4210; } }
.kb-ic:disabled { opacity:.4; cursor:default; }

#feld { position:absolute; left:12px; top:74px; right:412px; bottom:10px; }
#seite { position:absolute; right:12px; top:74px; bottom:10px; width:390px; display:flex; flex-direction:column; gap:10px; }
#seite > .tafel { position:relative; }

#buehne { position:absolute; inset:0; touch-action:none; }
#brett { position:absolute; inset:0; width:100%; height:100%; }
#brett [data-f], #brett [data-pf] { cursor:pointer; }
#brett .welle { animation:welle 6s ease-in-out infinite alternate; }
@keyframes welle { to { transform:translateX(4px); } }
#brett .mk-frei { fill:rgba(255,252,225,.42); stroke:#155e7a; stroke-width:3.5; stroke-dasharray:8 4; animation:freiPuls 1.3s ease-in-out infinite alternate; }
:root[data-design="abend"] #brett .mk-frei { stroke:#3a1a08; }
#brett .mk-wahl { fill:none; stroke:#ffd23a; stroke-width:6; filter:drop-shadow(0 0 4px rgba(0,0,0,.6)); }
#brett .mk-rat { fill:rgba(140,230,140,.18); stroke:#8fe08a; stroke-width:4; stroke-dasharray:10 6; }
#brett .mk-hell { fill:rgba(255,248,200,.28); stroke:#fff6c8; stroke-width:4; animation:hell .5s ease-out; }
#brett .mk-zuletzt { fill:none; stroke:rgba(255,250,230,.9); stroke-width:2.5; stroke-dasharray:3 4; }
#brett .geist { opacity:.72; animation:geist 1s ease-in-out infinite alternate; }
@keyframes geist { to { opacity:.5; } }
@keyframes freiPuls { from { fill-opacity:.55; } to { fill-opacity:1; } }
@keyframes hell { from { fill-opacity:0; } }
#brett .pl.zuletzt { animation:landen .35s ease-out; }
@keyframes landen { from { opacity:.6; } }
#brett .fahne .tuch { animation:wehen 2.4s ease-in-out infinite alternate; transform-box:fill-box; transform-origin:left center; }
@keyframes wehen { to { transform:skewY(-6deg) scaleX(.94); } }
#brett.einlegen .l-steine > g { animation:einlegen .6s ease-out backwards; }
@keyframes einlegen { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { #brett .welle, #brett .mk-frei, #brett .geist, #brett .fahne .tuch { animation:none; } }

#lage { position:absolute; left:50%; transform:translateX(-50%); top:0; width:min(640px, 86%); height:36px; z-index:6; pointer-events:none; display:flex; align-items:center; gap:8px; padding:0 12px; border-radius:18px;
  font-size:15px; color:#f6efe2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:linear-gradient(180deg, rgba(60,40,24,.86), rgba(30,20,12,.86)); border:1px solid rgba(214,168,69,.55); }
#lage b { color:#ffd98a; }
#lage span { overflow:hidden; text-overflow:ellipsis; }
#lage .bildnis.bild { width:26px; height:26px; }

#meldungen { position:absolute; left:10px; right:10px; bottom:6px; height:92px; z-index:20; display:flex; flex-direction:column; justify-content:flex-end; gap:4px; overflow:hidden; pointer-events:none; }
.meldung { flex:none; align-self:center; max-width:100%; padding:3px 12px; border-radius:7px; text-align:left; font-size:14px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#f6efe2; background:rgba(34,24,16,.92); border:1px solid rgba(214,168,69,.4); border-left:3px solid var(--akz);
  box-shadow:0 4px 12px rgba(0,0,0,.4); max-height:90px; animation:meldungRein .4s ease-out; transition:opacity .6s, max-height .6s, padding .6s, margin .6s, border-width .6s; }
.meldung b { color:#ffd98a; }
.meldung.weg { opacity:0; max-height:0; padding-top:0; padding-bottom:0; margin-top:-5px; border-width:0; }
@keyframes meldungRein { from { opacity:0; max-height:0; padding-top:0; padding-bottom:0; transform:translateY(-6px); } to { opacity:1; max-height:90px; transform:none; } }

#leiste { display:grid; grid-template-columns:1fr 1fr; gap:6px; flex:none; }
.pl-chip { position:relative; display:grid; grid-template-columns:40px minmax(0, 1fr) auto; grid-template-rows:auto auto; align-items:center; column-gap:7px; height:74px; padding:4px 8px; border-radius:9px; text-align:left; color:#f6efe2; text-shadow:0 1px 2px rgba(0,0,0,.8);
  background:linear-gradient(170deg, rgba(70,50,30,.48), rgba(30,20,12,.5)); border:1px solid rgba(214,168,69,.45); border-left:5px solid var(--sf); box-shadow:0 4px 12px rgba(0,0,0,.35); }
:root[data-theme="light"] .pl-chip { color:#1e1810; text-shadow:0 1px 1px rgba(255,250,240,.9); background:linear-gradient(170deg, rgba(250,242,224,.5), rgba(226,212,184,.5)); border-color:rgba(120,90,40,.4); border-left-color:var(--sf); }
.pl-chip > .bildnis { grid-row:1 / 3; }
.pl-chip.dran { box-shadow:0 0 0 2px #ffd98a, 0 4px 12px rgba(0,0,0,.35); }
.pl-chip.weg { opacity:.6; }
.pc-nm { min-width:0; font-weight:800; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.2; }
.pc-nm .pc-du { font-weight:600; }
.pc-nm small { display:block; font-weight:600; font-size:12.5px; opacity:.88; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-pkt { grid-row:1 / 3; grid-column:3; text-align:right; line-height:1; }
.pc-pkt b { display:block; font:900 24px var(--kopf); font-variant-numeric:tabular-nums; color:#ffe6a6; }
:root[data-theme="light"] .pc-pkt b { color:#5a3a06; }
.pc-pkt small { font-size:12px; font-weight:700; opacity:.85; }
.pc-zahlen { grid-column:2; display:flex; gap:8px; font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; }
.pc-zahlen span { display:inline-flex; align-items:center; gap:2px; }
.pc-zahlen .sgzi { width:14px; height:14px; }

#hand { flex:none; height:258px; padding:10px 14px; display:flex; flex-direction:column; gap:6px; }
.hd-kopf { font:800 13px var(--sans); letter-spacing:2px; text-transform:uppercase; color:#ffd98a; }
:root[data-theme="light"] .hd-kopf { color:#5a3a06; }
.hd-kopf small { display:block; font:600 13px var(--sans); letter-spacing:0; text-transform:none; color:var(--text-2); height:18px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
:root[data-theme="light"] .hd-kopf small { color:#2e2214; }
.hd-reihe { display:flex; align-items:center; gap:10px; height:104px; }
.hz { position:relative; width:100px; height:100px; padding:0; border:0; border-radius:12px; background:radial-gradient(circle, rgba(0,0,0,.3), transparent 70%); cursor:pointer; }
.hz.an { box-shadow:0 0 0 3px #ffd98a; background:radial-gradient(circle, rgba(255,217,138,.3), transparent 70%); }
.hz-bild { display:block; transition:transform .18s; }
.hz-bild svg { display:block; margin:4px; }
.hz.dreht .hz-bild { animation:drehen .45s ease-out; }
@keyframes drehen { from { transform:rotateY(90deg); } to { transform:none; } }
.hd-leer { flex:1; font:16px var(--kopf); color:var(--text-2); }
.hd-vorrat { margin-left:auto; display:flex; align-items:center; gap:8px; font-size:12.5px; line-height:1.35; color:var(--text-2); }
:root[data-theme="light"] .hd-vorrat { color:#2e2214; }
.hd-stapel { position:relative; display:inline-flex; filter:drop-shadow(3px 3px 0 rgba(60,40,20,.7)) drop-shadow(3px 3px 0 rgba(60,40,20,.5)); }
.hd-stapel b { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:900 18px var(--kopf); color:#fff3d6; text-shadow:0 1px 2px #000; }
.hd-knoepfe { display:grid; grid-template-columns:1.3fr 1fr .8fr; gap:6px; height:42px; }
.hd-knoepfe .knopf { height:42px; }
.hd-info { height:40px; font-size:12.5px; line-height:1.35; color:var(--text-2); overflow:hidden; }
:root[data-theme="light"] .hd-info { color:#2e2214; }
.hd-info b { color:#ffd98a; } :root[data-theme="light"] .hd-info b { color:#5a3a06; }
#seite .kb-ic > *, #hand button > * { pointer-events:none; }

#auftrag { flex:none; height:150px; padding:10px 12px 8px; margin-top:4px; display:flex; flex-direction:column; }
.az-kopf { font:800 13px var(--sans); letter-spacing:2px; text-transform:uppercase; color:#5a3a10; display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.az-kopf small { font:600 13px var(--sans); letter-spacing:0; text-transform:none; color:#4a3a24; white-space:nowrap; }
.az-liste { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-top:6px; align-content:start; }
.au { position:relative; display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:4px; padding:4px 6px; border-radius:5px; background:rgba(255,255,255,.4); border:1px solid rgba(90,60,30,.3); color:var(--tinte); line-height:1.2; }
.au b { font:700 13px var(--kopf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.au i { font-style:normal; font-weight:900; font-size:13px; color:#7a4a06; }
.au small { grid-column:1 / -1; font-size:12px; color:#3a2e20; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.au em { grid-column:1 / -1; font-style:normal; font-size:12px; font-weight:700; color:#6a5a40; display:flex; gap:3px; min-height:12px; }
.au.ok { background:rgba(150,220,140,.35); border-color:#4f8a3a; } .au.ok em { color:#2a6e3a; }
.au .punkt { width:11px; height:11px; border-radius:50%; background:var(--pf); box-shadow:0 0 0 1px rgba(0,0,0,.4); }
.az-leer { grid-column:1 / -1; margin-top:12px; text-align:center; font:15px/1.35 var(--kopf); color:#4a3a24; }

#pchat { flex:1 1 auto; min-height:90px; padding:8px 10px 10px; display:flex; flex-direction:column; }
#pchatwin { flex:1; min-height:0; overflow:auto; font-size:13.5px; padding:6px 8px; border-radius:8px; background:rgba(0,0,0,.25); }
#pchatin { margin-top:6px; padding:6px 9px; border-radius:7px; border:1px solid var(--linie); background:rgba(0,0,0,.25); color:var(--text); }
:root[data-theme="light"] #pchatwin, :root[data-theme="light"] #pchatin { background:rgba(255,250,236,.65); color:#1e1810; }
.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:rgba(0,0,0,.2); 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(--text-2); background:transparent; border:1px solid transparent; border-radius:6px; padding:5px; }
.ch-tabs button.an { color:var(--text); background:rgba(0,0,0,.25); border-color:var(--linie); }
:root[data-theme="light"] .ch-tabs button { color:#2e2214; } :root[data-theme="light"] .ch-tabs button.an { background:rgba(255,250,236,.6); color:#1e1810; }
#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,.22); border-radius:0 5px 5px 0; color:var(--text-2); }
:root[data-theme="light"] .ch-z { background:rgba(255,250,240,.65); color:#2e2214; }
.ch-z b { color:var(--text); } :root[data-theme="light"] .ch-z b { color:#1e1810; }
.ch-z.gut { color:#c8f3e2; } .ch-z.schlecht { color:#ffcabd; } .ch-z.leise { opacity:.85; }
:root[data-theme="light"] .ch-z.gut { color:#1f6448; } :root[data-theme="light"] .ch-z.schlecht { color:#9c2a1a; }
.ch-z .sz-plus { color:#9fe08e; font-weight:800; } :root[data-theme="light"] .ch-z .sz-plus { color:#2a6e3a; }
.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; }
:root[data-theme="light"] .ch-z.abschnitt { color:#3a2e20; }
.ch-chat { flex:1; display:flex; flex-direction:column; min-height:0; }

#flug { position:absolute; inset:0; z-index:60; pointer-events:none; }
.flieger { position:absolute; z-index:61; pointer-events:none; will-change:transform; display:flex; align-items:center; justify-content:center; }
.flieger svg { display:block; filter:drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.au-flug { width:110px; padding:6px 8px; border-radius:4px; background:linear-gradient(175deg, var(--papier-a), var(--papier-b)); color:var(--tinte); box-shadow:0 8px 16px rgba(0,0,0,.5); text-align:center; }
.au-flug b { display:block; font:700 14px var(--kopf); } .au-flug small { font-size:12px; }
.plus { position:absolute; z-index:63; transform:translate(-50%, -50%); pointer-events:none; white-space:nowrap; font:900 22px var(--kopf); color:#fffbe8; padding:2px 10px; border-radius:12px;
  background:var(--pf, #8a6a2a); border:2px solid rgba(255,250,230,.85); box-shadow:0 4px 10px rgba(0,0,0,.5); text-shadow:0 1px 2px rgba(0,0,0,.5); animation:plus 1.5s ease-out forwards; }
@keyframes plus { 0% { opacity:0; transform:translate(-50%, -30%) scale(.7); } 15% { opacity:1; transform:translate(-50%, -60%) scale(1.08); } 70% { opacity:1; transform:translate(-50%, -110%); } 100% { opacity:0; transform:translate(-50%, -140%); } }
#ansicht-menu { right:12px; top:72px; padding:12px 14px; z-index:40; width:340px; display:flex; flex-direction:column; gap:6px; }
#ansicht-menu label { display:flex; gap:8px; font-size:14px; cursor:pointer; }
#ansicht-menu label small { display:block; font-size:12px; opacity:.85; }
#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; font-weight:800; margin-top:4px; color:#ffd98a; }
:root[data-theme="light"] #ansicht-menu .am-t { color:#5a3a06; }
.am-reihe { display:flex; gap:6px; flex-wrap:wrap; }
#hinweis { position:absolute; left:calc((100% - 402px) / 2); top:130px; transform:translateX(-50%); z-index:70; max-width:640px; padding:9px 18px; border-radius:9px; background:rgba(120,30,20,.95); border:1px solid #ffb8a3; color:#fff6ee; font-size:15px; text-align:center; pointer-events:none; box-shadow:0 8px 20px rgba(0,0,0,.5); }
#hinweis.neutral { background:var(--panel-solid); border-color:var(--akz-hell); color:var(--text); }
.konfetti { position:absolute; top:-20px; z-index:90; width:var(--gr); height:calc(var(--gr) * .55); border-radius:2px; pointer-events:none; background:var(--kf); box-shadow:inset 0 -2px 0 rgba(0,0,0,.25); animation:fall 3s linear forwards; }
@keyframes fall { to { transform:translateY(860px) rotate(540deg); opacity:.4; } }
#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); }
.bildnis { flex:none; }
.bildnis.bild { border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px var(--rf, var(--akz)), 0 3px 8px rgba(0,0,0,.5); background:#3a2a1e; }
.tg-l { margin-top:4px; }
.tg-liste { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:5px; }
.tg-liste span.ich { color:var(--akz-hell); font-weight:700; }
.tg-liste i { font-style:normal; color:var(--gold); font-weight:800; }
.lw-aus .lw-wahl button { opacity:.55; cursor:default; }
.sz-karte .bildnis.bild { width:44px; height:44px; }
.sz-karte .sz-plus { color:#9fe08e; font-weight:800; }
.en-platz .nmx small + small { margin-top:1px; }

#lern { position:absolute !important; left:0; right:0; bottom:0; height:138px; z-index:25; padding:8px 12px; font-size:13.5px; line-height:1.3; transform:rotate(.4deg); }
#lern .ln-kopf { position:absolute; right:12px; top:9px; font:800 12.5px var(--sans); color:#7a4a06; text-transform:uppercase; letter-spacing:.06em; } #lern .ln-kopf b { display:none; }
#lern .ln-t { font:800 17px/1.2 var(--kopf); margin:0 60px 3px 0; color:var(--tinte); }
#lern .ln-x { color:var(--tinte); height:52px; overflow:hidden; }
#lern .ln-knoepfe { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; } #lern .knopf { height:34px; padding:4px 12px; }
#lern .knopf.leise { color:#2e2214; background:rgba(255,255,255,.4); border-color:rgba(60,40,20,.35); }

@media (pointer: coarse) {
  .knopf { min-height:42px; }
  .ch-tabs button { min-height:40px; }
  #stage:not(.hoch) .kb-ic { width:52px; height:52px; }
  #stage:not(.hoch) .hd-knoepfe, #stage:not(.hoch) .hd-knoepfe .knopf { height:52px; }
  #stage:not(.hoch) #hand { height:268px; }
  #stage:not(.hoch) .hd-reihe { height:96px; }
  #stage:not(.hoch) .hd-info { height:36px; }
  .pc-knoepfe button { min-height:40px; }
}

#stage.hoch #k-verlauf { display:inline-flex; width:auto; min-width:128px; height:58px; padding:0 12px; gap:6px; font:800 15px var(--sans); white-space:nowrap; }
#stage.hoch #kopf { left:8px; right:8px; height:122px; flex-wrap:wrap; align-content:center; column-gap:10px; row-gap:4px; padding:3px 8px; }
#stage.hoch .logo, #stage.hoch .trenner, #stage.hoch .nur-quer { display:none; }
#stage.hoch .rechts { order:-1; flex:1 1 100%; justify-content:flex-end; gap:6px; }
#stage.hoch #kopf .kb-ic { width:62px; height:58px; }
#stage.hoch .k-phase { display:none; }
#stage.hoch .runde { font-size:15px; } #stage.hoch .runde b { font-size:22px; }
#stage.hoch .uhr { font-size:24px; }
#stage.hoch #k-verlauf { margin-left:auto; }
#stage.hoch #feld { left:18px; right:18px; top:136px; bottom:auto; height:calc(var(--bw, 540px) * 1.26); }
#stage.hoch #seite { left:14px; right:14px; width:auto; top:calc(140px + var(--bw, 540px) * 1.26); bottom:8px; gap:10px 14px; display:grid; grid-template-columns:minmax(0, 55fr) minmax(0, 45fr); grid-template-rows:auto 1fr; }
#stage.hoch #leiste { grid-column:1 / -1; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:5px; }
#stage.hoch .pl-chip { height:74px; grid-template-columns:minmax(0, 1fr) auto; padding:4px 7px; column-gap:4px; }
#stage.hoch .pl-chip > .bildnis { display:none; }
#stage.hoch .pc-nm { font-size:15px; } #stage.hoch .pc-nm small { display:none; }
#stage.hoch .pc-du { display:none; }
#stage.hoch .pc-pkt { grid-column:2; } #stage.hoch .pc-pkt small { display:none; }
#stage.hoch .pc-zahlen { grid-column:1; font-size:15px; } #stage.hoch .pc-zahlen span + span { display:none; }
#stage.hoch #hand { height:auto; margin:0; padding:8px 10px; gap:5px; }
#stage.hoch .hd-kopf, #stage.hoch .hd-kopf small { font-size:15px; } #stage.hoch .hd-kopf small { height:20px; }
#stage.hoch .hd-reihe { height:auto; gap:6px; flex-wrap:wrap; }
#stage.hoch .hz { width:84px; height:84px; } #stage.hoch .hz-bild svg { width:76px; height:76px; margin:4px; }
#stage.hoch .hd-vorrat small { display:none; }
#stage.hoch .hd-knoepfe { grid-template-columns:1.2fr 1fr .8fr; height:58px; }
#stage.hoch .hd-knoepfe .knopf { height:58px; font-size:16px; }
#stage.hoch .hd-info { height:42px; font-size:15px; line-height:1.4; }
#stage.hoch .hd-knoepfe .knopf { padding:6px 4px; }
#stage.hoch #auftrag { height:auto; margin-top:6px; }
#stage.hoch .az-kopf { flex-direction:column; align-items:flex-start; gap:2px; font-size:15px; } #stage.hoch .az-kopf small { font-size:15px; white-space:normal; }
#stage.hoch .az-liste { grid-template-columns:1fr; }
#stage.hoch .au b, #stage.hoch .au i { font-size:15px; } #stage.hoch .au small, #stage.hoch .au em { font-size:15px; white-space:normal; }
#stage.hoch #lage { top:-72px; left:84px; right:146px; width:auto; transform:none; height:60px; font-size:15px; white-space:normal; line-height:1.2; border-radius:10px; padding:0 8px; }
#stage.hoch #lage .bildnis.bild { width:38px; height:38px; }
#stage.hoch #meldungen { top:calc(100% + 2px); bottom:auto; height:90px; justify-content:flex-start; }
#stage.hoch .meldung { font-size:15px; white-space:normal; }
#stage.hoch #hinweis, #stage.hoch .banner { left:50%; }
#stage.hoch #hinweis { top:200px; max-width:500px; font-size:16px; }
#stage.hoch .banner { min-width:0; width:500px; }
#stage.hoch .bn-titel { font-size:30px; } #stage.hoch .bn-unter { font-size:15px; }
#stage.hoch #pchat { position:absolute; left:8px; right:8px; top:136px; height:calc(var(--bw, 540px) * 1.26); z-index:35; display:none; }
#stage.hoch.verlauf #pchat { display:flex; }
#stage.hoch .ch-tabs button { min-height:66px; font-size:15px; }
#stage.hoch .ch-liste, #stage.hoch #pchatwin { font-size:15px; }
#stage.hoch .pc-knoepfe button { min-height:66px; font-size:15px; }
#stage.hoch #pchatin { font-size:16px; min-height:48px; }
#stage.hoch #ansicht-menu { top:136px; left:8px; right:8px; width:auto; font-size:15px; }
#stage.hoch #ansicht-menu label, #stage.hoch #ansicht-menu label small { font-size:15px; }
#stage.hoch #ansicht-menu .knopf { min-height:62px; font-size:15px; }
#stage.hoch #ansicht-menu input { width:28px; height:28px; }
#stage.hoch #feld > .sz-karte { top:auto; bottom:8px; }
#stage.hoch #lern { top:0; bottom:auto; height:178px; font-size:15px; } #stage.hoch #lern .ln-t { font-size:18px; }
#stage.hoch #lern .ln-kopf { font-size:15px; } #stage.hoch #lern .ln-x { height:78px; }
#stage.hoch #lern .knopf { min-height:56px; padding:6px 16px; font-size:16px; }
.nur-hoch { display:none; }
#stage.hoch .nur-hoch { display:inline; }

.plbild { position:relative; display:inline-block; flex:none; clip-path:polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background:var(--pf); }
.plbild img { position:absolute; inset:5px; width:calc(100% - 10px); height:calc(100% - 10px); object-fit:cover; clip-path:polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.plbild b { position:absolute; right:8%; top:12%; min-width:20px; height:20px; border-radius:50%; background:#fbf1d6; color:#2a1c0c; font:800 13px/20px Georgia, serif; text-align:center; box-shadow:0 0 0 2px var(--pf); }

#brett .mk-kirche { fill:none; stroke:#ffd23a; stroke-width:4; stroke-dasharray:4 5; animation:freiPuls 1.6s ease-in-out infinite alternate; }
#brett .burgstand rect { filter:drop-shadow(1px 2px 1.5px rgba(0,0,0,.5)); }
#brett .lohn rect { filter:drop-shadow(1px 2px 1px rgba(60,40,20,.45)); }
#ch-verlauf .ch-z[data-vf] { cursor:pointer; }
@media (hover: hover) { #ch-verlauf .ch-z[data-vf]:hover { background:rgba(255,217,138,.16); } }
.en-au { display:flex !important; flex-wrap:wrap; gap:2px 8px; align-items:center; }
.en-au .sgzi { width:14px; height:14px; color:#7fd08a; }
.en-au .nein { text-decoration:line-through; opacity:.7; }
.en-liste-info { flex-basis:100%; text-align:center; }
.runde b { min-width:58px; }
