/* The site of Turnpike. Colours and shapes follow the game's own interface: navy windows with a yellow
   underline, chunky green buttons, a bright sky. */
:root {
  --navy: #14213d;
  --navy-2: #1b2a4a;
  --navy-3: #26385f;
  --ink: #eef3ff;
  --dim: #a9b6d3;
  --yellow: #ffd34d;
  --green: #3ecf6e;
  --green-d: #23a04c;
  --blue: #3d8bfd;
  --red: #ff6b5e;
  --sky: #58b6ee;
  --horizon: #d4ecf7;
  --radius: 22px;
  --display: "Unbounded", "Golos Text", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 17px/1.55 var(--text); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow { font: 600 13px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.title { font: 800 clamp(28px, 4.4vw, 52px)/1.08 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.sub { color: var(--dim); font-size: clamp(16px, 1.5vw, 19px); max-width: 62ch; margin-top: 18px; text-wrap: pretty; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 16px;
  font: 700 17px/1 var(--text); color: #fff; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, filter .12s; }
.btn-go { background: linear-gradient(#55dd82, var(--green)); box-shadow: 0 5px 0 var(--green-d), 0 14px 24px -8px rgba(20, 120, 60, .6); color: #06341a; }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--green-d), 0 18px 28px -8px rgba(20, 120, 60, .6); }
.btn-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-d); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; border-radius: 13px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: #0b1326; color: #fff;
  text-decoration: none; box-shadow: 0 5px 0 #050a16, 0 0 0 1.5px rgba(255, 255, 255, .16) inset; transition: transform .12s, box-shadow .12s; position: relative; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11.5px; line-height: 1.1; color: #b9c4dd; letter-spacing: .02em; }
.store b { display: block; font: 600 17px/1.2 var(--text); white-space: nowrap; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #050a16, 0 0 0 1.5px rgba(255, 255, 255, .3) inset; }
.store.soon { cursor: default; }
.store.soon::after { content: attr(data-soon); position: absolute; top: -9px; right: -8px; background: var(--yellow); color: #3a2a00; font: 700 11px/1 var(--text);
  padding: 5px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 0 #c79a12; }

/* ------------------------------------------------------------------ header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 44px);
  padding-top: calc(14px + env(safe-area-inset-top)); transition: background .25s, box-shadow .25s; }
.top.solid { background: rgba(16, 26, 50, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 800 18px/1 var(--display); color: #fff; text-shadow: 0 2px 10px rgba(10, 30, 60, .45); }
.brand svg { width: 38px; height: 38px; filter: drop-shadow(0 3px 0 #c79a12); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: #fff; text-shadow: 0 1px 8px rgba(10, 30, 60, .5); }
.nav a:hover { background: rgba(255, 255, 255, .16); }
.top-side { display: flex; align-items: center; gap: 10px; }
.lang { min-width: 44px; height: 42px; border-radius: 13px; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(16, 26, 50, .35); color: #fff; font: 700 14px/1 var(--text); cursor: pointer; }
.lang:hover { background: rgba(16, 26, 50, .6); }
.langs { position: relative; }
#lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; list-style: none; width: max-content; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--navy-2); border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 14px 40px rgba(4, 10, 26, .55); }
#lang-list[hidden] { display: none; }
#lang-list a { display: block; text-decoration: none; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: #fff; font: 500 15px/1.2 var(--text); text-align: left; cursor: pointer; white-space: nowrap; }
#lang-list a:hover { background: rgba(255, 255, 255, .1); }
#lang-list a.on { background: var(--yellow); color: var(--navy); font-weight: 700; }

/* ------------------------------------------------------------------ the story */
.story { height: 620vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--horizon); }
.sky { position: absolute; inset: 0; background: linear-gradient(#49aeee 0%, #8fd0f4 16%, var(--horizon) 34%, var(--horizon) 100%); }
.sky-evening { background: linear-gradient(#5d7fd0 0%, #f1a98a 20%, #ffd9b0 36%, #ffd9b0 100%); opacity: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s; }
.ready #scene { opacity: 1; }
.stage-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.no-webgl .stage-still { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 28, 58, .62) 0%, rgba(12, 28, 58, .34) 30%, rgba(12, 28, 58, 0) 56%), linear-gradient(rgba(12, 28, 58, .28), rgba(12, 28, 58, 0) 22%); }

.words { position: absolute; inset: 0; pointer-events: none; }
.chapter { position: absolute; left: clamp(20px, 6vw, 96px); top: 50%; width: min(560px, 44vw); transform: translateY(calc(-50% + var(--shift, 0px))); opacity: 0; visibility: hidden; will-change: opacity, transform; }
.chapter.on { pointer-events: auto; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 78px)/1.02 var(--display); letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(8, 24, 52, .5); text-wrap: balance; }
.hero .eyebrow { color: #fff; opacity: .92; text-shadow: 0 1px 10px rgba(8, 24, 52, .6); }
.lead { font-size: clamp(17px, 1.55vw, 21px); margin-top: 22px; max-width: 50ch; text-shadow: 0 1px 14px rgba(8, 24, 52, .65); text-wrap: pretty; }
.hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff; opacity: .9; }
.hint i { width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

.card { background: rgba(22, 34, 62, .93); border-radius: var(--radius); padding: 30px 32px 32px; width: min(480px, 40vw);
  box-shadow: 0 6px 0 #0b1429, 0 30px 60px -20px rgba(6, 16, 40, .7), 0 0 0 1.5px rgba(255, 255, 255, .08) inset; }
.card h2 { font: 800 clamp(24px, 2.6vw, 36px)/1.1 var(--display); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 3px solid var(--yellow); text-wrap: balance; }
.card p:not(.eyebrow) { color: #d5def2; text-wrap: pretty; }
.card .btn { margin-top: 22px; }

.era { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(18px, 5vh, 48px); width: min(340px, 44vw); padding: 16px 20px 18px; border-radius: 20px;
  background: rgba(16, 26, 50, .86); box-shadow: 0 5px 0 #0b1429, 0 0 0 1.5px rgba(255, 255, 255, .08) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.era-year { display: flex; align-items: baseline; gap: 10px; }
.era-year b { font: 800 clamp(34px, 4vw, 52px)/1 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.era-year span { color: var(--dim); font-weight: 600; }
.era-new { margin-top: 6px; font-size: 14.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.era-new b { color: #fff; font-weight: 600; }
.era-line { position: relative; height: 8px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, .14); display: flex; justify-content: space-between; }
.era-line i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.era-line u { position: relative; width: 3px; height: 14px; margin-top: -3px; border-radius: 2px; background: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------------ blocks */
.block { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.features { background: radial-gradient(1200px 500px at 80% -10%, #22407a 0%, rgba(34, 64, 122, 0) 70%), var(--navy); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(34px, 5vw, 60px); }
.feat { background: var(--navy-2); border-radius: var(--radius); padding: 28px 26px 30px; box-shadow: 0 5px 0 #0b1429, 0 0 0 1.5px rgba(255, 255, 255, .06) inset; transition: transform .25s, background .25s; }
.feat:hover { transform: translateY(-4px); background: var(--navy-3); }
.feat svg { width: 46px; height: 46px; color: #7fb1ff; margin-bottom: 18px; }
.feat h3 { font: 700 21px/1.2 var(--text); margin-bottom: 10px; }
.feat p { color: var(--dim); font-size: 16px; text-wrap: pretty; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid .reveal:nth-child(3n) { transition-delay: .16s; }

/* ------------------------------------------------------------------ the fleet */
.fleet { position: relative; color: #10203e; background: #6fb83f; }
.fleet-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(#58b6ee 0%, #a5daf6 36%, #d4ecf7 56%, #8fd04e 56.1%, #7cc446 100%); }
.fleet-head { padding-top: clamp(84px, 12vh, 130px); flex: none; }
.fleet .eyebrow { color: #0f3f7a; }
.fleet .sub { color: #1d3a63; }
.fleet-track { position: absolute; left: 0; bottom: clamp(34px, 6vh, 64px); display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 70px); padding-inline: 50vw 30vw; will-change: transform; z-index: 2; }
.truck { flex: none; width: clamp(240px, 27vw, 380px); margin: 0; display: flex; flex-direction: column-reverse; align-items: center; }
.truck img { width: 100%; aspect-ratio: 4/3; object-fit: contain; filter: drop-shadow(0 14px 8px rgba(10, 20, 30, .45)); will-change: transform; margin-top: -4%; position: relative; z-index: 1; }
.truck-tag { display: inline-block; text-align: left; background: var(--navy-2); color: #fff; border-radius: 16px; padding: 12px 16px 13px; min-width: 200px; box-shadow: 0 4px 0 #0b1429; position: relative; z-index: 2; }
.truck-tag b { display: block; font: 700 17px/1.2 var(--text); }
.truck-tag span { display: flex; gap: 12px; margin-top: 5px; font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.truck-tag span em { font-style: normal; color: var(--yellow); font-weight: 700; }
.fleet-road { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 21vh, 200px); background: linear-gradient(#5d636b, #4b5058); box-shadow: 0 -6px 0 #7c838c, 0 -14px 0 #e9dfb9; }
.fleet-road i { position: absolute; left: 0; right: 0; top: 22%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, #f4f1e6 0 54px, transparent 54px 120px); }

.fleet.parked .fleet-stage { background: linear-gradient(#58b6ee 0%, #a5daf6 40%, #d4ecf7 70%); }
.fleet.parked .fleet-track, .fleet.parked .fleet-road { display: none; }
.fleet-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.fleet.parked .fleet-canvas { display: block; }
.fleet.parked .fleet-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(122, 196, 240, .96) 0%, rgba(165, 218, 246, .82) 55%, rgba(212, 236, 247, 0) 100%); }
.fleet.parked .fleet-head { position: relative; z-index: 2; pointer-events: none; }
.fleet-now { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.fleet-now .truck-tag { animation: tag-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.fleet-count { background: var(--yellow); color: #10203e; font: 800 15px/1 var(--text); border-radius: 999px; padding: 9px 13px; box-shadow: 0 3px 0 #b8901e; white-space: nowrap; }
@keyframes tag-in { from { transform: translateY(10px) scale(.94); opacity: 0; } }
@media (max-width: 600px) {
  .fleet-now { flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
  .fleet.parked .fleet-head .sub { display: none; }
}

/* ------------------------------------------------------------------ the price */
.fair { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font: 600 14px/1 var(--text); }
.fair b, .fair span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 9px; border-radius: 99px; background: rgba(12, 24, 52, .62); color: #fff; }
.fair b { background: var(--yellow); color: var(--navy); font-weight: 700; }
.fair span::before { content: "✓"; color: var(--green); font-weight: 800; }
.price { background: linear-gradient(var(--navy), #172748); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(34px, 5vw, 60px); max-width: 980px; }
.plan { background: var(--navy-2); border-radius: var(--radius); padding: 30px 32px 34px; box-shadow: 0 6px 0 #0b1429; border: 1.5px solid rgba(255, 255, 255, .07); }
.plan.full { background: linear-gradient(160deg, #2b4179, #1f3160); border-color: rgba(255, 211, 77, .55); }
.plan-name { font: 600 13px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.plan.full .plan-name { color: var(--yellow); }
.plan-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 12px 0 20px; padding-bottom: 20px; border-bottom: 3px solid var(--yellow); }
.plan-cost b { font: 800 clamp(38px, 4.6vw, 56px)/1 var(--display); letter-spacing: -.02em; }
.plan-cost span { color: var(--dim); font-size: 15px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; color: #d5def2; text-wrap: pretty; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #06341a; font: 800 12px/1 var(--text); }
.plan-foot { margin-top: 20px; color: var(--dim); font-size: 14px; }
/* ------------------------------------------------------------------ screenshots */
.shots { background: var(--navy); }
.show { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(30px, 5vw, 56px); align-items: start; }
.show.plain { grid-template-columns: 1fr; }
.show-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.show-steps button { position: relative; width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 13px 16px 15px 12px; border: 0; border-radius: 16px; background: transparent; color: var(--dim); font: 600 16px/1.3 var(--text); cursor: pointer; overflow: hidden; transition: background .25s, color .25s; }
.show-steps button:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.show-steps b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-3); font: 600 13px/1 var(--display); color: var(--ink); transition: background .25s, color .25s; }
.show-steps i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.show-steps .on { background: var(--navy-2); color: #fff; box-shadow: 0 4px 0 #0b1429; }
.show-steps .on b { background: var(--yellow); color: var(--navy); }
.show-steps .on i { opacity: 1; }
.show-main { min-width: 0; }
.show-stage { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); box-shadow: 0 6px 0 #0b1429, 0 30px 60px -30px rgba(0, 0, 0, .6); }
.show-media, .show-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.show-media > * { object-fit: cover; display: block; }
.show-media > .in { animation: show-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes show-in { from { opacity: 0; transform: scale(1.035); } }
.show-stage.zoom .show-media { cursor: zoom-in; }
.show-kind { position: absolute; left: 14px; top: 14px; padding: 5px 11px 6px; border-radius: 99px; background: rgba(8, 16, 36, .72); color: var(--yellow); font: 600 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.show-kind::before { content: "▶ "; font-size: 9px; vertical-align: 1px; }
.show-arrow { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(8, 16, 36, .62); color: #fff; font: 400 28px/1 var(--text); padding: 0 0 4px; cursor: pointer; opacity: 0; transition: opacity .25s, background .25s; }
.show-arrow.prev { left: 14px; } .show-arrow.next { right: 14px; }
.show-stage:hover .show-arrow, .show-arrow:focus-visible { opacity: 1; }
.show-arrow:hover { background: rgba(8, 16, 36, .9); }
.show-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .16); }
.show-bar b { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }
.show-main { position: relative; }
.show-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: start; padding: 70px 26px 24px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(8, 16, 36, .78) 45%, rgba(8, 16, 36, .93)); pointer-events: none; }
.show-n { font: 600 13px/1 var(--display); color: var(--yellow); padding-top: 7px; letter-spacing: .04em; white-space: nowrap; }
.show-cap h3 { margin: 0 0 5px; font: 600 clamp(18px, 1.8vw, 23px)/1.25 var(--display); }
.show-cap p { margin: 0; color: #d3dcf0; max-width: 64ch; font-size: 16px; line-height: 1.45; }
.show-strip { display: flex; gap: 10px; margin-top: 26px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent; scroll-snap-type: x proximity; }
.show-strip:empty { display: none; }
.show-strip button { position: relative; flex: none; width: 156px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--navy-2); cursor: pointer; opacity: .55; outline: 2.5px solid transparent; outline-offset: -2.5px; transition: opacity .25s, outline-color .25s; scroll-snap-align: start; }
.show-strip button:hover { opacity: .9; }
.show-strip .on { opacity: 1; outline-color: var(--yellow); }
.show-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-strip em { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 16, 36, .75); color: var(--yellow); font: normal 9px/1 var(--text); padding-left: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 28, .94); display: grid; place-items: center; padding: 3vmin; grid-template-rows: 1fr auto; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 14px; align-self: center; }
.lightbox p { color: var(--dim); text-align: center; }
.lightbox button { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------ the records */
.board { background: radial-gradient(1000px 500px at 10% 0%, #1f3d73 0%, rgba(31, 61, 115, 0) 70%), var(--navy); }
.window { margin-top: clamp(30px, 5vw, 54px); background: var(--navy-2); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 0 #0b1429, 0 0 0 1.5px rgba(255, 255, 255, .07) inset; }
.window-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; font: 700 20px/1.2 var(--text); border-bottom: 3px solid var(--yellow); }
.tabs { display: flex; gap: 4px; background: #101b36; border-radius: 13px; padding: 4px; }
.tabs button { border: 0; border-radius: 10px; padding: 9px 14px; background: none; color: var(--dim); font: 600 14.5px/1 var(--text); cursor: pointer; }
.tabs button.on { background: var(--blue); color: #fff; box-shadow: 0 2px 0 #1f5fc4; }
.window-body { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; min-height: 380px; }
.islands { padding: 14px; display: flex; flex-direction: column; gap: 8px; border-right: 1.5px solid rgba(255, 255, 255, .07); }
.island { display: block; width: 100%; text-align: left; border: 0; border-radius: 15px; padding: 13px 15px; background: #16233f; color: #fff; cursor: pointer; font: inherit; transition: background .15s; }
.island:hover { background: var(--navy-3); }
.island.on { background: var(--navy-3); box-shadow: 0 0 0 2px var(--yellow) inset; }
.island b { display: block; font-weight: 700; font-size: 17px; }
.island span { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13.5px; color: var(--dim); }
.level { color: var(--green); font-weight: 600; }
.level.l2 { color: var(--yellow); } .level.l3 { color: var(--red); } .level.l0 { color: #7fd0ff; }
.table { padding: 18px 24px 24px; }
.table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.table-head h3 { font: 700 22px/1.2 var(--text); }
.copy { border: 0; border-radius: 12px; padding: 10px 14px; background: #101b36; color: #fff; font: 600 14px/1 var(--text); cursor: pointer; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.copy:hover { background: #0b1429; }
.rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rows th { text-align: left; font: 600 12.5px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 8px; }
.rows td { padding: 11px 8px; border-top: 1.5px solid rgba(255, 255, 255, .07); }
.rows td:first-child, .rows th:first-child { width: 44px; text-align: center; }
.rows .num { text-align: right; }
.rows tr.r1 td:first-child { color: var(--yellow); font-weight: 800; }
.rows tr.r1 td:nth-child(2) { font-weight: 700; }
.rows .time { color: var(--yellow); font-weight: 700; }
.empty { padding: 44px 24px; text-align: center; color: var(--dim); grid-column: 1 / -1; max-width: 56ch; margin: auto; }
.empty b { display: block; color: #fff; font-size: 20px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ get the game */
.get { background: linear-gradient(#14213d 0%, #233c78 46%, #f1a98a 100%); padding-top: clamp(72px, 11vw, 130px); }
.get-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; padding-bottom: clamp(60px, 9vw, 110px); }
.note { background: rgba(20, 33, 61, .93); border-radius: 24px; padding: 28px; box-shadow: 0 6px 0 #0b1429, 0 0 0 1.5px rgba(255, 255, 255, .08) inset; display: grid; gap: 14px; }
.note h3 { font: 700 22px/1.2 var(--text); padding-bottom: 12px; border-bottom: 3px solid var(--yellow); }
.note label span { display: block; font-size: 14px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
.note input, .note textarea { width: 100%; border: 0; border-radius: 13px; padding: 14px 15px; background: #0e1830; color: #fff; font: 16px/1.4 var(--text); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; resize: vertical; }
.note input:focus, .note textarea:focus { outline: 0; box-shadow: 0 0 0 2.5px var(--blue) inset; }
.note-state { min-height: 1.5em; font-size: 15px; color: var(--green); }
.note-state.bad { color: var(--red); }
.note .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-fine { font-size: 13px; line-height: 1.45; color: var(--dim); }
.note-fine a { color: #fff; }
.bot-check:empty { display: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a:hover, .foot > a:hover { text-decoration: underline; }
@media (max-width: 600px) { .foot { flex-wrap: wrap; gap: 10px 22px; } }
.foot { display: flex; justify-content: space-between; padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); color: #1b2a4a; font-weight: 600; font-size: 14.5px; }
.foot a { text-decoration: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-side { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .scrim { background: linear-gradient(rgba(12, 28, 58, .66) 0%, rgba(12, 28, 58, .4) 30%, rgba(12, 28, 58, 0) 54%); }
  .chapter { left: 20px; right: 20px; width: auto; top: calc(84px + env(safe-area-inset-top)); transform: translateY(var(--shift, 0px)); }
  .card { width: auto; padding: 20px 20px 22px; }
  .card h2 { padding-bottom: 11px; margin-bottom: 11px; }
  .card p:not(.eyebrow) { font-size: 15.5px; line-height: 1.45; }
  .lead { margin-top: 14px; font-size: 16.5px; line-height: 1.45; }
  .stores { margin-top: 20px; gap: 10px; }
  .store { min-height: 50px; padding: 6px 14px 6px 12px; }
  .store b { font-size: 15px; }
  .hint { display: none; }
  .era { left: 16px; right: 16px; width: auto; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 12px 16px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; }
  .era-new { margin: 0; text-align: right; }
  .era-line { grid-column: 1 / -1; margin-top: 10px; }
  .window-body { grid-template-columns: 1fr; }
  .islands { border-right: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .07); flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; }
  .island { flex: none; width: 240px; scroll-snap-align: start; }
  .table { padding: 16px 14px 20px; }
  .rows .hide-s { display: none; }
  .get-in { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr; }
  .show-steps { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .show-steps button { padding: 9px 16px 11px 9px; grid-template-columns: 28px auto; gap: 9px; font-size: 15px; background: rgba(255, 255, 255, .05); }
  .show-steps b { width: 28px; height: 28px; font-size: 12px; }
  .show-arrow { display: none; }
  .show-cap { position: static; background: none; padding: 16px 2px 0; min-height: 7.5em; pointer-events: auto; }
  .show-cap p { color: var(--dim); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .show-cap { grid-template-columns: 1fr; min-height: 9em; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px 22px 26px; }
  .fair { font-size: 13px; gap: 6px; } .fair b, .fair span { padding: 7px 11px 8px; }
  .show-n { padding: 0; }
  .show-strip button { width: 124px; }
  .show-stage { border-radius: 16px; }
  .brand span { font-size: 16px; }
  .window-head { padding: 16px; font-size: 18px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .chapter { top: 50%; transform: translateY(calc(-50% + var(--shift, 0px))); width: 46vw; right: auto; }
  .lead { font-size: 15px; } .hero h1 { font-size: 30px; }
  .era { left: auto; width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .show-media > .in { animation: none; }
}
@media (max-width: 600px) {
  #lang-list { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}

/* ------------------------------------------------------------------ plain pages: terms, privacy, not found */
.plain { background: #f4f1e8; color: #1b2a4a; }
.plain .top .brand { text-shadow: none; }
.plain-main { padding: calc(110px + env(safe-area-inset-top)) 0 60px; }
.legal { max-width: 760px; font-size: 17px; line-height: 1.65; }
.legal h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 10px; color: var(--navy); }
.legal h2 { font: 700 23px/1.25 var(--text); margin: 40px 0 10px; padding-top: 14px; border-top: 3px solid var(--yellow); color: var(--navy); }
.legal h3 { font: 700 18px/1.3 var(--text); margin: 26px 0 6px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: #1f6fb2; }
.legal .legal-date { color: #5d6a85; font-size: 15px; }
.legal mark { background: #ffe58a; padding: 0 4px; border-radius: 4px; }
.plain-foot { color: #5d6a85; border-top: 1px solid rgba(27, 42, 74, .15); }
