/* FISTFALL landing. Colours from the game's own palette (client/style.css). Mobile first. */
:root {
  --red: #ff3b30;
  --red-deep: #c4170d;
  --yellow: #ffd60a;
  --ink: #0b0d12;
  --ink-2: #12151d;
  --ink-3: #1a1f2a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f5f7;
  --muted: #b9bfcc;
  --display: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--ui); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--yellow); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo, .mini-logo { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.logo { margin: 0; font-size: clamp(4.2rem, 21vw, 11rem); display: flex; justify-content: center;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.55)) drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.logo span, .mini-logo span { -webkit-text-stroke: .055em #000; paint-order: stroke fill; }
.fist { color: var(--red); }
.fall { color: #fff; }
.mini-logo { font-size: 1.6rem; text-decoration: none; display: inline-flex; }
.mini-logo span { -webkit-text-stroke: .06em #000; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media picture, .hero-poster, .hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; background: var(--ink-2); }
.hero-poster, .hero-video { object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { background:
  radial-gradient(ellipse 80% 55% at 50% 48%, rgba(11,13,18,.5), rgba(11,13,18,.12) 75%),
  linear-gradient(180deg, rgba(11,13,18,.7) 0%, rgba(11,13,18,.12) 26%, rgba(11,13,18,.3) 60%, var(--ink) 100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); }
.topbar-link { color: #fff; font-weight: 800; text-decoration: none; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 14px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.topbar-link:hover { border-color: var(--yellow); color: var(--yellow); }
.hero-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 8px var(--gutter) 88px; max-width: 980px; margin: 0 auto; width: 100%; }
.eyebrow { margin: 0 0 6px; font-family: var(--display); color: var(--yellow); font-size: clamp(1rem, 4.4vw, 1.5rem); letter-spacing: .06em;
  text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,.8); }
.tagline { margin: 14px auto 0; max-width: 34ch; font-size: clamp(1.05rem, 4.2vw, 1.5rem); line-height: 1.35; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.tagline strong { color: #fff; font-weight: 800; }
.soon { margin: 18px 0 0; }
.soon span { display: inline-block; font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.2rem); letter-spacing: .04em; text-transform: uppercase;
  color: #000; background: var(--yellow); padding: 4px 18px 2px; transform: rotate(-2.5deg); box-shadow: 5px 5px 0 #000; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 1.6rem;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); animation: bob 2s ease-in-out infinite; }
.motion-toggle { position: absolute; right: var(--gutter); bottom: 20px; font: 600 .78rem var(--ui); color: #fff; background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.motion-toggle[aria-pressed="true"] .when-playing, .motion-toggle[aria-pressed="false"] .when-paused { display: none; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Signup ---------- */
.signup { width: 100%; max-width: 560px; margin: 26px auto 0; padding: 18px 16px 14px; border-radius: var(--radius);
  background: rgba(11,13,18,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; }
.signup-title { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.signup-title small { display: block; margin-top: 6px; font: 600 .95rem/1.3 var(--ui); text-transform: none; letter-spacing: 0; color: var(--muted); }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.signup-form input[type="email"] { width: 100%; min-height: 52px; padding: 12px 16px; font: 600 1rem var(--ui); color: #fff;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.28); border-radius: 10px; }
.signup-form input[type="email"]::placeholder { color: #8e95a3; }
.signup-form input[type="email"]:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgba(255,214,10,.35); }
.signup-form input[aria-invalid="true"] { border-color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 10px;
  font: 400 1.35rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; }
.btn-punch { color: #000; background: var(--yellow); box-shadow: 0 5px 0 #a88a00, 0 10px 24px rgba(0,0,0,.4); transition: transform .08s, box-shadow .08s; }
.btn-punch:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 7px 0 #a88a00, 0 14px 28px rgba(0,0,0,.45); color: #000; }
.btn-punch:active { transform: translateY(4px); box-shadow: 0 1px 0 #a88a00; }
.btn-punch[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.4); font-size: 1.05rem; padding: 0 18px; min-height: 48px; background: transparent; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .86rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yellow); cursor: pointer; }
.consent.is-missing span { color: #ffb4ae; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-msg.is-error { color: #ffb4ae; }
.count { margin: 6px 0 0; font-weight: 800; color: var(--yellow); }
.signup-done { text-align: center; padding: 10px 0 4px; }
.signup-done strong { display: block; font: 400 clamp(1.6rem, 6vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; color: var(--yellow); letter-spacing: .02em; }
.signup-done p { margin: 8px 0 0; color: var(--muted); }
.signup-done:focus { outline: none; }

/* ---------- Ticker + stats ---------- */
.ticker { overflow: hidden; background: var(--red); color: #000; border-block: 3px solid #000; transform: rotate(-1.2deg) scale(1.03); margin: -6px 0 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { font: 400 clamp(1.2rem, 4.5vw, 1.8rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 12px 0; white-space: nowrap; }
.ticker span::after { content: '👊'; margin: 0 22px; font-size: .8em; }
@keyframes ticker { to { transform: translateX(-50%); } }
.stats { padding: 44px var(--gutter) 8px; }
.stats ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stats li { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stats strong { display: block; font: 400 clamp(2.2rem, 10vw, 3.4rem)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 1px #000; }
.stats span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- Sections ---------- */
.section-title { margin: 0 0 22px; font: 400 clamp(2rem, 8vw, 3.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.section-title span { color: var(--red); }
.section-title.small { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.kicker { margin: 0 0 6px; font: 800 .78rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.features, .reviews, .cta, .trailer { padding: 56px var(--gutter); max-width: 1180px; margin: 0 auto; }
.features .section-title { max-width: 18ch; }

/* ---------- Feature tiles ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s; }
.tile:hover { transform: translateY(-4px) rotate(-.3deg); border-color: rgba(255,59,48,.6); }
.tile > img, .trio img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-3); flex: none; }
.tile-body { padding: 16px 18px 20px; }
.tile h3 { margin: 0 0 8px; font: 400 clamp(1.5rem, 5.6vw, 1.9rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.tile p:not(.kicker) { margin: 0; color: var(--muted); }
.trio { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #000; }
.trio img { height: 100%; aspect-ratio: auto; }
.trio img:first-child { grid-row: span 2; aspect-ratio: 4 / 3; }

/* ---------- Reviews ---------- */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.quotes li { background: #fff; color: #000; border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 6px 6px 0 var(--red); }
.quotes li:nth-child(2n) { transform: rotate(.8deg); box-shadow: 6px 6px 0 var(--yellow); }
.quotes li:nth-child(2n+1) { transform: rotate(-.6deg); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { margin: 0; font: 400 1.5rem/1.1 var(--display); text-transform: uppercase; }
.stars { display: block; margin-top: 10px; color: #d08a00; letter-spacing: .1em; }
.quotes cite { display: block; font-style: normal; font-weight: 600; font-size: .88rem; color: #3b3f48; }
.fineprint { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }

/* ---------- Second CTA ---------- */
.cta { display: grid; gap: 28px; align-items: center; }
.cta-art img { width: min(100%, 330px); margin: 0 auto; border-radius: var(--radius); box-shadow: 0 0 0 3px #000, 10px 10px 0 var(--red), 0 30px 60px rgba(0,0,0,.6); transform: rotate(-2deg); }
.cta-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; max-width: 46ch; }
.cta .signup-form { max-width: 540px; }

/* ---------- Trailer ---------- */
.trailer { text-align: center; }
.yt { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--red), 0 30px 70px rgba(0,0,0,.6); }
.yt-facade, .yt iframe, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt img { object-fit: cover; transition: transform .4s ease, filter .3s; }
.yt-facade:hover img { transform: scale(1.03); filter: brightness(1.08); }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.25); filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); transition: transform .15s; }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.45); }
.yt-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.yt-link { margin: 18px 0 0; }
.yt-link .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; font: 700 1rem var(--ui); text-transform: none; letter-spacing: 0; }
.yt-link .btn strong { font: 400 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) max(36px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .9rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 14px 0; }
.footer nav a { color: #fff; }
.footer p { margin: 0; }

/* ---------- Reveal on scroll (only when JS has opted in) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .field-row { flex-direction: row; }
  .field-row input[type="email"] { flex: 1; }
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile-wide, .tile-bosses { grid-column: span 2; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile-wide { grid-column: span 2; }
  .tile-bosses { grid-column: span 1; }
  .tile-full { grid-column: span 3; }
  .tile-wide, .tile-full { flex-direction: row; }
  .tile-full { flex-direction: row-reverse; }
  .tile-wide > img, .tile-full > img { width: 58%; flex: none; aspect-ratio: 16 / 9; height: auto; align-self: stretch; }
  .tile-full > img { width: 50%; }
  .tile-wide .tile-body, .tile-full .tile-body { align-self: center; padding: 24px 28px; }
  .quotes { grid-template-columns: repeat(5, 1fr); }
  .quotes blockquote p { font-size: 1.35rem; }
  .cta { grid-template-columns: 5fr 7fr; gap: 48px; }
  .signup { padding: 22px 22px 16px; }
}

/* ---------- Reduced motion: poster instead of video, no animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .motion-toggle { display: none !important; }
  .ticker-track, .scroll-cue { animation: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker span:nth-child(n+8) { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn-punch, .yt img, .yt-play { transition: none; }
}

/* ---------- Text pages (privacy) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.doc h2 { margin: 32px 0 8px; font: 400 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--yellow); }
.doc p, .doc li { color: #dfe2e8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc code { background: var(--ink-3); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.doc-updated { color: var(--muted); margin-top: -12px; }
.doc-back { margin-top: 36px; }
.not-found { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px var(--gutter); }
.not-found .logo { font-size: clamp(4rem, 18vw, 8rem); }
.not-found p { color: var(--muted); font-size: 1.1rem; }

/* Phones: the reviews become a swipeable strip instead of a long stack. */
@media (max-width: 639px) {
  .quotes { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 4px 18px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quotes li { scroll-snap-align: center; }
}
