:root {
  --bg:#14191a; --panel:rgba(22,28,26,.86); --panel2:rgba(36,44,40,.95); --panel-solid:#1e2622;
  --akz:#d9b45a; --akz-hell:#ffd982; --akz2:#8a6a1a; --linie:rgba(217,180,90,.32);
  --text:#f2eee0; --text-2:#dcd6c2; --text-3:#b4ad98; --dim:#c2b48e;
  --gold:#ffd36b; --rot:#ff8a72; --gruen:#a6d97a; --blau:#86c0f0;
  --ov-a:#283028; --ov-b:#121612; --scrim:rgba(6,8,6,.7);
  --kopf:'Georgia', 'Times New Roman', serif;
  --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ort:url(img/kulisse-sommer.webp?v=1); --ort-hoch:url(img/kulisse-sommer-hoch.webp?v=1); --ort-dunkel:rgba(10,14,12,.12);
  --holz-a:#7a5432; --holz-b:#4a2e16; --holz-kante:#2a1808; --holz-t:#f6ead2; --holz-t2:#d8c4a0; --holz-muster:repeating-linear-gradient(92deg, rgba(0,0,0,0) 0 14px, rgba(0,0,0,.05) 14px 15px, rgba(255,230,190,.03) 15px 31px);
  --rahmen-a:#8a6236; --rahmen-b:#5b3b1e; --rahmen-c:#3a2412;
  --schild-a:#ecdfbc; --schild-b:#cdb889; --schild-kante:#8a7046; --schild-t:#2b2112; --schild-t2:#5a4a30;
  --papier:#f2e8cc; --papier-2:#e0d0a6; --papier-t:#2a2016; --papier-t2:#5a4a32; --rat-t:#14507a;
  --wahl:#ffd27a; --rat:#7fd0ff;
}
:root[data-theme="abend"] {
  --ort:url(img/kulisse-abend.webp?v=1); --ort-hoch:url(img/kulisse-abend-hoch.webp?v=1); --ort-dunkel:rgba(30,10,24,.14);
  --akz:#e8a860; --akz-hell:#ffd09a; --linie:rgba(232,168,96,.32); --panel:rgba(32,22,30,.86); --panel2:rgba(48,32,42,.95); --panel-solid:#2c2028;
  --ov-a:#33242e; --ov-b:#160e14; --holz-a:#6a3e2a; --holz-b:#3a1e12; --rahmen-a:#7a4a2a; --rahmen-b:#4a2814; --rahmen-c:#2a1408;
  --schild-a:#e6d0b0; --schild-b:#c4a47a;
}
:root[data-theme="light"] {
  --bg:#efe8da; --panel:rgba(250,246,234,.92); --panel2:rgba(240,232,214,.97); --panel-solid:#f4ecda;
  --akz:#8a5210; --akz-hell:#7a4206; --akz2:#c08a3a; --linie:rgba(110,70,20,.32);
  --text:#24180e; --text-2:#42301c; --text-3:#5c4830; --dim:#665234;
  --gold:#7a4e00; --rot:#b4232f; --gruen:#2f7a2a; --blau:#1a5fb4;
  --ov-a:#f6efe0; --ov-b:#e6dac2; --scrim:rgba(40,26,10,.4);
  --ort:url(img/kulisse-herbst.webp?v=1); --ort-hoch:url(img/kulisse-herbst-hoch.webp?v=1); --ort-dunkel:rgba(255,248,236,.04);
  --holz-a:#c8a070; --holz-b:#9a7444; --holz-kante:#6a4a22; --holz-t:#24180e; --holz-t2:#4a3418;
  --rahmen-a:#b88a56; --rahmen-b:#8a6236; --rahmen-c:#6a4626;
  --wahl:#b46a00; --rat:#1a6fb4; --rat-t:#0e4a7a;
}
#kulisse { position:absolute; inset:0; background:linear-gradient(180deg, var(--ort-dunkel), var(--ort-dunkel)), var(--ort) center/cover, #2a2420; }
#stage.hoch #kulisse { background-image:linear-gradient(180deg, var(--ort-dunkel), var(--ort-dunkel)), var(--ort-hoch); }
#stage.lobbyhg #kulisse { filter:blur(3px) brightness(.6) saturate(.9); }
:root[data-theme="light"] #stage.lobbyhg #kulisse { filter:blur(3px) brightness(1.05) saturate(.75); }
:where(html, html *) { scrollbar-width:thin; scrollbar-color:var(--akz, #f2c94c) var(--panel2, rgba(20,58,52,.95)); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--panel2, rgba(20,58,52,.95)); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--akz, #f2c94c); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#040a0b; 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, #2a2030 0%, #040a0b 80%); }
:root[data-theme="light"] #wrap { background:radial-gradient(ellipse at center, #f2eadc 0%, #ccb898 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; }
.sgzi { width:18px; height:18px; flex:none; display:inline-block; vertical-align:-3px; }

.kb { display:inline-flex; align-items:center; justify-content:center; gap:7px; background:linear-gradient(180deg, #3a2c44, #1c1424); 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,235,200,.12), 0 2px 8px rgba(0,0,0,.4); }
:root[data-theme="light"] .kb { background:linear-gradient(180deg, #fbf4ea, #eadcc6); 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(#ffe08a, #d9a81f) !important; color:#2b2405 !important; border-color:#fff0bd; box-shadow:0 2px 0 #6a5006, 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,255,240,.6); }
.kb-ic .sgzi { width:20px; height:20px; }
.kb-ic.an { background:rgba(242,201,76,.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; }
.knopf { display:inline-flex; align-items:center; gap:6px; font-weight:800; letter-spacing:.3px; font-size:15px; color:#2b2405; cursor:pointer; padding:9px 15px; border-radius:8px;
  border:1px solid #fff0bd; background:linear-gradient(#ffe08a, #d9a81f); box-shadow:0 2px 0 #6a5006, inset 0 1px 0 #fff6; white-space:nowrap; }
.knopf.leise { color:var(--text); background:var(--panel2); border-color:var(--linie); box-shadow:none; }
.knopf.klein { padding:5px 10px; font-size:13.5px; }
.knopf .sgzi { width:16px; height:16px; }

#lobby, #tisch { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; background:linear-gradient(180deg, rgba(10,6,14,.25), rgba(4,10,12,.5)); }
:root[data-theme="light"] #lobby, :root[data-theme="light"] #tisch { background:linear-gradient(180deg, rgba(250,244,232,.25), rgba(232,220,200,.45)); }
.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(242,201,76,.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(242,201,76,.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,255,240,.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,255,240,.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(242,201,76,.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(242,201,76,.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:11.5px; 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(242,201,76,.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,255,240,.65); }
.ti-wahl button.an { background:rgba(242,201,76,.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(242,201,76,.1)); border:1px solid var(--gruen); }
.lo-streifen.warten { background:linear-gradient(90deg, rgba(242,201,76,.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(242,201,76,.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(#ffe08a, #d9a81f); }
.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(242,201,76,.24); border-color:var(--akz-hell); color:var(--akz-hell); font-weight:800; }
.lw-ausgabe { display:grid; grid-template-columns:1fr 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(150,90,30,.3), rgba(10,6,14,.6)); border:1px solid var(--linie); font-size:11.5px; line-height:1.3; }
:root[data-theme="light"] .lw-ausgabe button { background:linear-gradient(160deg, rgba(200,160,90,.25), rgba(255,255,240,.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(242,201,76,.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,255,240,.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 11px/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(242,201,76,.08); border:1px solid rgba(242,201,76,.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(150,90,30,.2), rgba(10,6,14,.3)); border:1px solid rgba(242,201,76,.25); }
:root[data-theme="light"] .lw-anleitung { background:rgba(200,160,90,.14); }
.lw-an-titel { font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--akz-hell); margin-bottom:5px; font-weight:800; }
.lw-schritt { display:grid; grid-template-columns:20px minmax(0, 1fr); align-items:center; gap:8px; padding:3px 0; font-size:12.5px; line-height:1.35; color:var(--text-2); }
.lw-schritt > b { width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; color:#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)); }

#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,240,210,.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,20,.22); }
.pt { font-size:11px; letter-spacing:3px; color:var(--dim); margin:2px 4px 6px; text-transform:uppercase; font-weight:800; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.pt-r { letter-spacing:0; text-transform:none; font-size:12px; color:var(--text-2); }
#kopf { left:12px; right:12px; top:10px; height:56px; display:flex; align-items:center; gap:14px; padding:0 12px 0 14px; z-index:5; }
.logo { font-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:11px; letter-spacing:2px; color:var(--dim); margin-top:3px; }
.trenner { width:1px; align-self:stretch; margin:10px 0; background:var(--linie); }
.runde { font-size:11px; 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:15px; color:var(--text-2); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.k-phase b { color:var(--text); }
.h-dot { display:inline-block; width:12px; height:12px; border-radius:50%; box-shadow:0 0 0 1px #0008; }
.rechts { margin-left:auto; display:flex; align-items:center; gap:8px; }
.uhr { display:inline-flex; align-items:center; gap:6px; font-family:var(--kopf); font-weight:700; font-size:20px; line-height:1; padding:6px 12px 6px 9px; border-radius:18px;
  background:var(--uf, var(--gold)); color:var(--ut, #1a1206); border:1px solid rgba(0,0,0,.35); box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.35); white-space:nowrap; }
.uhr .sgzi { width:18px; height:18px; }
.uhr.knapp { box-shadow:0 0 0 3px var(--rot), 0 2px 6px rgba(0,0,0,.35); animation:puls .8s infinite alternate; }
@keyframes puls { to { opacity:.55; } }
.knopf { display:inline-flex; align-items:center; gap:6px; font-weight:800; letter-spacing:.3px; font-size:15px; color:#2b2405; cursor:pointer; padding:9px 15px; border-radius:8px;
  border:1px solid #fff0bd; background:linear-gradient(#ffe08a, #d9a81f); box-shadow:0 2px 0 #6a5006, inset 0 1px 0 #fff6; white-space:nowrap; }
.knopf.leise { color:var(--text); background:var(--panel2); border-color:var(--linie); box-shadow:none; }
.knopf.rot { color:#fff4ee; background:linear-gradient(#e06a52, #a8301e); border-color:#ffc0b0; box-shadow:0 2px 0 #5a1608, inset 0 1px 0 #fff4; }
.knopf.klein { padding:5px 10px; font-size:13.5px; }
.knopf .sgzi { width:16px; height:16px; }
.knopf.lockt { animation:lockt 1s ease-in-out infinite alternate; }
@keyframes lockt { to { box-shadow:0 0 0 4px rgba(255,224,138,.5), 0 2px 0 #6a5006; } }
.warn { color:var(--rot); font-weight:800; }


.st-k { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:3px; min-width:0; padding:8px 12px 9px; border-radius:10px; background:rgba(0,0,0,.2); border:1px solid var(--linie); border-left:4px solid var(--linie); }
:root[data-theme="light"] .st-k { background:rgba(255,255,240,.6); }
.st-k small { font-size:11px; letter-spacing:2px; text-transform:uppercase; font-weight:800; color:var(--dim); }
.st-k b { display:flex; align-items:center; gap:6px; font-size:18px; line-height:1.15; color:var(--text); }
.st-k b .sgzi { width:18px; height:18px; }
.klau-show { animation:klauDreh 1.3s ease-in-out forwards; z-index:2; }
@keyframes klauDreh { 0% { transform:scale(1) rotate(0); } 35% { transform:scale(1.2) rotate(220deg); } 65% { transform:scale(1.12) rotate(360deg); } 80% { transform:scale(1.22) rotate(370deg); } 100% { transform:scale(1) rotate(360deg); } }


#pchat { flex:1; min-height:110px; padding:6px 8px 8px; display:flex; flex-direction:column; }
#pchatwin { font-size:12.5px; padding:5px 7px; }
#pchatin { margin-top:6px; padding:6px 9px; }
.pc-knoepfe { display:flex; gap:5px; margin-top:5px; }
.pc-knoepfe button { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; font-size:12.5px; padding:4px; color:var(--text); background:var(--panel2); border:1px solid var(--linie); border-radius:6px; }
.pc-knoepfe .sgzi { width:15px; height:15px; }
.ch-tabs { display:flex; gap:4px; margin-bottom:6px; }
.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:12px; line-height:1.35; 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,240,.55); }
.ch-z b { color:var(--text); }
.ch-z.gut { color:#d6f0b8; }
.ch-z.schlecht { color:#ffc8b8; }
:root[data-theme="light"] .ch-z.gut { color:#2f6a1c; }
:root[data-theme="light"] .ch-z.schlecht { color:#9c2a1a; }
.ch-z.runde { border-left-color:transparent; background:transparent; color:var(--dim); font-size:11.5px; letter-spacing:1.5px; text-transform:uppercase; font-weight:800; padding-top:6px; }
.ch-chat { flex:1; display:flex; flex-direction:column; min-height:0; }

#flug { position:absolute; inset:0; z-index:60; pointer-events:none; }
.flieger { position:absolute; display:flex; align-items:center; justify-content:center; transform-origin:center; will-change:transform; }
.funken { position:absolute; width:0; height:0; }
.funken i { position:absolute; left:-4px; top:-4px; width:8px; height:8px; border-radius:50%; background:#ffe08a; animation:funke .8s ease-out forwards; transform:rotate(var(--a)) translateX(10px); }
@keyframes funke { to { transform:rotate(var(--a)) translateX(46px) scale(.3); opacity:0; } }

#ansicht-menu { right:12px; top:72px; padding:10px 12px; z-index:40; width:300px; display:flex; flex-direction:column; gap:6px; }
#ansicht-menu label { display:flex; align-items:flex-start; gap:9px; font-size:14px; cursor:pointer; padding:3px 0; }
#ansicht-menu label small { display:block; font-size:12px; color:var(--dim); }
#ansicht-menu input { width:18px; height:18px; margin-top:1px; accent-color:var(--akz); flex:none; }
#ansicht-menu .am-t { font-size:11px; letter-spacing:2.5px; text-transform:uppercase; color:var(--dim); font-weight:800; margin-top:4px; }
.am-reihe { display:flex; gap:6px; }
.meldung { padding:9px 18px; border-radius:9px; background:rgba(110,36,20,.95); border:1px solid #ffb8a3; color:#fff; font-size:15px; font-weight:700; text-align:center; box-shadow:0 6px 18px rgba(0,0,0,.45);
  max-height:120px; overflow:hidden; animation:meldungRein .45s ease-out; transition:opacity .6s, max-height .6s, padding .6s, margin .6s, border-width .6s; }
.meldung.neutral { background:var(--panel-solid); border-color:var(--akz-hell); color:var(--text); }
.meldung.weg { opacity:0; max-height:0; padding-top:0; padding-bottom:0; margin-top:-6px; border-width:0; }
@keyframes meldungRein { from { opacity:0; max-height:0; padding-top:0; padding-bottom:0; transform:translateY(-10px); } to { opacity:1; max-height:120px; transform:none; } }
.pl-farbe { display:block; width:10px; height:28px; border-radius:4px; flex:none; box-shadow:0 0 0 1px #0006; }
.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; }
.konfetti { position:absolute; top:-24px; width:16px; height:12px; border-radius:50% 50% 50% 0; z-index:76; pointer-events:none; box-shadow:inset -2px -2px 0 rgba(0,0,0,.15); animation:fallen 3s ease-in forwards; }
@keyframes fallen { to { transform:translateY(860px) rotate(540deg); opacity:.2; } }

.overlay { position:absolute; inset:0; background:var(--scrim); display:flex; align-items:center; justify-content:center; z-index:80; }
.ov-box { max-width:640px; max-height:92%; overflow:auto; background:linear-gradient(180deg, var(--ov-a), var(--ov-b)); border:2px solid var(--akz); border-radius:12px; padding:20px 26px; box-shadow:0 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:44px 30px minmax(0, 1fr) 70px 56px 66px 90px 70px; align-items:center; gap:10px; padding:8px 14px; background:rgba(0,0,0,.2); border:1px solid var(--linie); border-radius:10px; font-size:15px; }
:root[data-theme="light"] .en-platz { background:rgba(255,255,240,.55); }
.en-platz.kopf { background:transparent; border-color:transparent; padding-top:0; padding-bottom:0; font-size:11.5px; letter-spacing:1px; text-transform:uppercase; color:var(--dim); font-weight:800; }
.en-platz.p1 { border-color:var(--gold); background:rgba(255,216,107,.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-einladung { margin:10px 0 0; padding:8px 12px; border-radius:10px; text-align:center; font-size:15px; background:rgba(154,214,111,.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; }
.en-platz { grid-template-columns:44px 14px minmax(0, 1fr) 64px 64px 66px 84px 96px; }
.en-platz .pk small { display:block; font-size:11.5px; font-weight:600; color:var(--dim); white-space:nowrap; font-family:var(--sans); }
.konfetti { border-radius:2px; width:10px; height:14px; }

#stage.hoch .lo-haupt { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); }
#stage.hoch .lo-rechts { grid-template-rows:minmax(0, 1fr) 200px; }
#stage.hoch .lo-streifen { margin:10px 16px 0; }
#stage.hoch .lo-raum { display:none; }
#stage.hoch .ti-mitte { flex-wrap:wrap; }
#stage.hoch .ti-plaetze { flex:1 1 100%; max-height: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; }
  .ch-tabs button { min-height:40px; }
  button.lw-info { width:40px; height:36px; margin:-9px -11px -9px -6px; border-radius:18px; background:radial-gradient(circle at center, var(--akz-hell) 0 9px, transparent 9.5px); }
}

.ch-liste, .ch-z { white-space:normal; overflow-wrap:anywhere; }
#pchat.allein .ch-tabs button[data-c="chat"], #pchat.allein #emotes { display:none; }
.medaille .sgzi { width:18px; height:18px; }
.lw-zwei { grid-template-columns:1fr 1fr; }
.lw-leiter { display:flex; flex-direction:column; gap:6px; }
.ll-titel { font-weight:800; color:var(--text); }
.ll-kette { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ll-stufe { display:flex; align-items:center; gap:5px; padding:3px 8px 3px 5px; border-radius:9px; border:1px solid var(--linie); background:rgba(0,0,0,.18); }
:root[data-theme="light"] .ll-stufe { background:rgba(255,255,240,.6); }
.ll-stufe .sgzi { width:20px; height:20px; }
.ll-stufe b { color:var(--text); text-transform:capitalize; } .ll-stufe small { color:var(--text-3); font-size:11.5px; }
.ll-stufe.ok { border-color:var(--gruen); } .ll-stufe.jetzt { border-color:var(--akz-hell); box-shadow:0 0 0 2px rgba(242,201,76,.3); }
.ll-leer { display:inline-block; width:16px; height:16px; border-radius:50%; border:2px dashed var(--linie); }
.ll-pfeil .sgzi { width:14px; height:14px; opacity:.6; }
.ll-rekorde { font-size:12px; color:var(--text-2); }
.st-leiter { flex:1 1 100%; }


.holz { position:absolute; border-radius:12px; padding:8px 10px; color:var(--holz-t);
  background:linear-gradient(180deg, rgba(255,240,210,.08), rgba(0,0,0,.12)), var(--holz-muster), linear-gradient(160deg, var(--holz-a), var(--holz-b));
  border:1px solid var(--holz-kante); box-shadow:inset 0 1px 0 rgba(255,236,200,.28), inset 0 -2px 0 rgba(0,0,0,.3), 0 8px 18px rgba(0,0,0,.45); }
.holz .pt { color:var(--holz-t2); }
.holz .pt-r { color:var(--holz-t); }
#kopf.holz { padding:0 12px 0 14px; backdrop-filter:none; }
#kopf .runde, #kopf .logo small { color:var(--holz-t2); }
#kopf .runde b, #kopf .k-phase, #kopf .k-phase b { color:var(--holz-t); }
#kopf .kb-ic { background:rgba(0,0,0,.22); border-color:rgba(255,230,180,.3); color:var(--holz-t); }

#spieltisch { position:absolute; left:calc(14px + var(--lw, 252px) + 18px); top:84px; width:var(--kw, 690px); height:var(--kh, 710px); border-radius:14px; padding:14px;
  background:linear-gradient(135deg, var(--rahmen-a), var(--rahmen-b) 60%, var(--rahmen-c));
  box-shadow:0 18px 30px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,230,180,.35), inset 0 -3px 0 rgba(0,0,0,.4); }
#spieltisch::before { content:''; position:absolute; inset:5px; border-radius:10px; border:1px solid rgba(255,230,180,.22); pointer-events:none; }
#karte { display:block; width:100%; height:100%; border-radius:4px; background:#3e6a78; box-shadow:inset 0 0 0 1px rgba(0,0,0,.45), 0 0 0 2px rgba(30,16,4,.55); touch-action:none; cursor:grab; }
:root[data-theme="abend"] #karte { filter:brightness(.86) saturate(1.05) sepia(.1); }
#karte.ziehen { cursor:grabbing; }
.zoomleiste { position:absolute; right:22px; bottom:22px; display:flex; flex-direction:column; gap:6px; z-index:3; }
:root .zoomleiste .kb-ic { background:rgba(40,26,12,.82); border-color:rgba(255,230,180,.4); color:#f6ead2; }

#familien { position:absolute; left:14px; top:76px; width:var(--lw, 252px); display:flex; flex-direction:column; gap:8px; }
.fam { position:relative; display:grid; grid-template-columns:46px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows:auto auto auto; align-items:center; column-gap:6px; row-gap:3px;
  padding:7px 8px 7px 6px; border-radius:10px; color:var(--schild-t); cursor:default;
  background:linear-gradient(180deg, var(--schild-a), var(--schild-b)); border:1px solid var(--schild-kante); border-left:6px solid var(--ff);
  box-shadow:inset 0 1px 0 rgba(255,250,230,.6), 0 5px 10px rgba(0,0,0,.4); }
.fam.dran { box-shadow:0 0 0 3px var(--wahl), 0 0 18px rgba(255,210,122,.55), 0 5px 10px rgba(0,0,0,.4); }
.fam.dran::after { content:'ist dran'; position:absolute; right:8px; top:-9px; padding:0 7px; border-radius:8px; font:800 11px/17px var(--sans); color:#2b2405; background:var(--wahl); }
.fam.ich.dran::after { content:'du bist dran'; }
.fam.weg { opacity:.7; }
.fam-burg { grid-row:1 / 3; display:flex; align-items:center; justify-content:center; }
.fam-name { grid-column:2 / 4; }
.fam-name { font-family:var(--kopf); font-weight:800; font-size:15px; line-height:1.15; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fam-name small { font-family:var(--sans); font-weight:600; font-size:11px; color:var(--schild-t2); }
.fam-zahl { display:flex; align-items:baseline; gap:4px; line-height:1; }
.fam-zahl b { font-family:var(--kopf); font-size:19px; font-variant-numeric:tabular-nums; }
.fam-zahl small { font-size:11px; color:var(--schild-t2); font-weight:700; }
.fam-unten { grid-column:1 / 4; display:flex; align-items:center; gap:4px; min-height:26px; }
.fam-karte { padding:1px 7px; border-radius:6px; font-size:11.5px; font-weight:800; color:#1e1408; background:var(--gk); border:1px solid rgba(0,0,0,.35); }
.fam-pl { display:inline-flex; }
.fam-pl.neu { opacity:.55; }

#auftrag { position:absolute; left:14px; width:var(--lw, 252px); bottom:14px; height:262px; display:flex; flex-direction:column; gap:6px; padding:10px 12px 12px; border-radius:6px;
  color:var(--papier-t); background:linear-gradient(180deg, var(--papier), var(--papier-2)); box-shadow:0 8px 16px rgba(0,0,0,.45), inset 0 0 0 1px rgba(90,60,20,.25); transform:rotate(-.6deg); }
#auftrag::before { content:''; position:absolute; left:50%; top:-7px; width:14px; height:14px; margin-left:-7px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #f2d090, #8a5a18); box-shadow:0 2px 3px rgba(0,0,0,.5); }
#auftrag.dran { box-shadow:0 0 0 3px var(--wahl), 0 8px 16px rgba(0,0,0,.45); }
.a-dran { height:24px; display:flex; align-items:center; gap:7px; font-family:var(--kopf); font-size:17px; overflow:hidden; white-space:nowrap; }
.a-text { height:84px; font-size:14px; line-height:1.38; overflow:hidden; color:var(--papier-t); }
.a-rat { height:52px; font-size:12.5px; line-height:1.3; color:var(--rat-t); overflow:hidden; }
.rat-z .sgzi { width:14px; height:14px; vertical-align:-2px; }
.a-knoepfe { margin-top:auto; display:grid; grid-template-columns:1fr 1fr; gap:6px; height:84px; }
.a-knoepfe .knopf { justify-content:center; padding:7px 8px; }
.a-knoepfe .knopf:last-child { grid-column:1 / -1; }
.knopf.gesperrt { opacity:.5; border-style:dashed; box-shadow:none; cursor:not-allowed; }
.rat-knopf { background:linear-gradient(#bfe6ff, #5aa8e0); border-color:#e6f6ff; color:#06243a; box-shadow:0 2px 0 #1a4a6a, inset 0 1px 0 #fff6; }

#hand { right:14px; top:76px; width:var(--rw, 300px); height:176px; }
.hand-reihe { display:flex; gap:10px; align-items:center; }
.hand-karte { flex:none; filter:drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.hand-text { font-size:14px; line-height:1.35; }
.ab-reihe { display:flex; align-items:center; gap:5px; margin-top:7px; font-size:12px; color:var(--holz-t2); } .ab-reihe small { font-size:12px; }
.ab-g { display:inline-flex; align-items:center; gap:3px; font-weight:800; color:var(--holz-t); font-variant-numeric:tabular-nums; }
.ab-g i { display:inline-block; width:12px; height:16px; border-radius:2px; background:var(--gk); border:1px solid rgba(0,0,0,.4); }

#plaettchen { right:14px; top:260px; width:var(--rw, 300px); height:146px; overflow-y:auto; }
.pl-liste { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.pl-leer { margin:2px 0; font-size:13px; line-height:1.35; color:var(--holz-t); }
.pl-t { display:flex; align-items:center; gap:6px; padding:3px 6px 3px 3px; border-radius:22px; text-align:left; color:var(--holz-t); background:rgba(0,0,0,.2); border:1px solid rgba(255,230,180,.25); min-height:44px; }
.pl-t span { display:flex; flex-direction:column; line-height:1.1; min-width:0; }
.pl-t b { font-size:13px; } .pl-t small { font-size:11px; color:var(--holz-t2); }
.pl-t.kann { border-color:var(--wahl); box-shadow:0 0 0 2px rgba(255,210,122,.35); }
.pl-t.an { background:rgba(255,210,122,.3); }
.pl-t.gesperrt { opacity:.62; border-style:dashed; }

#wertung { right:14px; top:414px; width:var(--rw, 300px); height:232px; display:flex; flex-direction:column; gap:5px; }
.wk { display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:6px; color:var(--papier-t); background:linear-gradient(180deg, var(--papier), var(--papier-2)); box-shadow:0 3px 6px rgba(0,0,0,.35); }
.wk-tier { flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 35% 30%, #fff8e0, #d8c49a); box-shadow:inset 0 0 0 2px var(--wf); }
.wk-text { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.wk-text b { font-family:var(--kopf); font-size:14px; } .wk-text small { font-size:11.5px; color:var(--papier-t2); }
.wk-wert { flex:none; min-width:34px; text-align:center; font:900 20px/1 var(--kopf); color:var(--papier-t); font-variant-numeric:tabular-nums; }
.wk-mu { font-size:12.5px; color:var(--holz-t); margin-top:auto; } .wk-mu small { color:var(--holz-t2); font-size:12px; }

#pchat { right:14px; top:76px; width:var(--rw, 300px); bottom:14px; padding:6px 8px 8px; display:none; flex-direction:column; z-index:45; }
#pchat.offen { display:flex; }
.ch-zu { display:flex !important; align-items:center; justify-content:center; min-width:34px; }
#pchat .ch-tabs button { color:var(--holz-t2); } #pchat .ch-tabs button.an { color:var(--holz-t); background:rgba(0,0,0,.25); }
#pchat .ch-z { color:var(--holz-t); background:rgba(0,0,0,.2); } #pchat .ch-z b { color:var(--holz-t); }
.ch-zu { display:none; flex:0 0 32px; background:transparent; border:0; color:var(--holz-t); }
#pchat.allein .ch-tabs button[data-c="chat"], #pchat.allein #emotes { display:none; }

.bu-flug, .pl-flug { display:block; width:100%; height:100%; filter:drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.bu-flug svg, .pl-flug svg { width:100%; height:100%; }
.funken i { background:#d8c49a; }
#hinweise { position:absolute; left:calc(14px + var(--lw, 252px) + 18px); width:var(--kw, 690px); top:104px; z-index:55; display:flex; flex-direction:column; align-items:center; gap:6px; pointer-events:none; }
.meldung { max-width:86%; }
.banner { position:absolute; left:50%; top:42%; transform:translate(-50%, -50%) scale(.9); opacity:0; z-index:70; min-width:460px; padding:18px 34px 16px; border-radius:14px; text-align:center;
  background:linear-gradient(180deg, var(--ov-a), var(--ov-b)); border:2px solid var(--akz); box-shadow:0 14px 40px rgba(0,0,0,.6); transition:transform .3s, opacity .3s; pointer-events:none; }
.en-platz { grid-template-columns:40px 34px minmax(0, 1fr) 64px 64px 64px 60px 62px 86px; }
.en-platz .w { font-size:14px; }
.en-burg { display:flex; align-items:center; }
.en-liste-t { margin-top:12px; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--dim); font-weight:800; }
.en-zeile { display:grid; grid-template-columns:36px 1fr auto; gap:8px; padding:4px 10px; border-bottom:1px solid var(--linie); font-size:15px; } .en-zeile.ich { color:var(--gold); font-weight:800; }
.en-regel { margin:10px 0 0; font-size:13px; color:var(--text-3); text-align:center; }
#en-zurueck { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); z-index:85; display:flex; gap:10px; padding:8px 10px; border-radius:14px; background:rgba(0,0,0,.74); box-shadow:0 6px 20px rgba(0,0,0,.55); }
.sz-karte { max-width:80%; }
#ansicht-menu { right:14px; top:72px; }

#kulisse::after { content:''; position:absolute; left:0; right:0; bottom:0; height:22%; pointer-events:none;
  background:repeating-linear-gradient(100deg, rgba(255,255,255,0) 0 38px, rgba(220,240,250,.07) 38px 41px, rgba(255,255,255,0) 41px 80px); animation:wellen 9s linear infinite; }
@keyframes wellen { to { background-position:160px 0; } }
@media (prefers-reduced-motion: reduce) { #kulisse::after { animation:none; } }

@media (pointer: coarse) {
  .pl-t { min-height:46px; }
  .a-knoepfe .knopf { min-height:42px; }
  .zoomleiste .kb-ic { width:50px; height:46px; }
}

#stage.hoch #kopf { height:140px; top:6px; left:30px; right:30px; display:grid; grid-template-columns:auto auto minmax(0, 1fr); grid-template-rows:34px 94px; align-items:center; row-gap:4px; column-gap:14px; padding:4px 12px; }
#stage.hoch #kopf .runde[data-ki="stapel"] { display:none; }
#stage.hoch #kopf .rechts { grid-column:1 / -1; grid-row:2; margin-left:0; justify-content:space-between; }
#stage.hoch #kopf .trenner, #stage.hoch #kopf .logo { display:none; }
#stage.hoch #kopf .runde { font-size:22px; display:flex; align-items:baseline; gap:8px; } #stage.hoch #kopf .runde b { font-size:28px; display:inline; }
#stage.hoch #kopf .k-phase { font-size:22px; grid-column:2 / -1; white-space:nowrap; line-height:1.45; }

#stage.hoch #kopf .kb-ic { width:94px; height:94px; }
#stage.hoch #kopf .kb-ic .sgzi { width:36px; height:36px; }
#stage.hoch .uhr { font-size:26px; padding:10px 14px; }
#stage.hoch #spieltisch { left:30px; top:152px; width:740px; height:var(--kh, 900px); padding:10px; }
#stage.hoch .zoomleiste .kb-ic { width:94px; height:94px; } #stage.hoch .zoomleiste .sgzi { width:36px; height:36px; }
#stage.hoch #hinweise { left:30px; width:740px; top:170px; }
#stage.hoch #auftrag { left:38px; width:724px; top:calc(152px + var(--kh, 900px) + 14px); bottom:auto; height:300px; transform:none; display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:34px minmax(0, 1fr) auto 94px; column-gap:14px; row-gap:4px; }
#stage.hoch .a-dran { grid-column:1; font-size:24px; height:34px; }
#stage.hoch .a-text { grid-column:1; height:auto; min-height:0; font-size:22px; line-height:1.3; overflow-y:auto; }
#stage.hoch .a-rat { grid-column:1; height:auto; max-height:58px; font-size:22px; overflow-y:auto; }
#stage.hoch .a-knoepfe { grid-column:1; grid-row:4; height:94px; grid-template-columns:repeat(3, minmax(0, 1fr)); }
#stage.hoch .a-knoepfe .knopf { font-size:22px; min-height:94px; white-space:normal; line-height:1.15; text-align:center; }
#stage.hoch .a-knoepfe .knopf:last-child { grid-column:auto; }
#stage.hoch #familien { left:38px; width:724px; top:calc(152px + var(--kh, 900px) + 334px); display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#stage.hoch .fam { min-height:96px; padding-top:16px; row-gap:1px; }
#stage.hoch .fam-name { font-size:22px; } #stage.hoch .fam-name small { font-size:22px; }
#stage.hoch .fam-zahl b { font-size:26px; } #stage.hoch .fam-zahl small { font-size:22px; }
#stage.hoch .fam-karte { font-size:22px; }
#stage.hoch .fam.dran::after { font-size:22px; line-height:26px; top:-14px; }
#stage.hoch #hand, #stage.hoch #plaettchen, #stage.hoch #wertung, #stage.hoch #pchat { display:none; }
#stage.hoch.reiter-hand #hand, #stage.hoch.reiter-plaettchen #plaettchen, #stage.hoch.reiter-wertung #wertung { display:block; }
#stage.hoch #pchat.offen { display:flex; left:30px; right:30px; width:auto; top:152px; bottom:auto; height:62%; z-index:45; }
#stage.hoch .ch-zu { display:flex; min-width:94px; min-height:94px; align-items:center; justify-content:center; }
#stage.hoch .ch-tabs button { font-size:22px; min-height:94px; }
#stage.hoch .ch-liste, #stage.hoch .ch-z, #stage.hoch #pchatwin { font-size:22px; }
#stage.hoch .pc-knoepfe button { font-size:22px; min-height:94px; }
#stage.hoch #k-verlauf-neu { font-size:22px; }
#stage.hoch #ansicht-menu { width:600px; top:150px; font-size:22px; }
#stage.hoch #ansicht-menu label, #stage.hoch #ansicht-menu label small, #stage.hoch #ansicht-menu .am-t { font-size:22px; }
#stage.hoch #ansicht-menu input { width:40px; height:40px; }
#stage.hoch #ansicht-menu .knopf { font-size:22px; min-height:94px; }
#stage.hoch .meldung { font-size:22px; }
#stage.hoch .banner { min-width:0; width:86%; top:30%; }
#stage.hoch .bn-unter { font-size:22px; }
#stage.hoch .en-platz { grid-template-columns:36px 30px minmax(0, 1fr) 70px 90px; font-size:22px; }
#stage.hoch .en-platz > .w:not(:nth-last-child(-n+2)) { display:none; }
#stage.hoch .en-platz .nmx small { font-size:22px; }
#reiter { display:none; }
#stage.hoch #reiter { display:flex; position:absolute; left:38px; width:724px; top:var(--rt, 1300px); height:94px; gap:8px; }
#reiter button { flex:1; font-size:20px; font-weight:800; color:var(--holz-t); border-radius:10px; border:1px solid var(--holz-kante); background:linear-gradient(160deg, var(--holz-a), var(--holz-b)); box-shadow:0 4px 8px rgba(0,0,0,.4); }
#reiter button.an { box-shadow:0 0 0 3px var(--wahl), 0 4px 8px rgba(0,0,0,.4); }
#stage.hoch #hand, #stage.hoch #plaettchen, #stage.hoch #wertung { left:38px; right:auto; width:724px; top:calc(var(--rt, 1300px) + 110px); height:var(--ph, 270px); }
#stage.hoch .pt { font-size:22px; letter-spacing:1px; } #stage.hoch .pt-r { font-size:22px; }
#stage.hoch .hand-text { font-size:22px; } #stage.hoch .ab-reihe, #stage.hoch .ab-reihe small, #stage.hoch .ab-g { font-size:22px; } #stage.hoch .ab-g i { width:18px; height:24px; }
#stage.hoch .pl-liste { grid-template-columns:1fr 1fr 1fr; } #stage.hoch .pl-t { min-height:94px; } #stage.hoch .pl-t b, #stage.hoch .pl-t small, #stage.hoch .pl-leer { font-size:22px; }
#stage.hoch #wertung { flex-direction:column; gap:4px; } #stage.hoch .wk { padding:3px 8px; } #stage.hoch .wk-text b { font-size:22px; } #stage.hoch .wk-text small, #stage.hoch .wk-mu { font-size:22px; } #stage.hoch .wk-wert { font-size:28px; }

.ch-z.zkopf { border-left-color:transparent; background:transparent; color:var(--holz-t2); font-size:11.5px; letter-spacing:1px; font-weight:800; padding-top:6px; }
.z-txt { font:900 22px/1 var(--kopf); }
#stage.hoch .z-txt { font-size:40px; }
#k-verlauf { position:relative; }
#k-verlauf-neu { position:absolute; right:-5px; top:-6px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; font:800 11px/18px var(--sans); color:#fff; background:#b23a2e; box-shadow:0 1px 3px rgba(0,0,0,.5); }
#stage.hoch #k-verlauf-neu { min-width:30px; height:30px; line-height:30px; border-radius:15px; }
.schwebe { position:absolute; transform:translate(-50%, 0); z-index:62; pointer-events:none; font:900 18px/1 var(--kopf); color:#fff6d0; text-shadow:0 2px 3px #000, 0 0 6px #000; animation:schwebe 1.5s ease-out forwards; white-space:nowrap; }
.schwebe.gut { color:#c8ff9a; }
@keyframes schwebe { from { opacity:0; transform:translate(-50%, 6px); } 20% { opacity:1; } to { opacity:0; transform:translate(-50%, -40px); } }
.wk { cursor:pointer; }
.wk.an { box-shadow:0 0 0 3px var(--wahl), 0 3px 6px rgba(0,0,0,.35); }
.ch-z.feld { cursor:pointer; }
@media (hover: hover) { .ch-z.feld:hover { background:rgba(255,210,122,.18); } }
#stage.hoch .schwebe { font-size:30px; }
#spieltisch > .sz-karte { top:auto; bottom:22px; max-width:calc(100% - 240px); }
.fam-tag { position:absolute; left:56px; top:-9px; padding:0 7px; border-radius:8px; font:800 11px/17px var(--sans); color:var(--schild-t); background:var(--schild-a); border:1px solid var(--schild-kante); white-space:nowrap; pointer-events:none; }
#stage.hoch .fam-tag { font-size:22px; line-height:26px; top:-14px; left:60px; }
#stage.hoch #pchat.offen { z-index:75; }
#stage.hoch.chat-offen #hinweise { visibility:hidden; }
#stage.hoch #spieltisch > .sz-karte { font-size:22px; width:max-content; max-width:calc(100% - 240px); }
#stage.hoch .sz-schild { font-size:22px; }
#reiter button[data-r="familien"] { display:none; }
#stage.hoch #reiter button { font-size:22px; }
#stage.hoch .wk { min-height:94px; flex:none; } #stage.hoch .wk-mu small { font-size:22px; }
#stage.hoch #hand, #stage.hoch #plaettchen, #stage.hoch #wertung { overflow-y:auto; }
#stage.hoch.chat-offen .zoomleiste { visibility:hidden; }
#stage.hoch #ansicht-menu { right:30px; }

#stage.quer-handy #kopf { left:auto; right:8px; top:8px; bottom:8px; width:84px; height:auto; flex-direction:column; align-items:stretch; gap:4px; padding:6px; }
#stage.quer-handy #kopf .logo, #stage.quer-handy #kopf .trenner, #stage.quer-handy #kopf .k-phase, #stage.quer-handy #kopf .runde[data-ki="stapel"] { display:none; }
#stage.quer-handy #kopf .runde { font-size:16px; letter-spacing:0; text-align:center; line-height:1.1; }
#stage.quer-handy #kopf .runde b { font-size:24px; }
#stage.quer-handy #kopf .rechts { margin-left:0; margin-top:auto; flex-direction:column; align-items:stretch; gap:4px; }
#stage.quer-handy #kopf .kb-ic { width:auto; height:70px; }
#stage.quer-handy #kopf .kb-ic .sgzi { width:30px; height:30px; }
#stage.quer-handy .uhr { font-size:20px; padding:8px 4px; justify-content:center; }
#stage.quer-handy #k-verlauf-neu { font-size:16px; min-width:26px; height:26px; line-height:26px; border-radius:13px; right:-3px; top:-3px; }
#stage.quer-handy #spieltisch { left:var(--kx, 8px); top:8px; width:var(--kw, 400px); height:var(--kh, 504px); padding:8px; }
#stage.quer-handy #spieltisch::before { inset:3px; }
#stage.quer-handy .zoomleiste { right:14px; bottom:14px; gap:6px; }
#stage.quer-handy .zoomleiste .kb-ic { width:70px; height:70px; }
#stage.quer-handy .zoomleiste .sgzi { width:30px; height:30px; }
#stage.quer-handy .z-txt { font-size:34px; }
#stage.quer-handy #spieltisch > .sz-karte { top:14px; bottom:auto; width:max-content; max-width:calc(100% - 28px); font-size:17px; padding:6px 12px 6px 6px; gap:8px; }
#stage.quer-handy .sz-schild { font-size:17px; }
#stage.quer-handy #hinweise { left:calc(var(--kx, 8px) + 14px); width:calc(var(--kw, 400px) - 112px); top:auto; bottom:22px; align-items:flex-start; flex-direction:column-reverse; }
#stage.quer-handy .meldung { font-size:17px; max-width:100%; max-height:240px; padding:7px 12px; text-align:left; }
#stage.quer-handy .meldung.weg { max-height:0; padding-top:0; padding-bottom:0; }
#stage.quer-handy .schwebe { font-size:24px; }
#stage.quer-handy #auftrag { left:var(--rx, 400px); width:var(--rw, 330px); top:8px; bottom:auto; height:var(--ah, 220px); transform:none; padding:8px 10px 10px; gap:4px; }
#stage.quer-handy .a-dran { font-size:20px; height:28px; flex:none; }
#stage.quer-handy .a-text { flex:1 1 auto; height:auto; min-height:0; font-size:17px; line-height:1.3; overflow-y:auto; }
#stage.quer-handy .a-rat { flex:none; height:auto; max-height:44px; font-size:16px; overflow-y:auto; }
#stage.quer-handy .a-rat:empty, #stage.quer-handy .a-knoepfe:empty { display:none; }
#stage.quer-handy .a-knoepfe { flex:none; margin-top:0; height:70px; grid-template-columns:.75fr 1fr 1fr; gap:5px; }
#stage.quer-handy .a-knoepfe .knopf { flex-direction:column; justify-content:center; gap:2px; min-height:70px; padding:4px 5px; font-size:17px; line-height:1.1; letter-spacing:0; white-space:normal; text-align:center; }
#stage.quer-handy .a-knoepfe .knopf:last-child { grid-column:auto; }
#stage.quer-handy .a-knoepfe .knopf .sgzi { width:20px; height:20px; }
#stage.quer-handy #reiter { display:flex; position:absolute; left:var(--rx, 400px); width:var(--rw, 330px); top:calc(var(--ah, 220px) + 16px); height:70px; gap:3px; }
#stage.quer-handy #reiter button { flex:1 1 auto; min-width:70px; padding:0 2px; font-size:16px; letter-spacing:0; }
#stage.quer-handy:not(.fam-spalte) #reiter button[data-r="familien"] { display:block; }
#stage.quer-handy #hand, #stage.quer-handy #plaettchen, #stage.quer-handy #wertung, #stage.quer-handy:not(.fam-spalte) #familien { display:none; left:var(--rx, 400px); right:auto; width:var(--rw, 330px); top:calc(var(--ah, 220px) + 94px); bottom:8px; height:auto; overflow-y:auto; }
#stage.quer-handy.reiter-hand #hand, #stage.quer-handy.reiter-plaettchen #plaettchen { display:block; }
#stage.quer-handy.reiter-wertung #wertung { display:flex; }
#stage.quer-handy:not(.fam-spalte).reiter-familien #familien { display:flex; flex-direction:column; gap:14px; padding-top:14px; }
#stage.quer-handy.fam-spalte #familien { left:8px; top:8px; bottom:8px; width:var(--fw, 236px); padding-top:12px; gap:14px; overflow-y:auto; }
#stage.quer-handy .pt { font-size:17px; letter-spacing:1px; margin:0 2px 4px; } #stage.quer-handy .pt-r { font-size:17px; }
#stage.quer-handy .hand-reihe { gap:8px; }
#stage.quer-handy .hand-karte svg { width:auto; height:84px; }
#stage.quer-handy .hand-text { font-size:17px; line-height:1.3; }
#stage.quer-handy .ab-reihe, #stage.quer-handy .ab-reihe small, #stage.quer-handy .ab-g { font-size:16px; } #stage.quer-handy .ab-reihe { flex-wrap:wrap; gap:4px 7px; margin-top:6px; } #stage.quer-handy .ab-g i { width:14px; height:19px; }
#stage.quer-handy .pl-liste { gap:5px; } #stage.quer-handy .pl-t { min-height:70px; padding:3px 6px 3px 3px; } #stage.quer-handy .pl-t b { font-size:17px; } #stage.quer-handy .pl-t small, #stage.quer-handy .pl-leer { font-size:16px; }
#stage.quer-handy #wertung { gap:5px; } #stage.quer-handy .wk { flex:none; min-height:70px; padding:4px 8px; } #stage.quer-handy .wk-text b { font-size:17px; } #stage.quer-handy .wk-text small, #stage.quer-handy .wk-mu, #stage.quer-handy .wk-mu small { font-size:16px; } #stage.quer-handy .wk-wert { font-size:24px; }
#stage.quer-handy .fam { flex:none; grid-template-columns:36px auto auto minmax(0, 1fr); grid-template-rows:auto auto; column-gap:8px; row-gap:2px; padding:15px 8px 6px 4px; }
#stage.quer-handy .fam-burg { grid-row:1 / 3; } #stage.quer-handy .fam-burg svg { width:34px; height:auto; }
#stage.quer-handy .fam-name { grid-column:2 / 5; font-size:17px; } #stage.quer-handy .fam-name small { font-size:16px; }
#stage.quer-handy .fam-zahl { grid-row:2; } #stage.quer-handy .fam-zahl[data-ki="vorrat"] { grid-column:2; } #stage.quer-handy .fam-zahl[data-ki="punkte"] { grid-column:3; } #stage.quer-handy .fam-zahl b { font-size:20px; } #stage.quer-handy .fam-zahl small { font-size:16px; }
#stage.quer-handy .fam-unten { grid-column:4; grid-row:2; min-height:24px; flex-wrap:wrap; justify-content:flex-end; }
#stage.quer-handy .fam-karte { font-size:16px; }
#stage.quer-handy .fam-tag { font-size:16px; line-height:20px; top:-12px; left:40px; }
#stage.quer-handy .fam.dran::after { font-size:16px; line-height:20px; top:-12px; }
#stage.quer-handy.fam-spalte .fam { grid-template-columns:36px auto minmax(0, 1fr); grid-template-rows:auto auto auto; column-gap:10px; }
#stage.quer-handy.fam-spalte .fam-name { grid-column:2 / 4; } #stage.quer-handy.fam-spalte .fam-zahl { grid-row:2; } #stage.quer-handy.fam-spalte .fam-zahl[data-ki="vorrat"] { grid-column:2; } #stage.quer-handy.fam-spalte .fam-zahl[data-ki="punkte"] { grid-column:3; } #stage.quer-handy.fam-spalte .fam-unten { grid-column:1 / 4; grid-row:3; }
#stage.quer-handy #pchat, #stage.quer-handy #pchat.offen { left:var(--rx, 400px); right:auto; width:var(--rw, 330px); top:8px; bottom:8px; z-index:75; }
#stage.quer-handy .ch-tabs button { font-size:16px; letter-spacing:0; min-height:70px; }
#stage.quer-handy .ch-zu { min-width:70px; min-height:70px; }
#stage.quer-handy .ch-liste, #stage.quer-handy .ch-z, #stage.quer-handy #pchatwin { font-size:17px; }
#stage.quer-handy .ch-z.runde, #stage.quer-handy .ch-z.zkopf { font-size:16px; letter-spacing:0; }
#stage.quer-handy .ch-z.feld { min-height:70px; padding-top:10px; padding-bottom:10px; }
#stage.hoch .ch-z.feld { min-height:94px; padding-top:12px; padding-bottom:12px; }
#stage.quer-handy #pchatin { min-height:70px; font-size:17px; }
#stage.quer-handy .pc-knoepfe button { font-size:16px; min-height:70px; }
#stage.quer-handy.chat-offen #hinweise { visibility:hidden; }
#stage.quer-handy #ansicht-menu { right:100px; top:8px; width:420px; max-height:504px; overflow-y:auto; gap:4px; }
#stage.quer-handy #ansicht-menu label { font-size:17px; min-height:70px; align-items:center; }
#stage.quer-handy #ansicht-menu label small, #stage.quer-handy #ansicht-menu .am-t { font-size:16px; letter-spacing:1px; }
#stage.quer-handy #ansicht-menu input { width:30px; height:30px; margin-top:0; }
#stage.quer-handy #ansicht-menu .am-reihe { flex-wrap:wrap; }
#stage.quer-handy #ansicht-menu .knopf { font-size:16px; min-height:70px; white-space:normal; }
#stage.quer-handy .banner { min-width:0; width:76%; padding:12px 18px; }
#stage.quer-handy .bn-titel { font-size:30px; letter-spacing:2px; } #stage.quer-handy .bn-unter { font-size:17px; letter-spacing:.5px; }
#stage.quer-handy .ov-box { max-height:96%; padding:14px 18px; }
#stage.quer-handy .ov-titel { font-size:24px; }
#stage.quer-handy .hilfe-text { font-size:17px; max-height:340px; }
#stage.quer-handy .hilfe-text table { font-size:16px; }
#stage.quer-handy #pop-text { font-size:17px; }
#stage.quer-handy .ov-knoepfe .kb { min-height:70px; font-size:17px; }
