/* Home page only (the legal/support pages keep site.css).
   "Trailer" direction: dark cinematic page, game art edge to edge, title cards laid over the art. */
:root {
  --night: #0F1838;
  --ink: #15214B;
  --panel: #1A2858;
  --yellow: #FFD21F;
  --red: #E0261F;
  --glow: #3BE8FF;
  --white: #FFFFFF;
  --soft: #D3DCF5;
  --font: "Lato", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font: 400 1.125rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 24px 13px 18px; min-width: 200px;
  border: 3px solid var(--ink); border-radius: 16px;
  text-decoration: none; color: var(--ink);
  font-weight: 900; font-style: italic; font-size: 1.4rem; line-height: 1.05;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s;
}
.btn svg { width: 30px; height: 30px; flex: none; }
.btn small { display: block; font-style: normal; font-weight: 700; font-size: .88rem; margin-top: 3px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); }
.btn-white { background: var(--white); }
.note { font-size: .98rem; color: var(--soft); max-width: 46ch; margin-top: 16px; }
.note a { color: var(--yellow); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); }
.hero-img { width: 100%; }
.hero::after { /* night falls over the road so the title card reads */
  content: ""; position: absolute; inset: auto 0 0; height: 62%;
  background: linear-gradient(to top, var(--night) 0%, rgba(15, 24, 56, .85) 38%, rgba(15, 24, 56, 0) 100%);
  pointer-events: none;
}
.top {
  position: absolute; z-index: 3; inset: 0 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px clamp(16px, 3vw, 44px);
}
.brand img { width: clamp(120px, 12vw, 190px); filter: drop-shadow(0 6px 0 rgba(15, 24, 56, .35)); }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a {
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(15, 24, 56, .6); backdrop-filter: blur(6px);
}
.top nav a:hover { background: var(--night); }
.top nav .nav-cta { background: var(--yellow); color: var(--ink); font-weight: 900; font-style: italic; }
.top nav .nav-cta:hover { background: var(--white); }

.clock {
  position: absolute; z-index: 3; right: clamp(16px, 3vw, 44px); top: 92px;
  padding: 10px 18px; border-radius: 14px;
  background: rgba(15, 24, 56, .7); backdrop-filter: blur(6px);
  border: 2px solid var(--glow); box-shadow: 0 0 24px rgba(59, 232, 255, .35);
  font-weight: 700; font-size: .95rem;
}
.clock b { display: block; font-size: 2.3rem; font-weight: 900; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.clock.hurry { border-color: var(--red); box-shadow: 0 0 24px rgba(224, 38, 31, .5); }
.clock.hurry b { color: var(--red); }

.title {
  position: absolute; z-index: 3;
  left: clamp(16px, 3vw, 44px); right: clamp(16px, 3vw, 44px); bottom: clamp(24px, 3.5vw, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.title h1 { font-size: clamp(2.6rem, 5.6vw, 6rem); text-shadow: 0 4px 24px rgba(0, 0, 0, .45); max-width: 11ch; }
.title-copy p { margin-top: 14px; font-size: 1.2rem; color: var(--soft); max-width: 42ch; }
.title .note { margin-left: auto; text-align: right; max-width: 40ch; }
.title .btns { justify-content: flex-end; }

/* ---------- How a shift goes ---------- */
.shift { padding: 96px 0 104px; }
.intro { margin-top: 14px; font-size: 1.25rem; color: var(--soft); max-width: 52ch; }
.scenes { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scene figure { position: relative; margin: 0; }
.scene img { border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.stamp {
  position: absolute; left: 14px; top: 14px;
  font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 4px 14px;
}
.scene h3 { margin: 22px 0 6px; }
.scene p { color: var(--soft); max-width: 34ch; }

/* ---------- Modes ---------- */
.modes { padding: 24px 0 104px; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.mode {
  background: var(--panel); border-radius: 18px; padding: 30px 30px 32px;
  border-top: 6px solid var(--yellow);
}
.mode h3 { font-size: 2rem; margin-bottom: 10px; }
.mode p { color: var(--soft); }
.mode-free { border-top-color: var(--glow); }
.mode-daily { border-top-color: var(--red); }
.lengths { display: flex; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.lengths li { font-weight: 900; font-variant-numeric: tabular-nums; background: var(--night); border: 2px solid var(--yellow); color: var(--yellow); border-radius: 10px; padding: 4px 12px; }

/* ---------- World: an edge-to-edge reel ---------- */
.world { padding: 96px 0 100px; background: linear-gradient(180deg, var(--night), #142152 50%, var(--night)); }
.world-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.world-head p { font-size: 1.2rem; color: var(--soft); max-width: 48ch; }
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 640px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(16px, 3vw, 44px);
  padding: 44px clamp(16px, 3vw, 44px) 18px;
  scrollbar-color: var(--glow) transparent;
}
.reel { cursor: grab; }
.reel.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reel::-webkit-scrollbar { height: 8px; }
.reel::-webkit-scrollbar-track { background: rgba(211, 220, 245, .12); border-radius: 999px; margin-inline: clamp(16px, 3vw, 44px); }
.reel::-webkit-scrollbar-thumb { background: var(--glow); border-radius: 999px; }
.reel:focus-visible { outline-offset: -3px; }
.reel figure { margin: 0; scroll-snap-align: start; }
.reel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; margin-bottom: -16px; }
.reel-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--glow); border-radius: 50%; background: rgba(15, 24, 56, .7);
  color: var(--white); cursor: pointer; transition: background .12s, opacity .12s;
}
.reel-btn svg { width: 22px; height: 22px; }
.reel-btn:hover:not(:disabled) { background: var(--glow); color: var(--ink); }
.reel-btn:disabled { opacity: .35; cursor: default; }
.reel img { border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.reel figcaption { margin-top: 12px; font-weight: 700; }

/* ---------- Garage: full-bleed shot, title card on top ---------- */
.garage { position: relative; overflow: hidden; }
.garage-bg { width: 100%; }
.garage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, rgba(15, 24, 56, .88) 34%, rgba(15, 24, 56, 0) 62%);
  pointer-events: none;
}
.garage-card {
  position: absolute; z-index: 2; left: clamp(16px, 3vw, 44px); top: 50%; transform: translateY(-50%);
  width: min(520px, 40vw);
}
.garage-card h2 { color: var(--yellow); }
.garage-card > p { margin-top: 16px; font-size: 1.2rem; color: var(--soft); }
.parts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.parts li { font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--glow); background: rgba(15, 24, 56, .6); }

/* ---------- Closing banner ---------- */
.beta { position: relative; overflow: hidden; text-align: center; }
.beta-bg { width: 100%; filter: saturate(1.1); }
.beta::after { content: ""; position: absolute; inset: 0; background: rgba(15, 24, 56, .78); pointer-events: none; }
.beta-card { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; padding: 24px 16px; }
.beta h2 { font-size: clamp(3.4rem, 10vw, 8rem); color: var(--yellow); }
.beta-card > p { font-size: 1.3rem; margin-top: 14px; max-width: 40ch; }
.beta .btns { justify-content: center; margin-top: 30px; }
.beta .note { margin-inline: auto; }

/* ---------- Footer ---------- */
.foot { background: var(--night); border-top: 1px solid rgba(211, 220, 245, .15); color: var(--soft); padding: 28px 0; font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--yellow); text-decoration: underline; }

/* ---------- Tablet: title card leaves the art ---------- */
@media (max-width: 1100px) {
  .hero::after { display: none; }
  .title { position: static; flex-direction: column; align-items: stretch; gap: 26px; padding: 8px clamp(16px, 3vw, 44px) 48px; }
  .title .note { margin-left: 0; text-align: left; }
  .title .btns { justify-content: flex-start; }
  .garage-bg { display: none; }
  .garage::after { display: none; }
  .garage { background: url("/assets/shot_08_props.jpg") center / cover; }
  .garage-card { position: relative; transform: none; top: auto; left: auto; width: auto; margin: 0 16px; padding: 64px 0; }
  .garage-card { max-width: 560px; }
  .garage { padding: 0; }
  .garage::before { content: ""; position: absolute; inset: 0; background: rgba(15, 24, 56, .82); }
  .beta-bg { display: none; }
  .beta::after { display: none; }
  .beta { background: linear-gradient(rgba(15, 24, 56, .8), rgba(15, 24, 56, .8)), url("/assets/hero-2560.jpg") center / cover; }
  .beta-card { position: relative; padding: 88px 16px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .top { padding: 12px 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  .brand img { width: 108px; }
  .clock { display: none; }
  .title h1 { font-size: 2.6rem; }
  .btn { flex: 1 1 100%; }
  .shift, .world { padding: 64px 0; }
  .modes { padding: 8px 0 64px; }
  .scenes, .mode-row { grid-template-columns: 1fr; gap: 32px; }
  .mode-row { gap: 16px; }
  .world-head { grid-template-columns: 1fr; gap: 14px; }
  .reel { grid-auto-columns: 82vw; padding-top: 32px; }
  .foot .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
