/* Handy-Ansicht. Alles auf Daumenbedienung und schnelle Reaktion ausgelegt. */
:root {
  --bg: #0b0a17;
  --bg2: #14102b;
  --ink: #f2f0ff;
  --dim: #9a93c4;
  --line: rgba(255, 255, 255, .13);
  --brand: #7c5cff;
  --g: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%; margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
body {
  background:
    radial-gradient(700px 500px at 20% -10%, rgba(124, 92, 255, .35), transparent 65%),
    radial-gradient(600px 500px at 90% 110%, rgba(34, 211, 238, .18), transparent 65%),
    linear-gradient(170deg, var(--bg), var(--bg2));
  /* iOS: Safe Areas berücksichtigen, sonst liegt der Buzzer unter der Leiste */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 14px; }
.screen[hidden] { display: none; }

/* ---------- Raumcode ---------- */
.pad { margin: auto; width: min(420px, 100%); text-align: center; }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; margin-bottom: 34px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #7c5cff, #22d3ee); color: #08080f;
  font-family: 'Anton', sans-serif; font-size: 18px;
}
h1 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 34px; letter-spacing: .06em; margin: 0 0 6px; text-transform: uppercase; }
.hint { color: var(--dim); margin: 0 0 22px; font-size: 15px; }
.code-input {
  width: 100%; text-align: center; letter-spacing: .5em; text-indent: .5em;
  font-family: 'Anton', sans-serif; font-size: 42px; padding: 14px 10px;
  border-radius: 16px; border: 2px solid var(--line); background: rgba(0, 0, 0, .35);
  outline: none; text-transform: uppercase;
}
.code-input:focus { border-color: var(--brand); }
.big {
  width: 100%; margin-top: 16px; padding: 16px; border-radius: 16px; font-weight: 700; font-size: 18px;
  background: linear-gradient(120deg, #7c5cff, #a855f7); color: #fff;
  transition: transform .15s;
}
.big:active { transform: scale(.97); }
.err { color: #ff6b7f; margin-top: 14px; font-size: 15px; }

/* ---------- Kopfzeile ---------- */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex: none; }
.room {
  font-family: 'Anton', sans-serif; letter-spacing: .18em; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim);
}
.name-input {
  flex: 1; min-width: 0; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); outline: none; font-size: 15px;
}
.name-input:focus { border-color: var(--brand); }
.myteam { flex: 1; font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { color: var(--dim); font-size: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }

.pick { flex: none; text-align: center; font-size: 17px; font-weight: 600; color: var(--dim); margin: 4px 0 12px; }

/* Name ist Pflicht - als kleines Feld oben rechts hat ihn fast niemand ausgefüllt */
.name-feld { display: block; flex: none; margin-bottom: 14px; }
.name-feld span {
  display: block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 7px;
}
.name-feld input {
  width: 100%; padding: 15px 18px; border-radius: 16px; font-size: 20px; font-weight: 600;
  border: 2px solid var(--line); background: #0e0d1a; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.name-feld input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 92, 255, .22); }
.name-feld input::placeholder { color: rgba(255, 255, 255, .3); }
.name-feld.fehlt input { border-color: #ff6b7f; animation: baWackeln .35s ease; }
/* Teams bleiben gesperrt, solange kein Name da ist */
/* Gesperrt heisst gedaempft, nicht unlesbar - man soll die Teams ja sehen */
.tiles.gesperrt .tile { opacity: .62; filter: saturate(.5); pointer-events: none; }

/* ---------- Team-Kacheln ----------
   Zwei Spalten. Bei ungerader Anzahl wird die letzte Kachel über beide
   Spalten gelegt, aber auf halbe Breite zentriert - so entsteht unten keine
   Lücke rechts, sondern ein mittiger Knopf. */
.tiles {
  flex: 1; display: grid; gap: var(--g);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  align-content: stretch;
  min-height: 0;
}
.tiles[data-n="1"] { grid-template-columns: 1fr; }
.tiles > .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - var(--g) / 2);
  justify-self: center;
}
.tiles[data-n="1"] > .tile:last-child:nth-child(odd) { width: 100%; }

.tile {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 2px solid rgba(255, 255, 255, .22);
  background: var(--c);
  color: #0c0c14; font-weight: 800; font-size: clamp(17px, 5.2vw, 30px);
  display: grid; place-items: center; text-align: center; padding: 10px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .28), 0 16px 30px rgba(0, 0, 0, .35);
  transition: transform .12s cubic-bezier(.2, .9, .25, 1.5), box-shadow .12s, filter .2s;
  animation: tileIn .45s cubic-bezier(.2, .9, .25, 1.3) backwards;
}
.tile:active { transform: translateY(6px); box-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
.tile.dark { color: #fff; }
.tile .cnt {
  position: absolute; top: 9px; right: 12px; font-size: 12px; font-weight: 700;
  opacity: .65;
}
@keyframes tileIn { from { opacity: 0; transform: translateY(22px) scale(.92); } }

.wait { text-align: center; color: var(--dim); font-size: 15px; margin: 14px 0 4px; }
.wait[hidden] { display: none; }

/* ---------- Bühne: alles mittig und schmal, auch auf breiten Fenstern ---- */
#sBuzz { align-items: stretch; }
#sBuzz > * { width: min(520px, 100%); margin-left: auto; margin-right: auto; }

/* Das [hidden]-Attribut MUSS gewinnen. Vorher überstimmte display:flex es
   und der Buzzer lag als Riesenkreis über allen anderen Eingaben. */
.buzzwrap[hidden], .answerwrap[hidden], .promptwrap[hidden],
.zuschauen[hidden], .standby[hidden] { display: none !important; }

/* ---------- Ruhezustand ---------- */
.standby {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; color: var(--dim);
}
.sb-puls { display: flex; gap: 9px; }
.sb-puls i {
  width: 11px; height: 11px; border-radius: 50%; background: var(--c, #7c5cff);
  opacity: .35; animation: sbPuls 1.6s ease-in-out infinite;
}
.sb-puls i:nth-child(2) { animation-delay: .2s; }
.sb-puls i:nth-child(3) { animation-delay: .4s; }
@keyframes sbPuls { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }
.sb-text {
  font-family: 'Anton', sans-serif; font-size: 30px; letter-spacing: .1em;
  color: var(--ink); opacity: .55;
}
.sb-sub { font-size: 14.5px; }

/* ---------- Buzzer ---------- */
.buzzwrap { flex: 1; display: grid; place-items: center; min-height: 0; padding: 6px 0; }
.buzz {
  position: relative;
  width: min(84vw, 46vh, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c, #7c5cff) 96%, #fff), var(--c, #7c5cff) 58%,
    color-mix(in srgb, var(--c, #7c5cff) 62%, #000) 100%);
  box-shadow:
    0 22px 0 color-mix(in srgb, var(--c, #7c5cff) 45%, #000),
    0 40px 70px rgba(0, 0, 0, .55),
    inset 0 3px 10px rgba(255, 255, 255, .3);
  color: #0c0c14;
  font-family: 'Anton', sans-serif; font-size: clamp(30px, 11vw, 68px);
  letter-spacing: .07em; text-transform: uppercase;
  display: grid; place-items: center;
  transition: transform .1s, filter .3s, box-shadow .1s, opacity .3s;
  animation: buzzRein .45s cubic-bezier(.16, 1.2, .3, 1) both;
}
@keyframes buzzRein { from { opacity: 0; transform: scale(.7); } }
.buzz:not([disabled]):active {
  transform: translateY(18px);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c, #7c5cff) 45%, #000), 0 12px 26px rgba(0, 0, 0, .5);
}
.buzz .ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--c, #7c5cff) 85%, #fff); opacity: 0;
}
.buzz.armed .ring { animation: pulse 1.5s ease-out infinite; }
@keyframes pulse {
  0% { opacity: .85; transform: scale(1); }
  75% { opacity: 0; transform: scale(1.24); }
  100% { opacity: 0; transform: scale(1.24); }
}
.buzz.armed { animation: breathe 1.7s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.14); } }
.buzz[disabled] { filter: grayscale(.7) brightness(.5); box-shadow: 0 10px 0 rgba(0, 0, 0, .5); }
.buzz.blocked { filter: grayscale(1) brightness(.34); }
.buzz.blocked::after {
  content: '⏸'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(40px, 14vw, 96px); opacity: .55; color: #fff;
}
.buzz.zufrueh { filter: grayscale(1) brightness(.4); }

.state { text-align: center; color: var(--dim); font-size: 15.5px; margin: 8px 0 4px; min-height: 1.4em; }

/* ---------- Eingaben: Grundlage ----------
   Alle Felder dunkel mit heller Schrift. Ohne diese Regeln erben freistehende
   Eingaben nur `color: inherit` und stehen weiss auf weissem Browser-Standard. */
.answerwrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 0; }
.answerwrap label { font-size: 15px; color: var(--dim); }
.answerwrap textarea,
.p-body textarea {
  width: 100%; resize: none; padding: 15px; border-radius: 16px; font-size: 19px;
  border: 1px solid var(--line); background: #0e0d1a; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.answerwrap textarea:focus,
.p-body textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 92, 255, .22); }
.answerwrap textarea:disabled { opacity: .55; }
.answer-ok { color: #4ade80; font-size: 15px; text-align: center; margin: 0; font-weight: 600; }
.answer-ok[hidden] { display: none; }

/* ---------- Aufgaben-Rahmen ---------- */
.promptwrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 0; }
.p-title { text-align: center; }
.p-title .haupt {
  display: block; font-size: clamp(19px, 5.4vw, 25px); font-weight: 700; line-height: 1.25;
  letter-spacing: -.01em;
}
.p-title small {
  display: block; margin-top: 7px; font-size: 14px; font-weight: 400;
  color: var(--dim); line-height: 1.45;
}
.p-body { display: flex; flex-direction: column; gap: 14px; }

/* Zahleneingabe - hoher Kontrast, klar als Feld erkennbar */
.p-number { display: flex; flex-direction: column; gap: 10px; }
.p-num-reihe { display: flex; align-items: stretch; gap: 10px; }
.p-num-reihe button {
  width: 62px; flex: none; border-radius: 16px; font-size: 26px; font-weight: 700;
  border: 1px solid var(--line); background: #16142a; color: var(--ink);
  transition: background .15s, transform .1s;
}
.p-num-reihe button:active { transform: scale(.94); background: #221f3d; }
.p-number input {
  flex: 1; min-width: 0; text-align: center;
  font-family: 'Anton', sans-serif; font-size: 42px; letter-spacing: .04em;
  padding: 14px 10px; border-radius: 16px;
  border: 1px solid var(--line); background: #0e0d1a; color: var(--ink);
  outline: none; -moz-appearance: textfield;
  transition: border-color .2s, box-shadow .2s;
}
.p-number input::-webkit-outer-spin-button,
.p-number input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-number input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 92, 255, .22); }
.p-number input::placeholder { color: rgba(255, 255, 255, .3); }
.p-hint { text-align: center; color: var(--dim); font-size: 13.5px; }

/* Regler */
.p-dial { display: flex; flex-direction: column; gap: 10px; }
.p-dial .skala { display: flex; justify-content: space-between; gap: 10px; }
.p-dial .skala span {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
}
.p-dial input[type=range] { width: 100%; height: 44px; accent-color: var(--c, #7c5cff); background: transparent; }
.p-wert {
  text-align: center; font-family: 'Anton', sans-serif; font-size: 46px; line-height: 1;
  color: var(--c, #7c5cff); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px color-mix(in srgb, var(--c, #7c5cff) 60%, transparent);
}
.p-bogen { width: 100%; height: 126px; overflow: visible; }
.p-bogen line { transition: all .18s cubic-bezier(.2, .9, .25, 1.3); }

/* Reaktionsknopf */
.p-react {
  width: 100%; aspect-ratio: 1/1; max-height: 46vh; border-radius: 30px;
  font-family: 'Anton', sans-serif; font-size: clamp(30px, 10vw, 62px); letter-spacing: .06em;
  background: #1c1b2e; color: #6b6a85; border: 1px solid var(--line);
  transition: background .1s, color .1s, transform .1s;
}
.p-react.los { background: linear-gradient(160deg, #4ade80, #16a34a); color: #05210f; border-color: #4ade80; }
.p-react.los:active { transform: scale(.97); }

.zuschauen { flex: 1; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 17px; padding: 20px; }

/* ================================================================
   SPLIT OR STEAL — Entscheidungskammer
   Zwei Karten, volle Daumenbreite, klarer Einsatz oben. Die Wahl ist
   endgültig, das muss man sehen und fühlen.
   ================================================================ */
.sos { display: flex; flex-direction: column; gap: 16px; }

.sos-pot {
  position: relative; text-align: center; padding: 16px 20px 18px;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.sos-pot::after {                      /* wanderndes Licht im Topf */
  content: ''; position: absolute; inset: -60% -20% auto -20%; height: 180%;
  background: radial-gradient(closest-side, rgba(255, 209, 102, .3), transparent);
  animation: sosSchimmer 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sosSchimmer { from { transform: translateX(-28%); } to { transform: translateX(28%); } }
.sos-pot .label {
  position: relative; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.sos-pot .zahl {
  position: relative; display: block; margin-top: 2px;
  font-family: 'Anton', sans-serif; font-size: clamp(46px, 15vw, 76px); line-height: 1;
  color: #ffd166; text-shadow: 0 0 34px rgba(255, 209, 102, .55);
  font-variant-numeric: tabular-nums;
}
.sos-pot .sub { position: relative; font-size: 13px; color: rgba(255, 255, 255, .58); }

.sos-karten { display: flex; flex-direction: column; gap: 14px; }

.sos-karte {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px;
  width: 100%; padding: 20px 20px; border-radius: 24px; text-align: left;
  border: 1px solid var(--rand);
  background: linear-gradient(150deg, var(--hell), var(--dunkel));
  box-shadow: 0 12px 0 var(--sockel), 0 22px 46px rgba(0, 0, 0, .5),
              inset 0 1px 0 var(--glanz, rgba(255, 255, 255, .28));
  color: var(--fg);
  transition: transform .13s cubic-bezier(.2, .9, .25, 1.4), box-shadow .13s, filter .25s, opacity .3s;
  animation: sosRein .5s cubic-bezier(.16, 1.2, .3, 1) backwards;
}
.sos-karte:nth-child(2) { animation-delay: .09s; }
@keyframes sosRein { from { opacity: 0; transform: translateY(30px) scale(.94); } }

.sos-karte .icon { width: 58px; height: 58px; }
.sos-karte .txt b {
  display: block; font-size: clamp(24px, 7vw, 32px); font-weight: 800;
  letter-spacing: .01em; line-height: 1;
}
.sos-karte .txt small {
  display: block; margin-top: 5px; font-size: 14px; font-weight: 600;
  color: var(--fg-weich); line-height: 1.35;
}
.sos-karte .haken {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--fg-weich); font-size: 18px; font-weight: 800;
  color: transparent; transition: all .3s cubic-bezier(.2, .9, .25, 1.5);
}
/* Glanz beim Drücken */
.sos-karte::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%);
  transform: translateX(-135%); transition: transform .75s ease-out;
}
.sos-karte:active::before { transform: translateX(135%); }

/* Hell + dunkle Schrift = die sichere Wahl. Tief + helle Schrift = Risiko.
   Die Umkehrung ist Absicht: sie trennt die beiden Karten auf einen Blick
   und bringt beide über die Kontrastschwelle. */
.sos-teilen {
  --hell: #7df0b4; --dunkel: #34c47e; --sockel: #157a4b; --rand: #a7f3c9;
  --fg: #052313; --fg-weich: rgba(5, 35, 19, .82);
}
.sos-klauen {
  --hell: #d61f3f; --dunkel: #8f0f24; --sockel: #4d0713; --rand: #ff7f95;
  --fg: #fff5f7; --fg-weich: rgba(255, 245, 247, .86);
  --glanz: rgba(255, 255, 255, .18);
}

@media (hover: hover) {
  .sos-karte:hover { transform: translateY(-4px); box-shadow: 0 16px 0 var(--sockel), 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28); }
}
.sos-karte:active { transform: translateY(9px); box-shadow: 0 3px 0 var(--sockel), 0 8px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .28); }
.sos-karte:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Gewählt / verworfen */
.sos-karten.entschieden .sos-karte { pointer-events: none; }
.sos-karte.gewaehlt {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 0 0 3px #fff, 0 12px 0 var(--sockel), 0 26px 54px rgba(0, 0, 0, .55);
  animation: sosLock .45s cubic-bezier(.2, .9, .25, 1.6);
}
@keyframes sosLock { 40% { transform: translateY(0) scale(.97); } }
.sos-karte.gewaehlt .haken { background: var(--fg); border-color: var(--fg); color: var(--dunkel); }
.sos-karte.verworfen { opacity: .28; filter: grayscale(.7); transform: scale(.95); }

.sos-fuss {
  text-align: center; font-size: 13.5px; color: var(--dim); line-height: 1.45;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.sos-fuss.fertig { color: #4ade80; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sos-karte, .sos-pot::after { animation: none; }
  .sos-karte::before { transition: none; }
}


/* ================================================================
   WAVELENGTH — das Rad
   Der Bogen ist das Bedienelement. Kein zweites Element, an dem man
   zieht, waehrend man woanders hinschaut.
   ================================================================ */
.wl { display: flex; flex-direction: column; gap: 14px; }

/* Rolle: der Sender muss wissen, dass sein Bildschirm geheim ist */
.wl-rolle {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--dim);
}
.wl-rolle .wl-punkt {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  animation: wlBlink 1.6s ease-in-out infinite;
}
.wl-rolle.geheim { color: #ffd7a3; border-color: rgba(255, 190, 110, .4); background: rgba(255, 170, 70, .12); }
.wl-rolle.geheim .wl-punkt { background: #ffb347; box-shadow: 0 0 12px #ffb347; }
.wl-rolle.raten { color: #a5f3fc; border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); }
.wl-rolle.raten .wl-punkt { background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
@keyframes wlBlink { 50% { opacity: .3; } }

.wl-begriff {
  text-align: center; font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 9vw, 46px); line-height: 1.05; letter-spacing: .01em;
  color: #fff; text-shadow: 0 0 34px rgba(155, 108, 255, .55);
  animation: wlRein .5s cubic-bezier(.16, 1.2, .3, 1) both;
}
@keyframes wlRein { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* Das Rad */
.wl-rad {
  position: relative; touch-action: none; cursor: grab;
  padding: 4px 0 0; border-radius: 24px;
  transition: filter .2s;
}
.wl-rad:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.wl-rad.greift { cursor: grabbing; filter: brightness(1.08); }
.wl-svg { width: 100%; height: auto; display: block; overflow: visible; }
.wl-zeiger { transition: none; }
.wl-rad:not(.greift) .wl-zeiger { transition: all .18s cubic-bezier(.2, .9, .25, 1.35); }
.wl-spitze { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .9)); }

/* Wert in der Mitte unter der Nabe */
.wl-wert {
  position: absolute; left: 0; right: 0; bottom: -6px; text-align: center;
  pointer-events: none;
}
.wl-wert b {
  font-family: 'Anton', sans-serif; font-size: clamp(34px, 11vw, 54px);
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .7);
}

/* Pole als Chips, sprachlich verankert */
.wl-pole { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wl-chip {
  flex: 1; padding: 11px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink);
  line-height: 1.25;
}
.wl-chip.links { text-align: left; border-left: 3px solid #5b7cff; }
.wl-chip.rechts { text-align: right; border-right: 3px solid #22d3ee; }

/* Feinjustierung */
.wl-fein { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wl-step {
  width: 52px; height: 46px; border-radius: 14px; font-size: 24px; line-height: 1;
  border: 1px solid var(--line); background: #16142a; color: var(--ink);
  transition: background .15s, transform .1s;
}
.wl-step:active { transform: scale(.93); background: #221f3d; }
.wl-hilfe { font-size: 13px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .wl-begriff, .wl-rolle .wl-punkt { animation: none; }
  .wl-rad .wl-zeiger { transition: none !important; }
}


/* ================================================================
   BLINDAUKTION — das verdeckte Gebot
   Ein Formularfeld waere hier falsch. Der Einsatz ist eine Wette auf
   die eigenen Punkte, also bekommt er die Buehne: grosse Zahl, ein
   Umschlag drumherum, und sichtbar steigende Hitze je mehr man setzt.
   ================================================================ */
.ba { display: flex; flex-direction: column; gap: 14px; }

.ba-preis {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, .35); background: rgba(255, 209, 102, .1);
}
.ba-preis span { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 209, 102, .85); }
.ba-preis b {
  font-family: 'Anton', sans-serif; font-size: 30px; line-height: 1; color: #ffd166;
  text-shadow: 0 0 22px rgba(255, 209, 102, .5);
}

/* Der Umschlag */
.ba-karte {
  --hitze: 0;
  position: relative; overflow: hidden;
  padding: 22px 20px 20px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(120% 90% at 50% 0%,
      rgba(255, 90, 60, calc(var(--hitze) * .34)), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 44px rgba(0, 0, 0, .45);
  transition: background .35s ease, box-shadow .35s;
}
/* Falzlinie wie bei einem Kuvert */
.ba-karte::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 54%;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  pointer-events: none;
}
.ba-siegel {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  color: rgba(255, 209, 102, .9);
  border: 1px solid rgba(255, 209, 102, .4); background: rgba(255, 209, 102, .12);
}
.ba-label {
  text-align: center; font-size: 11.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--dim);
}
.ba-zahl { text-align: center; margin: 2px 0 4px; }
.ba-zahl b {
  font-family: 'Anton', sans-serif; font-size: clamp(56px, 19vw, 92px); line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 calc(14px + var(--hitze) * 34px) rgba(255, 120, 90, calc(.25 + var(--hitze) * .6));
}
.ba-risiko {
  text-align: center; font-size: 13.5px; color: var(--dim); min-height: 2.6em;
  line-height: 1.4; padding: 0 6px;
}
.ba-risiko b { color: #ffb4a2; }

/* Regler */
.ba-regler {
  width: 100%; height: 44px; margin-top: 4px;
  accent-color: #ffd166; background: transparent; touch-action: none;
}

/* Schnellwahl */
.ba-chips { display: flex; gap: 8px; margin-top: 10px; }
.ba-chip {
  flex: 1; min-height: 46px; padding: 12px 4px; border-radius: 13px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background .15s, transform .1s, border-color .15s;
}
.ba-chip:active { transform: scale(.94); background: rgba(255, 209, 102, .2); border-color: rgba(255, 209, 102, .6); }
.ba-fein { display: flex; gap: 8px; margin-top: 8px; }
.ba-step {
  flex: 1; min-height: 46px; padding: 12px; border-radius: 13px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--dim);
}
.ba-step:active { background: rgba(255, 255, 255, .1); color: var(--ink); }

.ba-warnung {
  margin-top: 10px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 77, 109, .16); border: 1px solid rgba(255, 77, 109, .5); color: #ffc2cd;
  animation: baWackeln .35s ease;
}
.ba-warnung[hidden] { display: none; }
@keyframes baWackeln {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.ba-fuss { text-align: center; font-size: 13px; color: var(--dim); line-height: 1.45; }

/* Versiegelt */
.ba.fertig .ba-karte { box-shadow: 0 0 0 2px #ffd166, 0 20px 44px rgba(0, 0, 0, .5); }
.ba.fertig .ba-siegel { background: #ffd166; color: #3a2a05; border-color: #ffd166; transform: scale(1.15); }
.ba.fertig .ba-regler, .ba.fertig .ba-chips, .ba.fertig .ba-fein { opacity: .35; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ba-karte { transition: none; }
  .ba-warnung { animation: none; }
}


/* ---------- Rückmeldung ---------- */
.flash { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; }
.flash.show { display: grid; }
.flashInner {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: var(--fc, #7c5cff);
  animation: flashIn .35s cubic-bezier(.2, .9, .25, 1.3);
}
.flash #flashText {
  font-family: 'Anton', sans-serif; font-size: clamp(30px, 11vw, 76px);
  color: #0c0c14; letter-spacing: .04em; text-transform: uppercase; padding: 20px;
  line-height: 1.1;
}
@keyframes flashIn { from { opacity: 0; transform: scale(.9); } }

/* Verbindungsverlust deckt alles zu - ein Streifen am Rand wird uebersehen */
.conn {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 24px;
  background: rgba(11, 10, 23, .94);
  backdrop-filter: blur(3px);
  animation: connRein .2s ease-out;
}
.conn[hidden] { display: none; }
.conn-box {
  width: min(360px, 100%); text-align: center;
  padding: 26px 22px; border-radius: 22px;
  background: #2a1220; border: 2px solid #ff6b7f;
}
.conn-icon { font-size: 46px; margin-bottom: 10px; }
.conn-titel {
  display: block; font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: 28px; letter-spacing: .04em; color: #ffd9df;
}
.conn-sub { display: block; margin-top: 8px; font-size: 15px; color: #e5b9c4; line-height: 1.4; }
.conn-punkte { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.conn-punkte i {
  width: 9px; height: 9px; border-radius: 50%; background: #ff6b7f;
  animation: connPuls 1.1s infinite;
}
.conn-punkte i:nth-child(2) { animation-delay: .18s; }
.conn-punkte i:nth-child(3) { animation-delay: .36s; }
@keyframes connPuls { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes connRein { from { opacity: 0; } }

/* Raus aus dem Raum: der Ruhezustand wird zur Schlussmeldung */
body.raus .sb-text { color: #ff9db0; font-size: 30px; }
body.raus .sb-sub { font-size: 15px; max-width: 22em; margin: 8px auto 0; }
body.raus .topbar { opacity: .35; }

@media (prefers-reduced-motion: reduce) {
  .tile, .buzz, .flashInner { animation: none !important; }
  .buzz.armed .ring { animation: none; opacity: .8; }
}

/* ---- Reaktionsduell auf dem Handy ---------------------------------------
   Die Flaeche sitzt dort, wo sonst der Buzzer ist, und ist genauso gross -
   niemand soll waehrend der Messung erst suchen muessen. Die Ampel steht
   direkt darueber, damit man nicht zum Fernseher schauen muss. */
.rx { display: flex; flex-direction: column; gap: 16px; align-items: stretch; flex: 1; min-height: 0; }

.rx-halten { display: flex; gap: 12px; justify-content: center; padding-top: 4px; }
.rx-halten i {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .16);
  animation: rxLauf 1.5s ease-in-out infinite;
}
.rx-halten i:nth-child(2) { animation-delay: .18s; }
.rx-halten i:nth-child(3) { animation-delay: .36s; }
@keyframes rxLauf {
  0%, 70%, 100% { background: rgba(255, 255, 255, .1); }
  35% { background: #ffb020; box-shadow: 0 0 18px rgba(255, 176, 32, .6); }
}
/* Bei Gruen hoert das Wandern auf - alle drei stehen auf Gruen */
.rx.los .rx-halten i, .rx.getroffen .rx-halten i {
  animation: none; background: #22c55e; border-color: #22c55e;
  box-shadow: 0 0 22px rgba(34, 197, 94, .6);
}
.rx.fehlstart .rx-halten i {
  animation: none; background: #d92546; border-color: #d92546; box-shadow: none;
}

.rx-pad {
  flex: 1; min-height: 240px; width: 100%; display: flex; flex-direction: column;
  gap: 8px; align-items: center; justify-content: center; text-align: center;
  border-radius: 28px; padding: 20px; cursor: pointer; font: inherit;
  color: var(--ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  border: 2px solid rgba(255, 255, 255, .14);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .3));
  transition: background .12s, border-color .12s, transform .1s;
}
.rx-gross {
  font-family: 'Anton', system-ui, sans-serif; font-size: clamp(38px, 13vw, 64px);
  line-height: 1; letter-spacing: .02em;
}
.rx-klein { font-size: 14px; color: var(--muted); max-width: 15em; line-height: 1.3; }

.rx.los .rx-pad {
  background: linear-gradient(170deg, #2bd36f, #12a04d);
  border-color: #7bf3ac; color: #04220f;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .22), 0 18px 50px rgba(18, 160, 77, .45);
  animation: rxKnall .28s var(--spring) both;
}
.rx.los .rx-klein { color: rgba(4, 34, 15, .72); }
@keyframes rxKnall { from { transform: scale(.9); } }
.rx.los .rx-pad:active { transform: scale(.97); }

.rx.getroffen .rx-pad {
  background: linear-gradient(170deg, rgba(34, 197, 94, .3), rgba(0, 0, 0, .35));
  border-color: #22c55e; color: var(--ink); box-shadow: none; animation: none;
}
.rx.getroffen .rx-klein { color: var(--muted); }

.rx.fehlstart .rx-pad {
  background: linear-gradient(170deg, #d92546, #8d0f28);
  border-color: #ff9db0; color: #fff;
  box-shadow: 0 0 0 6px rgba(217, 37, 70, .22);
  animation: rxRuettel .45s;
}
.rx.fehlstart .rx-klein { color: rgba(255, 255, 255, .85); }
@keyframes rxRuettel {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); } 40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}

.rx-erg {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 12px; border-radius: 18px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05);
}
.rx-erg b { font-family: 'Anton', system-ui, sans-serif; font-size: 40px; line-height: 1; }
.rx-erg small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rx-erg.gut b { color: #3ddc97; }
.rx-erg.gut.wartet b { color: var(--muted); }
.rx-erg.schlecht {
  background: rgba(217, 37, 70, .18); border-color: rgba(217, 37, 70, .5);
  color: #ff9db0; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .rx-halten i { animation: none; }
  .rx.los .rx-pad, .rx.fehlstart .rx-pad { animation: none; }
}

/* Erst wählen, dann bestätigen - ein Fingertipp allein gilt nicht mehr */
.sos-karte.aktiv {
  outline: 3px solid #fff;
  outline-offset: 2px;
  transform: translateY(-3px) scale(1.02);
}
.sos-fest {
  width: 100%; margin-top: 12px; padding: 17px; border-radius: 18px;
  font-size: 18px; font-weight: 800; color: #06210f;
  background: linear-gradient(120deg, #3ddc97, #22c55e);
  transition: opacity .2s, transform .12s, background .2s;
}
.sos-fest.klauen { background: linear-gradient(120deg, #ff6b7f, #d92546); color: #fff; }
.sos-fest:disabled { opacity: .35; }
.sos-fest:not(:disabled):active { transform: scale(.97); }

/* Auswahlliste auf dem Handy: Bluff, Wer im Raum */
.lst { display: flex; flex-direction: column; gap: 12px; }
.lst-info { font-size: 14px; color: var(--dim); line-height: 1.35; text-align: center; }
.lst-box { display: flex; flex-direction: column; gap: 9px; }
.lst-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 15px;
  text-align: left; font-size: 16.5px; font-weight: 600; color: var(--ink);
  border: 2px solid var(--line); background: rgba(0, 0, 0, .3);
  transition: border-color .15s, background .15s, transform .12s;
}
.lst-opt .lst-haken { opacity: 0; font-style: normal; color: #3ddc97; font-size: 19px; }
.lst-opt.aktiv {
  border-color: #7c5cff; background: rgba(124, 92, 255, .2);
  transform: translateX(3px);
}
.lst-opt.aktiv .lst-haken { opacity: 1; }
.lst-opt.gesperrt { opacity: .4; }
.lst-opt.gesperrt small { font-size: 11.5px; color: var(--dim); font-weight: 400; }
.lst-opt.blass { opacity: .35; }

/* Baupause: die Spielleitung ändert etwas am Board */
body.pausiert .screen { filter: blur(3px) saturate(.5); pointer-events: none; }
.baustelle {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  justify-content: space-between; background: rgba(11, 10, 23, .93);
  animation: bsRein .3s ease both;
}
@keyframes bsRein { from { opacity: 0; } }
.bs-streifen {
  height: 16px; flex: none;
  background: repeating-linear-gradient(45deg, #ffc857 0 18px, #0b0a17 18px 36px);
  animation: bsLauf 1.4s linear infinite;
}
@keyframes bsLauf { to { background-position: 51px 0; } }
.bs-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 24px; text-align: center;
}
.bs-zeichen { font-size: 64px; animation: bsWipp 2.4s ease-in-out infinite; }
@keyframes bsWipp { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.bs-titel { font-family: 'Anton', sans-serif; font-size: 32px; letter-spacing: .06em; }
.bs-text { font-size: 16px; color: var(--dim); max-width: 17em; line-height: 1.4; }
.bs-punkte { display: flex; gap: 8px; margin-top: 6px; }
.bs-punkte i {
  width: 9px; height: 9px; border-radius: 999px; background: #ffc857;
  animation: sbPuls 1.4s ease-in-out infinite;
}
.bs-punkte i:nth-child(2) { animation-delay: .2s; }
.bs-punkte i:nth-child(3) { animation-delay: .4s; }
.bs-fuss { font-size: 13px; color: var(--dim); opacity: .75; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .bs-streifen, .bs-zeichen, .bs-punkte i { animation: none; }
}

/* Zahl von 0 bis 100 — Karo König */
.z100 { display: flex; flex-direction: column; gap: 13px; }
.z100-anzeige { text-align: center; }
.z100-anzeige b {
  font-family: 'Anton', sans-serif; font-size: clamp(56px, 20vw, 90px);
  line-height: 1; color: #ff6b7f; font-variant-numeric: tabular-nums;
}
#z100Reg { width: 100%; height: 40px; accent-color: #ff6b7f; }
.z100-skala { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: -8px; }
.z100-ziel {
  text-align: center; font-size: 14px; font-weight: 700; color: #ffc857;
  padding: 9px; border-radius: 12px; background: rgba(255, 200, 87, .12);
}
.z100-info { font-size: 12.5px; color: var(--dim); line-height: 1.45; text-align: center; }
.z100-tasten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.z100-taste {
  min-height: 48px; border-radius: 13px; font-size: 17px; font-weight: 700;
  border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink);
}
.z100-taste:active { background: rgba(255, 107, 127, .25); }
.z100-taste:disabled { opacity: .35; }
.z100.fertig .z100-anzeige b { color: #3ddc97; }

/* Zwei farbige Möglichkeiten — Minderheit gewinnt */
.fw { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.fw-info {
  font-size: 13.5px; color: var(--dim); text-align: center; line-height: 1.4;
}
.fw-feld { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fw-seite {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: 20px; text-align: left; color: #0b0b12;
  background: linear-gradient(135deg, var(--c), var(--cd));
  border: 3px solid transparent;
  box-shadow: 0 10px 0 rgba(0,0,0,.28), 0 16px 34px rgba(0,0,0,.4);
  transition: transform .14s cubic-bezier(.2,.9,.25,1.5), box-shadow .14s, border-color .2s, opacity .3s;
}
.fw-seite:active { transform: translateY(6px); box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.fw-nr {
  flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,0,0,.3); color: #fff;
  font-family: 'Anton', sans-serif; font-size: 18px;
}
.fw-txt {
  flex: 1; font-size: clamp(19px, 6vw, 30px); font-weight: 800; line-height: 1.12;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.fw-haken { flex: none; font-size: 26px; opacity: 0; transition: opacity .2s; }
.fw-seite.aktiv { border-color: #fff; transform: translateY(-3px) scale(1.02); }
.fw-seite.aktiv .fw-haken { opacity: 1; }
.fw-seite.blass { opacity: .3; filter: grayscale(.6); }

.fw-fest {
  flex: none; width: 100%; padding: 17px; border-radius: 18px;
  font-size: 17px; font-weight: 800; color: #0b0b12;
  background: linear-gradient(120deg, var(--c, #555), var(--cd, #333));
  transition: opacity .2s, transform .12s, background .25s;
}
.fw-fest:disabled { opacity: .3; background: rgba(255,255,255,.1); color: var(--dim); }
.fw-fest.bereit:not(:disabled) { animation: fwPuls 1.6s ease-in-out infinite; }
@keyframes fwPuls { 50% { filter: brightness(1.15); } }
.fw-fest:not(:disabled):active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) { .fw-fest.bereit { animation: none; } }

/* Reaktionsduell: vor dem Start ist ein Tippen folgenlos - der kurze Stups
   sagt „noch nicht", statt zu disqualifizieren. */
.rx.zufrueh .rx-pad { animation: rxStups .3s ease; }
@keyframes rxStups {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-7px); }
  65% { transform: translateX(5px); }
}
/* Ampel läuft: die Fläche wird wachsam, aber noch nicht grün.
   Das :not(.los) ist entscheidend - diese Regel steht in der Datei nach der
   grünen, und ohne den Ausschluss bliebe das Pad bei Grün orange. */
.rx.scharf:not(.los):not(.getroffen) .rx-pad {
  border-color: rgba(255, 176, 32, .6);
  background: linear-gradient(170deg, rgba(255, 176, 32, .16), rgba(0, 0, 0, .3));
}
.rx.scharf:not(.los):not(.getroffen) .rx-gross { color: #ffb020; }
@media (prefers-reduced-motion: reduce) { .rx.zufrueh .rx-pad { animation: none; } }
/* ---------- Reihenfolge: antippen sortiert ein ---------- */
.p-reihe { display: flex; flex-direction: column; gap: 10px; }
.pr-skala {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.pr-liste { display: flex; flex-direction: column; gap: 8px; }
.pr-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 58px; padding: 10px 14px; border-radius: 15px; text-align: left;
  border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink);
  transition: border-color .15s, background .15s, transform .1s;
}
.pr-item:active { transform: scale(.98); }
.pr-nr {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: 'Anton', sans-serif; font-size: 16px;
  border: 1px dashed var(--line); color: var(--dim); background: rgba(0, 0, 0, .25);
}
.pr-txt { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.25; }
.pr-item.drin { border-color: var(--brand); background: rgba(124, 92, 255, .2); }
.pr-item.drin .pr-nr {
  border-style: solid; border-color: transparent; color: #fff;
  background: linear-gradient(140deg, #7c5cff, #a855f7);
}

/* Formatvorgabe über dem Eingabefeld - alle sollen gleich schreiben,
   sonst verrät die Schreibweise die echte Antwort. */
.p-format {
  display: block; margin: 8px 0 2px; padding: 7px 11px;
  border-radius: 10px; font-size: 13px; line-height: 1.35; font-weight: 600;
  color: #ffd166; background: rgba(255, 209, 102, .12);
  border: 1px dashed rgba(255, 209, 102, .4);
}

/* Auch auf dem Handy einheitlich - die Auswahlliste zeigt dieselben Texte
   wie die Tafel, und dort darf die Schreibweise nichts verraten. */
.lst-opt > span { text-transform: uppercase; }

/* ---------- Kopfzeile: Verbindungspunkt und Punktestand ---------- */
.topbar .spacer { flex: 1; }
.room .verb {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: middle;
  background: #ff6b7f; transition: background .3s;
}
.room .verb.da { background: #3ddc97; }
.punkte {
  flex: none; font-family: 'Anton', sans-serif; font-size: 18px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}
.punkte[hidden] { display: none; }

/* ---------- Einstellungen ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-hg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sheet-box {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #191436, #12102a);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  animation: sheetRein .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes sheetRein { from { transform: translateY(100%); } }
.sheet-griff { width: 42px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 4px auto 12px; }
.sheet-box h3 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 22px; margin: 0 0 14px; letter-spacing: .05em; }

.opt-feld { display: block; margin-bottom: 12px; }
.opt-feld span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.opt-feld input {
  width: 100%; padding: 13px 15px; border-radius: 14px; font-size: 17px;
  border: 2px solid var(--line); background: rgba(0, 0, 0, .35); outline: none;
}
.opt-feld input:focus { border-color: var(--brand); }

.opt-zeile {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 15px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink);
}
.oz-txt { flex: 1; min-width: 0; }
.oz-txt b { display: block; font-size: 16px; }
.oz-txt small { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.3; margin-top: 2px; }
.oz-schalter {
  flex: none; width: 46px; height: 27px; border-radius: 99px; position: relative;
  background: rgba(255, 255, 255, .14); transition: background .2s;
}
.oz-schalter::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.opt-zeile.an .oz-schalter { background: #3ddc97; }
.opt-zeile.an .oz-schalter::after { transform: translateX(19px); }
.opt-zeile.geht-nicht { opacity: .5; }

.opt-btn {
  width: 100%; margin-top: 8px; padding: 14px; border-radius: 15px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .07);
}
.opt-btn[hidden] { display: none; }
.opt-btn.gefahr { color: #ff9db0; border-color: rgba(255, 107, 127, .4); background: rgba(255, 107, 127, .1); }
.opt-btn:active { transform: scale(.98); }
.opt-hinweis { text-align: center; font-size: 12px; color: var(--dim); margin: 12px 0 0; }

/* Name und Team nebeneinander in der Kopfzeile */
.michwer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.mw-name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.michwer .myteam { flex: none; font-size: 12px; font-weight: 600; color: var(--dim); }
.michwer .myteam:empty { display: none; }

/* ---------- Ruhezustand: Auflösung und Tafel-Übersicht ---------- */
@keyframes slRein { from { opacity: 0; transform: translateY(8px); } }

.sb-tafel { width: min(420px, 100%); margin: 16px auto 0; }
.sb-tafel[hidden] { display: none; }
.st-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 6px;
}
.st-hinweis { font-size: 12.5px; color: var(--dim); margin-bottom: 8px; line-height: 1.35; }
.st-hinweis[hidden] { display: none; }
.st-hinweis.dran { color: #ffd166; font-weight: 600; }
.st-gitter { display: grid; gap: 5px; }
.st-kat {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; text-align: center;
  color: var(--dim); padding: 3px 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-feld {
  min-height: 42px; display: grid; place-items: center; border-radius: 10px;
  font-family: 'Anton', sans-serif; font-size: clamp(13px, 3.6vw, 17px); color: #ffd166;
  background: rgba(124, 92, 255, .28); border: 1px solid var(--line);
  padding: 0; width: 100%;
}
/* Antippbar nur, wer gerade vorschlagen darf - sonst ist es reine Anzeige */
.st-feld.tippbar {
  cursor: pointer; border-color: rgba(255, 209, 102, .4);
  transition: transform .1s, background .15s;
}
.st-feld.tippbar:active { transform: scale(.93); background: rgba(124, 92, 255, .5); }
.st-feld.gewaehlt {
  background: #ffd166; color: #2a1e00; border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .25);
}
.st-feld.weg { background: rgba(255, 255, 255, .04); color: transparent; border-color: rgba(255,255,255,.07); }
.st-feld.leer { background: none; border-style: dashed; opacity: .25; }

/* Namensänderung erst mit Haken bestätigen */
.opt-bestaetig {
  display: flex; align-items: center; gap: 10px;
  margin: -4px 0 12px; padding: 11px 14px; border-radius: 14px;
  font-size: 14px; cursor: pointer;
  background: rgba(255, 209, 102, .1); border: 1px dashed rgba(255, 209, 102, .45);
  animation: obRein .2s ease-out;
}
.opt-bestaetig[hidden] { display: none; }
.opt-bestaetig input { width: 20px; height: 20px; flex: none; }
.opt-bestaetig b { color: #ffd166; }
@keyframes obRein { from { opacity: 0; transform: translateY(-6px); } }

/* „Jeder für sich": nur ein Knopf statt Kacheln - mittig statt in der Ecke */
.tiles.einzeln {
  display: flex; align-items: center; justify-content: center;
}
.tiles.einzeln .big { width: min(340px, 100%); margin: 0; }

/* ---------- Jemand hat gebuzzert ---------- */
.gebuzzert {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gc) 30%, transparent), transparent 70%),
    rgba(0, 0, 0, .32);
  border: 2px solid color-mix(in srgb, var(--gc) 55%, transparent);
  animation: gbRein .3s cubic-bezier(.2, .8, .2, 1);
}
.gebuzzert[hidden] { display: none; }
@keyframes gbRein { from { opacity: 0; transform: scale(.94); } }

/* Ringe laufen nach aussen - nur bei "du bist dran", sonst wäre es Unruhe */
.gb-welle { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.gb-welle i {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--gc); opacity: 0;
}
.gebuzzert.ich .gb-welle i { animation: gbWelle 2.4s ease-out infinite; }
.gebuzzert.ich .gb-welle i:nth-child(2) { animation-delay: .8s; }
.gebuzzert.ich .gb-welle i:nth-child(3) { animation-delay: 1.6s; }
@keyframes gbWelle {
  0% { transform: scale(.7); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.gb-kreis {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  font-size: 44px; margin-bottom: 10px; position: relative; z-index: 1;
  background: color-mix(in srgb, var(--gc) 26%, rgba(0, 0, 0, .4));
  border: 3px solid var(--gc);
}
.gebuzzert.ich .gb-kreis { box-shadow: 0 0 40px -6px var(--gc); animation: gbPuls 1.6s ease-in-out infinite; }
@keyframes gbPuls { 50% { transform: scale(1.06); } }

.gb-titel {
  position: relative; z-index: 1;
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(30px, 11vw, 46px); line-height: 1.05; letter-spacing: .03em;
  text-transform: uppercase; color: var(--gc);
}
.gb-name {
  position: relative; z-index: 1; margin-top: 2px;
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.gb-name:empty { display: none; }
.gb-sub {
  position: relative; z-index: 1; margin-top: 10px;
  font-size: 15px; line-height: 1.4; color: var(--dim); max-width: 22em;
}

/* Wer nur zusieht, bekommt es ruhiger: kein Leuchten, gedämpfte Farbe */
.gebuzzert.andere {
  background: rgba(0, 0, 0, .3);
  border-color: color-mix(in srgb, var(--gc) 35%, transparent);
}
.gebuzzert.andere .gb-kreis { border-width: 2px; box-shadow: none; }
.gebuzzert.andere .gb-titel { font-size: clamp(26px, 9vw, 38px); color: var(--dim); }
.gebuzzert.andere .gb-name { color: var(--gc); font-size: 20px; }
/* Der eigene Mitspieler ist kein Gegner - hier darf es freundlich bleiben */
.gebuzzert.andere.team .gb-titel { color: var(--gc); }

/* Handy: nichts, was gehalten wird, darf markierbar sein */
button, .buzz, .tile, .st-feld, .pr-item, .lst-opt, .fw-seite, .sos-karte {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Ausgesetzt ---------- */
.gesperrt-box {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 24px; border-radius: 24px;
  background: rgba(0, 0, 0, .34);
  border: 2px dashed color-mix(in srgb, var(--gc, #ff6b7f) 55%, transparent);
  animation: gbRein .3s cubic-bezier(.2, .8, .2, 1);
}
.gesperrt-box[hidden] { display: none; }
.gs-schloss { font-size: 54px; opacity: .9; margin-bottom: 6px; }
.gs-titel {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 9vw, 38px); letter-spacing: .04em;
  color: var(--gc, #ff6b7f);
}
.gs-sub { font-size: 15px; color: var(--ink); max-width: 20em; line-height: 1.4; margin-top: 4px; }
.gs-hin { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* ---------- Richtig / falsch ---------- */
#bewertung {
  position: fixed; inset: 0; z-index: 65;
  display: grid; place-items: center;
  /* Deckend, nicht durchscheinend: dahinter baut sich oft schon der naechste
     Zustand auf, und den soll man nicht durchflackern sehen. Faengt auch
     Klicks ab, damit niemand blind auf den Buzzer haut. */
  background: var(--bg);
  animation: bwRein .18s ease-out;
  transition: opacity .32s ease, visibility .32s;
  opacity: 1;
}
#bewertung[hidden] { display: none; }
#bewertung.aus { opacity: 0; pointer-events: none; }
#bewertung::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(65% 45% at 50% 50%, var(--bwc), transparent 72%);
  opacity: .3;
}
#bewertung.gut { --bwc: #3ddc97; }
#bewertung.schlecht { --bwc: #ff6b7f; }
#bewertung.fremd::before { opacity: .16; }
.bw-inner { position: relative; text-align: center; }
.bw-zeichen {
  font-size: clamp(80px, 30vw, 140px); line-height: 1; font-weight: 700;
  color: var(--bwc);
  animation: bwZeichen .45s cubic-bezier(.2, 1.4, .4, 1);
}
#bewertung.fremd .bw-zeichen { font-size: clamp(52px, 18vw, 84px); opacity: .8; }
.bw-titel {
  margin-top: 6px; font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(24px, 8vw, 34px); letter-spacing: .03em; color: var(--ink);
}
#bewertung.fremd .bw-titel { font-size: clamp(17px, 5vw, 22px); color: var(--dim); }
.bw-punkte {
  margin-top: 4px; font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 7vw, 30px); color: var(--bwc);
}
.bw-punkte:empty { display: none; }
#bewertung.fremd .bw-punkte { font-size: 18px; }
@keyframes bwRein { from { opacity: 0; } }
@keyframes bwZeichen { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
/* Bei „falsch" wackelt es kurz - das merkt man auch aus dem Augenwinkel */
#bewertung.schlecht.mich .bw-inner { animation: bwWackel .4s ease-in-out; }
@keyframes bwWackel {
  25% { transform: translateX(-9px); } 50% { transform: translateX(8px); }
  75% { transform: translateX(-5px); }
}

/* ---------- Runde vorbei: die Auflösung ---------- */
.aufloesung {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center; padding: 22px 20px; border-radius: 24px; position: relative;
  background:
    radial-gradient(130% 70% at 50% 0%, rgba(61, 220, 151, .22), transparent 68%),
    rgba(0, 0, 0, .34);
  border: 2px solid rgba(61, 220, 151, .5);
  animation: alRein .32s cubic-bezier(.2, .8, .2, 1);
}
.aufloesung[hidden] { display: none; }
@keyframes alRein { from { opacity: 0; transform: translateY(14px); } }

.al-band {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
}
.al-kat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.al-wert { font-family: 'Anton', sans-serif; font-size: 17px; color: #ffd166; }
.al-wert:empty { display: none; }

.al-frage {
  font-size: 15px; line-height: 1.4; color: var(--dim);
  max-width: 24em; margin-bottom: 14px;
}
.al-haken {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 27px; font-weight: 700; color: #04220f; background: #3ddc97;
  box-shadow: 0 0 28px -6px #3ddc97;
  animation: alHaken .45s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes alHaken { from { transform: scale(.3); opacity: 0; } }
.al-label {
  margin-top: 12px; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: #3ddc97;
}
.al-antwort {
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(28px, 9.5vw, 44px); line-height: 1.1; letter-spacing: .02em;
  margin-top: 4px; max-width: 15em;
}
.al-auch {
  margin-top: 8px; font-size: 13px; color: #9ee7c4;
  padding: 5px 12px; border-radius: 999px; background: rgba(61, 220, 151, .12);
}
.al-auch[hidden] { display: none; }

.al-fuss {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--dim);
}
.al-punkte { display: flex; gap: 6px; }
.al-punkte i {
  width: 7px; height: 7px; border-radius: 50%; background: #3ddc97;
  animation: alWarten 1.3s infinite;
}
.al-punkte i:nth-child(2) { animation-delay: .2s; }
.al-punkte i:nth-child(3) { animation-delay: .4s; }
@keyframes alWarten { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------------- Kartenfächer (Old Maid) -----------------------------
   Die Karten überlappen sich wie in der Hand. Gefächert wird über --dreh
   und --hoch, die beim Zeichnen je Karte gesetzt werden - dadurch bleibt
   der Fächer bei zwei wie bei sechs Karten mittig und gleich breit.

   Farbe erzählt die Rolle: Gold heisst „du bist dran, ordne dein Blatt",
   Grün heisst „du ziehst". Beides zieht sich durch Rahmen, Schein und
   Knopf, damit man beim Hochschauen sofort weiss, worum es gerade geht. */
.kw {
  display: flex; flex-direction: column; gap: 16px;
  --kw-gold: #ffd76a;
  --kw-gruen: #3ddc97;
}
.kw-block {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 12px 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}
/* Schein hinter dem Fächer. Liegt in der Ebene darunter und färbt sich je
   nach Rolle - das ist der ruhigste Weg, Zustand zu zeigen. */
.kw-block::before {
  content: ''; position: absolute; left: 50%; top: 42%;
  width: 300px; height: 190px; margin-left: -150px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .30), transparent 72%);
  filter: blur(12px);
  animation: kwSchein 5.5s ease-in-out infinite;
}
@keyframes kwSchein {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.08); }
}
.kw-block.kw-aktiv { border-color: color-mix(in srgb, var(--kw-gold) 45%, transparent); }
.kw-block.kw-aktiv::before { background: radial-gradient(closest-side, rgba(255, 215, 106, .34), transparent 72%); }
.kw-gegen.kw-zug::before { background: radial-gradient(closest-side, rgba(61, 220, 151, .30), transparent 72%); }
.kw-gegen.kw-zug { border-color: color-mix(in srgb, var(--kw-gruen) 40%, transparent); }

.kw-kopf {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 4px;
}
.kw-kopf span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-kopf em {
  font-style: normal; opacity: .8; text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: 13px;
}
.kw-mischen {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--kw-gold) 35%, transparent);
  background: rgba(255, 215, 106, .12);
  color: #ffe9b0; border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.kw-mischen::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: kwGlanz 3.4s linear infinite;
}
@keyframes kwGlanz { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.kw-mischen:active { transform: scale(.93); background: rgba(255, 215, 106, .24); }
.kw-mischen:disabled { opacity: .45; }

.kw-faecher {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 136px; padding: 22px 0 6px;
  touch-action: none;                 /* sonst scrollt die Seite beim Ziehen */
  user-select: none; -webkit-user-select: none;
  perspective: 900px;
}
.kw-faecher.kw-leer { min-height: 62px; padding-top: 6px; }
.kw-faecher.kw-leer::after {
  content: 'keine Karten'; font-size: 14px; color: var(--dim); align-self: center;
}
/* Während des Mischens setzt das Skript die Positionen selbst */
.kw-faecher.mischt .kw-karte { transition: none; }
.kw-faecher.mischt { pointer-events: none; }
/* Danach fächern die Karten aus dem Stapel in der Mitte wieder auf */
.kw-karte.einflug {
  animation: kwAuffaechern .38s cubic-bezier(.2, .9, .25, 1.3) both;
  animation-delay: var(--verzug, 0ms);
}
@keyframes kwAuffaechern {
  0% { transform: translate(0, -16px) rotate(0deg) scale(.92); opacity: .5; }
  100% { transform: rotate(var(--dreh)) translateY(calc(var(--hoch) * -1)); opacity: 1; }
}
/* Blatt liegt fest: kein Tippen, kein Ziehen */
.kw-faecher.kw-fest { pointer-events: none; }
.kw-faecher.kw-fest .kw-karte.auf { filter: saturate(.55) brightness(.8); }

.kw-karte {
  position: relative;
  flex: none; width: 70px; height: 102px; margin: 0 -14px;
  border-radius: 11px;
  display: grid; place-items: center;
  transform: rotate(var(--dreh, 0deg)) translateY(calc(var(--hoch, 0px) * -1));
  transform-origin: 50% 135%;
  transition: transform .2s cubic-bezier(.2, .9, .25, 1.35), box-shadow .2s, filter .2s;
  will-change: transform;
  overflow: hidden;
}
/* Aufgedeckt: das eigene Blatt. Papier mit warmem Verlauf und einer feinen
   Kante oben - flache weisse Rechtecke sehen nach Platzhalter aus. */
.kw-karte.auf {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .95), transparent 60%),
    linear-gradient(172deg, #fffefb 0%, #f2eee4 55%, #ddd7c8 100%);
  color: #14121b;
  border: 1px solid rgba(0, 0, 0, .3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .95);
  flex-direction: column;
}
.kw-karte.auf.rot { color: #d21c3c; }
.kw-karte .kw-rang { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.kw-karte .kw-sym { font-size: 21px; line-height: 1; margin-top: 3px; }
/* Kleine Ecke oben links, wie auf einer echten Spielkarte */
.kw-karte.auf::before {
  content: ''; position: absolute; left: 6px; top: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .28;
}

/* Der Joker: eigenes Material und ein Schimmer, der einmal durchwandert */
.kw-karte.joker {
  background:
    radial-gradient(80% 60% at 50% 12%, rgba(255, 215, 106, .38), transparent 68%),
    linear-gradient(168deg, #3a1560 0%, #150826 100%);
  color: var(--kw-gold);
  border: 1px solid color-mix(in srgb, var(--kw-gold) 65%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .65), 0 0 30px rgba(255, 215, 106, .35),
              inset 0 1px 0 rgba(255, 215, 106, .4);
}
.kw-karte.joker::after {
  content: ''; position: absolute; inset: -30%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 180, .45) 50%, transparent 58%);
  background-size: 250% 100%;
  animation: kwGlanz 3.8s linear infinite;
}
.kw-karte .kw-jk {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 800; letter-spacing: .14em;
  writing-mode: vertical-rl; text-orientation: mixed;
  text-shadow: 0 0 12px rgba(255, 215, 106, .9);
}

/* Verdeckt: die Karten des Gegenübers */
.kw-karte.zu {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 6px, transparent 6px 12px),
    linear-gradient(165deg, #5731bb, #22114d);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
}
.kw-karte .kw-nr {
  position: relative; z-index: 1;
  font-size: 19px; font-weight: 800; color: rgba(255, 255, 255, .78);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
/* Glanz, der über die Rückseiten läuft - nur wenn man wirklich ziehen darf */
.kw-gegen.kw-zug .kw-karte.zu::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 58%; left: -80%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg);
  animation: kwLauf 2.8s ease-in-out infinite;
}
@keyframes kwLauf { 0% { left: -80%; } 60% { left: 140%; } 100% { left: 140%; } }
.kw-karte.zu:nth-child(2)::after { animation-delay: .2s; }
.kw-karte.zu:nth-child(3)::after { animation-delay: .4s; }
.kw-karte.zu:nth-child(4)::after { animation-delay: .6s; }
.kw-karte.zu:nth-child(5)::after { animation-delay: .8s; }

.kw-karte.zu.aktiv {
  transform: rotate(var(--dreh, 0deg)) translateY(calc(var(--hoch, 0px) * -1 - 26px)) scale(1.09);
  border-color: var(--kw-gruen);
  box-shadow: 0 0 0 2px var(--kw-gruen), 0 0 34px rgba(61, 220, 151, .55),
              0 20px 34px rgba(0, 0, 0, .6);
  z-index: 3;
}
.kw-zu.entschieden { opacity: .5; pointer-events: none; filter: saturate(.5); }
/* Nur anschauen: die Karten des anderen, während er noch ordnet */
.kw-nur-schauen .kw-zu { opacity: .72; pointer-events: none; }

/* Angetippt = allen zeigen. Gilt für das eigene Blatt genauso wie für die
   markierte Karte des Gegenübers - der Ziehende MUSS sie sehen, sonst geht
   der ganze Bluff ins Leere. */
.kw-karte.zeigt {
  transform: rotate(0deg) translateY(-26px) scale(1.08);
  z-index: 4;
  animation: kwZeigt 1.8s ease-in-out infinite;
}
@keyframes kwZeigt {
  0%, 100% { box-shadow: 0 0 0 3px var(--kw-gold), 0 0 20px rgba(255, 215, 106, .5), 0 18px 30px rgba(0, 0, 0, .55); }
  50% { box-shadow: 0 0 0 3px var(--kw-gold), 0 0 40px rgba(255, 215, 106, .95), 0 18px 30px rgba(0, 0, 0, .55); }
}
.kw-karte.zeigt::before {
  content: '👁'; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  font-size: 15px; opacity: 1; width: auto; height: auto; background: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .8));
  z-index: 2;
}
.kw-karte.zu.zeigt { border-color: var(--kw-gold); }
/* Die eigene Auswahl schlägt die Markierung des anderen - sonst sieht man
   beim Antippen nicht, welche Karte man gerade nimmt. */
.kw-karte.zu.zeigt.aktiv {
  transform: rotate(0deg) translateY(-30px) scale(1.11);
  box-shadow: 0 0 0 3px var(--kw-gruen), 0 0 0 6px rgba(255, 215, 106, .55),
              0 20px 34px rgba(0, 0, 0, .6);
  z-index: 5;
}
/* Umsortieren */
.kw-karte.greift { z-index: 6; }
.kw-karte.zieht {
  transition: none; z-index: 8;
  box-shadow: 0 28px 42px rgba(0, 0, 0, .65);
  filter: brightness(1.12);
}
.kw-karte.rueckt { transform: rotate(var(--dreh, 0deg)) translate(18px, calc(var(--hoch, 0px) * -1)); }

.kw-hinweis {
  font-size: 13.5px; color: var(--dim); text-align: center; line-height: 1.4;
  min-height: 19px; margin-top: 2px;
}
.kw-hinweis b { color: var(--ink); }
.kw-gegen .sos-fest { margin-top: 10px; }
/* „Ziehen": grün, mit einem Lichtstreifen, der einmal durchläuft */
.kw-gegen .sos-fest:not(:disabled) { position: relative; overflow: hidden; }
.kw-gegen .sos-fest:not(:disabled)::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .4) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: kwGlanz 2.6s linear infinite;
}
/* „Bereit": gold, weil es der Moment ist, in dem man das Blatt aus der Hand gibt */
.kw-bereit {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #ffe9a8, #f0a91d);
  color: #241a02;
  box-shadow: 0 12px 30px rgba(240, 169, 29, .35);
}
.kw-bereit::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: kwGlanz 2.4s linear infinite;
}
.kw-bereit:disabled { opacity: .4; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .kw-block::before, .kw-mischen::after, .kw-karte.joker::after,
  .kw-gegen.kw-zug .kw-karte.zu::after, .kw-karte.zeigt,
  .kw-bereit::after, .kw-gegen .sos-fest:not(:disabled)::after { animation: none; }
}
