
:root {
  --font-ui: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --font-zier: Georgia, 'Times New Roman', serif;

  --con-top:#2a1c14; --con-mid:#21160f; --con-bot:#170f0a;
  --con-edge:rgba(230,184,74,.42);
  --led-bg:#140c08; --led-frame:#3e2a1c;
  --panel-bg:#170f0a; --row-bg:#21160f; --hair:#3f2c1e;
  --slate-800:#2b1d14; --slate-700:#3b281c; --slate-600:#57402e; --slate-500:#84694f; --slate-400:#bba88f; --slate-300:#e0d2bc;
  --n-100:#f7f5e8; --n-200:#ece9d7; --n-300:#d9d6c2; --n-400:#b0ad98; --n-500:#7f7d6a;

  --acc:#e2b552; --acc-hell:#f6d98e;
  --ich:#a3221d; --ich-hell:#f2a59b; --geg:#2b4c93; --geg-hell:#a9c6f5; --ok:#34d399; --info:#7dd3fc;
  --gefahr:#f43f5e; --gefahr-hell:#fb7185;

  --sh-sm: 0 1px 3px rgba(0,0,0,.35);
  --sh-md: 0 4px 6px -1px rgba(0,0,0,.4);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.45);
  --sh-2xl: 0 25px 50px -12px rgba(0,0,0,.6);
  --sh-in: inset 0 2px 4px rgba(0,0,0,.5);
  --ease: cubic-bezier(.4,0,.2,1);
}


:where(html, html *) { scrollbar-width:thin; scrollbar-color:var(--acc) var(--row-bg); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--row-bg); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--acc); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }

* { box-sizing: border-box; }
html, body { margin:0; height:100%; background:#0e0805; overflow:hidden; touch-action:manipulation; }
body { color:var(--n-100); font-family:var(--font-ui); -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
button { font:inherit; color:inherit; cursor:pointer; border:0; background:none; }
.sgzi { width:1.15em; height:1.15em; vertical-align:-.2em; flex:none; }

#wrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; }
#stage { position:relative; width:1050px; height:700px; flex:none; transform-origin:50% 50%;
  background:#1a100a; border:2px solid var(--slate-700); border-radius:12px; overflow:hidden; box-shadow:var(--sh-2xl); }


#partie { position:absolute; inset:0; display:flex; }
#tisch { width:802px; flex:none; display:flex; flex-direction:column; gap:5px; padding:8px 10px;
  background:linear-gradient(180deg,#33221a 0%,#261810 45%,#1a100a 100%); }

.leiste { height:28px; flex:none; display:flex; align-items:center; gap:8px; padding:0 9px;
  background:linear-gradient(to bottom,rgba(44,32,23,.95),rgba(22,15,10,.95)); border:1px solid var(--hair); border-radius:6px;
  box-shadow:var(--sh-in); font-family:var(--font-mono); font-size:11px; color:var(--slate-300); }
.leiste.dran { border-color:rgba(224,176,74,.8); box-shadow:0 0 10px rgba(224,176,74,.35), var(--sh-in); }
.lname { font-weight:700; color:var(--n-200); white-space:nowrap; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.lelo { font-size:11px; color:var(--slate-400); flex:none; }
.lzahl { flex:1; min-width:0; display:flex; align-items:center; gap:6px; justify-content:flex-end; }
.lzahl .gross { font-size:15px; font-weight:900; color:var(--n-100); }
.lzahl .klein { font-size:11px; color:var(--slate-400); letter-spacing:.04em; }
.luhr { flex:none; font-size:14px; font-weight:900; letter-spacing:.06em; color:var(--acc); background:var(--led-bg);
  border:1px solid var(--led-frame); border-radius:4px; padding:1px 7px; box-shadow:var(--sh-in); min-width:58px; text-align:center; }
.luhr.knapp { color:var(--gefahr-hell); border-color:rgba(244,63,94,.7); background:rgba(76,5,25,.6); }
.luhr.aus { color:#b8a68a; }
.luhr.kritisch { animation:uhrblink .5s steps(2) infinite; }
@keyframes uhrblink { 50% { background:rgba(244,63,94,.85); color:#fff; } }

.lzahl .klein b { color:#6ee7b7; } .lzahl .klein b.minus { color:#fb7185; }


.gk { --kw:66px; --kh:96px; position:relative; flex:none; width:var(--kw); height:var(--kh); border-radius:6px; background:#fbf7ee;
  box-shadow:0 2px 5px rgba(0,0,0,.55); transition:transform .18s var(--ease), box-shadow .18s; }







@keyframes hinein { from { transform:translateY(-8px) scale(.97); } to { transform:none; } }
b.kf0 { color:#e7e2d6 !important; } b.kf1 { color:#5fd08c !important; } b.kf2 { color:#ff8b9a !important; } b.kf3 { color:#ffa45c !important; }

@keyframes dranblink { 50% { transform:scale(1.12); } }

@keyframes anrutschen { 0% { transform:translateY(-26px); } 100% { transform:none; } }

.lzahl .geber { padding:0 6px; border-radius:8px; border:1px solid #8a5a32; color:var(--acc-hell); font-size:11px; }
.lzahl .kaest { display:flex; gap:2px; }
.lzahl .kaest i { width:9px; height:9px; border:1.5px solid var(--acc); background:var(--acc); border-radius:2px; }
.lzahl .kaest em { font-style:normal; font-size:11px; color:var(--acc-hell); margin-left:2px; }
.lzahl .gross.zu { color:var(--acc-hell); text-decoration:underline; }

.k-block { background:var(--panel-bg); border:1px solid var(--hair); border-radius:5px; padding:4px 6px; margin-bottom:6px; box-shadow:var(--sh-in); font-size:12px; }
.k-block table { width:100%; border-collapse:collapse; }
.k-block th, .k-block td { padding:2px 4px; text-align:right; color:var(--n-200); white-space:nowrap; }
.k-block th:first-child { text-align:left; color:var(--slate-300); font-weight:600; }
.k-block tr:first-child th { color:var(--acc-hell); font-size:11.5px; max-width:80px; overflow:hidden; text-overflow:ellipsis; }
.k-block td { font:800 14px var(--font-zier); }
.k-block td small { font:600 11px var(--font-ui); color:var(--acc); }
.k-block tr.zu td { color:var(--acc-hell); }
.bl-x { margin-top:2px; font-size:11px; color:var(--slate-400); line-height:1.3; }
.kq { display:inline-block; width:8px; height:8px; margin:0 3px 0 1px; border-radius:2px; background:var(--acc); vertical-align:0; }

#flug { position:absolute; inset:0; pointer-events:none; z-index:40; }
#flug .gk { position:absolute; left:0; top:0; transition:transform .55s var(--ease); will-change:transform; transform-origin:50% 50%; }
.puls { animation:puls .8s var(--ease); }
@keyframes puls { 40% { transform:scale(1.12); box-shadow:0 0 16px rgba(242,194,122,.85); } }

#vorhang { position:absolute; inset:0; z-index:30; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background:rgba(10,14,24,.97); }
.vh-box { width:330px; padding:18px; border-radius:14px; text-align:center; background:rgba(22,15,10,.95); border:2px solid var(--acc); box-shadow:var(--sh-2xl); }
.vh-box b { display:block; font:800 18px var(--font-zier); color:var(--acc-hell); margin-bottom:6px; }
.vh-box p { margin:0 0 6px; font-size:13px; color:var(--n-300); line-height:1.45; }

#en-zurueck { position:absolute; left:50%; bottom:11px; transform:translateX(-50%); z-index:25; display:flex; gap:8px; padding:6px; border-radius:12px;
  background:rgba(10,14,24,.92); border:1px solid var(--acc); box-shadow:var(--sh-2xl); }
#en-zurueck .kb { padding:6px 12px; white-space:nowrap; }
:root[data-theme="light"] #en-zurueck { background:linear-gradient(to bottom,#f4f6fa,#e2e8f1); color:#1d2536; }

.kinfo { position:absolute; z-index:72; width:300px; pointer-events:none; border-radius:12px; overflow:hidden; color:var(--n-200);
  background:linear-gradient(180deg,#1d2638,#0f1420); border:2px solid var(--acc); box-shadow:0 14px 34px rgba(0,0,0,.6); }
.kinfo .ki-kopf { display:flex; gap:11px; padding:10px; background:linear-gradient(135deg, var(--zf, #3a2c20), rgba(22,15,10,.92)); color:#f3f5fa; }
.kinfo .ki-kopf.kf0 { --zf:#3b3b3b; } .kinfo .ki-kopf.kf1 { --zf:#13793a; } .kinfo .ki-kopf.kf2 { --zf:#a0142c; } .kinfo .ki-kopf.kf3 { --zf:#b84c0c; }
.kinfo .ki-bild { flex:none; width:84px; height:116px; }
.kinfo .ki-bild .gk { --kw:84px; --kh:116px; }
.kinfo .ki-tt { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.kinfo .ki-titel { font:900 20px/1.1 var(--font-zier); color:#f6d896; }
.kinfo .ki-kat { font-size:12.5px; color:#e3e7ef; }
.kinfo .ki-gross { font:900 26px/1 var(--font-zier); color:#fff; margin-top:4px; }
.kinfo .ki-gross small { font:600 12px var(--font-ui); color:#e3e7ef; margin-left:4px; }
.kinfo .ki-zeilen { padding:7px 12px 3px; font-size:12.5px; }
.kinfo .ki-zeilen > div { display:flex; justify-content:space-between; gap:10px; padding:2px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.kinfo .ki-zeilen span { color:var(--slate-400); }
.kinfo .ki-zeilen b { text-align:right; color:var(--n-100); }
.kinfo .ki-regel { margin:4px 12px 8px; font-size:12.5px; line-height:1.4; color:var(--slate-300); }
.kinfo .ki-regel b { color:var(--n-100); }
.kinfo .ki-tipp { margin:0 10px 10px; padding:7px 9px; border-radius:8px; font-size:12.5px; line-height:1.35; color:var(--n-100); background:rgba(111,208,180,.14); border:1px solid rgba(111,208,180,.6); }
.kinfo .ki-tipp b { color:#fff; }
#stage.hoch .kinfo { width:420px; }
#stage.hoch .kinfo .ki-titel { font-size:26px; } #stage.hoch .kinfo .ki-kat, #stage.hoch .kinfo .ki-zeilen { font-size:16px; }
#stage.hoch .kinfo .ki-regel, #stage.hoch .kinfo .ki-tipp { font-size:15.5px; }
:root[data-theme="light"] .kinfo { background:linear-gradient(180deg,#f4f6fa,#e2e8f1); color:#1d2536; }
:root[data-theme="light"] .kinfo .ki-tipp b, :root[data-theme="light"] .kinfo .ki-regel b, :root[data-theme="light"] .kinfo .ki-zeilen b { color:#141a28; }

#stage .kb.an { background:linear-gradient(to bottom,#5e3f08,#332205); }
:root[data-theme="light"] #stage .kb.an { background:linear-gradient(to bottom,#f0d58f,#d9b25a); }


#vorspann { position:absolute; inset:0; z-index:28; display:flex; align-items:center; justify-content:center;
  background:rgba(16,11,7,.88); backdrop-filter:blur(3px); border-radius:10px; }
.vs-box { width:440px; background:linear-gradient(to bottom,#2c2017,#17110b); border:2px solid var(--acc); border-radius:12px; padding:10px 14px;
  text-align:center; box-shadow:var(--sh-2xl); }
.vs-titel { display:block; font-family:var(--font-mono); font-size:12px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; color:var(--acc-hell); margin-bottom:8px; }
.vs-label { display:block; font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--slate-300);
  text-align:left; margin:0 0 3px 2px; }
.vs-liste { display:grid; gap:5px; margin-bottom:6px; }
.vs-liste.fuenf { grid-template-columns:repeat(5,minmax(0,1fr)); }
.vs-liste.vier { grid-template-columns:repeat(4,minmax(0,1fr)); }
.vs-liste.zwei { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vs-liste.drei { grid-template-columns:repeat(3,minmax(0,1fr)); }
.vs-liste button { min-width:0; padding:5px 3px; border-radius:8px; background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200);
  font-family:var(--font-mono); font-size:11px; font-weight:700; transition:all 140ms var(--ease); text-align:center; }
.vs-liste button:hover { background:var(--slate-700); border-color:var(--info); }
.vs-liste button.ich { background:rgba(2,44,34,.6); border-color:var(--ok); color:#a7f3d0; }
.vs-liste button.gegner { box-shadow:inset 0 0 0 1px var(--acc); }
.vs-liste button:disabled { opacity:.35; cursor:not-allowed; }
.vs-liste button span { display:block; font-size:11px; font-weight:400; color:var(--slate-400); margin-top:1px; white-space:normal; }
.vs-liste button.ich span { color:#6ee7b7; }
.vs-info { margin:2px 0 0; font-size:11.5px; color:var(--slate-300); line-height:1.4; min-height:28px; }
.vs-info b { color:var(--acc-hell); }
.vs-kompakt { display:grid; gap:6px; margin:2px 0 8px; }
.vs-reihe { display:grid; grid-template-columns:60px 1fr; align-items:center; gap:6px; }
.vs-reihe .vs-label { margin:0; }
.vs-reihe .vs-liste { margin:0; }
.vs-farbe { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; font-size:12px; color:var(--slate-300); }
.vs-farbe b { color:var(--acc-hell); }
.vs-farbe button { padding:5px 10px; border-radius:8px; background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200); font-size:11.5px; font-weight:700; }
.vs-farbe button:hover { border-color:var(--info); }
.vs-los { display:block; width:100%; margin-top:8px; padding:9px 14px; border-radius:10px; font-weight:800; font-size:13px; color:#fff;
  background:linear-gradient(90deg,#047857,#0f766e); border:1px solid rgba(52,211,153,.5); box-shadow:var(--sh-lg); cursor:pointer; }
.vs-los:hover { filter:brightness(1.1); }

#konsole { width:244px; flex:none; display:flex; flex-direction:column; padding:8px; min-height:0;
  background:linear-gradient(to bottom,var(--con-top),var(--con-mid),var(--con-bot)); border-left:2px solid var(--con-edge); box-shadow:var(--sh-2xl); }
.k-kopf { text-align:center; margin-bottom:6px; }
.k-logo { display:block; font-family:var(--font-mono); font-size:13px; font-weight:900; letter-spacing:.14em; color:var(--acc-hell); text-shadow:0 0 10px rgba(224,176,74,.35); }
.k-modus { display:block; font-family:var(--font-mono); font-size:11px; color:var(--slate-300); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.k-regel { display:block; font-family:var(--font-mono); font-size:11px; color:var(--acc); margin-top:1px; }
.k-status { background:var(--led-bg); border:2px solid var(--led-frame); border-radius:5px; padding:5px 8px; font-family:var(--font-mono); font-size:12px;
  font-weight:700; color:var(--acc); text-align:center; box-shadow:var(--sh-in); margin-bottom:6px; min-height:30px; display:flex; align-items:center; justify-content:center; }
.k-status.pflicht { color:var(--gefahr-hell); border-color:rgba(244,63,94,.7); background:rgba(76,5,25,.55); }
.k-status.gruen { color:#6ee7b7; border-color:rgba(52,211,153,.7); background:rgba(2,44,34,.55); }
.k-status.ok { color:var(--ok); }
.k-blocklabel { font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--slate-300); margin:0 0 3px 2px; }
.k-zugliste { flex:1; min-height:0; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:5px; padding:4px; box-shadow:var(--sh-in);
  font-size:11.5px; line-height:1.35; }
.zl-leer { color:var(--slate-400); font-size:11px; padding:6px 2px; text-align:center; }
.zl { padding:2px 4px; border-radius:3px; color:var(--n-300); }
.zl:nth-child(odd) { background:var(--row-bg); }
.zl b { color:var(--n-100); }
.zl.kopf { color:var(--acc-hell); font-weight:800; background:rgba(224,176,74,.12); }
.zl.jetzt { outline:1px solid var(--acc); }
.zl.an { color:var(--n-100); }
.k-chat { height:50px; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:5px; padding:4px; margin-bottom:3px; font-size:11px;
  line-height:1.35; box-shadow:var(--sh-in); }
#gchattext b { color:var(--info); font-weight:700; }
.k-chatin { width:100%; margin-bottom:5px; background:var(--led-bg); border:1px solid var(--hair); border-radius:4px; padding:4px 6px; font:12px var(--font-mono);
  color:var(--n-100); outline:none; }
.k-chatin:focus { border-color:var(--info); }
.k-schnell { display:grid; grid-template-columns:1fr 1fr; gap:3px; margin:-2px 0 6px; }
.k-schnell button { padding:3px 4px; border-radius:6px; background:var(--slate-800); border:1px solid var(--slate-700); color:var(--slate-300); font-size:11px; font-weight:700; }
.k-schnell button:hover { border-color:var(--info); color:#fff; }
.k-knoepfe { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:5px 0 4px; }
.kb { padding:6px 4px; background:linear-gradient(to bottom,var(--slate-600),var(--slate-800)); border:1px solid rgba(165,151,182,.45); border-radius:5px;
  font-family:var(--font-mono); font-size:11px; font-weight:700; color:var(--n-200); box-shadow:var(--sh-md); transition:all 140ms var(--ease);
  display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.kb:hover { background:linear-gradient(to bottom,var(--slate-500),var(--slate-700)); }
.kb:active { transform:translateY(2px); }
.kb:disabled { opacity:.45; cursor:default; transform:none; }
.kb.an { background:linear-gradient(to bottom,#7a5410,#45300a); border-color:var(--acc); color:var(--acc-hell); }
.kb-rot { background:linear-gradient(to bottom,#9f1239,#4c0519); border-color:rgba(244,63,94,.5); color:#fecdd3; }
.kb-gruen { background:linear-gradient(to bottom,#047857,#065f46) !important; border-color:rgba(52,211,153,.5) !important; color:#fff !important; }
.k-leiste { display:flex; justify-content:space-between; align-items:center; gap:4px; padding-top:5px; border-top:1px solid rgba(165,151,182,.35); }
.kb-hw { padding:4px 8px; background:linear-gradient(to bottom,var(--slate-600),var(--slate-800)); border:1px solid rgba(165,151,182,.5); border-radius:4px;
  font-family:var(--font-mono); font-size:11px; font-weight:700; color:var(--n-200); box-shadow:var(--sh-md); }
.k-icons { display:flex; gap:4px; }
.kb-ic { min-width:26px; height:24px; padding:3px 5px; background:var(--slate-700); border:1px solid var(--con-edge); border-radius:4px; color:var(--n-300); font-size:12px;
  line-height:1; box-shadow:var(--sh-sm); display:inline-flex; align-items:center; justify-content:center; }
.kb-ic:hover { background:var(--slate-600); }
.kb-ic.aus { opacity:.45; }
.k-blaettern { display:grid; grid-template-columns:auto auto 1fr auto auto; gap:3px; align-items:center; margin:4px 0 2px; }
.k-blaettern button { padding:2px 7px; border-radius:5px; background:var(--slate-800); border:1px solid var(--slate-700); color:var(--slate-300); font-size:11px; display:inline-flex; align-items:center; }
.k-blaettern span { text-align:center; font-family:var(--font-mono); font-size:11px; color:var(--slate-400); }
.k-nachspiel { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:4px 0; }

.ovl { position:absolute; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; background:rgba(8,6,4,.84);
  backdrop-filter:blur(6px); padding:20px; animation:auf 180ms var(--ease); }
@keyframes auf { from { transform:scale(.98); } to { transform:none; } }
.karte { width:100%; max-width:400px; background:linear-gradient(to bottom,#2c2017,#17110b); border:2px solid #6b4a1c; border-radius:14px; padding:20px;
  box-shadow:var(--sh-2xl); display:flex; flex-direction:column; align-items:center; text-align:center; max-height:92%; }
.karte-breit { max-width:540px; align-items:stretch; text-align:left; }
#ende-icon { width:58px; height:58px; border-radius:9999px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; border:2px solid; box-shadow:var(--sh-lg); }
#ende-icon .sgzi { width:30px; height:30px; }
#ende-icon.sieg { background:rgba(224,176,74,.18); border-color:var(--acc); color:var(--acc-hell); }
#ende-icon.remis { background:rgba(165,151,182,.2); border-color:var(--slate-400); color:var(--slate-300); }
#ende-icon.pleite { background:rgba(244,63,94,.18); border-color:var(--gefahr); color:var(--gefahr-hell); }
#ende-titel { margin:0; font-family:var(--font-zier); font-size:22px; font-weight:900; letter-spacing:.03em; }
#ende-unter { margin:6px 0 0; font-size:13px; color:var(--n-300); line-height:1.45; }
#ende-btns { width:100%; display:flex; flex-direction:column; gap:7px; margin-top:16px; }
#ende-btns button { width:100%; padding:9px 14px; border-radius:10px; font-weight:700; font-size:13px; }
#ende-btns .haupt { background:linear-gradient(90deg,#047857,#0f766e); color:#fff; box-shadow:var(--sh-lg); }
#ende-btns .neben { background:var(--slate-800); color:var(--n-200); border:1px solid var(--slate-600); }
.ende-stand { margin-top:12px; width:100%; display:flex; justify-content:center; gap:14px; font-family:var(--font-mono); font-size:12px; color:var(--slate-300); }
.ende-stand b { color:var(--acc-hell); }
.kh { display:flex; justify-content:space-between; align-items:center; padding-bottom:10px; border-bottom:1px solid var(--hair); margin-bottom:12px; }
.kh h2 { margin:0; font-family:var(--font-zier); font-size:17px; color:var(--acc); }
.kx { padding:2px 8px; border-radius:6px; color:var(--n-400); font-size:15px; }
.kx:hover { background:var(--slate-800); color:#fff; }
.kb-text { overflow-y:auto; font-size:12.5px; line-height:1.6; color:var(--n-300); padding-right:4px; }
.kb-text h3 { font-family:var(--font-zier); font-size:14px; color:var(--acc); margin:14px 0 4px; }
.kb-text h3:first-child { margin-top:0; }
.kb-text p { margin:0 0 6px; }
.kb-text b { color:var(--n-100); }
.kb-text ul { margin:0 0 6px; padding-left:18px; }
.pop-karte { max-width:360px; }
.pop-karte h2 { margin:0 0 8px; font-family:var(--font-zier); font-size:17px; color:var(--acc); }
.pop-karte p { margin:0; font-size:13px; color:var(--n-300); line-height:1.5; }
#pop-btns { display:flex; gap:8px; margin-top:16px; width:100%; }
#pop-btns button { flex:1; padding:9px 12px; border-radius:9px; font-weight:700; font-size:12px; }
#pop-btns .ja { background:linear-gradient(90deg,#047857,#0f766e); color:#fff; }
#pop-btns .nein { background:var(--slate-800); color:var(--n-200); border:1px solid var(--slate-600); }
.ei-zeile { display:grid; grid-template-columns:110px 1fr; gap:10px; align-items:start; padding:9px 0; border-bottom:1px solid var(--hair); }
.ei-zeile > span { font-family:var(--font-mono); font-size:11.5px; color:var(--slate-300); padding-top:6px; }
.ei-wahl { display:flex; flex-wrap:wrap; gap:6px; }
.ei-wahl button { padding:6px 10px; border-radius:8px; background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200); font-size:11.5px; font-weight:700; }
.ei-wahl button.an { background:rgba(224,176,74,.18); border-color:var(--acc); color:var(--acc-hell); }
.ei-hinweis { margin:10px 0 0; font-size:11.5px; color:var(--slate-400); }
#note { position:absolute; left:0; right:0; top:50%; text-align:center; font-family:var(--font-mono); font-size:13px; color:#ddd; z-index:60; }

#lobby { position:absolute; inset:0; display:flex; flex-direction:column; padding:12px 14px;
  background:linear-gradient(rgba(16,11,7,.74),rgba(16,11,7,.9)), #2a1a0f linear-gradient(#33221a,#1a100a) center / cover no-repeat; }
.lo-kopf { display:flex; align-items:center; gap:10px; padding-bottom:9px; margin-bottom:10px; border-bottom:1px solid var(--hair); }
.lo-logo { font-family:var(--font-zier); font-size:22px; font-weight:900; letter-spacing:.12em; color:var(--acc-hell); text-shadow:0 0 12px rgba(224,176,74,.35); }
.lo-raum { font-family:var(--font-mono); font-size:11px; color:var(--slate-400); }
.lo-ich { margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--slate-300); white-space:nowrap; }
.lo-ich b { color:var(--info); }
.lo-kopf-r { display:flex; align-items:center; gap:5px; margin-left:12px; }
.lo-kopf-r .kb { padding:5px 10px; white-space:nowrap; }
.lo-mitte { flex:1; min-height:0; display:flex; gap:12px; }
.lo-chat { flex:1; min-width:0; display:flex; flex-direction:column; }
.lo-spieler { width:280px; flex:none; display:flex; flex-direction:column; }
.lo-label { font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--slate-300); margin:0 0 4px 2px; }
#chatwin { flex:1 1 0; min-height:90px; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:6px; padding:7px 9px;
  box-shadow:var(--sh-in); font-size:12px; line-height:1.45; color:var(--n-300); }
#chattext .nm { color:var(--info); font-weight:700; cursor:pointer; }
#chattext .sys { color:var(--slate-400); font-style:italic; }
#chattext .pm { color:var(--acc-hell); }
#chatin, #pmin { margin-top:7px; background:var(--led-bg); border:1px solid var(--hair); border-radius:5px; padding:7px 9px; font:12px var(--font-mono); color:var(--n-100); outline:none; }
#chatin:focus, #pmin:focus { border-color:var(--info); }
.lo-start { flex:1 1 0; min-height:0; display:flex; flex-direction:column; margin-top:12px; }
.lo-kacheln { flex:1; min-height:0; display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; gap:8px; }
.lo-kachel { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; padding:10px 14px; text-align:left; cursor:pointer; }
.lo-kachel b { display:flex; align-items:center; gap:7px; font-size:14px; color:var(--n-100); }
.lo-kachel b i { display:inline-flex; }
.lo-kachel small { font-family:system-ui, sans-serif; font-size:11.5px; font-weight:400; line-height:1.35; color:var(--slate-300); }
.lo-kachel.kb-gruen small { color:#d1fae5; }
#ulist { flex:1; min-height:0; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:6px; padding:3px; box-shadow:var(--sh-in); }
.it { display:flex; align-items:center; gap:6px; padding:5px 7px; border-radius:5px; font-family:var(--font-mono); font-size:12px; color:var(--n-200); cursor:pointer; }
.it:hover { background:var(--row-bg); }
.it .elo { margin-left:auto; font-size:11px; color:var(--slate-400); }
.it.me { color:var(--info); cursor:default; }
.it.spielt { color:var(--slate-500); cursor:default; }
.it .pk { width:7px; height:7px; border-radius:9999px; background:var(--ok); flex:none; }
.it.spielt .pk { background:var(--slate-600); }
.it .rang { width:22px; color:var(--acc-hell); font-size:11px; }
.it.live { cursor:pointer; }
.lo-hinweis { margin:6px 2px 0; font-size:11px; color:var(--slate-400); line-height:1.35; }
.lo-tabs { display:flex; gap:3px; margin-bottom:6px; }
.lo-tabs button { flex:1; padding:4px 6px; border-radius:6px; background:var(--slate-800); border:1px solid var(--slate-700); color:var(--slate-300); font-family:var(--font-mono);
  font-size:11px; font-weight:700; }
.lo-tabs button.an { background:rgba(224,176,74,.16); border-color:var(--acc); color:var(--acc-hell); }
.lo-tab { flex:1; min-height:0; display:flex; flex-direction:column; }
.lo-liste { flex:1; min-height:0; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:6px; padding:4px; }
#lo-nurchat.an { background:linear-gradient(to bottom,#7a5410,#45300a); border-color:var(--acc); color:var(--acc-hell); }
#stage.hoch .lo-raum { display:none; }
#stage.hoch .lo-mitte { flex-direction:column; }
#stage.hoch .lo-chat { flex:1.7 1 0; min-height:0; }
#stage.hoch .lo-spieler { width:auto; flex:1 1 0; min-height:0; }

.archiv-liste { display:flex; flex-direction:column; gap:5px; overflow-y:auto; max-height:360px; }
.ar-z { display:grid; grid-template-columns:1fr auto; gap:2px 10px; text-align:left; padding:8px 10px; border-radius:8px; background:var(--slate-800);
  border:1px solid var(--slate-700); border-left:4px solid var(--slate-500); color:var(--n-200); }
.ar-z b { font-size:12px; } .ar-z span { grid-column:1; font-size:11px; color:var(--slate-400); }
.ar-z em { grid-row:1 / span 2; grid-column:2; align-self:center; font-style:normal; font-size:11px; color:var(--slate-400); }
.ar-z.sieg { border-left-color:var(--ok); } .ar-z.nied { border-left-color:var(--gefahr); } .ar-z.rem { border-left-color:var(--slate-400); }
.ar-tabs { margin-bottom:8px; }
.statistik { overflow-y:auto; max-height:380px; padding-right:2px; }
.st-kopf { display:grid; grid-template-columns:repeat(5, 1fr); gap:5px; margin-bottom:8px; }
.st-kopf div { background:var(--slate-800); border:1px solid var(--slate-700); border-radius:8px; padding:7px 4px; text-align:center; }
.st-kopf b { display:block; font:800 16px var(--font-mono); color:var(--acc-hell); }
.st-kopf span { font-size:11px; color:var(--slate-400); }
.st-block { background:rgba(37,27,51,.55); border:1px solid var(--slate-700); border-radius:8px; padding:8px 10px; margin-bottom:7px; }
.st-block h3 { margin:0 0 6px; font-size:12px; color:var(--n-200); }
.st-block h3 small { font-weight:400; color:var(--slate-400); margin-left:4px; }
.st-zeile { display:grid; grid-template-columns:90px 1fr 120px; align-items:center; gap:8px; margin:4px 0; font-size:11px; color:var(--slate-300); }
.st-balken { display:flex; height:10px; border-radius:5px; overflow:hidden; background:var(--slate-800); }
.st-balken i { display:block; } .st-balken i.s { background:#22c55e; } .st-balken i.r { background:#a597b6; } .st-balken i.n { background:#ef4444; } .st-balken i.leer { flex:1; }
.st-w { text-align:right; font-family:var(--font-mono); font-size:11px; }
.st-form { display:flex; gap:4px; }
.st-form i { width:22px; height:22px; border-radius:5px; display:flex; align-items:center; justify-content:center; font:800 11px var(--font-mono); font-style:normal; color:#0f172a; }
.st-form i.s { background:#22c55e; } .st-form i.r { background:#a597b6; } .st-form i.n { background:#ef4444; color:#fff; }
.st-klein { margin:6px 0 0; font-size:11px; color:var(--slate-400); }

#stage.hoch { width:440px; height:950px; }
#stage.hoch #partie { flex-direction:column; }
#stage.hoch #tisch { width:auto; height:680px; flex:none; padding:6px 8px; background-image:linear-gradient(#33221a,#1a100a); }
#stage.hoch #konsole { width:auto; flex:1; min-height:0; }
#stage.hoch .k-knoepfe { grid-template-columns:repeat(3, 1fr); }
#stage.hoch .k-schnell { grid-template-columns:repeat(4, 1fr); }
#stage.hoch .k-chat { height:60px; }
#stage.hoch .lo-spieler { width:auto; }

:root[data-theme="light"] {
  --con-top:#efe6d6; --con-mid:#e6dcc9; --con-bot:#d8ccb6; --con-edge:rgba(110,70,30,.35);
  --led-bg:#f3ece0; --led-frame:#c9b89c; --panel-bg:#f1eadd; --row-bg:#e8dfcf; --hair:#cdbfa6;
  --slate-800:#e6dccb; --slate-700:#d6c9b3; --slate-600:#b9a789; --slate-500:#7a6a55; --slate-400:#5e5040; --slate-300:#45392c;
  --n-100:#1f160d; --n-200:#2a1f14; --n-300:#3a2d1f; --n-400:#4d3e2e; --n-500:#6a5a47;
  --acc:#8a4a14; --acc-hell:#7a3e0c; --info:#1a5fb4; --ok:#136f37; --gefahr-hell:#b4232f;
}
html[data-theme="light"], html[data-theme="light"] body { background:#ddd2bf; }
:root[data-theme="light"] #stage { background:#e9e4d2; }

:root[data-theme="light"] #stage.hoch #tisch { background-image:linear-gradient(rgba(244,236,222,.5),rgba(244,236,222,.5)), linear-gradient(#33221a,#1a100a); }
:root[data-theme="light"] .leiste { background:linear-gradient(to bottom,#f4ede1,#e4d8c4); color:var(--n-300); }
:root[data-theme="light"] .vs-box, :root[data-theme="light"] .karte { background:linear-gradient(to bottom,#f6efe3,#e8dcc8); color:var(--n-200); }
:root[data-theme="light"] .zl.an { color:#1d2536; }
:root[data-theme="light"] .vs-liste button.ich { background:rgba(19,111,55,.15); color:#0f5a2c; }
:root[data-theme="light"] .vs-liste button.ich span { color:#0f5a2c; }
:root[data-theme="light"] #lobby { background:linear-gradient(rgba(244,236,222,.84),rgba(232,222,204,.92)), #e2d5be linear-gradient(#33221a,#1a100a) center / cover no-repeat; }
:root[data-theme="light"] .kb { color:var(--n-200); background:linear-gradient(to bottom,#f4ede1,#e0d3bd); border-color:rgba(60,80,120,.35); }
:root[data-theme="light"] .kb.an { background:linear-gradient(to bottom,#f0d58f,#d9b25a); color:#3b2606; }
:root[data-theme="light"] .kb-rot { background:linear-gradient(to bottom,#f3c3c8,#e39aa3); color:#5d0f1a; }
:root[data-theme="light"] .kb-ic, :root[data-theme="light"] .kb-hw { background:#e6dccb; color:#1d2536; }
:root[data-theme="light"] .ovl { background:rgba(110,90,60,.42); }
:root[data-theme="light"] .lo-logo, :root[data-theme="light"] .k-logo { text-shadow:none; }
:root[data-theme="light"] #chattext .sys { color:#3d475b; }
:root[data-theme="light"] #ende-btns .neben, :root[data-theme="light"] #pop-btns .nein { color:#1d2536; }
:root[data-theme="light"] .k-status.gruen { color:#0f5a2c; background:rgba(19,111,55,.12); }
:root[data-theme="light"] .k-status.pflicht { color:#8f1a2b; background:rgba(195,56,74,.12); }
:root[data-theme="light"] .luhr { color:#7a4c06; }
:root[data-theme="light"] .luhr.aus { color:#5a6478; }
:root[data-theme="light"] #vorhang { background-color:rgba(240,232,218,.98); }
:root[data-theme="light"] .k-regel { color:#6b4006; }


:root[data-theme="light"] b.kf0 { color:#1b1b1b !important; } :root[data-theme="light"] b.kf1 { color:#0f6631 !important; }
:root[data-theme="light"] b.kf2 { color:#a00e26 !important; } :root[data-theme="light"] b.kf3 { color:#8a3805 !important; }
:root[data-theme="light"] .k-block td small { color:#8a4a14; }


#stage.hoch .kb, #stage.hoch .vs-farbe button { min-height:38px; }
#stage.hoch .kb-ic { min-width:44px; height:40px; }
#stage.hoch .kb-hw { min-height:38px; min-width:64px; }
#stage.hoch .k-schnell button { min-height:36px; }
@media (pointer: coarse) {
  .kb, .vs-farbe button { min-height:38px; }
  .kb-ic { min-width:44px; height:40px; }
  .kb-hw { min-height:38px; min-width:64px; }
  .k-schnell button { min-height:36px; }
}
.kb-gruen b, .kb-gruen small { color:#fff !important; }
.lo-tabs button { white-space:nowrap; }

.kx { display:inline-flex; align-items:center; justify-content:center; }
.kx .sgzi { width:16px; height:16px; }
#stage.hoch .kx, #stage.hoch .ei-wahl button, #stage.hoch #ende-btns button, #stage.hoch .vs-los, #stage.hoch #pop-btns button { min-height:40px; }
#stage.hoch .kx { min-width:44px; }
@media (pointer: coarse) {
  .kx, .ei-wahl button, #ende-btns button, .vs-los, #pop-btns button { min-height:40px; }
  .kx { min-width:44px; }
}

#einf { position:absolute; inset:0; z-index:26; display:flex; align-items:center; justify-content:center; padding:10px;
  background:rgba(16,11,7,.72); border-radius:10px; }
.ef-box { width:430px; max-height:100%; overflow-y:auto; padding:12px 16px; border-radius:14px; background:linear-gradient(to bottom,#2c2017,#17110b);
  border:2px solid var(--acc); box-shadow:var(--sh-2xl); animation:hinein .3s var(--ease); }
.ef-box > b { display:block; font:800 18px var(--font-zier); color:var(--acc-hell); margin-bottom:6px; text-align:center; }
#ef-text p { margin:0 0 7px; font-size:12.5px; line-height:1.45; color:var(--n-200); }
#ef-text b { color:var(--acc-hell); }
#ef-text .ef-wie { color:#a7f3d0; text-align:center; margin-top:4px; }
.ef-aus { display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--slate-300); margin-top:4px; cursor:pointer; }
#ef-aus { width:18px; height:18px; margin:0; accent-color:var(--acc); flex:none; }
#stage.hoch .ef-box { width:auto; }
:root[data-theme="light"] .ef-box { background:linear-gradient(to bottom,#f6efe3,#e8dcc8); }
:root[data-theme="light"] #ef-text p { color:#1d2536; }
:root[data-theme="light"] #ef-text b { color:#6b4006; }
:root[data-theme="light"] #ef-text .ef-wie { color:#0f5a2c; }
:root[data-theme="light"] #einf { background:rgba(110,90,60,.4); }
:root[data-theme="light"] .lo-ich b { color:#0f4a8f; }
.ende-stand { flex-direction:column; align-items:center; gap:6px; text-align:center; line-height:1.5; }
.ende-stand small { font-size:11px; color:var(--slate-400); }

.vs-regeln { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-size:12px; color:var(--slate-300); text-align:left; }
.vs-regeln .vs-label { margin:0; flex:none; }
#vs-regeltext { flex:1; min-width:0; color:var(--n-200); }
.vs-regeln button { flex:none; padding:5px 10px; border-radius:8px; background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200); font-size:11.5px; font-weight:700; }
.vs-regeln button:hover { border-color:var(--info); }
#vs-regeluebernehmen { border-color:var(--acc); color:var(--acc-hell); }
.hr-knoepfe { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.hr-knoepfe .kb { padding:7px 14px; }
.bl-liste, .ende-liste { display:flex; flex-direction:column; gap:1px; margin-top:4px; font-size:12px; }
.sl-z { display:flex; justify-content:space-between; gap:10px; padding:1px 4px; border-radius:4px; }
.sl-z.me { background:rgba(242,194,122,.16); color:var(--acc-hell); }

.er-liste { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.er-z { display:flex; gap:7px; align-items:flex-start; padding:5px 7px; border-radius:7px; background:var(--slate-800); border:1px solid var(--slate-700); color:var(--slate-400); }
.er-z span { display:flex; flex-direction:column; min-width:0; }
.er-z b { font-size:12px; } .er-z small { font-size:11px; }
.er-z.an { color:var(--n-200); border-color:var(--acc); } .er-z.an .sgzi { color:var(--acc-hell); }
.ei-check { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--n-200); cursor:pointer; }
#ei-atmo { width:18px; height:18px; accent-color:var(--acc); margin:0; flex:none; }
#tisch { position:relative; }
#stage .kb-gruen b.kf0, #stage .kb-gruen b.kf1, #stage .kb-gruen b.kf2, #stage .kb-gruen b.kf3 { color:#fff !important; text-decoration:underline; }
#spruch { position:absolute; left:22px; top:44px; z-index:70; max-width:330px; padding:7px 12px 8px; border-radius:12px; pointer-events:none;
  background:#f6ead2; color:#2a1f14; font-size:13px; line-height:1.35; box-shadow:0 6px 18px rgba(0,0,0,.45); border:1px solid #c9a46a; }
#spruch b { display:block; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:#8a5a1c; margin-bottom:1px; }
#spruch::before { content:''; position:absolute; left:22px; top:-7px; width:12px; height:12px; background:#f6ead2; border-left:1px solid #c9a46a; border-top:1px solid #c9a46a; transform:rotate(45deg); }
#spruch.an { animation:spruchRein .28s ease-out; }
@keyframes spruchRein { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
#ende-kurve { margin-top:12px; width:100%; }
.ek-kopf { display:flex; gap:14px; justify-content:center; font-size:11.5px; color:var(--slate-300); margin-bottom:4px; flex-wrap:wrap; }
.ek-kopf i { display:inline-block; width:14px; height:3px; border-radius:2px; vertical-align:middle; margin-right:5px; }
.ek-m1 { background:var(--acc-hell); } .ek-m2 { background:#7dd3fc; }
.ek-svg { width:100%; max-width:360px; height:auto; display:block; margin:0 auto; }
.ek-l1, .ek-l2 { fill:none; stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.ek-l1 { stroke:var(--acc-hell); } .ek-l2 { stroke:#7dd3fc; }
.ek-p1 { fill:var(--acc-hell); } .ek-p2 { fill:#7dd3fc; }
.ek-ziel { stroke:var(--slate-400); stroke-dasharray:4 4; stroke-width:1; }
.ek-achse { stroke:var(--slate-600); stroke-width:1; }
.ek-zt { fill:var(--slate-400); font-size:12px; text-anchor:end; font-family:var(--font-mono); }
.ek-rt { fill:var(--slate-400); font-size:9px; text-anchor:middle; font-family:var(--font-mono); }
.ek-tab { margin:6px auto 0; border-collapse:collapse; font-size:11.5px; }
.ek-tab th, .ek-tab td { padding:2px 8px; text-align:center; color:var(--slate-300); }
.ek-tab th:first-child { text-align:left; color:var(--n-200); }
.ek-tab td { color:var(--n-100); font-weight:700; } .ek-tab td small { font-weight:400; color:var(--slate-400); }
.ek-x { margin:4px 0 0; font-size:11px; color:var(--slate-400); text-align:center; }
.lj-leiter { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin:4px 0; }
.lj-leiter i { width:16px; height:2px; background:var(--slate-600); }
.lj { padding:3px 9px; border-radius:12px; font-size:11.5px; border:1px solid var(--slate-600); color:var(--slate-400); }
.lj.an { border-color:var(--acc); color:var(--n-200); }
.lj.jetzt { background:var(--acc); color:#1a1208; font-weight:800; }
:root[data-theme="light"] .ek-l2 { stroke:#1a5fb4; } :root[data-theme="light"] .ek-p2 { fill:#1a5fb4; } :root[data-theme="light"] .ek-m2 { background:#1a5fb4; }
:root[data-theme="light"] .ek-tab td { color:#2a1f14; } :root[data-theme="light"] .ek-tab th:first-child { color:#2a1f14; }
#stage.hoch #spruch { top:44px; left:14px; max-width:300px; }
.ek-tab th, .ek-tab td { white-space:nowrap; }
.st-block h3 small { font-size:11px; }




.k-lage { height:118px; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:5px; padding:5px 7px; margin-bottom:6px;
  box-shadow:var(--sh-in); font-size:11.5px; line-height:1.35; color:var(--n-300); }
.k-lage b { color:var(--n-100); } .k-lage .lg-t { display:block; font-weight:800; color:var(--acc-hell); margin-bottom:2px; }
.k-lage .ja { color:#f2a59b; font-weight:700; } .k-lage .nein { color:#a9c6f5; font-weight:700; }
.lg-leer { color:var(--slate-400); }
.k-zugliste { font-size:11.5px; }
.li-karten { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; max-height:340px; overflow-y:auto; padding:4px; }
.li-karten .leer { color:var(--slate-300); font-size:13px; }

#spieltisch { position:relative; flex:1; min-height:0; border-radius:10px; overflow:hidden; }
#gegner { position:absolute; left:8px; right:8px; top:6px; height:62px; display:flex; align-items:center; gap:10px; }
#g-hand { flex:1; min-width:0; display:flex; align-items:center; height:56px; padding-left:4px; }
#g-hand .gk.mini { --kw:36px; --kh:50px; margin-right:-14px; }
.stempelzeile { display:flex; gap:6px; flex:none; }
.gstb { position:relative; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#f6e2b8;
  background:radial-gradient(circle at 35% 30%, #6e4a2c, #3a2312 75%); border:2px solid #24150a; box-shadow:0 3px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,230,190,.25); }
.gstb .sgzi { width:20px; height:20px; }
.gstb .pkte, .stb .pkte { position:absolute; bottom:2px; left:50%; transform:translateX(-50%); display:flex; gap:2px; }
.pkte u { width:4px; height:4px; border-radius:50%; background:#f2c75a; box-shadow:0 0 2px rgba(0,0,0,.6); }
.gstb.benutzt, .stb.benutzt { filter:saturate(.25) brightness(.62); }
.gstb.benutzt::after, .stb.benutzt::after { content:''; position:absolute; left:12%; right:12%; top:50%; height:2px; background:rgba(255,230,200,.7); transform:rotate(-24deg); }
.ablage { position:relative; flex:none; width:84px; height:52px; border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:linear-gradient(#e9d7a6,#cfb478); color:#3a2410; border:1px solid #6a4a1c; box-shadow:0 4px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.ablage .ab-ic { position:absolute; left:8px; top:9px; width:26px; height:18px; border-radius:2px; background:linear-gradient(135deg,#f6ecd0 50%,#e3cf9c 50%); border:1px solid #8a6a3a; }
.ablage .ab-ic::after { content:''; position:absolute; left:50%; top:50%; width:11px; height:11px; margin:-5px 0 0 -5px; border-radius:50%; background:#9c1f1b; box-shadow:0 1px 2px rgba(0,0,0,.5); }
.ablage b { margin-left:26px; font:900 18px var(--font-zier); line-height:1; }
.ablage small { margin-left:26px; font-size:11px; font-weight:700; }
.ablage.leer { opacity:.7; } .ablage.leer .ab-ic::after { background:#b8a37a; }

#reihe { position:absolute; left:8px; right:104px; top:74px; height:330px; display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:6px; }
.kf { position:relative; border-radius:9px; }
.kf .seite { position:absolute; left:0; right:0; height:118px; display:flex; align-items:center; gap:0; border-radius:8px; padding:3px 0; }
.kf .s-g { top:0; flex-direction:column-reverse; justify-content:flex-start; background:linear-gradient(to top, rgba(40,64,124,.18), transparent); }
.kf .s-i { top:212px; flex-direction:column; justify-content:flex-start; background:linear-gradient(to bottom, rgba(156,31,27,.18), transparent); }
.kf .s-g .gk + .gk { margin-bottom:-2px; } .kf .s-i .gk + .gk { margin-top:-2px; }
.kf .mitte { position:absolute; left:0; right:0; top:118px; height:94px; display:flex; align-items:center; justify-content:center; }
.kf.vorschau .s-i { box-shadow:inset 0 0 0 2px rgba(242,199,90,.75); }
.tf { position:relative; z-index:2; }
.tafel { position:relative; width:78px; height:86px; padding:0; border-radius:9px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  background:linear-gradient(#f1e2b8,#d7bd84); color:#2a1a0c; border:2px solid #5a3a14; box-shadow:0 5px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(90,58,20,.25); }
.tafel .wap { width:32px; height:37px; margin-top:4px; filter:drop-shadow(1px 2px 1px rgba(0,0,0,.35)); }
.tafel .tn { font:700 11px/1.1 var(--font-zier); letter-spacing:-.02em; margin-top:2px; max-width:76px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tafel .tw { position:absolute; right:3px; top:3px; width:22px; height:22px; border-radius:50%; background:var(--vf); color:var(--vt); font:900 13px/20px var(--font-zier);
  border:1px solid #2a1a0c; box-shadow:0 2px 4px rgba(0,0,0,.5); }
.tafel .vr { position:absolute; left:3px; top:3px; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#f2c75a; color:#3a2410; border:2px solid #2a1a0c; }
.tafel .vr.geg { background:#9cb9ea; }
.tafel .vr .sgzi { width:13px; height:13px; }
.tafel.gewaehlt { box-shadow:0 0 0 3px var(--acc-hell), 0 5px 10px rgba(0,0,0,.5); }
.tafel * { pointer-events:none; }
.zahl { position:absolute; right:2px; min-width:22px; padding:0 4px; border-radius:7px; text-align:center; font:900 13px/18px var(--font-ui); color:#fff; z-index:3; pointer-events:none;
  box-shadow:0 1px 3px rgba(0,0,0,.6); }
.zahl.o { top:2px; background:#28407c; } .zahl.u { bottom:2px; background:#8e1f1b; }
.zahl em { font-style:normal; color:#f7d98a; margin-left:2px; }
.sieg-w { position:absolute; left:-2px; top:50%; width:30px; height:30px; margin-top:-15px; z-index:4; transition:transform .7s var(--ease); }
.sieg-w.ich { transform:translateY(46px); } .sieg-w.geg { transform:translateY(-46px); } .sieg-w.frei { transform:translateY(-26px); opacity:.85; }
.sieg { display:block; width:30px; height:30px; filter:drop-shadow(1px 3px 2px rgba(0,0,0,.55)); }
.sieg svg { width:100%; height:100%; display:block; }
.sieg path:first-child { fill:#9b8f7a; }
.sieg.ich path:first-child { fill:#a3221d; } .sieg.geg path:first-child { fill:#2b4c93; }
.sieg-w * { pointer-events:none; }

.gk { --kw:70px; --kh:98px; position:relative; flex:none; width:var(--kw); height:var(--kh); border-radius:8px; overflow:hidden; color:#2a1a0c;
  background:radial-gradient(ellipse 85% 60% at 30% 22%, #fbf1d4 0%, #ead7a6 70%, #d9c28a 100%);
  border:2px solid rgba(60,36,12,.7); box-shadow:0 3px 7px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5); transition:transform .18s var(--ease), box-shadow .18s; }
.gk::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:.14;
  background:repeating-linear-gradient(8deg, rgba(120,80,30,.35) 0 1px, transparent 1px 4px); }
.gk .kband { position:absolute; left:0; right:0; top:0; height:20px; display:flex; align-items:center; gap:4px; padding:0 4px; background:var(--vf); color:var(--vt);
  font:800 11px/1 var(--font-ui); white-space:nowrap; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.3); }
.gk .kband b { font:900 14px/1 var(--font-zier); }
.gk .gb { position:absolute; left:50%; top:24px; margin-left:-22px; filter:drop-shadow(1px 2px 1px rgba(0,0,0,.35)); }
.gk .kn { position:absolute; left:1px; right:1px; bottom:4px; text-align:center; font:700 11px/1.1 var(--font-ui); letter-spacing:-.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gk .mark { position:absolute; right:3px; bottom:18px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#1d4f2e; color:#fff; font:800 11px/18px var(--font-ui); z-index:2; }
.gk.p2 .mark { background:#6b3a9c; }
.gk * { pointer-events:none; }
.gk.klein { --kw:84px; --kh:22px; border-radius:5px; border-width:1.5px; display:flex; align-items:center; gap:3px; padding:0 4px 0 3px;
  background:linear-gradient(90deg, var(--vf) 0 6px, #f4e6c0 6px, #e6d3a2 100%); }
.gk.klein .gb { position:static; margin:0 0 0 4px; flex:none; }
.gk.klein .kn { position:static; text-align:left; font-size:11px; flex:1; min-width:0; }
.gk.klein.neu { box-shadow:0 0 0 2px #fff, 0 0 10px rgba(255,255,255,.8); }
.gk.rueck { background:radial-gradient(circle at 50% 45%, #7a2a24 0%, #4e1612 70%); border-color:#24100a; display:flex; align-items:center; justify-content:center; }
.gk.rueck::before { content:''; position:absolute; inset:4px; border:1.5px solid rgba(242,199,90,.55); border-radius:5px; }
.gk.rueck .rk { color:#f2c75a; display:flex; } .gk.rueck .rk .sgzi { width:26px; height:26px; }
.gk.mini .rk .sgzi { width:16px; height:16px; }
.gk.unterwegs { visibility:hidden; }

#seite-r { position:absolute; right:8px; top:74px; width:90px; height:330px; display:flex; flex-direction:column; gap:8px; align-items:center; }
.stp { position:relative; height:52px; width:86px; flex:none; border-radius:8px; padding:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:rgba(20,10,4,.45); border:1px solid rgba(255,230,190,.2); color:var(--n-200); }
.stp .stp-k { position:absolute; left:7px; top:9px; width:24px; height:32px; border-radius:4px; border:1.5px solid #24100a; box-shadow:2px 2px 0 #3a1a12, 4px 4px 0 #24100a;
  background:radial-gradient(circle at 50% 45%, #7a2a24, #4e1612 70%); }
.stp.aus .stp-k { transform:rotate(-9deg); box-shadow:none; }
.stp.aus.offen .stp-k { box-shadow:0 0 0 2px #f2c75a; }
.stp b { margin-left:30px; font:900 18px var(--font-zier); line-height:1; }
.stp small { margin-left:30px; font-size:11px; color:var(--slate-300); }
.kamin { position:relative; width:86px; height:96px; flex:none; border-radius:10px 10px 6px 6px; padding:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  background:linear-gradient(#5a4a3e,#3a2e26); border:2px solid #20160f; box-shadow:0 5px 10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,230,200,.2); color:#f6e2b8; }
.kamin::before { content:''; position:absolute; left:12px; right:12px; top:12px; bottom:30px; border-radius:30px 30px 0 0; background:radial-gradient(ellipse at 50% 100%, #2a1208, #0c0604 70%); }
.kamin .feuer { position:absolute; left:22px; right:22px; bottom:32px; height:30px; display:flex; justify-content:center; align-items:flex-end; gap:2px; }
.kamin .feuer i { width:10px; height:12px; border-radius:50% 50% 30% 30%; background:radial-gradient(circle at 50% 70%, #ffe08a, #f08a24 55%, rgba(200,40,10,.0) 80%); opacity:.35; }
.kamin.brennt .feuer i { opacity:1; animation:flamme 1.2s ease-in-out infinite alternate; }
.kamin.brennt .feuer i:nth-child(2) { height:22px; animation-delay:.3s; } .kamin.brennt .feuer i:nth-child(3) { animation-delay:.6s; }
@keyframes flamme { from { transform:scaleY(.8) translateY(2px); } to { transform:scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .kamin.brennt .feuer i { animation:none; } }
.kamin b { position:relative; font:900 14px var(--font-zier); }
.kamin small { position:relative; font-size:11px; margin-bottom:3px; }
#m-brief { width:86px; }

#stempelreihe { position:absolute; left:8px; right:8px; top:410px; height:52px; display:flex; align-items:center; gap:7px; }
.stempelzeile.meine { gap:6px; }
.stb { position:relative; width:86px; height:52px; flex:none; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:0 3px 6px;
  background:linear-gradient(#7a5434,#4a2e18); color:#f6e2b8; border:2px solid #24150a; box-shadow:0 4px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,230,190,.3); }
.stb .sgzi { width:20px; height:20px; }
.stb .sn { font:700 11px/1.05 var(--font-ui); text-align:center; white-space:nowrap; }
.stb.wahl { box-shadow:0 0 0 2px rgba(242,199,90,.7), 0 4px 8px rgba(0,0,0,.5); }
.stb.sel { background:linear-gradient(#b0322a,#6e1612); box-shadow:0 0 0 3px #fff, 0 6px 12px rgba(0,0,0,.55); }
.stb * { pointer-events:none; }
#auftrag { flex:1; min-width:0; height:50px; display:flex; align-items:center; gap:8px; padding:0 10px; border-radius:8px; overflow:hidden;
  background:rgba(20,10,4,.42); font-size:14px; color:var(--n-200); }
#auftrag .wer { flex:none; font-weight:900; padding:2px 8px; border-radius:6px; }
#auftrag .wer.ich { background:#8e1f1b; color:#fff; } #auftrag .wer.gegner { background:#28407c; color:#fff; }
#auftrag .was { min-width:0; overflow:hidden; line-height:1.15; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#auftrag.blink { animation:blink .9s 2; }
@keyframes blink { 50% { background:rgba(242,199,90,.35); } }
.ib { flex:none; height:40px; padding:0 10px; border-radius:7px; background:rgba(20,10,4,.45); border:1px solid rgba(255,230,190,.22); color:var(--n-200); font-weight:700; font-size:12px; }
.ib:disabled { opacity:.45; }
#b-rat { color:var(--acc-hell); border-color:rgba(247,217,138,.5); }
#fragekasten { position:absolute; left:8px; right:8px; top:466px; height:44px; display:flex; align-items:center; gap:6px; overflow:hidden; }
#fragekasten .kb { height:40px; padding:0 12px; font-size:13px; font-weight:800; white-space:nowrap; }
#fragekasten .hinw { min-width:0; font-size:12.5px; line-height:1.25; color:var(--n-100); text-shadow:0 1px 2px rgba(0,0,0,.8); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#hand { position:absolute; left:8px; right:8px; top:512px; bottom:4px; display:flex; justify-content:center; align-items:center; gap:var(--gap,10px); }
#hand .gk { cursor:pointer; }
#hand .gk.wahl:hover { transform:translateY(-5px); }
#hand .gk.sel { transform:translateY(-10px); box-shadow:0 0 0 3px #fff, 0 10px 18px rgba(0,0,0,.5); }
#hand .gk.p2 { box-shadow:0 0 0 3px #c9a6f2, 0 10px 18px rgba(0,0,0,.5); }
#hand .leer { color:var(--slate-300); font-size:13px; }

#angebot { position:absolute; left:8px; right:8px; top:408px; bottom:4px; z-index:20; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  border-radius:12px; background:radial-gradient(ellipse at 50% 30%, rgba(70,44,22,.88), rgba(28,16,8,.92)); border:2px solid rgba(242,199,90,.55); box-shadow:0 8px 20px rgba(0,0,0,.55); }
.an-kopf { display:flex; gap:10px; align-items:baseline; color:var(--n-200); font-size:13px; }
.an-kopf b { font:800 15px var(--font-zier); color:var(--acc-hell); }
.an-tablett, .an-waage { display:flex; align-items:center; gap:12px; }
.an-tablett { padding:8px 16px; border-radius:50%/40%; background:radial-gradient(ellipse at 40% 35%, #f0f2f4, #b8bec6 60%, #8a9098); box-shadow:0 6px 12px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.7); }
.an-opt { position:relative; display:flex; gap:4px; align-items:center; border-radius:10px; padding:3px; transition:transform .15s; }
.an-opt.wahl { cursor:pointer; } .an-opt.wahl:hover { transform:translateY(-4px); }
.an-opt.sel { box-shadow:0 0 0 3px #fff, 0 0 14px rgba(255,255,255,.7); }
.an-opt.rat { box-shadow:0 0 0 3px var(--acc-hell); }
.an-opt.paar { padding:16px 6px 4px; background:linear-gradient(#6a4a2a,#3a2412); border:2px solid #20120a; }
.an-opt.paar.zu { background:linear-gradient(#4a3a2a,#2a1e12); }
.an-opt .an-l { position:absolute; left:0; right:0; top:1px; text-align:center; font:700 11px var(--font-ui); color:#f6e2b8; }
.an-opt * { pointer-events:none; }
.an-gegen { font:italic 700 13px var(--font-zier); color:var(--acc-hell); }
.an-fuss { display:flex; gap:8px; align-items:center; min-height:40px; }
.an-fuss .kb { height:40px; padding:0 14px; font-weight:800; }
.an-fuss .hinw { font-size:12.5px; color:var(--n-200); }

#meldungen { position:absolute; left:50%; top:4px; width:520px; margin-left:-260px; z-index:45; display:flex; flex-direction:column; gap:6px; pointer-events:none; }
.md { padding:8px 14px; border-radius:10px; background:rgba(34,20,10,.95); color:var(--n-100); font-size:13.5px; line-height:1.4; box-shadow:0 6px 16px rgba(0,0,0,.5);
  border:1px solid rgba(247,217,138,.45); animation:mdRein .25s var(--ease); transition:opacity .5s, transform .5s; }
.md b { color:var(--acc-hell); }
.md.gut { border-color:rgba(242,165,155,.8); } .md.weg { opacity:0; transform:translateY(-6px); }
.md .bw { display:block; margin-top:3px; font-size:12.5px; color:var(--n-300); }
@keyframes mdRein { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

#flug { position:absolute; inset:0; pointer-events:none; z-index:40; }
#flug .gk { position:absolute; left:0; top:0; transition:transform .55s var(--ease), opacity .55s; will-change:transform; transform-origin:50% 50%; }
.knall { position:absolute; z-index:42; width:100px; text-align:center; font:900 20px var(--font-zier); color:var(--acc-hell); text-shadow:0 2px 4px rgba(0,0,0,.7);
  animation:knall 1.1s ease-out forwards; pointer-events:none; }
@keyframes knall { from { transform:scale(.6); opacity:0; } 20% { opacity:1; transform:scale(1.15); } to { transform:translateY(-26px); opacity:0; } }

#rundentafel { position:absolute; inset:0; z-index:44; display:flex; align-items:center; justify-content:center; background:rgba(16,8,4,.55); border-radius:10px; }
.rt-box { width:430px; max-width:calc(100% - 20px); max-height:calc(100% - 16px); overflow-y:auto; padding:12px 16px; border-radius:14px; background:linear-gradient(to bottom,#3a2416,#1e120a); border:2px solid var(--acc);
  box-shadow:var(--sh-2xl); color:var(--n-200); font-size:13px; line-height:1.4; text-align:center; }
.rt-titel { display:block; font:800 19px var(--font-zier); color:var(--acc-hell); margin-bottom:4px; }
.rt-tab { margin:6px auto; border-collapse:collapse; font-size:12.5px; width:100%; }
.rt-tab th, .rt-tab td { padding:2px 6px; border-bottom:1px solid var(--hair); text-align:center; }
.rt-tab th:first-child { text-align:left; } .rt-tab th small { color:var(--acc); font-weight:400; }
.rt-tab tr.ich td:last-child { color:#f2a59b; font-weight:800; } .rt-tab tr.geg td:last-child { color:#a9c6f5; font-weight:800; }
.rt-tab tr.neu td:last-child { text-decoration:underline; }
.rt-tab tr.sum th, .rt-tab tr.sum td { font-weight:900; color:var(--acc-hell); border-bottom:0; }
.rt-box small { display:block; color:var(--slate-300); font-size:12px; margin:4px 0; }
.et-reihe { display:flex !important; flex-wrap:wrap; gap:4px; justify-content:center; margin-top:6px; }
.et-reihe i { font-style:normal; min-width:44px; padding:2px 5px; border-radius:7px; background:var(--slate-800); border:1px solid var(--slate-600); font-size:11.5px; color:var(--n-200); }
.et-reihe i b { margin-right:3px; color:var(--slate-300); }
.et-reihe i.ich { background:#8e1f1b; border-color:#b8322a; color:#fff; } .et-reihe i.geg { background:#28407c; border-color:#3a5aa8; color:#fff; }
.et-reihe i.ich b, .et-reihe i.geg b { color:#f6e2b8; }
.ki-stempel { width:84px; height:84px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:radial-gradient(circle at 35% 30%, #7a5434, #3a2312 75%); color:#f6e2b8; }
.ki-stempel .sgzi { width:40px; height:40px; }
.kinfo .ki-bild .tafel { transform:scale(.95); }

#stage { --tisch-kante:#4a2a14; --tisch-kante-hell:#8a6236; }
#stage #spieltisch.ort-tisch.dran-ich { box-shadow:inset 0 0 0 3px rgba(242,165,155,.8), 0 0 0 5px var(--tisch-kante), 0 0 0 6px rgba(0,0,0,.5), 0 20px 36px rgba(0,0,0,.55); }
#stage #spieltisch.ort-tisch.dran-gegner { box-shadow:inset 0 0 0 3px rgba(156,185,234,.65), 0 0 0 5px var(--tisch-kante), 0 0 0 6px rgba(0,0,0,.5), 0 20px 36px rgba(0,0,0,.55); }
:root[data-theme="light"] #stage #spieltisch.ort-tisch.dran-ich { box-shadow:inset 0 0 0 3px rgba(160,40,30,.7), 0 0 0 5px var(--tisch-kante-hell), 0 18px 32px rgba(60,40,20,.35); }
:root[data-theme="light"] #stage #spieltisch.ort-tisch.dran-gegner { box-shadow:inset 0 0 0 3px rgba(60,90,170,.6), 0 0 0 5px var(--tisch-kante-hell), 0 18px 32px rgba(60,40,20,.35); }

#kulisse { background-image:url('img/kerze-q.webp?v=1'); }
#stage.hoch #kulisse { background-image:url('img/kerze-h.webp?v=1'); }
html[data-ansicht="tag"] #kulisse { background-image:url('img/tag-q.webp?v=1'); }
html[data-ansicht="tag"] #stage.hoch #kulisse { background-image:url('img/tag-h.webp?v=1'); }
html[data-ansicht="dom"] #kulisse { background-image:url('img/dom-q.webp?v=1'); }
html[data-ansicht="dom"] #stage.hoch #kulisse { background-image:url('img/dom-h.webp?v=1'); }
#stage #spieltisch.ort-tisch { background:radial-gradient(ellipse 70% 30% at 20% 0%, rgba(255,196,110,.16), transparent 70%), linear-gradient(rgba(30,8,6,.28), rgba(20,6,4,.4)), url('img/kerze-tisch.webp?v=1') center / cover, #5a1a16; }
html[data-ansicht="dom"] #stage #spieltisch.ort-tisch { background:linear-gradient(rgba(10,14,30,.25), rgba(8,10,24,.38)), url('img/dom-tisch.webp?v=1') center / cover, #1e2a4a; }
:root[data-theme="light"] #stage #spieltisch.ort-tisch { background:radial-gradient(ellipse 60% 40% at 18% 8%, rgba(255,250,215,.25), transparent 70%), linear-gradient(rgba(30,50,30,.12), rgba(30,50,30,.18)), url('img/tag-tisch.webp?v=1') center / cover, #2f5a3a; }
#lobby { background:linear-gradient(rgba(20,10,6,.6),rgba(20,10,6,.82)), url('img/kerze-q.webp?v=1') center / cover no-repeat; }
html[data-ansicht="tag"] #lobby { background:linear-gradient(rgba(250,244,232,.6),rgba(240,230,212,.78)), url('img/tag-q.webp?v=1') center / cover no-repeat; }
html[data-ansicht="dom"] #lobby { background:linear-gradient(rgba(10,10,24,.6),rgba(10,10,24,.82)), url('img/dom-q.webp?v=1') center / cover no-repeat; }

html[data-ansicht="dom"] { --con-top:#1c2030; --con-mid:#161a28; --con-bot:#10131e; --panel-bg:#0f1220; --row-bg:#171b2a; --hair:#2c3248;
  --slate-800:#1d2232; --slate-700:#282f44; --slate-600:#3c4560; --acc:#d9b45a; --acc-hell:#f2d58a; }

:root[data-theme="light"] #auftrag, :root[data-theme="light"] .stp, :root[data-theme="light"] .ib { background:rgba(250,244,230,.82); color:#2a1a0c; border-color:rgba(90,60,30,.3); }
:root[data-theme="light"] .stp small { color:#4a3420; }
:root[data-theme="light"] #fragekasten .hinw { color:#fff; }
:root[data-theme="light"] #hand .leer { color:#fff; }
:root[data-theme="light"] .md { background:rgba(250,244,230,.97); color:#2a1a0c; border-color:rgba(138,74,20,.45); }
:root[data-theme="light"] .md b { color:#7a3e0c; } :root[data-theme="light"] .md .bw { color:#4a3420; }
:root[data-theme="light"] #b-rat { color:#7a3e0c; }
:root[data-theme="light"] .k-lage .ja { color:#9c1f1b; } :root[data-theme="light"] .k-lage .nein { color:#1f3f8a; }
:root[data-theme="light"] .rt-box { background:linear-gradient(to bottom,#f6efe3,#e6dcc8); color:#2a1a0c; }
:root[data-theme="light"] .rt-box small { color:#4a3420; }
:root[data-theme="light"] .rt-tab tr.ich td:last-child { color:#9c1f1b; } :root[data-theme="light"] .rt-tab tr.geg td:last-child { color:#1f3f8a; }
:root[data-theme="light"] #angebot { background:radial-gradient(ellipse at 50% 30%, rgba(250,240,220,.92), rgba(226,210,180,.94)); }
:root[data-theme="light"] .an-kopf, :root[data-theme="light"] .an-fuss .hinw { color:#2a1a0c; }
:root[data-theme="light"] .an-kopf b { color:#7a3e0c; }

#stage.hoch #tisch { height:680px; }
#stage.hoch #gegner { left:4px; right:4px; top:4px; height:48px; gap:6px; }
#stage.hoch #g-hand .gk.mini { --kw:28px; --kh:40px; margin-right:-12px; }
#stage.hoch .gstb { width:38px; height:38px; } #stage.hoch .gstb .sgzi { width:17px; height:17px; }
#stage.hoch #g-brief { width:62px; height:46px; } #stage.hoch .ablage b, #stage.hoch .ablage small { margin-left:22px; }
#stage.hoch .ablage .ab-ic { left:5px; width:20px; }
#stage.hoch #reihe { left:4px; right:4px; top:56px; height:296px; gap:3px; }
#stage.hoch .kf .seite { height:100px; }
#stage.hoch .kf .mitte { top:100px; height:96px; }
#stage.hoch .kf .s-i { top:196px; }
#stage.hoch .gk.klein { --kw:54px; --kh:20px; padding:0 2px; gap:1px; }
#stage.hoch .gk.klein .kn { font-size:11px; letter-spacing:-.02em; }
#stage.hoch .gk.klein .gb { width:15px; height:15px; margin-left:3px; }
#stage.hoch .tafel { width:56px; height:84px; }
#stage.hoch .tafel .tn { font-size:11px; max-width:54px; }
#stage.hoch .tafel .tw { right:2px; top:2px; width:20px; height:20px; font-size:12px; line-height:18px; }
#stage.hoch .sieg-w { left:-4px; width:26px; height:26px; margin-top:-13px; }
#stage.hoch .sieg { width:26px; height:26px; }
#stage.hoch .sieg-w.ich { transform:translateY(44px); } #stage.hoch .sieg-w.geg { transform:translateY(-44px); }
#stage.hoch .zahl { right:0; min-width:20px; font-size:12px; }
#stage.hoch #seite-r { left:4px; right:4px; top:356px; width:auto; height:48px; flex-direction:row; justify-content:space-between; gap:4px; }
#stage.hoch .stp { width:76px; height:48px; } #stage.hoch .stp b, #stage.hoch .stp small { margin-left:28px; }
#stage.hoch .kamin { width:100px; height:48px; border-radius:8px; justify-content:center; padding-left:36px; align-items:flex-start; }
#stage.hoch .kamin::before { left:6px; right:auto; width:30px; top:6px; bottom:6px; border-radius:14px 14px 0 0; }
#stage.hoch .kamin .feuer { left:8px; right:auto; width:26px; bottom:8px; height:20px; }
#stage.hoch #m-brief { width:96px; height:48px; }
#stage.hoch #stempelreihe { left:4px; right:4px; top:408px; height:54px; gap:4px; }
#stage.hoch .stb { width:58px; height:54px; padding-bottom:7px; } #stage.hoch .stb .sn { font-size:11px; white-space:normal; line-height:1; }
#stage.hoch #auftrag { height:50px; font-size:13px; padding:0 6px; } #stage.hoch #auftrag .was { white-space:normal; line-height:1.15; }
#stage.hoch #auftrag .wer { display:none; }
#stage.hoch .ib { min-width:48px; height:50px; padding:0 6px; } #stage.hoch #b-kurz { display:none; }
#stage.hoch #fragekasten { left:4px; right:4px; top:466px; height:52px; gap:4px; }
#stage.hoch #fragekasten .kb { height:48px; font-size:13px; padding:0 10px; }
#stage.hoch #fragekasten .hinw { font-size:13px; }
#stage.hoch #hand { left:4px; right:4px; top:522px; }
#stage.hoch #hand .gk { --kw:54px; --kh:78px; }
#stage.hoch #hand .gk .kband { height:18px; } #stage.hoch #hand .gk .kbn { display:none; }
#stage.hoch #hand .gk .gb { width:36px; height:36px; margin-left:-18px; top:21px; }
#stage.hoch #hand .gk .kn { font-size:11px; letter-spacing:-.03em; }
#stage.hoch #angebot { left:4px; right:4px; top:404px; }
#stage.hoch .an-tablett { padding:6px 8px; gap:6px; } #stage.hoch .an-waage { gap:4px; }
#stage.hoch #angebot .gk { --kw:58px; --kh:82px; }
#stage.hoch #angebot .gk .gb { width:36px; height:36px; margin-left:-18px; } #stage.hoch #angebot .gk .kbn { display:none; }
#stage.hoch .an-kopf { flex-direction:column; align-items:center; gap:0; text-align:center; font-size:12.5px; }
#stage.hoch #meldungen { width:420px; margin-left:-210px; top:4px; }
#stage.hoch .k-lage { height:84px; font-size:12px; }
#stage.hoch #konsole { padding:6px 8px; }
#stage.hoch #k-stand-l, #stage.hoch #block { display:none; }
#stage.hoch .k-zugliste { min-height:40px; }
#stage.hoch .k-knoepfe { grid-template-columns:repeat(3, 1fr); }
#stage.hoch .k-knoepfe .kb, #stage.hoch .kb-hw { min-height:48px; }
#stage.hoch .kb-ic { min-width:48px; height:48px; }
#stage.hoch .vs-liste button, #stage.hoch .vs-farbe button, #stage.hoch .vs-los, #stage.hoch .vs-uebern { min-height:48px; }
#stage.hoch .lo-tabs button, #stage.hoch .lo-kopf .kb, #stage.hoch .lo-kopf .kb-ic { min-height:48px; min-width:48px; }
#stage.hoch #chatin, #stage.hoch #pmin, #stage.hoch .k-chatin { min-height:48px; font-size:16px; }
#stage.hoch .lo-kachel { min-height:56px; }
#stage.hoch #vorspann .vs-box { width:420px; max-height:930px; overflow-y:auto; }
#stage.hoch #einf .ef-box { width:420px; }
#vorspann, #einf { border-radius:10px; }
@media (pointer: coarse) { .ib { min-height:44px; } .stp { min-height:44px; } }

#stage.quer-handy #gegner { top:2px; height:36px; }
#stage.quer-handy #g-hand .gk.mini { --kw:24px; --kh:34px; margin-right:-10px; }
#stage.quer-handy .gstb { width:34px; height:34px; } #stage.quer-handy .gstb .sgzi { width:15px; height:15px; }
#stage.quer-handy #g-brief { width:70px; height:34px; } #stage.quer-handy .ablage .ab-ic { top:8px; height:14px; width:20px; left:5px; }
#stage.quer-handy #g-brief small { display:none; }
#stage.quer-handy #reihe { top:40px; height:200px; right:98px; gap:4px; }
#stage.quer-handy .kf .seite { height:62px; }
#stage.quer-handy .kf .mitte { top:62px; height:76px; }
#stage.quer-handy .kf .s-i { top:138px; }
#stage.quer-handy .gk.klein { --kw:90px; --kh:18px; }
#stage.quer-handy .kf .s-g .gk + .gk { margin-bottom:-7px; } #stage.quer-handy .kf .s-i .gk + .gk { margin-top:-7px; }
#stage.quer-handy .gk.klein .gb { width:14px; height:14px; }
#stage.quer-handy .tafel { width:84px; height:70px; } #stage.quer-handy .tafel .wap { width:26px; height:30px; margin-top:3px; }
#stage.quer-handy .sieg-w.ich { transform:translateY(36px); } #stage.quer-handy .sieg-w.geg { transform:translateY(-36px); }
#stage.quer-handy #seite-r { top:40px; height:200px; gap:4px; width:86px; }
#stage.quer-handy .stp { height:46px; } #stage.quer-handy .kamin { height:52px; } #stage.quer-handy .kamin::before { top:4px; bottom:22px; } #stage.quer-handy .kamin .feuer { bottom:22px; height:20px; }
#stage.quer-handy #m-brief { height:46px; }
#stage.quer-handy #hand { top:244px; bottom:2px; left:6px; right:424px; gap:5px; }
#stage.quer-handy #hand .gk { --kw:56px; --kh:84px; }
#stage.quer-handy #hand .gk .kbn { display:none; }
#stage.quer-handy #hand .gk .gb { width:38px; height:38px; margin-left:-19px; top:22px; }
#stage.quer-handy #stempelreihe { left:auto; right:6px; width:412px; top:244px; height:56px; gap:4px; }
#stage.quer-handy .stb { width:62px; height:54px; } #stage.quer-handy .stb .sn { font-size:11px; white-space:normal; line-height:1; }
#stage.quer-handy #auftrag { height:52px; padding:0 6px; font-size:12.5px; } #stage.quer-handy #auftrag .wer { display:none; }
#stage.quer-handy #auftrag .was { white-space:normal; line-height:1.15; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
#stage.quer-handy .ib { height:52px; min-width:50px; } #stage.quer-handy #b-kurz { display:none; }
#stage.quer-handy #fragekasten { left:auto; right:6px; width:412px; top:304px; height:56px; gap:5px; flex-wrap:wrap; align-content:center; }
#stage.quer-handy #fragekasten .kb { height:50px; padding:0 10px; }
#stage.quer-handy #angebot { top:242px; bottom:2px; flex-direction:row; flex-wrap:wrap; gap:4px 10px; }
#stage.quer-handy #angebot .gk { --kw:52px; --kh:74px; } #stage.quer-handy #angebot .gk .kbn { display:none; }
#stage.quer-handy #angebot .gk .gb { width:32px; height:32px; margin-left:-16px; top:20px; }
#stage.quer-handy .an-kopf { width:100%; justify-content:center; }
#stage.quer-handy .an-tablett { padding:4px 10px; }
#stage.quer-handy #meldungen { top:2px; }

.stb .sn i, .lzahl i { font-style:normal; }
.stb .sn .kurz { display:none; }
#stage.hoch .stb .sn .lang, #stage.quer-handy .stb .sn .lang { display:none; }
#stage.hoch .stb .sn .kurz, #stage.quer-handy .stb .sn .kurz { display:inline; }
#stage.hoch .lzahl .lang { display:none; }
#stage.hoch .sieg-w.frei { opacity:.45; }
#stage.hoch .lage-l, #stage.hoch #lage { display:none; }
.k-lage { flex:none; }
#stage.quer-handy .md { font-size:12.5px; padding:5px 10px; } #stage.quer-handy .md .bw { display:none; }
#stage.quer-handy #meldungen { width:560px; margin-left:-280px; }
.rt-tab th { white-space:nowrap; }
.tafel .tn i { font-style:normal; } .tafel .tn .kurz { display:none; }
#stage.hoch .tafel .tn .lang { display:none; } #stage.hoch .tafel .tn .kurz { display:inline; }
#stage.hoch .gk.klein { justify-content:center; } #stage.hoch .gk.klein .kn { display:none; } #stage.hoch .gk.klein .gb { width:17px; height:17px; margin:0; }
.kamin b, .kamin small { z-index:2; text-shadow:0 1px 3px #000, 0 0 6px #000; }
.gk .kbn { font-style:normal; min-width:0; overflow:hidden; white-space:nowrap; }
:root[data-theme="light"] .lo-kopf-r .kb { background:#efe6d6 !important; color:#2a1f14 !important; }
#stage.hoch .tafel .tn { font-family:var(--font-ui); font-size:11px; letter-spacing:-.03em; }
#stage.quer-handy .stp { height:48px; } #stage.quer-handy #m-brief { height:48px; } #stage.quer-handy .kamin { height:48px; }
#stage.quer-handy #seite-r { gap:2px; }
#fragekasten .kb-gruen { min-width:178px; text-align:center; }
.gk .kn i { font-style:normal; } .gk .kn .kurz { display:none; }
#stage.hoch #hand .gk .kn .lang, #stage.quer-handy #hand .gk .kn .lang, #stage.hoch #angebot .gk .kn .lang, #stage.quer-handy #angebot .gk .kn .lang { display:none; }
#stage.hoch #hand .gk .kn .kurz, #stage.quer-handy #hand .gk .kn .kurz, #stage.hoch #angebot .gk .kn .kurz, #stage.quer-handy #angebot .gk .kn .kurz { display:inline; }
.gk { background-color:#ead7a6; } .gk.klein { background-color:#f0e1b8; } .gk.rueck { background-color:#5e1c16; }
#stage.quer-handy #m-brief small { display:none; } #stage.quer-handy #m-brief b { margin-left:24px; }
#stage.hoch #auftrag, #stage.quer-handy #auftrag { font-size:15px; }
#stage.hoch #auftrag { height:54px; } #stage.hoch #auftrag .was { -webkit-line-clamp:3; line-height:1.1; }
#stage.quer-handy #auftrag .was { line-height:1.1; }
.gk .kn { line-height:1.3; }
.gk .kband { gap:3px; padding:0 3px; } .gk .kbn { font:700 11px var(--font-ui); letter-spacing:-.04em; }
.gk .kn { line-height:1.4; } .tafel .tn { line-height:1.3; }
@media (pointer: coarse) { .lo-kopf-r .kb, .lo-kopf-r .kb-ic { min-height:44px; min-width:44px; } }

.an-opt { flex-wrap:wrap; justify-content:center; }
.an-tablett .an-opt { flex-direction:column; }
.an-folge { flex-basis:100%; display:flex; flex-wrap:wrap; gap:2px; justify-content:center; margin-top:2px; }
.an-folge i { font:700 11px/1.2 var(--font-ui); font-style:normal; padding:1px 4px; border-radius:5px; background:rgba(20,10,4,.75); color:#f6e2b8; white-space:nowrap; }
.an-folge i.vorn { background:#8e1f1b; color:#fff; } .an-folge i.hinten { background:#28407c; color:#fff; }
.an-tablett .an-folge i { background:rgba(40,30,20,.85); }
#hand .gk .stand { position:absolute; right:2px; top:22px; min-width:22px; padding:0 3px; border-radius:6px; background:rgba(40,26,12,.82); color:#fff; font:800 11px/16px var(--font-ui); text-align:center; z-index:2; }
#hand .gk .stand.ich { background:#8e1f1b; } #hand .gk .stand.geg { background:#28407c; }
#hand .gk.gruppe { margin-left:8px; }
.taste { display:none; }
@media (pointer: fine) {
  #stage:not(.hoch):not(.quer-handy) .stb .taste { display:block; position:absolute; left:4px; top:2px; font:700 11px var(--font-ui); text-decoration:none; opacity:.8; }
  #stage:not(.hoch):not(.quer-handy) #hand .gk .taste { display:block; position:absolute; left:3px; top:22px; font:800 11px/16px var(--font-ui); text-decoration:none; padding:0 4px; border-radius:5px; background:rgba(255,248,230,.85); color:#3a2410; z-index:2; }
}
.gstb.frisch { animation:frisch 1.6s ease-out 2; }
@keyframes frisch { 0% { box-shadow:0 0 0 0 rgba(242,199,90,.9); } 100% { box-shadow:0 0 0 12px rgba(242,199,90,0); } }
@media (prefers-reduced-motion: reduce) { .gstb.frisch { animation:none; box-shadow:0 0 0 3px rgba(242,199,90,.8); } }
.ablage .ab-ic .gb { position:absolute; left:50%; top:50%; margin:-7px 0 0 -7px; z-index:2; }
.ablage .ab-ic:has(.gb)::after { opacity:0; }
.sgp { display:inline-flex; gap:2px; margin-right:6px; }
.sgp i { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.18); box-shadow:inset 0 0 0 1px var(--vf); }
.sgp i.an { background:var(--vf); box-shadow:0 0 0 1px rgba(255,255,255,.6); }
#stage.hoch .sgp { display:none; }
table.zaehl { width:100%; border-collapse:collapse; font-size:12.5px; color:var(--n-200); }
table.zaehl th, table.zaehl td { padding:3px 6px; border-bottom:1px solid var(--hair); text-align:center; }
table.zaehl th:first-child { text-align:left; white-space:nowrap; } table.zaehl .gb { vertical-align:-4px; }
table.zaehl td b { color:var(--acc-hell); }
.tafel .tw { position:static; display:block; width:auto; height:auto; min-width:22px; margin-top:1px; padding:0 6px; border-radius:8px; font:900 12px/16px var(--font-zier); border:1px solid #2a1a0c; box-shadow:0 1px 2px rgba(0,0,0,.4); }
#stage.hoch .tafel .tw { width:auto; height:auto; font-size:12px; line-height:15px; }
#stage.quer-handy .tafel .tw { line-height:14px; font-size:12px; }
.tafel .vr { left:auto; right:auto; left:3px; top:auto; bottom:3px; }
#hand .gk .stand { background:#3a2614; }
#stage.quer-handy #seite-r { top:38px; height:206px; gap:2px; }
#stage.quer-handy :is(.stp, #m-brief, .kamin) { height:50px; }
#stage.quer-handy :is(.tafel .tn, .stp small, .kamin small, .stb .sn, #hand .gk .kn, #angebot .gk .kn, #hand .gk .stand) { font-size:12px; }
#stage.quer-handy .stb { width:58px; }
#stage.quer-handy .tafel .tn { max-width:82px; letter-spacing:-.03em; }
#stage.quer-handy #auftrag .was { font-size:13px; line-height:1.1; }

#stage.hoch #seite-r { height:52px; }
#stage.hoch :is(.stp, .kamin, #m-brief) { height:52px; }
#stage.hoch #stempelreihe { top:412px; }
#stage.hoch #angebot { top:408px; }
#stage.hoch .ib { min-width:52px; height:52px; }
#stage.hoch #fragekasten { top:470px; height:56px; }
#stage.hoch #fragekasten .kb { height:52px; }
#stage.hoch #hand { top:530px; }
#stage.hoch :is(.tafel .tn, .stp small, .kamin small, #g-brief small, #m-brief small, .stb .sn, #hand .gk .kn, #angebot .gk .kn, #hand .gk .stand, .gk .mark) { font-size:12px; }
#stage.hoch #auftrag { font-size:12.5px; }
#stage.hoch #auftrag .was { -webkit-line-clamp:4; line-height:1.04; }

.ecke-x { position:sticky; top:0; float:right; z-index:3; margin:-8px -8px 4px 8px; min-width:36px; min-height:36px; background:rgba(20,12,6,.35); }
:root[data-theme="light"] .ecke-x { background:rgba(255,248,236,.6); }
#stage.hoch .ecke-x { min-width:48px; min-height:48px; }
@media (pointer: coarse) { .ecke-x { min-width:48px; min-height:48px; } }
#ende .karte, #pop .karte { position:relative; }
.ef-box > .ecke-x, .rt-box > .ecke-x { align-self:flex-end; }
#blaettern [data-b="zur"] .sgzi { transform:scaleX(-1); }
.kf { transition:box-shadow .25s; }
.kf.wertet { box-shadow:0 0 0 3px rgba(242,199,90,.85), 0 0 22px rgba(242,199,90,.45); background:rgba(242,199,90,.10); }
.kf.wertet .zahl { transform:scale(1.3); transition:transform .2s; }
.kf .zahl { transition:transform .2s; }
@media (prefers-reduced-motion: reduce) { .kf.wertet .zahl { transform:none; } }
.rt-box small.rt-schluss { font-size:14px; font-weight:700; color:var(--acc-hell); margin-top:8px; }
:root[data-theme="light"] .rt-box small.rt-schluss { color:#7a3a10; }

#stage.hoch #hand { --gap:4px; } #stage.hoch #hand .gk.gruppe { margin-left:3px; }
#stage.quer-handy #hand .gk.gruppe { margin-left:3px; }
.vsch { position:absolute; left:50%; transform:translateX(-50%); z-index:5; padding:0 5px; border-radius:7px; font:900 12px/16px var(--font-ui); white-space:nowrap;
  background:#f2c75a; color:#3a2410; border:1px solid #6b4a1c; box-shadow:0 1px 3px rgba(0,0,0,.5); pointer-events:none; }
.vsch.u { bottom:-7px; } .vsch.o { top:-7px; background:#c9d7f2; color:#1c2c52; border-color:#28407c; }
.vsch[hidden] { display:none; }
#stage.hoch .vsch { font-size:11px; line-height:14px; padding:0 3px; }
.g-bild { flex:none; width:56px; height:56px; border-radius:50%; filter:drop-shadow(0 3px 5px rgba(0,0,0,.55)); }
.g-bild svg { width:100%; height:100%; display:block; }
#stage.hoch .g-bild { width:44px; height:44px; }
#stage.quer-handy .g-bild { width:34px; height:34px; }
#spruch { top:70px; left:10px; }
#stage.hoch #spruch { top:54px; left:6px; }
#stage.quer-handy #spruch { top:40px; left:4px; }
.an-opt.gewaehlt { box-shadow:0 0 0 3px #f2c75a, 0 0 18px rgba(242,199,90,.7); transform:translateY(-4px); }
.an-opt.auf .gk { animation:aufklappen .55s var(--ease); }
@keyframes aufklappen { 0% { transform:rotateY(90deg) scale(.9); } 100% { transform:none; } }
@media (prefers-reduced-motion: reduce) { .an-opt.auf .gk { animation:none; } .an-opt.gewaehlt { transform:none; } }
#hand .gk.tausch { box-shadow:0 0 0 3px #f2c75a, 0 0 14px rgba(242,199,90,.8), 0 10px 18px rgba(0,0,0,.5); animation:tauschPuls 1s ease-in-out infinite alternate; }
@keyframes tauschPuls { to { box-shadow:0 0 0 3px #fff3c4, 0 0 22px rgba(242,199,90,.95), 0 10px 18px rgba(0,0,0,.5); } }
@media (prefers-reduced-motion: reduce) { #hand .gk.tausch { animation:none; } }
#stage.hoch #fragekasten .tausch-hinw, #stage.quer-handy #fragekasten .tausch-hinw { display:none; }

#stage { font-variant-numeric:tabular-nums lining-nums; }
.ablage b, .stp b, .kamin b { font-family:var(--font-ui); }
.rt-rueck { text-align:left; margin:8px 0 4px; padding:6px 10px; border-radius:9px; background:rgba(242,199,90,.10); border:1px solid rgba(242,199,90,.35); font-size:12.5px; line-height:1.35; }
.rt-rueck > b { display:block; font:800 13px var(--font-zier); color:var(--acc-hell); margin-bottom:2px; }
.rt-rueck span { display:block; margin:2px 0; }
:root[data-theme="light"] .rt-rueck { background:rgba(160,110,30,.10); border-color:rgba(122,58,16,.35); }
:root[data-theme="light"] .rt-rueck > b { color:#7a3a10; }
