/* Naschkater Studios: the "night highway" look. Colours are taken from the
   game's own UI (scripts/ui/ui_kit.gd) and the boot splash's sky shader. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("fonts/chakra-petch-medium.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-semibold.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("fonts/chakra-petch-bold.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: italic; font-display: swap; src: url("fonts/chakra-petch-bolditalic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --night: #0e0b1f;
  --night-2: #151129;
  --card: #1d1838;
  --card-hi: #29234d;
  --line: rgba(189, 194, 230, 0.16);
  --ink: #ffffff;
  --muted: #bdc2e6;
  --yellow: #ffc43d;
  --pink: #ff6bd6;
  --cyan: #73e6ff;
  --sky-top: #120f33;
  --sky-mid: #571f75;
  --sky-low: #e6524c;
  --sky-horizon: #ff9e4c;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffd978; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---- Header ---- */
.top { position: absolute; z-index: 10; top: 0; left: 0; right: 0; }
.top.solid { position: relative; background: var(--night-2); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.brand img { height: 30px; width: auto; }
.brand:hover { color: var(--ink); }
.home .brand span { display: none; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:hover { color: var(--ink); }
.lang { margin-left: auto; display: flex; gap: 2px; font-family: var(--display); font-weight: 600; font-size: 14px; }
.nav + .lang { margin-left: 0; }
.lang a, .lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang span { color: var(--night); background: var(--ink); }
.lang a:hover { color: var(--ink); }
@media (min-width: 720px) { .nav { display: flex; } }

/* ---- The night-highway scene ---- */
.scene { position: relative; overflow: hidden; height: 100svh; min-height: 640px; max-height: 1000px; background: #15121f; --horizon: 54%; }
.sky { position: absolute; left: 0; right: 0; top: 0; height: var(--horizon);
  background: linear-gradient(to bottom, var(--sky-top) 0%, #2a1550 30%, var(--sky-mid) 58%, var(--sky-low) 88%, var(--sky-horizon) 100%); }
.stars { position: absolute; inset: 0 0 45% 0; opacity: 0.8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 37% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 48%, #fff 50%, transparent 51%);
  background-size: 420px 300px; }
.sun { position: absolute; left: 50%; bottom: -10%; width: min(48vw, 300px, 30svh); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(to bottom, #fff07f 0%, #ffd25c 35%, #ff8a4c 70%, #ff5c5c 100%);
  box-shadow: 0 0 120px 40px rgba(255, 115, 82, 0.45);
  -webkit-mask: linear-gradient(to bottom, #000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67.5%, #000 67.5% 74%, transparent 74% 79.5%, #000 79.5%);
          mask: linear-gradient(to bottom, #000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67.5%, #000 67.5% 74%, transparent 74% 79.5%, #000 79.5%); }
.far, .city { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: no-repeat; background-position: center bottom; background-size: cover; }
.far { height: 30%; left: -4%; right: -4%; background-image: url("img/far.webp"); }
.city { height: 22%; background-image: url("img/city.webp"); }
.haze { position: absolute; left: 0; right: 0; bottom: -1px; height: 10%; background: linear-gradient(to bottom, transparent, rgba(255, 158, 76, 0.35)); }
.ground { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; background: linear-gradient(to bottom, #3a1f4d, #1a1528 45%, #15121f); }
@media (min-aspect-ratio: 1/1) { .scene { --horizon: 58%; } .sun { bottom: -16%; } }
.ground canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.car { position: absolute; left: 50%; bottom: 7%; width: min(56vw, 300px, 30svh); transform: translateX(-50%); }
.car .shadow { position: absolute; left: -10%; width: 120%; bottom: -9%; opacity: 0.9; }
.car .body { position: relative; animation: idle 2.4s ease-in-out infinite; }
.car::after { content: ""; position: absolute; left: 10%; right: 10%; top: 55%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 214, 0.45), transparent); filter: blur(12px); z-index: -1; }
@keyframes idle { 50% { transform: translateY(-1.5px); } }

.scene-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: max(84px, 11svh) var(--gutter) 0; }
.scene-copy .logo { width: min(44vw, 210px, 22svh); height: auto; filter: drop-shadow(0 6px 24px rgba(18, 15, 51, 0.6)); }
.scene-copy .tag { margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2.4vw, 20px); letter-spacing: 0.08em; text-transform: uppercase; color: #ffe9f3; text-shadow: 0 2px 12px rgba(18, 15, 51, 0.7); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--ink); opacity: 0.7; font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.scroll-cue:hover { color: var(--ink); opacity: 1; }

/* ---- Sections ---- */
section.block { padding: 88px 0; }
section.block.tight { padding-top: 32px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.h2 { font-size: clamp(30px, 5vw, 48px); margin-top: 10px; }
.lead { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 16px; }
.lead + .lead { margin-top: 12px; }

/* The game's title, as on its feature graphic. */
.game-title { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; text-shadow: 0 4px 0 rgba(18, 15, 51, 0.55); }
.game-title b { display: block; color: var(--yellow); font-weight: 700; }

/* Feature card for a game: text left, art right, on the game's own purple. */
.game-card { position: relative; overflow: hidden; border-radius: 24px; display: grid; gap: 8px;
  background: linear-gradient(135deg, #b03f8c 0%, #7a2a8c 40%, #4a1f8f 100%); box-shadow: 0 30px 80px -30px rgba(122, 42, 140, 0.8); }
.streaks { position: absolute; inset: -20%; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(-28deg, transparent 0 46px, rgba(255, 255, 255, 0.5) 46px 48px, transparent 48px 130px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000);
          mask: linear-gradient(90deg, transparent, #000 40%, #000);
  animation: streak 3.5s linear infinite; }
@keyframes streak { to { transform: translate(-130px, -69px); } }
.game-card .copy { position: relative; padding: 32px 24px 0; }
.game-card .game-title { font-size: clamp(48px, 9vw, 84px); }
.game-card .pitch { margin-top: 16px; color: #f7e6ff; font-size: 18px; max-width: 40ch; }
.game-card .art { position: relative; min-height: 240px; }
.game-card .art .sun { width: 62%; left: 58%; bottom: auto; top: 6%; -webkit-mask: none; mask: none; background: radial-gradient(circle at 50% 45%, #ffe7a0, #ffb35c 60%, rgba(255, 140, 90, 0) 71%); box-shadow: none; }
.game-card .art img { position: relative; width: min(92%, 520px); margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(18, 15, 51, 0.55)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(14, 11, 31, 0.35); border: 1px solid rgba(255, 255, 255, 0.25); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.btn.primary { background: var(--yellow); color: #1a1238; box-shadow: 0 4px 0 #b8861c; }
.btn.primary:hover { background: #ffd35f; color: #1a1238; }
.btn.ghost { color: var(--ink); border: 2px solid rgba(255, 255, 255, 0.5); }
.btn.ghost:hover { color: var(--ink); border-color: #fff; }
.btn.soon { background: rgba(14, 11, 31, 0.55); color: var(--ink); border: 2px solid rgba(255, 255, 255, 0.22); cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .small { display: block; font-size: 11px; letter-spacing: 0.12em; opacity: 0.75; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
@media (min-width: 900px) {
  .game-card { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .game-card .copy { padding: 56px 0 56px 56px; }
  .game-card .art { min-height: 420px; display: flex; align-items: center; }
}
.game-card .copy .actions { padding-bottom: 8px; }

/* Studio section */
.studio { display: grid; gap: 40px; align-items: center; }
.studio .mark { width: 120px; opacity: 0.95; }
.facts { display: grid; gap: 12px; margin-top: 28px; }
.fact { display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.fact b { font-family: var(--display); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); min-width: 7.5em; }
.fact span { color: var(--muted); }
@media (min-width: 900px) { .studio { grid-template-columns: 1.2fr 1fr; gap: 72px; } }

/* Contact band */
.contact { position: relative; overflow: hidden; text-align: center; padding: 96px 0 104px; background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(255, 107, 214, 0.25), transparent 70%), var(--night-2); border-top: 1px solid var(--line); }
.contact .mail { display: inline-block; margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 6vw, 52px); color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--yellow); line-height: 1.2; word-break: break-word; }
.contact .mail:hover { color: var(--yellow); }
.contact .lead { margin-left: auto; margin-right: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 720px) { footer .links { margin-left: auto; } }

/* ---- The game page ---- */
.game-hero { position: relative; overflow: hidden; padding: 104px 0 0; background: linear-gradient(160deg, #c2448c 0%, #7a2a8c 38%, #3d1a7a 100%); }
.game-hero .wrap { position: relative; display: grid; gap: 8px; }
.game-hero .game-title { font-size: clamp(64px, 14vw, 132px); }
.game-hero .pitch { margin-top: 18px; font-size: 20px; color: #f7e6ff; max-width: 34ch; }
.game-hero .art { position: relative; min-height: 300px; margin-top: 24px; display: flex; align-items: flex-end; justify-content: center; }
.game-hero .art .sun { width: min(64vw, 420px); left: 50%; bottom: 14%; -webkit-mask: none; mask: none; box-shadow: 0 0 120px 30px rgba(255, 170, 90, 0.35); }
.game-hero .art img { position: relative; width: 100%; margin-bottom: -4%; filter: drop-shadow(0 30px 30px rgba(18, 15, 51, 0.6)); }
.game-hero .icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(18, 15, 51, 0.5); margin-bottom: 20px; }
@media (min-width: 900px) {
  .game-hero { padding-top: 120px; }
  .game-hero .wrap { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .game-hero .copy { padding-bottom: 96px; }
  .game-hero .art { min-height: 520px; margin-top: 0; }
  .game-hero .art img { width: min(112%, 700px); max-width: none; margin: 0 -6% -4%; }
}
.road-strip { height: 14px; background: repeating-linear-gradient(90deg, var(--yellow) 0 60px, transparent 60px 100px), #1a1528; background-size: 100px 4px, auto; background-repeat: repeat-x; background-position: 0 50%, 0 0; animation: strip 1.2s linear infinite; }
@keyframes strip { to { background-position: -100px 50%, 0 0; } }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-top: 32px; scrollbar-width: thin; }
.shots img { flex: none; width: 220px; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8); }
@media (min-width: 1120px) { .shots img { width: 240px; } }
@media (min-width: 1200px) { .shots { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

.features { display: grid; gap: 16px; margin-top: 40px; }
.feature { padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); }
.feature:nth-child(3n+2) { border-left-color: var(--pink); }
.feature:nth-child(3n) { border-left-color: var(--cyan); }
.feature h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.feature p { color: var(--muted); margin-top: 10px; }
.feature ul { color: var(--muted); margin: 10px 0 0; padding-left: 20px; }
.feature li + li { margin-top: 4px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: 1fr 1fr 1fr; } }

.factbox { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 720px) { .factbox { grid-template-columns: 1fr 1fr; } }

/* ---- Legal pages ---- */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); }
.legal h2 { font-size: 21px; margin: 36px 0 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.legal p, .legal li { color: #dfe1f3; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal .muted { color: var(--muted); margin-top: 8px; }
.legal address { font-style: normal; }

/* ---- 404 ---- */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 64px var(--gutter); }
.lost .big { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(88px, 22vw, 180px); line-height: 1; color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
