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

  --con-top:#4a5f78; --con-mid:#33465b; --con-bot:#1e2c3b;
  --con-edge:rgba(100,116,139,.5);
  --led-bg:#05070a; --led-frame:#1e293b;
  --panel-bg:#070b12; --row-bg:#0b1322; --hair:#1e293b;
  --slate-800:#1e293b; --slate-700:#334155;
  --slate-600:#475569; --slate-500:#64748b; --slate-400:#94a3b8; --slate-300:#cbd5e1;
  --n-100:#f5f5f5; --n-200:#e5e5e5; --n-300:#d4d4d4; --n-400:#a3a3a3; --n-500:#737373;

  --acc:#fbbf24; --acc-hell:#fcd34d; --ok:#34d399; --info:#22d3ee;
  --gefahr:#f43f5e; --gefahr-hell:#fb7185;

  --wand-1:#2a2d33; --wand-2:#17191d; --wand-3:#0c0d10; --wand-kante:#30343a; --wand-streifen:#c8352b;
  --teller-1:#e4e8eb; --teller-2:#9aa1a8; --teller-3:#5b626a;
  --bank-1:#c9a06a; --bank-2:#a57a46; --bank-3:#8a6235; --bank-kante:#5e3e1d;
  --platte-1:#d6dbdf; --platte-2:#a3abb2; --platte-3:#878f96; --platte-schrift:#1d2024;

  --messing-1:#fff4c2; --messing-2:#e2b84a; --messing-3:#7d5810; --gelb-hell:#f0c419;
  --rot-1:#ff9a86; --rot-2:#c8352b; --rot-3:#5e100b; --rot-rand:#640a08;

  --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, #fbbf24) var(--row-bg, #0b1322); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:var(--row-bg, #0b1322); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:var(--acc, #fbbf24); border-radius:5px; border:2px solid transparent; background-clip:padding-box; }

* { box-sizing: border-box; }
html, body { margin:0; height:100%; background:#05070c; 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; }

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

#partie { position:absolute; inset:0; display:flex; }
#brettspalte { width:552px; flex:none; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; padding:10px 20px;
  background:radial-gradient(120% 90% at 50% 0%, #2a160d 0%, #0d0705 70%); }

.leiste { width:520px; height:27px; flex:none; display:flex; align-items:center; gap:8px;
  padding:0 9px; background:linear-gradient(to bottom,#1b293b,#111a27);
  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(251,191,36,.7); box-shadow:0 0 8px rgba(251,191,36,.25), var(--sh-in); }
.lfarbe { width:13px; height:13px; border-radius:9999px; flex:none; border:1px solid #000;
  background:#555; }
.lfarbe.g { background:radial-gradient(circle at 35% 30%, var(--messing-1), var(--messing-2) 45%, var(--messing-3)); border-color:#5c400a; }
.lfarbe.bild { width:23px; height:23px; background-size:cover !important; background-position:center !important; border-width:2px; }
.lfarbe.bild.g { border-color:var(--messing-2); } .lfarbe.bild.r { border-color:var(--rot-2); }
.vs-gesicht { display:block; width:30px; height:30px; margin:0 auto 2px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,236,200,.5); }
#stage.hoch .vs-gesicht { width:40px; height:40px; }
.lfarbe.r { background:radial-gradient(circle at 35% 30%, var(--rot-1), var(--rot-2) 45%, var(--rot-3)); border-color:var(--rot-rand); }
.lsonder { display:inline-flex; align-items:center; gap:3px; color:var(--slate-300); font-size:11px; }
.lsonder .sgzi { width:14px; height:14px; }
.lsonder.leer { opacity:.35; }
.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; }
.lzahl .gross { font-size:15px; font-weight:900; color:var(--n-100); letter-spacing:.02em; }
.lzahl .klein { font-size:11px; color:var(--slate-500); letter-spacing:.06em; }
.lzahl .vorn { font-size:11px; color:var(--acc-hell); font-weight:700; }
.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:var(--n-500); }

#brettrahmen { position:relative; width:520px; height:520px; flex:none; }
#werkbank { position:absolute; inset:0; }
#stellwand { position:absolute; left:34px; right:34px; top:2px; height:318px; border-radius:4px;
  background:linear-gradient(170deg, var(--wand-1) 0%, var(--wand-2) 60%, var(--wand-3) 100%);
  box-shadow:0 14px 30px rgba(0,0,0,.55), inset 0 0 0 5px var(--wand-kante), inset 0 0 50px rgba(0,0,0,.55); }
#stellwand::after { content:''; position:absolute; left:5px; right:5px; bottom:5px; height:4px; background:var(--wand-streifen); }
#teller { position:absolute; left:120px; right:120px; top:280px; height:46px; border-radius:50%;
  background:radial-gradient(ellipse at 50% 32%, var(--teller-1), var(--teller-2) 55%, var(--teller-3));
  box-shadow:0 12px 18px rgba(0,0,0,.5), inset 0 -5px 9px rgba(0,0,0,.3); }
#wuerfel { position:absolute; left:0; top:0; width:520px; height:336px; z-index:2; touch-action:none; cursor:grab; display:block; }
#wuerfel:active { cursor:grabbing; }
.wf-knopf { position:absolute; right:40px; top:8px; z-index:3; }
#ebenen { position:absolute; left:0; right:0; bottom:10px; height:170px; z-index:4; padding:11px 10px 10px; border-radius:7px;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:9px;
  background:repeating-linear-gradient(178deg, rgba(0,0,0,.05) 0 3px, transparent 3px 11px), linear-gradient(180deg, var(--bank-1), var(--bank-2) 55%, var(--bank-3));
  box-shadow:inset 0 2px 0 rgba(255,232,190,.4), 0 16px 26px rgba(0,0,0,.55); }
#ebenen::after { content:''; position:absolute; left:0; right:0; bottom:-10px; height:11px; border-radius:0 0 7px 7px;
  background:linear-gradient(180deg, var(--bank-kante), #24160a); }
.platte { position:relative; padding:5px 6px 6px; border-radius:5px; transform-origin:50% 50%; transition:transform .22s var(--ease), box-shadow .22s;
  background:linear-gradient(160deg, var(--platte-1), var(--platte-2) 60%, var(--platte-3));
  box-shadow:0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); }
.pl-titel { display:flex; justify-content:space-between; align-items:baseline; margin:0 1px 4px; font:11px var(--font-ui); color:var(--platte-schrift); letter-spacing:.06em; text-transform:uppercase; }
.pl-titel b { font-weight:800; }
.pl-titel em { font-style:normal; opacity:.8; }
.pl-raster { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; }
.loch { position:relative; aspect-ratio:1; border-radius:50%; cursor:pointer;
  background:radial-gradient(circle at 50% 62%, #3a3f44, #1d2125); box-shadow:inset 0 2px 3px rgba(0,0,0,.75), 0 1px 0 rgba(255,255,255,.55); }
.loch.kugg, .loch.kugr, .loch.kugx { box-shadow:0 2px 3px rgba(0,0,0,.55); }
.loch.kugg { background:radial-gradient(circle at 36% 30%, var(--messing-1), var(--messing-2) 45%, var(--messing-3)); }
.loch.kugr { background:radial-gradient(circle at 36% 30%, var(--rot-1), var(--rot-2) 45%, var(--rot-3)); }
.loch.kugx { background:radial-gradient(circle at 36% 30%, #fff, rgba(190,225,235,.7) 45%, rgba(90,140,160,.8)); box-shadow:0 2px 3px rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.8); }
.loch.geist { opacity:.5; }
.loch.zu { opacity:.45; cursor:not-allowed; box-shadow:inset 0 2px 3px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.35); outline:1px dashed rgba(0,0,0,.45); outline-offset:-3px; }
.loch.an { box-shadow:inset 0 2px 3px rgba(0,0,0,.6), 0 0 0 2px var(--gelb-hell); }
.loch.letzt::after, .loch.sieg::after, .loch.tipp::after, .loch.droht::after, .loch.chance::after {
  content:''; position:absolute; inset:-3px; border-radius:50%; pointer-events:none; }
.loch.letzt::after { box-shadow:0 0 0 2px rgba(255,255,255,.95); }
.loch.sieg::after { box-shadow:0 0 0 3px #fde68a, 0 0 12px rgba(253,230,138,.95); animation:siegpuls .8s ease-in-out infinite; }
@keyframes siegpuls { 50% { box-shadow:0 0 0 4px #fbbf24, 0 0 18px rgba(251,191,36,1); } }
.loch.tipp::after { box-shadow:0 0 0 3px #fde68a, 0 0 10px rgba(251,191,36,.85); animation:tipppuls 1.4s ease-in-out infinite; }
@keyframes tipppuls { 50% { box-shadow:0 0 0 3px #fbbf24, 0 0 16px rgba(251,191,36,1); } }
.loch.droht::after { box-shadow:inset 0 0 0 3px rgba(244,63,94,.95), 0 0 8px rgba(244,63,94,.7); }
.loch.chance::after { box-shadow:inset 0 0 0 3px rgba(52,211,153,.95), 0 0 8px rgba(52,211,153,.7); }
.platte.gross { z-index:30; box-shadow:0 26px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.7); }
#lupe-grund { position:absolute; inset:-10px; z-index:5; background:rgba(0,0,0,.5); border-radius:10px; }
#ebenen:has(.platte.gross) { z-index:6; }
@media (prefers-reduced-motion: reduce) { .platte { transition:none; } .loch.sieg::after, .loch.tipp::after { animation:none; } }

.k-sonder { display:grid; grid-template-columns:1fr; gap:4px; margin:4px 0 0; }
.k-sonder[hidden] { display:none; }
.k-sonder .kb { display:flex; align-items:center; justify-content:center; gap:5px; }
.k-sonder .kb .sgzi { width:15px; height:15px; }
.k-sonder .kb.an { background:linear-gradient(to bottom,#155e75,#083344); border-color:#67e8f9; color:#ecfeff; }

#vorspann { position:absolute; inset:0; z-index:10; display:flex; align-items:center;
  justify-content:center; background:rgba(5,8,14,.86); backdrop-filter:blur(3px); border-radius:8px; }
.vs-box { width:452px; background:linear-gradient(to bottom,#1b293b,#0e1622); border:2px solid var(--acc);
  border-radius:12px; padding:12px 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:.1em; text-transform:uppercase; color:var(--slate-300); text-align:left;
  margin:0 0 3px 2px; }
.vs-liste { display:grid; gap:5px; margin-bottom:7px; }
.vs-liste.fuenf { grid-template-columns:repeat(5,minmax(0,1fr)); }
.vs-liste.drei { grid-template-columns:repeat(3,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 button { min-width:0; padding:6px 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:default; }
.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:11px; color:var(--slate-400); line-height:1.4; min-height:28px; }
.vs-info b { color:var(--acc-hell); }

#hinweisband { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:8;
  padding:10px 18px; border-radius:10px; background:rgba(5,8,14,.88); border:2px solid var(--acc);
  font:900 15px var(--font-mono); letter-spacing:.06em; color:var(--acc-hell); pointer-events:none;
  box-shadow:var(--sh-2xl); animation:auf 180ms var(--ease); white-space:nowrap; }

#konsole { width:248px; flex:none; display:flex; flex-direction:column; padding:8px;
  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(251,191,36,.35); }
.k-modus { display:block; font-family:var(--font-mono); font-size:11px; color:var(--slate-300);
  letter-spacing:.05em; margin-top:1px; }
.k-regel { display:block; font-family:var(--font-mono); font-size:11px; color:var(--acc);
  letter-spacing:.03em; 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:11px; font-weight:700; color:var(--acc);
  text-align:center; box-shadow:var(--sh-in); margin-bottom:6px; min-height:28px;
  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:.09em;
  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-family:var(--font-mono); font-size:11px; scrollbar-width:thin;
  scrollbar-color:var(--acc, #fbbf24) var(--panel-bg); }
.k-zugliste::-webkit-scrollbar { width:6px; }
.k-zugliste::-webkit-scrollbar-track { background:var(--panel-bg); }
.k-zugliste::-webkit-scrollbar-thumb { background:var(--acc, #fbbf24); border-radius:3px; }
.zl-leer { color:var(--n-500); font-size:11px; padding:6px 2px; text-align:center; }
.zl { display:grid; grid-template-columns:22px 1fr 1fr; gap:2px; padding:1px 2px; border-radius:3px; }
.zl:nth-child(odd) { background:var(--row-bg); }
.zl .nr { color:var(--slate-500); text-align:right; padding-right:3px; font-size:11px; }
.zl .w, .zl .s { padding:0 3px; border-radius:3px; font-size:10px; }
.zl .w { color:var(--n-100); }
.zl .s { color:var(--slate-300); }
.zl .jetzt { background:rgba(251,191,36,.22); color:var(--acc-hell); font-weight:700; }

.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); scrollbar-width:thin; }
#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:11px var(--font-mono); color:var(--n-100); outline:none; }
.k-chatin:focus { border-color:var(--info); }

.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(148,163,184,.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); }
.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,#78350f,#451a03); 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-rot:hover { background:linear-gradient(to bottom,#be123c,#7f1d1d); }

.k-leiste { display:flex; justify-content:space-between; align-items:center; gap:4px;
  padding-top:5px; border-top:1px solid rgba(100,116,139,.4); }
.kb-hw { padding:4px 8px; background:linear-gradient(to bottom,var(--slate-600),var(--slate-800));
  border:1px solid rgba(148,163,184,.5); border-radius:4px; font-family:var(--font-mono);
  font-size:11px; font-weight:700; color:var(--n-200); box-shadow:var(--sh-md); }
.kb-hw:hover { background:linear-gradient(to bottom,var(--slate-500),var(--slate-700)); }
.k-icons { display:flex; gap:4px; }
.kb-ic { padding:4px 6px; background:var(--slate-700); border:1px solid var(--con-edge);
  border-radius:4px; color:var(--n-300); font-size:11px; line-height:1; box-shadow:var(--sh-sm); }
.kb-ic:hover { background:var(--slate-600); }

.ovl { position:absolute; inset:0; z-index:50; display:flex; align-items:center; justify-content:center;
  background:rgba(4,7,13,.84); backdrop-filter:blur(6px); padding:20px;
  animation:auf 180ms var(--ease); }
@keyframes auf { from { opacity:0; } to { opacity:1; } }
.karte { width:100%; max-width:400px; background:linear-gradient(to bottom,#16223a,#0b1322);
  border:2px solid #1e4d7a; 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:520px; align-items:stretch; text-align:left; }
#ende-icon { width:54px; height:54px; border-radius:9999px; display:flex; align-items:center;
  justify-content:center; font-size:26px; margin-bottom:8px; border:2px solid; box-shadow:var(--sh-lg); }
#ende-icon.sieg { background:rgba(245,158,11,.18); border-color:var(--acc); color:var(--acc-hell); }
#ende-icon.remis { background:rgba(100,116,139,.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-mono); font-size:19px; font-weight:900;
  letter-spacing:.05em; }
#ende-unter { margin:6px 0 0; font-size:12px; color:var(--n-400); }
#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:12px;
  transition:all 140ms var(--ease); }
#ende-btns .haupt { background:linear-gradient(90deg,#059669,#0d9488); color:#fff; box-shadow:var(--sh-lg); }
#ende-btns .haupt:hover { background:linear-gradient(90deg,#10b981,#14b8a6); }
#ende-btns .neben { background:var(--slate-800); color:var(--n-200); border:1px solid var(--slate-600); }
#ende-btns .neben:hover { background:var(--slate-700); }

.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-mono); font-size:15px; 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:12px; line-height:1.6; color:var(--n-300); padding-right:4px; }
.kb-text h3 { font-family:var(--font-mono); font-size:11px; 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; }

#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:radial-gradient(120% 90% at 50% 0%, #2a160d 0%, #0d0705 70%); }
.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-mono); font-size:19px; font-weight:900; letter-spacing:.16em;
  color:var(--acc-hell); text-shadow:0 0 12px rgba(251,191,36,.35); }
.lo-raum { font-family:var(--font-mono); font-size:11px; color:var(--slate-400); letter-spacing:.06em; }
.lo-ich { margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--slate-300); }
.lo-ich b { color:var(--info); }

.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:236px; flex:none; display:flex; flex-direction:column; }
.lo-label { font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--slate-300); margin:0 0 4px 2px; }
.lo-label span { color:var(--slate-500); }

#chatwin { flex:1; min-height:0; 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); scrollbar-width:thin; scrollbar-color:var(--acc, #fbbf24) var(--panel-bg); }
#chatwin::-webkit-scrollbar { width:7px; }
#chatwin::-webkit-scrollbar-track { background:var(--panel-bg); }
#chatwin::-webkit-scrollbar-thumb { background:var(--acc, #fbbf24); border-radius:4px; }
#chattext .nm { color:var(--info); font-weight:700; cursor:pointer; }
#chattext .nm:hover { text-decoration:underline; }
#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); }

#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); scrollbar-width:thin; }
#ulist::-webkit-scrollbar { width:7px; }
#ulist::-webkit-scrollbar-thumb { background:var(--acc, #fbbf24); border-radius:4px; }
.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;
  transition:background 140ms var(--ease); }
.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.me:hover { background:none; }
.it.spielt { color:var(--slate-500); cursor:default; }
.it.spielt:hover { background:none; }
.it .pk { width:7px; height:7px; border-radius:9999px; background:var(--ok); flex:none; }
.it.spielt .pk { background:var(--slate-600); }
.lo-hinweis { margin:6px 2px 0; font-size:11px; color:var(--slate-500); line-height:1.35; }

.lo-kopf-r { display:flex; align-items:center; gap:5px; margin-left:12px; }
.lo-kopf-r .kb { padding:5px 10px; }
.lo-chat #chatwin { flex:1 1 0; min-height:90px; }
.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-kacheln.k6 { grid-template-columns:repeat(3, 1fr); }
.lo-kacheln.k6 .lo-kachel { padding:10px; }
.lo-kacheln.k6 .lo-kachel b { font-size:13px; }
.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 { font-size:14px; color:var(--n-100); }
.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; }
.lo-kopf-r .kb, .lo-ich { white-space:nowrap; }
#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; }
#lo-nurchat.an { background:linear-gradient(to bottom,#78350f,#451a03); border-color:var(--acc);
  color:var(--acc-hell); }

.pop-karte { max-width:360px; }
.pop-karte h2 { margin:0 0 8px; font-family:var(--font-mono); font-size:15px; 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;
  transition:all 140ms var(--ease); }
#pop-btns .ja { background:linear-gradient(90deg,#059669,#0d9488); color:#fff; }
#pop-btns .ja:hover { background:linear-gradient(90deg,#10b981,#14b8a6); }
#pop-btns .nein { background:var(--slate-800); color:var(--n-200); border:1px solid var(--slate-600); }
#pop-btns .nein:hover { background:var(--slate-700); }

.ende-stand { margin-top:12px; width:100%; display:flex; justify-content:center; gap:14px;
  font-family:var(--font-mono); font-size:11px; color:var(--slate-300); }
.ende-stand b { color:var(--acc-hell); }


.luhr.kritisch { animation:uhrblink .5s steps(2) infinite; }
@keyframes uhrblink { 50% { background:rgba(244,63,94,.85); color:#fff; } }

.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; }

.ei-zeile { display:grid; grid-template-columns:120px 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:11px; 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(251,191,36,.18); border-color:var(--acc); color:var(--acc-hell); }
.ei-hinweis { margin:10px 0 0; font-size:11px; color:var(--slate-400); }
.kb-ic.aus { opacity:.45; }

#stage.hoch { width:552px; height:1010px; }
#stage.hoch #partie { flex-direction:column; }
#stage.hoch #brettspalte { height:600px; }
#stage.hoch #konsole { width:552px; height:410px; flex:none; }
#stage.hoch .k-knoepfe { grid-template-columns:repeat(4, 1fr); }
#stage.hoch .k-schnell { grid-template-columns:repeat(4, 1fr); }
#stage.hoch .k-chat { height:70px; }

.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; }
.k-blaettern button:hover { border-color:var(--info); color:#fff; }
.k-blaettern span { text-align:center; font-family:var(--font-mono); font-size:11px; color:var(--slate-400); }
.k-blaettern.aktiv span { color:var(--acc-hell); }
.k-zugliste [data-i] { cursor:pointer; border-radius:3px; }
.k-zugliste [data-i]:hover { background:rgba(255,255,255,.07); }
.k-nachspiel { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:4px 0; }

.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; letter-spacing:.04em; }
.lo-tabs button.an { background:rgba(251,191,36,.16); border-color:var(--acc); color:var(--acc-hell); }
.lo-tab { flex:1; min-height:0; display:flex; flex-direction:column; }
.lo-tab[hidden] { display:none; }
.lo-liste { flex:1; min-height:0; overflow-y:auto; background:var(--panel-bg); border:1px solid var(--hair); border-radius:6px; padding:4px; }
.it.live { cursor:pointer; }
.it .rang { width:22px; color:var(--acc-hell); font-family:var(--font-mono); font-size:11px; }
.kb-gruen { background:linear-gradient(to bottom,#047857,#064e3b) !important; border-color:rgba(52,211,153,.5) !important; }

.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:hover { border-color:var(--info); }
.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(30,41,59,.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:11.5px; 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:80px 1fr 130px; 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:#94a3b8; } .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:#94a3b8; } .st-form i.n { background:#ef4444; color:#fff; }
.st-spalten { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.st-spalten .st-block { margin-bottom:0; }
.st-li { display:flex; justify-content:space-between; gap:8px; padding:3px 0; font-size:11px; color:var(--slate-300); border-bottom:1px solid rgba(71,85,105,.35); }
.st-li:last-child { border-bottom:0; } .st-li em { font-style:normal; font-family:var(--font-mono); font-size:11px; color:var(--slate-400); white-space:nowrap; }
.st-klein { margin:6px 0 0; font-size:11px; color:var(--slate-400); }

.vs-doppel { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.vs-kompakt { display:grid; gap:6px; margin:2px 0 8px; }
.vs-reihe { display:grid; grid-template-columns:52px 1fr; align-items:center; gap:6px; }
.vs-reihe .vs-label { margin:0; }
.vs-reihe .vs-liste { margin:0; }
.vs-reihe .vs-liste button { padding:5px 3px; font-size:11px; }
.vs-liste button:disabled { opacity:.35; cursor:not-allowed; }
.vs-farbe { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 8px; font-size:11px; 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:11px; 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,#059669,#0d9488); border:1px solid rgba(52,211,153,.5); box-shadow:var(--sh-lg); cursor:pointer; }
.vs-los[hidden] { display:none; }
.vs-los:hover { filter:brightness(1.1); }

#brettrahmen::before { content:''; position:absolute; left:-10px; top:6px; bottom:6px; width:6px; border-radius:4px; background:transparent; transition:background .25s, box-shadow .25s; }
#brettrahmen.dran-ich::before { background:#22c55e; box-shadow:0 0 12px rgba(34,197,94,.75); }
#brettrahmen.dran-gegner::before { background:#3b82f6; box-shadow:0 0 12px rgba(59,130,246,.7); }

.k-farben { display:flex; gap:5px; justify-content:center; margin:0 0 6px; }
.k-farben button { width:26px; height:18px; border-radius:5px; border:2px solid var(--slate-600);
  background:linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%); cursor:pointer; }
.k-farben button.an { border-color:var(--acc); box-shadow:0 0 6px rgba(251,191,36,.6); }

#stage.look-abend { --wand-1:#1f1c22; --wand-2:#121014; --wand-3:#08070a; --wand-kante:#2e2a30;
  --bank-1:#a87e4c; --bank-2:#7d5a31; --bank-3:#5f4222; --platte-1:#c5c0b6; --platte-2:#958e84; --platte-3:#76706a; }
#stage.look-schirm { --wand-1:#03140d; --wand-2:#020c08; --wand-3:#010604; --wand-kante:#0d3a27; --wand-streifen:#3df0b0;
  --teller-1:#0e3326; --teller-2:#082016; --teller-3:#04120c;
  --bank-1:#0b2219; --bank-2:#071a12; --bank-3:#04110b; --bank-kante:#020a06;
  --platte-1:#0f2e22; --platte-2:#0a2219; --platte-3:#061710; --platte-schrift:#7dffcf; --gelb-hell:#7dffcf; }
#stage.look-schirm .loch { background:radial-gradient(circle at 50% 62%, #062016, #010805); box-shadow:inset 0 0 0 1px rgba(125,255,207,.45); }
#stage.look-schirm .loch.kugg { background:radial-gradient(circle at 36% 30%, #fffbe0, #ffd75a 45%, #8a6a10); }
#stage.look-schirm .loch.kugr { background:radial-gradient(circle at 36% 30%, #ffb0a0, #ff4a3a 45%, #701008); }
.vs-box { padding:10px 14px; }
.vs-liste { margin-bottom:6px; }
.vs-liste button { padding:5px 3px; }

#kulisse { background-image:url(img/ort-tag-q.webp?v=1); }
#stage.hoch #kulisse { background-image:url(img/ort-tag-h.webp?v=1); }
#stage.look-abend #kulisse { background-image:url(img/ort-abend-q.webp?v=1); }
#stage.look-abend.hoch #kulisse { background-image:url(img/ort-abend-h.webp?v=1); }
#stage.look-schirm #kulisse { background-image:linear-gradient(rgba(61,240,176,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(61,240,176,.08) 1px, transparent 1px),
  url(img/ort-abend-q.webp?v=1); background-size:28px 28px, 28px 28px, cover; filter:grayscale(.7) sepia(.5) hue-rotate(95deg) brightness(.42) contrast(1.15); }
#stage.look-schirm.hoch #kulisse { background-image:linear-gradient(rgba(61,240,176,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(61,240,176,.08) 1px, transparent 1px),
  url(img/ort-abend-h.webp?v=1); }
#stage:not(.look-abend):not(.look-schirm) { --glas-o:.36; --glas-u:.44; }

#endeleiste { display:grid; grid-template-columns:1fr 1fr 1fr; gap:4px; margin:5px 0 0; padding:5px; border-radius:8px;
  background:rgba(251,191,36,.08); border:1px solid rgba(251,191,36,.55); }
#endeleiste[hidden] { display:none; }
#endeleiste .kb { padding:7px 3px; font-size:11px; white-space:normal; min-width:0; line-height:1.15; }
.kb-gruen { background:linear-gradient(to bottom,#047857,#064e3b); border-color:rgba(52,211,153,.6); color:#d1fae5; }
.kb-gruen:hover { background:linear-gradient(to bottom,#059669,#065f46); }
.karte { position:relative; }
.kx-ecke { position:absolute; top:8px; right:8px; z-index:2; }
.vs-box { position:relative; }
.vs-x { position:absolute; top:6px; right:6px; }
.vs-ab { display:block; width:100%; margin-top:6px; padding:7px 14px; border-radius:10px; font-family:var(--font-mono); font-weight:700; font-size:11px;
  background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200); }
.vs-ab:hover { border-color:var(--info); color:#fff; }
.ende-karte { overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--acc, #fbbf24) var(--panel-bg); }
.ende-karte::-webkit-scrollbar { width:7px; }
.ende-karte::-webkit-scrollbar-thumb { background:var(--acc, #fbbf24); border-radius:4px; }
#ende-btns .neben + .neben { margin-top:6px; }
#b-tipp, #b-weiter, #b-loesung { grid-column:1 / -1; }
.kb-tipp { background:linear-gradient(to bottom,#1e3a5f,#0f1f36); border-color:rgba(56,189,248,.5); color:#bae6fd; }
.ende-wende { width:100%; margin-top:12px; text-align:left; }
.ende-wende h3 { margin:8px 0 6px; font:800 11px var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--acc); }
.ende-wende p { margin:0; font-size:11.5px; color:var(--slate-300); }
.ende-wende button { display:block; width:100%; text-align:left; padding:6px 9px; margin-bottom:4px; border-radius:8px;
  background:var(--slate-800); border:1px solid var(--slate-700); border-left:3px solid var(--acc); }
.ende-wende button:hover { border-color:var(--info); }
.ende-wende b { display:block; font:700 11px var(--font-mono); color:var(--n-100); }
.ende-wende span { font-size:11px; color:var(--slate-400); }
.kurve { width:100%; margin:4px 0 2px; }
.kurve svg { display:block; width:100%; height:74px; background:var(--panel-bg); border:1px solid var(--hair); border-radius:6px; cursor:pointer; }
.kurve .null { stroke:var(--slate-600); stroke-dasharray:3 3; }
.kurve .linie { fill:none; stroke:var(--acc-hell); stroke-width:1.6; }
.kurve .plus { fill:rgba(52,211,153,.28); } .kurve .minus { fill:rgba(244,63,94,.28); }
.kurve .wp { fill:#fbbf24; stroke:#0b1322; stroke-width:1.5; }
.kurve p { margin:3px 0 0; font-size:11px; color:var(--slate-400); }
.rs-auf { padding:4px 5px; font-family:system-ui, sans-serif; font-size:11px; line-height:1.4; color:var(--n-300); }
.rs-auf > b { display:block; font-family:var(--font-mono); color:var(--acc-hell); margin-bottom:3px; }
.rs-auf p b { color:var(--n-100); }
.rs-auf p { margin:0 0 4px; }
.rs-auf .rs-stand { color:var(--slate-400); font-family:var(--font-mono); font-size:11px; }

#stage.hoch #brettspalte { padding:6px 16px; gap:4px; }
#stage.hoch .leiste { height:32px; font-size:16px; gap:7px; }
#stage.hoch .lfarbe { width:17px; height:17px; }
#stage.hoch .lname { max-width:170px; }
#stage.hoch .lelo { font-size:16px; }
#stage.hoch .lzahl .gross { font-size:20px; }
#stage.hoch .lzahl .klein { font-size:16px; letter-spacing:0; }
#stage.hoch .lzahl .vorn { font-size:16px; }
#stage.hoch .luhr { font-size:18px; min-width:70px; }
#stage.hoch .lsonder { font-size:16px; }
#stage.hoch .lsonder .sgzi { width:18px; height:18px; }
#stage.hoch #hinweisband { font-size:20px; }
#stage.hoch #endeleiste .kb { font-size:16px; padding:10px 14px; }
#stage.hoch #konsole { padding:6px 10px; }
#stage.hoch .k-logo, #stage.hoch .k-farben, #stage.hoch .k-blocklabel { display:none; }
#stage.hoch .k-kopf { margin-bottom:4px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
#stage.hoch .k-modus, #stage.hoch .k-regel { font-size:16px; margin:0; }
#stage.hoch .k-status { font-size:17px; min-height:36px; padding:4px 8px; margin-bottom:4px; }
#stage.hoch .k-zugliste { font-size:16px; }
#stage.hoch .zl { grid-template-columns:36px 1fr 1fr; }
#stage.hoch .zl .nr, #stage.hoch .zl .w, #stage.hoch .zl .s, #stage.hoch .zl-leer { font-size:16px; }
#stage.hoch .rs-auf, #stage.hoch .rs-auf .rs-stand { font-size:16px; }
#stage.hoch .k-blaettern button { font-size:16px; padding:3px 14px; }
#stage.hoch .k-blaettern span { font-size:16px; }
#stage.hoch .k-chat { height:62px; font-size:16px; }
#stage.hoch .k-chatin { font-size:16px; padding:4px 8px; }
#stage.hoch .k-schnell button { font-size:16px; padding:4px; }
#stage.hoch .k-knoepfe { grid-template-columns:repeat(3, 1fr); gap:5px; margin:4px 0; }
#stage.hoch .kb { font-size:16px; padding:7px 4px; }
#stage.hoch .k-nachspiel .kb { font-size:16px; }
#stage.hoch .kb-hw { font-size:16px; padding:6px 12px; }
#stage.hoch .kb-ic { font-size:17px; padding:6px 10px; }
#stage.hoch .vs-box { width:500px; }
#stage.hoch .vs-titel { font-size:17px; }
#stage.hoch .vs-label { font-size:16px; letter-spacing:.04em; }
#stage.hoch .vs-liste button { font-size:16px; padding:6px 2px; }
#stage.hoch .vs-liste button span { font-size:16px; }
#stage.hoch .vs-info, #stage.hoch .vs-farbe, #stage.hoch .vs-farbe button, #stage.hoch .vs-ab { font-size:16px; }
#stage.hoch .vs-los { font-size:17px; }
.kb-text .anl-kurz { background:var(--panel-bg); border:1px solid var(--hair); border-left:3px solid var(--acc); border-radius:8px; padding:8px 12px; margin-bottom:6px; }
.kb-text .anl-kurz ul { margin:4px 0 0; padding-left:18px; }
.kb-text code { font-family:var(--font-mono); color:var(--acc-hell); }
#stage.hoch .k-knoepfe { grid-template-columns:repeat(4, 1fr); }
#stage.hoch .k-knoepfe .kb, #stage.hoch .k-nachspiel .kb { min-height:57px; padding:4px 3px; line-height:1.15; }
#stage.hoch .k-blaettern { grid-template-columns:57px 57px 1fr 57px 57px; gap:4px; margin:3px 0; }
#stage.hoch .k-blaettern button { height:57px; padding:0; }
#stage.hoch .k-leiste { padding-top:4px; }
#stage.hoch .kb-hw { height:57px; padding:0 14px; }
#stage.hoch .kb-ic { width:57px; height:57px; padding:0; }
#stage.hoch .k-icons { gap:5px; }
#stage.hoch .k-chatin { height:57px; }
#stage.hoch .k-chat { height:44px; }
#stage.hoch .k-schnell { display:none !important; }
#stage.hoch .k-kopf { margin-bottom:2px; }
#stage.hoch .k-status { min-height:34px; }
#stage.hoch .k-zugliste { min-height:30px; }
#stage.hoch #endeleiste .kb { min-height:57px; }
#stage.hoch .vs-liste button { min-height:57px; }
#stage.hoch .vs-farbe button, #stage.hoch .vs-ab, #stage.hoch .vs-los { min-height:57px; }
#stage.hoch .vs-x { width:57px; height:57px; font-size:22px; }
#stage.hoch .kx { min-width:57px; min-height:57px; font-size:22px; }
#stage.hoch #vorspann { position:fixed; inset:0; z-index:40; border-radius:0; }
#stage.hoch .vs-box { max-height:98%; overflow-y:auto; }
.luhr, .lzahl, .k-zugliste, .k-blaettern span, .st-w { font-variant-numeric:tabular-nums; }

.k-blocklabel { font-size:11px; letter-spacing:.06em; }
.lelo, .lzahl .vorn { font-size:11px; }
.lzahl .klein { font-size:11px; letter-spacing:.02em; }
.k-modus, .k-regel { font-size:11px; }
.k-blaettern span, .k-blaettern button { font-size:11px; }
.kb { font-size:11px; }
.kb-hw { font-size:11px; }
.kb-ic { font-size:12px; }
.zl-leer, .zl .nr, .zl .w, .zl .s { font-size:11px; }
.k-chat, .k-schnell button { font-size:11px; }
.vs-label { font-size:11px; letter-spacing:.06em; }
.vs-liste button { font-size:11.5px; }
.vs-liste button span { font-size:11px; }
.vs-info { font-size:11px; }
.lo-label { font-size:11px; }
.lo-hinweis, .lo-tabs button, .it .elo, .it .rang { font-size:11px; }
.kurve p, .st-kopf span, .st-klein { font-size:11px; }
#hinweisband { font-size:16px; }
#stage.hoch #endeleiste { margin:3px 0 0; }
#stage.hoch #endeleiste .kb { font-size:16px; min-height:57px; }
.leiste.denkt { animation:denkt 1.1s ease-in-out infinite; }
@keyframes denkt { 50% { border-color:rgba(56,189,248,.85); box-shadow:0 0 12px rgba(56,189,248,.45), var(--sh-in); } }
.rs-stufen { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-top:4px; font-family:var(--font-mono); font-size:11px; color:var(--slate-400); }
.rs-stufen button { padding:3px 7px; border-radius:6px; background:var(--slate-800); border:1px solid var(--slate-600); color:var(--n-200); font-size:11px; font-weight:700; }
.rs-stufen button.an { background:rgba(251,191,36,.18); border-color:var(--acc); color:var(--acc-hell); }
#stage.hoch .rs-stufen, #stage.hoch .rs-stufen button { font-size:16px; }
#stage.hoch .rs-stufen button { min-height:57px; padding:0 12px; }
.ar-z span, .ar-z em, .st-w, .st-li em, .ende-wende span, .vs-info { font-size:11px; }
.lo-tabs button { padding:4px 3px; letter-spacing:0; white-space:nowrap; }
.vs-los { background:linear-gradient(90deg,#047857,#0f766e); }
.lo-hinweis { color:var(--slate-400); }
#stage:not(.hoch) #konsole { width:244px; }
#ende-btns .haupt { background:linear-gradient(90deg,#047857,#0f766e); }
#endeleiste { grid-template-columns:1fr 1fr; }
#el-zeigen { grid-column:1 / -1; }
#stage.hoch #endeleiste { grid-template-columns:1fr 1fr 1fr; }
#stage.hoch #el-zeigen { grid-column:auto; }

.k-blaettern button .sgzi { width:14px; height:14px; vertical-align:-2px; }
#hinweisband { top:2px; transform:translate(-50%, 0); }
#stage.hoch #b-loesung, #stage.hoch #b-weiter { grid-column:span 2; }
#stage.hoch #b-nochmalzeigen { grid-column:span 1; }
#stage.hoch #brettspalte { height:640px; }
#stage.hoch #brettrahmen { width:540px; height:560px; }
#stage.hoch #wuerfel { width:540px; height:380px; }
#stage.hoch #stellwand { height:356px; }
#stage.hoch #teller { top:318px; left:120px; right:120px; }
#stage.hoch #ebenen { height:166px; }
#stage.hoch .pl-titel { font-size:14px; }
#stage.hoch .wf-knopf { right:40px; }
#stage.hoch #konsole { height:370px; }
#stage.hoch .k-knoepfe .kb, #stage.hoch #endeleiste .kb, #stage.hoch .k-sonder .kb { min-height:60px; }
#stage.hoch .k-blaettern { grid-template-columns:60px 60px 1fr 60px 60px; }
#stage.hoch .k-blaettern button { height:60px; }
#stage.hoch .kb-hw { height:60px; }
#stage.hoch .kb-ic { width:60px; height:60px; }
#stage.hoch .vs-liste button, #stage.hoch .vs-farbe button, #stage.hoch .vs-ab, #stage.hoch .vs-los { min-height:60px; }
#stage.hoch .vs-x, #stage.hoch .kx { min-width:60px; min-height:60px; }
#stage.hoch .rs-stufen button { min-height:60px; }
#stage.hoch #b-nochmalzeigen { white-space:nowrap; font-size:15px; letter-spacing:0; padding:4px 2px; }
#stage:not(.hoch) .k-leiste { flex-wrap:wrap; height:auto; row-gap:4px; justify-content:space-between; }
#stage.hoch .pl-titel { font-size:13px; } #stage.hoch .pl-titel em { display:none; }
#stage:not(.hoch) .k-status { font-size:14px; line-height:1.2; min-height:0; height:54px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
#stage #kulisse { overflow:visible; contain:paint; }
#ebenen, #lupe-grund { touch-action:none; }
#stage { --mo-bg1:#2a2e34; --mo-bg2:#1a1d21; --mo-bg3:#0f1114; --mo-rand:#d8b45a; --mo-akzent:#f3d98e; --mo-akzent2:#d8b45a; --mo-band1:#e0473b; --mo-band2:#9c1f16; --mo-band-t:#fff1c8; }
#stage.hoch { --mo-fs-klein:16px; }
#stage.hoch .ende-karte .mo-kopf, #stage.hoch .ende-karte .mo-zahl span, #stage.hoch .ende-karte .mo-tisch-text, #stage.hoch .ende-karte .mo-tipp { font-size:16px; }
#stage.hoch #ende-btns button { min-height:60px; font-size:16px; }
#stage.hoch .ende-karte .mo-mehr > summary { min-height:60px; display:flex; align-items:center; justify-content:center; }

.platte.ebene-an { box-shadow:0 0 0 2px var(--gelb-hell), 0 6px 14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); }
.loch.zeig::after { content:''; position:absolute; inset:-3px; border-radius:50%; pointer-events:none; box-shadow:0 0 0 3px #fff, 0 0 10px rgba(255,255,255,.9); }
#ende-karte .mo-platzierung .mo-farbe { width:26px; height:26px; flex:none; border-radius:50%; box-shadow:0 0 0 2px rgba(255,236,200,.35); }
.erst { position:absolute; left:36px; top:44px; z-index:7; width:200px; padding:10px 34px 10px 12px; border-radius:6px;
  background:rgba(20,22,26,.92); border:1px solid var(--acc); color:var(--n-100); font-size:12.5px; line-height:1.35;
  display:flex; flex-direction:column; gap:4px; box-shadow:0 10px 24px rgba(0,0,0,.5); }
.erst[hidden] { display:none; }
.erst b { color:var(--acc-hell); font-size:13px; }
.erst-x { position:absolute; top:4px; right:4px; }
#stage.hoch .erst { width:300px; font-size:16px; }
#stage.hoch .erst b { font-size:17px; }
#stage:not(.hoch) #ende-karte { width:580px; max-width:94%; }
.erst { pointer-events:none; } .erst-x { pointer-events:auto; }
#stage.hoch #brettspalte, #stage.hoch #konsole { width:548px; }
#stage.hoch #konsole { height:366px; }

#stellwand { left:70px; right:70px; top:6px; height:308px; border-radius:6px 6px 3px 3px;
  background:linear-gradient(170deg, rgba(34,38,44,.86), rgba(14,16,20,.9) 60%, rgba(8,9,12,.92));
  border:5px solid transparent; background-clip:padding-box;
  box-shadow:0 0 0 5px #b8903f, 0 0 0 6px #6d5018, 0 14px 30px rgba(0,0,0,.5), inset 0 0 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); }
#stellwand::before { content:''; position:absolute; inset:0; border-radius:3px; pointer-events:none;
  background:linear-gradient(115deg, transparent 0 22%, rgba(255,255,255,.07) 26%, transparent 32% 70%, rgba(255,255,255,.05) 74%, transparent 78%); }
#stellwand::after { left:0; right:0; bottom:0; }
#stage.look-schirm #stellwand { box-shadow:0 0 0 5px #0d3a27, 0 0 0 6px #062016, 0 14px 30px rgba(0,0,0,.5), inset 0 0 40px rgba(0,0,0,.55); }
#stage.hoch #stellwand { left:60px; right:60px; height:350px; }
#teller { display:none; }
.wf-knopf2 { top:56px; }
#stage.hoch .wf-knopf2 { top:72px; }
.wf-knopf2.an { box-shadow:0 0 0 2px var(--acc), 0 0 10px rgba(251,191,36,.5); }
.wf-knopf svg { width:18px; height:18px; }
.pl-titel em.koord { font-style:normal; font-weight:800; color:#7a2a10; background:rgba(255,236,170,.75); border-radius:3px; padding:0 4px; opacity:1; }
#stage.hoch .pl-titel em.koord { display:inline; }
.gb-kopf { margin:0 0 10px; font-size:13px; color:var(--n-200); }
.gb-siegel { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-bottom:12px; }
.gb-s { display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 4px; border-radius:8px; background:var(--slate-800); border:1px solid var(--slate-700); text-align:center; opacity:.62; }
.gb-s.an { opacity:1; border-color:var(--acc); box-shadow:0 0 10px rgba(251,191,36,.25); }
.gb-s img { width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--slate-600); }
.gb-s.an img { border-color:var(--acc); }
.gb-s b { font-size:12px; color:var(--n-100); }
.gb-s span { font-size:11px; color:var(--slate-300); }
.gb h3 { margin:6px 0; font:800 12px var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--acc); }
.gb h3 small { color:var(--slate-400); font-weight:700; }
.gb-werk { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.gb-w { position:relative; padding:6px 9px; border-radius:7px; background:var(--slate-800); border:1px solid var(--slate-700); border-left:3px solid var(--slate-600); }
.gb-w.an { border-left-color:var(--ok); background:rgba(6,78,59,.35); }
.gb-w b { display:block; font-size:12px; color:var(--n-100); }
.gb-w span { display:block; font-size:11px; color:var(--slate-300); }
.gb-w em { position:absolute; top:5px; right:8px; font-style:normal; font-size:11px; color:var(--ok); }
#stage.hoch .gb-s b, #stage.hoch .gb-w b { font-size:16px; } #stage.hoch .gb-s span, #stage.hoch .gb-w span, #stage.hoch .gb-w em, #stage.hoch .gb-kopf { font-size:16px; }
#stage.hoch .gb-werk { grid-template-columns:1fr; } #stage.hoch .gb-siegel { grid-template-columns:1fr 1fr; }
#stage.hoch #brettspalte { height:620px; }
#stage.hoch #brettrahmen { height:540px; }
#stage.hoch #wuerfel { height:362px; }
#stage.hoch #stellwand { height:336px; }
#stage.hoch #konsole { height:386px; }
#stage.hoch .k-knoepfe .kb, #stage.hoch #endeleiste .kb, #stage.hoch .k-sonder .kb, #stage.hoch .k-nachspiel .kb { min-height:64px; }
#stage.hoch .k-blaettern { grid-template-columns:64px 64px 1fr 64px 64px; }
#stage.hoch .k-blaettern button, #stage.hoch .kb-hw { height:64px; }
#stage.hoch .kb-ic { width:64px; height:64px; }
#stage.hoch .k-icons { gap:3px; }
.wf-knopf svg { pointer-events:none; }

.k-status .st-unter { display:block; font-size:11px; font-weight:400; letter-spacing:.02em; opacity:.8; margin-top:1px; }
#stage.hoch .k-status .st-unter { font-size:16px; }
#el-weg { display:none !important; }
#endeleiste, #stage.hoch #endeleiste { grid-template-columns:1fr 1fr; }
#el-zeigen, #stage.hoch #el-zeigen { grid-column:auto; }
.k-knoepfe.am-ende #b-neu, .k-knoepfe.am-ende #b-hilfe-an, .k-knoepfe.am-ende #b-nochmalzeigen { display:none; }
.lichtspur { position:absolute; z-index:30; height:3px; margin-top:-1.5px; transform-origin:0 50%; pointer-events:none; border-radius:2px;
  background:linear-gradient(90deg, rgba(255,236,160,0), rgba(255,236,160,.95) 70%, #fff); box-shadow:0 0 8px rgba(255,214,110,.85);
  animation:spur .5s ease-out forwards; }
@keyframes spur { 0% { clip-path:inset(0 100% 0 0); opacity:1; } 55% { clip-path:inset(0 0 0 0); opacity:1; } 100% { clip-path:inset(0 0 0 100%); opacity:0; } }
.loch.faellt { animation:indasloch .46s cubic-bezier(.3,1.6,.5,1); }
@keyframes indasloch { 0% { transform:translateY(-70%) scale(1.25); opacity:.2; } 60% { transform:translateY(8%) scale(.94); opacity:1; } 100% { transform:none; } }
.lzahl .reihen { display:inline-block; }
.lzahl .reihen.tick { animation:reihentick .9s ease-out; }
@keyframes reihentick { 0% { color:#fda4af; transform:scale(1.35); text-shadow:0 0 8px rgba(244,63,94,.8); } 100% { transform:none; } }
.serie { display:inline-flex; align-items:center; gap:2px; font-size:11px; font-weight:900; color:#fbbf24; }
.serie .flamme { width:10px; height:13px; animation:flackern 1.4s ease-in-out infinite; transform-origin:50% 100%; }
@keyframes flackern { 0%, 100% { transform:scale(1, 1); } 30% { transform:scale(.92, 1.08) rotate(-2deg); } 60% { transform:scale(1.05, .95) rotate(2deg); } }
#stage.hoch .serie { font-size:16px; } #stage.hoch .serie .flamme { width:14px; height:18px; }
.leiste.matchball { animation:matchball 1.15s ease-in-out infinite; }
@keyframes matchball { 0%, 100% { box-shadow:0 0 0 1px rgba(244,63,94,.5), 0 0 6px rgba(244,63,94,.25); } 15% { box-shadow:0 0 0 2px rgba(244,63,94,.95), 0 0 16px rgba(244,63,94,.6); } 32% { box-shadow:0 0 0 1px rgba(244,63,94,.6), 0 0 8px rgba(244,63,94,.3); } 46% { box-shadow:0 0 0 2px rgba(244,63,94,.85), 0 0 14px rgba(244,63,94,.5); } }
.gb-s.neu { position:relative; animation:praegen .55s cubic-bezier(.2,1.4,.4,1) both; animation-delay:var(--v, 0s); }
@keyframes praegen { 0% { transform:scale(2.2) rotate(-14deg); opacity:0; } 70% { transform:scale(.94) rotate(2deg); opacity:1; } 100% { transform:none; } }
.gb-s.neu::after { content:''; position:absolute; inset:-6px; border-radius:12px; pointer-events:none; animation:staub .8s ease-out both; animation-delay:calc(var(--v, 0s) + .35s);
  background:radial-gradient(circle, rgba(253,230,138,.55), rgba(253,230,138,0) 70%); }
@keyframes staub { from { transform:scale(.6); opacity:1; } to { transform:scale(1.5); opacity:0; } }
.gb-w.neu b { animation:gravur .9s steps(18) both; animation-delay:var(--v, 0s); }
.gb-w.neu { animation:plakette 1.4s ease-out both; animation-delay:var(--v, 0s); }
@keyframes gravur { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }
@keyframes plakette { 0% { box-shadow:0 0 0 2px rgba(253,230,138,.95), 0 0 18px rgba(253,230,138,.7); } }
.gb-kopf.neu { transform-origin:50% 0; animation:ausrollen .9s cubic-bezier(.2,1,.4,1) both; }
@keyframes ausrollen { from { transform:scaleY(.05); opacity:.3; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce) {
  .lichtspur, .loch.faellt, .lzahl .reihen.tick, .serie .flamme, .leiste.matchball, .gb-s.neu, .gb-s.neu::after, .gb-w.neu, .gb-w.neu b, .gb-kopf.neu { animation:none; }
  .leiste.matchball { box-shadow:0 0 0 2px rgba(244,63,94,.8); }
}
#stage.hoch #ende-x { min-width:64px; min-height:64px; }
#stage.hoch #ende summary, #stage.hoch #ende-btns button { min-height:64px; }
#stage.hoch #ende small { font-size:16px; }
#stage.hoch #archiv .karte-breit { max-width:528px; max-height:990px; }
#stage.hoch #archiv .kh h2 { font-size:22px; }
#stage.hoch #archiv .kx { min-width:64px; min-height:64px; }
#stage.hoch .ar-tabs button { min-height:64px; font-size:17px; }
#stage.hoch #archiv .lo-hinweis, #stage.hoch .ar-z b, #stage.hoch .ar-z span, #stage.hoch .ar-z em { font-size:16px; }
#stage.hoch .ar-z { min-height:64px; }
#stage.hoch .st-kopf { grid-template-columns:repeat(3, 1fr); }
#stage.hoch .st-kopf b { font-size:20px; }
#stage.hoch .st-kopf span, #stage.hoch .st-block h3, #stage.hoch .st-block h3 small, #stage.hoch .st-zeile, #stage.hoch .st-w, #stage.hoch .st-li, #stage.hoch .st-li em, #stage.hoch .st-klein, #stage.hoch .st-form i { font-size:16px; }
#stage.hoch .st-zeile { grid-template-columns:110px 1fr 150px; }
#stage.hoch .st-spalten { grid-template-columns:1fr; }
#stage.hoch .st-form i { width:30px; height:30px; }
#stage.hoch .gb-kopf, #stage.hoch .gb-s b, #stage.hoch .gb-s span, #stage.hoch .gb-w b, #stage.hoch .gb-w span, #stage.hoch .gb-w em, #stage.hoch #gesellenbuch h3, #stage.hoch #gesellenbuch h3 small { font-size:16px; }
#stage.hoch .gb-siegel { grid-template-columns:repeat(2, 1fr); }
#stage.hoch .gb-werk { grid-template-columns:1fr; }
#stage.hoch .gb-s img { width:64px; height:64px; }
#stage.hoch .vs-box { width:528px; }
#stage.hoch .vs-liste button, #stage.hoch .vs-farbe button, #stage.hoch .vs-ab, #stage.hoch .vs-los { min-height:64px; }
#stage.hoch .vs-x, #stage.hoch .kx { min-width:64px; min-height:64px; }
#stage.hoch .vs-liste.fuenf { grid-template-columns:repeat(3, 1fr); }
#stage.hoch .vs-liste.fuenf button { min-width:0; }
#stage.hoch #hilfe .karte-breit, #stage.hoch #einst .karte-breit { max-width:528px; max-height:990px; }
#stage.hoch .kb-text, #stage.hoch .kb-text h3, #stage.hoch .kb-text code, #stage.hoch .kb-text li, #stage.hoch .kb-text b { font-size:16px; }
#stage.hoch .ei-zeile { grid-template-columns:150px 1fr; padding:6px 0; }
#stage.hoch .ei-zeile > span { font-size:16px; padding-top:18px; }
#stage.hoch .ei-wahl button { min-height:64px; min-width:64px; font-size:16px; padding:0 12px; }
#stage.hoch .ei-hinweis { font-size:16px; }
#stage.hoch .kb-text figcaption { font-size:16px; }
.rs-stand .lk-ok, .rs-stand .lk-jetzt, .rs-stand span { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; border-radius:50%; border:1px solid var(--slate-600); font-weight:800; }
.rs-stand .lk-ok { background:rgba(52,211,153,.25); border-color:#34d399; color:#6ee7b7; }
.rs-stand .lk-jetzt { border-color:var(--acc); color:var(--acc-hell); box-shadow:0 0 6px rgba(251,191,36,.5); }
#stage.hoch .rs-stand span { min-width:30px; height:30px; }

#stage.quer-handy #brettrahmen { width:100%; height:424px; }
#stage.quer-handy #wuerfel { width:calc(100% - 330px); height:424px; }
#stage.quer-handy #ebenen { left:auto; right:0; top:0; bottom:auto; width:324px; height:424px; display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; gap:6px; padding:6px; }
#stage.quer-handy .platte .pl-titel { font-size:12px; }
#stage.quer-handy #brettrahmen .kb-ic, #stage.quer-handy #brettrahmen .wf-knopf, #stage.quer-handy #b-ansichtwechsel, #stage.quer-handy #b-spreizen { min-width:54px; min-height:54px; }

#stage { --sgzl-grund:rgba(24,27,32,.96); --sgzl-text:#f1f5f9; --sgzl-akzent:var(--acc-hell); --sgzl-akzent-text:#2a1c06; }
#lernort { flex:none; }
#lernort .sgzl { margin:0 0 6px; padding:9px 10px; font-family:var(--font-ui); }
#lernort :is(.sgzl-kopf, .sgzl-titel) { padding-right:40px; }
#lernort .sgzl-kopf { font-size:11px; }
#lernort .sgzl-titel { font-size:15px; }
#lernort .sgzl-text { font-size:13px; line-height:1.36; }
#lernort .sgzl-weiter { width:100%; min-height:38px; margin-top:7px; }
#lernort .sgzl-x { width:34px; height:34px; top:4px; right:4px; }
#stage.lernpartie :is(.k-blocklabel, #zugliste, #blaettern, .k-regel, .k-farben) { display:none; }
#stage.lernpartie #status { height:auto; min-height:28px; white-space:normal; line-height:1.25; }
#lobby #lo-lern { flex:none; flex-direction:row; align-items:center; gap:14px; margin:0 0 8px; padding:8px 14px; }
#stage:not(.hoch) #lobby .lo-start { flex:1 0 auto; }
#stage:not(.hoch) #lobby .lo-kacheln { grid-auto-rows:minmax(min-content, 1fr); }
#stage:not(.hoch) #lobby .lo-chat #chatwin { min-height:60px; }
#lobby #lo-lern b { font-size:16px; white-space:nowrap; }
#lobby #lo-lern small { font-size:12px; }
#stage.hoch.lernpartie :is(.k-kopf, .k-knoepfe, .k-leiste) { display:none; }
#stage.hoch #lernort .sgzl { margin:0; padding:8px 10px 10px 12px; }
#stage.hoch #lernort :is(.sgzl-kopf, .sgzl-titel) { padding-right:66px; }
#stage.hoch #lernort .sgzl-kopf { font-size:16.5px; margin-bottom:2px; }
#stage.hoch #lernort .sgzl-titel { font-size:21px; margin-bottom:2px; }
#stage.hoch #lernort .sgzl-text { font-size:19.5px; line-height:1.24; }
#stage.hoch #lernort .sgzl-weiter { min-height:66px; font-size:20px; margin-top:6px; }
#stage.hoch #lernort .sgzl-x { width:66px; height:66px; font-size:28px; top:3px; right:3px; }
#stage.hoch #lobby #lo-lern { min-height:72px; flex-direction:column; align-items:flex-start; gap:2px; }
#stage.hoch #lobby #lo-lern b { font-size:20px; }
#stage.hoch #lobby #lo-lern small { font-size:14.5px; }
#stage.hoch.lernpartie #ende-btns button { min-height:66px; font-size:20px; }
#stage.hoch.lernpartie #ende-unter { font-size:17px; line-height:1.3; }
#stage.quer-handy #lernort { position:absolute; left:8px; width:300px; top:8px; z-index:21; max-height:calc(100% - 16px); }
#stage.quer-handy #lernort .sgzl { margin:0; max-height:100%; overflow-y:auto; padding:7px 10px 8px; }
#stage.quer-handy #lernort :is(.sgzl-kopf, .sgzl-titel) { padding-right:50px; }
#stage.quer-handy #lernort .sgzl-kopf { font-size:12px; }
#stage.quer-handy #lernort .sgzl-titel { font-size:16px; margin-bottom:2px; }
#stage.quer-handy #lernort .sgzl-text { font-size:14px; line-height:1.28; }
#stage.quer-handy #lernort .sgzl-weiter { min-height:50px; font-size:16px; margin-top:6px; }
#stage.quer-handy #lernort .sgzl-x { width:50px; height:50px; top:3px; right:3px; }
#stage.quer-handy.lernpartie #ende-btns { gap:5px; margin-top:8px; }
#stage.quer-handy.lernpartie #ende-btns button { min-height:50px; font-size:14px; white-space:nowrap; padding:6px 10px; }
#stage.quer-handy.lernpartie #ende-unter { font-size:13px; line-height:1.3; margin:4px 0 0; }
#stage.quer-handy.lernpartie #qh-status { font-size:15px; line-height:1.2; height:auto; max-height:none; overflow:visible; }

.platte[data-z="0"] .pl-titel b { box-shadow:inset 0 -3px 0 rgb(205,127,60); }
.platte[data-z="1"] .pl-titel b { box-shadow:inset 0 -3px 0 rgb(228,190,92); }
.platte[data-z="2"] .pl-titel b { box-shadow:inset 0 -3px 0 rgb(170,196,214); }
.platte[data-z="3"] .pl-titel b { box-shadow:inset 0 -3px 0 rgb(120,206,180); }
.loch[data-n]::before { content:attr(data-n); position:absolute; right:-5px; top:-6px; z-index:3; min-width:15px; height:15px; padding:0 2px; border-radius:8px;
  background:rgba(12,10,8,.82); color:#fff4d6; font:700 11px/15px Arial, sans-serif; text-align:center; pointer-events:none; }
#stage.hoch .loch[data-n]::before { font-size:13px; line-height:17px; height:17px; min-width:17px; border-radius:9px; }
.k-legende { flex:none; display:flex; align-items:center; justify-content:space-between; gap:6px; margin:3px 0 4px; font:700 11px var(--font-mono); color:var(--slate-300); }
.k-legende .kl-eb { display:flex; gap:4px; }
.k-legende i { font-style:normal; padding:1px 5px; border-radius:4px; border:1px solid var(--ef); color:var(--n-100); box-shadow:inset 0 -2px 0 var(--ef); }
.k-legende .kl-stufe { color:var(--acc-hell); }
#stage.hoch .k-legende { font-size:16px; }
#sprechblase { position:absolute; left:46px; top:calc(100% + 6px); z-index:30; max-width:260px; padding:5px 10px; border-radius:10px; pointer-events:none;
  background:rgba(255,248,232,.97); color:#2a1d0e; font:700 12px/1.3 var(--font-sans, Arial, sans-serif); box-shadow:0 4px 14px rgba(0,0,0,.45); }
#sprechblase::before { content:''; position:absolute; left:14px; top:-6px; border:6px solid transparent; border-top:0; border-bottom-color:rgba(255,248,232,.97); }
#leiste-unten #sprechblase { top:auto; bottom:calc(100% + 6px); }
#leiste-unten #sprechblase::before { top:auto; bottom:-6px; border-bottom:0; border-top:6px solid rgba(255,248,232,.97); }
#sprechblase.an { animation:blase 1.6s ease both; }
@keyframes blase { 0% { opacity:0; transform:translateY(-4px) scale(.9); } 12% { opacity:1; transform:none; } 85% { opacity:1; } 100% { opacity:0; } }
.leiste { position:relative; }
#stage.hoch #sprechblase { font-size:16px; max-width:340px; }
.xp { margin:6px 0; text-align:left; }
.xp-kopf { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:12px; color:var(--slate-300); }
.xp-kopf b { color:var(--acc-hell); font-size:13px; }
.xp-kopf em { font-style:normal; font-weight:800; color:#fde68a; }
.xp-leiste { height:9px; margin-top:3px; border-radius:5px; background:rgba(0,0,0,.45); border:1px solid rgba(253,230,138,.35); overflow:hidden; }
.xp-leiste i { display:block; height:100%; width:0; background:linear-gradient(90deg,#a3741c,#fde68a); transition:width 1.1s cubic-bezier(.2,.8,.3,1); }
.xp-ende.aufstieg { animation:aufstieg 1.2s ease; }
@keyframes aufstieg { 0%, 100% { box-shadow:none; } 30% { box-shadow:0 0 0 2px #fde68a, 0 0 18px rgba(253,230,138,.8); } }
#stage.hoch .xp-kopf, #stage.hoch .xp-kopf b { font-size:16px; }
#kulisse::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:.0; }
#stage.hell #kulisse::after { opacity:1; background:
    repeating-linear-gradient(115deg, rgba(255,240,200,0) 0 60px, rgba(255,240,200,.07) 60px 120px, rgba(255,240,200,0) 120px 220px);
  -webkit-mask:linear-gradient(to bottom, #000, transparent 75%); mask:linear-gradient(to bottom, #000, transparent 75%); animation:strahlen 9s ease-in-out infinite alternate; }
@keyframes strahlen { from { opacity:.55; transform:translateX(-12px); } to { opacity:1; transform:translateX(12px); } }
#kulisse::before { content:''; position:absolute; left:0; top:0; width:3px; height:3px; border-radius:50%; pointer-events:none; opacity:.0; }
#stage.hell #kulisse::before { opacity:.8; background:rgba(255,246,220,.9);
  box-shadow:140px 90px 0 rgba(255,246,220,.7), 260px 160px 0 rgba(255,246,220,.5), 420px 60px 0 rgba(255,246,220,.6), 520px 210px 0 rgba(255,246,220,.45),
    660px 120px 0 rgba(255,246,220,.6), 90px 260px 0 rgba(255,246,220,.4), 340px 300px 0 rgba(255,246,220,.5), 720px 330px 0 rgba(255,246,220,.4);
  animation:staubflug 14s linear infinite; }
@keyframes staubflug { from { transform:translate(0, 0); } 50% { transform:translate(18px, 26px); } to { transform:translate(0, 52px); } }
#kulisse.sieglicht { animation:sieglicht 1.4s ease; }
@keyframes sieglicht { 0%, 100% { filter:none; } 30% { filter:brightness(1.35) sepia(.25); } }
#lo-raetsel.serie-neu { animation:serieneu 1.6s ease 2; }
@keyframes serieneu { 50% { box-shadow:0 0 0 2px #fde68a, 0 0 16px rgba(253,230,138,.7); } }
@media (prefers-reduced-motion: reduce) {
  #stage.hell #kulisse::after, #stage.hell #kulisse::before, #kulisse.sieglicht, #lo-raetsel.serie-neu, #sprechblase.an, .xp-ende.aufstieg { animation:none; }
  .xp-leiste i { transition:none; }
}
.k-status:has(.st-unter) { flex-direction:column; gap:0; line-height:1.15; }
#stage:not(.hoch) .k-status:has(.st-unter) { font-size:13px; }
#stage:not(.hoch):not(.quer-handy) #ende-btns { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; margin-top:10px; }
#stage:not(.hoch):not(.quer-handy) #ende-btns .haupt { grid-column:1 / -1; }
#stage:not(.hoch):not(.quer-handy) #ende-btns button { margin:0 !important; padding:7px 8px; }
.gb h3 small { font-size:11px; }
#stage:not(.hoch):not(.quer-handy) #ende-btns .haupt { min-height:0; padding:9px 8px; }
.mo-tisch-b .xp-ende { margin-top:10px; }
#einst .ei-zeile { padding-top:6px; padding-bottom:6px; }
#stage.hoch .k-legende { display:none; }
#stage.hoch #ende-btns { display:grid !important; grid-template-columns:1fr 1fr; gap:6px; }
#stage.hoch #ende-btns .haupt { grid-column:1 / -1; }
#stage.hoch #ende-btns button { margin:0 !important; }
#stage:not(.quer-handy) #ende-btns { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
#stage:not(.quer-handy) #ende-btns .haupt { grid-column:auto !important; }
#stage.hoch #ende-btns button { padding:4px 6px; line-height:1.15; }
#stage.hoch .xp-ende .xp-posten { display:none; }
#stage.hoch #ende .mo-tisch-text { display:none; }
#stage.hoch #ende-btns button { font-size:15px; }
#ende.mit-xp .mo-tisch-text { display:none; }
#stage.hoch #ende-btns .ende-weg { display:none; }
#stage.hoch #ende.mit-xp .mo-tipp { display:none; }
#stage.hoch #ende .mo-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
#stage.quer-handy .xp-kopf, #stage.quer-handy .xp-kopf b, #stage.quer-handy .xp-kopf em { font-size:13px; }
#stage.quer-handy #ende-btns .ende-weg { display:none; }
#stage.quer-handy #erst-x { min-width:54px; min-height:54px; }
.kb-text .anl-reihen figcaption { font-size:12px; }
#stage.hoch .kb-text .anl-reihen figcaption { font-size:16px; }
