/* TryAIgame v1 prototype — a dark "stage" so game art carries the color.
   One centered 1240px column; the lime accent is reserved for Play, the current selection and #1.
   Dark-only by design (game art reads better on dark, and it matches game-store conventions).
   Visual language shared with PlayDB (sibling project): same type stack, radii and component shapes. */
/* Self-hosted fonts (latin + latin-ext subsets from Google Fonts, SIL Open Font License). */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin-ext.65519526.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin.e27b46a1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-ext.4db04620.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin.e8a27852.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-ext.6748e3a4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin.271d5973.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0b0f;
  --bg-2: #0e1015;
  --surface: #14161d;
  --surface-2: #1b1e27;
  --surface-3: #242833;
  --line: #22262f;
  --line-2: #313644;
  --fg: #f0f2f6;
  --fg-2: #a8adba;
  --fg-3: #707687;
  --accent: #c4f13a;
  --accent-2: #d8ff6a;
  --accent-ink: #121800;
  --accent-soft: rgba(196, 241, 58, .13);
  --silver: #c9d2e3;
  --bronze: #e39a62;
  --sky: #63c7ff;
  --violet: #b59cff;
  --mint: #40dfa0;
  --amber: #ffb347;
  --rose: #ff6b8a;
  --scrim: rgba(4, 5, 8, .74);
  --glass: rgba(12, 14, 20, .72);

  --f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --f-num: "Big Shoulders Display", "Bricolage Grotesque", Impact, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --top-h: 64px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--top-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 13px; height: 13px; }
.ic--fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 700 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow--accent { color: var(--accent); }
.meta { color: var(--fg-3); font-size: 13px; }
.muted { color: var(--fg-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.97); }
.btn .ic { width: 17px; height: 17px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--ghost, .btn.secondary { background: rgba(255, 255, 255, .07); color: var(--fg); border-color: transparent; }
.btn--ghost:hover, .btn.secondary:hover { background: rgba(255, 255, 255, .13); }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--line:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: default; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s, gap .2s; }
.link:hover { color: var(--accent); gap: 7px; }

/* ---------- chips (model / tool credits) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12.5px/1 var(--f-body); color: var(--fg); background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; max-width: 100%; transition: border-color .2s, background .2s; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
a.chip:hover { border-color: var(--fg-3); background: var(--surface-3); }
.chip.tool::before { background: var(--sky); }
.chip.runtime::before { background: var(--violet); }
.chip.runtime { white-space: normal; height: auto; min-height: 26px; padding-block: 4px; line-height: 1.25; }
.chip.ev-reported { border-style: dashed; }
.chip.ev-none { color: var(--fg-3); background: transparent; }
.chip.ev-none::before { background: var(--fg-3); }
.chip.ev-via::before { opacity: .6; }
.chip-more { font: 600 12px/1 var(--f-body); color: var(--fg-3); padding: 0 4px; }

/* ---------- tags (display only, never filters) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font: 600 12px/1 var(--f-body); color: var(--fg-2); background: var(--surface-2); white-space: nowrap; }
.tag--warn { color: var(--amber); background: rgba(255, 179, 71, .13); }
.tag--sky { color: var(--sky); background: rgba(99, 199, 255, .12); }
.tag--violet { color: var(--violet); background: rgba(181, 156, 255, .13); }
.tag--mint { color: var(--mint); background: rgba(64, 223, 160, .12); }
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font: 700 11.5px/1 var(--f-body); letter-spacing: .02em; color: #fff; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.badge--off::before { background: var(--fg-3); }

/* ---------- covers ---------- */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.autocover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 7% 7.5%; background: radial-gradient(120% 90% at 85% 10%, var(--ac-a) 0%, transparent 60%), linear-gradient(160deg, var(--ac-b), #07080b 90%); color: #fff; isolation: isolate; container-type: inline-size; }
.autocover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; }
.ac-pat-dots::before { background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 14px 14px; mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.ac-pat-grid::before { background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(200deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 75%); }
.ac-pat-lines::before { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px); }
.ac-pat-stars::before { background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.4px); background-size: 61px 47px, 37px 29px; background-position: 0 0, 13px 17px; }
.ac-pat-rings::before { background: repeating-radial-gradient(circle at 90% 0%, transparent 0 18px, rgba(255, 255, 255, .09) 18px 19px); }
.ac-title { font: 800 clamp(18px, 9cqi, 46px)/1.02 var(--f-display); letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.autocover.len-m .ac-title { font-size: clamp(16px, 7.4cqi, 38px); }
.autocover.len-l .ac-title { font-size: clamp(15px, 6cqi, 30px); }
.ac-native { display: block; margin-top: .3em; font-size: .52em; font-weight: 600; opacity: .8; letter-spacing: 0; }
.ac-by { font: 600 clamp(10px, 2.6cqi, 13px)/1 var(--f-body); opacity: .7; letter-spacing: .02em; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 15, .84); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: var(--top-h); display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark { width: 30px; height: 30px; object-fit: contain; display: block; flex: none; }
.logo__word { font: 800 20px/1 var(--f-display); letter-spacing: -.03em; }
.logo__word em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--fg-2); font-weight: 600; font-size: 14.5px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 11, 15, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--fg-3); font-size: 11px; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--fg); }
.tabbar a[aria-current="page"] .ic { color: var(--accent); }

/* ---------- section heads ---------- */
.section { padding-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.section-head p { color: var(--fg-2); margin-top: 6px; }

/* ---------- HOME: spotlight ---------- */
.home-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 22px; }
.home-intro h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.home-intro p { color: var(--fg-3); font-size: 14px; }
.hero { padding-top: 14px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.hero__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; min-height: 400px; background: var(--surface); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide > .cover { position: absolute; inset: 0 0 0 24%; aspect-ratio: auto; background: transparent; }
.slide > .cover img { transform: scale(1.06); transition: transform 8s linear; }
.slide.is-on > .cover img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 24%, rgba(20, 22, 29, .82) 40%, rgba(20, 22, 29, 0) 72%), linear-gradient(0deg, rgba(10, 11, 15, .8) 0%, rgba(10, 11, 15, 0) 40%); pointer-events: none; }
.slide__body { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(20px, 3.4vw, 40px); max-width: 600px; display: grid; gap: 14px; }
.slide__title { font: 800 clamp(30px, 4.3vw, 54px)/1 var(--f-display); letter-spacing: -.025em; }
.slide__title a:hover { color: var(--accent); }
.slide__hook { color: #d9dde7; font-size: clamp(15px, 1.4vw, 17px); }
.slide__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #c3c8d4; font-size: 13.5px; font-weight: 600; }
.slide__meta span { display: inline-flex; align-items: center; gap: 6px; }
.slide__meta .ic { color: var(--fg-3); }
.slide__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.slide.is-on .slide__body > * { animation: rise .7s var(--ease) both; }
.slide.is-on .slide__body > *:nth-child(2) { animation-delay: .06s; }
.slide.is-on .slide__body > *:nth-child(3) { animation-delay: .12s; }
.slide.is-on .slide__body > *:nth-child(4) { animation-delay: .18s; }
.slide.is-on .slide__body > *:nth-child(5) { animation-delay: .24s; }
.hero__dots { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: none; gap: 6px; }
.hero__dots button { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.hero__dots button.is-on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
.hero__list { display: flex; flex-direction: column; gap: 6px; }
.queue { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); text-align: left; position: relative; transition: background .2s; overflow: hidden; }
.queue:hover { background: var(--surface); }
.queue.is-on { background: var(--surface-2); }
.queue .cover { border-radius: 9px; }
.queue .ac-by, .queue .ac-native { display: none; }
.queue .ac-title { font-size: 12px; }
.queue b { font-weight: 700; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.queue small { display: block; margin-top: 3px; color: var(--fg-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue__bar { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; }
.queue.is-on .queue__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
.is-paused .queue.is-on .queue__bar::after, .is-paused .hero__dots button.is-on::after { animation-play-state: paused; }

/* ---------- HOME: model strip ---------- */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mtile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.mtile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mtile__stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mtile__stack .cover { border-radius: 6px; aspect-ratio: 1; }
.mtile__stack .ac-title, .mtile__stack .ac-by, .mtile__stack .ac-native { display: none; }
.mtile b { font: 700 15px/1.2 var(--f-display); padding-right: 22px; }
.mtile small { color: var(--fg-3); font-size: 12.5px; margin-top: -6px; }
.mtile__n { position: absolute; top: 14px; right: 14px; font: 800 18px/1 var(--f-num); color: var(--fg-3); }
.mtile--more { justify-content: center; background: transparent; border: 1px dashed var(--line-2); }
.mtile--more b { display: flex; align-items: center; gap: 6px; padding: 0; }
.mtile--more small { margin-top: 0; }

/* ---------- game cards ---------- */
.feed { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; container-type: inline-size; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; animation: rise .5s var(--ease) both; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover .cover img { transform: scale(1.04); }
.card__media { position: relative; display: block; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.015em; line-height: 1.2; }
.card__title a:hover { color: var(--accent); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__line { color: var(--fg-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .ctags a, .card .btn { position: relative; z-index: 2; }
.card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card__foot .via { flex: 1; }
.card__foot .btn { flex: none; }

/* card facts: model · engine · open source · cost */
.ctags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag .ic { width: 13px; height: 13px; margin-right: 5px; opacity: .8; }
.tag--eng { color: #c9cedb; }
.tag--cost { color: var(--amber); background: rgba(255, 179, 71, .1); }
/* channel + author */
.via { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--fg-2); font-size: 13px; font-weight: 600; }
.via__ch { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--fg); font: 700 11px/1 var(--f-body); letter-spacing: .02em; }
.via__ch .ic { width: 12px; height: 12px; }
.via--x, .via--github, .via--youtube { padding: 0; }
.via--steam { background: #1b2838; color: #c7d5e0; }
.via--bilibili { background: rgba(0, 174, 236, .16); color: #5fd0ff; }
.via--itch { background: rgba(250, 92, 92, .16); color: #ff8f8f; }
.via--vibejam { background: var(--accent-soft); color: var(--accent); }
.via__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* where AI was used — the lowest-priority card fact */
.tag--ai { color: var(--violet); background: rgba(181, 156, 255, .12); }
.gd__ai { color: var(--fg); font-size: 14.5px; margin: -2px 0 12px; }
.card.is-off .cover img { filter: grayscale(.7) brightness(.7); }
.card.is-target, .rk.is-target { border-color: var(--accent); }
.gsrc { display: none; }

/* promo cards inside the grid */
.note { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); overflow: hidden; isolation: isolate; animation: rise .5s var(--ease) both; min-width: 0; }
.note::before { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(var(--note-c, var(--accent)), transparent 70%); opacity: .22; z-index: -1; }
.note .note__title { color: var(--fg); font: 700 22px/1.12 var(--f-display); letter-spacing: -.02em; }
.note p { color: var(--fg-2); font-size: 14px; }
.note .mtile__stack { margin-top: auto; }
.note .btn { align-self: flex-start; }
.note--sky { --note-c: var(--sky); }

.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; }

/* ---------- MODEL PAGES: rankings layout ---------- */
.rk-hero { padding-top: 34px; }
.rk-hero h1 { font-size: clamp(32px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-top: 12px; }
.rk-sub { color: var(--fg-2); font-size: clamp(15px, 1.4vw, 17px); margin-top: 14px; }
.pick { position: relative; display: inline-block; }
.pick__btn { display: inline-flex; align-items: center; gap: .12em; font: inherit; letter-spacing: inherit; color: var(--accent); border-bottom: .07em solid var(--accent); line-height: 1.02; padding-bottom: .02em; text-align: left; }
.pick__btn .ic { width: .5em; height: .5em; stroke-width: 2.6; transition: transform .2s; }
.pick__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.pick__menu { position: absolute; left: 0; top: calc(100% + 12px); z-index: 50; width: 320px; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font: 600 14.5px/1.3 var(--f-body); letter-spacing: 0; animation: drop .18s var(--ease); }
.pick__menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--fg); }
.pick__menu a:hover, .pick__menu a[aria-current="page"] { background: var(--surface-2); }
.pick__menu a small { color: var(--fg-3); font-weight: 600; font-size: 12.5px; }
.pick__menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 24px; padding-bottom: 2px; }
.chiprow::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; transition: color .2s, background .2s, border-color .2s; }
.fchip:hover { color: var(--fg); border-color: var(--fg-3); }
.fchip small { color: var(--fg-3); font-weight: 700; font-size: 12px; }
.fchip[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fchip[aria-current="page"] small { color: #5a606e; }
.fchip .ic { width: 16px; height: 16px; }
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.rk-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--fg-2); font-size: 13.5px; font-weight: 600; }
.rk-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rk-facts .ic { color: var(--fg-3); }
.rk-list { list-style: none; display: grid; gap: 16px; }
.rk { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 340px; gap: 22px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); animation: rise .5s var(--ease) both; transition: border-color .25s; }
.rk:hover { border-color: var(--line-2); }
.rk__num { font: 900 64px/.9 var(--f-num); color: var(--fg-3); text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rk--1 .rk__num { color: var(--accent); }
.rk--2 .rk__num { color: var(--silver); }
.rk--3 .rk__num { color: var(--bronze); }
.rk__main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.rk__head h2 { font-size: 22px; letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rk__head h2 a:hover { color: var(--accent); }
.rk__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; color: var(--fg-3); font-size: 13px; }
.rk__sub .via { max-width: 100%; }
.rk__head .tag { font-family: var(--f-body); letter-spacing: 0; }
.rk__blurb { color: #c8cdd9; font-size: 15px; }
.rk__made { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }
.rk__made ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rk__made li span { color: var(--fg-3); }
.rk__made li b { color: var(--fg); font-weight: 600; }
.rk__side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.rk__cover { display: block; border-radius: 12px; overflow: hidden; position: relative; }
.rk__cover:hover img { transform: scale(1.04); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.stat small { display: block; font: 700 10.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.stat b { display: block; margin-top: 5px; font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.rk__actions { display: flex; gap: 8px; }
.rk__actions .btn { flex: 1; }
.rk--1 { overflow: hidden; isolation: isolate; border-color: rgba(196, 241, 58, .28); }
.rk--1 .rk__bg { position: absolute; inset: 0; z-index: -1; }
.rk--1 .rk__bg .cover { position: absolute; inset: 0; aspect-ratio: auto; }
.rk--1 .rk__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 29, .97) 30%, rgba(20, 22, 29, .88) 62%, rgba(20, 22, 29, .74)), linear-gradient(0deg, var(--surface) 0%, transparent 60%); }

/* ---------- panels (model pages, detail page) ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 44px; }
.panel { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel > h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 14px; }
.panel > h2 .ic { color: var(--accent); }
.panel p + p { margin-top: 12px; }
.panel p { color: #c8cdd9; }
.panel .meta { margin-top: 10px; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quotes li { padding: 16px; border-radius: 14px; background: var(--surface-2); color: #c8cdd9; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.quotes a { color: var(--fg-3); font-size: 12.5px; font-weight: 600; margin-top: auto; }
.quotes a:hover { color: var(--accent); }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { display: grid; gap: 4px; }
.faq h3 { font-size: 16px; padding-top: 16px; }
.faq h3:first-child { padding-top: 0; }
.faq p { color: var(--fg-2); font-size: 14.5px; margin-top: 6px; }

/* ---------- game modal ---------- */
.gm { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.gm::backdrop { background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gm[open] { display: grid; place-items: center; padding: 24px 16px; animation: fade .2s; }
.gm__panel { position: relative; width: min(880px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: zoomIn .25s var(--ease); }
.gm__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.gm__close:hover { background: rgba(30, 33, 42, .92); }
.gm__body { overflow: auto; overscroll-behavior: contain; }
.gm__loading { padding: 90px 24px; text-align: center; color: var(--fg-3); }

/* game detail content (modal + fragments) */
.gd__hero { position: relative; }
.gd__hero .cover { aspect-ratio: 16 / 7; }
.gd__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 2%, rgba(20, 22, 29, .55) 40%, transparent 75%); pointer-events: none; }
.gd__head { position: relative; z-index: 2; margin-top: -86px; padding: 0 28px; display: grid; gap: 10px; }
.gd__title { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.gd__aka { color: var(--fg-2); font-size: 13.5px; }
.gd__by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--fg-2); font-size: 14px; }
.gd__by b { color: var(--fg); font-weight: 700; }
.socials { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.social { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg); transition: border-color .2s, background .2s; }
.social:hover { border-color: var(--fg-3); background: var(--surface-3); }
.social .ic { width: 14px; height: 14px; }
.gd__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.gd__hint { color: var(--fg-3); font-size: 13px; }
.gd__line { color: #d9dde7; font-size: 15.5px; }
.tagdefs { margin: 0; display: grid; gap: 8px; }
.tagdefs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tagdefs dd { margin: 0; color: var(--fg-2); font-size: 14px; }
.gd__cname { font-weight: 700; margin-bottom: 10px; }
.clinks { list-style: none; display: grid; gap: 6px; }
.clinks a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.clinks a:hover { color: var(--accent); }
.clinks b { color: var(--fg); font-weight: 600; }
.clinks .ic { width: 15px; height: 15px; }
.gd__main { padding: 22px 28px 8px; display: grid; gap: 22px; }
.gd__main .stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gd__sec > .gd__h { font: 700 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.gd__sec > p { color: #ccd1dc; font-size: 15px; }
.gd__sec > p + p { margin-top: 8px; }
.made { list-style: none; display: grid; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.made li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.made li:first-child { border-top: 0; }
.made .role { color: var(--fg-3); font-weight: 600; font-size: 13px; }
.made .what b { font-weight: 600; }
.made .what { overflow-wrap: anywhere; }
.ev { display: block; margin-top: 2px; color: var(--fg-3); font-size: 12.5px; }
.ev a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ev a:hover { color: var(--accent); }
.ev-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 6px; font: 700 11px/1 var(--f-body); color: var(--accent); background: var(--accent-soft); vertical-align: 1px; white-space: nowrap; }
.ev-pill.reported { color: var(--amber); background: rgba(255, 179, 71, .13); }
.ev-pill.none { color: var(--fg-3); background: var(--surface-2); }
.note-box { padding: 12px 14px; border-radius: 12px; background: rgba(255, 179, 71, .08); border: 1px solid rgba(255, 179, 71, .25); color: #e9d9c0; font-size: 14px; }
.promise { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: #ccd1dc; }
.promise + .promise { margin-top: 6px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11.5px/1 var(--f-body); color: var(--amber); background: rgba(255, 179, 71, .13); text-transform: capitalize; }
.srcs { list-style: none; display: grid; gap: 6px; }
.srcs a { color: var(--fg-2); font-size: 14px; overflow-wrap: anywhere; }
.srcs a:hover { color: var(--accent); }
.srcs small { color: var(--fg-3); }
.embed-slot { margin-top: 12px; }
.gd__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 28px 22px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; }
.gd__foot a, .gd__foot button { color: var(--fg-2); font-weight: 600; font-size: 13px; }
.gd__foot a:hover, .gd__foot button:hover { color: var(--accent); }
.gd__foot .sp { flex: 1; }

/* ---------- detail page (Little Prince pilot) ---------- */
.dh { position: relative; isolation: isolate; overflow: hidden; }
.dh__bg { position: absolute; inset: 0; z-index: -1; }
.dh__bg .cover { position: absolute; inset: 0 0 0 30%; aspect-ratio: auto; background: transparent; }
.dh__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(10, 11, 15, .8) 46%, rgba(10, 11, 15, 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 11, 15, 0) 45%); }
.dh__in { min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-top: 28px; padding-bottom: 34px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--fg-3); font-size: 13px; font-weight: 600; }
.crumbs a:hover { color: var(--fg); }
.dh .crumbs { margin-bottom: auto; }
.dh h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.dh__in > * { max-width: 760px; } /* the text column sits on the dark side of the cover art */
.dh__aka { color: var(--fg-2); font-size: 14px; }
.dh__line { color: #d9dde7; font-size: clamp(15px, 1.5vw, 18px); }
.dh__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-top: 20px; align-items: start; }
.dmain { display: grid; gap: 16px; min-width: 0; }
.dmain .panel p, .dmain .panel li { font-size: 15.5px; line-height: 1.65; }
.dmain .panel > p a, .dmain .panel td a, .dmain .panel .callout a, .dmain .faq a, .dmain .timeline a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dside { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 16px; }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font: 700 10.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.facts dd { margin: 0; font-size: 14px; color: var(--fg); }
.facts dd a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.jump { display: grid; gap: 2px; }
.jump a { padding: 7px 10px; border-radius: 9px; color: var(--fg-2); font-size: 14px; font-weight: 600; }
.jump a:hover { background: var(--surface-2); color: var(--fg); }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { font: 700 11px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); border-top: 0; }
.table td { color: #ccd1dc; }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 179, 71, .08); border: 1px solid rgba(255, 179, 71, .25); color: #e9d9c0; font-size: 14.5px; }
.timeline { list-style: none; display: grid; margin-top: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px 0 10px 18px; border-left: 2px solid var(--line-2); color: #ccd1dc; font-size: 14.5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li.pending::before { background: var(--surface); border: 2px solid var(--fg-3); }
.timeline time { color: var(--fg-3); font-weight: 700; font-size: 13px; }

/* ---------- simple pages (about, submit, contact, 404) ---------- */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; letter-spacing: -.035em; margin-top: 14px; }
.page-head .lede { color: var(--fg-2); font-size: clamp(15px, 1.4vw, 17px); margin-top: 14px; }
.prose { padding: 20px 0 20px; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
.prose p, .prose li { color: #c8cdd9; font-size: 15.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose b { color: var(--fg); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 24px 0 20px; align-items: start; }
.mailbox { display: grid; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); min-width: 0; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--fg-2); font-size: 15px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 800 13px/1 var(--f-body); }
.steps b { color: var(--fg); }
.mailbox__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mailbox .meta a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.template { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.aside-box { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); position: sticky; top: calc(var(--top-h) + 16px); }
.aside-box h2 { font-size: 18px; margin-bottom: 12px; }
.aside-box ul { padding-left: 18px; display: grid; gap: 8px; color: var(--fg-2); font-size: 14px; }
.aside-box a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.nf { padding: 90px 0 40px; display: grid; gap: 22px; justify-items: start; }
.nf h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }

/* ---------- footer ---------- */
.foot { margin-top: 72px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0 30px; color: var(--fg-3); font-size: 13.5px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot__brand p { margin-top: 12px; }
.foot__label { font: 700 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 12px; }
.foot nav { display: grid; gap: 8px; }
.foot nav a:hover, .foot__legal a:hover { color: var(--fg); }
.foot__mail { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--fg-2); }
.foot__mail a:hover { color: var(--fg); }
.foot__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.6; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rk { grid-template-columns: 64px minmax(0, 1fr); }
  .rk__side { grid-column: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rk__cover { grid-row: span 2; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { aspect-ratio: auto; min-height: 0; height: clamp(380px, 52vw, 480px); }
  .nav a { padding: 8px 10px; }
  .hero__list { display: none; }
  .hero__dots { display: flex; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed--stack { grid-template-columns: minmax(0, 1fr); }
    .panels { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; }
  .dside { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
  .nav { display: none; }
  .tabbar { display: flex; }
    .home-intro { padding-top: 16px; }
  .home-intro h1 { font-size: 18px; }
  .hero__stage { aspect-ratio: auto; min-height: 0; height: auto; display: grid; }
  .slide { position: relative; display: none; }
  .slide.is-on { display: block; }
  .slide > .cover { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .slide::after { background: linear-gradient(0deg, var(--surface) 0%, var(--surface) 42%, rgba(20, 22, 29, 0) 62%); }
  .slide__body { position: relative; margin-top: -90px; padding: 0 18px 22px; }
  .hero__dots { top: 14px; bottom: auto; right: 14px; }
  .feed { grid-template-columns: 1fr; gap: 14px; }
  .groups { grid-template-columns: 1fr; }
  .rk { grid-template-columns: 1fr; padding: 16px; gap: 14px; overflow: hidden; }
  .rk__num { position: absolute; top: 12px; right: 14px; font-size: 40px; z-index: 3; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
  .rk__side { display: contents; }
  .rk__cover { order: -1; margin: -16px -16px 0; border-radius: 0; }
  .rk__main { order: 0; }
  .rk__side .stats { order: 1; }
  .rk__actions { order: 2; }
  .rk--1 .rk__bg { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .pick__menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: auto; }
  .gm[open] { padding: 0; place-items: end stretch; }
  .gm__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheetIn .3s var(--ease); }
  .gd__head { padding: 0 18px; margin-top: -60px; }
  .gd__main { padding: 18px 18px 6px; }
  .gd__foot { padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .made li { grid-template-columns: 1fr; }
  .tagdefs > div { grid-template-columns: 1fr; gap: 4px; }
  .dh__in { min-height: 0; padding-top: 0; }
  .dh__bg { position: relative; height: 240px; }
  .dh__bg .cover { inset: 0; }
  .dh__bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 11, 15, 0) 60%); }
  .dh { display: flex; flex-direction: column; }
  .dh .crumbs { margin-bottom: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo__word { font-size: 18px; }
  .stat { padding: 9px 10px; }
}
