/* Halftime: Ultimate Game Nights — marketing site + legal pages, on the Floodlight
   tokens (--cn-*, public/css/floodlight-web.css). One loud element: the hero
   scoreboard. Everything else stays quiet: left-aligned copy, condensed jersey
   lettering for headings only, Barlow for reading. */

@font-face { font-family: "Barlow"; src: url("/fonts/site/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: "Barlow"; src: url("/fonts/site/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: optional; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/site/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: optional; }

:root {
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--cn-text);
  background-color: var(--cn-bg); background-image: var(--cn-field-lines), var(--cn-bg-image); background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--cn-amber); }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--cn-amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(76rem, 100% - 2 * var(--gutter)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--cn-amber); color: var(--cn-on-amber); padding: 0.5rem 1rem; z-index: 10; border-radius: 8px; }

/* ---- wordmark: HALF in floodlight white, TIME in scoreboard amber ---------------- */
.wordmark, .wordmark-xl { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.85; }
.wordmark { font-size: 1.9rem; display: inline-flex; }
.wm-half { color: var(--cn-text); }
.wm-time { color: var(--cn-amber); }

/* ---- buttons ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.65em 1.4em; border-radius: 10px;
  font: 600 1.05rem/1.1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--cn-amber); color: var(--cn-on-amber); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-quiet { color: var(--cn-text); border-color: var(--cn-line-strong); }
.btn-quiet:hover { border-color: var(--cn-text); }
.btn-small { min-height: 2.5rem; padding: 0.45em 1em; font-size: 0.95rem; }

/* ---- header ------------------------------------------------------------------------ */
.site-head { padding: 1.1rem 0; }
.head-row, .site-head .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { text-decoration: none; margin-inline-end: auto; }
.nav { display: flex; gap: 1.25rem; }
.nav a, .langs a { color: var(--cn-text); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .langs a:hover { color: var(--cn-amber); }
.langs { display: flex; gap: 0.2rem; }
.langs a { padding: 0.2rem 0.45rem; border-radius: 6px; font-size: 0.9rem; color: var(--cn-text-2); }
.langs a[aria-current="page"] { color: var(--cn-text); box-shadow: inset 0 -2px 0 var(--cn-amber); border-radius: 0; }

/* ---- hero: the scoreboard ------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.wordmark-xl { display: block; font-size: clamp(4.2rem, 8.6vw, 8.6rem); }
.hero-kicker { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3.2vw, 2.3rem); letter-spacing: 0.06em; color: var(--cn-text-2); margin-top: 0.3rem; }
.hero-lede { margin-top: 1.4rem; max-width: var(--measure); font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--cn-text); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-stage { position: relative; padding-bottom: 2.5rem; }
.tv { width: 84%; }
.tv { position: relative; }
.tv-screen {
  aspect-ratio: 16 / 9; border-radius: 14px; padding: clamp(0.9rem, 2.4vw, 1.8rem);
  background: radial-gradient(120% 90% at 50% -10%, #17324c 0%, #08131d 60%), #08131d;
  border: 0.55rem solid #02070d; box-shadow: 0 0 0 1px rgba(214, 236, 255, 0.18), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(214, 236, 255, 0.10);
  display: grid; grid-template-rows: auto 1fr auto; color: #f3f7fb;
}
.tv-stand { width: 26%; height: 0.7rem; margin: 0 auto; background: #02070d; border-radius: 0 0 8px 8px; }
.tv-join { font-size: clamp(0.8rem, 1.4vw, 1.05rem); color: #a8bccf; text-align: center; }
.tv-join strong { color: #ffb020; font-weight: 600; }
.flap-row { display: flex; gap: 3%; justify-content: center; align-items: center; }
.flap {
  position: relative; display: grid; place-items: center; width: 19%; aspect-ratio: 3 / 4;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7.5vw, 6.2rem); line-height: 1;
  color: #ffb020; text-shadow: 0 0 24px rgba(255, 176, 32, 0.55);
  background: linear-gradient(180deg, #102335 0 49.4%, #02070d 49.4% 50.6%, #0b1a28 50.6% 100%); border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.flap.is-flipping { color: #ffd166; }
.tv-foot { display: flex; justify-content: space-between; align-items: center; font-size: clamp(0.8rem, 1.3vw, 1rem); color: #a8bccf; }
.tv-players b { color: #b6f23a; font-weight: 600; }
.tv-faces { letter-spacing: 0.2em; }

.phone {
  position: absolute; right: 0; bottom: 0; width: clamp(8.5rem, 26%, 12rem);
  border-radius: 1.6rem; padding: 0.45rem; background: #02070d;
  box-shadow: 0 0 0 1px rgba(214, 236, 255, 0.22), 0 24px 60px rgba(0, 0, 0, 0.6); transform: rotate(4deg);
}
.phone-screen { font-size: 1em; border-radius: 1.25em; padding: 0.9em 0.7em 0.8em; background: #0f2538; color: #f3f7fb; }
.phone-q { font-weight: 600; font-size: 0.82em; line-height: 1.25; }
.phone-answers { list-style: none; margin: 0.6em 0 0; padding: 0; display: grid; gap: 0.35em; }
.phone-answers li { display: flex; gap: 0.5em; align-items: center; padding: 0.35em 0.5em; border-radius: 0.55em; background: #163250; font-weight: 600; font-size: 0.85em; }
.phone-answers span { font-family: var(--display); font-weight: 800; color: #ffb020; width: 1em; }
.phone-answers .is-picked { background: #ffb020; color: #06121e; }
.phone-answers .is-picked span { color: #06121e; }
.phone-locked { margin-top: 0.5em; font-size: 0.72em; color: #b6f23a; font-weight: 600; text-align: center; }

/* ---- sections ------------------------------------------------------------------------ */
main > section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--cn-line); }
main > section.hero { border-top: 0; }
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 0.95; letter-spacing: 0.005em; max-width: 18ch; }
h3 { font-weight: 600; }
.section-lede { margin-top: 0.9rem; max-width: var(--measure); color: var(--cn-text-2); font-size: 1.15rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; }
.section-head .section-lede { margin: 0; }

/* sports: jersey stripes */
.sport-strip { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.8fr); gap: 1rem; }
.sport {
  position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 6.5rem; padding: 1.1rem 1.3rem 1.6rem; border-radius: 12px;
  background: var(--cn-surface); overflow: hidden;
}
.sport::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.65rem; height: 0.7rem;
  background: linear-gradient(var(--sport), var(--sport)) 0 0 / 100% 0.22rem no-repeat, linear-gradient(var(--sport), var(--sport)) 0 100% / 100% 0.22rem no-repeat; }
.sport-emoji { font-size: 2.6rem; line-height: 1; }
.sport-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.sport-more { background: transparent; border: 1px dashed var(--cn-line-strong); --sport: transparent; }
.sport-more .sport-name { font-size: 1.25rem; color: var(--cn-text-2); }

/* games: a team sheet, not a card grid */
.roster { list-style: none; margin: 2.4rem 0 0; padding: 0; columns: 2 26rem; column-gap: 3.5rem; }
.roster-row {
  break-inside: avoid; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: 0.9rem; row-gap: 0.2rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--cn-line);
}
.roster-icon { grid-row: span 2; font-size: 1.75rem; line-height: 1.2; }
.roster-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.55rem; line-height: 1; letter-spacing: 0.01em; }
.roster-players { grid-column: 3; grid-row: 1; color: var(--cn-text-2); font-variant-numeric: tabular-nums; font-size: 0.95rem; white-space: nowrap; }
.roster-what { grid-column: 2 / 4; color: var(--cn-text-2); max-width: 34rem; }
.badge-18 { font-family: var(--body); font-weight: 600; font-size: 0.75rem; vertical-align: 0.35em; padding: 0.1em 0.45em; border-radius: 5px; background: var(--cn-flare); color: var(--cn-on-flare); }

/* how: a play route */
.play-route { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; position: relative; }
.play-route::before { content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: 12%; border-top: 3px dashed var(--cn-line-strong); }
.route-step { position: relative; counter-increment: step; }
.route-step::before {
  content: counter(step); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--cn-on-amber); background: var(--cn-amber); margin-bottom: 1.1rem;
}
.route-step:last-child::after { content: ""; position: absolute; top: 1.1rem; left: -1.6rem; width: 0; height: 0; border: 0.55rem solid transparent; border-left-color: var(--cn-line-strong); }
.route-step h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.route-step p { margin-top: 0.55rem; color: var(--cn-text-2); max-width: 22rem; }
.how-note { margin-top: 2.4rem; color: var(--cn-text-2); }

/* see: real screens (media slots) */
.shot-pairs { margin-top: 2.6rem; display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.shot-pair { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: end; }
.shot-pair:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr); }
.shot-pair:nth-child(even) .shot-tv { order: 2; }
.shot { margin: 0; }
.shot img { border-radius: 10px; box-shadow: 0 0 0 1px var(--cn-line), 0 18px 50px rgba(0, 0, 0, 0.45); }
.shot-phone img { border-radius: 1.4rem; }
.shot-video { margin-top: 2.6rem; }
.shot-video video { width: 100%; border-radius: 12px; }
.shot-video figcaption { margin-top: 0.5rem; color: var(--cn-text-2); }

/* faq */
.faq-list { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; align-items: start; }
details { border-bottom: 1px solid var(--cn-line); }
summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; font-size: 1.12rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); line-height: 1; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--cn-amber); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 1.2rem; color: var(--cn-text-2); max-width: var(--measure); }

/* closing call */
.cta { display: grid; justify-items: start; gap: 1.5rem; }
.cta h2 { max-width: 22ch; }
.stores { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; padding: 0.45rem 1rem; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); font-weight: 600; line-height: 1.1; opacity: 0.75; }
.store small { font-size: 0.66rem; font-weight: 400; }
.soon { font-weight: 600; color: var(--cn-amber); }

/* ---- footer ------------------------------------------------------------------------- */
.site-foot { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--cn-line); color: var(--cn-text-2); font-size: 0.92rem; }
.foot-row, .site-foot .wrap { display: grid; gap: 0.5rem; }
.site-foot a { color: var(--cn-text); margin-inline-end: 1rem; }
.disclaimer { color: var(--cn-text); font-weight: 600; }
.theme-btn { background: transparent; border: 1px solid var(--cn-line-strong); color: var(--cn-text); border-radius: 8px; min-height: 2.4rem; padding: 0 0.8rem; font: inherit; cursor: pointer; }

/* ---- legal pages + 404 ------------------------------------------------------------------- */
.prose { max-width: 44rem; padding: 1rem 0 3rem; }
.prose h1, .notfound h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 0.95; margin: 1rem 0 1.2rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose .note { background: var(--cn-surface); border-inline-start: 4px solid var(--cn-amber); border-radius: 8px; padding: 0.8rem 1rem; }
.notfound { padding: 5rem 0; }
.notfound p { color: var(--cn-text-2); font-size: 1.15rem; }

/* ---- responsive --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .section-head, .faq-list { grid-template-columns: 1fr; }
  .sport-strip { grid-template-columns: 1fr 1fr; }
  .play-route { grid-template-columns: 1fr; gap: 1.8rem; }
  .play-route::before { top: 1.6rem; bottom: 1.6rem; left: 1.6rem; right: auto; border-top: 0; border-left: 3px dashed var(--cn-line-strong); }
  .route-step { padding-left: 4.4rem; }
  .route-step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .route-step:last-child::after { display: none; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .nav-play { width: 100%; }
  .sport-strip { grid-template-columns: 1fr; }
  .shot-pair, .shot-pair:nth-child(even) { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
  .shot-pair:nth-child(even) .shot-tv { order: 0; }
  .roster { columns: 1; }
  .tv { width: 100%; }
  .phone { right: -0.25rem; bottom: 0; width: 30%; border-radius: 1.1rem; }
  .phone-screen { font-size: 0.62rem; }
  .hero-stage { padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- app story + all-devices shot ---------------------------------------------------------- */
.hero-apps { margin-top: 1.1rem; color: var(--cn-text-2); font-weight: 600; }
.shot-wide { margin-top: 2.4rem; }
.shot-wide img { border-radius: 12px; }
