/* PLAYFUL (arcade / neon, Synthwave) for the quiz site.
   Stage, Stream-Ansicht and fullscreen:  html[data-stream-style="playful"] #stagePanel ...
   The rest of the website:               html[data-site-style="playful"] ...   (second half of this file)
   Colours: bg #12071f, panel #241040, pink #ff3ea5, cyan #2de2e6, yellow #f9c80e, violet #c77dff.
   Glow only on headings, borders and the countdown; answer and question text stays solid white (readable over gameplay).
   Fonts are served by the quiz itself (SIL Open Font License, see font-licence-*.txt). */
@font-face{font-family:'Press Start 2P';font-style:normal;font-weight:400;font-display:swap;src:url(font-press-start-2p.woff2) format('woff2')}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(font-rubik-400.woff2) format('woff2')}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(font-rubik-500.woff2) format('woff2')}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(font-rubik-700.woff2) format('woff2')}

/* ================= STAGE (what viewers see) ================= */
html[data-stream-style="playful"] #stagePanel{
  --pf-bg:#12071f;--pf-panel:#241040;--pf-pink:#ff3ea5;--pf-cyan:#2de2e6;--pf-yellow:#f9c80e;--pf-violet:#c77dff;--pf-line:#4a2f73;--pf-muted:#b8a6d9;
  --pixel:'Press Start 2P',monospace;--font:'Rubik',system-ui,sans-serif;
  background:var(--pf-bg);border:2px solid var(--pf-violet);clip-path:none;border-radius:6px;
  box-shadow:0 0 0 1px #12071f,0 0 22px #c77dff55,inset 0 0 40px #c77dff18;color:#fff;font-family:var(--font)}
html[data-stream-style="playful"] #stagePanel .eyebrow{color:var(--pf-cyan);font:9px var(--pixel);letter-spacing:.06em}
html[data-stream-style="playful"] #stagePanel .stage-title{font:700 20px/1.2 var(--font);letter-spacing:0;color:#fff}
html[data-stream-style="playful"] #stagePanel .text-btn{clip-path:none;color:var(--pf-cyan);border:1px solid var(--pf-line);border-radius:3px;background:#1a0b30;font-family:var(--font)}
html[data-stream-style="playful"] #stagePanel .text-btn:hover{border-color:var(--pf-cyan);text-decoration:none;box-shadow:0 0 10px #2de2e655}

/* the card: dark purple with a synthwave floor grid at the bottom */
html[data-stream-style="playful"] #stagePanel .stage-content{
  background-color:var(--pf-bg);border:2px solid var(--pf-pink);border-radius:4px;clip-path:none;
  box-shadow:0 0 18px #ff3ea544,inset 0 0 30px #ff3ea50f;
  background-image:
    linear-gradient(180deg,transparent 62%,#ff3ea526 100%),
    repeating-linear-gradient(90deg,#c77dff22 0 1px,transparent 1px 44px),
    repeating-linear-gradient(0deg,#c77dff22 0 1px,transparent 1px 30px);
  background-size:auto,auto,auto}
html[data-stream-style="playful"] #stagePanel .stage-content:before{background:linear-gradient(90deg,var(--pf-pink),var(--pf-cyan));height:4px;box-shadow:0 0 12px var(--pf-pink)}
html[data-stream-style="playful"] #stagePanel .live-label{font:9px var(--pixel);color:var(--pf-yellow);letter-spacing:.02em}
html[data-stream-style="playful"] #stagePanel .live-label i{background:var(--pf-yellow);box-shadow:0 0 10px var(--pf-yellow)}
html[data-stream-style="playful"] #stagePanel .question-meta{font:9px var(--pixel);color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel #timer{font-family:var(--pixel);letter-spacing:0;color:var(--pf-cyan);text-shadow:0 0 12px #2de2e6aa,0 0 2px #2de2e6}
html[data-stream-style="playful"] #stagePanel .timer-track{background:#2a1647;border:1px solid var(--pf-line);height:8px}
html[data-stream-style="playful"] #stagePanel #timerBar{background:linear-gradient(90deg,var(--pf-pink),var(--pf-cyan));box-shadow:0 0 12px #2de2e6aa}
html[data-stream-style="playful"] #stagePanel .stage-content h2{font-family:var(--font);font-weight:700;letter-spacing:0;color:#fff;line-height:1.25}
html[data-stream-style="playful"] #stagePanel .stage-instruction{color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .stage-instruction b{color:var(--pf-yellow)}
html[data-stream-style="playful"] #stagePanel .stage-footer{border-top:1px solid var(--pf-line);color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .stage-footer>span:first-child{font:9px var(--pixel);color:var(--pf-cyan)}

/* answers: 2x2 neon tiles, one colour each (A pink, B cyan, C yellow, D violet) */
html[data-stream-style="playful"] #stagePanel .option{--c:var(--pf-pink);clip-path:none;background:#1a0b30;border:2px solid var(--c);border-radius:4px;color:#fff;font-family:var(--font);font-weight:500;
  box-shadow:0 0 12px color-mix(in srgb,var(--c) 45%,transparent),inset 0 0 14px color-mix(in srgb,var(--c) 14%,transparent)}
html[data-stream-style="playful"] #stagePanel .option:nth-child(2){--c:var(--pf-cyan)}
html[data-stream-style="playful"] #stagePanel .option:nth-child(3){--c:var(--pf-yellow)}
html[data-stream-style="playful"] #stagePanel .option:nth-child(4){--c:var(--pf-violet)}
html[data-stream-style="playful"] #stagePanel .option b{font:10px var(--pixel);background:var(--c);color:#12071f;border:0;border-radius:2px}
html[data-stream-style="playful"] #stagePanel .option .votes{color:var(--pf-muted)}
/* reveal: the correct one flashes and glows, the others fade; never colour alone, there is a tick too */
html[data-stream-style="playful"] #stagePanel .options:has(.correct) .option:not(.correct){opacity:.3;box-shadow:none}
html[data-stream-style="playful"] #stagePanel .option.correct{background:color-mix(in srgb,var(--c) 22%,#12071f);border-color:#fff;
  box-shadow:0 0 0 2px var(--c),0 0 26px var(--c),inset 0 0 18px color-mix(in srgb,var(--c) 40%,transparent);animation:pf-flash 1s ease-in-out 3}
html[data-stream-style="playful"] #stagePanel .option.correct b{background:#fff;color:#12071f}
html[data-stream-style="playful"] #stagePanel .option.correct>span:after{content:" ✓";font-weight:700;color:var(--c)}
@keyframes pf-flash{0%,100%{filter:brightness(1)}50%{filter:brightness(1.5)}}

/* fastest players (UP) and the arcade high-score table */
html[data-stream-style="playful"] #stagePanel .reveal{background:#1a0b30;border:2px solid var(--pf-yellow);border-radius:4px;clip-path:none;box-shadow:0 0 14px #f9c80e44;color:#fff}
html[data-stream-style="playful"] #stagePanel .reveal-score b{font-family:var(--pixel);color:var(--pf-yellow);text-shadow:0 0 10px #f9c80e88}
html[data-stream-style="playful"] #stagePanel .reveal-score span{color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .reveal-fast-label{font:9px var(--pixel);color:var(--pf-cyan);letter-spacing:.02em}
html[data-stream-style="playful"] #stagePanel .reveal .rank,html[data-stream-style="playful"] #stagePanel .board .rank{font-family:var(--pixel);font-size:.7em;color:var(--pf-yellow);display:inline-flex;align-items:baseline;gap:2px}
html[data-stream-style="playful"] #stagePanel .reveal .ord,html[data-stream-style="playful"] #stagePanel .board .ord{display:inline;font-family:var(--pixel);font-size:.7em;color:inherit}
html[data-stream-style="playful"] #stagePanel .reveal small{color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .board{background:#1a0b30;border:2px solid var(--pf-cyan);border-radius:4px;clip-path:none;box-shadow:0 0 18px #2de2e655,inset 0 0 24px #2de2e610}
html[data-stream-style="playful"] #stagePanel .board-title{font-family:var(--pixel);color:var(--pf-pink);text-shadow:0 0 12px #ff3ea5aa;font-size:20px;line-height:1.3}
html[data-stream-style="playful"] #stagePanel .board-sub{font-family:var(--pixel);font-size:9px;line-height:1.6;color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .board-head{font:8px var(--pixel);letter-spacing:.02em;color:var(--pf-cyan);border-bottom:1px solid var(--pf-line)}
html[data-stream-style="playful"] #stagePanel .board li{border-bottom:1px dashed var(--pf-line)}
html[data-stream-style="playful"] #stagePanel .board li:nth-child(1){color:var(--pf-yellow)}
html[data-stream-style="playful"] #stagePanel .board li:nth-child(2){color:var(--pf-cyan)}
html[data-stream-style="playful"] #stagePanel .board li:nth-child(3){color:var(--pf-pink)}
html[data-stream-style="playful"] #stagePanel .board li:nth-child(n+4){color:#fff}
html[data-stream-style="playful"] #stagePanel .board .pts{font-family:var(--pixel);font-size:.8em;color:inherit}
html[data-stream-style="playful"] #stagePanel .board .rank{color:inherit}

/* buttons below the stage */
html[data-stream-style="playful"] #stagePanel .round-controls>span{color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .primary{background:var(--pf-pink);color:#12071f;border:2px solid #fff;border-radius:3px;box-shadow:0 0 14px #ff3ea5aa;font-weight:700;clip-path:none}
html[data-stream-style="playful"] #stagePanel .primary:hover{background:#ff6cba}
html[data-stream-style="playful"] #stagePanel .secondary{background:#1a0b30;color:var(--pf-cyan);border:2px solid var(--pf-cyan);border-radius:3px;font-weight:500;clip-path:none}
html[data-stream-style="playful"] #stagePanel .secondary:hover{box-shadow:0 0 12px #2de2e688}

/* chat inside the stage */
html[data-stream-style="playful"] #stagePanel .stage-chat{border-top-color:var(--pf-line)}
html[data-stream-style="playful"] #stagePanel.broadcast .stage-chat{clip-path:none;background:#160a28;border:2px solid var(--pf-violet);border-radius:4px;box-shadow:0 0 14px #c77dff44}
html[data-stream-style="playful"] #stagePanel .stage-chat h3{font:10px var(--pixel);color:var(--pf-cyan);letter-spacing:.02em;line-height:1.4}
html[data-stream-style="playful"] #stagePanel .chat-message{border-bottom-color:#35205a;color:#fff}
html[data-stream-style="playful"] #stagePanel .chat-message strong{color:var(--pf-pink)}
html[data-stream-style="playful"] #stagePanel .chat-message .accepted{color:var(--pf-yellow)}
html[data-stream-style="playful"] #stagePanel .chat-message.answer-hidden .chat-text{color:var(--pf-muted)}
html[data-stream-style="playful"] #stagePanel .chat-divider{color:var(--pf-muted);border-bottom-color:#35205a}
html[data-stream-style="playful"] #stagePanel .muted,html[data-stream-style="playful"] #stagePanel .empty-chat strong,html[data-stream-style="playful"] #stagePanel .empty-chat p{color:var(--pf-muted)}

/* Stream-Ansicht keeps its backdrop in the same colour */
html[data-stream-style="playful"]:has(body.stream-mode),html[data-stream-style="playful"] body.stream-mode,html[data-stream-style="playful"]:fullscreen{background:#12071f}
html[data-stream-style="playful"] .stage.broadcast{background:#12071f}

@media(prefers-reduced-motion:reduce){html[data-stream-style="playful"] #stagePanel .option.correct{animation:none}}

/* ================= WEBSITE (studio, question bank, Rangliste, dialogs) ================= */
html[data-site-style="playful"]{
  --bg:#12071f;--panel:#1a0b30;--dark:#160a28;--ink:#fff;--muted:#b8a6d9;--line:#4a2f73;--accent:#ff3ea5;--gold:#f9c80e;--cyan:#2de2e6;--pink:#ff3ea5;
  --font:'Rubik',system-ui,sans-serif;--pf-px:'Press Start 2P',monospace;--pixel:'Rubik',system-ui,sans-serif;color-scheme:dark}
html[data-site-style="playful"] body{background:#12071f;color:#fff;font-family:'Rubik',system-ui,sans-serif;
  background-image:radial-gradient(ellipse at 50% -10%,#c77dff30,transparent 55%),repeating-linear-gradient(90deg,#c77dff10 0 1px,transparent 1px 48px),repeating-linear-gradient(0deg,#c77dff10 0 1px,transparent 1px 48px);background-attachment:fixed}
html[data-site-style="playful"] h1:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] h2:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] h3:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .brand:not(:where(#stagePanel,#stagePanel *)){font-family:'Rubik',system-ui,sans-serif;letter-spacing:0}
html[data-site-style="playful"] h1:not(:where(#stagePanel,#stagePanel *)){font-weight:700}
html[data-site-style="playful"] .heading h1:not(:where(#stagePanel,#stagePanel *)){background:none;-webkit-text-fill-color:currentColor;color:#fff;text-shadow:0 0 18px #ff3ea566}
html[data-site-style="playful"] .heading h1 *:not(:where(#stagePanel,#stagePanel *)){background:none;-webkit-text-fill-color:currentColor;color:var(--cyan);text-shadow:0 0 18px #2de2e688}
html[data-site-style="playful"] .eyebrow:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .setup-badge:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .studio-tag:not(:where(#stagePanel,#stagePanel *)){font-family:var(--pf-px);font-size:9px;letter-spacing:.04em;color:var(--cyan);background:transparent}
html[data-site-style="playful"] .site-top:not(:where(#stagePanel,#stagePanel *)){background:#12071feb;border-bottom:2px solid var(--pink);box-shadow:0 4px 24px #ff3ea533}
html[data-site-style="playful"] .brand:not(:where(#stagePanel,#stagePanel *)){color:var(--pink);text-shadow:0 0 12px #ff3ea5aa;font-family:var(--pf-px);font-size:16px;font-weight:400}
html[data-site-style="playful"] .nav:not(:where(#stagePanel,#stagePanel *)){color:var(--muted);font-family:var(--font);border-radius:3px}
html[data-site-style="playful"] .nav.active:not(:where(#stagePanel,#stagePanel *)){background:var(--pink);color:#12071f;border-color:var(--pink);box-shadow:0 0 14px #ff3ea5aa;clip-path:none}
html[data-site-style="playful"] .nav.active b:not(:where(#stagePanel,#stagePanel *)){background:#12071f;color:var(--pink)}
html[data-site-style="playful"] .panel:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .quiz-panel:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .connect:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .demo-banner:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .hero-overview:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .leaders-panel:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .bank:not(:where(#stagePanel,#stagePanel *)){
  background:#1a0b30;border:2px solid var(--line);border-radius:6px;clip-path:none;box-shadow:0 0 18px #c77dff22}
html[data-site-style="playful"] .quiz-panel:not(:where(#stagePanel,#stagePanel *)){border-color:var(--cyan);box-shadow:0 0 18px #2de2e633}
html[data-site-style="playful"] .leaders-panel:not(:where(#stagePanel,#stagePanel *)){border-color:var(--yellow,#f9c80e);box-shadow:0 0 18px #f9c80e33}
html[data-site-style="playful"] .connect:not(:where(#stagePanel,#stagePanel *)){border-color:var(--violet,#c77dff)}
html[data-site-style="playful"] .demo-banner:not(:where(#stagePanel,#stagePanel *)){border-color:var(--gold)}
html[data-site-style="playful"] .demo-banner strong:not(:where(#stagePanel,#stagePanel *)){color:var(--gold)}
html[data-site-style="playful"] .connect-icon:not(:where(#stagePanel,#stagePanel *)){background:var(--violet,#c77dff);color:#12071f;clip-path:none;border-radius:3px}
html[data-site-style="playful"] .primary:not(:where(#stagePanel,#stagePanel *)){background:var(--pink);color:#12071f;border:2px solid #fff;border-radius:3px;clip-path:none;box-shadow:0 0 14px #ff3ea5aa;font-weight:700}
html[data-site-style="playful"] .primary:hover:not(:where(#stagePanel,#stagePanel *)){background:#ff6cba}
html[data-site-style="playful"] .primary:disabled:not(:where(#stagePanel,#stagePanel *)){box-shadow:none;border-color:var(--line)}
html[data-site-style="playful"] .secondary:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .subtle:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .text-btn:not(:where(#stagePanel,#stagePanel *)){background:#1a0b30;color:var(--cyan);border:1px solid var(--cyan);border-radius:3px;clip-path:none;font-weight:500}
html[data-site-style="playful"] .secondary:hover:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .subtle:hover:not(:where(#stagePanel,#stagePanel *)){box-shadow:0 0 12px #2de2e688;background:#1a0b30}
html[data-site-style="playful"] .input:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .channel:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] select:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] textarea:not(:where(#stagePanel,#stagePanel *)){background:#12071f;color:#fff;border:1px solid var(--line);border-radius:3px;clip-path:none}
html[data-site-style="playful"] .input:focus:not(:where(#stagePanel,#stagePanel *)){outline:2px solid var(--cyan);border-color:var(--cyan)}
html[data-site-style="playful"] .field-label:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .muted:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .q-copy span:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .rule p:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .fine:not(:where(#stagePanel,#stagePanel *)){color:var(--muted)}
html[data-site-style="playful"] .question-row:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .rule:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .leader-row:not(:where(#stagePanel,#stagePanel *)){border-bottom-color:var(--line)}
html[data-site-style="playful"] .q-num:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .count:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .rank:not(:where(#stagePanel,#stagePanel *)){font-family:var(--pf-px);font-size:9px;background:#2a1647;color:var(--cyan);border-radius:2px}
html[data-site-style="playful"] .rank:not(:where(#stagePanel,#stagePanel *)){background:none;color:var(--gold)}
html[data-site-style="playful"] .avatar:not(:where(#stagePanel,#stagePanel *)){background:var(--pink);color:#12071f;border-radius:2px}
html[data-site-style="playful"] .points:not(:where(#stagePanel,#stagePanel *)){color:var(--gold);font-family:var(--pf-px);font-size:11px}
html[data-site-style="playful"] .mode-toggle:not(:where(#stagePanel,#stagePanel *)){background:#12071f;border-color:var(--line)}
html[data-site-style="playful"] .mode-toggle button[aria-pressed="true"]:not(:where(#stagePanel,#stagePanel *)){background:var(--pink);color:#12071f;border-color:#fff}
html[data-site-style="playful"] .overview-tier:not(:where(#stagePanel,#stagePanel *)){border-radius:4px;clip-path:none}
html[data-site-style="playful"] dialog:not(:where(#stagePanel,#stagePanel *)){background:#1a0b30;color:#fff;border:2px solid var(--pink);border-radius:6px;box-shadow:0 0 30px #ff3ea555}
html[data-site-style="playful"] dialog::backdrop{background:#12071fcc}
html[data-site-style="playful"] footer:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] footer span:not(:where(#stagePanel,#stagePanel *)){color:var(--muted)}
html[data-site-style="playful"] #toast:not(:where(#stagePanel,#stagePanel *)){background:#1a0b30;color:var(--gold);border:2px solid var(--gold);border-radius:3px}
html[data-site-style="playful"] a:hover:not(:where(#stagePanel,#stagePanel *)){color:var(--cyan)}

/* Studio layout: questions on the left, the stage big in the middle, the live chat on the right (wide screens only) */
@media(min-width:1280px){
  html[data-site-style="playful"] .main:not(:where(#stagePanel,#stagePanel *)),html[data-site-style="playful"] .top-row:not(:where(#stagePanel,#stagePanel *)){width:min(1500px,100% - 48px);max-width:none}
  html[data-site-style="playful"] .studio-grid:not(:where(#stagePanel,#stagePanel *)){grid-template-columns:minmax(340px,.8fr) minmax(0,2fr)}
  html[data-site-style="playful"] .stage:not(.broadcast){display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.42fr);grid-template-areas:"top top" "content chat" "controls chat";column-gap:18px;align-items:stretch}
  html[data-site-style="playful"] .stage:not(.broadcast) .panel-top{grid-area:top}
  html[data-site-style="playful"] .stage:not(.broadcast) .stage-content{grid-area:content}
  html[data-site-style="playful"] .stage:not(.broadcast) .round-controls{grid-area:controls}
  html[data-site-style="playful"] .stage:not(.broadcast) .stage-chat{grid-area:chat;margin:0;padding:0 0 0 18px;border-top:0;border-left:1px solid #342242;min-height:0;overflow:hidden}
html[data-stream-style="playful"] #stagePanel .stage-chat{border-left-color:var(--pf-line)}
html[data-stream-style="pro"] #stagePanel .stage-chat{border-left-color:#c9d4e1}
  html[data-site-style="playful"] .stage:not(.broadcast) .stage-chat .chat{flex:1;height:auto;min-height:200px;max-height:560px}
}
@media(prefers-reduced-motion:reduce){html[data-site-style="playful"] *{animation:none!important;transition:none!important}}
