/* Hay Bales Heat — site styles. */
@font-face {
  font-family: 'Heat Pixel';
  src: url('../fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spartan';
  src: url('../fonts/LeagueSpartan-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b1636;
  --navy-2: #13224a;
  --night: #070d22;
  --sky: #2772ce;
  --lime: #d4ff15;
  --lime-edge: #8fb000;
  --white: #ffffff;
  --soft: #b9c4e4;
  --pixel: 'Heat Pixel', ui-monospace, monospace;
  --body: 'Spartan', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--navy); color: var(--white); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--lime); color: var(--navy); font: 12px/1 var(--pixel); text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px 4px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--lime); color: var(--navy); text-decoration: none;
  font: 13px/1 var(--pixel); letter-spacing: .02em;
  box-shadow: 0 6px 0 var(--lime-edge), inset 0 2px 0 rgba(255, 255, 255, .5);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lime-edge), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lime-edge); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { min-height: 40px; padding: 0 16px 3px; font-size: 11px; border-radius: 10px; }
.btn--ghost { background: rgba(11, 22, 54, .55); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: 0 8px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px #fff; }
.btn--ghost:active { box-shadow: 0 1px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px #fff; }

.store {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px 4px 16px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none;
  font: 13px/1 var(--pixel);
  box-shadow: 0 6px 0 #2a2f45, inset 0 0 0 2px rgba(255, 255, 255, .22);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #2a2f45, inset 0 0 0 2px rgba(255, 255, 255, .45); }
.store:active { transform: translateY(5px); box-shadow: 0 1px 0 #2a2f45, inset 0 0 0 2px rgba(255, 255, 255, .45); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; margin-bottom: 7px; font: 500 12px/1 var(--body); letter-spacing: .02em; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(11, 22, 54, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav__brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font: 11px/1 var(--pixel); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.nav__links a:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 640px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1080px; overflow: hidden; background: #72b2f1 url('/media/hero-poster.jpg') center / cover; }
.hero__video { position: absolute; inset: 0; }
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.hero__video video + video { opacity: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 54, .35) 0%, rgba(11, 22, 54, 0) 30%, rgba(11, 22, 54, 0) 62%, rgba(11, 22, 54, .55) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 92px var(--gutter) 0; text-align: center; }
.hero h1 { margin: 0; }
.hero__logo { width: min(420px, 74vw); filter: drop-shadow(0 8px 0 rgba(11, 22, 54, .25)); }
/* Landscape screens: copy on the left so Sunny stays in view in the middle. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4), (min-width: 600px) and (min-aspect-ratio: 3/2) {
  .hero__content { height: 100%; width: min(560px, 46vw); align-items: flex-start; justify-content: center; padding: 72px 0 40px var(--gutter); text-align: left; }
  .hero__content .actions { justify-content: flex-start; }
  .hero__logo { width: clamp(300px, 30vw, 560px); }
  .hero::after { background: linear-gradient(90deg, rgba(11, 22, 54, .45) 0%, rgba(11, 22, 54, .1) 40%, rgba(11, 22, 54, 0) 55%), linear-gradient(180deg, rgba(11, 22, 54, .3) 0%, rgba(11, 22, 54, 0) 20%); }
}
.hero__tag { margin: 0; font: 14px/1.7 var(--pixel); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.motion { position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; padding: 8px 10px; border: 0; border-radius: 8px; background: rgba(11, 22, 54, .5); font: 9px/1 var(--pixel); cursor: pointer; }
.motion:hover { background: rgba(11, 22, 54, .8); }
/* Portrait: keep the footage at a natural scale along the bottom and continue the game's sky above it. */
@media (max-aspect-ratio: 5/4) {
  .hero { background: linear-gradient(180deg, #3f86d8 0%, #589ce4 55%); }
  .hero__video { inset: auto auto 0 50%; height: min(58%, 150vw); aspect-ratio: 16 / 9; transform: translateX(-50%); background: url('/media/hero-poster.jpg') center / cover; }
  .hero__video::after { content: ''; position: absolute; inset: 0 0 auto; height: 18%; background: linear-gradient(#589ce4, rgba(88, 156, 228, 0)); z-index: 1; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 22, 54, .25), rgba(11, 22, 54, 0) 25%); }
}
@media (max-width: 640px) {
  .hero__content { gap: 16px; }
  .hero__tag { font-size: 11px; }
  .hero .actions { flex-wrap: nowrap; gap: 10px; }
  .hero .store { min-height: 50px; padding: 0 12px 4px 10px; gap: 8px; font-size: 10px; }
  .hero .store svg { width: 20px; height: 20px; }
  .hero .store small { font-size: 10px; margin-bottom: 6px; }
  .hero .btn--ghost { min-height: 44px; font-size: 11px; }
}
@media (max-width: 360px) { .hero .store { font-size: 9px; padding: 0 10px 4px 8px; } .hero .store svg { width: 18px; height: 18px; } }
/* Short landscape phones. */
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  .hero { min-height: 380px; }
  .hero__content { gap: 12px; padding-top: 64px; }
  .hero__logo { width: min(240px, 30vw); }
  .hero__tag { font-size: 10px; }
  .hero .store { min-height: 44px; padding: 0 12px 3px 10px; font-size: 10px; }
  .hero .store small { font-size: 10px; margin-bottom: 5px; }
  .hero .store svg { width: 20px; height: 20px; }
  .hero .btn--ghost { min-height: 40px; font-size: 10px; }
}

/* ---------- Sections ---------- */
.section { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0 0; text-align: center; }
.title { margin: 0; font: clamp(22px, 3vw, 32px)/1.3 var(--pixel); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.sub { margin: 16px auto 0; max-width: 46ch; color: var(--soft); font-size: 18px; }

.screen { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px var(--navy-2), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen.is-playing video { object-fit: contain; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--lime); color: var(--navy); box-shadow: 0 6px 0 var(--lime-edge), 0 20px 40px rgba(0, 0, 0, .45); transition: transform .15s var(--ease), opacity .3s; }
.play svg { width: 38px; height: 38px; margin-left: 6px; }
.play:hover { transform: translate(-50%, -52%) scale(1.04); }
.screen.is-playing .play { opacity: 0; pointer-events: none; }

/* ---------- Shoes ---------- */
.shoes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 44px; text-align: left; }
.shoe-card { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #e6eefb 60%, #cfdcf3 100%); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--navy-2), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.shoe-card__img { width: 78%; image-rendering: pixelated; filter: drop-shadow(0 18px 14px rgba(11, 22, 54, .3)); transition: opacity .2s, transform .4s var(--ease); }
.shoe-card__img.is-swapping { opacity: 0; transform: translateY(10px) scale(.95); }
.shoe-info h3 { margin: 0; font: clamp(20px, 2.6vw, 28px)/1.3 var(--pixel); }
.shoe-ability { margin: 18px 0 0; font: 12px/1.6 var(--pixel); color: var(--lime); }
.shoe-desc { margin: 10px 0 0; color: var(--soft); max-width: 36ch; }
.shoe-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.shoe-rail { display: flex; justify-content: center; gap: 10px; margin-top: 36px; padding: 4px 2px 10px; overflow-x: auto; scrollbar-width: none; }
.shoe-rail::-webkit-scrollbar { display: none; }
.shoe-pick { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border: 0; border-radius: 16px; cursor: pointer; background: var(--navy-2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); transition: transform .2s var(--ease), background .2s; }
.shoe-pick img { width: 70px; image-rendering: pixelated; }
.shoe-pick:hover { transform: translateY(-3px); }
.shoe-pick[aria-pressed='true'] { background: #fff; box-shadow: 0 4px 0 var(--lime), inset 0 0 0 2px var(--lime); }
@media (max-width: 760px) {
  .shoes { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .shoe-card { max-width: 420px; width: 100%; margin: 0 auto; }
  .shoe-desc { margin-inline: auto; }
  .shoe-links { justify-content: center; }
  .shoe-rail { justify-content: flex-start; }
}

/* ---------- Download ---------- */
.download { position: relative; margin-top: clamp(80px, 11vw, 140px); }
.download__art { width: 100%; aspect-ratio: 1434 / 660; object-fit: cover; }
.download__bar { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px var(--gutter) 56px; background: var(--navy); }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 36px var(--gutter); background: var(--night); color: var(--soft); font-size: 15px; }
.footer__aether img { height: 22px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { width: 100%; margin: 0; font-size: 13px; color: #7581a6; }
@media (max-width: 640px) { .footer__links { margin-left: 0; } }

/* ---------- Legal / support pages ---------- */
.nav.is-doc { background: var(--navy); }
.doc-head { padding: 140px var(--gutter) 56px; background: var(--sky); text-align: center; }
.doc-head h1 { margin: 0; font: clamp(17px, 5.6vw, 40px)/1.3 var(--pixel); overflow-wrap: anywhere; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.doc-head p { margin: 18px auto 0; max-width: 52ch; font-size: 18px; }
.doc { background: #fff; color: #1d2747; padding: 56px var(--gutter) 96px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: var(--max); margin: 0 auto; align-items: start; }
.doc__toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 15px; }
.doc__toc a { padding: 7px 10px; border-radius: 8px; color: #4a5578; text-decoration: none; }
.doc__toc a:hover, .doc__toc a.is-active { background: #eef3fc; color: var(--navy); }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 0 0 .6em; font: 15px/1.5 var(--pixel); color: var(--navy); scroll-margin-top: 90px; }
.prose section + section { margin-top: 3em; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 19px; color: var(--navy); }
.prose a { color: #0b63c4; text-underline-offset: 3px; }
.prose li { margin: .35em 0; }
.prose .meta { margin: 0 0 2.4em; font: 10px/1.5 var(--pixel); color: #6b7699; }
.callout { margin: 1.4em 0; padding: 18px 20px; border-radius: 14px; background: #f3f7fd; border-left: 4px solid var(--sky); }
.callout p { margin: .4em 0 0; }
.callout p:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 1.2em 0; }
.card { display: block; padding: 20px; border-radius: 14px; background: #f3f7fd; text-decoration: none; color: inherit !important; }
.card:hover { background: #e7effb; }
.card b { display: block; font: 12px/1.5 var(--pixel); color: var(--navy); }
.card span { display: block; margin-top: 8px; font-size: 15px; color: #4a5578; line-height: 1.45; }
details.faq { border-bottom: 1px solid #e3e8f2; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font: 14px/1 var(--pixel); color: var(--sky); }
details.faq[open] summary::after { content: '−'; }
details.faq > div { padding: 0 0 16px; }
details.faq > div p:first-child { margin-top: 0; }
@media (max-width: 860px) { .doc .wrap { grid-template-columns: 1fr; gap: 24px; } .doc__toc { position: static; display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; text-align: center; background: linear-gradient(180deg, #3f86d8, #589ce4); }
.lost img { width: min(360px, 76vw); }
