/* ==================================================================
   FFX Runner Remastered — landing page
   ================================================================== */
:root {
  --bg: #07090f;
  --bg2: #0c111b;
  --y: #ffd21e;
  --y2: #ffb000;
  --ink: #f6f3ea;
  --dim: rgba(246, 243, 234, .66);
  --faint: rgba(246, 243, 234, .4);
  --edge: rgba(255, 255, 255, .1);
  --glass: rgba(14, 19, 30, .66);
  --cond: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Saira", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--cond); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; margin: 0; }
h2 { font-size: clamp(38px, 5.4vw, 72px); }
h3 { font-size: 26px; }
.kicker { margin: 0 0 12px; font: 600 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--y); }
section { position: relative; padding: clamp(72px, 10vw, 140px) var(--pad); }
.sec-head { max-width: 1200px; margin: 0 auto clamp(32px, 4vw, 56px); }
.sec-sub { color: var(--dim); margin: 14px 0 22px; }

/* ---- nav ---- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; gap: 28px; padding: 12px var(--pad);
  background: linear-gradient(180deg, rgba(7,9,15,.9), rgba(7,9,15,.55)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 italic 20px var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.brand em { color: var(--y); font-style: italic; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }

/* ---- buttons ----
   The hero pair shares one shape and height (76px, same slant, same icon +
   two-line label); weight comes from the fill, not the size. */
.btn-play, .btn-ghost { position: relative; isolation: isolate; box-sizing: border-box; display: inline-flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 0 32px 0 20px; text-decoration: none; overflow: hidden;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), filter .2s, background .2s; }
.btn-play span, .btn-ghost span { display: grid; line-height: 1.05; }
.btn-play b, .btn-ghost b { font: 900 italic 30px var(--cond); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.btn-play small, .btn-ghost small { white-space: nowrap; }
.btn-play small, .btn-ghost small { font: 600 12px var(--sans); letter-spacing: .06em; }
.btn-play img, .btn-ghost .ico { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }

.btn-play { color: #160f00;
  background: linear-gradient(180deg, #fff6b8 0%, #ffe14a 22%, var(--y) 52%, var(--y2) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -3px 0 rgba(120,70,0,.35);
  filter: drop-shadow(0 10px 24px rgba(255,180,0,.35)); animation: playGlow 2.8s ease-in-out infinite; }
.btn-play small { color: rgba(22,15,0,.72); }
.btn-play img { filter: drop-shadow(0 2px 2px rgba(80,40,0,.35)); }
/* moving sheen + a fixed specular band across the top */
.btn-play::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 46%); }
.btn-play::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: translateX(-140%) skewX(-18deg); animation: sheen 3.4s cubic-bezier(.5,0,.3,1) infinite; mix-blend-mode: soft-light; }
.btn-play:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 14px 34px rgba(255,180,0,.6)) brightness(1.04); }
.btn-play:hover::after { animation-duration: 1.1s; }
.btn-play:active { transform: translateY(0) scale(.99); }
@keyframes sheen { 0%, 55% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes playGlow { 50% { filter: drop-shadow(0 12px 32px rgba(255,190,0,.55)); } }

.btn-ghost { color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); }
.btn-ghost small { color: var(--dim); }
.btn-ghost .ico { display: grid; place-items: center; color: var(--y); }
.btn-ghost .ico svg { width: 30px; height: 30px; }
.btn-ghost:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,210,30,.22), rgba(255,210,30,.06));
  box-shadow: inset 0 0 0 1px rgba(255,210,30,.6), inset 0 1px 0 rgba(255,255,255,.3); }

/* label: a small caption above the big word, both on the button's slant so
   their left edges line up (an upright caption under an italic word drifted) */
.btn-play .lbl, .btn-compare .lbl { display: grid; gap: 3px; transform: skewX(-8deg); }
.btn-play .lbl small, .btn-compare .lbl small { font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.btn-play .lbl b, .btn-compare .lbl b { font-style: normal; }
.btn-play { padding: 0 22px 0 30px; gap: 22px; }
.btn-play .go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-left: auto;
  background: #160f00; box-shadow: 0 0 0 3px rgba(22,15,0,.12); transition: transform .2s; }
.btn-play .go svg { width: 18px; height: 18px; fill: var(--y); margin-left: 3px; }
.btn-play:hover .go { transform: translateX(4px); }

/* compare: a then/now split thumbnail instead of an icon */
.btn-compare { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; gap: 18px; min-height: 76px;
  padding: 0 30px 0 14px; text-decoration: none; color: var(--ink);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background: linear-gradient(180deg, rgba(14,18,28,.82), rgba(14,18,28,.6));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .2s; }
.btn-compare .lbl b { font: 900 26px var(--cond); text-transform: uppercase; white-space: nowrap; }
.btn-compare .lbl small { color: var(--y); }
.btn-compare .thumb { position: relative; width: 88px; height: 52px; flex: 0 0 88px; overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn-compare .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-compare .t-then { filter: grayscale(.6) contrast(.9); }
.btn-compare .t-now { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%); transition: clip-path .5s cubic-bezier(.5,0,.2,1); }
.btn-compare .thumb::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 50%; width: 2px; background: var(--y);
  transform: rotate(10deg); box-shadow: 0 0 8px rgba(255,210,30,.9); transition: left .5s cubic-bezier(.5,0,.2,1); }
.btn-compare:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,210,30,.6); }
.btn-compare:hover .t-now { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.btn-compare:hover .thumb::after { left: 6%; }

.btn-play.sm { min-height: 0; padding: 8px 20px; animation: none; }
.btn-play.sm, .btn-play.sm b { font: 800 italic 18px var(--cond); text-transform: uppercase; }
.btn-play.sm::after { animation-duration: 5s; }
@media (prefers-reduced-motion: reduce) { .btn-play, .btn-play::after { animation: none; } .btn-play::after { display: none; } }

/* ---- hero ---- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 110px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: drift 22s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,9,15,.94) 0%, rgba(7,9,15,.72) 38%, rgba(7,9,15,.1) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,9,15,0) 30%), linear-gradient(180deg, rgba(7,9,15,.6), rgba(7,9,15,0) 20%); }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.speedlines { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(255,255,255,.05) 46px 48px); mask: linear-gradient(90deg, transparent 40%, #000 100%);
  -webkit-mask: linear-gradient(90deg, transparent 40%, #000 100%); animation: lines 1.2s linear infinite; }
@keyframes lines { to { background-position: -94px 0; } }
.hero-in { max-width: 1200px; width: 100%; margin: 0 auto; }
.logo { display: flex; flex-direction: column; transform: skewX(-4deg); transform-origin: left; }
.logo .ffx { font-size: clamp(84px, 15vw, 210px); line-height: .8;
  background: linear-gradient(180deg, #fff 0%, #dbe3ee 38%, #7a8797 52%, #f2f6fb 70%, #a9b3bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0b0f17) drop-shadow(0 16px 30px rgba(0,0,0,.6));
  /* background-clip:text only paints inside the box; the italic X overhangs it */
  padding: .08em .16em .02em .04em; margin: -.08em -.16em -.02em -.04em; }
.logo .runner { font-size: clamp(66px, 12vw, 170px); line-height: .82; color: var(--y); margin-top: -.04em;
  -webkit-text-stroke: 4px #1b1300; paint-order: stroke fill; text-shadow: 0 6px 0 #8a5a00, 0 18px 40px rgba(255,180,0,.35); }
.logo-wrap { display: inline-flex; flex-direction: column; }
.logo-sub { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding-left: .55em; font: 700 16px var(--sans); letter-spacing: .55em; text-transform: uppercase; }
.logo-sub::before, .logo-sub::after { content: ""; width: 44px; height: 2px; background: linear-gradient(90deg, transparent, var(--y)); }
.logo-sub::after { background: linear-gradient(90deg, var(--y), transparent); }
.lede { max-width: 540px; margin: 28px 0 34px; font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); }
.lede strong { color: var(--ink); }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: max-content; max-width: 100%; }  /* equal columns = equal buttons */
@media (max-width: 700px) { .cta-row { grid-template-columns: 1fr; width: 100%; } .btn-play b, .btn-ghost b { font-size: 26px; } .btn-compare .lbl b { font-size: 22px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--y); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } }

/* ---- features ---- */
.feat-grid { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.feat { padding: 26px 26px 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 50%), var(--bg2);
  box-shadow: inset 0 0 0 1px var(--edge); transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,210,30,.45), 0 24px 50px rgba(0,0,0,.4); }
.feat img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.feat p { margin: 10px 0 0; color: var(--dim); font-size: 16px; }

/* ---- then / now ---- */
.then-now { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.compare { --pos: 50%; position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px var(--edge); user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-then img { filter: saturate(.95) contrast(1.02); image-rendering: pixelated; }
.c-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--y); pointer-events: none; box-shadow: 0 0 20px rgba(255,210,30,.8); }
.c-handle::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 12px; border-radius: 999px;
  background: var(--y); color: #160f00; font: 900 13px var(--sans); letter-spacing: .2em; white-space: nowrap; }
.c-tag { position: absolute; top: 18px; padding: 6px 12px; border-radius: 8px; font: 800 italic 18px var(--cond); text-transform: uppercase; background: rgba(7,9,15,.7); pointer-events: none; }
.c-tag-then { left: 18px; } .c-tag-now { right: 18px; color: var(--y); }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 0;
  padding-inline: max(var(--pad), calc((100% - 1200px) / 2)); background: var(--bg2); }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge); aspect-ratio: 16/9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font: 800 italic 20px var(--cond); text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.8); }

/* ---- garage ---- */
.car-row { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.car-card { position: relative; padding: 18px 18px 20px; border-radius: 20px; background: radial-gradient(120% 70% at 50% 0%, rgba(255,210,30,.12), transparent 60%), var(--bg2);
  box-shadow: inset 0 0 0 1px var(--edge); transition: transform .25s, box-shadow .25s; }
.car-card[data-drive="RWD"] { background: radial-gradient(120% 70% at 50% 0%, rgba(255,90,60,.14), transparent 60%), var(--bg2); }
.car-card[data-drive="AWD"] { background: radial-gradient(120% 70% at 50% 0%, rgba(58,160,255,.16), transparent 60%), var(--bg2); }
.car-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: inset 0 0 0 1px rgba(255,210,30,.4), 0 24px 50px rgba(0,0,0,.45); }
.car-card img { width: 100%; height: 130px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0,0,0,.55)); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.car-card:hover img { transform: translateX(6px) scale(1.04); }
.car-meta { margin-top: 12px; }
.drive { display: inline-block; padding: 2px 9px; border-radius: 6px; font: 800 italic 13px var(--cond); letter-spacing: .12em; color: #0b0f17; background: var(--y); }
.car-card[data-drive="RWD"] .drive { background: #ff6a4a; color: #fff; }
.car-card[data-drive="AWD"] .drive { background: #3aa0ff; color: #fff; }
.lock { margin-left: 8px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.car-meta h3 { margin-top: 8px; font-size: 30px; }
.car-meta p { margin: 6px 0 12px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.car-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; align-items: center; }
.car-meta dt { font: 600 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.car-meta dd { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; transform: skewX(-14deg); }
.car-meta dd i { height: 7px; border-radius: 2px; background: rgba(255,255,255,.1); }
.car-meta dd i.on { background: var(--y); }

/* ---- leaderboard ---- */
.board { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.board-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: p; }
.board-list li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--edge); counter-increment: p; }
.board-list li::before { content: counter(p); font: 900 italic 28px var(--cond); color: var(--faint); text-align: center; }
.board-list li:nth-child(1) { background: linear-gradient(90deg, rgba(255,210,30,.16), rgba(255,255,255,.03)); }
.board-list li:nth-child(1)::before { color: var(--y); }
.board-list li:nth-child(2)::before { color: #e1e7ef; } .board-list li:nth-child(3)::before { color: #e09a5a; }
.board-list .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .c { font-size: 13px; color: var(--dim); }
.board-list .t { font: 900 italic 24px var(--cond); color: var(--y); font-variant-numeric: tabular-nums; }
.board-list li.empty { display: block; color: var(--dim); text-align: center; }
.board-list li.empty::before { content: none; }

/* ---- controls ---- */
.keys { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; }
.keys span { display: flex; gap: 6px; }
kbd { min-width: 34px; padding: 5px 9px; border-radius: 8px; text-align: center; font: 700 14px/1.2 var(--sans); color: var(--ink);
  background: linear-gradient(180deg, #3a4354, #222936); box-shadow: inset 0 -3px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); }
.hint { max-width: 1200px; margin: 24px auto 0; color: var(--dim); }
.green { color: #39ff6a; }

/* ---- tech ---- */
.tech { background: var(--bg2); }
.tech-grid { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tech-grid li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--dim); transition: color .2s, background .2s, box-shadow .2s; }
.tech-grid li:hover { color: var(--ink); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,210,30,.35); }
.tech-grid svg { width: 34px; height: 34px; flex: 0 0 34px; }
.tech-grid .wordmark { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: currentColor; }
.tech-grid .wordmark { font-size: 0; position: relative; }
.tech-grid .wordmark::after { content: attr(data-l); font: 900 italic 22px var(--cond); color: var(--bg2); }
.tech-grid li span:last-child { display: grid; line-height: 1.2; }
.tech-grid b { color: var(--ink); font: 800 italic 19px var(--cond); text-transform: uppercase; }
.tech-grid small { font-size: 12px; letter-spacing: .06em; }

/* ---- about / faq ---- */
.about-in { max-width: 860px; margin: 0 auto; }
.about-in h2 { margin-bottom: 22px; }
.about-in p { color: var(--dim); }
.about-in strong, .about-in em { color: var(--ink); }
details { border-top: 1px solid var(--edge); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--edge); }
summary { cursor: pointer; font: 800 italic 22px var(--cond); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--y); }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; }
.credits { margin-top: 28px; font-size: 14px; }

.final-cta { text-align: center; display: grid; justify-items: center; gap: 26px;
  background: radial-gradient(60% 80% at 50% 100%, rgba(255,210,30,.18), transparent 70%), var(--bg); }
.final-cta h2 { font-size: clamp(48px, 8vw, 120px); color: #39ff6a; text-shadow: 0 0 40px rgba(57,255,106,.4); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 26px var(--pad); border-top: 1px solid var(--edge); color: var(--faint); font-size: 14px; }
.foot span { margin-right: auto; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot .foot-attr { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.6; }
.foot .foot-attr a { text-decoration: underline; text-underline-offset: 2px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-bg img, .speedlines, .scroll-cue span { animation: none; } }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-play.sm { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
  .board-in { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(7,9,15,.4), rgba(7,9,15,.9) 60%, var(--bg)); }
}

/* narrow screens: REMASTERED must not be wider than the logo (it centres under
   the logo block, which it would otherwise widen), and the nav stays one line */
@media (max-width: 560px) {
  .logo-sub { font-size: 12px; letter-spacing: .34em; gap: 10px; padding-left: .34em; }
  .logo-sub::before, .logo-sub::after { width: 22px; }
  .btn-play.sm { white-space: nowrap; padding: 8px 14px; }
  .btn-play.sm, .btn-play.sm b { font-size: 16px; }
}

/* ---- v2.5 landing ---- */
.yellow { color: var(--y); }
.feat { position: relative; }
.feat .tag-new { position: absolute; top: 22px; right: 22px; padding: 3px 10px; font: 800 italic 13px var(--cond); letter-spacing: .08em;
  text-transform: uppercase; color: #160f00; background: var(--y); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.feat.new { box-shadow: inset 0 0 0 1px rgba(255,210,30,.35); }

/* hero reel: the still loads first; the in-game reel fades in over it once it plays */
.hero-bg .hero-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0; transition: opacity 1.2s ease; }
.hero-bg.playing .hero-reel { opacity: 1; }
.hero-bg.playing img { animation: none; }
.reel-sound { position: absolute; right: var(--pad); bottom: 28px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px; border: 0; border-radius: 999px; cursor: pointer; color: var(--ink);
  font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(10,13,20,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reel-sound:hover { box-shadow: inset 0 0 0 1px rgba(255,210,30,.7); }
.reel-sound .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.reel-sound .eq i { width: 3px; height: 4px; background: var(--y); border-radius: 1px; }
.reel-sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.reel-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.reel-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
@media (max-width: 700px) { .reel-sound { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .hero-bg .hero-reel { display: none; } }
