/* ==========================================================
   Ice Fishing Derby 2 – promo page
   Palette: pre-dawn lake, snow, frost blue, blaze orange
   Type: Big Shoulders (display), Barlow (text)
   ========================================================== */

@font-face {
  font-family: "Big Shoulders";
  src: url("/__custom-white/8277e51e-9d7a-40a5-ace6-a1b95ba991e5/fonts/big-shoulders-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("/__custom-white/8277e51e-9d7a-40a5-ace6-a1b95ba991e5/fonts/big-shoulders-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/__custom-white/8277e51e-9d7a-40a5-ace6-a1b95ba991e5/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/__custom-white/8277e51e-9d7a-40a5-ace6-a1b95ba991e5/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/__custom-white/8277e51e-9d7a-40a5-ace6-a1b95ba991e5/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* light: snow and ice */
  --bg: #EAF0F2;
  --bg-raised: #DCE6EA;
  --ink: #14283B;
  --ink-muted: #4D6273;
  --ice: #2C6C93;
  --blaze: #C2501A;
  --rule: rgba(44, 108, 147, 0.26);

  /* the button is a tip-up flag: same in every theme */
  --cta: #F06A2A;
  --cta-hover: #FF7A3D;
  --on-cta: #0E1B28;

  /* hero, header, final band: always pre-dawn lake */
  --night: #0E1B28;
  --night-raised: #16273A;
  --night-ink: #E9F0F3;
  --night-muted: #9FB4C3;
  --night-frost: #A8D4EA;
  --night-blaze: #FF7A3D;
  --night-rule: rgba(168, 212, 234, 0.26);

  --font-display: "Big Shoulders", "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-text: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #112030;
    --bg-raised: #172A3D;
    --ink: #E6EDF1;
    --ink-muted: #A3B5C2;
    --ice: #8CC3DF;
    --blaze: #FF7A3D;
    --rule: rgba(140, 195, 223, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #112030;
  --bg-raised: #172A3D;
  --ink: #E6EDF1;
  --ink-muted: #A3B5C2;
  --ice: #8CC3DF;
  --blaze: #FF7A3D;
  --rule: rgba(140, 195, 223, 0.22);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--night);
  color: var(--night-ink);
  border-radius: 6px;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cta);
  color: var(--on-cta);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 12px 28px -14px rgba(240, 106, 42, 0.75);
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--cta-hover); }

.btn-store { padding: 12px 24px 12px 18px; }
.btn-glyph { width: 26px; height: 26px; flex: none; }
.btn-stack { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.3rem; }
.btn-stack small { font-size: 0.8rem; font-weight: 500; }

.btn-small { padding: 9px 18px; font-size: 1rem; white-space: nowrap; flex: none; }
.nowrap { white-space: nowrap; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--bg-raised); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-solid {
  background: rgba(14, 27, 40, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--night-rule);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--night-raised);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: none; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: var(--night-muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--night-ink); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
}
@media (max-width: 480px) {
  .header-inner { gap: 14px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.35rem; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.2rem; }
  .site-header .btn-small { padding: 8px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 48px);
  padding-bottom: clamp(40px, 7vw, 80px);
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(14, 27, 40, 0.82) 38%, rgba(14, 27, 40, 0.3) 75%, rgba(14, 27, 40, 0.55) 100%),
    linear-gradient(to right, rgba(14, 27, 40, 0.85) 0%, rgba(14, 27, 40, 0.2) 65%);
}

.hero-inner { position: relative; }
.hero-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: var(--night-raised);
  box-shadow: 0 0 0 2px var(--night-frost), 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}
.hero-game {
  color: var(--night-frost);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7.5vw + 1rem, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  max-width: 13ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero-lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3rem);
  color: var(--night-muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--night-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--night-rule);
  text-decoration-thickness: 1px;
}
.link-quiet svg { width: 26px; height: 26px; color: var(--night-frost); flex: none; }
.link-quiet:hover { text-decoration-color: var(--night-frost); }
.hero :focus-visible { outline-color: var(--night-frost); }

/* stats ledger */
.ledger {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  border-top: 1px solid var(--night-rule);
}
.ledger > div {
  padding: 14px 16px 4px 0;
  display: flex;
  flex-direction: column-reverse;
}
.ledger dt { font-size: 0.875rem; color: var(--night-muted); }
.ledger dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
}
.ledger .star { color: var(--night-blaze); font-size: 0.75em; }

@media (min-width: 720px) {
  .ledger { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .ledger > div + div { padding-left: 20px; border-left: 1px solid var(--night-rule); }
}
@media (max-width: 719px) {
  .ledger > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--night-rule); }
}

/* the one orchestrated moment: the headline clears like frost on glass */
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: frost-clear 1.3s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-icon, .hero-game { animation: rise 0.7s ease-out both; }
  .hero-lede { animation: rise 0.7s ease-out 0.35s both; }
  .hero-actions { animation: rise 0.7s ease-out 0.5s both; }
  .ledger { animation: rise 0.7s ease-out 0.65s both; }
}
@keyframes frost-clear {
  from { opacity: 0; filter: blur(14px); color: var(--night-frost); }
  60%  { opacity: 1; filter: blur(2px); }
  to   { opacity: 1; filter: blur(0); color: var(--night-ink); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3vw + 1.2rem, 4rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.section-title-sm { font-size: clamp(2.1rem, 1.8vw + 1.2rem, 2.9rem); }
.section-intro {
  margin-top: 18px;
  max-width: 38em;
  color: var(--ink-muted);
}

/* modes */
.story-grid { display: grid; gap: 48px; }
.story-text .section-title { max-width: 14ch; }
.story-text p { max-width: 36em; }
.story-lede {
  margin-top: 24px;
  font-weight: 500;
  font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  line-height: 1.45;
}
.story-text p + p { margin-top: 18px; color: var(--ink-muted); }

.powers { list-style: none; margin: 0; padding: 0; align-self: end; }
.power {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.power:last-child { border-bottom: 1px solid var(--rule); }
.emblem { width: 48px; height: 48px; color: var(--ice); }
.power h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.power p { margin-top: 4px; color: var(--ink-muted); }

@media (min-width: 920px) {
  .story-grid { grid-template-columns: 1.15fr 0.85fr; gap: 80px; }
}

/* features */
.features { background: var(--bg-raised); }
.feature-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 36px 48px;
}
.feature-list li { border-top: 3px solid var(--blaze); padding-top: 16px; }
.feature-list h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.feature-list p { margin-top: 8px; color: var(--ink-muted); max-width: 30em; }

@media (min-width: 680px)  { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

/* gallery */
.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.gallery-controls { display: flex; gap: 10px; }

.strip {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  list-style: none;
  margin: 32px 0 0;
  padding: 4px var(--edge) 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85vw, 640px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.strip li { scroll-snap-align: start; }

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--rule);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.shot:hover img { transform: scale(1.025); }

/* steps: a real sequence, so numbered */
.start { padding-top: 0; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--blaze);
}
.steps h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.steps p { margin-top: 6px; color: var(--ink-muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* details + faq */
.info { border-top: 1px solid var(--rule); }
.info-grid { display: grid; gap: 56px; }
@media (min-width: 920px) {
  .info-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}

.details { margin: 24px 0 0; }
.details > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.details dt { color: var(--ink-muted); }
.details dd { margin: 0; }

.faq { margin-top: 24px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ice);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-muted); max-width: 38em; }
.faq a { color: var(--ink); text-underline-offset: 3px; }

/* final call */
.final {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(168, 212, 234, 0.14), transparent 70%),
    var(--night);
  color: var(--night-ink);
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.ornament { width: 160px; height: 28px; color: var(--night-frost); }
.ornament-flag { fill: var(--night-blaze); }
.final-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 5vw + 1rem, 5.5rem);
  line-height: 0.95;
  text-wrap: balance;
}
.final-text { margin: 18px 0 32px; color: var(--night-muted); font-size: 1.2rem; }
.final :focus-visible { outline-color: var(--night-frost); }

/* footer */
.site-footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.footer-links a { color: var(--ink); text-underline-offset: 3px; }
.disclaimer { max-width: 62em; font-size: 0.875rem; }

/* sticky install bar (phones only) */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 27, 40, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--night-rule);
  color: var(--night-ink);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; background: var(--night-raised); flex: none; }
.sticky-text { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.sticky-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.sticky-text span { font-size: 0.85rem; color: var(--night-muted); }

@media (max-width: 859px) {
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 860px) {
  .sticky-cta { display: none; }
}

/* screenshot + trailer viewers */
.viewer {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: #0A141E;
  color: var(--night-ink);
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.6); }
.viewer img {
  max-width: min(92vw, 1600px);
  max-height: 80dvh;
  border-radius: 8px;
  object-fit: contain;
}
.viewer .icon-btn {
  position: absolute;
  color: var(--night-ink);
  border-color: var(--night-rule);
  background: rgba(14, 27, 40, 0.7);
}
.viewer .icon-btn:hover { background: var(--night-raised); }
.viewer :focus-visible { outline-color: var(--night-frost); }
.viewer-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.viewer-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.viewer-count {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  text-align: center;
  color: var(--night-muted);
  font-size: 0.95rem;
}

.video-frame {
  position: relative;
  width: min(92vw, 1280px, calc(80dvh * 16 / 9));
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #000;
}
.video-fallback {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(14, 27, 40, 0.92);
  text-align: center;
}
.video-fallback[hidden] { display: none; }
.video-fallback a { color: var(--night-frost); font-weight: 600; text-underline-offset: 3px; }

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