/* ============ Delivery Kid — Calm pixel LP ============ */
:root {
  --bg: #0A0E2E;
  --bg-deep: #060924;
  --bg-card: #11163E;
  --ink: #FFF6DC;
  --ink-dim: #9AA5C8;
  --ink-mute: #6B7AA8;
  --line: #2B3470;
  --hot: #FF3D2E;
  --orange: #FF8A1A;
  --yellow: #FFD23F;
  --pink: #FF4DA6;
  --neon: #21D3F5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg-deep); color: var(--ink); }

/* CRT overlay: scanlines + vignette (always-on, very subtle) */
body::before,
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none;
}
body::before {
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.022) 2px 3px);
  z-index: 90;
}
body::after {
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.55);
  z-index: 91;
}
@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.5; }
}
body {
  font-family: 'DotGothic16', 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.75;
  letter-spacing: 0.03em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
button { font-family: inherit; cursor: pointer; }

.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: 0.04em; }
.mono  { font-family: 'VT323', monospace; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ============ Boot / Loading screen ============ */
body.booting { overflow: hidden; }
body.booting .scroll-progress,
body.booting .nav { opacity: 0; transition: opacity 0.4s ease; }
body.booting .hero-banner-img,
body.booting .hero-banner-ribbon { opacity: 0 !important; animation: none !important; }

.boot {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(33, 38, 100, 0.35) 0%, transparent 70%),
    var(--bg-deep);
  display: grid; place-items: center;
  font-family: 'Press Start 2P', monospace;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot.boot-done { opacity: 0; pointer-events: none; }

.boot-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 11% 22%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 23% 71%, rgba(255,210,63,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 18%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 84%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 36%, rgba(33,211,245,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 64%, rgba(255,255,255,.4) 50%, transparent 51%);
  animation: starDrift 60s linear infinite alternate;
}

.boot-frame {
  position: relative;
  width: min(580px, 88vw);
  padding: 52px 48px 44px;
  background: linear-gradient(180deg, rgba(17, 22, 62, 0.55), rgba(6, 9, 36, 0.85));
  border: 1px solid var(--line);
  box-shadow:
    0 0 80px rgba(0,0,0,0.6),
    inset 0 0 32px rgba(255, 210, 63, 0.04);
  overflow: hidden;
}
.boot-frame::before,
.boot-frame::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--yellow);
  pointer-events: none;
}
.boot-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.boot-frame::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.boot-ready .boot-frame { animation: bootFlash 0.55s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes bootFlash {
  0%, 100% {
    box-shadow: 0 0 80px rgba(0,0,0,0.6), inset 0 0 32px rgba(255, 210, 63, 0.04);
    filter: brightness(1);
  }
  25% {
    box-shadow: 0 0 160px rgba(255, 210, 63, 0.8), inset 0 0 100px rgba(255, 210, 63, 0.55);
    filter: brightness(1.35);
  }
}

.boot-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 210, 63, 0.05) 3px 4px);
  animation: scanDrift 0.6s linear infinite;
  mix-blend-mode: screen;
}

.boot-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}

.boot-tag {
  font-size: 9px; color: var(--ink-mute);
  letter-spacing: 0.22em;
  padding: 4px 10px;
  border: 1px solid var(--line);
}

.boot-brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 4px;
}
.boot-brand-en {
  font-size: clamp(20px, 4.6vw, 30px);
  color: var(--yellow);
  letter-spacing: 0.14em;
  text-shadow: 2px 2px 0 var(--orange), 0 0 22px rgba(255, 210, 63, 0.42);
  animation: bootGlitch 4.5s steps(2, jump-end) infinite;
}
.boot-brand-jp {
  font-family: 'DotGothic16', sans-serif;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
}
.boot-version {
  font-size: 9px; color: var(--ink-mute);
  letter-spacing: 0.18em;
  margin-top: 2px;
}

.boot-bar {
  width: 100%;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.boot-bar-track {
  position: relative;
  height: 14px;
  background: rgba(255, 246, 220, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
}
.boot-bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  box-shadow: 0 0 16px rgba(255, 210, 63, 0.55), inset 0 0 8px rgba(255, 255, 255, 0.22);
  transition: width 0.14s linear;
}
.boot-bar-fill::after {
  content: ''; position: absolute;
  right: -1px; top: -4px; bottom: -4px;
  width: 3px;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}
.boot-bar-ticks {
  position: absolute; inset: 0;
  display: flex; align-items: stretch; justify-content: space-between;
  pointer-events: none;
}
.boot-bar-ticks i {
  display: block;
  width: 1px;
  background: rgba(6, 9, 36, 0.5);
}
.boot-bar-ticks i:first-child,
.boot-bar-ticks i:last-child { background: transparent; }

.boot-bar-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
}
.boot-bar-meta .boot-bar-pct { color: var(--yellow); font-size: 10px; }

.boot-status {
  font-size: 10px; color: var(--ink-dim);
  letter-spacing: 0.2em;
  min-height: 22px;
  margin-top: 4px;
}
.boot-loading-text i {
  display: inline-block;
  font-style: normal;
  opacity: 0.25;
  animation: bootDots 1.2s infinite;
  padding-left: 2px;
}
.boot-loading-text i:nth-child(2) { animation-delay: 0.18s; }
.boot-loading-text i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bootDots {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}
.boot-go {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px rgba(255, 210, 63, 0.8);
  display: inline-block;
  animation: bootGo 0.55s cubic-bezier(0.3, 0.7, 0.4, 1);
}
@keyframes bootGo {
  0%   { transform: scale(0.6); opacity: 0; letter-spacing: 0.6em; }
  60%  { transform: scale(1.15); opacity: 1; letter-spacing: 0.25em; }
  100% { transform: scale(1); opacity: 1; letter-spacing: 0.3em; }
}

@keyframes bootGlitch {
  0%, 93%   { transform: none; text-shadow: 2px 2px 0 var(--orange), 0 0 22px rgba(255, 210, 63, 0.42); }
  93.5%     { transform: translate(-2px, 0); text-shadow: 2px 0 0 #FF4DA6, -2px 0 0 #21D3F5; }
  94%       { transform: translate(2px, -1px); }
  94.5%     { transform: translate(-1px, 1px); text-shadow: 2px 0 0 #21D3F5, -2px 0 0 #FF4DA6; }
  95%, 100% { transform: none; text-shadow: 2px 2px 0 var(--orange), 0 0 22px rgba(255, 210, 63, 0.42); }
}

@media (max-width: 600px) {
  .boot-frame { padding: 40px 28px 32px; }
  .boot-content { gap: 14px; }
}

/* ============ Motion: scroll progress + reveal + spotlight ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: rgba(255, 246, 220, 0.05);
  pointer-events: none;
}
.scroll-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.55);
  transition: width 0.08s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.9, 0.32, 1),
    transform 0.75s cubic-bezier(0.22, 0.9, 0.32, 1);
  transition-delay: calc(45ms * var(--reveal-i, 0));
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reduce-motion .reveal,
.reduce-motion .hero-banner-img,
.reduce-motion .hero-banner-ribbon {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Hero entrance */
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.035); filter: blur(2px); }
  to   { opacity: 1; transform: scale(1);     filter: blur(0); }
}
@keyframes ribbonSlide {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-banner-img { animation: heroFadeIn 1.3s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.hero-banner-ribbon { animation: ribbonSlide 0.9s 0.45s cubic-bezier(0.22, 0.9, 0.32, 1) both; }

/* Spotlight cursor halo */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 210, 63, 0.13),
    rgba(255, 138, 26, 0.07) 30%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.feature > *, .hazard > *, .mode > *, .garage-feature > *, .foot-official-link > * {
  position: relative; z-index: 1;
}

/* Keep image containers clipped (overflow only; no hover zoom) */
.shot, .mode-img, .garage-feature, .hazards-banner-img { overflow: hidden; }

/* Card hover lift */
.mode, .hazard, .feature, .garage-feature {
  transition: background 0.2s ease, transform 0.3s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-2px); }
.hazard:hover { transform: translateY(-2px); }

/* Nav scrolled state */
.nav { transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.nav.scrolled {
  background: rgba(6, 9, 36, 0.96);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
}
.nav-cta {
  position: relative; overflow: hidden;
}
.nav-cta::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.nav-cta:hover::after { left: 140%; }

/* ============ Background stars (very subtle, static) ============ */
.bg-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg-deep);
}
@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-22px, -10px, 0); }
}
.bg-stars::before {
  content: ""; position: absolute; inset: -20px; opacity: 0.55;
  animation: starDrift 90s linear infinite alternate;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1px 1px at 45% 30%, #FFD23F, transparent),
    radial-gradient(1px 1px at 67% 14%, #fff, transparent),
    radial-gradient(1px 1px at 82% 6%, #fff, transparent),
    radial-gradient(1px 1px at 92% 27%, #fff, transparent),
    radial-gradient(2px 2px at 18% 44%, #fff, transparent),
    radial-gradient(1px 1px at 35% 58%, #21D3F5, transparent),
    radial-gradient(1px 1px at 56% 72%, #fff, transparent),
    radial-gradient(1px 1px at 73% 82%, #fff, transparent),
    radial-gradient(1px 1px at 88% 64%, #FFD23F, transparent),
    radial-gradient(2px 2px at 8% 78%, #fff, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ============ Nav (calm) ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(6, 9, 36, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img.logo { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.brand-text .en { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--yellow); letter-spacing: 0.08em; }
.brand-text .jp { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.08em; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink); letter-spacing: 0.06em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-cta {
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: #060924;
  background: var(--yellow);
  padding: 12px 18px;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--orange); color: var(--ink); }

/* ============ Hero — wide banner ============ */
.hero {
  position: relative; z-index: 2;
  padding: 120px 0 80px;
}
.hero-banner {
  position: relative;
  aspect-ratio: 2048 / 768;
  max-height: 72vh;
  overflow: hidden;
  background: #060924;
  border: 1px solid var(--line);
}
.hero-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  image-rendering: auto;
}
.hero-banner-vignette {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 9, 36, 0.18) 0%, transparent 18%, transparent 72%, rgba(6, 9, 36, 0.92) 100%),
    radial-gradient(120% 80% at 50% 30%, transparent 55%, rgba(6, 9, 36, 0.45) 100%);
}

.hero-banner-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; gap: 14px; justify-content: center; align-items: center;
  padding: 12px 16px;
  background: rgba(6, 9, 36, 0.82);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; letter-spacing: 0.14em; color: var(--yellow);
}
.hero-banner-ribbon span:not(:nth-child(2n)) { color: var(--yellow); }
.hero-banner-ribbon span:nth-child(2n) { color: var(--ink-mute); }

/* Hero text below */
.hero-info {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-tagline h1 {
  font-family: 'DotGothic16', 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.6; color: var(--ink); letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.hero-tagline h1 .em { color: var(--yellow); }
.hero-tagline p {
  font-size: 17px; color: var(--ink-dim); line-height: 2;
  max-width: 580px;
}

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hero-stats .row {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats .row .k { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--ink-mute); letter-spacing: 0.08em; margin-bottom: 8px; display: block; }
.hero-stats .row .v { font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--ink); letter-spacing: 0.04em; }
.hero-stats .row .v.y { color: var(--yellow); }
.hero-stats .row .v.p { color: var(--pink); }

/* ============ Hero CTA — primary download button ============ */
.hero-cta {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 56px auto 0;
  padding: 22px 64px 24px;
  width: fit-content;
  max-width: 92%;
  background: var(--yellow);
  color: var(--bg-deep);
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 210, 63, 0.55);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 210, 63, 0.15),
    0 12px 36px -10px rgba(255, 210, 63, 0.55),
    inset 0 -3px 0 rgba(6, 9, 36, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
  animation:
    heroCtaEnter 0.9s 0.55s cubic-bezier(0.22, 0.9, 0.32, 1) both,
    ctaGlow 2.6s 1.6s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.hero-cta:hover {
  background: #FFE066;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 210, 63, 0.3),
    0 18px 48px -10px rgba(255, 210, 63, 0.75),
    inset 0 -3px 0 rgba(6, 9, 36, 0.18);
}
.hero-cta:active { transform: translateY(0); }

/* Caution-tape stripes on left/right edges */
.hero-cta::before,
.hero-cta::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(
    135deg,
    rgba(6, 9, 36, 0.82) 0 8px,
    transparent 8px 16px
  );
  pointer-events: none;
  z-index: 1;
}
.hero-cta::before { left: 0; }
.hero-cta::after { right: 0; transform: scaleX(-1); }

/* Shimmer that sweeps across on hover */
.hero-cta-shine {
  position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}
.hero-cta:hover .hero-cta-shine { left: 160%; }

.hero-cta-en {
  position: relative; z-index: 3;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(6, 9, 36, 0.72);
}
.hero-cta-jp {
  position: relative; z-index: 3;
  font-family: 'DotGothic16', 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.hero-cta-sub {
  position: relative; z-index: 3;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(6, 9, 36, 0.55);
  margin-top: 6px;
}

@keyframes heroCtaEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes ctaGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 210, 63, 0.15),
      0 12px 36px -10px rgba(255, 210, 63, 0.55),
      inset 0 -3px 0 rgba(6, 9, 36, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 210, 63, 0.3),
      0 14px 46px -6px rgba(255, 210, 63, 0.95),
      inset 0 -3px 0 rgba(6, 9, 36, 0.18);
  }
}

body.booting .hero-cta { opacity: 0 !important; animation: none !important; }

@media (max-width: 600px) {
  .hero-cta { margin-top: 40px; padding: 20px 48px 22px; }
  .hero-cta::before, .hero-cta::after { width: 16px; }
}

/* ============ Section base — calmer ============ */
section { position: relative; z-index: 2; padding: 100px 0; }

.sec-eyebrow {
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--yellow); letter-spacing: 0.15em;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-eyebrow svg { image-rendering: pixelated; shape-rendering: crispEdges; flex: none; }
.sec-eyebrow.center { display: flex; justify-content: center; }
.sec-title {
  font-family: 'DotGothic16', 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.sec-sub {
  font-size: 17px; color: var(--ink-dim); letter-spacing: 0.05em;
  margin-bottom: 56px; max-width: 680px; line-height: 2;
}

/* ============ About ============ */
.about { }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-visual {
  aspect-ratio: 816 / 624;
  overflow: hidden;
  background: #060924;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-copy .lead {
  font-size: 17.5px; line-height: 2.05; color: var(--ink); margin-bottom: 20px; letter-spacing: 0.05em;
}
.about-copy .lead .hot  { color: var(--orange); }

.about-meta {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255, 138, 26, 0.08);
  border-left: 3px solid var(--orange);
}
.about-meta p { font-size: 16px; color: var(--ink); letter-spacing: 0.05em; line-height: 1.85; }
.about-meta p strong { color: var(--yellow); font-weight: 700; }

/* ============ Modes — big image cards ============ */
.modes { }
.modes-list {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.mode {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: rgba(17, 22, 62, 0.5);
  overflow: hidden;
}
.mode:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
.mode:nth-child(even) .mode-img { order: 2; }

.mode-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #060924;
}
.mode-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mode-img .num {
  position: absolute; top: 18px; left: 18px;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--bg-deep); background: var(--yellow);
  padding: 6px 10px; letter-spacing: 0.08em;
  z-index: 2;
}

.mode-body {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.mode-body .label {
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: var(--yellow); letter-spacing: 0.12em; margin-bottom: 14px;
}
.mode-body h3 {
  font-family: 'DotGothic16', 'Press Start 2P', monospace;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400; color: var(--ink);
  margin-bottom: 16px; letter-spacing: 0.06em;
  line-height: 1.45;
}
.mode-body p {
  font-size: 16px; color: var(--ink-dim); line-height: 2.05; letter-spacing: 0.04em;
}

/* ============ Screenshots ============ */
.shots-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #060924;
}
.shot.large { grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, #060924 0%, #1c1f4a 60%, #2b2a3a 100%);
}
.shot .ph-card {
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.08em;
  text-align: center; padding: 14px 18px;
  background: rgba(0,0,0,0.4);
}
.shot .ph-card .k { color: var(--yellow); display: block; margin-bottom: 6px; font-size: 9px; }

.shot .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(6, 9, 36, 0.95), transparent);
  font-size: 13px; color: var(--ink); letter-spacing: 0.06em;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.shot .cap .num { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--yellow); }

/* ============ Hazards ============ */
.hazards {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 61, 46, 0.04) 50%, transparent 100%);
  border-top: 1px solid rgba(255, 61, 46, 0.18);
  border-bottom: 1px solid rgba(255, 61, 46, 0.18);
}
.hazards-marquee {
  position: absolute; top: 0; left: 0; right: 0; height: 28px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #FFD23F 0 14px, #060924 14px 28px);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  z-index: 3;
}
.hazards-marquee-track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--bg-deep); letter-spacing: 0.18em;
  background: var(--yellow);
  padding: 0 16px;
  animation: hazardScroll 28s linear infinite;
}
.hazards-marquee-track span { padding-right: 12px; }
@keyframes hazardScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hazards .container { padding-top: 28px; }

.hazards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hazard {
  padding: 24px 22px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 62, 0.3);
  transition: background 0.15s;
}
.hazard:hover { background: rgba(255, 61, 46, 0.08); }
.hazard-tag {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 61, 46, 0.35);
}
.hazard-tag .num { font-size: 18px; color: var(--hot); letter-spacing: 0.04em; }
.hazard-tag .lbl { font-size: 9px; color: var(--ink-mute); letter-spacing: 0.12em; }
.hazard h4 {
  font-family: 'DotGothic16', sans-serif;
  font-size: 16.5px; font-weight: 400; color: var(--ink);
  letter-spacing: 0.05em; margin-bottom: 12px; line-height: 1.55;
}
.hazard p {
  font-size: 14.5px; color: var(--ink-dim); line-height: 1.9; letter-spacing: 0.03em;
}

.hazards-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #060924;
  border: 1px solid rgba(255, 61, 46, 0.3);
  overflow: hidden;
}
.hazards-banner-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #060924; }
.hazards-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.hazards-banner-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 9, 36, 0) 70%, rgba(6, 9, 36, 0.9) 100%);
  pointer-events: none;
}
@keyframes scanDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 4px; }
}
.hazards-banner-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 61, 46, 0.08) 3px 4px);
  animation: scanDrift 0.6s linear infinite;
  pointer-events: none;
}
.hazards-banner-copy {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.warn-row {
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--hot); letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.warn-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 61, 46, 0.25);
  animation: warnPulse 1.1s ease-in-out infinite;
}
@keyframes warnPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 61, 46, 0); } }
.hazards-banner-copy h3 {
  font-family: 'DotGothic16', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 400;
  color: var(--ink); letter-spacing: 0.06em; line-height: 1.4;
  margin-bottom: 14px;
}
.hazards-banner-copy p {
  font-size: 16px; color: var(--ink-dim); line-height: 2; letter-spacing: 0.04em;
}

/* ============ Garage ============ */
.garage { }
.garage-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.garage-feature {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #060924;
  border: 1px solid var(--line);
}
.garage-feature img { width: 100%; height: 100%; object-fit: cover; }
.garage-feature-cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(6, 9, 36, 0.86);
  padding: 10px 14px;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; gap: 4px;
  border-left: 3px solid var(--yellow);
}
.garage-feature-cap span { font-size: 8px; color: var(--ink-mute); letter-spacing: 0.14em; }
.garage-feature-cap strong { font-size: 14px; color: var(--yellow); letter-spacing: 0.08em; }
.garage-feature-cap small { font-family: 'VT323', monospace; font-size: 14px; color: var(--ink); letter-spacing: 0.04em; }

.garage-list {
  border-top: 1px solid var(--line);
  background: rgba(17, 22, 62, 0.25);
}
.garage-row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1fr 0.8fr 1.4fr;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.garage-row:hover:not(.garage-row-head) { background: rgba(255, 138, 26, 0.06); }
.garage-row-head {
  background: rgba(6, 9, 36, 0.6);
}
.garage-row-head span {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--ink-mute); letter-spacing: 0.12em;
}
.garage-num { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }
.garage-en { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--ink); letter-spacing: 0.06em; }
.garage-jp { font-size: 16.5px; color: var(--ink-dim); letter-spacing: 0.04em; }
.garage-price {
  font-family: 'VT323', monospace; font-size: 24px; color: var(--yellow);
  letter-spacing: 0.04em;
}
.garage-price.free { color: var(--ink-mute); }
.garage-spec { font-size: 15px; color: var(--ink-dim); line-height: 1.7; letter-spacing: 0.03em; }
.garage-note {
  margin-top: 28px; padding: 18px 22px;
  font-size: 15px; color: var(--ink-dim); line-height: 1.9; letter-spacing: 0.04em;
  background: rgba(255, 138, 26, 0.06);
  border-left: 3px solid var(--orange);
}
.garage-note span { color: var(--orange); font-weight: 700; margin-right: 6px; }

/* ============ Features ============ */
.features { }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 62, 0.25);
  transition: background 0.15s;
}
.feature:hover { background: rgba(33, 211, 245, 0.06); }
.feature-tag {
  display: inline-block;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--bg-deep);
  background: var(--neon);
  padding: 6px 10px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.feature h3 {
  font-family: 'DotGothic16', sans-serif;
  font-size: 19px; font-weight: 400; color: var(--ink);
  letter-spacing: 0.05em; margin-bottom: 14px; line-height: 1.45;
}
.feature p {
  font-size: 15.5px; color: var(--ink-dim); line-height: 2; letter-spacing: 0.03em;
}

/* ============ Specs ============ */
.specs { }
.specs-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  align-items: start;
}
.sec-title.small {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 32px;
}
.kbd-list, .spec-list { list-style: none; padding: 0; }
.kbd-list li {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.kbd { display: inline-flex; gap: 6px; min-width: 130px; }
.kbd i {
  font-style: normal;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--ink);
  background: rgba(255, 246, 220, 0.06);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  min-width: 28px; text-align: center;
  letter-spacing: 0.04em;
}
.kbd-list li > span:last-child {
  font-size: 16px; color: var(--ink-dim); letter-spacing: 0.04em;
}
.specs-foot {
  margin-top: 20px;
  font-size: 14px; color: var(--ink-mute); letter-spacing: 0.04em; line-height: 1.75;
}

.spec-list li {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.spec-list li .k {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--yellow); letter-spacing: 0.12em;
}
.spec-list li .v {
  font-family: 'VT323', monospace; font-size: 20px;
  color: var(--ink); letter-spacing: 0.04em;
}

/* ============ Credits ============ */
.credits { padding-bottom: 60px; }
.credits-table {
  max-width: 760px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.cr-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.cr-k {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--yellow); letter-spacing: 0.12em;
}
.cr-dots {
  border-bottom: 1px dotted var(--ink-mute);
  height: 1px;
  position: relative; top: -4px;
}
.cr-v {
  font-family: 'DotGothic16', sans-serif;
  font-size: 16px; color: var(--ink); letter-spacing: 0.05em;
}

/* ============ Footer ============ */
footer { position: relative; z-index: 2; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.foot-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 15px; color: var(--ink-dim); line-height: 1.95; max-width: 340px; }
.foot-col h5 { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--yellow); letter-spacing: 0.12em; margin-bottom: 16px; }
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul li a { font-size: 15px; color: var(--ink-dim); letter-spacing: 0.04em; transition: color 0.15s; }
.foot-col ul li a:hover { color: var(--yellow); }

.foot-official-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 210, 63, 0.06);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.foot-official-link:hover {
  background: rgba(255, 210, 63, 0.12);
  border-color: var(--yellow);
  transform: translateY(-1px);
}
.foot-official-domain {
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: var(--yellow); letter-spacing: 0.06em;
}
.foot-official-name {
  font-size: 13px; color: var(--ink-dim); letter-spacing: 0.04em;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--ink-mute); letter-spacing: 0.1em;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hazards-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .garage-head { grid-template-columns: 1fr; gap: 32px; }
  .garage-row { grid-template-columns: 48px 1.1fr 1fr 0.9fr; }
  .garage-spec.hide-sm, .garage-row-head span.hide-sm { display: none; }
}
@media (max-width: 980px) {
  .hero-info, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .mode, .mode:nth-child(even) { grid-template-columns: 1fr; }
  .mode:nth-child(even) .mode-img { order: 0; }
  .mode-body { padding: 32px 28px; }
  .shots-grid { grid-template-columns: 1fr 1fr; }
  .shot.large { grid-row: span 1; aspect-ratio: 4/3; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hazards-banner { grid-template-columns: 1fr; }
  .hazards-banner-copy { padding: 32px 28px; }
  .hazards-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 72px 0; }
  .hero { padding-top: 96px; }
  .hero-banner { aspect-ratio: 4/3; }
  .hero-banner-ribbon { font-size: 8px; gap: 8px; padding: 8px 12px; }
  .hazards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .garage-row { grid-template-columns: 40px 1.1fr 0.9fr; padding: 14px 16px; }
  .garage-row .garage-jp { display: none; }
  .garage-price { font-size: 18px; }
  .credits-table { font-size: 12px; }
  .cr-row { grid-template-columns: 1fr; gap: 4px; }
  .cr-dots { display: none; }
}
