/* ================================================================ Modus „Musik“: Disco-Hitparade mit Lichtshow
   Die Farben/Schriften gelten, sobald body[data-mode="music"] gesetzt ist. Die Bausteine der Song-Runden
   (Plattenspieler, Deck, Wunschliste …) stehen weiter unten und kommen nur im Musik-Modus vor. */

body[data-mode="music"] {
  --ink: #170629;
  --ink-soft: #4b2470;
  --bg1: #0b0317;
  --bg2: #1c0638;
  --paper: #fff7fe;
  --paper-2: #f6e8ff;
  --pink: #ff2e93;
  --cyan: #22e3ff;
  --gold: #ffd23f;
  --yellow: #ffd23f;
  --green: #1fd17a;
  --red: #ff3b5c;
  --blue: #3d8bff;
  --purple: #b65cff;
  --orange: #ff9a1f;
  --opt-0: #ff2e93;
  --opt-1: #1d9bff;
  --opt-2: #ffae00;
  --opt-3: #13c27a;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(8, 0, 20, 0.6);
  --shadow-sm: 0 3px 0 rgba(8, 0, 20, 0.6);
  --font-head: 'Righteous', 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-neon: 'Monoton', 'Righteous', sans-serif;
}

/* ------------------------------------------------------------ Hintergrund: Bühne mit Discokugel und Tanzfläche */
body[data-mode="music"] .bg {
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(182, 92, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 46, 147, 0.3), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(34, 227, 255, 0.25), transparent 70%),
    linear-gradient(180deg, #1a0533 0%, #0b0317 65%, #07020f 100%);
}
/* Lichtpunkte der Discokugel, die langsam über die Wände ziehen */
body[data-mode="music"] .bg::before {
  inset: -60%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255, 46, 147, 0.5) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(34, 227, 255, 0.5) 0 1.5px, transparent 2.5px);
  background-size: 90px 90px, 130px 130px, 170px 170px;
  background-position: 0 0, 40px 60px, 80px 20px;
  animation: discoSpin 90s linear infinite;
  opacity: 0.55;
}
@keyframes discoSpin { to { transform: rotate(360deg); } }
/* LED-Tanzfläche unten */
body[data-mode="music"] .bg::after {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -2vh;
  height: 26vh;
  background:
    linear-gradient(180deg, #0b0317 0%, transparent 35%),
    conic-gradient(from 0deg at 50% 50%, #ff2e93 0 25%, #22e3ff 0 50%, #ffd23f 0 75%, #b65cff 0) 0 0 / 8vh 8vh;
  transform: perspective(40vh) rotateX(58deg);
  transform-origin: bottom;
  opacity: 0.32;
  filter: saturate(1.3) blur(0.4px);
  animation: floorFlash 2.4s steps(4) infinite;
  -webkit-mask: linear-gradient(180deg, transparent, #000 45%);
  mask: linear-gradient(180deg, transparent, #000 45%);
}
@keyframes floorFlash { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
/* Scheinwerferkegel */
body[data-mode="music"] .bg .blob { filter: blur(18px); border-radius: 0; opacity: 0.22; animation: beam 9s ease-in-out infinite alternate; width: 22vmax; height: 120vh; top: -20vh; transform-origin: 50% 0; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
body[data-mode="music"] .bg .blob.b1 { left: 8vw; background: linear-gradient(180deg, #fff, var(--pink) 30%, transparent 90%); }
body[data-mode="music"] .bg .blob.b2 { right: 8vw; left: auto; background: linear-gradient(180deg, #fff, var(--cyan) 30%, transparent 90%); animation-delay: -4.5s; animation-direction: alternate-reverse; }
body[data-mode="music"] .bg .blob.b3 { left: calc(50% - 11vmax); bottom: auto; background: linear-gradient(180deg, #fff, var(--gold) 30%, transparent 90%); opacity: 0.12; animation-duration: 13s; }
@keyframes beam { 0% { transform: rotate(-24deg); } 100% { transform: rotate(24deg); } }
body[data-mode="music"] .bg.tinted .blob.b1 { background: linear-gradient(180deg, #fff, var(--accent) 30%, transparent 90%); }
body.play[data-mode="music"] .bg::after { height: 16vh; opacity: 0.25; }
body.play[data-mode="music"] .bg .blob { opacity: 0.16; }

/* ------------------------------------------------------------ Bausteine */
body[data-mode="music"] h1, body[data-mode="music"] h2, body[data-mode="music"] h3 { font-weight: 400; letter-spacing: 0.02em; }
body[data-mode="music"] .btn { font-family: var(--font-head); font-weight: 400; letter-spacing: 0.03em; }
body[data-mode="music"] .timer-ring .track { fill: #1a0730; stroke: #0b0317; }
body[data-mode="music"] .timer-ring .bar { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(34, 227, 255, 0.8)); }
body[data-mode="music"] .timer-ring.urgent .bar { stroke: var(--pink); filter: drop-shadow(0 0 8px rgba(255, 46, 147, 0.9)); }
body[data-mode="music"] .timer-ring .num { color: #fff; font-family: var(--font-head); }
body[data-mode="music"] .timer-bar > i { background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); box-shadow: 0 0 10px rgba(34, 227, 255, 0.6); }
body[data-mode="music"] .timer-bar.urgent > i { background: var(--red); }
body[data-mode="music"] .card { box-shadow: var(--shadow), 0 0 0 2px rgba(255, 255, 255, 0.06); }

/* Logo in Neonschrift */
body[data-mode="music"] .logo {
  font-family: var(--font-neon);
  font-weight: 400;
  -webkit-text-stroke: 0;
  letter-spacing: 0.02em;
}
body[data-mode="music"] .logo span { color: #fff; text-shadow: 0 0 0.08em #fff, 0 0 0.25em var(--pink), 0 0 0.6em var(--pink); animation: neonFlicker 5s infinite; }
body[data-mode="music"] .logo span:nth-child(3n+2) { text-shadow: 0 0 0.08em #fff, 0 0 0.25em var(--cyan), 0 0 0.6em var(--cyan); animation-delay: -1.7s; }
body[data-mode="music"] .logo span:nth-child(3n) { text-shadow: 0 0 0.08em #fff, 0 0 0.25em var(--gold), 0 0 0.6em var(--gold); animation-delay: -3.1s; }
@keyframes neonFlicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.55; } }
body[data-mode="music"] .logo-sub { font-family: var(--font-head); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 12px rgba(34, 227, 255, 0.8); }

/* Quizzly mit Sternchen-Brille und Elvis-Tolle */
body[data-mode="music"] .quizzly .qz-stars, body[data-mode="music"] .quizzly .qz-quiff { display: inline; }
body[data-mode="music"] .quizzly .qz-cap { display: none; }
body[data-mode="music"] .quizzly .qz-bow path:not([stroke-opacity]) { fill: #ffd23f; }
body[data-mode="music"] .quizzly .qz-bow rect { fill: #fff3a8; }
body[data-mode="music"] .quizzly .qz-stars path[fill="#ff3d9a"] { animation: starGlow 2.2s ease-in-out infinite alternate; }
@keyframes starGlow { from { fill: #ff3d9a; } to { fill: #b65cff; } }

/* ------------------------------------------------------------ Host: Lobby */
body[data-mode="music"] .lobby .joincard {
  border-radius: 18px;
  background: linear-gradient(160deg, #fff7fe, #f3e2ff);
  box-shadow: 0 0 0 0.3rem var(--pink), 0 0 0 0.6rem var(--ink), 0 0 50px rgba(255, 46, 147, 0.45), 0 0 90px rgba(34, 227, 255, 0.2), var(--shadow);
  animation: ledPulse 2.4s ease-in-out infinite alternate;
}
@keyframes ledPulse { to { box-shadow: 0 0 0 0.3rem var(--cyan), 0 0 0 0.6rem var(--ink), 0 0 50px rgba(34, 227, 255, 0.45), 0 0 90px rgba(255, 46, 147, 0.25), var(--shadow); } }
body[data-mode="music"] .joincard .code span { font-family: var(--font-head); border-radius: 12px; background: var(--ink); color: #fff; text-shadow: 0 0 10px var(--cyan); }
body[data-mode="music"] .editionbadge {
  display: inline-block;
  position: absolute;
  left: calc(6.5rem + 1rem);
  bottom: -1.1rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--pink);
  border-radius: 99px;
  padding: 0.2rem 1.1rem;
  transform: rotate(-3deg);
  box-shadow: 0 0 16px rgba(255, 46, 147, 0.7);
  animation: stamp 0.5s var(--ease-back) both;
}
body[data-mode="music"] .insertcoin { display: block; font-family: var(--font-head); letter-spacing: 0.08em; color: var(--pink); font-size: 1.1rem; margin-top: 0.8rem; animation: blink 1.6s steps(2) infinite; }
body[data-mode="music"] .seg { background: rgba(28, 6, 56, 0.8); border-color: rgba(255, 46, 147, 0.4); }
body[data-mode="music"] .seg button.on { background: var(--pink); color: #fff; box-shadow: 0 0 12px rgba(255, 46, 147, 0.7); }
body[data-mode="music"] .pgrid .pl .name { background: rgba(28, 6, 56, 0.85); border: 1px solid rgba(255, 46, 147, 0.45); }
body[data-mode="music"] .btn.start { --c: var(--pink); color: #fff; font-family: var(--font-head); font-size: 1.6em; box-shadow: var(--shadow), 0 0 26px rgba(255, 46, 147, 0.7); }
body.host[data-mode="music"] .lobby :is(.setgrp, .xrow) > label { color: #ffc7e6; }
/* Kompaktere Beitrittskarte, damit Songauswahl und Einstellungen Platz haben */
body.host[data-mode="music"] .joincard .sharebox { padding-top: 0.6rem; }
body.host[data-mode="music"] .insertcoin { font-size: 0.95rem; margin-top: 0.4rem; }

/* Songauswahl unter den Mitspielern */

/* Song-Pakete wählen */
.pchips { display: flex; flex-wrap: wrap; gap: 0.28rem; max-width: 50rem; }
.pchip { border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(28, 6, 56, 0.7); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.8rem; font-weight: 800; color: rgba(255, 255, 255, 0.55); transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.pchip.on { background: var(--rc, var(--pink)); border-color: var(--ink); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-sm), 0 0 12px color-mix(in srgb, var(--rc, #ff2e93) 60%, transparent); }
.pchip.all { border-style: dashed; }
.pchip.all.on { background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); }
.packsgrp .pcount { text-transform: none; letter-spacing: 0; opacity: 0.9; }
.pgrid .pl .wishb { position: absolute; top: calc(var(--av, 84px) * 0.66); right: calc(var(--av, 84px) * 0.12); background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 0.45rem; font-size: 0.8rem; font-weight: 900; box-shadow: var(--shadow-sm); z-index: 2; }

/* ------------------------------------------------------------ Host: Rundenintro mit Schallplatte */

body[data-mode="music"] .intro .rnum { display: none; }
body[data-mode="music"] .intro .rname { font-family: var(--font-head); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0.05em 0 var(--ink), 0 0 0.3em color-mix(in srgb, var(--rc, #ff2e93) 90%, transparent), 0 0 0.8em color-mix(in srgb, var(--rc, #ff2e93) 60%, transparent); }
body[data-mode="music"] .ri-how li i { font-family: var(--font-head); font-weight: 400; }
body[data-mode="music"] .intro.final::before { background: radial-gradient(circle, #fff6b0, #ffd23f 45%, #b8860b); }

/* ------------------------------------------------------------ Host: Fragen */
body[data-mode="music"] { --chip-bg: rgba(28, 6, 56, 0.8); --chip-bd: rgba(255, 46, 147, 0.45); }
body[data-mode="music"] .qcard { box-shadow: var(--shadow), 0 0 40px rgba(182, 92, 255, 0.25); }
body[data-mode="music"] .opt { box-shadow: var(--shadow), inset 0 -0.35rem 0 rgba(0, 0, 0, 0.18), inset 0 0.25rem 0 rgba(255, 255, 255, 0.18); }
body[data-mode="music"] .opts.revealed .opt.right { box-shadow: 0 0 0 6px #fff, 0 0 50px 12px color-mix(in srgb, var(--rc, #ff2e93) 60%, transparent), var(--shadow); }
body[data-mode="music"] .answerbig { font-family: var(--font-head); font-weight: 400; }
body[data-mode="music"] #strip .sp .nm { background: rgba(28, 6, 56, 0.9); }

/* Noten statt Formen auf den Antwortfeldern */
body[data-mode="music"] .shape svg { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25)); }

/* ------------------------------------------------------------ Host: Charts */
body[data-mode="music"] .scores h1, body[data-mode="music"] .podium h1 {
  font-family: var(--font-neon);
  font-weight: 400;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 0.06em #fff, 0 0 0.25em var(--pink), 0 0 0.6em var(--pink);
}
body[data-mode="music"] .scores .sub { font-family: var(--font-head); color: #ffc7e6; opacity: 1; letter-spacing: 0.06em; }
body[data-mode="music"] .board { padding: 0.9rem; background: rgba(12, 3, 26, 0.75); border: 2px solid rgba(255, 46, 147, 0.5); border-radius: 18px; box-shadow: 0 0 40px rgba(255, 46, 147, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.6); }
body[data-mode="music"] .brow { background: linear-gradient(90deg, rgba(40, 10, 74, 0.95), rgba(24, 6, 46, 0.95)); color: #fff; border: 2px solid rgba(255, 255, 255, 0.12); }
body[data-mode="music"] .brow .bar { opacity: 0.35; }
body[data-mode="music"] .brow .rk { font-family: var(--font-head); font-weight: 400; position: relative; }
body[data-mode="music"] .brow .nm, body[data-mode="music"] .brow .sc { font-family: var(--font-head); font-weight: 400; }
body[data-mode="music"] .brow .sc { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 63, 0.5); }
body[data-mode="music"] .brow.first { background: linear-gradient(90deg, rgba(120, 80, 0, 0.9), rgba(60, 30, 0, 0.9)); border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 210, 63, 0.45); }
body[data-mode="music"] .brow .rk { display: flex; flex-direction: column; align-items: center; line-height: 1; width: 3.2rem; }
.brow .move { display: block; font-family: var(--font-body); font-size: 0.5em; font-weight: 900; white-space: nowrap; animation: pop 0.45s var(--ease-back) both; margin-top: 0.15rem; letter-spacing: 0.03em; }
.brow .move.up { color: #7dffb5; }
.brow .move.down { color: #ff8aa4; }
.brow .move.same { color: rgba(255, 255, 255, 0.5); }
.brow .move.new { color: var(--gold); }

/* ------------------------------------------------------------ Host: Siegerehrung mit Schallplatten */
body[data-mode="music"] .pcol .ped {
  background:
    radial-gradient(circle at 50% 2.8rem, #222 0 0.25rem, var(--pc-rec, #ffd23f) 0.3rem 1.1rem, transparent 1.15rem),
    radial-gradient(circle at 50% 2.8rem, transparent 0 1.2rem, rgba(255, 255, 255, 0.07) 1.25rem 1.3rem, transparent 1.35rem 1.6rem, rgba(255, 255, 255, 0.06) 1.65rem 1.7rem, transparent 1.75rem),
    linear-gradient(180deg, #2a0e4a, #14052a);
  border-color: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 30px rgba(182, 92, 255, 0.35);
  padding-top: 4.4rem;
}
body[data-mode="music"] .pcol.p1 .ped { --pc-rec: #ffd23f; box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.5), 0 0 40px rgba(255, 210, 63, 0.45); }
body[data-mode="music"] .pcol.p2 .ped { --pc-rec: #e5e7eb; }
body[data-mode="music"] .pcol.p3 .ped { --pc-rec: #e39a5b; }
body[data-mode="music"] .award .at { font-family: var(--font-head); }

/* ================================================================ Bausteine der Song-Runden (Host) */
.songwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; min-height: 0; align-items: stretch; }
.songwrap .side { display: flex; flex-direction: column; gap: 0.9rem; min-height: 0; justify-content: center; }
.songwrap .side .qcard { font-size: clamp(1.4rem, 2vw, 2.5rem); padding: 0.7rem 1.2rem; }
.songwrap .side .qcard.small { font-size: clamp(1.1rem, 1.5vw, 1.8rem); padding: 0.5rem 1rem; }
.songwrap .opts.songopts { grid-template-columns: 1fr; max-height: none; flex: none; gap: 0.7rem; }
.songwrap .opts.songopts .opt { font-size: clamp(1.15rem, 1.6vw, 2rem); min-height: 4rem; }
.songwrap .opts.songopts.two { grid-template-columns: 1fr 1fr; }
.songwrap .opts.songopts.two .opt { min-height: 7rem; font-size: clamp(1.4rem, 2vw, 2.4rem); }
.songwrap .opts.people .otxt { display: flex; align-items: center; gap: 0.7rem; }
.opt .osub, .abtn .osub { display: block; font-size: 0.68em; opacity: 0.85; font-weight: 700; margin-top: 0.1em; }
.songbox { position: relative; min-height: 0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.songbox .songcover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; background: rgba(12, 3, 26, 0.92); border-radius: var(--radius); font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 2.6rem); }
.songbox .songcover .big { font-size: clamp(4rem, 9vw, 9rem); line-height: 1; }
.songbox .songcover small { display: block; font-size: 0.6em; opacity: 0.8; margin-top: 0.4rem; }
.songbox .mutehint { position: absolute; left: 50%; top: 0.4rem; transform: translateX(-50%); z-index: 4; background: var(--gold); color: var(--ink); border: var(--outline); border-radius: 12px; padding: 0.3rem 1rem; font-family: var(--font-head); font-size: 1.3rem; box-shadow: var(--shadow-sm); animation: pulse 0.7s ease-in-out infinite alternate; white-space: nowrap; }

/* Plattenspieler */
.songstage { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; }
.turntable { position: relative; width: min(100%, calc(52 * var(--vq)), 34vw); aspect-ratio: 1.12; border-radius: 1.6rem; background: linear-gradient(160deg, #3b1d63, #1a0833); border: var(--outline); box-shadow: var(--shadow), inset 0 0 0 0.4rem rgba(255, 255, 255, 0.04), 0 0 60px color-mix(in srgb, var(--rc, #b65cff) 45%, transparent); animation: popIn 0.5s var(--ease-back) both; }
.turntable .platter { position: absolute; left: 6%; top: 50%; width: 76%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: #0c0c10; box-shadow: 0 0 0 0.35rem #26262e, 0 0.4rem 0 rgba(0, 0, 0, 0.4); display: grid; place-items: center; }
.turntable .vinyl { width: 94%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 5px); box-shadow: none; display: grid; place-items: center; position: relative; }
.turntable .vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, 0.16) 12%, transparent 18% 58%, rgba(255, 255, 255, 0.12) 62%, transparent 68%); }
.turntable .disc { width: 36%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #0c0c10 0 8%, var(--rc, #b65cff) 9% 100%); border: 0.25rem solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 3.4rem); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); z-index: 1; }
.turntable .tonearm { position: absolute; right: 7%; top: 8%; width: 8%; height: 70%; transform-origin: 50% 6%; transform: rotate(-4deg); transition: transform 0.9s var(--ease-back); }
.turntable .tonearm::before { content: ''; position: absolute; left: 50%; top: 0; width: 2.4rem; aspect-ratio: 1; transform: translate(-50%, -30%); border-radius: 50%; background: radial-gradient(circle, #d8d8e0 0 35%, #8a8aa0 36% 100%); border: 3px solid var(--ink); }
.turntable .tonearm i { position: absolute; left: 50%; top: 4%; width: 0.55rem; height: 92%; transform: translateX(-50%); background: linear-gradient(90deg, #aaa, #eee, #999); border-radius: 0.3rem; border: 2px solid var(--ink); }
.turntable .tonearm i::after { content: ''; position: absolute; left: 50%; bottom: -0.6rem; width: 1.6rem; height: 1.4rem; transform: translateX(-50%) rotate(-20deg); background: #2a2a33; border: 2px solid var(--ink); border-radius: 0.3rem; }
.songbox.playing .turntable .tonearm { transform: rotate(22deg); }
.songbox.playing .turntable .vinyl { animation: spin 1.8s linear infinite; }
.songbox.waiting .turntable { filter: saturate(0.6); }
.songstage .eq { display: flex; align-items: flex-end; gap: 0.35rem; height: clamp(2.4rem, calc(6 * var(--vq)), 4.2rem); opacity: 0.35; transition: opacity 0.5s; }
.songstage .eq i { width: 0.55rem; height: 100%; border-radius: 3px; background: linear-gradient(0deg, var(--rc, #b65cff), #fff); transform-origin: bottom; transform: scaleY(0.15); }
.songbox.playing .songstage .eq { opacity: 1; }
.songbox.playing .songstage .eq i { animation: eqBar 0.8s ease-in-out infinite alternate; }
.songstage .stagelbl { font-family: var(--font-head); font-size: clamp(1.2rem, 1.9vw, 2.3rem); text-align: center; text-shadow: 0 0.06em 0 var(--ink); }
.ratebadge { position: absolute; top: 4%; left: 4%; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 4.2rem); background: var(--gold); color: var(--ink); border: var(--outline); border-radius: 1rem; padding: 0.1rem 1rem; box-shadow: var(--shadow); transform: rotate(-6deg); animation: stamp 0.6s var(--ease-back) both; z-index: 2; }
.ratebadge.slow { background: #7dffb5; }
.ratebadge.fast { background: #ff8a3d; animation: stamp 0.6s var(--ease-back) both, shake 0.35s 0.6s infinite; }

/* „Das war …“ */
.nowplaying { display: flex; align-items: center; gap: 1.4rem; animation: popIn 0.55s var(--ease-back) both; max-width: 100%; }
.nowplaying .sleeve { flex: none; width: clamp(9rem, calc(30 * var(--vq)), 22rem); aspect-ratio: 1; border-radius: 0.7rem; overflow: hidden; border: var(--outline); box-shadow: var(--shadow), 0 0 50px color-mix(in srgb, var(--rc, #b65cff) 55%, transparent); background: #111; display: grid; place-items: center; }
.nowplaying .sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nowplaying .sleeve .vinyl { width: 86%; }
.nowplaying .nptext { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.nowplaying .nptext small { font-size: clamp(0.9rem, 1.1vw, 1.3rem); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; font-weight: 900; }
.nowplaying .nptext b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 4rem); line-height: 1.05; text-shadow: 0 0.05em 0 var(--ink), 0 0 0.4em color-mix(in srgb, var(--rc, #b65cff) 55%, transparent); overflow-wrap: anywhere; }
.nowplaying .nptext span { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 2.4rem); color: var(--gold); }
.nowplaying .nptext em { font-style: normal; font-weight: 900; font-size: clamp(1rem, 1.3vw, 1.5rem); align-self: flex-start; background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 99px; padding: 0.05rem 0.8rem; margin-top: 0.3rem; }
.nowplaying.big { flex-direction: column; text-align: center; }
.nowplaying.big .nptext { align-items: center; }
.nowplaying.big .nptext em { align-self: center; }
/* Mit Musikvideo: die Karte füllt die ganze linke Seite, das Video so groß, wie es die Höhe zulässt */
.nowplaying.withvideo { width: 100%; gap: 1rem; }
.nowplaying.withvideo .npvideo { flex: none; width: min(100%, calc(62 * var(--vq)) * 16 / 9); aspect-ratio: 16 / 9; border-radius: 1rem; border: var(--outline); box-shadow: var(--shadow), 0 0 60px color-mix(in srgb, var(--rc, #b65cff) 45%, transparent); background: #000; }
.nowplaying.withvideo .nptext b { font-size: clamp(1.6rem, 2.8vw, 3.4rem); }
.nowplaying .npowner { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: clamp(1rem, 1.3vw, 1.5rem); margin-top: 0.4rem; }
.nowplaying.mini { gap: 0.8rem; background: rgba(8, 2, 20, 0.82); border-radius: 0.9rem; padding: 0.5rem 1rem 0.5rem 0.5rem; position: absolute; left: 0.8rem; bottom: 0.8rem; max-width: calc(100% - 1.6rem); }
.nowplaying.mini .sleeve { width: 5.2rem; border-width: 2px; box-shadow: none; }
.nowplaying.mini .nptext b { font-size: clamp(1.2rem, 1.8vw, 2rem); }
.nowplaying.mini .nptext span { font-size: clamp(0.9rem, 1.2vw, 1.3rem); }
.nowplaying.mini .nptext small { display: none; }

/* Stummfilm: Video-Anker */
.songwrap.video .songbox { align-items: center; }
.songwrap.video .vidanchor { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; border-radius: var(--radius); border: var(--outline); box-shadow: var(--shadow), 0 0 50px rgba(236, 72, 153, 0.35); background: #000; }

/* Vergleichssong, Behauptung */
.refsong { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.7rem 1rem; }
.refsong .sleeve { width: clamp(4.2rem, 7vw, 7rem); aspect-ratio: 1; border-radius: 0.5rem; overflow: hidden; border: 2px solid var(--ink); background: #111; display: grid; place-items: center; }
.refsong .sleeve img { width: 100%; height: 100%; object-fit: cover; }
.refsong .sleeve .vinyl { width: 86%; }
.refsong .rt { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.refsong .rt small { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 900; opacity: 0.6; }
.refsong .rt b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 2rem); line-height: 1.1; }
.refsong .rt span { font-weight: 800; opacity: 0.75; }
.refsong .ry { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 4rem); background: var(--ink); color: var(--gold); border-radius: 0.7rem; padding: 0 0.8rem; }
.claimcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; padding: 1rem 1.2rem; color: var(--ink); }
.claimcard small { font-weight: 900; letter-spacing: 0.08em; opacity: 0.65; font-size: 1rem; }
.claimcard b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 3rem); line-height: 1.05; }
.claimcard span { font-family: var(--font-head); font-size: clamp(1.2rem, 1.8vw, 2.2rem); color: var(--pink); }

/* Freitext-Runden: Fortschritt und Buchstaben-Tipp */
.songprog { display: flex; flex-direction: column; gap: 0.4rem; min-height: 0; overflow: hidden; }
.songprog.many { display: grid; grid-template-columns: 1fr 1fr; }
.spr { display: flex; align-items: center; gap: 0.6rem; background: rgba(12, 3, 26, 0.6); border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 99px; padding: 0.2rem 0.8rem 0.2rem 0.25rem; transition: background 0.3s, border-color 0.3s; }
.spr .nm { flex: 1; min-width: 0; font-family: var(--font-head); font-size: clamp(1rem, 1.3vw, 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spr .got { font-size: 1.4rem; opacity: 0.18; filter: grayscale(1); transition: all 0.3s var(--ease-back); }
.spr .got.on { opacity: 1; filter: none; transform: scale(1.15); }
.spr.full { background: rgba(31, 209, 122, 0.25); border-color: var(--green); }
.hintbox { display: flex; flex-direction: column; gap: 0.4rem; }
.hintbox small { font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; font-size: 0.85rem; }
.hint { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.hint .hw { display: inline-flex; gap: 0.22rem; }
.hint .hl { width: clamp(1.4rem, 2vw, 2.2rem); height: clamp(1.9rem, 2.7vw, 3rem); display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(1.1rem, 1.7vw, 2rem); text-transform: uppercase; }
.hint .hl.l { background: rgba(255, 255, 255, 0.1); border-bottom: 0.25rem solid rgba(255, 255, 255, 0.55); border-radius: 0.3rem 0.3rem 0 0; }
.hint .hl.l.on { background: var(--gold); color: var(--ink); border-bottom-color: var(--ink); animation: pop 0.35s var(--ease-back) both; }
.hint .hl.l.on.late { background: rgba(255, 255, 255, 0.85); }
.hint .hl.p { width: auto; }

/* Intro-Blitz: Stufen */
.stages { display: flex; gap: 0.5rem; width: min(100%, 36rem); }
.stg { position: relative; flex: var(--w, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.4rem 0.2rem; border-radius: 0.8rem; background: rgba(12, 3, 26, 0.7); border: 2px solid rgba(255, 255, 255, 0.2); overflow: hidden; opacity: 0.55; transition: opacity 0.3s, transform 0.3s var(--ease-back); }
.stg:nth-child(1) { --w: 1; } .stg:nth-child(2) { --w: 1.15; } .stg:nth-child(3) { --w: 1.35; } .stg:nth-child(4) { --w: 1.6; } .stg:nth-child(5) { --w: 1.9; }
.stg b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.8rem); position: relative; z-index: 1; }
.stg small { font-weight: 900; font-size: 0.8rem; opacity: 0.8; position: relative; z-index: 1; }
.stg .fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--rc, #a3e635), color-mix(in srgb, var(--rc, #a3e635) 50%, #fff)); transform-origin: left; transform: scaleX(0); }
.stg.cur { opacity: 1; transform: scale(1.08); border-color: #fff; box-shadow: 0 0 20px color-mix(in srgb, var(--rc, #a3e635) 70%, transparent); color: var(--ink); }
.stg.cur.play .fill { animation: stgFill var(--sec, 1s) linear forwards; }
.stg.done { opacity: 0.9; }
.stg.done .fill { transform: scaleX(1); opacity: 0.45; }
@keyframes stgFill { to { transform: scaleX(1); } }
.stgnext { font-weight: 900; font-size: clamp(0.95rem, 1.2vw, 1.4rem); opacity: 0.85; min-height: 1.4em; }

/* Buzzer */
.buzzlog { display: flex; flex-direction: column; gap: 0.45rem; }
.buzzlog .none { opacity: 0.6; font-size: 1.2rem; padding: 0.6rem; text-align: center; }
.buzzlog .bl { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 0.6rem; background: rgba(12, 3, 26, 0.65); border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 99px; padding: 0.2rem 1rem 0.2rem 0.25rem; animation: slideLeft 0.4s var(--ease-back) both; font-size: clamp(1rem, 1.3vw, 1.5rem); }
.buzzlog .bl .nm { font-family: var(--font-head); }
.buzzlog .bl .tx { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buzzlog .bl.ok { border-color: var(--green); background: rgba(31, 209, 122, 0.25); }
.buzzlog .bl.bad b { color: #ff8aa4; }
.buzzlog .bl.ok b { color: #7dffb5; }
.buzzover { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; }
.buzzover .bzflash { position: absolute; inset: -20%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), rgba(8, 2, 20, 0.88) 60%); animation: fadeIn 0.2s both; }
.buzzover .bzcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; animation: stamp 0.45s var(--ease-back) both; }
.buzzover .bzname { font-family: var(--font-head); font-size: clamp(2.4rem, 4.4vw, 5.4rem); text-shadow: 0 0.06em 0 var(--ink), 0 0 0.4em var(--pc); }
.buzzover .bzt { font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 2.8rem); }
.buzzover .bztime { width: min(28rem, 60vw); height: 1.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.4); position: relative; overflow: hidden; }
.buzzover .bztime i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; }
.buzzover .bztime span { position: relative; display: block; text-align: center; font-weight: 900; line-height: 1.4rem; text-shadow: 0 1px 2px #000; }
.buzzover.right .bzcard { animation: jelly 0.7s ease; }
.buzzover.right .bzt { color: #7dffb5; }
.buzzover.wrong .bzcard { animation: shake 0.5s ease; }
.buzzover.wrong .bzt { color: #ff8aa4; }

/* Zeitmaschine */
.tlwrap.songyear .tltop .songbox { height: 100%; flex: 1; max-width: 52%; }
.tlwrap.songyear .nowplaying.big { flex-direction: row; text-align: left; }
.tlwrap.songyear .nowplaying.big .nptext { align-items: flex-start; }
.tlwrap.songyear .nowplaying.big .sleeve { width: clamp(8rem, calc(24 * var(--vq)), 16rem); }
.tlwrap.songyear .nowplaying.withvideo .npvideo { width: min(62%, calc(30 * var(--vq)) * 16 / 9); }

/* ================================================================ Deck: die YouTube-Player (Host und Handy) */
.deck { position: fixed; left: 0; top: 0; width: 320px; height: 180px; z-index: 20; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.4s; background: #000; }
.deck.show { opacity: 1; }
.deck .dslot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.deck .dslot.on { opacity: 1; }
.deck iframe { position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; border: 0; pointer-events: none; }
.deck.blurred iframe { filter: blur(var(--blur, 30px)) saturate(1.4); transform: scale(1.08); }
.deck .dover { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.deck .vidlbl { position: absolute; left: 50%; top: 0.8rem; transform: translateX(-50%); background: rgba(8, 2, 20, 0.8); color: #fff; font-family: var(--font-head); font-size: clamp(1rem, 1.6vw, 1.8rem); padding: 0.2rem 1rem; border-radius: 99px; border: 2px solid rgba(255, 255, 255, 0.3); white-space: nowrap; }

/* ================================================================ Handy */
body.play[data-mode="music"] .phead { background: rgba(16, 4, 34, 0.92); border-bottom: 2px solid rgba(255, 46, 147, 0.45); }
body.play[data-mode="music"] .phead .score { background: var(--ink); color: var(--gold); border-color: var(--pink); font-family: var(--font-head); box-shadow: 0 0 12px rgba(255, 46, 147, 0.5); }
body.play[data-mode="music"] .phead .score::before { content: '💿 '; font-size: 14px; }
body.play[data-mode="music"] .reactbar { background: rgba(16, 4, 34, 0.92); border-top-color: rgba(255, 46, 147, 0.4); }
body.play[data-mode="music"] .abtn { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.15), var(--shadow); }
body.play[data-mode="music"] .introv h1 { font-family: var(--font-head); font-weight: 400; text-shadow: 0 0 16px var(--rc, #ff2e93); }
body.play[data-mode="music"] .introv .num { font-family: var(--font-head); letter-spacing: 0.2em; }
body.play[data-mode="music"] .resultv .pts { font-family: var(--font-head); font-weight: 400; }
body.play[data-mode="music"] .lobbyv .gamingnote, body.play[data-mode="music"] .lobbyv .filmnote { display: none; }
.lobbyv .musicnote { display: none; font-family: var(--font-head); color: var(--cyan); letter-spacing: 0.14em; font-size: 15px; text-shadow: 0 0 10px rgba(34, 227, 255, 0.8); }
body.play[data-mode="music"] .lobbyv .musicnote { display: block; }
body.play[data-mode="music"] .podv .pts { font-family: var(--font-head) !important; color: var(--gold); }

/* Song-Kopf mit „Hier anhören“ */
.psong { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.psong .pvinyl { flex: none; width: 54px; height: 54px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); display: grid; place-items: center; position: relative; box-shadow: 0 0 0 3px #000; animation: spin 2.4s linear infinite; }
.psong .pvinyl span { font-size: 22px; z-index: 1; animation: spin 2.4s linear infinite reverse; }
.psong .pvinyl i { position: absolute; inset: 32%; border-radius: 50%; background: var(--rc, var(--pink)); }
.psong .pst { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; color: var(--ink); }
.psong .pst b { font-family: var(--font-head); font-weight: 400; font-size: 17px; line-height: 1.15; }
.psong .herebtn { font-size: 13px; padding: 6px 10px; align-self: flex-start; }
.pvid { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 3px solid var(--ink); background: #000; flex: none; }
.abtns.two { grid-template-columns: 1fr 1fr !important; }
.abtns.two .abtn { min-height: 92px; }
.abtn.self { opacity: 0.35; }
.abtn.self::after { content: ' (du)'; font-size: 0.8em; }
.prefsong, .pclaim { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); }
.prefsong img, .prefsong .ic { width: 54px; height: 54px; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; flex: none; display: grid; place-items: center; font-size: 28px; }
.prefsong div { display: flex; flex-direction: column; min-width: 0; }
.prefsong small, .pclaim small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 900; opacity: 0.6; }
.prefsong b { font-family: var(--font-head); font-weight: 400; font-size: 17px; line-height: 1.15; }
.prefsong span b { font-family: var(--font-body); font-weight: 900; font-size: inherit; color: var(--pink); }
.pclaim { flex-direction: column; text-align: center; gap: 2px; }
.pclaim b { font-family: var(--font-head); font-weight: 400; font-size: 21px; line-height: 1.15; }
.pclaim span { font-weight: 800; color: var(--pink); }
.gotrow { display: flex; gap: 8px; justify-content: center; }
.gotrow .got { padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.25); font-weight: 900; font-size: 14px; opacity: 0.6; transition: all 0.3s var(--ease-back); }
.gotrow .got.on { background: var(--green); border-color: var(--ink); opacity: 1; transform: scale(1.06); }
.ptsnow b { color: var(--gold); }
.ptsnow { text-align: center; font-size: 14px; font-weight: 800; }
.pokerface { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 10px 6px; }
.pokerface .big { font-size: 90px; animation: float 3s ease-in-out infinite; }
.pokerface p { font-weight: 700; line-height: 1.45; opacity: 0.9; }

/* Buzzer am Handy */
.buzzv .bzarea { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 240px; }
.bigbuzz { width: min(68vw, 250px); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--ink); background: radial-gradient(circle at 35% 30%, #ff8a9a, #ef1d3c 55%, #a00d24); box-shadow: 0 12px 0 #5c0614, 0 0 40px rgba(239, 29, 60, 0.6), inset 0 -10px 0 rgba(0, 0, 0, 0.2); color: #fff; font-family: var(--font-head); font-size: 42px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: transform 0.08s, box-shadow 0.08s; animation: pulse 1s ease-in-out infinite alternate; }
.bigbuzz:active { transform: translateY(8px); box-shadow: 0 4px 0 #5c0614, 0 0 30px rgba(239, 29, 60, 0.6); }
.bigbuzz:disabled { filter: grayscale(0.7) brightness(0.7); animation: none; }
.bzother { font-size: 18px; font-weight: 800; text-align: center; background: rgba(239, 29, 60, 0.25); border: 2px solid var(--red); border-radius: 14px; padding: 10px 16px; }
.bzanswer { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.bzclock { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.bzclock i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; }

/* Ergebnis mit Cover */
.card.answer.songans { display: flex; align-items: center; gap: 12px; text-align: left; }
.card.answer.songans img, .card.answer.songans .ic { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; flex: none; display: grid; place-items: center; font-size: 30px; }
.card.answer.songans b { display: block; }

/* Wunschsongs in der Lobby */
.wishcard { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 14px; color: var(--ink); text-align: left; }
.wishcard .wres, .wishcard .wit { width: 100%; min-width: 0; }
.wishcard h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.wishcard h3 .wn { font-size: 14px; opacity: 0.6; }
.wishcard .wsearch { display: flex; gap: 8px; }
.wishcard .wsearch .input { flex: 1; min-width: 0; }
.wishcard .wlist, .wishcard .wresults { display: flex; flex-direction: column; gap: 6px; }
.wishcard .wres, .wishcard .wit { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 10px 6px 6px; text-align: left; color: var(--ink); }
.wishcard .wres { cursor: pointer; }
.wishcard .wres:active { transform: scale(0.98); }
.wishcard .wres.busy { opacity: 0.6; }
.wishcard .wit { background: #ffe9f5; }
.wishcard img, .wishcard .ic { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 22px; background: #eee; }
.wishcard .wres span, .wishcard .wit span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; overflow: hidden; }
.wishcard .wres b, .wishcard .wit b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishcard .wres i { font-style: normal; font-size: 20px; font-weight: 900; color: var(--pink); }
.wishcard .wdel { border: 0; background: transparent; font-size: 16px; color: var(--ink); opacity: 0.6; padding: 4px 6px; }
.wishcard .wbusy, .wishcard .wempty { text-align: center; opacity: 0.7; font-weight: 800; padding: 6px; }
.wishcard small { line-height: 1.4; }
/* Neben der Songauswahl etwas kleinere Avatare in der Lobby */
.nowplaying .npowner b { font-family: var(--font-head); font-weight: 400; font-size: 1.25em; line-height: 1; text-shadow: none; color: var(--gold); }
body.split .herebtn { display: none; }
/* Zwei große Antwortfelder (Älter/Neuer, Stimmt/Gelogen): Text oben, Avatare darunter */
.songwrap .opts.songopts.two .opt { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.3rem; min-height: 9.5rem; padding: 0.8rem 0.8rem 3.4rem; }
.songwrap .opts.songopts.two .opt .shape { position: absolute; left: 0.8rem; top: 0.7rem; font-size: 1.1em; }
.songwrap .opts.songopts.two .opt .otxt { flex: none; }
.songwrap .opts.songopts.two .opt .cnt { position: absolute; left: 3.2rem; top: 0.75rem; }
.songwrap .opts.songopts.two .opt .who { left: 0.5rem; right: 0.5rem; max-width: none; justify-content: center; flex-wrap: wrap; }
.songwrap .opts.songopts.two .opt .who .avatar { --size: 32px !important; }
/* Fällt ein Cover aus (Netz weg), bleibt eine Schallplatte stehen */
.nowplaying .sleeve, .refsong .sleeve, .prefsong, .card.answer.songans, .wishcard .wres, .wishcard .wit { --rec: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); }
.nowplaying .sleeve, .refsong .sleeve { background: radial-gradient(circle, var(--pink) 0 14%, transparent 15%), var(--rec); }

/* Titel-Tipp: am Anfang nur die Wortanzahl */
.hint.words .hblob { display: block; width: clamp(3.5rem, 5vw, 6rem); height: clamp(1.9rem, 2.7vw, 3rem); border-radius: 0.4rem; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 0.5rem, rgba(255, 255, 255, 0.08) 0.5rem 1rem); border-bottom: 0.25rem solid rgba(255, 255, 255, 0.4); }
/* Intro-Blitz: eingeloggte Stufe in der Fortschrittsliste */
.spr .lk { font-weight: 900; font-size: 0.95rem; white-space: nowrap; color: var(--gold); }
.spr .lk:empty { display: none; }
/* Intro-Blitz am Handy: „Ich weiß es!“ und Eingabezeit */
.knowbtn { font-size: 26px; padding: 18px; animation: pulse 1s ease-in-out infinite alternate; }
.lockinfo { display: flex; flex-direction: column; gap: 6px; }
.lockclock { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.lockclock i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; }
.locktxt { text-align: center; font-weight: 800; }
/* Wessen Song? mit bis zu sechs Personen */
.songwrap .opts.songopts.many { grid-template-columns: 1fr 1fr; }
.songwrap .opts.songopts.many .opt { min-height: 3.4rem; }
/* Video läuft am Handy (Stummfilm): Kopf kompakter, damit alles ohne Scrollen passt */
.view.cliphere .psong { padding: 6px 10px; }
.view.cliphere .psong .pst > b { display: none; }
.view.cliphere .psong .pvinyl { width: 40px; height: 40px; }

/* Lobby: Spielplan im Club-Licht */
body[data-mode="music"] :is(.lobby, .votescreen) { --lacc: var(--pink); --lacc-ink: #fff; --lpanel: rgba(20, 4, 40, 0.62); --lline: rgba(255, 46, 147, 0.3); }

/* Niedrige Fenster (Laptop, PC-Browser): Fortschritt der Mitspieler dichter, damit alle Zeilen sichtbar bleiben */
@media (max-height: 800px) {
  .songprog { gap: 0.25rem; }
  .spr { padding: 0.05rem 0.6rem 0.05rem 0.15rem; }
  .spr .avatar { --size: 1.9rem !important; }
  .spr .nm { font-size: 1rem; }
  .spr .got { font-size: 1.1rem; }
}

/* ================================================================ Die Zugabe – Hit-Marathon (Finale, music-host.js: encore)
   Bühne: links große Uhr, Plattenspieler mit dem laufenden Song und die letzten Songs, rechts das Live-Leaderboard.
   Alles bemisst sich an der freien Bühne (--vq, --qbh), nicht am Fenster – auch mit 15 Spielern und am PC (1280×600). */
.mar { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(0.8rem, calc(var(--vq) * 2.4), 1.8rem); }
.mar-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--vq) * 1.2); }
.mar-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mar-clock { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.mar-clock small { font-family: var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; font-size: clamp(0.75rem, calc(var(--vq) * 1.9), 1.3rem); color: var(--cyan); text-shadow: 0 0 10px rgba(34, 227, 255, 0.7); }
.mar-clock b { font-family: var(--font-neon); font-weight: 400; font-size: clamp(2.2rem, calc(var(--vq) * 10.5), 7.5rem); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 0.06em #fff, 0 0 0.25em var(--pink), 0 0 0.6em var(--pink); transform-origin: left center; }
.mar-clock.urgent b { color: #ffd0dc; text-shadow: 0 0 0.06em #fff, 0 0 0.25em var(--red), 0 0 0.7em var(--red); animation: marPulse 1s ease-in-out infinite; }
.mar-clock.frozen b { opacity: 0.55; }
@keyframes marPulse { 50% { transform: scale(1.06); } }
.mar-now { flex: 1; min-width: 0; text-align: center; }
.mar-wait { display: inline-block; font-weight: 900; padding: 0.2rem 0.9rem; border-radius: 99px; background: rgba(12, 3, 26, 0.8); border: 2px solid var(--gold); color: var(--gold); font-size: clamp(0.8rem, calc(var(--vq) * 1.9), 1.3rem); animation: blink 1.2s steps(2) infinite; }
.mar-count { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 0.3rem 0.9rem; border-radius: 1rem; background: rgba(12, 3, 26, 0.7); border: 2px solid rgba(255, 46, 147, 0.5); box-shadow: 0 0 18px rgba(255, 46, 147, 0.35); }
.mar-count b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.4rem, calc(var(--vq) * 5.5), 3.6rem); color: var(--gold); }
.mar-count small { font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; font-size: clamp(0.65rem, calc(var(--vq) * 1.6), 1rem); opacity: 0.8; }

/* Plattenspieler mit dem laufenden Song, darunter die Song-Uhr (15 s, in der Gnadenfrist rot-gold) */
.mar-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--vq) * 1); }
.mar-box { flex: 1; min-height: 0; width: 100%; }
.mar-box .songstage { gap: calc(var(--vq) * 1.2); }
.mar .turntable { width: min(92%, calc(var(--vq) * 28)); }
.mar .turntable .tonearm::before { width: calc(var(--vq) * 2.6); }
.mar .songstage .eq { height: calc(var(--vq) * 4); }
.mar .songstage .stagelbl { font-size: clamp(0.95rem, calc(var(--vq) * 3), 2.2rem); }
.mar-songbar { flex: none; width: min(100%, calc(var(--vq) * 70)); height: max(0.6rem, calc(var(--vq) * 1.5)); border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.25); overflow: hidden; }
.mar-songbar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); box-shadow: 0 0 12px rgba(34, 227, 255, 0.6); }
.mar-songbar.grace i { background: linear-gradient(90deg, var(--red), var(--gold)); }

/* „ERKANNT!“ mit Avatar – über dem Plattenspieler */
.mar-hit { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--vq) * 0.8); border-radius: var(--radius); background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, transparent), rgba(8, 2, 20, 0.85) 65%); animation: fadeIn 0.2s both; pointer-events: none; text-align: center; }
.mar-hit .avatar { --size: calc(var(--vq) * 15) !important; animation: popIn 0.45s var(--ease-back) both; }
.mar-hit b { font-family: var(--font-neon); font-weight: 400; line-height: 1; font-size: clamp(1.8rem, calc(var(--vq) * 8), 6rem); color: #fff; text-shadow: 0 0 0.06em #fff, 0 0 0.3em var(--pc), 0 0 0.7em var(--pc); animation: stamp 0.5s 0.1s var(--ease-back) both; }
.mar-hit span { font-family: var(--font-head); font-size: clamp(1.1rem, calc(var(--vq) * 4), 2.8rem); text-shadow: 0 0.06em 0 var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mar-hit em { font-style: normal; font-family: var(--font-head); font-size: clamp(1rem, calc(var(--vq) * 3.2), 2.2rem); color: var(--gold); }

/* „Das war …“ zwischen zwei Songs */
.mar-was { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: flex; align-items: center; gap: calc(var(--vq) * 2); width: min(100%, calc(var(--vq) * 82)); max-height: 100%; padding: calc(var(--vq) * 1.6); border-radius: 1.2rem; background: rgba(12, 3, 26, 0.94); border: 3px solid var(--gold); box-shadow: 0 0 40px rgba(255, 210, 63, 0.35), var(--shadow); animation: marWas 0.45s var(--ease-back) both; }
@keyframes marWas { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } }
.mar-was.none { border-color: rgba(255, 255, 255, 0.35); box-shadow: var(--shadow); }
.mar-was .sleeve, .mar-hs .sleeve { background: radial-gradient(circle, var(--pink) 0 14%, transparent 15%), repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); }
.mar-was .sleeve { flex: none; width: calc(var(--vq) * 17); aspect-ratio: 1; border-radius: 0.6rem; overflow: hidden; border: var(--outline); }
.mar-was .sleeve img, .mar-hs .sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mar-was .tx { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.mar-was small { letter-spacing: 0.16em; text-transform: uppercase; font-weight: 900; opacity: 0.75; font-size: clamp(0.65rem, calc(var(--vq) * 1.7), 1.1rem); }
.mar-was b { font-family: var(--font-head); font-weight: 400; line-height: 1.05; font-size: clamp(1.2rem, calc(var(--vq) * 4.4), 3rem); overflow-wrap: anywhere; }
.mar-was .tx > span { font-family: var(--font-head); color: var(--gold); font-size: clamp(0.95rem, calc(var(--vq) * 3), 2rem); }
.mar-was i { font-style: normal; display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; font-weight: 800; font-size: clamp(0.8rem, calc(var(--vq) * 2), 1.3rem); }
.mar-was i .avatar { --size: calc(var(--vq) * 4.4) !important; flex: none; }

/* Die letzten Songs (und in der Auflösung alle) – Cover mit dem Avatar von dem, der ihn zuerst hatte */
.mar-hist { flex: none; height: calc(var(--vq) * 10.5); display: flex; justify-content: center; gap: calc(var(--vq) * 1.4); overflow: hidden; }
.mar-hs { --t: calc(var(--vq) * 8); flex: none; width: var(--t); display: flex; flex-direction: column; align-items: center; gap: 0.15rem; animation: popIn 0.45s var(--ease-back) both; }
.mar-hs .sleeve { position: relative; width: 100%; aspect-ratio: 1; border-radius: 0.5rem; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.mar-hs .sleeve img { border-radius: 0.35rem; }
.mar-hs .avatar { position: absolute; right: -0.35rem; bottom: -0.35rem; --size: calc(var(--t) * 0.5) !important; }
.mar-hs .nobody { position: absolute; right: -0.25rem; bottom: -0.3rem; font-size: calc(var(--t) * 0.34); }
.mar-hs.none .sleeve { filter: grayscale(0.8) brightness(0.7); }
.mar-hs small { width: 100%; text-align: center; font-weight: 800; font-size: clamp(0.55rem, calc(var(--vq) * 1.5), 0.95rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.mar-recap { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--vq) * 1.4); }
.mar-rh { flex: none; text-align: center; font-family: var(--font-head); font-size: clamp(1.3rem, calc(var(--vq) * 5), 3.2rem); color: var(--gold); text-shadow: 0 0.06em 0 var(--ink), 0 0 0.4em rgba(255, 210, 63, 0.5); animation: popIn 0.5s var(--ease-back) both; }
.mar-rg { flex: 1; min-height: 0; width: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: calc(var(--vq) * 1.4); overflow: hidden; }
.mar-rg .mar-hs { --t: calc(var(--vq) * 9.5); }
.mar-recap.many .mar-hs { --t: calc(var(--vq) * 7.5); }
.mar-recap.lots .mar-hs { --t: calc(var(--vq) * 6); }

/* Live-Leaderboard: Zeilenhöhe nach Spielerzahl (--n) und freier Höhe */
.mar-board { --n: 6; --cw: 100cqw; container-type: inline-size; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--qbh, 500px) / var(--n) * 0.08); }
.mar-row { --rh: min(calc(var(--vq) * 8), calc(var(--qbh, 500px) / var(--n) * 0.86)); flex: none; height: var(--rh); display: flex; align-items: center; gap: calc(var(--rh) * 0.2); padding: 0 calc(var(--rh) * 0.3) 0 calc(var(--rh) * 0.08); border-radius: 99px; background: linear-gradient(90deg, rgba(40, 10, 74, 0.95), rgba(24, 6, 46, 0.95)); border: 2px solid rgba(255, 255, 255, 0.14); font-size: min(calc(var(--rh) * 0.4), calc(var(--cw) / 17)); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, opacity 0.3s; }
.mar-row .rk { flex: none; width: 1.5em; text-align: center; font-family: var(--font-head); opacity: 0.75; }
.mar-row .avatar { --size: calc(var(--rh) * 0.82) !important; flex: none; }
.mar-row .nm { flex: 1; min-width: 0; font-family: var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mar-row .st { flex: none; width: 1.3em; text-align: center; }
/* Name vor Deko: leere Status-Spalte fällt weg, die Schrift richtet sich auch nach der Spaltenbreite (--cw) */
.mar-row .st:empty { display: none; }
.mar-row .pts { flex: none; min-width: 3.4em; text-align: right; font-family: var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.mar-row .fl { flex: none; }
.mar-board.two { --cw: calc((100cqw - 0.6rem) / 2); display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--n), auto); align-content: center; column-gap: 0.6rem; }
.mar:has(.mar-board.two) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.mar-board.two .mar-fl { min-width: 2.3em; }
.mar-fl { display: inline-block; min-width: 3em; text-align: center; font-weight: 900; font-size: 0.78em; padding: 0.05em 0.4em; border-radius: 99px; background: rgba(255, 255, 255, 0.1); white-space: nowrap; }
.mar-fl.m2 { background: rgba(255, 154, 31, 0.3); }
.mar-fl.m3 { background: rgba(255, 120, 31, 0.5); }
.mar-fl.m4 { background: rgba(255, 80, 40, 0.7); }
.mar-fl.m5 { background: linear-gradient(90deg, #ff3b5c, #ffd23f); color: var(--ink); animation: marFire 0.6s ease-in-out infinite alternate; }
@keyframes marFire { to { box-shadow: 0 0 14px rgba(255, 120, 31, 0.9); transform: scale(1.08); } }
.mar-row.s-first { border-color: var(--gold); background: linear-gradient(90deg, rgba(120, 80, 0, 0.92), rgba(60, 30, 0, 0.92)); box-shadow: 0 0 18px rgba(255, 210, 63, 0.4); }
.mar-row.s-hit { border-color: var(--green); background: linear-gradient(90deg, rgba(20, 110, 70, 0.9), rgba(24, 6, 46, 0.95)); }
.mar-row.s-skip, .mar-row.s-out { opacity: 0.6; }
.mar-row.s-slept { border-color: var(--red); }
.mar-row.max:not(.s-first) { box-shadow: 0 0 14px rgba(255, 120, 31, 0.45); }
/* PC-Leiste: eigener Stand vor dem Eingabefeld */
.pc-run-me { flex: none; font-family: var(--font-head); font-weight: 400; color: var(--gold); white-space: nowrap; }

/* Zugabe am Handy (music-play.js: encoreRun) */
.view.mrun { gap: 10px; }
.mrun-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--ink); color: #fff; border-color: var(--pink); box-shadow: var(--shadow), 0 0 16px rgba(255, 46, 147, 0.45); }
.mrun-clock { font-family: var(--font-head); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px var(--pink); }
.mrun-clock.urgent { color: #ffb3c4; text-shadow: 0 0 10px var(--red); animation: pulse 0.5s ease-in-out infinite alternate; }
.mrun-me { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.mrun-me b { font-family: var(--font-head); font-weight: 400; font-size: 22px; color: var(--gold); }
.mrun-me small { font-weight: 800; font-size: 12px; opacity: 0.85; white-space: nowrap; }
.view.mrun.hot .mrun-me small { color: #ffb37a; }
.mrun-stat { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 70px; color: var(--ink); transition: background 0.3s; }
.mrun-stat .ic { font-size: 32px; line-height: 1; flex: none; }
.mrun-stat .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mrun-stat b { font-family: var(--font-head); font-weight: 400; font-size: 18px; line-height: 1.15; }
.mrun-stat small { font-weight: 800; font-size: 13px; opacity: 0.75; overflow-wrap: anywhere; }
.mrun-stat.live .ic { animation: spin 2.4s linear infinite; }
.mrun-stat.good { background: #c9f7dd; }
.mrun-stat.bad { background: #ffd9e1; }
.mrun-stat.urgent { background: var(--gold); animation: shake 0.5s; }
.mrun-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.mrun-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); }
.mrun-bar.grace i { background: linear-gradient(90deg, var(--red), var(--gold)); }
.view.mrun .feedback { min-height: 26px; font-size: 18px; }
.view.mrun .feedback.correct { color: #86efac; }
.mrun-skip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; font-size: 22px; }
.mrun-skip small { font-family: var(--font-body); font-size: 12px; font-weight: 800; opacity: 0.85; letter-spacing: 0; }
.mrun-skip:disabled { opacity: 0.45; filter: grayscale(0.6); }
.view.mrun.closed .guessrow { opacity: 0.55; }
.mrun-here { display: flex; justify-content: center; }

/* ------------------------------------------------ Rundenintro: Requisit (intro-props.js) */
/* Musik: Plattenhülle, die Platte rutscht heraus und dreht sich */
.rp-vinyl { width: 60em; height: 38em; font-size: 0.86em; transform: rotate(-3deg); }
.rp-vinyl .dw { position: absolute; left: 25em; top: 1.5em; width: 34em; height: 34em; animation: rpDisc 0.9s 0.9s var(--ease-out) both; }
@keyframes rpDisc { from { transform: translateX(-13em); } }
.rp-vinyl .dw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, 0.16) 13%, transparent 19% 58%, rgba(255, 255, 255, 0.1) 63%, transparent 69%); }
.rp-vinyl .disc { width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle, #141018 0 0.45em, #251e30 0.45em 0.7em); border: 0.4em solid #000; box-shadow: 0 1.2em 0 rgba(8, 0, 20, 0.5); display: grid; place-items: center; animation: spin 2.4s linear infinite; }
.rp-vinyl .lab { width: 13em; height: 13em; border-radius: 50%; background: var(--rc); border: 0.35em solid var(--ink); display: grid; place-items: center; }
.rp-vinyl .lab span { font-size: 6em; }
.rp-vinyl .sleeve { position: absolute; left: 0; top: 0; width: 37em; height: 37em; padding: 2.6em; display: grid; grid-template-rows: auto 1fr auto; background: linear-gradient(140deg, var(--rc), #170629 85%); border: 0.45em solid var(--ink); border-radius: 0.8em; box-shadow: 0 1.3em 0 rgba(8, 0, 20, 0.55); overflow: hidden; color: #fff; }
.rp-vinyl .sleeve::before { content: ''; position: absolute; right: -11em; bottom: -11em; width: 30em; height: 30em; border-radius: 50%; border: 2em solid rgba(34, 227, 255, 0.35); box-shadow: 0 0 0 3em rgba(255, 46, 147, 0.22); }
.rp-vinyl .rec small { font-family: var(--font-head); font-size: 2.3em; letter-spacing: 0.2em; white-space: nowrap; opacity: 0.85; }
.rp-vinyl .num { align-self: center; font-family: var(--font-neon); font-size: 17em; line-height: 1; text-shadow: 0 0 0.08em #fff, 0 0 0.2em var(--cyan), 0 0 0.4em var(--pink); }
.rp-vinyl .side { position: relative; font-family: var(--font-head); font-size: 2.6em; }

