:root {
  --ink: #080b0d;
  --panel: #101518;
  --panel-2: #151b1f;
  --line: rgba(255,255,255,.1);
  --muted: #9ca7ad;
  --paper: #f6f4ed;
  --gold: #f2b233;
  --gold-light: #ffd369;
  --green: #6ce0a5;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--gold); color: #111; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--gold); color: var(--gold); font: 800 20px/1 "Barlow Condensed", sans-serif; transform: skew(-6deg); }
.brand-name { font: 600 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.brand-name strong { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a { color: #c7ced1; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links > a:hover { color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: white; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 1px solid var(--gold); background: var(--gold); color: #111 !important; font-size: 14px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; box-shadow: 6px 6px 0 rgba(242,178,51,.2); transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 rgba(242,178,51,.2); background: var(--gold-light); }
.button-small { min-height: 40px; padding: 0 18px; box-shadow: none; }

.hero { position: relative; min-height: 800px; padding-top: 86px; overflow: hidden; background: radial-gradient(circle at 72% 15%, rgba(55,75,84,.38), transparent 32%), linear-gradient(145deg, #11191e, #07090b 66%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.12) 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.08) 80px); mask-image: linear-gradient(to bottom, black, transparent 70%); }
.stars { position: absolute; width: 3px; height: 3px; border-radius: 50%; top: 17%; left: 57%; background: white; box-shadow: 70px 25px #fff, 190px -36px #fff, 305px 20px #fff, 390px -60px #fff, 475px 45px #fff, 530px -15px #fff, -55px 75px rgba(255,255,255,.5), 140px 100px rgba(255,255,255,.6), 420px 120px rgba(255,255,255,.55); opacity: .7; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 714px; }
.hero-copy { padding: 80px 0 60px; }
.eyebrow, .kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(242,178,51,.3); background: rgba(242,178,51,.06); }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(108,224,165,.12); }
h1, h2, h3 { margin: 0; font-family: "Barlow Condensed", Impact, sans-serif; line-height: .98; text-transform: uppercase; }
h1 { max-width: 760px; margin-top: 27px; font-size: clamp(64px, 7.8vw, 110px); letter-spacing: -.025em; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--gold); text-shadow: 5px 5px 0 rgba(242,178,51,.13); }
.hero-lead { max-width: 650px; margin: 28px 0 32px; color: #b5bec2; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { color: #d7dcde; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 7px; color: var(--gold); }
.quick-stats { display: flex; gap: 0; margin: 52px 0 0; }
.quick-stats div { min-width: 150px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.quick-stats div:last-child { border: 0; }
.quick-stats dt { color: #6f7b81; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.quick-stats dd { margin: 4px 0 0; color: #e6e9ea; font: 600 18px "Barlow Condensed", sans-serif; text-transform: uppercase; }

.hero-art { position: relative; height: 620px; align-self: end; }
.moon { position: absolute; width: 130px; height: 130px; right: 70px; top: 80px; border-radius: 50%; background: #edf0dc; box-shadow: 0 0 80px rgba(237,240,220,.18); }
.moon::after { content: ""; position: absolute; width: 28px; height: 28px; left: 28px; top: 30px; border-radius: 50%; background: rgba(123,137,136,.16); box-shadow: 45px 50px 0 8px rgba(123,137,136,.1), 63px 12px 0 -3px rgba(123,137,136,.13); }
.horizon { position: absolute; left: -100px; right: -20vw; bottom: 160px; height: 230px; clip-path: polygon(0 66%, 12% 39%, 22% 56%, 37% 12%, 48% 57%, 60% 34%, 71% 64%, 84% 25%, 100% 61%, 100% 100%, 0 100%); }
.horizon-back { background: #27343a; opacity: .8; transform: translateY(-50px); }
.horizon-front { background: #10171a; }
.road { position: absolute; left: 0; right: -20vw; bottom: 0; height: 260px; background: #1a2023; clip-path: polygon(48% 0, 63% 0, 100% 100%, 0 100%); }
.road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.035), transparent 60%); }
.road-line { position: absolute; z-index: 1; width: 8px; height: 66px; left: 54%; background: var(--gold-light); transform: perspective(200px) rotateX(28deg) skewX(-8deg); }
.line-one { bottom: 0; height: 80px; }
.line-two { bottom: 115px; height: 42px; width: 5px; }
.line-three { bottom: 190px; height: 22px; width: 3px; }
.road-sign { position: absolute; z-index: 4; right: 10px; bottom: 156px; width: 145px; padding: 15px 16px; color: #111; background: var(--gold); border: 4px solid #111; outline: 2px solid var(--gold); transform: rotate(2deg); }
.road-sign::after { content: ""; position: absolute; z-index: -1; width: 10px; height: 170px; left: 62px; top: 100%; background: #91989a; }
.road-sign small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.road-sign strong { display: block; margin-top: 3px; font: 800 28px/.84 "Barlow Condensed", sans-serif; }
.hero-badge { position: absolute; z-index: 5; left: 22px; bottom: 66px; display: grid; place-items: center; width: 106px; height: 106px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(8,11,13,.75); backdrop-filter: blur(8px); transform: rotate(-8deg); }
.hero-badge::before { content: "★"; position: absolute; top: 8px; color: var(--gold); }
.hero-badge span { margin-top: 17px; color: #8f999e; font-size: 9px; text-transform: uppercase; }
.hero-badge strong { margin-top: -15px; color: white; font: 700 20px "Barlow Condensed", sans-serif; }

.status-bar { border-block: 1px solid var(--line); background: #0d1214; }
.status-inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.status-inner > div { display: flex; align-items: center; gap: 11px; text-transform: uppercase; }
.status-inner strong { font: 700 16px "Barlow Condensed", sans-serif; letter-spacing: .04em; }
.status-inner p { flex: 1; color: #808c92; font-size: 13px; }
.version { padding: 8px 12px; border: 1px solid var(--line); color: #89949a; font: 600 11px monospace; }

.section { padding: 120px 0; }
.section-heading { margin-bottom: 54px; }
.section-heading h2, .command-copy h2, .beta-card h2, .join-card h2 { margin-top: 13px; font-size: clamp(46px, 5.5vw, 78px); letter-spacing: -.02em; }
.split-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 80px; }
.split-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.intro { background: #0b0f11; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { position: relative; min-height: 330px; padding: 34px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(242,178,51,.38); transform: translateY(-3px); }
.feature-wide { grid-row: span 2; min-height: 676px; background: linear-gradient(155deg, #172127, #0e1316); }
.feature-accent { color: #161616; background: var(--gold); }
.feature-number { position: absolute; right: 22px; top: 20px; color: rgba(255,255,255,.12); font: 800 74px/1 "Barlow Condensed", sans-serif; }
.feature-accent .feature-number { color: rgba(0,0,0,.11); }
.feature-icon { width: 62px; height: 62px; margin-bottom: 65px; display: grid; place-items: center; border: 1px solid rgba(242,178,51,.35); color: var(--gold); font: 700 27px "Barlow Condensed", sans-serif; }
.feature-wide .feature-icon { margin-top: 25px; margin-bottom: 170px; }
.feature-accent .feature-icon { border-color: rgba(0,0,0,.3); color: #111; }
.feature h3 { font-size: 34px; }
.feature p { max-width: 540px; margin: 14px 0 0; color: #919da2; font-size: 14px; line-height: 1.75; }
.feature-accent p { color: rgba(0,0,0,.67); }
.mini-terminal { position: absolute; left: 34px; right: 34px; bottom: 34px; display: grid; grid-template-columns: 64px 1fr; gap: 3px 14px; padding: 20px; border: 1px solid var(--line); background: #080b0d; font-size: 12px; }
.mini-terminal span { grid-row: span 2; color: var(--gold); font: 700 10px monospace; }
.mini-terminal code { color: white; }
.mini-terminal em { color: #6d7a80; font-style: normal; }
.route-icon { position: relative; }
.route-icon::before { content: ""; width: 31px; height: 19px; border: 2px dashed currentColor; border-width: 2px 2px 0 0; transform: skewX(-30deg); }
.route-icon span, .route-icon b { position: absolute; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }
.route-icon span { left: 12px; bottom: 13px; }
.route-icon b { right: 10px; top: 12px; }
.gauge-icon { border-radius: 50%; }
.gauge-icon i { width: 26px; height: 26px; border: 2px solid currentColor; border-bottom-color: transparent; border-radius: 50%; position: relative; }
.gauge-icon i::after { content: ""; position: absolute; width: 2px; height: 15px; left: 12px; bottom: 10px; background: currentColor; transform: rotate(45deg); transform-origin: bottom; }
.shield-icon { clip-path: polygon(50% 0, 90% 15%, 84% 71%, 50% 100%, 16% 71%, 10% 15%); background: rgba(242,178,51,.08); }

.game-section { background: #080b0d; }
.game-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 80px; align-items: end; }
.game-heading > p { margin: 0 0 9px; color: #919da2; font-size: 16px; line-height: 1.75; }
.game-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.game-shot { margin: 0; }
.shot-frame { position: relative; height: 420px; border: 1px solid rgba(255,255,255,.11); overflow: hidden; background: #111; }
.game-shot-wide .shot-frame { height: 520px; }
.shot-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(242,178,51,.08); background: linear-gradient(to top, rgba(8,11,13,.18), transparent 32%); }
.shot-frame img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.88) contrast(1.04); transition: transform .5s ease, filter .5s ease; }
.game-shot:hover img { transform: scale(1.018); filter: saturate(1) contrast(1.04); }
.game-shot-wide img { object-position: center center; }
.game-shot:not(.game-shot-wide) img { object-position: 56% center; }
.shot-index { position: absolute; z-index: 2; top: 16px; left: 16px; display: grid; place-items: center; width: 42px; height: 42px; color: #111; background: var(--gold); font: 800 12px monospace; }
.game-shot figcaption { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 20px 2px 0; }
.game-shot figcaption strong { font: 700 21px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.game-shot figcaption span { color: #76848a; font-size: 12px; line-height: 1.7; }
.capture-note { margin: 35px 0 0; color: #526067; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.driver-section { position: relative; background: #11171a; overflow: hidden; }
.driver-section::before { content: ""; position: absolute; width: 720px; height: 720px; right: -250px; top: -250px; border: 1px solid rgba(242,178,51,.09); border-radius: 50%; box-shadow: 0 0 0 90px rgba(242,178,51,.025), 0 0 0 180px rgba(242,178,51,.018); }
.driver-heading { position: relative; display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 90px; margin-bottom: 58px; }
.driver-heading h2 { margin-top: 14px; font-size: clamp(48px, 6vw, 82px); }
.driver-intro > p { margin: 0 0 20px; color: #a2adb2; font-size: 16px; line-height: 1.75; }
.sample-notice { display: flex; gap: 13px; align-items: center; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(242,178,51,.07); }
.sample-notice strong { flex: 0 0 auto; color: var(--gold); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sample-notice span { color: #839096; font-size: 11px; }
.driver-lookup { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; align-items: stretch; }
.player-search { padding: 35px; border: 1px solid var(--line); background: #0c1113; }
.player-search > label { display: block; margin-bottom: 13px; color: #d7dcde; font: 600 19px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.player-search-row { display: grid; gap: 12px; }
.player-search input { height: 58px; width: 100%; padding: 0 17px; border: 1px solid rgba(255,255,255,.17); outline: 0; color: white; background: #161d20; }
.player-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,178,51,.12); }
.player-search .button { border: 0; }
.player-search > p { margin: 20px 0 10px; color: #68757b; font-size: 11px; }
.sample-drivers { display: flex; flex-wrap: wrap; gap: 7px; }
.sample-drivers button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.11); color: #aab3b7; background: transparent; font: 600 10px monospace; cursor: pointer; }
.sample-drivers button:hover, .sample-drivers button:focus-visible { border-color: var(--gold); color: var(--gold); outline: 0; }
.profile-card { padding: 35px; border: 1px solid rgba(242,178,51,.32); background: linear-gradient(140deg, #172126, #0d1214 68%); box-shadow: 12px 12px 0 rgba(0,0,0,.2); }
.profile-topline, .profile-footnote, .rank-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.demo-tag { padding: 5px 9px; color: #111; background: var(--gold); font: 800 9px monospace; text-transform: uppercase; }
.profile-status { color: #7d8a90; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.profile-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.profile-identity { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.driver-avatar { display: grid; place-items: center; width: 76px; height: 76px; border: 2px solid var(--gold); color: var(--gold); background: rgba(242,178,51,.05); font: 800 31px "Barlow Condensed", sans-serif; transform: skew(-4deg); }
.profile-identity small { color: #607077; font: 700 9px monospace; letter-spacing: .12em; }
.profile-identity h3 { margin-top: 3px; font-size: 38px; text-transform: none; }
.profile-identity p { margin: 6px 0 0; color: var(--gold); font: 600 14px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.rank-progress { margin: 30px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.rank-progress span, .rank-progress strong, .rank-progress small { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.rank-progress span, .rank-progress small { color: #75848a; }
.rank-progress strong { color: var(--gold); }
.progress-track { height: 6px; margin: 10px 0; background: #293135; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: linear-gradient(90deg, #d99116, var(--gold-light)); transition: width .35s ease; }
.profile-stats { display: grid; grid-template-columns: 1.45fr repeat(2, 1fr); gap: 12px; margin: 0; }
.profile-stats > div { min-height: 90px; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.profile-stats .primary-stat { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(242,178,51,.06); }
.profile-stats dt { color: #68767c; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-stats dd { margin: 8px 0 0; color: white; font: 700 27px "Barlow Condensed", sans-serif; }
.profile-stats .primary-stat dd { font-size: 42px; }
.profile-stats dd small { color: #78868c; font-size: 13px; }
.profile-footnote { gap: 20px; margin-top: 22px; color: #66757b; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.profile-card.profile-flash { animation: profile-flash .35s ease; }
@keyframes profile-flash { 50% { border-color: var(--gold); transform: translateY(-2px); } }

.commands-section { background: var(--paper); color: #141719; }
.command-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; align-items: start; }
.command-copy { position: sticky; top: 40px; }
.command-copy p { color: #596267; line-height: 1.8; }
.search-box { display: flex; align-items: center; gap: 10px; margin-top: 33px; padding: 0 17px; border: 1px solid #b9bdba; background: white; }
.search-box:focus-within { border-color: #111; box-shadow: 0 0 0 3px rgba(242,178,51,.35); }
.search-box svg { width: 19px; fill: none; stroke: #6d7578; stroke-width: 2; }
.search-box input { width: 100%; height: 54px; border: 0; outline: 0; background: transparent; }
.search-count { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.command-list { border-top: 2px solid #181b1c; }
.command-row { width: 100%; min-height: 70px; display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: 20px; padding: 0 18px; border: 0; border-bottom: 1px solid #cfd1ce; color: #141719; background: transparent; text-align: left; cursor: pointer; transition: background .18s, padding .18s; }
.command-row:hover, .command-row:focus-visible { padding-inline: 24px 12px; background: white; outline: none; }
.command-row code { font-size: 13px; font-weight: 700; }
.command-row span { color: #60696d; font-size: 13px; }
.command-row i { color: #8a9295; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.command-row.copied i { color: #188455; }
.no-results { padding: 24px 18px; color: #62696b; }

.journey-section { background: #0b0f11; }
.journey { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journey li { display: grid; grid-template-columns: 110px 1fr; padding: 34px 0; border-bottom: 1px solid var(--line); }
.journey li > span { color: var(--gold); font: 600 14px monospace; }
.journey li div { display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 70px; }
.journey h3 { font-size: 31px; }
.journey p { margin: 0; max-width: 540px; color: #8d989e; font-size: 14px; }
.journey code { color: var(--gold); }

.beta-section { padding-top: 0; background: #0b0f11; }
.beta-card { position: relative; display: grid; grid-template-columns: 1fr .7fr; gap: 80px; padding: 70px; border: 1px solid rgba(242,178,51,.34); background: radial-gradient(circle at 85% 0, rgba(242,178,51,.14), transparent 35%), #101517; }
.beta-label { position: absolute; top: 0; right: 0; padding: 8px 13px; color: #111; background: var(--gold); font: 800 10px monospace; }
.beta-copy { align-self: end; }
.beta-copy p { color: #97a2a7; font-size: 14px; line-height: 1.75; }

.join-section { background: var(--gold); color: #141414; }
.join-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.join-card .kicker { color: rgba(0,0,0,.58); }
.join-card p { max-width: 650px; color: rgba(0,0,0,.65); }
.join-actions { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.join-actions .button { border-color: #111; background: #111; color: white !important; box-shadow: 6px 6px 0 rgba(0,0,0,.2); }
.join-actions .button:hover { background: #222; }
.mail-link { color: #111; font-size: 13px; font-weight: 700; text-align: center; }

.footer { padding: 34px 0; background: #07090a; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
.footer p { color: #707b80; font-size: 11px; }
.footer .brand-mark { width: 35px; height: 35px; font-size: 16px; }
.footer .brand-name { font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 11px 18px; color: #111; background: var(--green); font-size: 12px; font-weight: 800; transform: translate(-50%, 90px); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; inset: 86px 0 auto; display: none; padding: 24px 20px 30px; flex-direction: column; align-items: stretch; gap: 18px; background: #0b0f11; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 100px 0 25px; }
  .hero-art { width: min(620px, 100%); height: 470px; justify-self: end; }
  .quick-stats { flex-wrap: wrap; }
  .feature-grid, .split-heading, .game-heading, .driver-heading, .driver-lookup, .command-layout, .beta-card, .join-card { grid-template-columns: 1fr; }
  .feature-wide { grid-row: auto; min-height: 560px; }
  .game-gallery { grid-template-columns: 1fr; }
  .game-shot-wide .shot-frame, .shot-frame { height: 460px; }
  .command-copy { position: static; }
  .command-layout { gap: 50px; }
  .driver-heading { gap: 30px; }
  .journey li div { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .nav { height: 74px; }
  .nav-links { top: 74px; }
  .hero { padding-top: 74px; }
  h1 { font-size: clamp(54px, 17vw, 80px); }
  .hero-copy { padding-top: 75px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .quick-stats { display: grid; grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .quick-stats div { min-width: 0; margin-right: 15px; padding-right: 15px; }
  .hero-art { height: 390px; }
  .moon { width: 100px; height: 100px; right: 35px; top: 38px; }
  .road-sign { right: 2px; bottom: 110px; transform: scale(.78) rotate(2deg); transform-origin: bottom right; }
  .horizon { bottom: 110px; }
  .road { height: 205px; }
  .hero-badge { left: 0; bottom: 25px; width: 90px; height: 90px; }
  .status-inner { padding-block: 18px; flex-wrap: wrap; gap: 8px 20px; }
  .status-inner p { width: 100%; flex-basis: 100%; margin: 0; }
  .version { display: none; }
  .section { padding: 82px 0; }
  .section-heading h2, .command-copy h2, .beta-card h2, .join-card h2 { font-size: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { min-height: 350px; padding: 26px; }
  .game-shot-wide .shot-frame, .shot-frame { height: 300px; }
  .game-shot figcaption { grid-template-columns: 1fr; gap: 5px; }
  .feature-wide .feature-icon { margin: 0 0 80px; }
  .mini-terminal { left: 26px; right: 26px; bottom: 26px; }
  .command-row { grid-template-columns: 130px 1fr; padding-inline: 8px; }
  .player-search, .profile-card { padding: 25px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-stats .primary-stat { grid-row: auto; grid-column: span 2; }
  .profile-footnote { align-items: flex-start; flex-direction: column; gap: 4px; }
  .command-row i { display: none; }
  .journey li { grid-template-columns: 54px 1fr; }
  .beta-card { gap: 30px; padding: 44px 25px 30px; }
  .join-card { gap: 35px; }
}

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