/* Richard Cheeseburger's Music Trivia Mayhem: the website, in the show's neon studio look. */
@font-face { font-family: 'Bungee'; src: url('fonts/Bungee-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Bungee Inline'; src: url('fonts/BungeeInline-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Righteous'; src: url('fonts/Righteous-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --navy: #101633; --navy2: #1b2650; --deep: #0b1022; --panel: #121521;
  --pink: #ff4fd8; --cyan: #7ef9ff; --gold: #ffd23f; --green: #4dff88; --text: #e8ebf2; --soft: #b8c2e6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--text); font: 18px/1.55 'Righteous', system-ui, sans-serif; }
a { color: var(--cyan); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: 'Bungee', sans-serif; font-weight: normal; line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); color: var(--pink); text-shadow: 0 0 14px rgba(255,79,216,.55); text-align: center; }
h3 { font-size: 20px; color: var(--gold); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11,16,34,.92); backdrop-filter: blur(8px); border-bottom: 2px solid rgba(126,249,255,.35); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar .brand img { display: block; width: 120px; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { font-family: 'Bungee'; font-size: 14px; color: var(--cyan); text-decoration: none; }
.topbar nav a:hover { color: var(--pink); }

/* Buttons: neon outlines like the game's */
.btn { --c: var(--pink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 6px 26px;
  border-radius: 16px; border: 3px solid var(--c); background: #0d1020; color: var(--c); font: 20px 'Bungee'; text-decoration: none; line-height: 1.1;
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 25%, transparent); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); cursor: pointer; }
.btn small { font: 13px 'Righteous'; color: var(--text); text-shadow: none; }
.btn.gold { --c: var(--gold); }
.btn.blue { --c: var(--cyan); }
.btn.store.soon { cursor: default; }
.btn:hover:not(.soon) { background: #1b1430; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* Hero: the studio, decades rolling behind */
.studio-hero { position: relative; overflow: hidden; padding: 34px 0 54px;
  background: radial-gradient(ellipse 80% 70% at 50% 35%, #3f5fa8 0%, #22376b 45%, var(--navy) 80%); border-bottom: 3px solid var(--cyan); }
.studio-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; opacity: .45; filter: blur(3px);
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.9) 46px 66px, transparent 66px 110px); }
.decades { position: absolute; left: 0; top: 40px; display: flex; gap: 70px; white-space: nowrap; font: 64px 'Bungee'; opacity: .12; animation: roll 60s linear infinite; pointer-events: none; }
.decades sup { font-size: .45em; vertical-align: top; }
.decades span:nth-child(3n+1) { color: var(--pink); } .decades span:nth-child(3n+2) { color: var(--cyan); } .decades span:nth-child(3n) { color: var(--gold); }
@keyframes roll { to { transform: translateX(-50%); } }
.studio-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; }
.pitch .logo { width: min(520px, 100%); display: block; filter: drop-shadow(0 0 24px rgba(255,79,216,.45)); }
.pitch h1 { font-size: clamp(26px, 3.2vw, 38px); color: var(--cyan); text-shadow: 0 0 12px rgba(126,249,255,.6); margin-top: 14px; }
.pitch p { font-size: 20px; max-width: 34ch; color: var(--text); }

/* The little playable board */
.playset { position: relative; min-height: 420px; }
.playset .host { position: absolute; left: -30px; bottom: -54px; width: 200px; z-index: 2; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
.playset .bubble { position: absolute; left: 0; top: 0; z-index: 3; max-width: 230px; background: #fff; color: #1a0b33; border: 3px solid #1a0b33; border-radius: 18px; padding: 10px 14px; font-size: 16px; line-height: 1.3; }
.playset .frame { margin-left: 150px; margin-top: 70px; padding: 12px; background: var(--panel); border: 4px solid var(--gold); border-radius: 18px; box-shadow: 0 0 30px rgba(255,79,216,.45); position: relative; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.board .cat { min-height: 62px; display: grid; place-items: center; text-align: center; padding: 4px; border-radius: 8px; background: #151a33; border: 2px solid var(--cyan); color: var(--cyan); font: 12px/1.15 'Bungee'; text-shadow: 0 0 6px rgba(126,249,255,.6); }
.board button { height: 52px; border-radius: 8px; border: 2px solid var(--pink); background: #1b1430; color: var(--gold); font: 22px 'Bungee'; cursor: pointer; text-shadow: 0 0 8px rgba(255,184,0,.7); }
.board button:hover { background: #2a1d4a; }
.board button:disabled { visibility: hidden; }
.clue[hidden] { display: none !important; }
.clue { position: absolute; inset: 0; z-index: 4; padding: 14px; background: #121521; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.clue .tag { display: flex; justify-content: space-between; font: 13px 'Bungee'; color: var(--gold); }
.clue .q { font-size: 17px; line-height: 1.35; }
.clue .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.clue .choices button { text-align: left; font: 14px/1.25 'Righteous'; color: #fff; background: #1b2033; border: 2px solid var(--pink); border-radius: 10px; padding: 7px 9px; cursor: pointer; }
.clue .choices button.right { border-color: var(--green); background: #13301f; }
.clue .choices button.wrong { border-color: #ff6b6b; background: #3a1418; }
.board-note { margin: 10px 0 0; text-align: right; font-size: 15px; color: var(--soft); }
.board-note b { font-family: 'Bungee'; font-weight: normal; color: var(--gold); }

/* Screens */
.on-air, .how, .cues, .signoff { padding: 56px 0; }
.on-air { background: var(--navy); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.screens figure { margin: 0; }
.screens img { display: block; border-radius: 14px; border: 3px solid var(--gold); box-shadow: 0 0 18px rgba(255,79,216,.35); }
.screens figcaption { margin-top: 8px; text-align: center; color: var(--soft); font-size: 16px; }

/* How to play */
.how ol { max-width: 760px; margin: 0 auto; padding-left: 0; counter-reset: step; list-style: none; display: grid; gap: 12px; }
.how li { counter-increment: step; position: relative; padding: 14px 18px 14px 66px; background: var(--panel); border: 2px solid #2a3560; border-radius: 14px; }
.how li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  font: 18px 'Bungee'; color: #1a0b33; background: var(--cyan); }

/* What's on */
.cues { background: var(--navy); }
.cue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cue { background: var(--panel); border: 2px solid #2a3560; border-radius: 16px; padding: 18px; }
.cue p { margin: 0; color: var(--soft); font-size: 16px; }

/* Gus signs off */
.signoff .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.signoff .line { text-align: left; color: var(--gold); text-shadow: 0 0 14px rgba(255,210,63,.5); }
.signoff p { max-width: 60ch; color: var(--soft); }

/* Inner pages */
.page { padding: 44px 0 60px; }
.page .wrap { max-width: 860px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); color: var(--pink); text-shadow: 0 0 14px rgba(255,79,216,.5); }
.page h2 { text-align: left; font-size: 24px; color: var(--cyan); text-shadow: none; margin-top: 30px; }
.page h3 { margin-top: 20px; }
.page .lead { font-size: 20px; color: var(--text); }
.page p, .page li { color: var(--soft); }
.page dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; }
.page dt { font-family: 'Bungee'; color: var(--gold); font-size: 15px; }
.page dd { margin: 0; color: var(--text); }
.press-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.press-art img { border-radius: 12px; border: 2px solid #2a3560; background: var(--navy2); }

/* Footer: the end card */
.credits { background: #070a17; border-top: 3px solid var(--gold); padding: 34px 0 40px; text-align: center; font-size: 14px; color: #8c96bd; }
.credits .studio-card { width: 150px; border-radius: 8px; }
.credits nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 14px 0; }
.credits nav a { font-family: 'Bungee'; font-size: 13px; text-decoration: none; }
.credits p { max-width: 820px; margin: 6px auto; }

@media (max-width: 900px) {
  .studio-hero .wrap, .signoff .wrap { grid-template-columns: 1fr; }
  .playset { min-height: 0; }
  .playset .host { width: 130px; left: -10px; bottom: -40px; }
  .playset .frame { margin-left: 70px; }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .cue-grid { grid-template-columns: repeat(2, 1fr); }
  .signoff .gus { width: 180px; margin: 0 auto; }
  .signoff .line { text-align: center; }
}
@media (max-width: 560px) {
  .screens, .cue-grid { grid-template-columns: 1fr; }
  .playset .frame { margin-left: 0; margin-top: 90px; }
  .playset .host { display: none; }
  .page dl { grid-template-columns: 1fr; }
  .topbar nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .decades { animation: none; } html { scroll-behavior: auto; } }
