/* rcdoubletake.com, built from the game's own parts: the studio backdrop, the
   button art, the gold window frame, the board's beveled squares, Richard and
   Gus. Titan One for the show's voice, Nunito for reading. */
@font-face { font-family: 'Titan One'; src: url('fonts/TitanOne-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito.ttf'); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #1b0630; --stage: #3a0d5c; --magenta: #d014a6; --gold: #ffd23f; --bulb: #fff3d6; --ink: #2a0f45;
  --cream: #fff8e8; --card: #fffdf6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--bulb); font: 600 18px/1.6 Nunito, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: 'Titan One', system-ui, sans-serif; font-weight: normal; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .5px; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* The game's buttons: its own art, cut only at the rounded ends. */
.btn { display: inline-grid; place-items: center; min-height: 66px; padding: 0 44px; font: 26px/1 'Titan One', sans-serif; letter-spacing: 1px;
  color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(40, 0, 40, .55); white-space: nowrap;
  /* The button's middle behind it too, so the joins between the art's pieces never show a hairline. */
  --art: url('img/btn-magenta.webp?v=2');
  border: 0 solid transparent; border-image: var(--art) 0 200 fill / 0 26px stretch;
  background: var(--art) center / 211.2% 100% no-repeat; border-radius: 999px;
  filter: drop-shadow(0 6px 0 rgba(40, 4, 60, .55)) drop-shadow(0 10px 12px rgba(20, 0, 30, .35)); transition: transform .12s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(3px); }
.btn.gold { --art: url('img/btn-gold.webp?v=2'); color: #6a2a00; text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.btn.blue { --art: url('img/btn-blue.webp?v=2'); }
.btn.green { --art: url('img/btn-green.webp?v=2'); }
.btn.soon { cursor: default; filter: drop-shadow(0 6px 0 rgba(40, 4, 60, .55)) grayscale(.15); }
.btn.soon:hover { transform: none; }
.btn small { display: block; font: 800 13px/1 Nunito, sans-serif; letter-spacing: .3px; opacity: .9; margin-top: 4px; text-shadow: none; }
.btn.store { min-height: 92px; padding: 22px 46px 10px; line-height: 1; }

/* Top of every page. */
.topbar { position: absolute; inset: 0 0 auto; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.topbar .brand img { height: 58px; width: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.topbar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 900; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.topbar nav a:hover { color: var(--gold); }

/* The hero: standing in the studio, Richard beside a little board to play. */
.studio-hero { position: relative; min-height: 760px; padding: 110px 0 56px; overflow: hidden;
  background: var(--night) url('img/studio-wide.webp') center 38% / cover no-repeat; }
.studio-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.studio-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.pitch .logo { width: min(500px, 100%); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.pitch h1 { font-size: clamp(30px, 3.6vw, 44px); color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin-top: 10px; }
.pitch p { font-size: 20px; font-weight: 800; max-width: 34ch; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); color: #fff; }
.pitch .cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

/* The board: the game's window frame around its beveled squares. */
.playset { position: relative; padding-left: 150px; }
.playset .host { position: absolute; left: -30px; bottom: -40px; width: 230px; z-index: 2; filter: drop-shadow(0 12px 16px rgba(20, 0, 30, .55)); pointer-events: none; }
.bubble { position: absolute; left: -10px; top: -14px; z-index: 3; width: 250px; padding: 12px 16px; background: #fff; color: var(--ink);
  border: 4px solid var(--ink); border-radius: 22px; font: 900 18px/1.25 Nunito, sans-serif; box-shadow: 0 6px 0 rgba(42, 15, 69, .5); }
.bubble::after { content: ''; position: absolute; left: 76px; bottom: -20px; width: 24px; height: 24px; background: #fff;
  border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }
.bubble.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.7); opacity: .4; } }
.frame { border: 44px solid transparent; border-image: url('img/frame.webp') 17.5% / 44px stretch;
  background: radial-gradient(ellipse at 50% 30%, #fffdf6, #fff1cc 70%, #ffe2a0) padding-box; filter: drop-shadow(0 18px 24px rgba(20, 0, 30, .6)); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--ink); border-radius: 6px; overflow: hidden; }
.sq { position: relative; aspect-ratio: 1.12; border: 0; padding: 0; cursor: pointer; background: #2a0f45; perspective: 600px; }
.sq .num, .sq .back { position: absolute; inset: 0; display: grid; place-items: center; }
.sq .num { font: clamp(26px, 3vw, 40px) 'Titan One', sans-serif; color: #b0168f; background: linear-gradient(160deg, #fff, #f3e6ff);
  box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #c9a6e8, inset 0 0 0 1.5px var(--ink); text-shadow: 0 2px 0 rgba(42, 15, 69, .18); }
.sq .back { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .28s ease-in; }
.sq .back img { width: 82%; height: 82%; object-fit: contain; }
.sq.up .back { clip-path: inset(0); transition: clip-path .45s cubic-bezier(.25, .8, .35, 1); }
.sq.won .back { background: radial-gradient(circle at 50% 45%, #fff9d6, #ffe27a); }
.sq:hover:not(.up) .num { background: linear-gradient(160deg, #fff, #fbeaff); }
.board-note { margin: 12px 0 0; text-align: center; color: var(--ink); font-weight: 900; font-size: 16px; }

/* Screens from the show, framed like the game's windows, on a stage riser. */
.on-air { padding: 40px 0 70px; }
.on-air h2, .rundown h2, .cues h2, .signoff h2 { font-size: clamp(32px, 4.4vw, 52px); color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-align: center; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.screens figure { margin: 0; }
.screens img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 18px solid transparent; border-image: url('img/frame.webp') 17.5% / 18px stretch; background: var(--ink) padding-box;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.screens figcaption { text-align: center; margin-top: 12px; font-weight: 900; }
.riser { height: 26px; margin-top: 26px; border-radius: 0 0 18px 18px; background: linear-gradient(#f4e3ff, #9a6cd0 30%, #2b0f52);
  -webkit-mask: radial-gradient(circle 5px, #000 98%, transparent) 0 6px / 38px 26px repeat-x, linear-gradient(#000, #000);
  box-shadow: 0 10px 30px rgba(208, 20, 166, .35); }

/* The rundown (how to play): a real sequence, so it's numbered. */
.rundown { padding: 60px 0; background: linear-gradient(var(--night), var(--stage) 40%, var(--night)); }
.rundown ol { counter-reset: step; list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: grid; gap: 14px; }
.rundown li { counter-increment: step; position: relative; padding: 16px 20px 16px 76px; background: var(--card); color: var(--ink); border: 4px solid var(--ink);
  border-radius: 20px; font-size: 19px; box-shadow: 0 6px 0 rgba(42, 15, 69, .55); }
.rundown li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center;
  font: 26px 'Titan One', sans-serif; color: #b0168f; background: linear-gradient(160deg, #fff, #f3e6ff); border-radius: 6px;
  box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #c9a6e8, 0 0 0 3px var(--ink); }

/* What's in the show: Gus's cue cards, a little askew on his podium. */
.cues { padding: 60px 0 40px; }
.cue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.cue { background: var(--card); color: var(--ink); border-radius: 6px; padding: 18px 18px 20px; box-shadow: 0 10px 18px rgba(0, 0, 0, .45);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(176, 22, 143, .16) 31px 32px); background-position: 0 44px; }
.cue:nth-child(odd) { transform: rotate(-1.4deg); }
.cue:nth-child(even) { transform: rotate(1.1deg); }
.cue h3 { font-size: 22px; color: #b0168f; margin-bottom: .3em; }
.cue p { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.5; }

/* The sign-off: Gus closes the show, as in the game. */
.signoff { padding: 50px 0 70px; }
.signoff .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: end; }
.signoff .gus { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); }
.signoff .line { font: clamp(28px, 4vw, 46px)/1.1 'Titan One', sans-serif; color: var(--gold); text-shadow: 0 4px 0 var(--ink), 0 0 24px rgba(255, 210, 63, .45); margin: 0 0 18px; }
.signoff p { max-width: 52ch; }
.signoff .cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }

/* Inside pages (support, privacy, terms, press): a cream window, like the game's menus. */
.page-hero { position: relative; padding: 110px 0 40px; background: var(--night) url('img/studio-wide.webp') center 30% / cover no-repeat; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(27, 6, 48, .35), var(--night)); }
.page-hero h1 { position: relative; z-index: 1; font-size: clamp(40px, 6vw, 64px); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-align: center; margin: 0; }
.doc { padding: 0 0 70px; }
.doc .frame { max-width: 860px; margin: 0 auto; color: var(--ink); }
.doc .frame > :first-child { margin-top: 0; }
.doc h2 { font-size: 26px; color: #b0168f; margin-top: 1.3em; }
.doc a { color: #b0168f; font-weight: 900; }
.doc li { margin: 4px 0; }
.doc .updated { opacity: .75; font-size: 15px; }
.doc .contact { background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 8px 22px 14px; margin: 6px 0 24px; box-shadow: 0 6px 0 rgba(42, 15, 69, .4); }
.doc details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 900; font-size: 19px; }
.doc details p { margin: 10px 0 2px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 0; }
.facts dt { font-weight: 900; }
.facts dd { margin: 0; }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.kit a { display: block; background: var(--ink); border-radius: 12px; padding: 8px; text-decoration: none; color: #fff; text-align: center; font-size: 14px; }
.kit img { border-radius: 6px; margin-bottom: 6px; }

/* Bottom of every page: credits, copyright and trademarks, like the show's end card. */
.credits { padding: 34px 0 46px; border-top: 4px solid var(--stage); background: #12031f; font-size: 15px; color: #e2c8ff; text-align: center; }
.credits nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.credits nav a { color: #fff; font-weight: 900; text-decoration: none; }
.credits nav a:hover { color: var(--gold); }
.credits p { margin: 6px auto; max-width: 78ch; }
.credits .studio-card { width: 150px; margin: 0 auto 14px; border-radius: 10px; }

@media (max-width: 900px) {
  .studio-hero { padding-top: 96px; }
  .studio-hero .wrap { grid-template-columns: 1fr; }
  .pitch { text-align: center; }
  .pitch .logo { margin: 0 auto; }
  .pitch p { margin-inline: auto; }
  .pitch .cta { justify-content: center; }
  .playset { padding-left: 0; padding-top: 70px; max-width: 520px; margin: 0 auto; width: 100%; }
  .playset .host { display: none; }
  .bubble { left: 50%; top: 0; transform: translateX(-50%); }
  .bubble.pop { animation: none; }
  .screens { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .cue-grid { grid-template-columns: 1fr 1fr; }
  .signoff .wrap { grid-template-columns: 1fr; text-align: center; }
  .signoff .gus { width: 200px; margin: 0 auto; }
  .signoff .cta { justify-content: center; }
  .topbar nav { display: none; }
  .kit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cue-grid { grid-template-columns: 1fr; }
  .frame { border-width: 28px; border-image-width: 28px; }
  .btn { font-size: 22px; padding: 0 30px; }
}
