/* ═══════════════════════════════════════════════════════════════════════
   Weihnachtsmarkt-Bingo – Weihnachtsmarkt × Casino × 90er-Game-Show.
   Animiert wird fast nur über transform/opacity (läuft auf dem Compositor),
   Partikel über ein einziges Canvas. Keine externen Schriften oder Bilder.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --wine-900: #14030a;
  --wine-800: #230510;
  --wine-700: #3a0612;
  --wine-500: #7a0f25;
  --red: #e3123a;
  --red-deep: #9c0b24;
  --green: #0f5a3c;
  --green-deep: #0a2e21;
  --gold: #ffd76a;
  --gold-deep: #f5b301;
  --cream: #fff4dc;
  --ink: #3a1a12;

  --font-display: "Avenir Next Condensed", "HelveticaNeue-CondensedBlack", "Roboto Condensed",
    "Arial Narrow", Impact, "Franklin Gothic Bold", sans-serif-condensed, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-fancy: Georgia, "Times New Roman", serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wine-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.35;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Samtvorhang + Casino-Teppich */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 215, 106, .035) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 215, 106, .035) 0 2px, transparent 2px 26px),
    radial-gradient(120% 70% at 50% 0%, #8a1029 0%, #4a0817 40%, var(--wine-800) 72%, var(--wine-900) 100%);
  pointer-events: none;
}

[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

/* ───────────── Deko-Ebenen ───────────── */

#bokeh, #floaters { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

#bokeh i {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  opacity: .22;
  animation: bokeh 17s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
#bokeh i:nth-child(1) { --c: #ff3355; left: -18vmax; top: -10vmax; }
#bokeh i:nth-child(2) { --c: #ffd76a; right: -20vmax; top: 8vmax; animation-delay: -5s; }
#bokeh i:nth-child(3) { --c: #2fd17a; left: -14vmax; top: 48vmax; animation-delay: -9s; }
#bokeh i:nth-child(4) { --c: #5ad1ff; right: -22vmax; top: 60vmax; animation-delay: -3s; opacity: .14; }
#bokeh i:nth-child(5) { --c: #ff8ad8; left: 20vmax; top: 90vmax; animation-delay: -12s; opacity: .13; }
#bokeh i:nth-child(6) { --c: #ffd76a; left: 30vmax; top: -26vmax; animation-delay: -7s; opacity: .18; }
@keyframes bokeh {
  from { transform: translate3d(-3vmax, -2vmax, 0) scale(.9); opacity: .1; }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.15); opacity: .26; }
}

#floaters span {
  position: absolute;
  left: var(--x);
  bottom: -60px;
  font-size: var(--s);
  opacity: .3;
  animation: floatUp var(--d) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}
@keyframes floatUp {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(var(--dx), -125vh, 0) rotate(var(--rot)); }
}

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

#garland { position: absolute; top: 0; left: 0; right: 0; height: 74px; z-index: 3; pointer-events: none; overflow: hidden; }
#garland svg { display: block; width: 100%; height: 100%; }
#garland .glow { animation: twinkle 1.6s ease-in-out infinite alternate; will-change: opacity; }
#garland .tw1 { animation-delay: -.2s; }
#garland .tw2 { animation-delay: -.7s; animation-duration: 1.1s; }
#garland .tw3 { animation-delay: -1.1s; animation-duration: 2.1s; }
#garland .tw4 { animation-delay: -1.5s; animation-duration: .8s; }
@keyframes twinkle { from { opacity: .12; } to { opacity: 1; } }
#garland .ball { transform-box: fill-box; transform-origin: 50% 0%; animation: swing 3.4s ease-in-out infinite alternate; }
#garland .ball:nth-of-type(even) { animation-delay: -1.7s; animation-duration: 2.8s; }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* ───────────── Layout ───────────── */

#app {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 62px 12px calc(40px + var(--safe-bottom));
}
.view { display: flex; flex-direction: column; gap: 14px; animation: viewIn .5s ease-out both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.panel {
  background: rgba(24, 3, 11, .86);
  border: 2px solid rgba(255, 215, 106, .45);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.panel h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.panel h2 .count { margin-left: auto; font-size: 12px; color: var(--cream); opacity: .7; letter-spacing: 0; text-transform: none; }

/* Zuckerstangen-Rahmen */
.candy {
  border: 7px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#2a0610, #1c040b) padding-box,
    repeating-linear-gradient(45deg, var(--red) 0 11px, #fff 11px 22px) border-box;
  padding: 16px 14px;
}

.fineprint { font-family: var(--font-fancy); font-style: italic; font-size: 12.5px; opacity: .72; text-align: center; line-height: 1.5; }
.fineprint.center { margin-top: 4px; }
.linklike { background: none; border: 0; padding: 6px 4px; color: var(--gold); text-decoration: underline; font: inherit; }

/* ───────────── Buttons ───────────── */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: transform .08s ease-out;
  user-select: none;
  -webkit-user-select: none;
}
.btn small { font-family: var(--font-fancy); font-style: italic; font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 2px; }
.btn:active { transform: translateY(3px) scale(.98); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .tile:focus-visible, .linklike:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}

.btn-primary {
  width: 100%;
  font-size: 22px;
  padding: 14px 18px;
  color: var(--wine-700);
  background: linear-gradient(#fff0b8 0%, var(--gold) 30%, var(--gold-deep) 62%, #d48800 100%);
  box-shadow: 0 5px 0 #8a5600, 0 12px 24px rgba(0, 0, 0, .5);
}
/* Glanz, der regelmäßig über den Knopf wischt */
.btn-primary::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 55% { transform: translateX(-160%) skewX(-18deg); } 85%, 100% { transform: translateX(420%) skewX(-18deg); } }

.btn-gold {
  color: var(--gold);
  background: linear-gradient(#3d0a17, #24050d);
  border: 2px solid var(--gold);
  font-size: 14px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
}
.btn-ghost { color: var(--cream); background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 244, 220, .4); font-size: 14px; }

.wiggle { animation: wiggle 2.8s ease-in-out infinite; }
@keyframes wiggle {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(-2.2deg) scale(1.02); }
  81% { transform: rotate(2.2deg) scale(1.03); }
  86% { transform: rotate(-1.6deg) scale(1.02); }
  91% { transform: rotate(1.2deg); }
  96% { transform: rotate(-.5deg); }
}
.wiggle:active { animation: none; transform: translateY(3px) scale(.98); }

/* ───────────── Startseite: Leuchtschild ───────────── */

.sign {
  position: relative;
  padding: 26px 22px 20px;
  border-radius: 26px;
  background: linear-gradient(#6d0c22, #2c0410);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px #24050d, 0 0 0 8px rgba(255, 215, 106, .5), 0 20px 46px rgba(0, 0, 0, .6);
  text-align: center;
}
.sign-bulbs { position: absolute; inset: 0; pointer-events: none; }
.sign-bulbs i {
  position: absolute;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9a6 45%, #f5b301);
  box-shadow: 0 0 8px 2px rgba(255, 215, 106, .8);
  animation: chase 1s steps(1) infinite;
}
.sign-bulbs i:nth-child(even) { animation-delay: -.5s; }
@keyframes chase { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .22; } }

.sign-kicker {
  font-family: var(--font-fancy); font-style: italic;
  font-size: 15px; color: var(--cream); letter-spacing: .04em;
}
.sign-kicker span { display: inline-block; color: var(--gold); animation: spinStar 4s linear infinite; }
@keyframes spinStar { to { transform: rotate(360deg); } }

.sign-title { display: block; margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; line-height: 1; }
.sign-word { display: block; white-space: nowrap; font-size: 40px; letter-spacing: .01em; padding: 6px 0 2px; }
.sign-word span {
  display: inline-block;
  background: linear-gradient(#fffbe6 8%, var(--gold) 45%, #e08a00 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(90, 40, 0, .5);
  animation: wave 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.14s);
  will-change: transform;
}
@keyframes wave { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-11%) rotate(-3deg); } }

.baubles { display: flex; justify-content: center; gap: clamp(5px, 2vw, 12px); margin: 20px 0 6px; }
.bauble {
  --c: var(--red);
  position: relative;
  width: clamp(46px, 15.5vw, 78px); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 9.5vw, 48px);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .25) 16%, transparent 34%),
    radial-gradient(circle at 60% 70%, transparent 40%, rgba(0, 0, 0, .38) 100%),
    var(--c);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45);
  transform-origin: 50% -22px;
  animation: swing 2.4s ease-in-out infinite alternate;
  will-change: transform;
}
.bauble::before { /* Aufhänger */
  content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 9px; margin-left: -7px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #b8860b, #ffe9a6, #b8860b);
}
.bauble::after { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 15px; margin-left: -1px; background: rgba(255, 233, 166, .8); }
.bauble:nth-child(1) { --c: #d3122f; animation-delay: -.3s; }
.bauble:nth-child(2) { --c: #0f8a55; animation-delay: -1.3s; animation-duration: 2.9s; }
.bauble:nth-child(3) { --c: #d99a00; animation-delay: -.8s; animation-duration: 2.1s; }
.bauble:nth-child(4) { --c: #1d6fd1; animation-delay: -1.9s; animation-duration: 3.1s; }
.bauble:nth-child(5) { --c: #b0289a; animation-delay: -.1s; animation-duration: 2.6s; }

.sign-sub {
  min-height: 2.6em;
  display: grid; place-items: center;
  margin-top: 10px;
  font-family: var(--font-fancy); font-style: italic;
  font-size: clamp(14.5px, 4.1vw, 18px);
  color: var(--cream);
  text-wrap: balance;
  transition: opacity .35s, transform .35s;
}
.sign-sub.swap { opacity: 0; transform: translateY(6px); }

/* Jackpot-Anzeige (bleibt bei null, blinkt aber wichtig) */
.jackpot { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 10px; border-radius: 10px; background: #12030a; border: 2px solid rgba(255, 215, 106, .6); }
.jackpot span { font: 900 12px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.jackpot b { font: 700 20px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #ff4d5e; text-shadow: 0 0 10px rgba(255, 60, 80, .9); animation: jackpot 1.4s steps(1) infinite; }
@keyframes jackpot { 0%, 69% { opacity: 1; } 70%, 100% { opacity: .5; } }
.jackpot small { font: italic 11.5px var(--font-fancy); opacity: .7; }

/* Glühweintasse mit Dampf */
.mug-row { display: flex; align-items: flex-end; justify-content: center; gap: 26px; height: 92px; margin: 2px 0 -4px; }
.side-emoji { font-size: 40px; animation: bob 2.2s ease-in-out infinite alternate; }
.side-emoji.right { animation-delay: -1.1s; }
@keyframes bob { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-10px) rotate(10deg); } }
.mug { position: relative; width: 86px; height: 92px; }
.mug-body {
  position: absolute; left: 4px; bottom: 0; width: 60px; height: 56px;
  border-radius: 5px 5px 20px 20px;
  border-top: 7px solid #4a0312;
  background: linear-gradient(90deg, #a30b25, var(--red) 42%, #b50d2a 70%, #8a0920);
  display: grid; place-items: center;
  color: #fff; font-size: 24px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .45);
}
.mug-handle { position: absolute; left: 62px; bottom: 14px; width: 20px; height: 30px; border: 7px solid #a30b25; border-left: 0; border-radius: 0 16px 16px 0; }
.steam {
  position: absolute; bottom: 58px; width: 12px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .75), transparent 70%);
  filter: blur(3px);
  opacity: 0;
  animation: steam 3s ease-out infinite;
  will-change: transform, opacity;
}
.steam.s1 { left: 12px; }
.steam.s2 { left: 28px; animation-delay: -1s; }
.steam.s3 { left: 44px; animation-delay: -2s; }
@keyframes steam {
  0% { transform: translate3d(0, 10px, 0) scale(.7, .7); opacity: 0; }
  25% { opacity: .85; }
  100% { transform: translate3d(6px, -34px, 0) scale(2, 1.5); opacity: 0; }
}

/* Formular */
.room-note { text-align: center; font-size: 14.5px; margin-bottom: 12px; text-wrap: balance; }
.room-note b { color: var(--gold); font-family: var(--font-display); letter-spacing: .06em; white-space: nowrap; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--gold); margin-bottom: 5px; }
.field em { font-family: var(--font-fancy); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--cream); opacity: .7; font-size: 12.5px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px;
  border-radius: 12px; border: 3px solid var(--gold);
  background: var(--cream); color: var(--ink);
  font: 600 17px var(--font-body);
}
.field input::placeholder { color: #a08a76; font-weight: 400; }
.field input:focus { outline: 3px solid #fff; outline-offset: 2px; }
.form-error { background: #fff; color: var(--red-deep); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; margin-bottom: 12px; animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
#join-form .btn-primary { margin: 4px 0 14px; }

/* Ankreuzfeld */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 14px; line-height: 1.35; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--gold-deep); }
.check b { color: var(--gold); }
.check em { display: block; font: italic 12.5px var(--font-fancy); opacity: .75; }

/* Begriffe-Editor */
.editor { margin: 0 0 14px; border: 2px dashed rgba(255, 215, 106, .5); border-radius: 14px; padding: 2px 12px; }
.editor[open] { padding-bottom: 12px; }
.editor summary { cursor: pointer; padding: 10px 0; font: 800 14px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.editor summary em { font: italic 400 12.5px var(--font-fancy); letter-spacing: 0; text-transform: none; color: var(--cream); opacity: .8; }
.editor-intro { font-size: 13px; opacity: .85; margin-bottom: 12px; }
.editor textarea {
  width: 100%; min-height: 150px; padding: 10px 12px;
  border-radius: 12px; border: 3px solid var(--gold);
  background: var(--cream); color: var(--ink);
  font: 500 16px/1.45 var(--font-body);
  resize: vertical;
}
.editor textarea:focus { outline: 3px solid #fff; outline-offset: 2px; }
.editor-status { font-size: 13px; font-weight: 700; margin-bottom: 10px; white-space: pre-line; }
.editor-status.bad { background: #fff; color: var(--red-deep); border-radius: 10px; padding: 8px 12px; }
.editor .btn { width: 100%; }

/* ───────────── Spiel: Kopfzeile ───────────── */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand > span { font-size: 26px; line-height: 1; }
.brand b { display: block; font: 800 9.5px/1 var(--font-display); letter-spacing: .16em; color: var(--cream); opacity: .85; }
.brand i { display: block; font: 900 21px/1 var(--font-display); font-style: normal; letter-spacing: .1em; color: var(--gold); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 11px;
  border-radius: 999px; border: 2px solid var(--gold);
  background: rgba(24, 3, 11, .86);
  font: 800 13px var(--font-display); letter-spacing: .06em; color: var(--gold);
  white-space: nowrap;
}
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 215, 106, .55); background: rgba(24, 3, 11, .86); font-size: 18px; padding: 0; }
.icon-btn[aria-pressed="true"] { background: var(--gold); border-color: #fff; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: #f5b301; animation: pulse 1s ease-in-out infinite alternate; }
.conn.online { background: #36e08a; animation: none; }
.conn.offline { background: #ff4d5e; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

.offline-note { background: #fff; color: var(--red-deep); font-weight: 700; font-size: 13.5px; border-radius: 12px; padding: 8px 12px; text-align: center; }

/* ───────────── Podium ───────────── */

.podium { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 6px; }
.podium li {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  min-width: 0; min-height: 46px;
  padding: 5px 8px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 244, 220, .3);
  background: rgba(24, 3, 11, .7);
}
.podium .medal { font-size: 22px; flex: none; }
.podium .who { min-width: 0; font-size: 12px; line-height: 1.15; font-family: var(--font-fancy); font-style: italic; opacity: .65; }
.podium .who b, .podium .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium li.filled { border-style: solid; color: var(--ink); animation: podiumPop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.podium li.filled .who { opacity: 1; font-family: var(--font-body); font-style: normal; }
.podium li.filled .who b { font: 900 14.5px var(--font-display); letter-spacing: .02em; }
.podium li.filled .who small { font-size: 10.5px; opacity: .8; }
.podium li[data-rank="1"].filled { background: linear-gradient(#fff3c4, var(--gold) 55%, #e6a500); border-color: #fff; }
.podium li[data-rank="2"].filled { background: linear-gradient(#ffffff, #d5dae2 55%, #a9b1bd); border-color: #fff; }
.podium li[data-rank="3"].filled { background: linear-gradient(#ffd9b0, #d98e4f 55%, #b56a2c); border-color: #ffe2c4; }
.podium li.me::after { content: "DU"; position: absolute; top: -8px; right: -4px; background: var(--red); color: #fff; font: 900 10px var(--font-display); letter-spacing: .08em; padding: 2px 6px; border-radius: 8px; border: 1.5px solid #fff; }
@keyframes podiumPop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Laufband wie im Nachtprogramm */
.marquee { overflow: hidden; border-radius: 8px; border: 1.5px solid rgba(255, 215, 106, .45); background: #12030a; padding: 5px 0; }
.marquee-track { display: inline-block; white-space: nowrap; font: 700 12.5px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #ffcf5a; text-shadow: 0 0 8px rgba(255, 190, 60, .7); animation: marquee var(--marquee-d, 90s) linear infinite; will-change: transform; }
.marquee-track span { padding: 0 14px; }
.marquee-track span::after { content: "★"; padding-left: 28px; color: #ff4d5e; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ───────────── Wartesaal ───────────── */
.lobby { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; }
.lobby-kicker { font: 900 14px var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: #fff; animation: pulse 1s ease-in-out infinite alternate; }
.lobby h2 { font: 900 clamp(24px, 7.4vw, 34px)/1.05 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: var(--gold); }
.lobby-sub { font: italic 16px var(--font-fancy); }
.lobby-text { font-size: 14.5px; opacity: .9; text-wrap: balance; margin: 4px 0 8px; }
.lobby .btn { width: 100%; }
.lobby .btn-primary { margin-bottom: 6px; }
.deck { position: relative; width: 118px; height: 150px; margin: 14px 0 12px; }
.deck i {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 14px; border: 3px solid var(--gold);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 5px, transparent 5px 12px),
    linear-gradient(#d3122f, #7d0a1f);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
  font-style: normal; font-size: 46px; color: var(--gold);
}
.deck i:nth-child(1) { transform: rotate(-9deg) translate(-8px, 4px); }
.deck i:nth-child(2) { transform: rotate(6deg) translate(7px, 2px); }
.deck i:nth-child(3) { animation: deckTease 3.2s ease-in-out infinite; }
@keyframes deckTease {
  0%, 62%, 100% { transform: none; }
  68% { transform: translateY(-14px) rotate(-5deg); }
  76% { transform: translateY(-14px) rotate(5deg) rotateY(28deg); }
  86% { transform: translateY(0) rotate(-2deg); }
}

/* ───────────── Bingo-Karte ───────────── */

.card-stage { perspective: 1100px; }
.card-wrap {
  position: relative;
  container-type: inline-size;
  padding: 8px;
  border-radius: 20px;
  border: 3px solid var(--gold);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .12), transparent 45%),
    linear-gradient(#137049, var(--green-deep));
  box-shadow: 0 0 0 5px #06140f, 0 0 0 7px rgba(255, 215, 106, .45), 0 18px 40px rgba(0, 0, 0, .55);
}
.card-letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqi; margin-bottom: 1.6cqi; }
.card-letters span {
  justify-self: center;
  width: 9.5cqi; aspect-ratio: 1; max-width: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  font: 900 clamp(15px, 5.6cqi, 28px) var(--font-display);
  color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .9) 0 6%, rgba(255, 255, 255, .2) 18%, transparent 36%),
    var(--c, #d3122f);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
  animation: letterHop 3s ease-in-out infinite;
}
.card-letters span:nth-child(2) { --c: #d99a00; animation-delay: .15s; }
.card-letters span:nth-child(3) { --c: #1d6fd1; animation-delay: .3s; }
.card-letters span:nth-child(4) { --c: #b0289a; animation-delay: .45s; }
.card-letters span:nth-child(5) { --c: #d3122f; animation-delay: .6s; }
@keyframes letterHop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-18%) rotate(-8deg); } 94% { transform: translateY(0) rotate(4deg); } }

.card { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4cqi; }
.card-owner { margin-top: 6px; text-align: center; font: italic 12px var(--font-fancy); color: var(--cream); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tile {
  position: relative;
  aspect-ratio: 1 / 1.3;
  min-width: 0;
  padding: 0; border: 0; background: none;
  border-radius: 2.6cqi;
  color: var(--ink);
  transition: transform .09s ease-out;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.tile:active { transform: scale(.93); }
.tile-inner { position: absolute; inset: 0; border-radius: inherit; }
.tile-face, .tile-back { position: absolute; inset: 0; border-radius: inherit; }
.tile-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqi;
  padding: 1cqi .8cqi;
  background: linear-gradient(#fffdf5, #f6e6c4);
  box-shadow: inset 0 -3px 0 rgba(150, 110, 50, .35), 0 2px 4px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.tile .e { font-size: clamp(17px, 6.6cqi, 34px); line-height: 1.1; flex: none; }
.tile .t {
  width: 100%;
  font-size: clamp(9px, 2.95cqi, 15.5px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.01em;
  text-align: center;
  hyphens: manual; -webkit-hyphens: manual; /* Trennstellen kommen aus terms.js */
  overflow-wrap: anywhere;
}
.tile .t.auto { hyphens: auto; -webkit-hyphens: auto; }
.tile-back { display: none; }

/* Ein Feld fehlt: Alarmstufe Glühwein */
.card-wrap.alarm::after {
  content: ""; position: absolute; inset: -6px; border-radius: 24px;
  border: 5px solid #ff2244; box-shadow: 0 0 26px 4px rgba(255, 40, 70, .8);
  pointer-events: none;
  animation: pulse .45s ease-in-out infinite alternate;
}
.tile.rare .tile-face { animation: rareGlow 1.2s ease-out; }
@keyframes rareGlow { 0% { box-shadow: 0 0 0 0 #fff, 0 0 30px 14px var(--gold); } 100% { box-shadow: inset 0 0 0 2px var(--gold), 0 2px 4px rgba(0, 0, 0, .35); } }

#app.quake { animation: quake .55s linear; }
@keyframes quake {
  10% { transform: translate(-7px, 4px) rotate(-.6deg); } 25% { transform: translate(8px, -5px) rotate(.7deg); }
  40% { transform: translate(-6px, -3px) rotate(-.5deg); } 55% { transform: translate(6px, 5px) rotate(.4deg); }
  70% { transform: translate(-4px, 2px); } 85% { transform: translate(3px, -2px); } 100% { transform: none; }
}

/* Stempel */
.tile .stamp {
  position: absolute; top: -1.2cqi; right: -1.2cqi;
  width: 6.2cqi; height: 6.2cqi; min-width: 18px; min-height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #18b060; color: #fff; border: 2px solid #fff;
  font-size: clamp(10px, 3.4cqi, 16px); font-weight: 900; line-height: 1;
  transform: scale(0);
  z-index: 2;
}
.tile.marked .tile-face {
  background: linear-gradient(#e21a3f, var(--red-deep));
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .35);
}
.tile.marked .stamp { transform: scale(1) rotate(-8deg); transition: transform .35s cubic-bezier(.2, 2.2, .4, 1); }
.tile.pop { animation: tilePop .45s cubic-bezier(.2, 1.6, .4, 1); z-index: 3; }
@keyframes tilePop { 0% { transform: scale(.86); } 45% { transform: scale(1.2) rotate(-5deg); } 100% { transform: none; } }
.tile.nope { animation: shake .35s; }

/* Gewinnlinie */
.tile.winline .tile-face { background: linear-gradient(#fff6c9, var(--gold) 50%, #eaa400); color: var(--wine-700); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--gold), 0 2px 4px rgba(0, 0, 0, .35); }
.tile.winline { animation: winPulse 1.1s ease-in-out infinite alternate; z-index: 2; }
@keyframes winPulse { from { transform: scale(1); } to { transform: scale(1.06) rotate(1.5deg); } }

/* Freifeld: Lebkuchenherz */
.tile.free .tile-face { background: none; box-shadow: none; overflow: visible; padding: 0; }
.tile.free svg { width: 112%; height: auto; flex: none; animation: heartbeat 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.1); } 80% { transform: scale(.98); } 90% { transform: scale(1.06); } }

/* Zuteilung: Kacheln liegen verdeckt und drehen sich nacheinander um */
.card.dealing .tile-inner { transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.card.dealing .tile-face, .card.dealing .tile-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card.dealing .tile-back {
  display: grid; place-items: center;
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 4px, transparent 4px 10px),
    linear-gradient(#d3122f, #7d0a1f);
  box-shadow: inset 0 0 0 2px var(--gold);
  color: var(--gold); font-size: 6cqi;
}
.card.dealing .tile.facedown .tile-inner { transform: rotateY(180deg); }
.card.dealing .tile { pointer-events: none; }

.hint { min-height: 1.4em; text-align: center; font: 800 15px var(--font-display); letter-spacing: .05em; color: var(--gold); text-wrap: balance; }
.hint.hot { animation: pulse .5s ease-in-out infinite alternate; color: #fff; }

/* ───────────── Ticker & Mitspieler ───────────── */

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; animation: pulse .7s ease-in-out infinite alternate; }
.ticker { display: flex; flex-direction: column; gap: 4px; min-height: 22px; font-size: 13.5px; }
.ticker li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .55; }
.ticker li:first-child { opacity: 1; font-weight: 700; animation: tickerIn .4s ease-out; }
.ticker li:nth-child(2) { opacity: .8; }
.ticker li.big { color: var(--gold); }
.ticker .empty { font-family: var(--font-fancy); font-style: italic; opacity: .6; font-weight: 400; animation: none; }
@keyframes tickerIn { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

.players { display: flex; flex-direction: column; gap: 6px; }
.players li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.players li.me { background: rgba(255, 215, 106, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 215, 106, .6); }
.players li.off .p-name { opacity: .55; }
.players .p-badge { font-size: 19px; text-align: center; }
.players .p-name { min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.players .p-name span, .players .p-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .p-name small { font-weight: 400; font-size: 12px; opacity: .7; }
.players .p-stat { text-align: right; font-size: 11.5px; line-height: 1.25; opacity: .9; white-space: nowrap; }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pips i.on { background: var(--gold); }
.players li.close1 .pips i.on { background: #ff4d5e; animation: pulse .5s ease-in-out infinite alternate; }

.footer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-actions.settings { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.toggle { font-size: 11.5px; letter-spacing: .03em; min-height: 42px; padding: 8px 6px; border-width: 1.5px; }
.toggle[aria-pressed="true"] { background: var(--gold); color: var(--wine-700); border-color: #fff; }

/* ───────────── Overlays ───────────── */

.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow: hidden; }

/* Kartenzuteilung */
.deal { background: radial-gradient(circle at 50% 40%, rgba(60, 6, 20, .96), rgba(10, 2, 6, .98)); transition: opacity .35s; }
.deal.out { opacity: 0; }
.spot {
  position: absolute; top: -10vh; width: 60vmin; height: 150vh;
  background: linear-gradient(rgba(255, 244, 200, .5), rgba(255, 244, 200, 0) 85%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  animation: sweep 1.9s ease-in-out infinite alternate;
}
.spot.a { left: 0; }
.spot.b { right: 0; animation-delay: -.95s; animation-direction: alternate-reverse; }
@keyframes sweep { from { transform: rotate(-32deg); } to { transform: rotate(32deg); } }
.deal-banner {
  position: relative;
  max-width: 100%;
  text-align: center;
  font: 900 clamp(24px, 8.4vw, 56px)/1.02 var(--font-display);
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 3px 0 #7a4b00, 0 0 28px rgba(255, 215, 106, .7);
  text-wrap: balance;
}
.deal-banner small { display: block; margin-top: 12px; font: italic 400 clamp(15px, 4.4vw, 20px)/1.3 var(--font-fancy); letter-spacing: 0; text-transform: none; color: var(--cream); text-shadow: none; }
.deal-banner.thump { animation: thump .5s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes thump { 0% { transform: scale(2.6) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Einblendung für große Momente: fliegt rein, bleibt kurz, fliegt raus */
.hype {
  position: fixed; left: 0; right: 0; top: 34%; z-index: 52;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 12px;
  text-align: center; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(227, 18, 58, .96) 12%, rgba(156, 11, 36, .96) 88%, transparent);
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  animation: hype 1.9s cubic-bezier(.2, .9, .3, 1) forwards;
}
.hype b { font: 900 clamp(26px, 9vw, 54px)/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 #5a0412, 0 0 22px rgba(255, 215, 106, .9); }
.hype span { font: italic clamp(14px, 4.2vw, 19px)/1.25 var(--font-fancy); color: var(--gold); text-wrap: balance; }
@keyframes hype {
  0% { transform: translateX(-110%) skewX(-12deg); opacity: 0; }
  14% { transform: translateX(3%) skewX(-4deg); opacity: 1; }
  20%, 78% { transform: translateX(0) skewX(0) rotate(-2deg); opacity: 1; }
  100% { transform: translateX(115%) skewX(12deg); opacity: 0; }
}

/* Lichtblitz bei Explosionen */
.flash { position: fixed; inset: 0; z-index: 55; background: #fff; pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .75; } to { opacity: 0; } }

/* Eilmeldung */
.breaking {
  position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 50;
  max-width: 540px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px; border: 3px solid #fff;
  background: linear-gradient(var(--red), var(--red-deep));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  animation: breakingIn .6s cubic-bezier(.2, 1.5, .4, 1) both;
}
.breaking.out { animation: breakingOut .4s ease-in forwards; }
.breaking-tag { flex: none; background: var(--gold); color: var(--wine-700); font: 900 12px var(--font-display); letter-spacing: .1em; padding: 4px 7px; border-radius: 6px; animation: chase 1s steps(1) infinite; }
.breaking-text { font-weight: 800; font-size: 15px; line-height: 1.2; }
@keyframes breakingIn { from { transform: translateY(-160%) rotate(-3deg); } to { transform: none; } }
@keyframes breakingOut { to { transform: translateY(-160%); opacity: 0; } }

/* Eigenes Bingo */
.win { background: radial-gradient(circle at 50% 45%, #8a1029, #2a0510 60%, #0d0206); animation: winIn .4s ease-out both; }
@keyframes winIn { from { opacity: 0; } to { opacity: 1; } }
.rays {
  position: absolute; left: 50%; top: 45%;
  width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  background: repeating-conic-gradient(rgba(255, 215, 106, .2) 0 9deg, transparent 9deg 18deg);
  animation: spin 38s linear infinite;
  will-change: transform;
}
.win::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 0, transparent 30%, rgba(13, 2, 6, .82) 78%); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.win-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.bingo-sign {
  position: relative;
  display: flex; gap: clamp(4px, 1.4vw, 8px);
  padding: 16px 16px;
  border-radius: 20px; border: 3px solid var(--gold);
  background: linear-gradient(#4a0817, #1c040b);
  box-shadow: 0 0 60px rgba(255, 215, 106, .55);
  animation: signIn .8s cubic-bezier(.2, 1.6, .35, 1) both;
}
@keyframes signIn { 0% { transform: scale(0) rotate(-200deg); } 100% { transform: none; } }
.bingo-sign > span {
  width: clamp(38px, 12.4vw, 62px); aspect-ratio: 1 / 1.2;
  display: grid; place-items: center;
  border-radius: 9px;
  font: 900 clamp(30px, 10vw, 50px) var(--font-display);
  color: var(--wine-700);
  background: linear-gradient(#fffbe0, var(--gold) 55%, #e09500);
  box-shadow: inset 0 -4px 0 rgba(120, 70, 0, .45);
  animation: signLetter 1s ease-in-out infinite;
}
.bingo-sign > span:nth-of-type(even) { animation-delay: -.5s; }
@keyframes signLetter { 0%, 100% { transform: translateY(0) scale(1); opacity: 1; } 50% { transform: translateY(-9%) scale(1.07) rotate(-3deg); opacity: .72; } }

.win-rank { font: 900 clamp(34px, 11vw, 60px)/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--red-deep), 0 0 30px rgba(255, 255, 255, .5); animation: thump .6s .5s cubic-bezier(.2, 1.7, .4, 1) both; }
.win-text { font: italic clamp(16px, 4.6vw, 20px)/1.4 var(--font-fancy); color: var(--cream); text-wrap: balance; animation: viewIn .5s .9s both; }
.win-actions { display: grid; gap: 10px; width: 100%; max-width: 340px; margin-top: 6px; animation: viewIn .5s 1.3s both; }
.win-actions .btn-primary { font-size: 18px; }

/* Dialoge */
.modal-wrap { z-index: 45; background: rgba(10, 2, 6, .84); overflow-y: auto; animation: winIn .2s ease-out both; }
.modal {
  width: 100%; max-width: 440px; margin: auto;
  text-align: center;
  padding: 18px 16px;
  border: 7px solid transparent; border-radius: 24px;
  background:
    linear-gradient(#2a0610, #1c040b) padding-box,
    repeating-linear-gradient(45deg, var(--gold) 0 11px, var(--red) 11px 22px) border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  animation: thump .45s cubic-bezier(.2, 1.5, .4, 1) both;
}
.modal-kicker { font: 900 15px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: #fff; animation: pulse .5s ease-in-out infinite alternate; }
.modal h2 { font: 900 clamp(30px, 9vw, 42px)/1.05 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: var(--gold); margin: 8px 0; }
.confirm-term { font-weight: 800; font-size: 18px; background: var(--cream); color: var(--ink); border-radius: 12px; padding: 10px; }
.modal .small { font: italic 14px/1.4 var(--font-fancy); opacity: .85; margin: 10px 0 14px; text-wrap: balance; }
.modal-actions { display: grid; gap: 10px; }

/* Regeln */
.modal.rules { max-width: 480px; }
.rules-list { text-align: left; counter-reset: rule; display: grid; gap: 9px; margin: 12px 0 4px; }
.rules-list li { counter-increment: rule; position: relative; padding-left: 38px; font-size: 14.5px; line-height: 1.35; }
.rules-list li::before {
  content: counter(rule);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 900 15px var(--font-display); color: #fff;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .85) 0 7%, transparent 32%), var(--red);
}
.rules-list li:nth-child(3n + 2)::before { background-color: #0f8a55; }
.rules-list li:nth-child(3n)::before { background-color: #d99a00; }
.rules-list b { color: var(--gold); }

/* Ergebnis-Plakat: bewusst ruhig und ohne Animation – für Screenshots */
.modal.results { max-width: 480px; padding: 10px; }
.poster {
  background: linear-gradient(#fffaf0, #f7e7c6);
  color: var(--ink);
  border-radius: 14px;
  border: 3px double #b8860b;
  padding: 18px 14px 14px;
}
.poster-kicker { font: 800 12px var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--red-deep); }
.poster h2 { font: 900 clamp(26px, 8vw, 36px)/1.05 var(--font-display); color: var(--red-deep); margin: 4px 0 4px; letter-spacing: .03em; }
.poster-meta { font-size: 12.5px; opacity: .75; margin-bottom: 12px; }
.poster-top { display: grid; gap: 7px; text-align: left; }
.poster-top li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid #e4c98a; }
.poster-top li:first-child { border-color: #d99a00; background: linear-gradient(#fff9dc, #ffe9a0); }
.poster-top .m { font-size: 28px; text-align: center; }
.poster-top .n { min-width: 0; }
.poster-top .n b { display: block; font: 900 18px/1.15 var(--font-display); letter-spacing: .02em; overflow-wrap: anywhere; }
.poster-top .n small { display: block; font-size: 12px; opacity: .75; overflow-wrap: anywhere; }
.poster-top .x { font-size: 12px; text-align: right; line-height: 1.25; white-space: nowrap; }
.poster-top li.vacant { opacity: .6; border-style: dashed; }
.poster-top li.vacant .n b { font: italic 400 14px var(--font-fancy); }
.poster h3 { font: 800 12px var(--font-display); letter-spacing: .18em; text-transform: uppercase; margin: 14px 0 6px; color: var(--red-deep); }
.poster-rest { text-align: left; font-size: 13px; display: grid; gap: 3px; }
.poster-rest li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 6px; border-bottom: 1px dotted #c9ab6a; }
.poster-rest li span:first-child { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.poster-rest li span:last-child { flex: none; opacity: .8; }
.poster-foot { margin-top: 12px; font: italic 12px var(--font-fancy); opacity: .7; }
.results-actions { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.results-actions .btn-ghost, #ex-share[hidden] + #ex-shot { grid-column: 1 / -1; }

body.shot #fx, body.shot #floaters, body.shot .results-actions, body.shot .breaking { display: none; }
body.shot .modal.results { animation: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-bottom)); z-index: 70;
  max-width: min(92vw, 460px);
  padding: 10px 16px;
  border-radius: 22px; border: 2px solid var(--gold);
  background: rgba(20, 3, 10, .96);
  color: #fff; font-weight: 700; font-size: 14.5px; text-align: center; line-height: 1.25;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.noscript { position: relative; z-index: 5; text-align: center; padding: 40px 20px; }

/* ───────────── Breitere Bildschirme ───────────── */
@media (min-width: 620px) {
  #app { padding-top: 76px; }
  .podium li { min-height: 54px; padding: 6px 12px; }
  .podium .medal { font-size: 28px; }
  .podium li.filled .who b { font-size: 17px; }
}
@media (max-width: 359px) {
  #app { padding-left: 8px; padding-right: 8px; }
  .brand b { display: none; }
  .chip { padding: 0 8px; font-size: 12px; }
}

/* ───────────── Nüchtern-Modus / reduzierte Bewegung ─────────────
   Schaltet Dauer-Animationen ab; Rückmeldungen (Stempel, Haken) bleiben. */
body.sober *, body.sober *::before, body.sober *::after {
  animation-duration: .001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}
body.sober #floaters, body.sober #bokeh, body.sober .marquee, body.sober .card-wrap.alarm::after, body.sober .rays, body.sober .steam, body.sober .spot, body.sober .btn-primary::after { display: none; }
body.sober .sign-bulbs i, body.sober #garland .glow { opacity: .8; }

html { overflow-x: hidden; }
