/*
 * Take a Joke — the landing pages' shared look (2026-11-20).
 * Used by /takeajoke (takeajoke/index.html) and /takeajoke/steam.
 *
 * The page is dressed as the game's own stage (the 2.0 "new look"): the
 * cobalt stage with faint joke cards drifting behind, Fredoka "lit from
 * above", navy glass panels with a blue rim, gold for buttons and names in
 * lights, and the white joke card with red names. Values come from the
 * game (Take A Joke lib/main_parts/dev_look_stage.dart, via the trailer's
 * look.css), so the site and the TV read as one thing.
 *
 * Spacing rules (root CLAUDE.md, "measure the vertical spacing"):
 *   - a section's padding is the only space at its top and foot;
 *   - siblings are spaced by their container's gap, never their own margins;
 *   - the few sizes below are the only ones used.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-0: #060B2E;
  --navy-1: #0B1448;
  --navy-2: #101D63;
  --cobalt: #17309A;
  --rim: #3C8CFF;
  --rim-soft: rgba(60, 140, 255, .35);
  --cyan: #46D2FF;
  --sky: #A9D2FF;
  --yellow: #FFCF3A;
  --red: #ED2F46;
  --cardred: #B3162A;
  --ink: #101B5C;
  --text: #F4F6FF;
  --muted: #BDC8EC;
  --dim: #8E9BCB;
  --glass: rgba(12, 22, 76, .84);

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 30px;

  --g-xs: .5rem;
  --g-sm: 1rem;
  --g: 1.5rem;
  --g-lg: 2.75rem;
  --sec: clamp(4.25rem, 9vw, 7rem);
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --wrap: 1160px;
  --nav-h: 64px;

  --font-d: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-b: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); }
strong { color: #fff; font-weight: 600; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Type ─────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.08; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

/* "Lit from above": the game's lettering. Each line gets its own light. */
.lit { color: #F3F6FC; }
.lit--gold { color: var(--yellow); }
.lit--red { color: #F24257; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lit {
    background-image: linear-gradient(to bottom, #FFFFFF 22%, #F3F6FC 50%, #C9D9F9 82%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    filter: drop-shadow(0 .055em .035em rgba(5, 14, 61, .6));
    /* Safari paints the gradient only inside the letters' box, so whatever hangs outside it
       (the tail of a j, g or y, and the j's hook on the left) was sliced off. The padding
       gives the letters room; the equal negative margin hands the space back, so nothing moves. */
    padding: .12em .14em .26em; margin: -.12em -.14em -.26em;
  }
  .lit--gold { background-image: linear-gradient(to bottom, #F9F27F 22%, #FAE14C 50%, #F6C10E 82%); }
  .lit--red { background-image: linear-gradient(to bottom, #FF7183 22%, #F24257 50%, #D3203A 82%); }
}

.eyebrow {
  font-family: var(--font-d); font-weight: 600; font-size: .86rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.lead { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 40em; }
.fine { font-size: .86rem; color: var(--dim); line-height: 1.5; }
.fine a { color: var(--muted); }

/* ─── Layout ───────────────────────────────────────────────────────── */

.sec { padding: var(--sec) var(--gutter); position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: var(--g-lg); }
.wrap--narrow { max-width: 860px; }
.sec-head { display: flex; flex-direction: column; gap: var(--g-sm); align-items: center; text-align: center; }
.sec-head .lead { margin: 0 auto; }

/* A lighter band of stage behind every other section. */
.sec--band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(60, 140, 255, .16), rgba(60, 140, 255, 0) 70%),
    linear-gradient(to bottom, rgba(23, 48, 154, 0), rgba(23, 48, 154, .42) 14%, rgba(23, 48, 154, .42) 86%, rgba(23, 48, 154, 0));
}

/* ─── Pieces ───────────────────────────────────────────────────────── */

.glass {
  border: 2px solid var(--rim);
  border-radius: var(--r);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 42%), var(--glass);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 12px 2px var(--rim-soft);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-d); font-weight: 600; font-size: 1.08rem; line-height: 1.15;
  padding: .92em 1.75em; border-radius: 999px; text-decoration: none; text-align: center;
  border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--gold {
  color: #2A1A00;
  background: linear-gradient(to bottom, #FFE27A, #FFCF3A 55%, #F2B416);
  border: 3px solid #FFF0B0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 18px 2px rgba(255, 207, 58, .36), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--glass {
  color: #fff; border: 2px solid var(--rim);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 45%), var(--glass);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .45), 0 0 11px 1.7px var(--rim-soft);
}
.btn--glass:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn--sm { font-size: .95rem; padding: .62em 1.2em; }
.btn--block { width: 100%; }
/* A pressed button keeps its shape and says what it's doing — never greyed. */
.btn:disabled { opacity: 1; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .42em 1em; border-radius: 999px; color: var(--yellow);
  border: 1.5px solid rgba(255, 207, 58, .55); background: rgba(255, 207, 58, .1);
}

/* The white joke card. */
.jcard {
  background: linear-gradient(to bottom, #FFFFFF, #EDF2FF);
  color: var(--ink);
  border: 5px solid #2A74FF;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 2px rgba(169, 210, 255, .55), 0 0 26px 4px rgba(60, 140, 255, .5), 0 18px 34px rgba(0, 0, 0, .45), inset 0 -10px 18px rgba(42, 116, 255, .12);
  font-family: var(--font-d); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.3;
  padding: 1.25em 1.4em; text-align: center; text-wrap: balance;
}
.jcard .nm { color: var(--cardred); font-weight: 700; }
.jcard .ans { color: var(--cardred); text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .18em; }
.jcard .blank { display: inline-block; width: 3.2em; height: .16em; border-radius: 2px; background: #D3203A; vertical-align: baseline; margin: 0 .15em; }

/* ─── Nav ──────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--g-sm);
  padding: 0 var(--gutter);
  background: rgba(8, 15, 58, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60, 140, 255, .35);
}
.nav-home {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--muted);
  font-family: var(--font-d); font-weight: 600; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav-home:hover { color: #fff; }
.nav-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-right { display: inline-flex; align-items: center; gap: 1.1rem; }
.nav-link { text-decoration: none; color: var(--muted); font-family: var(--font-d); font-weight: 600; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-link:hover { color: var(--cyan); }
.nav--brand-only { justify-content: center; }
.nav--brand-only .nav-brand span { display: inline; }
@media (max-width: 720px) {
  .nav-brand span { display: none; }
  .nav-right { gap: .8rem; }
}
.nav .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav-right .nav-link { display: none; } }

/* ─── Hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2.25rem, 6vw, 4.5rem)) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: #12227A url('/assets/takeajoke/stage.webp') center top / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 72% 38%, rgba(70, 210, 255, .16), rgba(70, 210, 255, 0) 70%),
    linear-gradient(to bottom, rgba(11, 20, 72, .25), rgba(11, 20, 72, 0) 30%, rgba(11, 20, 72, .0) 62%, var(--navy-1) 100%);
}
.hero-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--g); align-items: flex-start; }
.hero-logo { width: clamp(180px, 20vw, 250px); filter: drop-shadow(0 16px 28px rgba(3, 8, 40, .6)); }
.hero-copy h1 { display: flex; flex-direction: column; font-size: clamp(1.95rem, 8.4vw, 3.75rem); }
.hero-copy h1 span { align-self: flex-start; }
.hero-tag { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: #DDE5FF; max-width: 31em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--g-sm); align-items: center; }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-note a { color: var(--yellow); text-decoration-color: rgba(255, 207, 58, .5); text-underline-offset: .2em; }

/* The holiday pass band at the top of the hero (2026-11-25, until the HOLIDAYS
   code expires): one link, gold-rimmed so it reads before the headline. */
.holiday {
  max-width: var(--wrap); margin: 0 auto clamp(1.75rem, 4.5vw, 3rem);
  display: flex; align-items: center; gap: var(--g);
  padding: 1rem 1rem 1rem 1.4rem;
  border-color: var(--yellow);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 22px 3px rgba(255, 207, 58, .3);
  text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.holiday:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 28px 4px rgba(255, 207, 58, .4); }
.holiday:hover .holiday-btn { filter: brightness(1.06); }
.holiday-chip {
  flex: none; font-family: var(--font-d); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px; color: var(--yellow);
  border: 1.5px solid rgba(255, 207, 58, .55); background: rgba(255, 207, 58, .1); white-space: nowrap;
}
.holiday-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.holiday-head { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.2; color: #fff; }
.holiday-gold { color: var(--yellow); }
.holiday-sub { font-size: .95rem; color: var(--muted); line-height: 1.4; }
.holiday-btn { flex: none; }
@media (max-width: 760px) {
  .holiday { flex-direction: column; align-items: stretch; text-align: center; gap: var(--g-sm); padding: 1.2rem; }
  .holiday-chip { align-self: center; }
}
.holiday-note {
  display: block; text-align: center; font-family: var(--font-d); font-weight: 600; font-size: 1rem; line-height: 1.35;
  color: var(--yellow); text-decoration: underline; text-decoration-color: rgba(255, 207, 58, .45); text-underline-offset: .2em;
}
.holiday-note:hover { color: #FFE27A; }

/* The TV with a phone in front: both are real screens from the game. */
.rig { position: relative; padding: 0 0 9% 0; }
.tv { position: relative; border-radius: 16px; padding: 10px; background: linear-gradient(145deg, #1a2150, #05081f 55%); box-shadow: 0 0 0 1px rgba(169, 210, 255, .28), 0 34px 60px rgba(2, 6, 34, .65), 0 0 60px 6px rgba(60, 140, 255, .28); transform: rotate(-1.2deg); }
.tv img { border-radius: 8px; width: 100%; }
.tv::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 34%; height: 16px; transform: translateX(-50%); background: linear-gradient(to bottom, #0b1036, #05081f); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.phone { position: absolute; right: -1.5%; bottom: 0; width: 25.5%; min-width: 108px; border-radius: 13% / 6.4%; padding: 5px; background: linear-gradient(160deg, #2a3270, #05081f 60%); box-shadow: 0 0 0 1px rgba(169, 210, 255, .35), 0 24px 40px rgba(2, 6, 34, .7); transform: rotate(4deg); }
.phone img { border-radius: 11.5% / 5.6%; width: 100%; }

.plat-strip { max-width: var(--wrap); margin: clamp(2.5rem, 6vw, 4rem) auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem .6rem; }
.plat-strip-label { font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-right: .4rem; }
.plat-strip a, .plat-strip .pill { font-family: var(--font-d); font-weight: 600; font-size: .95rem; color: #fff; text-decoration: none; padding: .38em .95em; border-radius: 999px; border: 1.5px solid rgba(60, 140, 255, .7); background: rgba(12, 22, 76, .72); transition: border-color .15s, transform .15s; }
.plat-strip a:hover { border-color: var(--yellow); transform: translateY(-1px); }

/* Faint drifting cards and laughs, as on the game's stage. */
.drift { position: absolute; z-index: -1; pointer-events: none; opacity: .5; animation: drift 14s ease-in-out infinite; }
.drift--ha { font-family: var(--font-d); font-weight: 700; font-size: 2.2rem; color: rgba(169, 210, 255, .2); letter-spacing: .04em; }
.drift--card { width: 120px; height: 74px; border-radius: 12px; border: 2px solid rgba(169, 210, 255, .16); background: rgba(169, 210, 255, .05); }
.drift--card::before, .drift--card::after { content: ''; position: absolute; left: 18%; height: 6px; border-radius: 3px; background: rgba(169, 210, 255, .16); }
.drift--card::before { top: 34%; width: 64%; }
.drift--card::after { top: 56%; width: 38%; background: rgba(237, 47, 70, .3); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(var(--rot, -8deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--rot, -8deg) + 3deg)); } }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy h1 { align-items: center; }
  .hero-copy h1 span { align-self: center; }
  .hero-ctas { justify-content: center; }
  .rig { max-width: 620px; margin: 0 auto; width: 100%; }
  .drift { display: none; }
}

/* ─── Trailer ──────────────────────────────────────────────────────── */

.film { position: relative; border-radius: var(--r); overflow: hidden; border: 2px solid var(--rim); box-shadow: 0 0 0 1px rgba(169, 210, 255, .25), 0 26px 54px rgba(2, 6, 34, .6), 0 0 44px 4px rgba(60, 140, 255, .3); background: #05081f; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: rgba(6, 11, 46, .58); color: #2A1A00; }
.film-play span { display: flex; align-items: center; gap: .6em; font-family: var(--font-d); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.25rem); padding: .8em 1.5em .8em 1.25em; border-radius: 999px; background: linear-gradient(to bottom, #FFE27A, #FFCF3A 55%, #F2B416); border: 3px solid #FFF0B0; box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 22px 3px rgba(255, 207, 58, .45); transition: transform .15s; }
.film-play:hover span { transform: scale(1.05); }
.film-play svg { width: 1.2em; height: 1.2em; }
.film.is-playing .film-play { display: none; }

/* ─── A round in four beats ────────────────────────────────────────── */

.setup-line { text-align: center; max-width: 46em; margin: 0 auto; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.14rem); }
/* Two rows shared by all four: the screenshots sit on one baseline, the captions start on one line. */
.beats { display: grid; grid-template-columns: 1.55fr .72fr .72fr 1.55fr; grid-template-rows: auto auto; grid-auto-flow: column; column-gap: var(--g); row-gap: var(--g-sm); }
.beat { display: contents; }
.beat-shot { align-self: end; }   /* computer layout only: undone below, where each step is its own column */
.beat-shot { border-radius: 12px; overflow: hidden; border: 2px solid rgba(60, 140, 255, .8); box-shadow: 0 16px 30px rgba(2, 6, 34, .55), 0 0 16px 2px rgba(60, 140, 255, .25); background: #0b1448; }
.beat-shot--phone { border-radius: 22px; border-width: 4px; border-color: #0a0f33; outline: 1.5px solid rgba(169, 210, 255, .4); }
.beat-shot img { width: 100%; }
.beat-text { display: flex; flex-direction: column; gap: .3rem; }
.beat-n { font-family: var(--font-d); font-weight: 700; font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.beat-text p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
@media (max-width: 900px) {
  .beats { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; gap: var(--g); align-items: start; max-width: 560px; margin-left: auto; margin-right: auto; }
  .beat { display: flex; flex-direction: column; gap: var(--g-sm); }
  /* Safari shrinks an end-aligned box to its picture and parks it on the right edge. */
  .beat-shot { align-self: stretch; width: 100%; }
  .beat:nth-child(1), .beat:nth-child(4) { grid-column: 1 / -1; }
}

/* ─── Your name in the cards ───────────────────────────────────────── */

.names { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: var(--wrap); margin: 0 auto; }
.names-copy { display: flex; flex-direction: column; gap: var(--g); align-items: flex-start; }
.name-field { display: flex; flex-direction: column; gap: .45rem; width: 100%; max-width: 22rem; }
.name-field span { font-family: var(--font-d); font-weight: 600; font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.name-field input { font-family: var(--font-d); font-weight: 600; font-size: 1.35rem; color: var(--ink); padding: .6em .9em; border-radius: 16px; border: 4px solid var(--yellow); background: #fff; width: 100%; box-shadow: 0 0 20px 2px rgba(255, 207, 58, .35), 0 10px 22px rgba(0, 0, 0, .4); }
.name-field input::placeholder { color: #8f98c4; }
.names-cards { display: flex; flex-direction: column; gap: var(--g); }
.names-cards .jcard { min-height: 5.4em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.names-cards .jcard:nth-child(1) { transform: rotate(-1.4deg); }
.names-cards .jcard:nth-child(2) { transform: rotate(1deg); margin-left: 6%; }
.names-cards .jcard:nth-child(3) { transform: rotate(-.6deg); margin-right: 8%; }
.jcard--adj { background: linear-gradient(to bottom, #2E6BFF, #1B47C9); color: #fff; border-color: #8FC2FF; }
.jcard--adj .nm { color: var(--yellow); }
.jcard--adj .adj { display: block; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: #CFE2FF; }
@media (max-width: 900px) {
  .names { grid-template-columns: 1fr; }
  .names-copy { align-items: center; text-align: center; }
  .names-cards .jcard:nth-child(n) { margin-left: 0; margin-right: 0; }
}

/* ─── Split feature rows (clean / narrator) ────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: var(--wrap); margin: 0 auto; }
.split--flip .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: var(--g); align-items: flex-start; }
.split-shot { border-radius: 14px; overflow: hidden; border: 2px solid rgba(60, 140, 255, .85); box-shadow: 0 22px 44px rgba(2, 6, 34, .6), 0 0 26px 3px rgba(60, 140, 255, .28); }
.ticks { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1A00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat; }
.big-rule { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; color: #fff; }
.big-rule em { font-style: normal; color: var(--yellow); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split-copy { order: 0; }
  .split-copy { align-items: center; text-align: center; }
  .split-shot { max-width: 600px; width: 100%; justify-self: center; }
  .ticks { text-align: left; }
}

/* ─── Modes ────────────────────────────────────────────────────────── */

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.mode-group--wide { grid-column: 1 / -1; }
.mode-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.6rem; }
.mode-row .mode + .mode { padding-top: 0; border-top: 0; padding-left: 1.6rem; border-left: 1px solid rgba(60, 140, 255, .3); }
.mode-group { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.mode-q { font-family: var(--font-d); font-weight: 600; font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.mode { display: flex; flex-direction: column; gap: .25rem; }
.mode + .mode { padding-top: 1.1rem; border-top: 1px solid rgba(60, 140, 255, .3); }
.mode h3 { font-size: 1.2rem; }
.mode p { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.mode .best { color: var(--yellow); font-size: .88rem; }
.new { display: inline-block; margin-left: .5em; font-size: .62em; letter-spacing: .14em; padding: .2em .6em; border-radius: 999px; background: var(--red); color: #fff; vertical-align: middle; }
@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; }
  .mode-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .mode-row .mode + .mode { padding-left: 0; border-left: 0; padding-top: 1.1rem; border-top: 1px solid rgba(60, 140, 255, .3); }
}

/* ─── Get it: the platform grid ────────────────────────────────────── */

.plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.plat { padding: 1.5rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .8rem; }
.plat-top { display: flex; align-items: center; gap: .7rem; }
.plat-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: #283C85; display: flex; align-items: center; justify-content: center; color: var(--yellow); }
.plat-ic svg { width: 24px; height: 24px; }
.plat h3 { font-size: 1.22rem; }
.plat p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.plat-foot { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; padding-top: .4rem; }
.plat-foot .fine { text-align: center; }
.plat--new { border-color: var(--yellow); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 14px 2px rgba(255, 207, 58, .3); }
.plat-flag { margin-left: auto; font-family: var(--font-d); font-weight: 700; font-size: .68rem; letter-spacing: .14em; padding: .25em .7em; border-radius: 999px; background: var(--yellow); color: #2A1A00; }
.plats-note { text-align: center; color: var(--muted); max-width: 46em; margin: 0 auto; font-size: .98rem; }
@media (max-width: 1080px) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plats { grid-template-columns: 1fr; } }

/* ─── Pricing ──────────────────────────────────────────────────────── */

.prices { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--g); align-items: start; }
.prices--one { grid-template-columns: minmax(0, 540px); justify-content: center; }
.price { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.price--full { border-color: var(--yellow); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 22px 3px rgba(255, 207, 58, .32); }
.price-name { font-family: var(--font-d); font-weight: 600; font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.price--full .price-name { color: var(--yellow); }
.price-amt { font-family: var(--font-d); font-weight: 700; font-size: 3.1rem; line-height: 1; color: #fff; }
.price-amt small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: .35em; }
.price .ticks { gap: .7rem; }
.price .ticks li { font-size: .98rem; }
.price-cta { display: flex; flex-direction: column; gap: .8rem; }
.refill { padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem; font-size: .96rem; color: var(--muted); }
.refill input { font-family: var(--font-b); font-size: .96rem; padding: .62em .9em; border-radius: 12px; border: 2px solid var(--rim); background: rgba(6, 11, 46, .7); color: #fff; min-width: 15rem; }
.refill input::placeholder { color: var(--dim); }
.price-error { display: none; text-align: center; color: #FF9AA6; font-size: .95rem; }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } .refill input { min-width: 0; width: 100%; } }

/* ─── Compare ──────────────────────────────────────────────────────── */

.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.cmp-card { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.cmp-head { display: flex; flex-direction: column; gap: .2rem; }
.cmp-head p { font-family: var(--font-d); font-weight: 500; color: var(--yellow); font-size: 1rem; }
.cmp-row { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.cmp-tag { align-self: flex-start; font-family: var(--font-d); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .22em .75em; border-radius: 999px; }
.cmp-tag--same { color: var(--sky); border: 1.5px solid rgba(169, 210, 255, .5); }
.cmp-tag--adds { color: #2A1A00; background: var(--yellow); }
.every { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.every h3 { text-align: center; }
.every-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem 1.6rem; }
.every-item { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.every-item b { font-family: var(--font-d); font-weight: 600; font-size: 1.06rem; color: #fff; }
@media (max-width: 900px) { .cmp { grid-template-columns: 1fr; } .every-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .every-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ──────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq details { border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 3.2rem 1.05rem 1.35rem; position: relative; font-family: var(--font-d); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 1.25rem; top: 50%; width: .7rem; height: .7rem; border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 1.35rem 1.2rem; color: var(--muted); display: flex; flex-direction: column; gap: .7rem; font-size: 1rem; }

/* ─── Closing band + footer ────────────────────────────────────────── */

.close { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.close::before { content: ''; position: absolute; inset: 0; z-index: -2; background: #12227A url('/assets/takeajoke/stage.webp') center / cover no-repeat; }
.close::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--navy-1), rgba(11, 20, 72, .1) 30%, rgba(11, 20, 72, .1) 70%, var(--navy-0)); }
.close .wrap { align-items: center; gap: var(--g); }
.close-logo { width: clamp(170px, 22vw, 250px); filter: drop-shadow(0 14px 26px rgba(3, 8, 40, .6)); }

.foot { background: var(--navy-0); padding: 2.25rem var(--gutter); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; color: var(--dim); font-size: .9rem; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }

/* ─── Guide pages ──────────────────────────────────────────────────────
   One page per search: a device ("party game for Apple TV") or a game people
   compare this one to ("like Jackbox"). They are written by
   tool/build_search_pages.py and use the same stage as /takeajoke. */

.hero--guide .hero-logo { width: clamp(130px, 14vw, 172px); }
/* Two lines of light, as on /takeajoke: the white part, then the gold part. */
.hero--guide .hero-copy h1 { font-size: clamp(1.85rem, 5vw, 3.05rem); }
.crumbs { font-family: var(--font-d); font-weight: 600; font-size: .84rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; margin: 0 .55em; color: var(--dim); }

/* A hand of cards in the hero, where a screenshot would say less. */
.hand { display: flex; flex-direction: column; gap: var(--g-sm); }
.hand .jcard { overflow-wrap: anywhere; }
.hand .jcard:nth-child(1) { transform: rotate(-1.4deg); }
.hand .jcard:nth-child(2) { transform: rotate(1.1deg); margin-left: 9%; }
.hand .jcard:nth-child(3) { transform: rotate(-.7deg); margin-right: 10%; }
.hand .jcard:nth-child(4) { transform: rotate(.8deg); margin-left: 5%; margin-right: 4%; }
.jcard--sm { font-size: clamp(1.02rem, 1.8vw, 1.22rem); padding: .85em 1.2em; border-width: 4px; border-radius: var(--r); }
.hand-note { text-align: center; }
.jcard--adj .adj-word { display: block; font-size: 1.55em; line-height: 1.15; font-weight: 700; }
@media (max-width: 960px) {
  .hand { max-width: 560px; margin: 0 auto; width: 100%; }
  .hand .jcard:nth-child(n) { margin-left: 0; margin-right: 0; }
}

/* Numbered steps. */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--g-sm); width: 100%; }
.steps li { counter-increment: step; position: relative; padding: 1.15rem 1.3rem 1.15rem 4.2rem; display: flex; flex-direction: column; gap: .3rem; text-align: left; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.15rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; color: #2A1A00;
  background: linear-gradient(to bottom, #FFE27A, #FFCF3A 55%, #F2B416); box-shadow: 0 0 12px 1px rgba(255, 207, 58, .4);
}
.steps h3 { font-size: 1.16rem; }
.steps p { color: var(--muted); font-size: .97rem; line-height: 1.5; }

/* Two panels side by side: runs on / doesn't, buy here / buy there, pick this / pick that. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.pair-card { padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.pair-card--gold { border-color: var(--yellow); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 18px 2px rgba(255, 207, 58, .3); }
.pair-card > p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.pair-card .ticks { gap: .7rem; }
.pair-card .ticks li { font-size: .98rem; }
.pair-foot { margin-top: auto; padding-top: .3rem; }
.ticks--no li::before { background: #33428F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDC8EC' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 68% no-repeat; }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }

/* The side-by-side table. On a phone each row becomes its own small block. */
.vs { padding: .5rem 1.5rem; }
.vs table { width: 100%; border-collapse: collapse; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 1.05rem .9rem; font-size: .98rem; line-height: 1.5; font-weight: 400; }
.vs thead th { font-family: var(--font-d); font-weight: 600; font-size: 1.14rem; color: #fff; }
.vs thead .us { color: var(--yellow); }
.vs tbody tr { border-top: 1px solid rgba(60, 140, 255, .3); }
.vs tbody th { width: 21%; font-family: var(--font-d); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); padding-top: 1.25rem; }
.vs tbody td { color: var(--muted); width: 39.5%; }
.vs tbody .us { color: #EEF2FF; }
@media (max-width: 720px) {
  .vs { padding: .3rem 1.2rem; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs table, .vs tbody, .vs tbody th, .vs tbody td { display: block; width: auto; }
  .vs tbody tr { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 0; }
  .vs tbody tr:first-child { border-top: 0; }
  .vs tbody th, .vs tbody td { padding: 0; }
  .vs tbody td::before { content: attr(data-h); display: block; font-family: var(--font-d); font-weight: 600; font-size: .84rem; color: var(--dim); }
  .vs tbody .us::before { color: var(--yellow); }
}

/* A few paragraphs of plain talk. */
.prose { display: flex; flex-direction: column; gap: var(--g-sm); max-width: 44em; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* Links to the other guides. */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g-sm); }
.more a { padding: 1.15rem 1.3rem; text-decoration: none; display: flex; flex-direction: column; gap: .25rem; transition: transform .15s ease, border-color .15s ease; }
.more a:hover { transform: translateY(-2px); border-color: var(--yellow); }
.more b { font-family: var(--font-d); font-weight: 600; font-size: 1.08rem; color: #fff; }
.more span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
@media (max-width: 900px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

.foot-note { max-width: var(--wrap); margin: 1.4rem auto 0; color: var(--dim); font-size: .8rem; line-height: 1.5; }

/* On /takeajoke: the links out to the guides. */
.cmp-more { margin-top: auto; align-self: flex-start; font-family: var(--font-d); font-weight: 600; font-size: .98rem; color: var(--yellow); text-decoration: none; }
.cmp-more:hover { text-decoration: underline; text-underline-offset: .2em; }
.wrap > .plat-strip { margin: 0 auto; }

/* ─── Motion ───────────────────────────────────────────────────────── */

/* Sections fade in as they arrive. Opacity only, so nothing ever moves a
   button or changes a measured position; without JavaScript nothing hides. */
html.js .reveal { opacity: 0; transition: opacity .7s ease; }
html.js .reveal.in { opacity: 1; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.86) rotate(-3deg); } 60% { opacity: 1; transform: scale(1.04) rotate(.6deg); } 100% { opacity: 1; transform: none; } }
.hero-logo { animation: pop .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.hero-copy h1 { animation: rise .6s .12s ease-out both; }
.hero-tag { animation: rise .6s .22s ease-out both; }
.hero-ctas { animation: rise .6s .32s ease-out both; }
.hero-note { animation: rise .6s .4s ease-out both; }
.rig { animation: rise .8s .2s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; }
}
