@import url("./fonts.css");

:root {
  color-scheme: dark;
  --bg: #15121c;
  --panel: #211c2a;
  --panel-dark: #191620;
  --line: #3b3448;
  --muted: #b9afc3;
  --text: #f5eff0;
  --acid: #d5fa55;
  --acid-hover: #e6ff9a;
  --deep: #151b0b;
  --heading: "Oswald", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --body: "Golos Text", Arial, sans-serif;
  --label: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1248px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.53 var(--body); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, ol { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.12; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.wrap { width: min(calc(100% - 104px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9; top: 8px; left: 12px; padding: 8px 14px; background: var(--acid); color: var(--deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 5; background: #17131f; border-bottom: 1px solid #352a3e; }
.header-inner { display: grid; min-height: 70px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; width: fit-content; }
.brand img { flex: none; }
.brand span { font: 700 1.11rem/1.05 var(--heading); letter-spacing: .025em; text-transform: uppercase; }
.brand strong { display: block; color: var(--acid); font: inherit; }
.site-nav { display: flex; gap: 38px; align-items: center; color: #d9d1e0; font-weight: 600; font-size: .95rem; }
.site-nav a { padding-block: 12px; }
.site-nav a:hover, .quiet-link:hover { color: var(--acid); }
.header-play { justify-self: end; }

.button {
  --fill: var(--acid);
  --border: var(--acid);
  --button-text: var(--deep);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 23px;
  border: 0;
  background: transparent;
  color: var(--button-text);
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.button::before, .button::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.button::before { inset: 0; background: var(--border); }
.button::after { inset: 1px; background: var(--fill); transition: background .18s ease; }
.button:hover { --fill: var(--acid-hover); --border: var(--acid-hover); }
.button:active::after { filter: brightness(.9); }
.button:disabled { --fill: #302b35; --border: #3e3847; --button-text: #a49dad; cursor: default; }
.button-small { min-height: 41px; padding-inline: 17px; }
.button-outline { --fill: #201b28; --border: #776987; --button-text: var(--text); }
.button-outline:hover { --fill: #362a41; --border: #b39cc5; }
.play-sign { display: block; flex: none; width: 11px; height: 13px; background: currentColor; clip-path: polygon(6% 0, 100% 50%, 6% 100%); }
.eyebrow, .card-kind, .track-terrain { font: 500 .8125rem/1.45 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { color: var(--acid); }
.quiet-link { color: #e3dbe8; font-size: .91rem; font-weight: 650; text-underline-offset: 4px; text-decoration: underline; text-decoration-color: #6b5d79; width: fit-content; }

.hero { min-height: clamp(565px, 47vw, 690px); position: relative; isolation: isolate; display: grid; align-items: center; background: #1b1425; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene picture { position: absolute; inset: 0 0 0 22%; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: right 21%; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #15121c 0, #17121c65 13%, transparent 32%),
    linear-gradient(90deg, #1a1423 13%, #1a1423ee 25%, #1a142375 41%, #1a142315 58%, transparent 75%);
}
.hero-dust {
  position: absolute;
  z-index: 1;
  inset: 5% -5% 6% 5%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 71%, #c3aa71 0 1px, transparent 3px),
    radial-gradient(ellipse at 65% 85%, #ffca8c 0 2px, transparent 4px),
    radial-gradient(ellipse at 82% 76%, #d2fa5599 0 1px, transparent 4px),
    radial-gradient(ellipse at 73% 54%, #ffc69f 0 1px, transparent 3px),
    radial-gradient(ellipse at 32% 84%, #a785c8 0 1px, transparent 3px),
    radial-gradient(ellipse at 92% 85%, #e88774 0 1px, transparent 3px),
    radial-gradient(ellipse at 44% 61%, #f89d72 0 1px, transparent 3px);
  opacity: .55;
  animation: drift-through-dust 11s ease-in-out infinite alternate;
}
@keyframes drift-through-dust {
  from { opacity: .24; transform: translate(1.5%, 2%); }
  to { opacity: .77; transform: translate(-3%, -6%); }
}
.hero-inner { padding-block: 64px 90px; }
.hero-copy { max-width: 660px; }
.hero-title { font-size: clamp(4.5rem, 7.55vw, 7.5rem); text-transform: uppercase; letter-spacing: -.026em; line-height: .93; margin: 22px 0 24px; transform: skewX(-7deg); transform-origin: left bottom; text-shadow: 0 4px 40px #130c1a7a; }
.hero-title em { display: block; color: var(--acid); font-style: normal; margin-top: 8px; }
.hero-lede { max-width: 484px; color: #e8dfe9; line-height: 1.55; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-actions .button-outline { --fill: #231b30c9; }
.hero-actions .button-outline:hover { --fill: #3a2a47; }
.hero-edge { position: absolute; inset: auto 0 0; height: 4px; border-bottom: 1px solid #4b4051; }
.hero-edge span { display: block; margin-left: max(52px, calc((100% - var(--wrap)) / 2)); height: 4px; width: 105px; background: repeating-linear-gradient(130deg, var(--acid) 0 5px, transparent 5px 10px); }

.section { padding-block: clamp(54px, 6vw, 88px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 25px; }
.section-heading h2, .step-heading h1 { font-size: clamp(2.35rem, 4.5vw, 4rem); text-transform: uppercase; letter-spacing: -.017em; }
.section-heading p { max-width: 390px; padding-bottom: 3px; color: var(--muted); }
.garage-grid, .choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.garage-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 3px solid color-mix(in srgb, var(--accent), #382a46 37%);
  transition: border-color .18s ease, background .18s ease;
}
.garage-card:hover { border-color: var(--accent); background: #262030; }
.garage-art, .choice-art { position: relative; isolation: isolate; overflow: hidden; background: #29202f; }
.garage-art { aspect-ratio: 1.63; }
.garage-art img, .choice-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.garage-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #18141f88, transparent 35%); pointer-events: none; }
.garage-info { padding: 18px 19px 19px; display: flex; flex-direction: column; flex: 1; gap: 11px; }
.card-kind { color: var(--accent); display: block; letter-spacing: .067em; }
.garage-info h3, .crew-grid .choice-name { font-size: clamp(1.2rem, 2.6vw, 2rem); overflow-wrap: anywhere; }
.garage-info p { color: var(--muted); }
.rating { display: grid; gap: 7px; width: min(100%, 260px); padding-block: 4px; }
.garage-info .rating, .crew-grid .rating { margin-top: auto; }
.rating-line { display: grid; grid-template-columns: 1fr minmax(68px, 40%); align-items: center; gap: 10px; font-size: .875rem; color: #e8dfec; }
.rating-value { display: flex; gap: 4px; margin: 0; }
.rating-tick { height: 6px; flex: 1; transform: skewX(-20deg); background: #494053; }
.rating-tick.full { background: var(--accent); }
.garage-info .quiet-link { padding-top: 3px; }

.tracks { background: #1b1724; border-block: 1px solid #353040; }
.track-browser { display: grid; grid-template-columns: minmax(225px, .72fr) minmax(0, 2.3fr); gap: 12px; }
.track-tabs { display: flex; flex-direction: column; gap: 7px; }
.track-tab {
  position: relative;
  flex: 1;
  min-height: 88px;
  padding: 16px 17px 16px 20px;
  border: 1px solid #3f354e;
  background: #211c2b;
  text-align: left;
  cursor: pointer;
}
.track-tab::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.track-tab[aria-selected="true"] { background: #302739; border-color: #685574; }
.track-tab[aria-selected="true"]::before { background: var(--track-accent); }
.track-tab:hover { background: #302739; }
.track-tab b { display: block; font: 600 1.42rem/1.18 var(--heading); }
.track-tab span { display: block; margin-top: 6px; color: #c5bacd; font-size: .89rem; }
.track-preview { overflow: hidden; min-width: 0; border: 1px solid #523a59; background: #211a29; }
.track-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  min-height: clamp(390px, 38vw, 508px);
}
.track-frame {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity .6s ease;
  transform-origin: 65% 35%;
}
.track-frame.is-active {
  opacity: 1;
  animation: scene-drift 8s linear both;
  animation-play-state: paused;
}
.track-frame.is-active.is-moving { animation-play-state: running; }
@keyframes scene-drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.track-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #18131dfc, #19131d90 38%, #19131d11 75%),
    linear-gradient(90deg, #19131dba 0, #19131d00 80%);
}
.track-content { padding: clamp(21px, 3.2vw, 40px); width: min(100%, 550px); }
.track-terrain { color: var(--track-accent); }
.track-content h3 { margin-top: 4px; font-size: clamp(2.25rem, 4vw, 3.4rem); text-transform: uppercase; }
.story-caption { margin-top: 10px; }
.story-caption h4 { margin: 0 0 4px; font: 650 1.18rem/1.2 var(--body); color: var(--text); }
.story-caption p { margin: 0; color: #eee5ee; }
.track-content .track-goal { margin-top: 10px; color: var(--text); }
.track-content .track-tip { margin-top: 12px; font-size: .91rem; color: #e1d6e5; }
.track-tip strong { color: var(--track-accent); }
.track-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid #4d3e59;
}
.track-frame-index { color: var(--muted); font: 500 .85rem/1.4 var(--label); }
.track-control-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.track-control-buttons .button { min-height: 40px; padding-inline: 12px; font-size: .84rem; }

.crew-finale {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #554460;
  background: linear-gradient(140deg, #272131, #211a29 68%);
}
.crew-finale img { width: 100%; height: 100%; object-fit: cover; }
.crew-finale-copy { align-self: center; padding: clamp(23px, 4vw, 49px); }
.crew-finale-copy h2 { margin-bottom: 13px; font-size: clamp(2.25rem, 4vw, 3.9rem); text-transform: uppercase; }
.crew-finale-copy p { color: #e0d6e3; }
.platform-panel { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(24px, 3vw, 40px); }
.platform-card {
  flex: 1 1 max-content;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid #3f354e;
  background: #211c2b;
}
.platform-card:last-child { flex-grow: 2; }
.platform-card h2 { font-size: 1.4rem; }
.platform-links { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 10px 0 0; padding: 0; }
.platform-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--acid);
  background: var(--panel-dark);
  color: var(--text);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.platform-links img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.platform-links a:hover { border-color: var(--acid-hover); }

.shell {
  min-height: calc(100svh - 146px);
  background:
    radial-gradient(ellipse at 90% 6%, #32253a 0, transparent 49%),
    repeating-linear-gradient(128deg, transparent 0 28px, #f4d3ff08 29px, transparent 30px 62px),
    var(--bg);
}
.wizard { padding-block: 32px 62px; }
.wizard-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 42px; }
.steps { display: flex; align-items: center; list-style: none; padding: 0; gap: 7px; }
.steps li > * { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #3d3548; color: #b9acc5; background: #211a29; font-size: .875rem; font-weight: 650; }
.steps li > [aria-current="step"] { border-color: var(--acid); color: var(--text); }
.steps li > a:hover { border-color: #a38fb3; color: var(--text); }
.step-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #685a75; color: #d8cae1; font: 500 .78rem/1 var(--label); }
[aria-current="step"] .step-number { color: var(--deep); background: var(--acid); border-color: var(--acid); }
.step-heading { margin-bottom: 24px; }
.step-heading p { margin-top: 9px; color: var(--muted); max-width: 680px; }
.step-heading h1:focus { outline: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 1px solid #584c64;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.choice-card:hover, .choice-card:focus-visible { border-color: var(--accent); background: #2c2534; }
.choice-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-card.is-current { border-color: var(--accent); box-shadow: inset 0 -3px var(--accent); }
.choice-art { aspect-ratio: 1.65; }
.choice-art img { position: absolute; inset: 0; }
.crew-grid .choice-art { aspect-ratio: 3 / 2; }
.crew-grid .choice-art img { object-fit: contain; object-position: center; }
.choice-mark { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 25px; height: 25px; background: var(--accent); color: var(--deep); border-radius: 50%; }
.choice-mark::after { content: ""; width: 7px; height: 12px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.choice-text { display: grid; align-content: start; gap: 7px; padding: 15px 17px 18px; }
.choice-name { font: 700 1.8rem/1.1 var(--heading); }
.choice-description { display: grid; gap: 7px; }
.crew-grid .choice-text, .crew-grid .choice-description { display: flex; flex-direction: column; flex: 1; }
.choice-detail { color: var(--muted); }
.choice-goal { border-inline-start: 2px solid var(--accent); padding-inline-start: 9px; }
.choice-effect { color: var(--accent); font-size: .875rem; }
.choice-note { color: #f3e5f1; font-size: .875rem; }
.choice-actions { margin-top: 23px; }
.selection-line { margin: 0 0 16px; color: #dfd2e5; overflow-wrap: anywhere; }
.selection-line strong { color: var(--acid); }
.team-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.team-toolbar .selection-line { margin: 0; }
.gender-picker { display: inline-flex; gap: 6px; }
.gender-picker button { min-height: 44px; padding: 7px 14px; border: 1px solid #675674; background: var(--panel); color: var(--text); cursor: pointer; font-weight: 700; }
.gender-picker button:hover { border-color: var(--acid); }
.gender-picker button[aria-pressed="true"] { border-color: var(--acid); background: var(--acid); color: var(--deep); }

.account-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-box, .account-summary, .callsign-box { background: var(--panel); border: 1px solid var(--line); }
.account-box, .callsign-box { padding: clamp(18px, 3vw, 32px); }
.callsign-box { max-width: 560px; }
.account-box > h2, .account-summary h2 { font-size: 1.8rem; }
.account-box > h2 { margin-bottom: 12px; }
.account-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; padding-top: 8px; border-top: 1px solid #4b4055; color: var(--muted); font-size: .94rem; }
.account-links p { display: flex; flex-wrap: wrap; gap: 0 7px; align-items: center; }
.account-links .quiet-link { min-height: 40px; padding: 5px 0; color: var(--acid); background: transparent; border: 0; cursor: pointer; }
.account-help { margin: 0 0 15px; color: var(--muted); }
.wizard-form { display: grid; justify-items: start; gap: 13px; }
.wizard-form label { display: grid; gap: 5px; width: 100%; color: #e9e0ed; font-weight: 550; }
.wizard-form input { padding: 10px 12px; width: 100%; border: 1px solid #67596f; border-radius: 0; background: #18141f; color: var(--text); }
.wizard-form input[aria-invalid="true"] { border-color: #ffce9d; }
.wizard-form input::placeholder { color: #a599ac; }
.wizard-form .button { margin-top: 3px; }
.form-feedback { color: #ffce9d; }
.form-feedback:empty { display: none; }
.account-summary img { width: 100%; aspect-ratio: 1.72; object-fit: cover; }
.summary-content { padding: 17px 21px 22px; }
.summary-content dl { display: grid; gap: 6px; margin-top: 12px; }
.summary-content dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary-content dt { color: var(--muted); }
.summary-content dd { min-width: 0; overflow-wrap: anywhere; margin: 0; text-align: right; font-weight: 650; }

.site-footer { background: #15111c; border-top: 1px solid #352d40; }
.footer-inner { display: flex; min-height: 76px; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-inner .brand span { font-size: .98rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; }
.footer-support { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.footer-support strong { color: var(--acid); font: 700 .95rem/1.2 var(--heading); letter-spacing: .025em; text-transform: uppercase; }
.footer-support a { text-decoration: underline; text-underline-offset: .2em; }
.footer-support a:hover, .footer-support a:focus-visible { color: var(--text); }
.noscript { padding: 14px; text-align: center; color: var(--acid); }

@media (min-width: 1100px) {
  .hero-scene picture {
    inset: 0 0 auto auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    mask-image: linear-gradient(90deg, transparent, #000 23%);
  }
  .hero-scene img { object-fit: contain; object-position: right center; }
}

@media (max-width: 960px) {
  .wrap { width: calc(100% - 64px); }
  .hero-edge span { margin-left: 32px; }
  .hero { min-height: 557px; }
  .hero-title { font-size: clamp(4rem, 9.2vw, 6rem); }
  .hero-scene picture { left: 15%; }
  .hero-scene img { object-position: 66% 20%; }
  .hero-scene::after { background: linear-gradient(0deg, #15121c, transparent 28%), linear-gradient(90deg, #1b1424 0, #1b1424f0 16%, #1b1424b5 34%, #1b14242b 63%, transparent 95%); }
  .garage-grid, .choice-grid { gap: 11px; }
  .garage-info, .choice-text { padding-inline: 13px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { gap: 13px; }
  .site-nav { gap: 14px; }
  .hero-edge span { margin-left: 21px; }
  .hero-lede { max-width: 370px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
  .section-heading p { padding: 0; }
  .track-browser { grid-template-columns: 1fr; }
  .track-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .track-tab { min-height: 63px; padding: 8px 10px; text-align: center; }
  .track-tab::before { inset: auto 0 0; width: auto; height: 3px; }
  .track-tab b { font-size: 1.18rem; }
  .track-tab span { display: none; }
  .wizard-top { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 30px; }
  .wizard-top nav { width: 100%; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .steps li > * { justify-content: center; gap: 5px; padding-inline: 5px; }
  .step-number { flex: none; }
}
@media (max-width: 650px) {
  .footer-inner { flex-wrap: wrap; min-height: auto; padding-block: 16px; }
  .footer-support { flex-basis: 100%; order: 1; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero-scene { order: 1; position: relative; z-index: auto; aspect-ratio: 1.66; margin-top: -8px; }
  .hero-scene picture { inset: 0; }
  .hero-scene img { object-position: 63% 18%; }
  .hero-scene::after { background: linear-gradient(0deg, #15121c 0, transparent 22%), linear-gradient(180deg, #1b1425 0, #1b142547 22%, transparent 51%); }
  .hero-inner { position: relative; z-index: 1; padding-block: 43px 0; }
  .hero-title { font-size: clamp(3.4rem, 12vw, 5.5rem); margin-block: 17px 18px; }
  .hero-title em { margin-top: 5px; }
  .hero-lede { max-width: 420px; font-size: 1rem; }
  .hero-actions { margin-top: 19px; }
  .garage-grid, .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .garage-art { aspect-ratio: 1.74; }
  .garage-info { padding: 16px 18px 18px; }
  .choice-art { aspect-ratio: 1.92; }
  .choice-art img { object-position: center 31%; }
  .choice-mark { right: 8px; top: 8px; width: 22px; height: 22px; }
  .choice-text { padding: 12px 15px 15px; gap: 5px; }
  .choice-name { font-size: 1.43rem; }
  .garage-info h3, .crew-grid .choice-name { font-size: 1.6rem; }
  .choice-detail { font-size: .91rem; }
  .choice-effect { font-size: .81rem; }
  .choice-text .card-kind { font-size: .75rem; }




  .crew-finale, .account-layout { grid-template-columns: 1fr; }
  .crew-finale img { aspect-ratio: 1.5; }
  .track-scene { min-height: 385px; }
  .account-summary img { aspect-ratio: 1.9; }
}
@media (max-width: 470px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 58px; grid-template-columns: 1fr auto; gap: 0 13px; padding-top: 8px; }
  .header-inner .brand img { width: 31px; height: 31px; }
  .header-inner .brand span { font-size: .97rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 26px; }
  .site-nav a { padding-block: 4px 8px; font-size: .85rem; }
  .header-play { min-height: 36px; padding-inline: 13px; font-size: .85rem; }
  .hero-edge span { margin-left: 15px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 45px; padding-inline: 13px; font-size: .875rem; }
  .hero-scene { margin-top: 0; }
  .steps li > * { flex-direction: column; font-size: .79rem; gap: 4px; padding: 7px 1px; }
  .track-scene { min-height: 355px; }
  .track-controls { padding: 10px; }
  .track-control-buttons .button { padding-inline: 10px; }
  .track-content { padding: 16px; }
  .track-content h3 { font-size: 2.18rem; }
  .track-tab { padding-inline: 5px; }
  .footer-inner .footer-copyright { font-size: .75rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
