/* ================================================================ Modus „Filme & Serien“: Kinosaal mit Samtvorhang
   Gilt für Host (body.host) und Handy (body.play), sobald body[data-mode="film"] gesetzt ist. */

body[data-mode="film"] {
  --ink: #1b0a0c;
  --ink-soft: #6b2f35;
  --bg1: #0b0406;
  --bg2: #22070c;
  --paper: #fff7e6;
  --paper-2: #f6e3c0;
  --pink: #e11d48;
  --gold: #f5c542;
  --yellow: #f5c542;
  --red: #dc2626;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --orange: #ea7a1e;
  --opt-0: #d7263d;
  --opt-1: #1f6feb;
  --opt-2: #e39b12;
  --opt-3: #169c52;
  --velvet: #9b1428;
  --velvet-d: #4c0612;
  --radius: 16px;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 3px 0 rgba(0, 0, 0, 0.55);
  --font-head: 'Oswald', 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-marquee: 'Limelight', 'Oswald', serif;
  --font-board: 'Bebas Neue', 'Oswald', sans-serif;
}

/* ------------------------------------------------------------ Hintergrund: Kinosaal */
body[data-mode="film"] .bg {
  background:
    radial-gradient(ellipse 38% 70% at 50% -8%, rgba(255, 236, 190, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(155, 20, 40, 0.45), transparent 70%),
    linear-gradient(180deg, #16070b 0%, #0b0406 60%, #070205 100%);
}
/* Filmkorn & Staub */
body[data-mode="film"] .bg::before {
  inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
/* Vorhang-Volant oben mit Goldfransen */
body[data-mode="film"] .bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6vh;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, transparent 2.2vw, rgba(255, 255, 255, 0.06) 4.5vw, transparent 6.8vw, rgba(0, 0, 0, 0.28) 9vw),
    linear-gradient(#5a0916, var(--velvet)) top / 100% 45% no-repeat,
    radial-gradient(ellipse 50% 100% at 50% 0, var(--velvet) 97%, transparent 100%) 0 0 / 9vw 100% repeat-x;
  filter: drop-shadow(0 3px 0 rgba(245, 197, 66, 0.6)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
}
body[data-mode="film"] .bg .blob { filter: none; opacity: 1; border-radius: 0; animation: curtainSway 9s ease-in-out infinite alternate; }
body[data-mode="film"] .bg .blob.b1, body[data-mode="film"] .bg .blob.b2 {
  top: 0;
  bottom: 0;
  width: 7.5vw;
  height: auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 40%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(90deg, var(--velvet-d) 0, #7d0f22 0.9vw, #b8172f 1.5vw, #7d0f22 2.2vw, var(--velvet-d) 2.9vw);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
body[data-mode="film"] .bg .blob.b1 { left: 0; right: auto; transform-origin: top left; clip-path: polygon(0 0, 100% 0, 96% 58%, 58% 78%, 80% 100%, 0 100%); }
body[data-mode="film"] .bg .blob.b2 { right: 0; left: auto; transform-origin: top right; clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 42% 78%, 4% 58%); animation-delay: -4s; }
body[data-mode="film"] .bg .blob.b3 { display: none; }
body[data-mode="film"] .bg.tinted .blob.b1, body[data-mode="film"] .bg.tinted .blob.b2 { filter: none; }
@keyframes curtainSway { from { transform: skewX(0deg); } to { transform: skewX(0.8deg); } }
body.play[data-mode="film"] .bg .blob.b1, body.play[data-mode="film"] .bg .blob.b2 { width: 5vw; }
body.play[data-mode="film"] .bg::after { height: 3.2vh; background-size: 18vw 100%; }

/* ------------------------------------------------------------ Bausteine */
body[data-mode="film"] h1, body[data-mode="film"] h2, body[data-mode="film"] h3 { font-weight: 600; letter-spacing: 0.02em; }
body[data-mode="film"] .btn { font-weight: 600; letter-spacing: 0.04em; }
body[data-mode="film"] .timer-ring .track { fill: #1a0a0d; stroke: #000; }
body[data-mode="film"] .timer-ring .num { color: var(--gold); }
body[data-mode="film"] .timer-bar > i { background: linear-gradient(90deg, var(--gold), #fff1c2); }
body[data-mode="film"] .timer-bar.urgent > i { background: var(--red); }
body[data-mode="film"] .pixel-frame { background: #050305; }

/* Logo */
body[data-mode="film"] .logo {
  font-family: var(--font-marquee);
  font-weight: 400;
  -webkit-text-stroke: 0.03em #5a0b16;
  text-shadow: 0 0.06em 0 #3a050d, 0 0 0.3em rgba(245, 197, 66, 0.55);
}
body[data-mode="film"] .logo span:nth-child(odd) { color: var(--gold); }
body[data-mode="film"] .logo span:nth-child(even) { color: #fff7e6; }
body[data-mode="film"] .logo-sub { font-family: var(--font-marquee); letter-spacing: 0.25em; color: var(--gold); }

/* Quizzly mit 3D-Brille und Baskenmütze */
body[data-mode="film"] .quizzly .qz-3d, body[data-mode="film"] .quizzly .qz-beret { display: inline; }
body[data-mode="film"] .quizzly .qz-cap { display: none; }
body[data-mode="film"] .quizzly .qz-bow path:not([stroke-opacity]) { fill: #f5c542; }
body[data-mode="film"] .quizzly .qz-bow rect { fill: #ffe08a; }
body[data-mode="film"] .quizzly.shades .qz-3d { display: none; }

/* ------------------------------------------------------------ Host: Lobby */
body[data-mode="film"] .lobby .joincard {
  border-radius: 14px;
  outline: 0.4rem dotted #ffe7a0;
  outline-offset: 0.45rem;
  box-shadow: 0 0 0 0.3rem #7a1020, 0 0 0 1.1rem #2a0a10, 0 0 60px rgba(245, 197, 66, 0.35), var(--shadow);
  animation: marquee 1.6s steps(2) infinite;
}
@keyframes marquee { 50% { outline-color: #f5c542; } }
body[data-mode="film"] .joincard .code span { font-family: var(--font-board); font-size: 10.5cqw; border-radius: 8px; }
body[data-mode="film"] .editionbadge {
  display: inline-block;
  position: absolute;
  left: calc(6.5rem + 1rem);
  bottom: -1rem;
  font-family: var(--font-marquee);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  padding: 0.25rem 1.2rem;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
  -webkit-mask: radial-gradient(circle 0.55rem at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 0.55rem at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 0.55rem at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 0.55rem at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  animation: stamp 0.5s var(--ease-back) both;
}
body[data-mode="film"] .insertcoin { display: block; font-family: var(--font-marquee); letter-spacing: 0.08em; color: var(--velvet); text-shadow: none; animation: blink 1.6s steps(2) infinite; font-size: 1.05rem; margin-top: 0.8rem; }
body[data-mode="film"] .seg { background: rgba(30, 6, 10, 0.75); border-color: rgba(245, 197, 66, 0.35); }
body[data-mode="film"] .seg button.on { background: var(--gold); color: var(--ink); }
body[data-mode="film"] .pgrid .pl .name { background: rgba(30, 6, 10, 0.8); border: 1px solid rgba(245, 197, 66, 0.35); }
body[data-mode="film"] .btn.start { --c: var(--gold); color: var(--ink); text-shadow: none; font-family: var(--font-marquee); font-weight: 400; font-size: 1.6em; box-shadow: var(--shadow), 0 0 26px rgba(245, 197, 66, 0.6); }
body.host[data-mode="film"] .lobby :is(.setgrp, .xrow) > label { color: #f2d9a6; }

/* ------------------------------------------------------------ Host: Intro mit Vorhang und Filmklappe */
body[data-mode="film"] .intro::before {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 60px);
  animation: wipe 0.7s var(--ease-out) forwards;
}
.intro .curtains { display: none; }
body[data-mode="film"] .intro .curtains { display: block; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
body[data-mode="film"] .intro .curtains i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(90deg, var(--velvet-d) 0, #7d0f22 1.4vw, #b8172f 2.3vw, #7d0f22 3.3vw, var(--velvet-d) 4.4vw);
  animation: curtainOpenL 1.3s 0.25s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
body[data-mode="film"] .intro .curtains i.l { left: 0; }
body[data-mode="film"] .intro .curtains i.r { right: 0; animation-name: curtainOpenR; }
@keyframes curtainOpenL { to { transform: translateX(-100%); } }
@keyframes curtainOpenR { to { transform: translateX(100%); } }
body[data-mode="film"] .intro .rnum { display: none; }
body[data-mode="film"] .intro .rname { font-family: var(--font-marquee); font-weight: 400; color: var(--gold); -webkit-text-stroke: 0.02em #3a050d; text-shadow: 0 0.06em 0 #3a050d, 0 0 0.35em rgba(245, 197, 66, 0.5); }
body[data-mode="film"] .intro .rsub { border-radius: 6px; font-family: var(--font-head); }
body[data-mode="film"] .ri-how li i { font-family: var(--font-board); font-weight: 400; font-size: 1.3em; }
body[data-mode="film"] .intro.final::before { background: radial-gradient(circle, #ffe08a, #d4a017 60%, #7a5200); }
body[data-mode="film"] .intro.final .rname { color: #fff7e6; }

/* ------------------------------------------------------------ Host: Fragen */
body[data-mode="film"] { --chip-bg: rgba(30, 6, 10, 0.75); --chip-bd: rgba(245, 197, 66, 0.35); }
body[data-mode="film"] .qcard { box-shadow: var(--shadow), 0 0 50px rgba(255, 236, 190, 0.18); }
/* Antworten als Kinokarten mit Abriss-Kante */
body[data-mode="film"] .opt::after { content: ''; position: absolute; left: 3.6rem; top: 0.5rem; bottom: 0.5rem; border-left: 3px dashed rgba(255, 255, 255, 0.4); pointer-events: none; }
body[data-mode="film"] .opt { padding-left: 1.2rem; gap: 1.6rem; }
body[data-mode="film"] .answerbig, body[data-mode="film"] .crtitle b { font-family: var(--font-marquee); font-weight: 400; }

/* Filmzitate als Untertitel auf der Leinwand */
body[data-mode="film"] .rpgbox { background: #000; border: 0; outline: 0; border-radius: 6px; box-shadow: 0 0 0 0.3rem #111, 0 0 60px rgba(255, 236, 190, 0.2), var(--shadow); padding: 3.2rem 2.4rem 2.6rem; text-align: center; background-image: linear-gradient(#000 0 12%, #0e0a0a 12% 88%, #000 88%); }
body[data-mode="film"] .rpgname { left: 50%; transform: translateX(-50%); top: auto; bottom: -1.2rem; background: var(--gold); color: var(--ink); border: 0.2rem solid var(--ink); outline: 0; font-family: var(--font-head); }
body[data-mode="film"] .rpgname:not(.known) { display: none; }
body[data-mode="film"] .rpgname.known { color: var(--ink); }
body[data-mode="film"] .rpgtext { font-family: var(--font-body); font-weight: 800; color: #fff; text-shadow: 0 0.06em 0.12em #000, 0 0 0.3em rgba(0, 0, 0, 0.8); }
body[data-mode="film"] .rpgtext .t::before { content: '„'; color: var(--gold); }
body[data-mode="film"] .rpgtext .t::after { content: '“'; color: var(--gold); }
body[data-mode="film"] .rpgtext .caret { display: none; }
body[data-mode="film"] .rpgde { color: #f2d9a6; font-style: italic; }

/* Spielerleiste */
body[data-mode="film"] #strip .sp .nm { background: rgba(30, 6, 10, 0.85); }

/* ------------------------------------------------------------ Host: Box Office (Anzeigetafel) */
body[data-mode="film"] .scores h1, body[data-mode="film"] .podium h1 {
  font-family: var(--font-marquee);
  font-weight: 400;
  color: var(--gold);
  -webkit-text-stroke: 0.02em #3a050d;
  text-shadow: 0 0.07em 0 #3a050d, 0 0 0.4em rgba(245, 197, 66, 0.55);
}
body[data-mode="film"] .scores .sub { font-family: var(--font-head); color: #f2d9a6; opacity: 1; }
body[data-mode="film"] .board { padding: 1rem; background: #0d0d0f; border: 0.35rem solid #2b2b30; border-radius: 12px; box-shadow: 0 0 0 0.35rem #111, var(--shadow), inset 0 0 40px rgba(0, 0, 0, 0.8); outline: 0.4rem dotted #ffe7a0; outline-offset: 0.5rem; }
body[data-mode="film"] .brow { background: repeating-linear-gradient(180deg, #17171b 0 0.5rem, #111114 0.5rem 0.6rem); color: #f5f5f5; border: 0; border-radius: 4px; box-shadow: none; font-family: var(--font-board); }
body[data-mode="film"] .brow .bar { opacity: 0.4; }
body[data-mode="film"] .brow .rk, body[data-mode="film"] .brow .nm, body[data-mode="film"] .brow .sc { font-family: var(--font-board); font-weight: 400; letter-spacing: 0.06em; }
body[data-mode="film"] .brow .nm { font-size: 2rem; text-transform: uppercase; }
body[data-mode="film"] .brow .sc { font-size: 2.2rem; color: var(--gold); }
body[data-mode="film"] .brow.first { background: repeating-linear-gradient(180deg, #2a2208 0 0.5rem, #211a06 0.5rem 0.6rem); }
body[data-mode="film"] .brow .delta { background: rgba(22, 163, 74, 0.25); color: #86efac; border-radius: 4px; font-family: var(--font-board); font-size: 1.3rem; }
body[data-mode="film"] .brow .delta.neg { background: rgba(220, 38, 38, 0.25); color: #fca5a5; }

/* ------------------------------------------------------------ Host: Walk of Fame */
body[data-mode="film"] .pcol .ped {
  background-color: #3a2c30;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.2) 2px, transparent 3px);
  background-size: 22px 22px, 30px 30px, 26px 26px;
  color: var(--gold);
  font-family: var(--font-board);
  position: relative;
}
/* Stern vom Walk of Fame: goldener Rand, rosa Füllung, Platzzahl obendrauf */
body[data-mode="film"] .pcol .ped { line-height: 1; padding-top: 1.9rem; color: #5a0b16; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); isolation: isolate; }
body[data-mode="film"] .pcol .ped::before, body[data-mode="film"] .pcol .ped::after { content: ''; position: absolute; left: 50%; aspect-ratio: 1; transform: translateX(-50%); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); z-index: -1; }
body[data-mode="film"] .pcol .ped::before { top: 0.2rem; width: 7.6rem; background: linear-gradient(135deg, #ffe7a0, var(--gold) 50%, #b8860b); }
body[data-mode="film"] .pcol .ped::after { top: 0.86rem; width: 6.4rem; background: linear-gradient(160deg, #f7c0cc, #e88ea4); }
body[data-mode="film"] .award .at { font-family: var(--font-head); }

/* ------------------------------------------------------------ Handy */
body.play[data-mode="film"] .phead { background: rgba(22, 5, 9, 0.88); border-bottom: 2px solid rgba(245, 197, 66, 0.35); }
body.play[data-mode="film"] .phead .score { background: #111; color: var(--gold); border-color: var(--gold); font-family: var(--font-board); font-size: 22px; letter-spacing: 0.05em; padding: 0 12px; border-radius: 6px; }
body.play[data-mode="film"] .phead .score::before { content: '🎟️ '; font-size: 15px; }
body.play[data-mode="film"] .reactbar { background: rgba(22, 5, 9, 0.88); border-top-color: rgba(245, 197, 66, 0.3); }
body.play[data-mode="film"] .abtn { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), var(--shadow); }
body.play[data-mode="film"] .introv { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 36px); }
body.play[data-mode="film"] .introv h1 { font-family: var(--font-marquee); font-weight: 400; color: var(--gold); }
body.play[data-mode="film"] .introv .num { font-family: var(--font-board); font-size: 20px; letter-spacing: 0.2em; }
body.play[data-mode="film"] .resultv .pts { font-family: var(--font-board); font-weight: 400; font-size: 58px; letter-spacing: 0.04em; }
body.play[data-mode="film"] .lobbyv .gamingnote { display: none; }
body.play[data-mode="film"] .lobbyv .filmnote { display: block; }
.lobbyv .filmnote { display: none; font-family: var(--font-marquee); color: var(--gold); letter-spacing: 0.12em; font-size: 15px; }
body.play[data-mode="film"] .podv .pts { font-family: var(--font-board) !important; color: var(--gold); letter-spacing: 0.05em; }
body.play[data-mode="film"] .prpg { background: #000; border: 0; outline: 0; box-shadow: 0 0 0 3px #111, var(--shadow); text-align: center; padding: 18px 14px; }
body.play[data-mode="film"] .prpg .nm { display: none; }
body.play[data-mode="film"] .prpg .tx { font-family: var(--font-body); font-weight: 800; }
body.play[data-mode="film"] .prpg .de { color: #f2d9a6; font-style: italic; }
body[data-mode="film"] .joincard .step { font-size: 1.05rem; }

/* Titel eintippen (Filmriss / Sneak Preview): Leinwand-Look mit Untertitel-Tipp */
body[data-mode="film"] .gswrap .gsmedia .frame { border-radius: 4px; box-shadow: 0 0 0 6px #111, 0 0 50px rgba(255, 230, 170, 0.25); }
body[data-mode="film"] .gswrap .gshint { background: rgba(0, 0, 0, 0.82); color: #fff8d6; border-color: #d4af37; }
body[data-mode="film"] .gswrap .gshint small { color: #d4af37; }
body[data-mode="film"] .gswrap .gshint .hint .hl.l { background: rgba(255, 255, 255, 0.08); border-bottom: 0.18rem solid #d4af37; }
body[data-mode="film"] .gswrap .gshint .hint .hl.l.on { background: #d4af37; color: #1a0f05; }
body[data-mode="film"] .gswrap .answerbig { background: #d4af37; letter-spacing: 0.02em; }

/* Lobby: Spielplan im Kinosaal */
body[data-mode="film"] :is(.lobby, .votescreen) { --lacc: var(--gold); --lacc-ink: var(--ink); --lpanel: rgba(30, 6, 10, 0.62); --lline: rgba(245, 197, 66, 0.25); }

/* ------------------------------------------------ Rundenintro: Requisit (intro-props.js) */
/* Film: Filmklappe */
.rp-clap { width: 46em; height: 40em; transform: rotate(-3deg); }
.rp-clap .arm { position: absolute; left: 0; right: 0; top: 0; height: 7em; border: 0.4em solid #111; border-radius: 0.8em; background: repeating-linear-gradient(-55deg, #f4f4f4 0 3em, #111 3em 6em); transform-origin: 0.6em 100%; animation: rpClap 0.5s 1.2s ease-in both; }
@keyframes rpClap { from { transform: rotate(-24deg); } 70% { transform: rotate(-24deg); } to { transform: none; } }
.rp-clap .slate { position: absolute; left: 0; right: 0; top: 7.6em; bottom: 0; background: #1b1b1f; border: 0.4em solid #111; border-radius: 1em; box-shadow: 0 1.3em 0 rgba(12, 3, 36, 0.5); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; color: #f4f4f4; font-family: var(--font-head); }
.rp-clap .cell { padding: 1em 1.6em; border-right: 0.25em solid rgba(255, 255, 255, 0.5); border-bottom: 0.25em solid rgba(255, 255, 255, 0.5); }
.rp-clap .cell:nth-child(2) { border-right: 0; }
.rp-clap .cell small { display: block; font-size: 2.6em; letter-spacing: 0.15em; opacity: 0.7; }
.rp-clap .cell b { display: block; font-size: 12em; line-height: 1; font-weight: 500; }
.rp-clap .wide { grid-column: 1 / -1; border-right: 0; }
.rp-clap .wide b { font-size: 3.6em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.rp-clap .ttl { grid-column: 1 / -1; text-align: center; font-size: 2.6em; letter-spacing: 0.3em; color: var(--gold); padding: 0.5em 0; }
.rp-clap .rp-ic { right: -5em; top: -6em; transform: rotate(10deg); }

