:root {
  --akzent: #3f7bff;
  --brett: #2456d6;
  --brett-rand: #173b9c;
  --loch: var(--kl-bg);
  --stein1: #ff4f5e;
  --stein1-dunkel: #b8222f;
  --stein2: #ffd23f;
  --stein2-dunkel: #c99a00;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --brett: #2f66e8; --brett-rand: #1d48b3; }
}
html, body { height: 100%; overflow: hidden; }
body { height: 100vh; height: 100dvh; min-height: 0; touch-action: manipulation; }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.modi { display: flex; gap: 4px; padding: 8px 8px 0; justify-content: center; flex-wrap: nowrap; }
.modi button { flex: 1 1 0; min-width: 0; max-width: 120px; border: 1px solid var(--kl-linie); background: var(--kl-flaeche); color: var(--kl-text2);
  border-radius: 10px; padding: 7px 2px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modi button.an { background: var(--akzent); color: #fff; border-color: transparent; }
.modi button .haken { color: var(--kl-gut); }
.modi button.an .haken { color: #fff; }

.status { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 10px 0; font-weight: 800; font-size: 15px; min-height: 32px; text-align: center; }
.status .punkt { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.status .klein { color: var(--kl-text2); font-size: 13px; font-weight: 700; }
.punkt.s1 { background: var(--stein1); } .punkt.s2 { background: var(--stein2); }

.huelle { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px 8px; }
.brett { position: relative; }
.zeiger { position: relative; }
.feld { position: relative; border-radius: 14px; }
.steine { position: absolute; inset: 0; }
.platte { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.spalten { position: absolute; left: 0; right: 0; bottom: 0; display: flex; }
.spalten div { flex: 1; cursor: pointer; border-radius: 10px; }
.spalten div.tipp { animation: tipp 0.9s ease-in-out 3; }
@keyframes tipp { 50% { background: rgba(255, 255, 255, .28); } }

.stein { position: absolute; border-radius: 50%; will-change: transform; }
.stein.s1 { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--stein1) 70%, #fff), var(--stein1) 45%, var(--stein1-dunkel)); }
.stein.s2 { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--stein2) 60%, #fff), var(--stein2) 45%, var(--stein2-dunkel)); }
.stein::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.stein.geist { opacity: 0; transition: left .12s, opacity .15s; pointer-events: none; }
.stein.geist.an { opacity: .9; }
.stein.matt { filter: saturate(.35) brightness(.7); transition: filter .4s; }
.stein.gewinn { animation: leuchten 0.9s ease-in-out infinite alternate; z-index: 2; }
@keyframes leuchten { from { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } to { box-shadow: 0 0 0 4px #fff, 0 0 22px 8px rgba(255,255,255,.75); } }
.stein.letzter::after { border-color: rgba(255,255,255,.55); }

.aktionen { display: flex; justify-content: center; gap: 8px; padding: 6px 10px 12px; }
.aktionen .kl-knopf { min-width: 92px; }
.aktionen .kl-knopf .video { font-size: 11px; opacity: .8; }

.statistik { width: 100%; border-collapse: collapse; font-size: 14px; }
.statistik th, .statistik td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--kl-linie); }
.statistik th:first-child, .statistik td:first-child { text-align: left; }
.statistik td b { color: var(--kl-gold); }

@media (max-width: 360px) { .modi button { font-size: 12px; } .aktionen .kl-knopf { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .stein.gewinn { animation: none; box-shadow: 0 0 0 4px #fff; } }
