/* Keep closed dialogs hidden even when their layout uses flex or grid. */
[hidden] { display: none !important; }

/* PlayDB — layout: a dark "stage" so game art carries the color; one centered 1240px column,
   gold reserved for ranks, ratings and the primary action. Dark-only by design. */
:root {
  --bg: #0a0c11;
  --bg-2: #0f121a;
  --surface: #141821;
  --surface-2: #1b202b;
  --surface-3: #232937;
  --line: #242a37;
  --line-2: #313848;
  --fg: #eef0f5;
  --fg-2: #a7aebe;
  --fg-3: #6f7688;
  --gold: #ffe234;
  --gold-2: #fff07e;
  --gold-ink: #161300;
  --gold-soft: rgba(255, 226, 52, .13);
  --silver: #c9d2e3;
  --bronze: #e39a62;
  --rose: #ff5d7d;
  --mint: #40dfa0;
  --sky: #63c7ff;
  --amber: #ffab3d;
  --red: #ff6767;
  --scrim: rgba(5, 6, 10, .72);
  --glass: rgba(12, 14, 20, .78);

  --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 TC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: 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 { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
kbd { font: 600 11px/1 var(--f-body); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--fg-2); background: var(--surface-2); }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); 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--lg { width: 24px; height: 24px; }
.ic--fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.eyebrow { font: 700 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow--gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- images ---------- */
.img { background: var(--surface-2); overflow: hidden; position: relative; }
.img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.img img.is-in { opacity: 1; }
.icon { display: inline-block; vertical-align: middle; border-radius: 22%; overflow: hidden; background: var(--surface-2); flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
.icon img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.icon img.is-in { opacity: 1; }

/* ---------- buttons & chips ---------- */
.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, transform .15s, border-color .2s; border: 1px solid transparent; }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,.11); }
.btn--line { border-color: var(--line-2); color: var(--fg); }
.btn--line:hover { border-color: var(--fg-3); background: var(--surface-2); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.is-on { background: var(--rose); color: #fff; border-color: transparent; }
.btn.is-on .ic { fill: currentColor; }

.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; position: relative; transition: background .2s, color .2s; color: var(--fg); }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn--ghost { color: var(--fg-2); }
.iconbtn__badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.iconbtn__badge.pop { animation: pop .4s var(--ease); }

.heart { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--fg); transition: transform .15s, color .2s, background .2s; border: 1px solid rgba(255,255,255,.08); }
.heart:hover { transform: scale(1.06); }
.heart.is-on { color: var(--rose); }
.heart.is-on .ic { fill: currentColor; animation: pop .35s var(--ease); }
.heart--flat { background: var(--surface-2); border-color: var(--line); backdrop-filter: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: all .18s; background: transparent; }
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip--gold.is-on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip .ic { width: 16px; height: 16px; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--fg-2); background: var(--surface-2); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; }
.tag--gold { color: var(--gold); background: var(--gold-soft); }
.tag--mint { color: var(--mint); background: rgba(64, 223, 160, .12); }
.tag--rose { color: var(--rose); background: rgba(255, 93, 125, .13); }
.tag--sky { color: var(--sky); background: rgba(99, 199, 255, .12); }
.tag--amber { color: var(--amber); background: rgba(255, 171, 61, .13); }
.tag--live { color: #fff; background: var(--rose); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rating .ic { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); stroke: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--fg-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.meta > * { display: inline-flex; align-items: center; gap: 4px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); padding: 0; }

.score { --v: 80; --c: var(--gold); position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-3) 0); }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score b { position: relative; font: 800 20px/1 var(--f-num); letter-spacing: .01em; }
.score--lg { width: 84px; height: 84px; }
.score--lg::before { inset: 6px; }
.score--lg b { font-size: 34px; }

.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.meter i.on { background: var(--mint); }
.meter--warn i.on { background: var(--amber); }
.meter--bad i.on { background: var(--red); }

.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; max-width: 60ch; }
.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(--gold); gap: 7px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(10, 12, 17, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar.is-scrolled { border-bottom-color: 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 svg { width: 30px; height: 30px; display: block; }
.logo__mark .lm-bg { fill: var(--gold); }
.logo__mark .lm-phone { fill: var(--gold-ink); }
.logo__mark .lm-pad, .logo__mark .lm-a { fill: var(--gold); }
.logo__mark .lm-b { fill: var(--rose); }
.logo__word { font: 800 21px/1 var(--f-display); letter-spacing: -.03em; }
.nav { display: flex; gap: 4px; }
.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.is-on { color: var(--fg); background: var(--surface-2); }
.searchbtn { flex: 1; max-width: 400px; margin-left: auto; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg-3); transition: border-color .2s; min-width: 0; }
.searchbtn:hover { border-color: var(--line-2); }
.searchbtn__ph { flex: 1; text-align: left; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }

.lang { position: relative; }
.lang__btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; transition: border-color .2s, background .2s; }
.lang__btn:hover { border-color: var(--line-2); background: var(--surface); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 248px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); animation: drop .2s var(--ease); z-index: 60; }
.lang__menu button { width: 100%; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; text-align: left; }
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--surface-2); }
.lang__menu .code { font: 700 11px/1 var(--f-body); color: var(--fg-3); letter-spacing: .06em; }
.lang__menu .name { font-weight: 600; font-size: 14px; }
.lang__menu .name small { display: block; color: var(--fg-3); font-weight: 500; font-size: 12px; }
.lang__menu .ic { color: var(--gold); }
.lang__note { padding: 10px 10px 6px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 12px; color: var(--fg-3); line-height: 1.45; }

/* ---------- 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, 12, 17, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { 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; position: relative; }
.tabbar .is-on { color: var(--fg); }
.tabbar .is-on .ic { color: var(--gold); }
.tabbar__dot { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }

/* ---------- view transitions ---------- */
.view { min-height: 70vh; outline: none; }
.view.is-entering { animation: viewIn .45s var(--ease); }

/* ---------- HOME: hero ---------- */
.hero { padding-top: 20px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.hero__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; min-height: 380px; 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 .img { position: absolute; inset: 0; }
.slide .img img { transform: scale(1.06); transition: opacity .6s, transform 7s linear; }
.slide.is-on .img img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 13, .92) 0%, rgba(8, 9, 13, .7) 38%, rgba(8, 9, 13, 0) 72%), linear-gradient(0deg, rgba(8, 9, 13, .85) 0%, rgba(8, 9, 13, 0) 45%); }
.slide__body { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(20px, 3.4vw, 40px); max-width: 560px; display: grid; gap: 14px; }
.slide__top { display: flex; align-items: center; gap: 12px; }
.slide__top .icon { width: 56px; height: 56px; }
.slide h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.slide__hook { color: #d9dde7; font-size: clamp(15px, 1.4vw, 17px); max-width: 46ch; }
.slide .meta { color: #c8cdd8; }
.slide__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.slide .slide__body { opacity: 0; transition: opacity .18s; }
.slide.is-on .slide__body { opacity: 1; transition: opacity .2s .25s; }
.slide.is-on .slide__body > * { animation: rise .7s var(--ease) both; animation-delay: .25s; }
.slide.is-on .slide__body > *:nth-child(2) { animation-delay: .31s; }
.slide.is-on .slide__body > *:nth-child(3) { animation-delay: .37s; }
.slide.is-on .slide__body > *:nth-child(4) { animation-delay: .43s; }
.slide.is-on .slide__body > *:nth-child(5) { animation-delay: .49s; }
.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, 6s) linear forwards; }
.hero__stage.is-paused .hero__dots button.is-on::after, .hero__list.is-paused .queue.is-on .queue__bar::after { animation-play-state: paused; }

.hero__list { display: flex; flex-direction: column; gap: 8px; }
.hero__list h3 { font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 8px 4px 6px; }
.queue { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; 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 .icon { width: 52px; height: 52px; }
.queue b { display: block; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue small { display: block; 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; background: transparent; }
.queue.is-on .queue__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: fill var(--dur, 6s) linear forwards; }

/* ---------- HOME: filters ---------- */
.feedbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--top-h)); z-index: 30; background: var(--bg); padding-block: 14px 12px; margin-top: 22px; }
.feedbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(var(--bg), rgba(10, 12, 17, 0)); pointer-events: none; }
.feedbar__row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.feedbar__row::-webkit-scrollbar { display: none; }
.feedbar__sep { width: 1px; height: 22px; background: var(--line-2); flex: none; margin-inline: 6px; }
.feedbar__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--fg-3); font-size: 13px; min-height: 20px; }
.feedbar__status button { color: var(--gold); font-weight: 700; }

/* ---------- HOME: feed ---------- */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-flow: dense; padding-bottom: 20px; }
.card { position: relative; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; border: 1px solid rgba(255, 255, 255, .04); animation: rise .55s var(--ease) both; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card--game .img { aspect-ratio: 1024 / 520; }
.card--game:hover .img img.is-in { transform: scale(1.04); }
.card__media { position: relative; display: block; }
.card__media .heart { position: absolute; top: 12px; right: 12px; z-index: 2; }
.card__media .tags { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card__peek { position: absolute; inset: 0; display: flex; gap: 0; opacity: 0; transition: opacity .35s; z-index: 1; }
.card__peek img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.card__peek img.is-show { opacity: 1; }
.card:hover .card__peek.is-ready { opacity: 1; }
.card__peekbar { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 4px; z-index: 2; opacity: 0; transition: opacity .3s; }
.card:hover .card__peekbar { opacity: 1; }
.card__peekbar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.card__peekbar i.on { background: #fff; }
.card__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.card__title { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.card__title .icon { width: 48px; height: 48px; }
.card__title h3 { font-size: 17.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title small { display: block; color: var(--fg-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card__hook { color: var(--fg-2); font-size: 14px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-score { font: 800 19px/1 var(--f-num); color: var(--gold); letter-spacing: .02em; }
.mini-score small { font: 600 11px/1 var(--f-body); color: var(--fg-3); letter-spacing: .04em; margin-left: 3px; }

.card--tall { grid-row: span 2; }
.card--tall .card__media { flex: 1; min-height: 0; }
.card--tall .img { height: 100%; min-height: 420px; }
.card--tall .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 17, .95) 0%, rgba(10, 12, 17, .1) 55%); pointer-events: none; }
.card--tall .card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.card--tall .card__foot { border-top-color: rgba(255, 255, 255, .1); }

.card--note { padding: 22px; gap: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.card--note h3 { font-size: 22px; letter-spacing: -.02em; }
.card--note p { color: var(--fg-2); font-size: 14px; }
.stack { display: flex; }
.stack .icon { width: 46px; height: 46px; border: 3px solid var(--surface-2); margin-left: -12px; }
.stack .icon:first-child { margin-left: 0; }
.note__list { display: grid; gap: 4px; }
.note__row { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; margin-inline: -8px; border-radius: 12px; transition: background .2s; }
.note__row:hover { background: rgba(255, 255, 255, .05); }
.note__row .icon { width: 40px; height: 40px; }
.note__row b { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.note__row small { color: var(--fg-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note__rank { font: 800 20px/1 var(--f-num); color: var(--fg-3); text-align: center; }
.note__row:nth-child(1) .note__rank { color: var(--gold); }
.card--accent { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 226, 52, .2), transparent 55%), var(--surface); }
.card--rose { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 93, 125, .2), transparent 55%), var(--surface); }
.card--sky { background: radial-gradient(120% 90% at 0% 0%, rgba(99, 199, 255, .17), transparent 55%), var(--surface); }
.card--mint { background: radial-gradient(120% 90% at 100% 100%, rgba(64, 223, 160, .14), transparent 55%), var(--surface); }
.card__cta { margin-top: auto; align-self: flex-start; }

.like { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; }
.like .icon { width: 64px; height: 64px; }
.like__arrow { color: var(--gold); }

.poll { display: grid; gap: 8px; }
.poll button { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; text-align: left; transition: border-color .2s; }
.poll button:hover { border-color: var(--fg-3); }
.poll button .icon { width: 34px; height: 34px; position: relative; z-index: 1; }
.poll button span { position: relative; z-index: 1; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poll button em { position: relative; z-index: 1; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--fg-2); opacity: 0; transition: opacity .3s; }
.poll button::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: rgba(255, 255, 255, .07); transition: width .8s var(--ease); }
.poll.is-voted button { pointer-events: none; }
.poll.is-voted button em { opacity: 1; }
.poll button.is-mine { border-color: var(--gold); }
.poll button.is-mine::before { background: var(--gold-soft); }
.poll__foot { color: var(--fg-3); font-size: 12.5px; }

.feed__more { display: grid; place-items: center; padding: 18px 0 48px; color: var(--fg-3); font-size: 14px; text-align: center; gap: 14px; }
.skel { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.skel .s-img { aspect-ratio: 1024 / 520; }
.skel .s-line { height: 12px; border-radius: 6px; margin: 14px 18px 0; }
.skel .s-line:last-child { width: 60%; margin-bottom: 20px; }
.shimmer { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; }

.empty { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; gap: 10px; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--fg-2); }
.empty h3 { font-size: 20px; color: var(--fg); }

/* ---------- page head (rankings / similar) ---------- */
.phead { padding-block: 36px 8px; display: grid; gap: 14px; }
.phead h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.phead__lede { color: var(--fg-2); font-size: clamp(15px, 1.5vw, 17px); }
.picker { position: relative; display: inline-block; }
.picker__btn { display: inline-flex; align-items: baseline; gap: .12em; color: var(--gold); border-bottom: 3px solid currentColor; line-height: 1.02; padding-bottom: .02em; font: inherit; letter-spacing: inherit; transition: color .2s; }
.picker__btn:hover { color: var(--gold-2); }
.picker__btn .ic { width: .5em; height: .5em; stroke-width: 2.6; align-self: center; }
.picker__menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 50; width: min(320px, 86vw); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); font: 600 15px/1.3 var(--f-body); letter-spacing: 0; animation: drop .2s var(--ease); max-height: 60vh; overflow: auto; }
.picker__menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; }
.picker__menu button:hover { background: var(--surface-2); }
.picker__menu button.is-on { color: var(--gold); }
.picker__menu .icon { width: 30px; height: 30px; }
.picker__menu small { margin-left: auto; color: var(--fg-3); font-weight: 500; font-size: 12.5px; }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.pills::-webkit-scrollbar { display: none; }

/* ---------- RANKINGS ---------- */
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.criteria { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--fg-3); font-size: 13px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg-2); transition: all .2s; white-space: nowrap; }
.seg button.is-on { background: var(--surface-3); color: var(--fg); }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); cursor: pointer; user-select: none; }
.toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 22px; border-radius: 11px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg-2); transition: transform .2s var(--ease), background .2s; }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { transform: translateX(14px); background: var(--gold-ink); }
.rk-tools__right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.rk-list { display: grid; gap: 16px; padding-bottom: 40px; }
.rk { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 300px; 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/0.9 var(--f-num); color: var(--fg-3); letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; }
.rk__move { display: block; margin-top: 8px; font: 700 11.5px/1 var(--f-body); letter-spacing: .02em; color: var(--fg-3); }
.rk__move.up { color: var(--mint); }
.rk__move.down { color: var(--red); }
.rk__move.new { color: var(--sky); }
.rk--1 .rk__num { color: var(--gold); }
.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 { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.rk__head .icon { width: 64px; height: 64px; }
.rk__head h3 { font-size: 21px; letter-spacing: -.015em; }
.rk__head h3 a:hover { color: var(--gold); }
.rk__head small { color: var(--fg-3); font-size: 13px; }
.rk__blurb { color: #c9cedb; font-size: 15px; max-width: 70ch; }
.rk__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13.5px; }
.rk__pc li { list-style: none; display: flex; gap: 7px; align-items: baseline; color: var(--fg-2); }
.rk__pc li::before { flex: none; font-weight: 800; width: 12px; }
.rk__pc .pro::before { content: "+"; color: var(--mint); }
.rk__pc .con::before { content: "−"; color: var(--red); }
.rk__pc ul { margin: 0; padding: 0; display: grid; gap: 5px; }
.rk__best { font-size: 13.5px; color: var(--fg-2); }
.rk__best b { color: var(--fg); font-weight: 700; }
.rk__side { display: grid; gap: 12px; align-content: start; }
.rk__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rk__shots button { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.rk__shots .img { height: 100%; }
.rk__shots .img img:hover { transform: scale(1.05); }
.rk__shots--p button { aspect-ratio: 9 / 14; }
.rk__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 9px 10px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 3px; }
.stat small { font-size: 11px; color: var(--fg-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.stat b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.rk__actions { display: flex; gap: 8px; }
.rk__actions .btn { flex: 1; }

.rk--1 { grid-template-columns: 76px minmax(0, 1fr) 360px; background: var(--surface); overflow: hidden; isolation: isolate; padding-top: 26px; border-color: rgba(255, 226, 52, .3); }
.rk--1 .rk__bg { position: absolute; inset: 0; z-index: -1; }
.rk--1 .rk__bg .img { position: absolute; inset: 0; }
.rk--1 .rk__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 24, 33, .97) 25%, rgba(20, 24, 33, .86) 60%, rgba(20, 24, 33, .7)), linear-gradient(0deg, var(--surface) 0%, transparent 60%); }

.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding-bottom: 60px; }
.other { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.other:hover { border-color: var(--gold); transform: translateY(-2px); }
.other h3 { font-size: 17px; }
.other p { color: var(--fg-3); font-size: 13px; }

/* ---------- SIMILAR ---------- */
.seeds { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 6px 4px; }
.seeds::-webkit-scrollbar { display: none; }
.seed { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; transition: all .2s; }
.seed .icon { width: 34px; height: 34px; border-radius: 50%; }
.seed:hover { border-color: var(--fg-3); }
.seed.is-on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.dna { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-top: 22px; border: 1px solid var(--line); }
.dna__seed { position: relative; padding: 26px; display: grid; gap: 14px; align-content: end; min-height: 260px; isolation: isolate; }
.dna__seed .img { position: absolute; inset: 0; z-index: -2; }
.dna__seed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 16, 22, .96) 10%, rgba(14, 16, 22, .55) 70%, rgba(14, 16, 22, .3)); }
.dna__seed .icon { width: 64px; height: 64px; }
.dna__seed h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.dna__seed p { color: #cfd4de; max-width: 52ch; font-size: 14.5px; }
.dna__traits { padding: 26px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); }
.dna__traits h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dna__traits p { color: var(--fg-3); font-size: 13px; }
.dna__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sim-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 26px 16px; }
.sim-tools h2 { font-size: 22px; }
.sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 60px; }
.sim { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; border: 1px solid rgba(255, 255, 255, .04); animation: rise .5s var(--ease) both; transition: border-color .25s; }
.sim:hover { border-color: var(--line-2); }
.sim.is-picked { border-color: var(--gold); }
.sim__shot { position: relative; display: block; }
.sim__shot .img { position: absolute; inset: 0; }
.sim__match { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 6px 9px 5px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; gap: 1px; text-align: center; }
.sim__match b { font: 800 24px/1 var(--f-num); color: var(--gold); }
.sim__match small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); font-weight: 700; }
.sim__body { padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.sim__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sim__head .icon { width: 44px; height: 44px; }
.sim__head h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim__head h3 a:hover { color: var(--gold); }
.sim__head small { color: var(--fg-3); font-size: 12.5px; }
.sim__dna { display: flex; flex-wrap: wrap; gap: 5px; }
.sim__dna span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(111, 118, 136, .6); }
.sim__dna span.on { border-color: transparent; background: var(--gold-soft); color: var(--gold); text-decoration: none; }
.sim__dna span.hl { box-shadow: 0 0 0 1px var(--gold) inset; }
.sim__txt { display: grid; gap: 6px; font-size: 13.5px; color: var(--fg-2); }
.sim__txt p { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.sim__txt b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: 2px; }
.sim__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.pick { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--fg-2); cursor: pointer; user-select: none; }
.pick input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--fg-3); display: grid; place-items: center; margin: 0; cursor: pointer; transition: all .15s; }
.pick input:checked { background: var(--gold); border-color: var(--gold); }
.pick input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--gold-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.tray { position: fixed; left: 50%; bottom: 20px; z-index: 35; transform: translate(-50%, 140%); transition: transform .35s var(--ease); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.tray.is-on { transform: translate(-50%, 0); }
.tray .stack .icon { width: 34px; height: 34px; border-color: var(--surface-2); }
.tray__txt { font-size: 13.5px; color: var(--fg-2); white-space: nowrap; }
.tray__txt b { color: var(--fg); }

.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; vertical-align: bottom; }
.cmp thead .icon { display: block; width: 44px; height: 44px; margin-bottom: 8px; }
.cmp thead b { display: block; font-size: 14px; line-height: 1.25; }
.cmp tbody th { color: var(--fg-3); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.cmp td.best { color: var(--gold); font-weight: 700; }
.cmp td.best::after { content: " ★"; font-size: 11px; }
.cmp .yes { color: var(--mint); font-weight: 600; }
.cmp .no { color: var(--fg-3); }

/* ---------- DETAIL ---------- */
.demo-note { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(99, 199, 255, .1); border: 1px solid rgba(99, 199, 255, .25); color: #cde9ff; font-size: 14px; margin-top: 18px; }
.demo-note .ic { color: var(--sky); }
.demo-note button { margin-left: auto; color: var(--sky); font-weight: 700; white-space: nowrap; }

.dt-hero { position: relative; isolation: isolate; padding-block: 34px 26px; }
.dt-hero__bg { position: absolute; inset: 0 0 -80px; z-index: -1; overflow: hidden; }
.dt-hero__bg .img { position: absolute; inset: -40px; background: transparent; }
.dt-hero__bg .img img { filter: blur(40px) saturate(140%); opacity: .5 !important; transform: scale(1.1); }
.dt-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 17, .35), var(--bg) 92%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--fg-3); font-size: 13px; margin-bottom: 22px; }
.crumbs a:hover { color: var(--fg); }
.crumbs .ic { width: 13px; height: 13px; }
.dt-head { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.dt-head > .icon { width: 132px; height: 132px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8); }
.dt-head h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.dt-head__dev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; color: var(--fg-2); font-size: 14.5px; }
.dt-head__dev a { color: var(--sky); font-weight: 600; }
.dt-head .tags { margin-top: 14px; }
.dt-cta { display: grid; gap: 10px; justify-items: stretch; min-width: 220px; }
.dt-cta__row { display: flex; gap: 8px; }
.dt-cta__row .btn { flex: 1; }
.store { display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 18px; border-radius: 14px; background: #000; color: #fff; border: 1px solid #4b505c; font-weight: 700; transition: transform .15s, border-color .2s, background .2s; }
.store:hover { border-color: #8a8f9c; background: #08090c; }
.store:active { transform: scale(.98); }
.store small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; opacity: .7; text-transform: uppercase; line-height: 1.1; }
.store span { line-height: 1.15; font-size: 15.5px; }
.store svg { width: 24px; height: 24px; flex: none; }
.store svg.apple { fill: #fff; margin-top: -3px; }

.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 30px; border-radius: var(--r); background: rgba(20, 24, 33, .75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.fact { padding: 14px 16px; display: grid; gap: 4px; align-content: center; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.fact small { font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.fact b { font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact b .ic { width: 17px; height: 17px; }
.fact em { font-style: normal; font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--top-h)); z-index: 30; background: rgba(10, 12, 17, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 15px 14px; color: var(--fg-3); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s; }
.subnav a:hover { color: var(--fg); }
.subnav a.is-on { color: var(--fg); }
.subnav a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); }

.dt-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-block: 30px 70px; align-items: start; }
.dt-main { display: grid; gap: 22px; min-width: 0; }
.dt-side { display: grid; gap: 16px; }
.panel { border-radius: var(--r-lg); background: var(--surface); border: 1px solid rgba(255, 255, 255, .04); padding: 24px; display: grid; gap: 18px; min-width: 0; scroll-margin-top: calc(var(--top-h) + 70px); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel__head h2 { font-size: 22px; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.panel__head h2 .ic { color: var(--gold); width: 22px; height: 22px; }
.panel__head p { color: var(--fg-3); font-size: 13px; }
.panel--side { padding: 20px; gap: 14px; }
.panel--side h3 { font-size: 16px; }

.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.verdict__score { display: grid; justify-items: center; gap: 8px; text-align: center; }
.verdict__score small { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 34px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar span { color: var(--fg-2); }
.bar i { height: 8px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px; transform-origin: left; animation: grow 1s var(--ease) both; }
.bar b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 6px; }
.fit h4 { font: 700 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.fit .fit-good h4 { color: var(--mint); }
.fit .fit-skip h4 { color: var(--amber); }
.fit ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 14px; display: grid; gap: 3px; }
.about p { color: #c9cedb; font-size: 15px; max-width: 72ch; }
.about { display: grid; gap: 12px; }
.about.is-clamped .about__more { max-height: 0; overflow: hidden; }
.about__more { display: grid; gap: 12px; }
.textbtn { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; justify-self: start; }

.xp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xp__tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: grid; align-content: end; padding: 12px; isolation: isolate; background: var(--c1); }
.xp__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 80% 10%, var(--c2), transparent 70%), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 60%); }
.xp__tile .glyph { position: absolute; right: 8px; top: 2px; font: 900 64px/1 var(--f-num); opacity: .22; z-index: -1; letter-spacing: -.04em; }
.xp__tile b { font-size: 14.5px; line-height: 1.2; }
.xp__tile small { font-size: 11.5px; opacity: .85; font-weight: 600; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.xp__tile small i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery > * { scroll-snap-align: start; flex: none; }
.shot { width: 200px; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; position: relative; transition: transform .25s var(--ease); }
.shot:hover { transform: translateY(-3px); }
.shot .img { height: 100%; }
.shot--l { width: 440px; aspect-ratio: 16 / 9; align-self: start; }
.trailer { width: 440px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; position: relative; display: block; align-self: start; }
.trailer .img { height: 100%; }
.trailer::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); transition: background .2s; }
.trailer:hover::after { background: rgba(0, 0, 0, .15); }
.trailer__play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; transition: transform .2s; }
.trailer:hover .trailer__play { transform: translate(-50%, -50%) scale(1.08); }
.trailer__play .ic { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.trailer__cap { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.gallery-wrap { position: relative; }
.gallery-nav { display: flex; gap: 6px; }
.gallery-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s; }
.gallery-nav button:hover { background: var(--surface-2); }

.devices { display: grid; gap: 14px; }
.devices__groups { display: grid; gap: 10px; }
.devices__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.devices__group > small { width: 74px; font-size: 11.5px; color: var(--fg-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.devices .chip { height: 32px; font-size: 13px; padding: 0 12px; }
.run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; border-radius: 16px; background: var(--surface-2); overflow: hidden; }
.run__verdict { padding: 20px; display: grid; gap: 10px; align-content: center; border-right: 1px solid var(--line); }
.run__verdict .pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.pill--good { background: rgba(64, 223, 160, .15); color: var(--mint); }
.pill--ok { background: rgba(255, 171, 61, .15); color: var(--amber); }
.pill--bad { background: rgba(255, 103, 103, .15); color: var(--red); }
.run__verdict h3 { font-size: 22px; }
.run__verdict p { color: var(--fg-2); font-size: 14px; }
.run__stats { display: grid; grid-template-columns: 1fr 1fr; }
.run__stat { padding: 16px 18px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.run__stat:nth-child(odd) { border-right: 1px solid var(--line); }
.run__stat:nth-last-child(-n+2) { border-bottom: 0; }
.run__stat small { display: flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 12px; font-weight: 600; }
.run__stat small .ic { width: 15px; height: 15px; }
.run__stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.run.is-swap { animation: flash .5s var(--ease); }
.devrate-unused { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.devrate > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 2px; }
.devrate small { color: var(--fg-3); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.devrate small .ic { width: 15px; height: 15px; }
.devrate b { font-size: 20px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 5px; }
.devrate b .ic { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); stroke: none; }
.fine { color: var(--fg-3); font-size: 12.5px; }

.spend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.f2p { padding: 18px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 10px; align-content: start; }
.f2p__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f2p h3 { font-size: 18px; }
.f2p p { color: var(--fg-2); font-size: 14px; }
.f2p .meter i { width: 26px; height: 8px; }
.buys { display: grid; gap: 8px; margin: 0; padding: 0; }
.buys li { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; color: var(--fg-2); }
.buys li .ic { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.buys li b { color: var(--fg); font-weight: 600; }
.price { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.price th { text-align: left; font-size: 11.5px; color: var(--fg-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 0 8px; }
.price td { padding: 9px 0; border-top: 1px solid var(--line); }
.price td:last-child, .price th:last-child { text-align: right; }
.price .val { color: var(--mint); font-size: 12px; font-weight: 700; }
.warnbox { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 171, 61, .09); border: 1px solid rgba(255, 171, 61, .22); font-size: 13.5px; color: #f3dcb9; }
.warnbox .ic { color: var(--amber); }

.rev-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.rev-big { display: grid; gap: 4px; justify-items: center; text-align: center; }
.rev-big b { font: 800 64px/0.95 var(--f-num); }
.rev-big .stars { display: flex; gap: 2px; color: var(--gold); }
.rev-big .stars .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rev-big .stars .half { opacity: .35; }
.rev-big small { color: var(--fg-3); font-size: 12.5px; }
.hist { display: grid; gap: 6px; }
.hist div { display: grid; grid-template-columns: 14px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.hist i { height: 9px; border-radius: 5px; background: var(--surface-3); position: relative; overflow: hidden; }
.hist i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--gold); border-radius: 5px; transform-origin: left; animation: grow 1s var(--ease) both; }
.hist div:last-child i::after { background: var(--fg-3); }
.hist span:last-child { text-align: right; color: var(--fg-3); }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.theme i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.theme--pos { color: #bff3dd; }
.theme--pos::before { content: "+"; color: var(--mint); font-weight: 800; }
.theme--neg { color: #ffd0d0; }
.theme--neg::before { content: "−"; color: var(--red); font-weight: 800; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review { padding: 16px 18px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 10px; align-content: start; animation: rise .4s var(--ease) both; }
.review__head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--bg); }
.review__head b { font-size: 14px; display: block; }
.review__head small { color: var(--fg-3); font-size: 12px; }
.review .stars { display: flex; gap: 1px; color: var(--gold); }
.review .stars .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.review .stars .off { color: var(--surface-3); }
.review p { color: #cdd2dd; font-size: 14px; }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--fg-3); font-size: 12.5px; }
.helpful { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--fg-2); transition: all .2s; }
.helpful .ic { width: 14px; height: 14px; }
.helpful:hover { color: var(--fg); border-color: var(--fg-3); }
.helpful.is-on { color: var(--gold); border-color: var(--gold); }
.samplenote { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.samplenote .ic { width: 14px; height: 14px; }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tip { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.tip__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.tip b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.tip p { color: var(--fg-2); font-size: 13.5px; }

.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 110px 18px minmax(0, 1fr); gap: 14px; position: relative; }
.tl small { color: var(--fg-3); font-size: 12.5px; font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl i { position: relative; }
.tl i::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--fg-3); }
.tl i::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: -4px; width: 2px; background: var(--line); }
.tl:last-child i::after { display: none; }
.tl:first-child i::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl div { padding-bottom: 18px; }
.tl b { font-size: 14.5px; display: block; }
.tl p { color: var(--fg-2); font-size: 13.5px; margin-top: 2px; }

.glance { display: grid; gap: 0; margin: 0; }
.glance div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--fg-2); }
.glance dd { margin: 0; font-weight: 700; text-align: right; }
.glance .ic { width: 18px; height: 18px; color: var(--fg-3); }
.glance .yes { color: var(--mint); }
.glance .no { color: var(--red); }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.langs span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.langs .ic { width: 14px; height: 14px; color: var(--mint); stroke-width: 2.6; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { border-radius: 16px; background: var(--surface-2); overflow: hidden; display: grid; transition: transform .25s var(--ease); }
.rail-card:hover { transform: translateY(-3px); }
.rail-card .img { aspect-ratio: 16 / 9; }
.rail-card__b { padding: 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rail-card .icon { width: 40px; height: 40px; }
.rail-card b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card small { color: var(--fg-3); font-size: 12px; }
.rail-card em { font: 800 18px/1 var(--f-num); color: var(--gold); font-style: normal; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
.search { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: calc(env(safe-area-inset-top, 0px) + 10vh) 16px 16px; pointer-events: none; }
.search__panel { pointer-events: auto; width: min(640px, 100%); max-height: 74vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: drop .25s var(--ease); }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.search__bar > .ic { color: var(--fg-3); }
.search__bar input { flex: 1; height: 46px; border: 0; background: transparent; outline: none; font-size: 17px; min-width: 0; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__body { position: relative; overflow-y: auto; padding: 8px; }
.search__group { padding: 10px 10px 6px; font: 700 11.5px/1 var(--f-body); color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase; }
.sr-item { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; text-align: left; }
.sr-item .icon { width: 42px; height: 42px; }
.sr-item b { font-size: 14.5px; display: block; }
.sr-item b mark { background: none; color: var(--gold); }
.sr-item small { color: var(--fg-3); font-size: 12.5px; }
.sr-item.is-active, .sr-item:hover { background: var(--surface-2); }
.sr-item .ic { color: var(--fg-3); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.sr-chips .chip { height: 32px; font-size: 13px; }
.search__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 12px; }
.search__foot span { display: inline-flex; align-items: center; gap: 4px; }
.search__empty { padding: 30px 16px; text-align: center; color: var(--fg-2); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; animation: slideIn .32s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px; display: grid; align-content: start; gap: 6px; }
.saved { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background .2s; animation: rise .35s var(--ease) both; }
.saved:hover { background: var(--surface-2); }
.saved .icon { width: 52px; height: 52px; }
.saved b { display: block; font-size: 15px; }
.saved small { color: var(--fg-3); font-size: 12.5px; }
.drawer__empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 60px 24px; color: var(--fg-2); }
.drawer__empty .ic { width: 40px; height: 40px; color: var(--fg-3); }
.drawer__empty h3 { color: var(--fg); font-size: 18px; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__panel { pointer-events: auto; width: min(980px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; animation: drop .25s var(--ease); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 20px; }
.modal__body { overflow: auto; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 10, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; animation: fade .25s; padding: 20px 8px; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; height: 100%; align-content: center; min-width: 0; }
.lightbox__fig img { max-height: 80vh; max-width: 100%; border-radius: 14px; object-fit: contain; animation: zoomIn .3s var(--ease); }
.lightbox__fig figcaption { color: var(--fg-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; background: rgba(255, 255, 255, .08); }
.lightbox__nav { justify-self: center; background: rgba(255, 255, 255, .08); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .35s var(--ease); max-width: 100%; }
.toast .ic { width: 18px; height: 18px; flex: none; }
.toast small { display: block; font-weight: 500; opacity: .7; font-size: 12.5px; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 20px; }
.footer__in { max-width: var(--maxw); margin-inline: auto; padding: 44px var(--gutter) 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand p { color: var(--fg-3); font-size: 14px; max-width: 36ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 24px; }
.footer__cols h4 { font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--fg-2); font-size: 14px; padding: 4px 0; }
.footer__cols a:hover { color: var(--gold); }
.footer__note { color: var(--fg-3); font-size: 13px; line-height: 1.55; }
.footer__base { max-width: var(--maxw); margin-inline: auto; padding: 16px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--fg-3); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes flash { from { opacity: .4; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rk, .rk--1 { 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__actions { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4)::before { display: none; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__list { display: none; }
  .hero__dots { display: flex; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-body { grid-template-columns: 1fr; }
  .dt-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sim-grid { grid-template-columns: 1fr; }
  .nav a { padding: 8px 10px; }
  .searchbtn__ph, .searchbtn kbd { display: none; }
  .searchbtn { flex: none; width: 40px; padding: 0; justify-content: center; }
  .footer__in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  body { font-size: 14.5px; }
  .nav { display: none; }
  .tabbar { display: flex; }
  .view { padding-bottom: 20px; }
  .footer { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .tray { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .searchbtn { margin-left: auto; border: 0; background: transparent; }
  .lang__btn { padding: 0 8px; }
  .lang__btn > .ic:first-child { display: none; }
  .hero { padding-top: 12px; }
  .hero__stage { aspect-ratio: auto; min-height: 0; height: 520px; border-radius: 20px; }
  .slide .img { bottom: auto; height: 300px; }
  .slide::after { background: linear-gradient(0deg, var(--surface) 0%, var(--surface) 44%, rgba(20, 24, 33, .6) 58%, rgba(20, 24, 33, 0) 72%); }
  .slide__body { padding: 20px 18px 40px; }
  .hero__dots { left: 18px; right: auto; bottom: 18px; }
  .feed { grid-template-columns: 1fr; gap: 14px; }
  .card--tall { grid-row: auto; }
  .card--tall .img { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .feedbar { margin-top: 14px; }
  .phead { padding-top: 24px; }
  .rk, .rk--1 { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .rk__num { position: absolute; top: 16px; right: 18px; font-size: 44px; text-align: right; }
  .rk__move { display: none; }
  .rk__head { grid-template-columns: 56px minmax(0, 1fr); padding-right: 54px; }
  .rk__head .icon { width: 56px; height: 56px; }
  .rk__head > .score { display: none; }
  .rk__side { grid-column: 1; grid-template-columns: 1fr; }
  .rk__pc { grid-template-columns: 1fr; }
  .dna { grid-template-columns: 1fr; }
  .dna__traits { border-left: 0; border-top: 1px solid var(--line); }
  .sim { grid-template-columns: 1fr; }
  .sim__shot { aspect-ratio: 16 / 8; }
  .dt-head { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
  .dt-head > .icon { width: 84px; height: 84px; }
  .dt-cta { grid-column: 1 / -1; min-width: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(n)::before { display: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .dt-side { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .verdict { grid-template-columns: 1fr; justify-items: start; }
  .verdict__score { grid-auto-flow: column; align-items: center; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 30px; }
  .fit, .spend, .reviews, .tips, .run { grid-template-columns: 1fr; }
  .run__verdict { border-right: 0; border-bottom: 1px solid var(--line); }
  .xp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-sum { grid-template-columns: 1fr; justify-items: stretch; }
  .devrate { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .devrate > div { padding: 10px; }
  .devrate b { font-size: 17px; }
  .shot { width: 160px; }
  .shot--l, .trailer { width: 300px; }
  .tl { grid-template-columns: 84px 18px minmax(0, 1fr); gap: 10px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 20px 2px; }
  .search { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .search__foot { display: none; }
  .drawer { top: auto; width: 100%; max-height: 80vh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; animation: sheetIn .32s var(--ease); padding-top: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal { align-items: end; padding: 0; }
  .modal__panel { border-radius: 22px 22px 0 0; max-height: 88vh; }
  .devices__group > small { width: 100%; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- rankings: language filter ---------- */
.langfilter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, background .2s; }
.langfilter.is-on { border-color: var(--gold); background: var(--gold-soft); }
.langfilter .toggle { gap: 8px; color: var(--fg); }
.selectwrap { position: relative; display: inline-flex; align-items: center; }
.selectwrap select { appearance: none; -webkit-appearance: none; height: 30px; padding: 0 28px 0 12px; border-radius: 999px; border: 0; background: var(--surface-3); color: var(--fg); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.selectwrap select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.selectwrap .ic { position: absolute; right: 9px; width: 14px; height: 14px; pointer-events: none; color: var(--fg-2); }
.rk-status { display: flex; align-items: center; gap: 8px; margin: -12px 0 18px; color: var(--fg-2); font-size: 13.5px; }
.rk-status .ic { color: var(--gold); width: 16px; height: 16px; }
.rk-status b { color: var(--fg); }
.rk-status button { color: var(--gold); font-weight: 700; margin-left: 4px; }
.langrow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--fg-3); }
.langrow > span:first-child { margin-right: 4px; }
.lchip { padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 11.5px; background: var(--surface-2); color: var(--fg-2); }
.lchip.off { color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(111, 118, 136, .7); background: transparent; border: 1px solid var(--line); }
.lchip.hl { background: var(--gold); color: var(--gold-ink); }
.fact b .ic--fill { color: var(--gold); }
