/* src/about/about.css — the landing page (about.html) in the game's own look: the tokens of src/ui.js (dark glass, one accent
   per world, heavy italic names like the DRIFTIT wordmark, thin tabular numerals like the HUD), laid out as a page. */
:root {
  color-scheme: dark;
  --bg: #0c0e13; --ink: #f5f5f2; --ink-2: rgba(245,245,242,.74); --ink-3: rgba(245,245,242,.5); --line: rgba(255,255,255,.13);
  --glass: rgba(20,23,31,.62); --accent: #f28a3c; --gold: #ffd257; --good: #45d68a;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.65);
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2 * var(--gut)); margin-inline: auto; }

/* ── shared pieces (as in src/ui.js) ── */
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: 0 0 auto; }
.title { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.012em; line-height: .92; text-shadow: 0 2px 26px rgba(0,0,0,.35); }
.btn { height: 52px; padding: 0 22px; border-radius: 12px; border: 1px solid rgba(255,255,255,.26); background: rgba(12,14,20,.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, filter .15s; }
.btn:hover { border-color: rgba(255,255,255,.75); background: rgba(12,14,20,.6); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0c0e13; box-shadow: 0 12px 30px -12px var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 11px; }
.btn kbd { font: inherit; font-size: 10.5px; letter-spacing: .04em; padding: 3px 7px 2px; border-radius: 6px; background: rgba(0,0,0,.16); }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12,14,19,.74); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 40px; height: 25px; overflow: visible; }
.logo path { fill: none; stroke: var(--accent); stroke-width: 4.6; stroke-linecap: round; }
.word { font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ── hero: the world behind a dark left-to-right grade, like the menu ── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 840px); display: grid; align-items: center; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,14,19,.95) 0%, rgba(12,14,19,.82) 32%, rgba(12,14,19,.25) 62%, rgba(12,14,19,.05) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(12,14,19,0) 26%); }
.hero-in { max-width: 760px; padding: 76px 0 70px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 94px); }
.lede { margin: 24px 0 32px; font-size: clamp(16px, 1.45vw, 19px); color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 46px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dt { font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 0; font-weight: 200; font-size: clamp(32px, 3.2vw, 46px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ── sections ── */
.sec { padding-top: clamp(72px, 9vw, 124px); }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.sec-h > p { margin: 0; max-width: 32em; color: var(--ink-2); }
.sec h2 { font-size: clamp(36px, 4.6vw, 64px); }

.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px 24px 26px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feat .num, .trk .num { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.feat h3 { margin: 10px 0; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.02; }
.feat p { margin: 0; font-size: 15px; color: var(--ink-2); }

.worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.world { overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); }
.world .pic { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #151820; }
.world .pic::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(0deg, rgba(8,10,14,.9), rgba(8,10,14,0)); }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.world:hover img { transform: scale(1.045); }
.world .ttl { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; }
.world .place { display: block; font-size: 21px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.world .kind { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.world .kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
.world p { margin: 0; padding: 14px 18px 18px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* track cards: the menu's level cards, grown into a page grid */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.trk { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(130% 100% at 45% 25%, var(--g2) 0%, var(--g) 72%); box-shadow: 0 10px 24px -14px rgba(0,0,0,.75);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; }
.trk:hover { transform: translateY(-3px); border-color: var(--a); box-shadow: 0 0 0 1px var(--a), 0 16px 30px -14px var(--a); }
.trk svg { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trk-f { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; background: rgba(9,11,16,.8); }
.trk-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.trk .nm { margin: 0; font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .num { color: var(--a); }
.trk .hint { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.trk .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: auto 0 0; font-size: 11.5px; color: var(--ink-3); }
.trk .meta b { font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }

.ctrls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel, .board { padding: 20px 20px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
/* one grid for the whole list (rows are subgrids), so the key column is as wide as its widest keys and never wraps */
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; }
.keys li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 44px; padding: 5px 10px; border-radius: 9px; font-size: 15px; }
.keys li:nth-child(odd) { background: rgba(255,255,255,.035); }
.keys li > span:last-child { color: var(--ink-2); }
kbd { display: inline-block; min-width: 27px; padding: 6px 8px 5px; border-radius: 7px; border: 1px solid rgba(255,255,255,.16); border-bottom-width: 2px;
  background: rgba(255,255,255,.1); font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .04em; text-align: center; color: var(--ink); }
.keys .or { margin: 0 3px; font-size: 12px; color: var(--ink-3); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

.lb { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.lb-copy h2 { margin-bottom: 22px; }
.lb-copy p:not(.kicker) { margin: 0 0 14px; max-width: 32em; color: var(--ink-2); }
.lb-copy .btn { margin-top: 12px; }
.board { padding: 18px 14px 12px; }
.board-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.board-h small { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .2em; color: var(--ink-3); }
.board-h small i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.rows { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.rows li { break-inside: avoid; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 48px; padding: 0 10px; border-radius: 9px; }
.rows li:nth-child(odd) { background: rgba(255,255,255,.035); }
.rows .r { font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rows .n { min-width: 0; display: grid; line-height: 1.2; }
.rows .n b, .rows .n em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .n b { font-size: 13px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.rows .n em { font-size: 12.5px; font-style: normal; color: var(--ink-3); }
.rows .t { font-size: 15px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.rows li.set .n em { color: var(--ink-2); font-weight: 500; }
.rows .n em a { color: inherit; text-decoration: none; }
.rows .n em a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rows li.set .t { color: var(--ink); }
.rows li.set .r { color: var(--gold); }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; font-size: 26px; font-weight: 200; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); max-width: 44em; }

.final { margin-top: clamp(72px, 9vw, 124px); border-top: 1px solid var(--line);
  background: radial-gradient(60% 140% at 85% 100%, rgba(242,138,60,.2), rgba(242,138,60,0) 70%); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 76px 0; }
.final h2 { font-size: clamp(40px, 6vw, 84px); }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── privacy / terms ── */
.doc { max-width: 760px; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.doc h1 { font-size: clamp(40px, 6vw, 72px); }
.doc .upd { margin: 14px 0 34px; font-size: 13px; color: var(--ink-3); }
.doc h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.doc p { margin: 0 0 14px; color: var(--ink-2); max-width: 40em; }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── smaller screens ── */
@media (max-width: 980px) {
  .feats, .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero { min-height: 0; }
  .hero-img { object-position: 64% 50%; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(12,14,19,.62) 40%, rgba(12,14,19,.74) 100%); }
  .hero-in { padding: 56px 0 48px; }
  .ctrls { grid-template-columns: 1fr; }
  .rows { columns: 1; }
}
@media (max-width: 600px) {
  .feats, .worlds { grid-template-columns: 1fr; }
  .stats { gap: 16px 28px; }
  .keys { grid-template-columns: 1fr; }
  .keys li { row-gap: 4px; padding: 8px 10px; }
  .btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world img, .trk, .btn, .faq summary::after { transition: none; }
}
