/* Sunset Drive: the head unit, on the web.
   Michroma is the machine (labels, keys, numbers). Overpass is what it shows you (sentences).
   Pink is you, cyan is timing, amber is reward, violet is structure, numbers are white. */

@font-face { font-family: "Michroma"; src: url("/fonts/michroma.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/fonts/overpass.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #07020f;
  --night: #12062a;
  --dusk: #24104a;
  --violet: #9e5cff;
  --pink: #ff3dc7;
  --cyan: #4debff;
  --amber: #ffb84d;
  --white: #fff5fc;
  --dim: #b9a8d6;
  --glass: rgba(26, 10, 52, 0.62);
  --hair: rgba(255, 235, 250, 0.22);
  --sunset: linear-gradient(180deg, #ffd23f 0%, #ff8a2a 26%, #ff2f62 52%, #ff2a8c 70%, #8a1dff 100%);
  --key: linear-gradient(100deg, #ff2f8f 0%, #ff4f6d 55%, #ff9a3c 100%);
  --machine: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --text: "Overpass", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  color: var(--white);
  font: 400 17px/1.62 var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(158, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 61, 199, 0.10), transparent 60%),
    var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
/* scanlines, very faint, like the game's film look */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- lettering ---------- */
.caps { font-family: var(--machine); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; line-height: 1.5; }
.tag { color: var(--cyan); }
h1, h2, h3 { font-family: var(--machine); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.18; margin: 0; }
h2 { font-size: clamp(26px, 4.2vw, 44px); }
h3 { font-size: 15px; letter-spacing: 0.12em; }
.neon { color: #fff; text-shadow: 0 0 1px #fff, 0 0 14px rgba(255, 61, 199, 0.85), 0 0 34px rgba(255, 61, 199, 0.45); }
.neon-cyan { color: #fff; text-shadow: 0 0 1px #fff, 0 0 14px rgba(77, 235, 255, 0.9), 0 0 30px rgba(77, 235, 255, 0.4); }
.sun-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: #eadff7; max-width: 34em; }
p { margin: 0 0 1em; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(7, 2, 15, 0.92), rgba(7, 2, 15, 0.7));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(158, 92, 255, 0.28);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 18px rgba(255, 61, 199, 0.35); }
.brand span { font-family: var(--machine); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a { font-family: var(--machine); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-color: var(--pink); }
@media (max-width: 520px) { .brand span { display: none; } }

/* ---------- keys: smoked glass that leans forward ---------- */
.key {
  --tint: var(--key);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px 15px 34px; min-height: 58px;
  color: #fff; text-decoration: none;
  font-family: var(--machine); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  transform: skewX(-12deg);
  background: var(--tint);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 10px 40px rgba(255, 47, 143, 0.45), 0 0 60px rgba(255, 120, 80, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.key > * { transform: skewX(12deg); }
.key::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #fff; opacity: 0.85; box-shadow: 0 0 12px #fff; }
.key:hover { color: #fff; transform: skewX(-12deg) translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 16px 50px rgba(255, 47, 143, 0.6), 0 0 80px rgba(255, 120, 80, 0.35); }
.key .price { font-size: 13px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.45); }
.key.ghost { --tint: rgba(18, 6, 40, 0.55); box-shadow: 0 0 0 1px var(--hair) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.key.ghost::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.key.ghost:hover { box-shadow: 0 0 0 1px rgba(77, 235, 255, 0.6) inset, 0 0 30px rgba(77, 235, 255, 0.25); }
.arrow { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .key { font-size: 12px; letter-spacing: 0.12em; padding: 15px 22px 14px 26px; gap: 10px; }
  .key .price { font-size: 12px; padding-left: 10px; }
}

/* ---------- panels: upright, two corners cut, brackets in the other two ---------- */
.panel {
  --cut: 18px;
  position: relative; padding: clamp(22px, 3vw, 32px);
  background: var(--glass);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--hair);
}
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--violet); border-style: solid; opacity: 0.9; }
.panel::before { top: 7px; right: 7px; border-width: 1px 1px 0 0; }
.panel::after { bottom: 7px; left: 7px; border-width: 0 0 1px 1px; }

/* ---------- the segmented strip: every amount in the game ---------- */
.seg { display: flex; gap: 4px; height: 12px; }
.seg i { flex: 1; transform: skewX(-20deg); background: rgba(255, 255, 255, 0.12); }
.seg i.on { background: linear-gradient(90deg, var(--pink), #ff7a4a); box-shadow: 0 0 10px rgba(255, 61, 199, 0.6); }
.seg.cyan i.on { background: var(--cyan); box-shadow: 0 0 10px rgba(77, 235, 255, 0.6); }
.seg.fill i { animation: seg-fill 6s steps(1) infinite backwards; }
@keyframes seg-fill { 0%, 6% { background: rgba(255, 255, 255, 0.12); box-shadow: none; } 7%, 82% { background: linear-gradient(90deg, var(--pink), #ff7a4a); box-shadow: 0 0 10px rgba(255, 61, 199, 0.6); } 83%, 100% { background: rgba(255, 255, 255, 0.12); box-shadow: none; } }

/* ---------- splash: the game driving itself, full screen ---------- */
.splash { position: relative; height: 100svh; min-height: 560px; max-height: 1400px; overflow: hidden; isolation: isolate; margin-top: -60px; background: var(--ink); }
.splash .still, .splash .still img, .splash .drive { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.splash .still { z-index: -3; }
.splash .drive { z-index: -2; }
.splash::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 2, 15, 0.7) 0%, rgba(7, 2, 15, 0) 22%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 2, 15, 0.82) 16%, rgba(7, 2, 15, 0) 46%); }
.splash-in { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding-top: 60px; }
.splash h1 { margin: 0; align-self: center; }
.logo { display: block; width: min(720px, 92vw); filter: drop-shadow(0 6px 30px rgba(10, 0, 30, 0.8)); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.splash-foot { padding-bottom: clamp(44px, 8vh, 96px); display: grid; gap: 18px; animation: rise 1.1s 0.25s cubic-bezier(.2, .8, .2, 1) both; }
.splash .cta { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.splash .fine { color: var(--dim); margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* now driving: the game's track chip */
.playing { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 8px 16px;
  font-size: 11px; color: var(--dim); background: rgba(10, 4, 24, 0.55); box-shadow: inset 0 0 0 1px var(--hair);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: skewX(-12deg); animation: fade 1.2s 0.6s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.playing > * { transform: skewX(12deg); }
.playing b { font-weight: 400; color: #fff; }
.playing .bpm { color: var(--cyan); }
.eq { display: inline-flex; gap: 3px; align-items: end; height: 14px; }
.eq i { width: 3px; height: 30%; background: var(--pink); box-shadow: 0 0 6px var(--pink); animation: eq 0.952s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.24s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.36s; }
@keyframes eq { 0%, 100% { height: 25%; } 12% { height: 100%; } 45% { height: 50%; } }

/* the song's progress along the bottom edge, as on the dash */
.seg.song { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; gap: 3px; z-index: 2; padding: 0 2px; }
.seg.song i { animation: seg-song 16s steps(1) infinite backwards; }
@keyframes seg-song { 0% { background: rgba(255, 255, 255, 0.1); box-shadow: none; } 1%, 99% { background: linear-gradient(90deg, var(--pink), #ff7a4a); box-shadow: 0 0 8px rgba(255, 61, 199, 0.7); } 100% { background: rgba(255, 255, 255, 0.1); } }

/* desktop: wide picture, lettering and keys down the left like a title card */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .splash::before { background:
    linear-gradient(180deg, rgba(7, 2, 15, 0.65) 0%, rgba(7, 2, 15, 0) 18%),
    linear-gradient(90deg, rgba(7, 2, 15, 0.72) 0%, rgba(7, 2, 15, 0.25) 42%, rgba(7, 2, 15, 0) 62%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 2, 15, 0) 30%); }
  .splash-in { grid-template-rows: 1fr auto auto; width: auto; margin-inline: clamp(40px, 6vw, 120px); }
  .splash h1 { grid-row: 2; align-self: end; }
  .splash-foot { grid-row: 3; padding-top: 28px; padding-bottom: clamp(70px, 11vh, 130px); }
  .logo { width: min(540px, 30vw); }
  .playing { position: absolute; right: 0; bottom: 56px; }
}
/* phones: portrait picture, logo high over the sky, keys at the thumb */
@media (max-width: 899px), (max-aspect-ratio: 4/5) {
  .splash-in { text-align: center; justify-items: center; }
  .splash h1 { align-self: start; padding-top: clamp(18px, 6vh, 70px); }
  .splash .cta { justify-content: center; }
  .playing { justify-self: center; white-space: nowrap; max-width: 100%; }
  .splash-foot { width: 100%; justify-items: center; }
}
@media (max-width: 520px) { .splash .cta { width: 100%; } .splash .cta .key { width: 100%; justify-content: center; } .playing .bpm { display: none; } }
@media (prefers-reduced-motion: reduce) { .splash .drive { display: none; } }

/* ---------- sections ---------- */
section { position: relative; }
.block { padding: clamp(70px, 11vw, 140px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.copy > .caps { margin-bottom: 16px; display: block; }
.copy h2 { margin-bottom: 24px; }

/* phones: the game in portrait, tilted like it's sitting on the dash */
.phone {
  position: relative; width: min(330px, 74vw); margin-inline: auto; aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #3a2a52, #120a1e 40%, #241638);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(158, 92, 255, 0.28);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.tilt-l { transform: perspective(1400px) rotateY(14deg) rotateZ(-2deg); }
.tilt-r { transform: perspective(1400px) rotateY(-14deg) rotateZ(2deg); }
@media (max-width: 860px) { .tilt-l, .tilt-r { transform: none; } }
.pair { position: relative; display: grid; place-items: center; }
.pair .phone + .phone { position: absolute; width: min(250px, 52vw); right: max(0px, calc(50% - 300px)); bottom: -40px; opacity: 0.96; }
@media (max-width: 860px) { .pair { padding-right: 18vw; } .pair .phone + .phone { right: 0; } }

/* the list of things the road does: dash readouts */
.reads { display: grid; gap: 14px; margin-top: 30px; padding: 0; list-style: none; }
.reads li { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(158, 92, 255, 0.25); }
.reads b { font-family: var(--machine); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.reads span { color: #e3d7f2; }

/* composer readout */
.composer .panel { max-width: 460px; }
.composer .title { font-family: var(--machine); font-size: clamp(26px, 3.2vw, 36px); text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 4px; }
.composer .sub { color: var(--pink); }
.stage { display: flex; justify-content: space-between; margin-top: 12px; color: var(--dim); }
.stage .cyc { position: relative; height: 1.5em; overflow: hidden; flex: 1; }
.stage .cyc span { position: absolute; left: 0; top: 0; animation: cyc 12s infinite; opacity: 0; }
.stage .cyc span:nth-child(2) { animation-delay: 3s; } .stage .cyc span:nth-child(3) { animation-delay: 6s; } .stage .cyc span:nth-child(4) { animation-delay: 9s; }
@keyframes cyc { 0% { opacity: 0; transform: translateY(8px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-8px); } }

/* four ways in */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
@media (max-width: 980px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.way { min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.way .label { display: inline-block; align-self: flex-start; padding: 6px 14px; transform: skewX(-14deg); background: rgba(255, 61, 199, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 61, 199, 0.55); }
.way .label > span { display: inline-block; transform: skewX(14deg); }
.way:nth-child(2) .label { background: var(--key); box-shadow: 0 0 24px rgba(255, 61, 199, 0.5); }
.way p { color: #ded2ee; margin: 0; font-size: 16px; }

/* screenshot rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 62vw); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px var(--pad) 50px; margin-top: 30px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail .phone { width: 100%; border-radius: 38px; padding: 8px; }
.rail .phone img { border-radius: 31px; }
.rail .phone::after { top: 16px; height: 20px; }
.rail figcaption { margin-top: 16px; text-align: center; color: var(--dim); }

/* private */
.private .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .private .grid { grid-template-columns: 1fr; } }
.private h3 { color: var(--cyan); margin-bottom: 12px; }
.private p { color: #ded2ee; margin: 0; }

/* closing band */
.band { position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 14vw, 170px) 0; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(7, 2, 15, 0.45) 30%, rgba(7, 2, 15, 0.45) 70%, var(--ink) 100%); }
.band h2 { margin-bottom: 30px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(158, 92, 255, 0.28); padding: 44px 0 60px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ---------- documents: privacy, terms, support ---------- */
.doc { padding: clamp(46px, 8vw, 90px) 0 clamp(70px, 10vw, 120px); }
.doc .wrap { max-width: 780px; }
.doc header { margin-bottom: 40px; }
.doc header .caps { display: block; margin-bottom: 14px; }
.doc header h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; }
.doc .updated { color: var(--dim); font-size: 15px; }
.doc h2 { font-size: clamp(17px, 2.2vw, 20px); letter-spacing: 0.1em; margin: 52px 0 16px; color: var(--white); }
.doc h2::before { content: ""; display: inline-block; width: 16px; height: 9px; margin-right: 12px; transform: skewX(-20deg); background: var(--pink); box-shadow: 0 0 10px rgba(255, 61, 199, 0.7); vertical-align: 0.15em; }
.doc h3 { font-size: 13px; color: var(--amber); margin: 30px 0 10px; }
.doc p, .doc li { color: #e6dbf3; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.5em; }
.doc li::marker { color: var(--violet); }
.doc .short { margin: 10px 0 10px; }
.doc .short p:last-child { margin: 0; }
.doc strong { color: #fff; font-weight: 700; }
.doc kbd { font-family: var(--machine); font-size: 0.72em; letter-spacing: 0.12em; padding: 2px 8px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.06); white-space: nowrap; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 44px; }
.contact p { margin: 0; }
.contact .addr { font-family: var(--machine); font-size: clamp(15px, 2.4vw, 19px); letter-spacing: 0.06em; color: #fff; text-decoration: none; word-break: break-all; }

details { border-top: 1px solid rgba(158, 92, 255, 0.28); }
details:last-of-type { border-bottom: 1px solid rgba(158, 92, 255, 0.28); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 0 22px; }
details > div p:last-child, details > div ul:last-child { margin-bottom: 0; }
.faq-group { margin: 56px 0 12px; color: var(--cyan); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .big { font-family: var(--machine); font-size: clamp(70px, 16vw, 170px); line-height: 1; }
