@import url("fonts.css");
@import url("games-raetselrad.css");
@import url("games-zeitstrahl.css");
@import url("games-weltkarte.css");
@import url("games-mehrheit.css");
@import url("games-leiter.css");
@import url("games-geisterquiz.css");
@import url("games-turnier.css");
@import url("games-songbattle.css");
@import url("games-zusammenhang.css");
@import url("games-shirt.css");
@import url("games-zwickmuehle.css");
@import url("games-vortrag.css");
@import url("games-duell.css");
@import url("games-schwarm.css");
@import url("games-kritzel.css");
@import url("games-hoeher.css");
@import url("games-letzte.css");
@import url("games-tatort.css");
@import url("games-scharf.css");
@import url("games-nische.css");
@import url("games-blitz.css");
@import url("games-mainstream.css");
@import url("games-phantombild.css");
@import url("games-jagd.css");
@import url("games-nichtsagen.css");
/* Spieleabend – Samstagabend-Spielshow: Studio-Dunkel, Glühbirnen, Messing, Papier.
   Keine fremden Schriften (DSGVO), Systemschriften mit Charakter. */

:root {
  --studio: #241A24;
  --studio-2: #2E2130;
  --stage: #4A1F2B;
  --stage-2: #5C2735;
  --bulb: #FFC94A;
  --bulb-dim: #7A5A2A;
  --brass: #C8963E;
  --brass-dark: #8C6526;
  --paper: #F6EFE3;
  --paper-2: #EDE3D2;
  --paper-3: #E2D5BF;
  --ink: #1E1A17;
  --ink-2: #4B4038;
  --ink-3: #6B5E54; /* auf --paper-3 noch gut lesbar (≥ 4:1) */
  --right: #3FAE5A;
  --right-dark: #2B7F40;
  --wrong: #E0483A;
  --wrong-dark: #A8301F;
  --sea: #1F4E79;
  --line: rgba(30, 26, 23, .16);
  --shadow: 0 2px 0 rgba(30, 26, 23, .25), 0 10px 24px -12px rgba(30, 26, 23, .45);
  --display: "Bricolage Grotesque", "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--text); color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Studio-Hintergrund (Startseite, Regie, Stream) */
.studio {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(255, 201, 74, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, var(--stage) 0%, var(--studio) 55%, #1A121A 100%);
  color: var(--paper);
  min-height: 100vh;
}

/* ───────── Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bulb); box-shadow: 0 0 0 3px rgba(255,201,74,.25), 0 0 14px var(--bulb); }
.top nav { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.avatar-mini { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brass); object-fit: cover; }

/* ───────── Knöpfe wie am Spielpult */
.btn {
  --b: var(--bulb); --bd: var(--brass-dark); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--b); color: var(--t); font: 700 17px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transform: translateY(0);
  transition: transform .06s ease, box-shadow .06s ease, filter .15s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.05); }
.btn:active, .btn.pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn.big { padding: 16px 28px; font-size: 21px; border-radius: 14px; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 9px; box-shadow: 0 3px 0 var(--ink); }
.btn.red { --b: var(--wrong); --t: #fff; }
.btn.green { --b: var(--right); --t: #fff; }
.btn.paper { --b: var(--paper); }
.btn.ghost { --b: transparent; --t: inherit; border-color: currentColor; box-shadow: none; }
.btn.ghost:active { transform: none; }
.btn.block { width: 100%; }

/* ───────── Glühbirnen-Schild (Code-Anzeige) */
.marquee {
  position: relative; display: inline-block; padding: 18px 30px; border-radius: 16px;
  background: linear-gradient(180deg, #3A1620, #2A0F18); border: 3px solid var(--brass);
  box-shadow: inset 0 0 0 3px #1A0A10, 0 12px 30px -10px rgba(0,0,0,.6);
}
.marquee::before {
  content: ""; position: absolute; inset: 6px; border-radius: 11px; pointer-events: none;
  background-image: radial-gradient(circle, var(--bulb) 0 3px, transparent 3.5px);
  background-size: 22px 22px; background-position: 0 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 7px; opacity: .95; animation: bulbs 1.6s steps(2) infinite;
}
@keyframes bulbs { 50% { opacity: .55; } }
.marquee .label { font: 700 13px/1 var(--display); letter-spacing: .25em; text-transform: uppercase; color: var(--brass); }
.code { font: 700 64px/1 var(--display); letter-spacing: .12em; color: var(--bulb); text-shadow: 0 0 18px rgba(255, 201, 74, .45); }

/* ───────── Papierkarten, leicht schief */
.card {
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px;
  background-image: radial-gradient(rgba(30,26,23,.035) 1px, transparent 1px); background-size: 4px 4px;
}
.card.tilt-l { transform: rotate(-.8deg); }
.card.tilt-r { transform: rotate(.7deg); }
.card h2, .card h3 { margin: 0 0 10px; font: 700 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.card h3 { font-size: 18px; }
.stamp {
  display: inline-block; padding: 3px 9px; border: 2px solid currentColor; border-radius: 6px;
  font: 700 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg);
}
.stamp.soon { color: var(--brass-dark); }
.stamp.live { color: var(--right-dark); }

/* ───────── Formulare */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.field > span em { font: 400 13px var(--text); text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.field small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 5px; line-height: 1.4; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=email], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  font-size: 17px; outline: none; transition: box-shadow .12s;
}
input:focus, select:focus { box-shadow: 0 0 0 4px rgba(255, 201, 74, .55); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: inline-block; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: background .1s;
}
.seg input:checked + span { background: var(--bulb); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,201,74,.55); }
/* Zwischenüberschrift in langen Auswahllisten (Bretter nach Thema) */
.seg .seg-group { flex-basis: 100%; margin: 10px 0 0; font: 700 12.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.seg .seg-group:first-child { margin-top: 2px; }
/* „eigene Anzahl“ neben den Knöpfen */
.seg .seg-own { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 2px dashed var(--ink); border-radius: 9px; background: #fff; }
.seg .seg-own span { display: inline; padding: 0; border: 0; background: none; box-shadow: none; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: text; white-space: nowrap; }
.seg .seg-own input { position: static; opacity: 1; inset: auto; width: 4.6em; padding: 5px 6px; border: 2px solid var(--ink); border-radius: 7px; background: #fff;
  font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.seg .seg-own input::-webkit-outer-spin-button, .seg .seg-own input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg .seg-own.on { background: var(--bulb); border-style: solid; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.seg .seg-own.on span { color: var(--ink); }
.field .form-error { color: var(--wrong-dark); font-size: 14px; margin-top: 4px; }
.form-error { color: var(--wrong-dark); font-weight: 600; margin: 8px 0 0; }
.hint { color: var(--ink-3); font-size: 14px; }
/* Hinweise direkt auf dem dunklen Studio-Hintergrund (nicht in einer Karte) brauchen helle Schrift */
.studio main > :is(.hint, .crumbs), .studio main > :not(.card) > :is(h2, h3) .hint { color: rgba(246, 239, 227, .72); }

/* ───────── Layout-Helfer */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.muted { opacity: .75; }
.center { text-align: center; }

/* ───────── Startseite */
.hero { padding: 40px 0 30px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font: 700 clamp(44px, 7vw, 86px)/.92 var(--display); text-transform: uppercase; margin: 0 0 18px; letter-spacing: .01em; }
.hero h1 .glow { color: var(--bulb); text-shadow: 0 0 24px rgba(255,201,74,.35); }
.hero p.lead-in { font-size: 19px; max-width: 520px; opacity: .92; margin: 0 0 22px; }
.join-card { transform: rotate(1deg); }
.join-card h2 { font-size: 26px; }
.code-input { display: flex; gap: 6px; margin: 10px 0 14px; }
.code-input input {
  width: 100%; min-width: 0; text-align: center; padding: 12px 0; font: 700 30px/1 var(--display); text-transform: uppercase;
  border-radius: 9px; background: #fff;
}
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 10px 0 60px; }
.game-card { position: relative; min-height: 170px; }
a.game-card, a.game-card h2 { color: var(--ink); text-decoration: none; }
.game-card:nth-child(2n) { transform: rotate(-.6deg); }
.game-card:nth-child(3n) { transform: rotate(.5deg); }
.game-card p { margin: 0 0 8px; color: var(--ink-2); }
/* Stempel als eigene Zeile rechts über dem Titel – lange Titel haben die volle Breite, nichts überlappt */
.game-card .stamp { display: table; position: relative; margin: -6px -4px 6px auto; max-width: 100%; text-align: center; }
.game-card > :is(h2, h3) { overflow-wrap: break-word; hyphens: auto; } /* zu lange Wörter mit Trennstrich statt mitten im Wort */
.foot { padding: 30px 0 40px; font-size: 14px; opacity: .7; display: flex; gap: 18px; flex-wrap: wrap; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 40px; }
.how .step { display: flex; gap: 14px; align-items: flex-start; }
.how .n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bulb); color: var(--ink); font: 700 22px var(--display); border: 2px solid var(--ink); }
.how h3 { margin: 2px 0 4px; font: 700 18px var(--display); text-transform: uppercase; }
.how p { margin: 0; opacity: .85; font-size: 15px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } .how { grid-template-columns: 1fr; } }

/* ───────── Spielfiguren */
.fig { width: 56px; height: 64px; flex: none; }
.fig.big { width: 110px; height: 126px; }
.fig.hop { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 30% { transform: translateY(-18px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } }
.fig-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fig-pick button { padding: 4px; border: 2px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.fig-pick button[aria-pressed=true] { border-color: var(--ink); background: var(--bulb); }
.fig-pick .fig { width: 42px; height: 48px; }
.col-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.col-pick button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
.col-pick button[aria-pressed=true] { outline: 3px solid var(--bulb); outline-offset: 2px; }

/* ───────── Spieler-Ansicht (Handy zuerst, Papier) */
.play { min-height: 100svh; display: flex; flex-direction: column; background: var(--paper);
  background-image: radial-gradient(rgba(30,26,23,.04) 1px, transparent 1px); background-size: 4px 4px; }
.play-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--studio); color: var(--paper); gap: 10px; }
.play-top .who { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.play-top .who .fig { width: 30px; height: 34px; }
.play-top .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-top .score { font: 700 20px/1 var(--display); color: var(--bulb); }
.play-top .conn { width: 10px; height: 10px; border-radius: 50%; background: var(--right); flex: none; }
.play-top .conn.wobbly { background: var(--bulb); }
.play-top .conn.off { background: var(--wrong); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.play-main { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 20px; max-width: 560px; width: 100%; margin: 0 auto; }
.play-main h1 { font: 700 30px/1.05 var(--display); text-transform: uppercase; margin: 6px 0 12px; }
.play-main .sub { color: var(--ink-2); margin: 0 0 16px; }
.banner { padding: 10px 14px; border-radius: 10px; border: 2px solid var(--ink); background: var(--bulb); color: var(--ink); font-weight: 600; margin: 0 0 12px; }
.banner a { color: inherit; }
.banner.bad { background: #FBD5CF; }

.wait-stage { display: grid; place-items: center; padding: 20px 0 10px; }
.wait-stage button { background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.wait-count { font: 700 20px var(--display); text-transform: uppercase; text-align: center; margin: 8px 0 18px; }
.rules { display: grid; gap: 10px; margin: 6px 0 18px; }
.rules .r { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; }
.rules .r b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bulb); border: 2px solid var(--ink); font-family: var(--display); }

/* Flagge */
.flag-frame { position: relative; margin: 4px auto 14px; width: 100%; max-width: 480px; }
.flag-frame .flag { width: 100%; aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 3px 0 var(--ink), 0 14px 30px -14px rgba(0,0,0,.5); }
.flag-frame .flag svg { width: 100%; height: 100%; }
.flag-frame .final { position: absolute; top: -12px; right: -8px; background: var(--wrong); color: #fff; border: 2px solid var(--ink); padding: 3px 9px; border-radius: 8px; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; transform: rotate(4deg); }
.flag-in { animation: flagIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes flagIn { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }

/* Zeitbalken aus Glühbirnen */
.bulbs { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 0 0 12px; }
.bulbs i { height: 10px; border-radius: 5px; background: var(--bulb); box-shadow: 0 0 6px rgba(255,201,74,.7); transition: background .2s, box-shadow .2s; }
.bulbs i.out { background: var(--paper-3); box-shadow: none; }
.bulbs.late i:not(.out) { background: var(--wrong); box-shadow: 0 0 6px rgba(224,72,58,.6); }
.studio .bulbs i.out { background: #3A2A30; }

.round-line { display: flex; justify-content: space-between; align-items: center; font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.hintline { white-space: pre-wrap; min-height: 26px; font: 700 20px/1.2 var(--display); letter-spacing: .12em; text-align: center; color: var(--sea); margin: 0 0 10px; }
.answer { display: flex; gap: 8px; }
.answer input { font-size: 20px; padding: 14px; }
.answer input.shake { animation: shake .3s; border-color: var(--wrong); }
.answer input.near { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200,150,62,.35); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.fb { min-height: 24px; margin: 8px 0 0; font-weight: 700; text-align: center; }
.fb.near { color: var(--brass-dark); }
.fb.wrong { color: var(--wrong-dark); }
.got {
  text-align: center; padding: 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--right); color: #fff;
  font: 700 26px/1.1 var(--display); text-transform: uppercase; box-shadow: 0 4px 0 var(--ink); animation: pop .35s cubic-bezier(.2,1.5,.5,1);
}
.got small { display: block; font: 600 15px var(--text); text-transform: none; margin-top: 4px; opacity: .95; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.fly { position: fixed; pointer-events: none; font: 700 28px var(--display); color: var(--right-dark); animation: fly 1s ease-out forwards; z-index: 50; }
@keyframes fly { to { transform: translateY(-90px); opacity: 0; } }
.choices { display: grid; gap: 10px; }
.choices .btn { justify-content: flex-start; text-transform: none; font: 700 19px/1.2 var(--text); padding: 14px 16px; --b: #fff; }
.choices .btn.picked { --b: var(--bulb); }
.choices .btn.right { --b: var(--right); --t: #fff; }
.choices .btn.wrong { --b: var(--wrong); --t: #fff; }
.lives { display: inline-flex; gap: 4px; }
.lives i { width: 14px; height: 14px; border-radius: 50%; background: var(--wrong); border: 2px solid var(--ink); }
.lives i.gone { background: transparent; }

/* Auflösung */
.reveal-name { font: 700 34px/1.05 var(--display); text-transform: uppercase; text-align: center; margin: 4px 0 6px; }
.type { display: inline-block; overflow: hidden; white-space: nowrap; animation: type .5s steps(20) both; }
@keyframes type { from { max-width: 0; } to { max-width: 100%; } }
.pct { margin: 8px 0 12px; }
.pct .bar { height: 16px; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; background: #fff; }
.pct .bar i { display: block; height: 100%; background: var(--right); width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1) .2s; }
.pct p { margin: 6px 0 0; font-weight: 700; text-align: center; }
.fact { background: #fff; border: 2px dashed var(--ink-3); border-radius: 10px; padding: 10px 14px; font-size: 15.5px; margin: 10px 0; }
.myline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); font-weight: 700; }
.myline .up { color: var(--right-dark); }
.myline .down { color: var(--wrong-dark); }

/* Ranglisten */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 38px 30px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; transition: transform .4s; }
.board li.me { background: var(--bulb); }
.board .pl { font: 700 18px var(--display); text-align: center; }
.board .fig { width: 28px; height: 32px; }
.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board .sc { font: 700 18px var(--display); }
.board .d { font-size: 12px; font-weight: 700; margin-left: 6px; }
.board .d.up { color: var(--right-dark); }
.board .d.down { color: var(--wrong-dark); }
.board li.gone .nm { opacity: .5; text-decoration: line-through; }

/* Siegerehrung */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 16px 0 18px; }
.podium .step { text-align: center; }
.podium .step .fig { margin: 0 auto -4px; width: 64px; height: 74px; }
.podium .block { border: 2px solid var(--ink); border-radius: 8px 8px 0 0; background: var(--brass); color: var(--ink); font: 700 30px var(--display); padding: 10px 0; }
.podium .p1 .block { height: 130px; background: var(--bulb); }
.podium .p2 .block { height: 96px; }
.podium .p3 .block { height: 72px; background: #D8A45E; }
.podium .nm { font-weight: 700; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .sc { font: 700 16px var(--display); opacity: .8; }
.podium .step { animation: rise .6s cubic-bezier(.2,1.2,.4,1) both; }
.podium .p3 { animation-delay: .2s; } .podium .p2 { animation-delay: 1.1s; } .podium .p1 { animation-delay: 2.1s; }
/* Gleichstand: mehrere auf einer Stufe – kleine Figuren nebeneinander, Namen als kompakte Liste */
.podium .multi .figs { display: flex; justify-content: center; margin-bottom: -4px; }
.podium .multi .figs .fig { width: 36px; height: 42px; margin: 0 -5px; }
.podium .multi .nms { display: flex; flex-direction: column; gap: 1px; margin: 4px 0; font-size: 13px; font-weight: 700; line-height: 1.2; }
.podium .multi .nms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .multi .nms .more { font-weight: 400; opacity: .75; }
.podium .multi .sc { font-size: 14px; }
/* Auszählung (games/hold.js): Zeit um, Lösung wartet auf die verzögerten Chat-Antworten */
.ch-hold { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--bulb); color: var(--ink); box-shadow: var(--shadow); }
.ch-hold p { margin: 0; }
.ch-hold-h { font: 700 17px var(--display); }
.ch-hold-p { font-size: 14px; line-height: 1.3; }
.ch-hold-t { margin-left: auto; font: 700 22px var(--display); white-space: nowrap; }
.ch-hold-dots { display: flex; gap: 4px; flex: none; }
.ch-hold-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: blink 1s infinite; }
.ch-hold-dots i:nth-child(2) { animation-delay: .2s; } .ch-hold-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.awards { display: grid; gap: 10px; margin: 0 0 16px; }
.award { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; background: #fff; display: flex; gap: 12px; align-items: center; }
.award .medal { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brass); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 18px var(--display); color: var(--ink); }
.award b { display: block; font: 700 16px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.award span { font-size: 14.5px; color: var(--ink-2); }

/* ───────── Regie (Host) */
.regie { display: grid; grid-template-columns: 330px 1fr 320px; gap: 18px; padding: 0 20px 30px; align-items: start; }
.regie .col { display: grid; gap: 16px; }
.regie .card { padding: 16px; }
.regie .code { font-size: 46px; }
.qr { background: #fff; padding: 10px; border: 2px solid var(--ink); border-radius: 10px; width: 170px; height: 170px; }
.qr svg { width: 100%; height: 100%; }
.plist { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; display: grid; gap: 4px; }
.plist li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; }
.plist li:hover { background: var(--paper-2); }
.plist .fig { width: 28px; height: 32px; }
.plist .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.plist .tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1.5px solid var(--ink-3); color: var(--ink-3); text-transform: uppercase; }
.plist .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--right); }
.plist .dot.w { background: var(--bulb); }
.plist .dot.x { background: #bbb; }
.menu-btn { border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; min-width: 36px; min-height: 32px; } /* 0.27.5: Spieler-Menü auch mit dem Finger (Regie am Tablet) */
.menu-btn:hover { background: var(--paper-3); }
.pmenu { position: absolute; z-index: 30; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 190px; }
.pmenu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-weight: 600; }
.pmenu button:hover { background: var(--bulb); }
.pmenu button.danger { color: var(--wrong-dark); }
.stage-panel { min-height: 420px; }
.stage-panel .flag-frame { max-width: 360px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.status-line { display: flex; gap: 16px; flex-wrap: wrap; font: 700 16px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.status-line span b { color: var(--sea); }
.solution { margin: 10px 0; }
.solution button { border: 2px dashed var(--ink-3); background: #fff; border-radius: 9px; padding: 8px 12px; cursor: pointer; font-weight: 700; width: 100%; }
.toggles { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: var(--paper-3); border: 2px solid var(--ink); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left .15s; }
.switch input:checked + i { background: var(--right); }
.switch input:checked + i::after { left: 23px; }
.copyline { display: flex; gap: 6px; }
.copyline input { font-size: 13px; padding: 8px 10px; }
@media (max-width: 1200px) { .regie { grid-template-columns: 300px 1fr; } .regie .col.side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 760px) { .regie { grid-template-columns: 1fr; padding: 0 12px 30px; } }

/* ───────── Toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 99; box-shadow: var(--shadow); max-width: calc(100vw - 30px); animation: pop .25s; }
.toast.bad { background: var(--wrong-dark); }

/* ───────── Lobby eröffnen */
.pick-game { cursor: pointer; }
/* Stempel nur sichtbar, Platz bleibt reserviert – sonst springt der Titel beim Wählen */
.pick-game .stamp { visibility: hidden; }
.pick-game:has(input:checked) { outline: 4px solid var(--bulb); outline-offset: 3px; }
.pick-game:has(input:checked) .stamp { visibility: visible; }
.code-input input.shake { animation: shake .3s; border-color: var(--wrong); }

/* ───────── Tabellen (Betrieb) */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 6px 8px; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

/* Co-Host-Werkzeuge über dem Spiel (Handy) */
.play-main.cohost { flex: none; padding-bottom: 0; }

/* ───────── Profil */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile-pic { width: 110px; height: 126px; display: grid; place-items: center; }
.profile-pic img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; }
.profile-title { font: italic 600 17px var(--text); color: var(--ink-2); margin: 4px 0 8px; }
.studio .profile-title.center { color: var(--paper); }
.lvl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lvl-bar { width: 220px; max-width: 100%; height: 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: var(--bulb); }
.sec { font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ach-card { display: grid; gap: 4px; text-align: center; justify-items: center; }
.ach-card .medal, .ach .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); border: 2px solid var(--ink); font: 700 20px var(--display); color: var(--ink); }
.ach-card span { font-size: 14px; color: var(--ink-2); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid rgba(246,239,227,.35); border-radius: 10px; opacity: .6; }
.ach.got { background: var(--paper); color: var(--ink); border-color: var(--ink); opacity: 1; }
.ach:not(.got) .medal { background: transparent; color: var(--paper); border-color: rgba(246,239,227,.5); }
.ach b { display: block; font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.ach span { display: block; font-size: 13.5px; }
.claim { border-color: var(--sea); box-shadow: 0 4px 0 var(--sea); }

/* ───────── Kassensturz: Produktverwaltung */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.prod-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.prod-list { display: grid; gap: 10px; }
.prod { display: flex; gap: 14px; align-items: center; padding: 12px; flex-wrap: wrap; }
.prod.off { opacity: .55; }
.prod-thumb { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: #fff; flex: none; }
.prod-thumb.big { width: 100%; height: auto; max-height: 260px; object-fit: contain; margin-bottom: 12px; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr; } }

/* ───────── Kassensturz: Spiel */
.product { position: relative; border: 2px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; display: block; }
.product .cap { padding: 10px 12px; border-top: 2px solid var(--ink); background: var(--paper); }
.product .cap b { display: block; font: 700 19px/1.15 var(--display); text-transform: uppercase; }
.product .cap span { font-size: 13.5px; color: var(--ink-2); }
.products { display: grid; gap: 10px; }
.products.two { grid-template-columns: 1fr 1fr; }
.products.three { grid-template-columns: 1fr 1fr 1fr; }
.products.three .product .cap b { font-size: 14px; }
button.product { padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
button.product.picked { outline: 4px solid var(--bulb); outline-offset: 2px; }
button.product.right { outline: 4px solid var(--right); outline-offset: 2px; }
.price-display { text-align: center; font: 700 44px/1 var(--display); padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: #1E1A17; color: #7CFC9A; letter-spacing: .04em; margin: 10px 0; min-height: 70px; font-variant-numeric: tabular-nums; }
.price-display.empty { color: #4a6b52; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { padding: 14px 0; font: 700 26px var(--display); border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.keypad .done { grid-column: span 3; background: var(--right); color: #fff; font-size: 22px; text-transform: uppercase; }
.price-reveal { text-align: center; font: 700 52px/1 var(--display); color: var(--ink); margin: 8px 0; font-variant-numeric: tabular-nums; }
.numline { position: relative; height: 70px; margin: 16px 6px 8px; }
.numline .axis { position: absolute; left: 0; right: 0; top: 44px; height: 4px; background: var(--ink); border-radius: 2px; }
.numline .dot { position: absolute; top: 20px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--ink); }
.numline .dot.me { width: 20px; height: 20px; margin-left: -10px; top: 17px; box-shadow: 0 0 0 3px var(--bulb); }
.numline .mark { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--right); border-radius: 2px; }
.numline .mark span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 14px var(--display); color: var(--right-dark); }
.numline .lab { position: absolute; top: 54px; font-size: 12px; color: var(--ink-3); }
/* Handy: Produktfoto begrenzen, damit der Ziffernblock ohne Scrollen sichtbar bleibt */
.play .product img { aspect-ratio: auto; height: 28vh; min-height: 150px; }
.play .products.two .product img, .play .products.three .product img { height: 20vh; min-height: 110px; }
.play .product .cap { padding: 7px 10px; }
.play .product .cap b { font-size: 16px; }
.play .keypad { gap: 6px; }
.play .keypad button { padding: 9px 0; font-size: 23px; }
.play .price-display { font-size: 36px; min-height: 56px; padding: 8px; margin: 8px 0; }

.quest { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.quest .medal { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.quest.done .medal { background: var(--right); color: #fff; }
.quest.done span.grow { text-decoration: line-through; opacity: .7; }
.product .rank { position: absolute; top: 8px; left: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--bulb); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 22px var(--display); box-shadow: 0 2px 0 var(--ink); }

/* ───────── Umgekehrt */
.rv-h { font: 700 22px var(--display); text-transform: uppercase; margin: 4px 0 10px; text-align: center; }
.rv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rv-col { display: grid; gap: 4px; align-content: start; }
.rv-cat { background: #1B1320; color: var(--bulb); border: 2px solid var(--brass); border-radius: 6px; font: 700 9px/1.1 var(--display); text-transform: uppercase; padding: 4px 2px; height: 52px; overflow: hidden; display: grid; place-items: center; text-align: center; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.rv-grid.big .rv-cat { height: 110px; }
.rv-tile { background: linear-gradient(180deg, #2A1B2E, #1B1320); color: var(--bulb); border: 2px solid var(--brass); border-radius: 6px; font: 700 15px var(--display); padding: 9px 0; text-align: center; min-height: 36px; }
button.rv-tile { cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
button.rv-tile:active { transform: translateY(2px); }
.rv-tile.used { background: transparent; border-color: rgba(200,150,62,.25); }
.rv-tile.now { outline: 3px solid var(--bulb); }
.rv-grid.big { gap: 10px; width: 100%; }
.rv-grid.big .rv-col { gap: 10px; }
.rv-grid.big .rv-cat { font-size: 24px; min-height: 110px; padding: 10px; }
.rv-grid.big .rv-tile { font-size: 52px; padding: 18px 0; min-height: 104px; box-shadow: 0 0 22px rgba(255,201,74,.12) inset; }
.rv-clue { background: linear-gradient(180deg, #2A1B2E, #1B1320); color: var(--paper); border: 3px solid var(--brass); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; box-shadow: 0 4px 0 var(--ink); animation: flagIn .35s cubic-bezier(.2,1.3,.4,1); }
.rv-clue.joker { border-color: var(--wrong); box-shadow: 0 0 0 3px var(--bulb), 0 4px 0 var(--ink); }
.rv-clue-head { display: flex; justify-content: space-between; gap: 8px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--brass); margin-bottom: 8px; }
.rv-clue-head b { color: var(--bulb); }
.rv-clue p { margin: 0; font: 700 21px/1.3 var(--text); }
.rv-clue.big { padding: 36px 44px; border-width: 5px; border-radius: 20px; }
.rv-clue.big .rv-clue-head { font-size: 28px; margin-bottom: 18px; }
.rv-clue.big p { font-size: 54px; line-height: 1.25; }
.rv-buzzer { display: block; width: min(78vw, 280px); aspect-ratio: 1; margin: 16px auto; border-radius: 50%; border: 4px solid var(--ink); background: #6E2A2A; color: rgba(255,255,255,.65); font: 700 36px var(--display); text-transform: uppercase; box-shadow: 0 8px 0 var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .1s; }
.rv-buzzer.lit { background: var(--wrong); color: #fff; box-shadow: 0 8px 0 var(--ink), 0 0 40px rgba(224,72,58,.7); animation: buzzglow .8s ease-in-out infinite alternate; }
@keyframes buzzglow { to { box-shadow: 0 8px 0 var(--ink), 0 0 70px 12px rgba(255,201,74,.75); } }
.rv-buzzer:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.rv-buzzer.done { background: var(--right); color: #fff; animation: none; }
.rv-buzzer.locked { background: #333; }
.rv-status { text-align: center; font: 700 48px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--paper); }
.rv-status.lit { color: var(--bulb); text-shadow: 0 0 30px rgba(255,201,74,.6); }
.rv-buzzrow { display: flex; gap: 26px; justify-content: center; font: 700 28px var(--display); opacity: .85; }
.solution { background: #fff; border: 2px dashed var(--ink-3); border-radius: 9px; padding: 8px 12px; }
/* Brett-Editor */
.bed { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 8px; overflow-x: auto; }
.bed-col { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; align-content: start; }
.bed-cat { font-weight: 700; background: #1B1320 !important; color: var(--bulb) !important; }
.bed-cell { background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 8px; padding: 6px; display: grid; gap: 4px; }
.bed-cell b { font: 700 13px var(--display); color: var(--brass-dark); }
.bed-cell textarea, .bed-cell input { font-size: 13px !important; padding: 6px 8px !important; border-width: 1.5px !important; }
textarea { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 10px; font: inherit; resize: vertical; background: #fff; }

/* ───────── Partypaket */
.pt-h { font: 700 20px var(--display); text-transform: uppercase; text-align: center; margin: 6px 0 10px; }
.pt-prompt { background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 16px 18px; font: 700 22px/1.3 var(--text); box-shadow: 4px 4px 0 var(--ink); margin: 4px 0 14px; transform: rotate(-.6deg); }
.pt-prompt.small { font-size: 17px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); }
.pt-gap { display: inline-block; min-width: 4em; border-bottom: 3px solid var(--ink); margin: 0 .15em; }
.pt-gap.filled { border: 0; background: var(--bulb); padding: 0 .3em; border-radius: 4px; }
.pt-secret { text-align: center; margin: 4px 0 10px; }
.pt-secret small { display: block; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.pt-secret b { font: 700 24px var(--display); }
.pt-canvas { display: block; width: 100%; max-width: 420px; margin: 0 auto 12px; aspect-ratio: 3 / 4; height: auto; background: #FFFDF7; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); }
.pt-canvas.pad { touch-action: none; cursor: crosshair; }
.pt-canvas.small { max-width: min(260px, 38vh * .75); }
.pt-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-bottom: 10px; }
.pt-swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); cursor: pointer; }
.pt-swatch.on { box-shadow: 0 0 0 4px var(--ink); }
.pt-tools .pt-w.on { background: var(--ink); color: var(--paper); }
.pt-opts { display: grid; gap: 9px; margin-bottom: 12px; }
.pt-opt { text-align: left; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; font: 700 17px/1.3 var(--text); box-shadow: 0 3px 0 var(--ink); cursor: pointer; color: var(--ink); }
button.pt-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pt-opt.picked { background: var(--bulb); }
.pt-opt.mine, .pt-opt:disabled { opacity: .55; cursor: default; }
.pt-opt.static { cursor: default; box-shadow: none; }
.pt-opt small { display: block; font: 400 13px var(--text); color: var(--ink-3); margin-top: 4px; }
.pt-opt.truth { background: #E4F4E7; border-color: var(--right-dark); }
.pt-opt.full, .pt-opt.top { background: #FFF1C9; }
.pt-tag { display: inline-block; margin-left: 8px; font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--bulb); border-radius: 4px; padding: 2px 6px; vertical-align: 2px; }
.pt-rv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-rv li { display: flex; gap: 10px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 6px 0; }
.pt-review { margin-top: 14px; padding: 12px 14px; }
.pt-review h3 { margin: 0 0 8px; }

/* ───────── Statistik */
.crumbs { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: inherit; }
.segnav { display: inline-flex; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; background: #fff; }
.segnav a { padding: 7px 12px; font: 700 13px var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); }
.segnav a:first-child { border-left: 0; }
.segnav a.on { background: var(--ink); color: var(--bulb); }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 14px; }
.st-kpis .card { padding: 12px 14px; display: grid; gap: 2px; }
.st-kpis span { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.st-kpis b { font: 700 28px var(--display); }
.st-kpis small { color: var(--ink-3); font-size: 12px; }
.st-kpis .d { font: 700 12px var(--display); }
.d.up { color: var(--right-dark); } .d.down { color: var(--wrong-dark); }
.st-live { background: var(--ink); color: var(--paper); }
.st-live b { color: var(--bulb); }
.st-chart { width: 100%; height: auto; display: block; margin-top: 10px; }
.st-chart .grid { stroke: var(--line); }
.st-chart .ax { font: 11px var(--text); fill: var(--ink-3); }
.st-chart .v { fill: var(--paper-3); }
.st-chart .u { fill: var(--brass); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.lg.u { background: var(--brass); } .lg.v { background: var(--paper-3); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.st-top h3 { margin: 0 0 8px; }
.st-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-top li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; font-size: 14px; }
.st-top li .bar { position: absolute; inset: 0 auto 0 0; background: rgba(200, 150, 62, .18); border-radius: 5px; }
.st-top li .k, .st-top li b { position: relative; }
.st-top li .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-top li small { position: relative; color: var(--ink-3); font-size: 12px; }
.st-funnel li { flex-wrap: wrap; }
.st-unit { margin: 6px 0 0; text-align: right; font-size: 12px; }
.st-h { font: 700 24px var(--display); text-transform: uppercase; margin: 26px 0 12px; }
.st-heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 10px; color: var(--ink-3); }
.st-heat td { background: var(--brass); height: 14px; border-radius: 2px; }
.st-heat th { font-weight: 400; text-align: left; }
.tbl tr.warn td { background: rgba(224, 72, 58, .08); }
pre.codes { background: #fff; border: 2px dashed var(--ink-3); border-radius: 9px; padding: 12px 16px; font-size: 18px; line-height: 1.6; }
.qr-box { width: 220px; margin: 8px auto 14px; background: #fff; padding: 8px; border-radius: 10px; }
.qr-box svg { display: block; width: 100%; height: auto; }

/* ───────── Kopfzeile: Menüs statt Linkwüste */
header.top nav { flex-wrap: wrap; row-gap: 6px; }
header.top nav a, header.top nav summary { white-space: nowrap; }
header.top .nav-cta { background: var(--bulb); color: var(--ink) !important; padding: 5px 12px; border-radius: 8px; font-weight: 700; text-decoration: none; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: '▾'; font-size: .8em; opacity: .7; }
details.menu > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; }
details.menu > div a { color: var(--ink) !important; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
details.menu > div a:hover { background: var(--paper-2); }
details.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
/* Hinweis: diese Einträge verlangen den zweiten Faktor */
details.menu .m2fa { font: 600 11px/1 var(--text); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; margin-left: 4px; white-space: nowrap; }
details.menu .m2fa-note { display: block; padding: 4px 10px 2px; font-size: 12px; color: var(--ink-3); }
/* ───────── Öffentliche Spielseiten */
.seo h1 { font: 800 clamp(30px, 5vw, 46px)/1.1 var(--display); margin: 14px 0 10px; }
.seo h2 { font: 700 20px var(--display); text-transform: uppercase; margin: 0 0 10px; }
.seo dl { margin: 0; } .seo dd { margin: 0 0 10px; color: var(--ink-2); }
.seo ol, .seo ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.seo a.game-card { text-decoration: none; color: inherit; display: grid; gap: 8px; align-content: start; }
.seo a.game-card .stamp { justify-self: end; margin: -6px -4px -2px 0; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 8px 0 0; }
.game-card h3 a { color: inherit; }

.pt-canvas.thumb { width: 60px; max-width: 60px; margin: 0; border-width: 2px; box-shadow: none; flex: none; }

/* ───────── Einstellungen */
.tpl { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .tpl { grid-template-columns: 1fr; } }
.tpl-list { display: grid; gap: 2px; padding: 8px; }
.tpl-list a { padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.tpl-list a.on { background: var(--ink); color: var(--bulb); }
.mail-preview { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 15px/1.5 var(--text); }

/* ───────── Konto */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.card.danger { border-color: var(--wrong-dark); }
.card.danger h3 { color: var(--wrong-dark); }

/* ───────── Erfolge */
.ach-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ach-level { display: grid; gap: 6px; }
.ach-level b { font: 800 34px var(--display); }
.bar { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brass); border-radius: 99px; }
.quests { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.quest { display: grid; gap: 6px; }
.quest.done span { color: var(--right-dark); font-weight: 700; }
.quest.done .bar i { background: var(--right); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ac { display: flex; gap: 12px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; opacity: .78; }
.ac.got { opacity: 1; border-color: var(--brass); box-shadow: 0 3px 0 var(--brass-dark); }
.ac.secret { border-style: dashed; }
.ac .medal { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--paper-3); color: var(--ink-3); }
.ac.got .medal { background: var(--bulb); color: var(--ink); }
.ac b { font: 700 16px var(--display); }
.ac p { margin: 2px 0 6px; font-size: 14px; color: var(--ink-2); }
.ac > div { flex: 1; display: grid; gap: 2px; align-content: start; }

.product .credit { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }

/* ───────── Memeschmiede */
.meme { position: relative; margin: 0; background: #111; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; line-height: 0; }
.meme img { width: 100%; height: auto; display: block; max-height: 62vh; object-fit: contain; background: #111; }
.meme figcaption { position: absolute; left: 4%; right: 4%; text-align: center; line-height: 1.05; font: 400 clamp(18px, 6.2vw, 34px) 'Anton', Impact, sans-serif; text-transform: uppercase; color: #fff; letter-spacing: .01em; overflow-wrap: anywhere;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 6px rgba(0,0,0,.6); }
.meme .mt { top: 3%; }
.meme .mb { bottom: 3%; }
.meme.small figcaption { font-size: clamp(12px, 3.6vw, 20px); text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.meme-edit { margin: 4px 0 6px; }
.meme-credit { font-size: 12px; margin: 0 0 10px; }
.meme-form { display: grid; gap: 8px; }
.meme-form input { width: 100%; }
.meme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.meme-pick { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; background: none; cursor: pointer; }
.meme-pick.picked { border-color: var(--bulb); box-shadow: 0 0 0 3px var(--ink); }
.meme-pick:disabled { opacity: .5; cursor: default; }
.meme-own { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--bulb); font: 700 11px var(--display); text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.meme-res { display: grid; gap: 4px; }
.meme-res.top .meme { border-color: var(--bulb); box-shadow: 0 0 0 3px var(--ink); }
.meme-res small { font-size: 12px; color: var(--ink-2); }

.meme-grid { align-items: start; }

.card.report.urgent { border-color: var(--wrong); box-shadow: 0 0 0 2px var(--wrong); }

.prod-pick { width: 22px; height: 22px; flex: none; }

/* ───────── Herr Flimmer (Handy & Regie) */
.flimmer { width: 90px; flex: none; }
.flimmer svg { width: 100%; height: auto; display: block; overflow: visible; animation: flBob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.flimmer .fl-mouth { transform-box: fill-box; transform-origin: center; }
.flimmer.talking .fl-mouth { animation: flTalk .16s steps(2) infinite alternate; }
@keyframes flTalk { from { transform: scaleY(.3); } to { transform: scaleY(1.5); } }
@keyframes flBob { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
.mod-phone { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.mod-name { display: block; font: 800 22px var(--display); text-transform: uppercase; }
.mod-card { padding: 16px 18px; }
.mod-line { margin: 0 0 10px; color: var(--ink-3); font-size: 16px; line-height: 1.4; }
.mod-line.now { color: var(--ink); font: 700 19px/1.4 var(--text); min-height: 1.4em; margin: 0; }
.mod-host { display: flex; gap: 12px; align-items: center; }
.mod-host .flimmer { width: 64px; }
.mod-host .mod-line.now { font-size: 16px; }

.late-rules { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; gap: 12px; align-items: flex-start; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 0 var(--ink); animation: flagIn .35s cubic-bezier(.2,1.3,.4,1) both; }
.late-rules .flimmer { width: 58px; }
.late-rules p { margin: 4px 0; font-size: 15px; }

/* Posen von Herrn Flimmer: happy (Siegerehrung), tense (Finale/Stechen), glitch (Bildstörung) */
.flimmer svg { transform-origin: 50% 90%; }
.flimmer.happy svg { animation: flHop .55s ease-in-out infinite alternate; }
.flimmer.happy .fl-eyes ellipse { transform: scaleY(.45); transform-box: fill-box; transform-origin: center; }
.flimmer.happy .fl-pupil { opacity: 0; }
.flimmer.tense svg { animation: flShake .12s linear infinite alternate; }
.flimmer.tense .fl-pupil { transform: translateY(-2px); }
.flimmer.glitch .fl-screen { animation: flGlitch .5s steps(3) infinite; }
@keyframes flHop { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }
@keyframes flShake { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }
@keyframes flGlitch { 0% { transform: translateX(0); filter: none; } 33% { transform: translateX(-3px); filter: hue-rotate(90deg) saturate(2); } 66% { transform: translateX(3px); filter: brightness(1.6); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .flimmer svg, .flimmer .fl-screen { animation: none !important; } }

/* Die Mehrheit: Umfragen (Antwortfeld, Prüf-Übersicht, Tafel-Vorschau) */
.svy + .svy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.svy-q { font: 700 24px/1.2 var(--display); margin: 0 0 12px; }
.svy-thanks { margin: 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); }
.svy-tile .svy-q { font-size: 20px; }
form.inline { display: inline; margin: 0; }
.tbl-wrap { overflow-x: auto; }
.svy-board { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; counter-reset: svy; }
.svy-board li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; counter-increment: svy; }
.svy-board li::before { content: counter(svy); font: 700 18px var(--display); text-align: center; }
.svy-board .nm { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.svy-board .sc { font: 700 18px var(--display); }
.svy-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svy-group { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.svy-group.off { background: var(--paper-2); border-style: dashed; }
.svy-spell { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.svy-spell span { display: inline-block; padding: 1px 6px; margin: 0 2px 3px 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.svy-more summary { cursor: pointer; font-size: 14px; font-weight: 700; margin-top: 8px; }
/* ═════════ Nächstes Spiel (Regie: selbst wählen / Abstimmung · Handy: abstimmen) – Präfix nx- ═════════ */
.nx-card .nx-choose { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nx-card .nx-choose .btn { flex: 1 1 180px; }
.nx-card .toggle > span:first-child { display: flex; flex-direction: column; }
.nx-card .nx-cfgline { font-weight: 400; }
.nx-card .nx-h { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; color: var(--ink-2); }
.nx-auto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border: 2px dashed var(--ink-3); border-radius: 10px; }
.nx-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.nx-game { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 11px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.nx-game b { font: 700 16px/1.15 var(--display); }
.nx-game span { font-size: 13px; line-height: 1.3; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nx-game small { font-size: 12px; font-weight: 700; color: var(--sea); }
.nx-game.on { background: var(--bulb); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.nx-game:focus-visible, .nx-opt:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.nx-presets { margin: 0 0 10px; }
.nx-fields .field { margin-bottom: 12px; }
.nx-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.nx-cand { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 2px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 15px; min-width: 0; }
.nx-cand input { width: 18px; height: 18px; margin: 0; flex: none; }
.nx-cand:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.nx-cand small { color: var(--ink-3); }
.nx-clock { font: 700 20px var(--display); }
.nx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-bars li { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(60px, 2fr) 48px; align-items: center; gap: 8px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; }
.nx-bars li.win { background: var(--bulb); }
.nx-bars .nx-no { font: 700 16px var(--display); text-align: center; }
.nx-bars .nx-nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-bars .nx-bar { height: 12px; border-radius: 6px; background: var(--paper-3); overflow: hidden; }
.nx-bars .nx-bar i { display: block; height: 100%; width: 0; background: var(--sea); transition: width .35s; }
.nx-bars li.win .nx-bar i { background: var(--ink); }
.nx-bars .nx-n { text-align: right; font: 700 18px var(--display); }
.nx-win { font-size: 20px; margin: 10px 0; }
.nx-start { font-weight: 700; margin: 12px 0 8px; }
/* Handy */
.nx-opts { display: grid; gap: 10px; margin: 4px 0 14px; }
.nx-opt { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; text-align: left;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--ink); -webkit-tap-highlight-color: transparent; }
.nx-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.nx-opt.on { background: var(--bulb); }
.nx-opt .nx-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 20px var(--display); }
.nx-opt .nx-txt { display: flex; flex-direction: column; min-width: 0; }
.nx-opt .nx-txt b { font: 700 20px/1.15 var(--display); }
.nx-opt .nx-txt small { font-size: 14px; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }
.nx-opt .nx-cnt { font: 700 20px var(--display); color: var(--ink-2); }
.nx-opts.done .nx-opt { cursor: default; box-shadow: none; }
.nx-left { font-weight: 700; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .nx-bars .nx-bar i { transition: none; } }

/* Rückfrage in der Seite (ui.js ask/askText) – Regie, Handys */
.ask-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(20, 14, 22, .55); animation: pop .15s; }
.ask-box { width: min(440px, 100%); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 20px 22px 18px; }
.ask-t { margin: 0 0 6px; font: 700 20px/1.3 var(--display); }
.ask-s { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.ask-in { width: 100%; margin: 8px 0 4px; padding: 10px 12px; font: 17px var(--text); border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.ask-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.ask-btns .btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.mod-rest { visibility: hidden; } /* Herr Flimmer: noch nicht getippter Rest hält die Zeile gleich groß */

/* ───────── Spiel-Bewertung am Handy (nach dem Spiel, unter Siegerehrung/Abstimmung) */
.play-main.rt-box { flex: none; padding-top: 0; }
.rt-card { padding: 12px 14px 10px; margin: 0; }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rt-head b { font: 700 17px/1.25 var(--display); }
.rt-game { color: var(--stage); }
.rt-later { flex: none; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ink-3); font-size: 14px; text-decoration: underline; cursor: pointer; }
.rt-stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 2px; }
.rt-star { min-height: 52px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--paper-3); font-size: 30px; line-height: 1; cursor: pointer;
  -webkit-text-stroke: 1px var(--ink-3); -webkit-tap-highlight-color: transparent; }
.rt-star.on { background: var(--bulb); color: var(--ink); -webkit-text-stroke: 0; }
.rt-star:active { transform: translateY(2px); }
.rt-star:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.rt-status { margin: 6px 0 0; font-size: 14px; }
.rt-link { min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; cursor: pointer; }
.rt-form { margin: 6px 0 0; }
.rt-text { display: block; width: 100%; padding: 8px 10px; font: 16px/1.35 var(--text); border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; }
.rt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rt-host { margin: 8px 0 0; font-weight: 700; color: var(--ink-2); }
/* Betrieb: Bewertungen */
.rt-dist { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; vertical-align: middle; }
.rt-dist i { display: block; width: 7px; min-height: 1px; background: var(--sea); border-radius: 2px 2px 0 0; }
.rt-tbl td.num, .rt-tbl th.num { text-align: right; white-space: nowrap; }
.rt-tbl th a { color: inherit; text-decoration: none; }
.rt-tbl th a.on { text-decoration: underline; }
.rt-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 16px; }
.rt-filter label { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); gap: 2px; }
.rt-filter select { padding: 7px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; font-size: 15px; }
.rt-cm { border-bottom: 1px solid var(--line); padding: 10px 0; }
.rt-cm:last-child { border-bottom: 0; }
.rt-cm p { margin: 4px 0; overflow-wrap: anywhere; }
.rt-cm.off p { color: var(--ink-3); text-decoration: line-through; }
.rt-stars-s { color: var(--brass-dark); letter-spacing: 1px; }

/* ───────── Chat-Umfrage im Betrieb (/admin/chat-umfrage.php) */
.cu { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "chat live" "new live" "recent posts"; align-items: start; }
.cu-chat { grid-area: chat; } .cu-new { grid-area: new; } .cu-live { grid-area: live; } .cu-recent { grid-area: recent; } .cu-posts { grid-area: posts; }
.cu h3 { margin-top: 0; }
.cu-opts { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-top: 10px; }
.cu-opts .field { flex: 1 1 140px; }
.cu-opts input[type=number] { max-width: 140px; }
.cu-auto { margin: 0 0 8px; flex: 1 1 200px; }
.cu-q { margin: 0; font: 700 22px/1.25 var(--display); overflow-wrap: anywhere; }
.cu-clock { margin: 10px 0 0; font: 700 64px/1 var(--display); letter-spacing: .02em; }
.cu-clock.soon { color: var(--brass-dark); }
.cu-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cu-counts > div { border: 2px solid var(--line); border-radius: var(--r); padding: 6px 8px; text-align: center; }
.cu-counts b { display: block; font: 700 28px/1.1 var(--display); }
.cu-counts span { font-size: 13px; color: var(--ink-3); }
.cu-counts > div:first-child { border-color: var(--right-dark); }
.cu-list { margin: 0; padding: 0 0 0 22px; display: grid; gap: 4px; }
.cu-list li { overflow-wrap: anywhere; }
.cu-list .who { color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) {
  .cu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "live" "new" "recent" "posts"; }
  .cu-clock { font-size: 48px; }
  .cu-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ═════════ Regie-Komfort (0.26): Tastenkürzel, Abendplan, Listen-Werkzeuge, „Standard“-Links – Präfix qo- ═════════ */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); text-decoration: underline; cursor: pointer; }
.linkbtn:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 3px; }
.mine-line { margin: -6px 0 14px; }
.qo-obs { margin: 8px 0 0; }
.copyline { flex-wrap: wrap; }
.copyline input { min-width: 140px; flex: 1; }
.copyline .btn { white-space: nowrap; flex: none; }
.nx-h2 { align-items: baseline; }
.nx-h2 .nx-h { margin-bottom: 8px; }
.qo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--bulb); color: var(--ink); font: 800 22px/1 var(--display); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.qo-fab:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.qo-sc-wrap { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 16px; background: rgba(20, 14, 22, .45); animation: pop .15s; }
.qo-sc { width: min(460px, 100%); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 22px; }
.qo-sc h3 { margin: 0 0 10px; }
.qo-sc dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 12px; align-items: center; }
.qo-sc dt { white-space: nowrap; font-weight: 700; }
.qo-sc dd { margin: 0; }
kbd { display: inline-block; min-width: 1.6em; padding: 2px 7px; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 7px; background: #fff; font: 700 14px/1.2 var(--text); text-align: center; }
.qo-hit { outline: 4px solid var(--bulb); outline-offset: 2px; }
.qo-plan .qo-plist { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 6px; }
.qo-plan .qo-plist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.qo-plan .qo-plist li.warn { border-style: dashed; background: var(--paper-2); }
.qo-plan .qo-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bulb); border: 2px solid var(--ink); font-weight: 800; }
.qo-plan .qo-txt { display: flex; flex-direction: column; min-width: 0; }
.qo-plan .qo-txt b { font: 700 16px/1.2 var(--display); }
.qo-plan .qo-txt small { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.qo-plan .qo-txt small.bad { color: var(--wrong-dark); font-weight: 700; }
.qo-plan .qo-acts { display: flex; gap: 4px; }
.qo-plan .qo-acts .btn { min-width: 34px; }
.qo-plan .toggle { margin-top: 12px; }
.qo-plan .toggle > span:first-child { display: flex; flex-direction: column; }
.qo-plan .nx-cfgline { font-weight: 400; }
.qo-empty { margin: 10px 0 0; }
.qo-ptools { display: grid; gap: 6px; margin: 10px 0; }
.qo-ptools input[type=search] { padding: 8px 12px; font-size: 15px; }
.qo-prow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qo-prow select { width: 100%; padding: 6px 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .qo-sc-wrap { animation: none; } }

/* ═════════ Komfort 0.27.2: Live-Einstellungen in der Regie, Verbindungszeile am Handy – Präfix qo- ═════════ */
.qo-live { border-color: var(--sea); }
.qo-livestamp { margin-left: 8px; font-size: 13px; vertical-align: middle; }
.qo-fixed { margin: 4px 0 10px; }
.qo-fixed summary { cursor: pointer; }
.qo-fixed ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.qo-fixed li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--ink-3); }
.qo-fixed li b { text-align: right; overflow-wrap: anywhere; }
.qo-connbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 98; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--bulb); color: var(--ink); box-shadow: 0 4px 0 var(--ink); animation: pop .2s; }
.qo-connbar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qo-connbar span { font-size: 14px; }
.qo-connbar .btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .qo-connbar { animation: none; } }

/* ═════════ Komfort 0.27.3: Sprung zu den Live-Einstellungen (Regie) ═════════ */
.qo-tosettings { margin-left: auto; align-self: center; }

/* ═════════ 0.27.5: Fokus nach Bildschirmwechsel (play.js focusScreen) – Überschrift ohne Rahmen ═════════ */
[data-screen] [tabindex="-1"]:focus { outline: none; }

/* ═════════ 0.27.7: Betreiber-Bereich – einheitliches Menü, Übersicht mit Ampeln, Tabellen am Handy – Präfix adm- ═════════ */
.adm-main { padding-bottom: 50px; }
.adm-nav { margin: 14px 0 0; }
.adm-navd { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.adm-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.adm-gl { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.adm-grp a { padding: 6px 9px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.adm-grp a:hover { background: var(--paper-2); }
.adm-grp a.on { background: var(--ink); color: var(--bulb); }
.adm-grp a:focus-visible, .adm-navm > summary:focus-visible, .adm-tile:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.adm-badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: var(--wrong-dark); color: #fff; font: 700 12px/18px var(--text); text-align: center; }
.adm-navm { display: none; }
.adm-navm > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.adm-navm > summary::-webkit-details-marker { display: none; }
.adm-navm > summary b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-more { font: 700 13px var(--display); text-transform: uppercase; }
.adm-more::after { content: ' ▾'; }
.adm-navm[open] .adm-more::after { content: ' ▴'; }
.adm-navm-in { display: grid; gap: 10px; margin-top: 6px; padding: 10px 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); }
.adm-navm-in .adm-grp { display: grid; gap: 2px; }
.adm-navm-in .adm-grp a { padding: 9px 10px; font-size: 16px; }
@media (max-width: 760px) { .adm-navd { display: none; } .adm-navm { display: block; } }
.adm-crumbs { margin: 14px 0 0; color: rgba(246, 239, 227, .82); }
.adm-h1 { font: 700 40px/1.05 var(--display); text-transform: uppercase; margin: 10px 0 16px; overflow-wrap: anywhere; }
.adm-lead { margin: -6px 0 16px; max-width: 760px; color: rgba(246, 239, 227, .88); }
@media (max-width: 480px) { .adm-h1 { font-size: 30px; } }
/* Ampeln der Übersicht */
.adm-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.adm-sum b { font: 700 20px var(--display); }
.adm-lights { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0 0 26px; }
.adm-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px 40px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; }
.adm-tile:hover { background: #fff; }
.adm-tile::before { content: ''; position: absolute; left: 13px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--right); }
.adm-tile.warn::before { background: var(--bulb); }
.adm-tile.bad::before { background: var(--wrong); }
.adm-tile.bad { border-color: var(--wrong-dark); box-shadow: 0 0 0 2px var(--wrong), var(--shadow); }
.adm-tile b { font: 700 16px/1.25 var(--display); }
.adm-tile span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.adm-tile em { margin-top: auto; padding-top: 4px; font: 700 13px var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .04em; color: var(--sea); }
.adm-tile em::after { content: ' →'; }
.adm-lvl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Bereiche der Übersicht */
.adm-sec { margin: 0 0 24px; }
.adm-sec > h2 { font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; color: var(--paper); }
.adm-sec .games { padding: 0; }
.adm-sec .card { display: flex; flex-direction: column; }
.adm-sec .card > .btn, .adm-sec .card > .row:last-child { margin-top: auto; align-self: flex-start; }
/* Tabellen am Handy: Zeilen als Kärtchen (data-label je Zelle), keine waagerechte Scrollleiste */
@media (max-width: 640px) {
  .tbl.adm-stack, .tbl.adm-stack tbody, .tbl.adm-stack tr, .tbl.adm-stack td { display: block; width: 100%; }
  .tbl.adm-stack tr:first-child:has(th), .tbl.adm-stack thead { display: none; }
  .tbl.adm-stack tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl.adm-stack td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  .tbl.adm-stack td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--ink-3); font-size: 13px; }
  .tbl.adm-stack td .row { justify-content: flex-start !important; margin-top: 4px; }
}
.adm-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.adm-empty { margin: 0; padding: 14px; border: 2px dashed var(--line); border-radius: 9px; color: var(--ink-3); text-align: center; }
.adm-st { margin: 0 0 14px; }
/* Produkte am Handy: Formular-Spalte darf schmaler werden als Datei-/Monatsfelder es gern hätten (war 417 px bei 390 px Breite) */
.prod-grid > * { min-width: 0; }
.prod-grid input[type=file], .prod-grid input[type=month] { max-width: 100%; min-width: 0; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }
