/* Lumarcade — site stylesheet. Fonts: Nunito + Fredoka (SIL OFL 1.1, self-hosted). */
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(/fonts/fredoka-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(/fonts/fredoka-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --surface-2: #EFECF6;
  --surface-3: #E4DFF0;
  --text: #1B1B1F;
  --muted: #5E5870;
  --line: #E2DDEC;
  --brand: #5B2A86;
  --brand-2: #7A44AE;
  --brand-ink: #FFFFFF;
  --brand-soft: #EEE5F8;
  --token: #FFC93C;
  --token-deep: #E3A40F;
  --token-ink: #1B1B1F;
  --ok: #1F8A4C;
  --danger: #B42B22;
  --stage: #1A1326;
  --shadow-1: 0 1px 2px rgba(40, 20, 70, .06), 0 2px 8px rgba(40, 20, 70, .05);
  --shadow-2: 0 10px 30px -10px rgba(40, 20, 70, .28);
  --r-xl: 24px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --rail-w: 236px;
  --top-h: 64px;
  --font-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15121D;
  --surface: #1E1A29;
  --surface-2: #272234;
  --surface-3: #332C44;
  --text: #F3F0F9;
  --muted: #ADA5BF;
  --line: #322B43;
  --brand: #A97BDB;
  --brand-2: #C29BEA;
  --brand-ink: #15121D;
  --brand-soft: #2C2340;
  --stage: #0E0A16;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 14px 34px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: .1px; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(20px, 2.2vw, 24px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--token); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--token); color: var(--token-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 800; }
.skip:focus { top: 10px; }
.ic { flex: none; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* auth/plan visibility driven by boot.js (data attributes on <html>) */
html:not([data-auth="in"]) .only-in, html[data-auth="in"] .only-out,
html[data-sub="1"] .only-free, html:not([data-sub="1"]) .only-sub,
html:not([data-role="admin"]) .only-admin, html:not([data-role="developer"]):not([data-role="admin"]) .only-dev { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background-color .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn--token { background: var(--token); color: var(--token-ink); box-shadow: inset 0 -3px 0 var(--token-deep); }
.btn--token:hover { color: var(--token-ink); background: #FFD45E; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px; }
.iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__menu { display: none; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo__word { font: 700 23px/1 var(--font-display); letter-spacing: .2px; }
.search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 16px 0 42px; font: 600 15px var(--font-ui); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search--page { max-width: 640px; margin: 0 0 28px; }
.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 700 17px var(--font-display); text-decoration: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--token); }
.avatar:hover { color: var(--brand-ink); }
html:not([data-sub="1"]) .avatar { box-shadow: none; }
.pass-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; text-decoration: none; }

/* ---------------------------------------------------------------- shell + rail */
.shell { flex: 1; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); width: 100%; max-width: 1640px; margin: 0 auto; }
.shell--bare { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.main { padding: 22px 28px 56px; min-width: 0; outline: none; }
.rail { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 18px 12px 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.rail__group { display: flex; flex-direction: column; gap: 2px; }
.rail__group--secondary { padding-top: 14px; border-top: 1px solid var(--line); }
.rail__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.rail__link .ic { color: var(--muted); }
.rail__link:hover { background: var(--surface-2); color: var(--text); }
.rail__link.is-active { background: var(--brand-soft); color: var(--brand); }
.rail__link.is-active .ic { color: var(--brand); }
.rail__note { margin-top: auto; font-size: 12.5px; color: var(--muted); padding: 0 12px; }

/* ---------------------------------------------------------------- hero stage (the signature) */
.stagehero { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 18px; margin-bottom: 34px; }
.stagehero__main { position: relative; display: block; min-height: 380px; border-radius: var(--r-xl); overflow: hidden; background: var(--stage); color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-2); }
.stagehero__main:hover { color: #fff; }
.stagehero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 40%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.stagehero__main:hover .stagehero__art { transform: scale(1.035); }
.stagehero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 8, 24, .88) 0%, rgba(14, 8, 24, .55) 42%, rgba(14, 8, 24, 0) 75%), linear-gradient(0deg, rgba(14, 8, 24, .7), transparent 45%); }
.stagehero__copy { position: absolute; left: clamp(20px, 4vw, 44px); bottom: clamp(22px, 4vw, 40px); max-width: min(460px, 70%); display: flex; flex-direction: column; gap: 10px; }
.stagehero__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.stagehero__tags span { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-weight: 700; font-size: 13px; }
.stagehero__title { font: 700 clamp(36px, 5.2vw, 64px)/.98 var(--font-display); letter-spacing: -.5px; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.stagehero__line { font-size: 17px; opacity: .92; max-width: 40ch; }
.stagehero__main .token { position: absolute; right: clamp(20px, 4vw, 40px); bottom: clamp(22px, 4vw, 40px); }
.stagehero__next { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stagehero__nexthead { font-size: 15px; font-family: var(--font-ui); font-weight: 800; color: var(--muted); margin: 4px 4px 2px; }
.mini { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow-1); flex: 1; transition: background-color .15s; }
.mini:hover { color: var(--text); background: var(--surface-2); }
.mini img { width: 132px; height: 99px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.mini strong { display: block; font: 600 18px/1.2 var(--font-display); margin-bottom: 4px; }
.mini small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* the arcade token: a coin-edged play button */
.token { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: repeating-conic-gradient(from 0deg, var(--token) 0 6deg, var(--token-deep) 6deg 12deg); box-shadow: 0 10px 30px rgba(255, 201, 60, .35), 0 3px 0 #B9820A; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.token__ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE69A, var(--token) 60%); color: var(--token-ink); box-shadow: inset 0 0 0 3px rgba(185, 130, 10, .45); }
.token__ring .ic { margin-left: 4px; }
a:hover > .token, .token--btn:hover { transform: rotate(-12deg) scale(1.06); }
.token--btn { border: 0; cursor: pointer; padding: 0; }

/* ---------------------------------------------------------------- rows, cards, grids */
.row { margin: 0 0 34px; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row__head h2 { margin: 0; }
.row__more { font-weight: 800; font-size: 14px; text-decoration: none; }
.row__track { display: grid; grid-auto-flow: column; grid-auto-columns: 214px; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.row__track > * { scroll-snap-align: start; }
.row__track:has(.card--lg) { grid-auto-columns: 290px; }
.card { display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--text); min-width: 0; border-radius: var(--r-lg); }
.card:hover { color: var(--text); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.card__title { font: 600 16.5px/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.card__age { padding: 0 7px; border-radius: 6px; background: var(--surface-2); }
.card__3d { padding: 0 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.card__stat { margin-left: auto; }
.card--lg .card__title { font-size: 19px; }
.card--row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; }
.card--row .card__media { border-radius: 10px; }
.card--kids .card__media { border-radius: 26px; box-shadow: 0 6px 0 var(--surface-3); }
.card--kids .card__title { font-size: 21px; text-align: center; }
.card--kids .card__meta { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
.grid--kids { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- page heads, crumbs, chips */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); font-weight: 700; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.pagehead { margin: 4px 0 24px; max-width: 760px; }
.pagehead p { color: var(--muted); font-size: 17px; margin: 0; }
.pagehead--center { text-align: center; margin-inline: auto; }
.pagehead--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { color: var(--muted); padding: 30px 0; }
.seo { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 76ch; color: var(--muted); }
.seo h2 { color: var(--text); font-size: 20px; }

/* ---------------------------------------------------------------- pass band */
.passband { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, #7A44AE 0%, #5B2A86 45%, #3A1859 100%); color: #fff; margin: 10px 0 0; }
.passband h2 { font-size: clamp(22px, 2.6vw, 30px); }
.passband p { margin: 0; max-width: 62ch; opacity: .92; }

/* ---------------------------------------------------------------- game page */
.player { margin-bottom: 18px; }
.player__frame { position: relative; width: 100%; max-height: calc(100vh - var(--top-h) - 120px); margin: 0 auto; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; background: var(--stage); isolation: isolate; }
.player__frame:fullscreen { border-radius: 0; max-height: none; }
.player__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) saturate(1.3) brightness(.55); z-index: -1; }
.player__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.player__thumb { width: min(240px, 42%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.player__title { font-size: clamp(26px, 3.4vw, 40px); margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.player__hint { margin: 0; opacity: .8; font-weight: 700; font-size: 14px; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; color: #fff; text-align: center; background: rgba(14, 8, 24, .78); z-index: 2; }
.bar { width: min(320px, 70vw); height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bar span { display: block; height: 100%; width: 8%; background: var(--token); border-radius: inherit; transition: width .2s; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow-1); flex-wrap: wrap; }
.player__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.player__meta strong { font: 600 18px var(--font-display); }
.player__stat { color: var(--muted); font-weight: 700; font-size: 14px; }
.player__tools { display: flex; gap: 4px; }
.stars { display: inline-flex; }
.stars button { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--line); padding: 0; }
.stars button.is-on, .stars:hover button { color: var(--token-deep); }
.stars button.is-on .ic, .stars:hover button .ic { fill: var(--token); }
.stars button:hover ~ button { color: var(--line); }
.stars button:hover ~ button .ic { fill: none; }
.adbreak { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10, 6, 18, .9); padding: 16px; }
.adbreak__card { width: min(420px, 100%); text-align: center; color: #fff; }
.adbreak__label { font-weight: 800; font-size: 13px; opacity: .7; margin-bottom: 8px; }
.adbreak__slot { min-height: 200px; border-radius: 16px; background: linear-gradient(135deg, #2A1747, #3A1859); display: grid; place-items: center; padding: 20px; border: 1px solid rgba(255, 255, 255, .12); }
.adbreak__count { margin: 12px 0 6px; font-weight: 800; }
.adbreak__skip { color: var(--token); font-weight: 800; }
.adslot { margin: 0 0 24px; text-align: center; }
.adslot > span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.adslot__box { min-height: 90px; max-width: 728px; margin: 0 auto; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 10px; }
.gamepage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; margin-top: 8px; }
.gamepage__main { max-width: 74ch; }
.gamepage__main h2 { margin-top: 28px; }
.lede { font-size: 19px; font-weight: 600; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 6px; padding-left: 4px; }
.controls, .facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.controls div, .facts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 16px; background: var(--surface); }
.controls div + div, .facts div + div { border-top: 1px solid var(--line); }
dt { font-weight: 800; color: var(--muted); }
dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.gamepage__side { display: flex; flex-direction: column; gap: 26px; }
.gamepage__side h2 { font-size: 19px; }
.passcard { padding: 22px; border-radius: var(--r-lg); background: radial-gradient(120% 120% at 100% 0%, #7A44AE, #4A1F70); color: #fff; }
.passcard p { opacity: .9; font-size: 15px; }
.board__list { list-style: none; padding: 0; margin: 0; counter-reset: rank; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.board__list li { display: flex; gap: 10px; padding: 10px 14px; background: var(--surface); font-weight: 700; counter-increment: rank; }
.board__list li + li { border-top: 1px solid var(--line); }
.board__list li::before { content: counter(rank); width: 22px; color: var(--muted); }
.board__list li span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.board__list .board__empty { color: var(--muted); font-weight: 600; }
.board__list .board__empty::before { content: none; }

/* ---------------------------------------------------------------- kids */
.page-kids { --bg: #FFF8EC; --surface-2: #FFEFD2; --surface-3: #F6DDB0; --brand-soft: #FFE6F0; }
:root[data-theme="dark"] .page-kids { --bg: #1B1626; }
.kidshero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 34px; border-radius: 32px; background: linear-gradient(120deg, #3B7BD9, #6A4BD1); color: #fff; margin-bottom: 30px; }
.kidshero h1 { font-size: clamp(34px, 5vw, 54px); }
.kidshero p { font-size: 18px; max-width: 46ch; margin: 0; }
.kidshero__art { width: 220px; flex: none; }

/* ---------------------------------------------------------------- subscribe / store */
.testmode { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #FFF3CD; color: #6B4E00; font-weight: 800; font-size: 14px; margin: 0 0 18px; }
:root[data-theme="dark"] .testmode { background: #3A3016; color: #FFE08A; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin: 10px 0 18px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1.5px solid var(--line); }
.plan h2 { font-size: 22px; margin: 0; }
.plan__price { font: 700 44px/1 var(--font-display); margin: 6px 0 4px; }
.plan__price small { font: 700 16px var(--font-ui); color: var(--muted); margin-left: 4px; }
.plan__save { color: var(--ok); font-weight: 800; margin: 0; }
.plan .checks { flex: 1; }
.plan--pass { background: radial-gradient(130% 120% at 100% 0%, #7A44AE, #5B2A86 50%, #3A1859); color: #fff; border-color: transparent; box-shadow: 0 20px 50px -18px rgba(91, 42, 134, .6); transform: translateY(-6px); }
.plan--pass .plan__price small { color: rgba(255, 255, 255, .75); }
.plan__current { text-align: center; font-weight: 800; color: var(--muted); padding: 10px; }
.checks { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 9px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat; }
.plan--pass .checks li::before { background-color: var(--token); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1B1F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E"); }
.finep { color: var(--muted); font-size: 14px; text-align: center; max-width: 70ch; margin: 0 auto 40px; }
.perks { margin: 0 0 40px; }
.perks__grid, .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 600 22px/1 var(--font-display); color: var(--brand); }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); }
.item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); position: relative; }
.item__art { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.item__art svg { width: 64%; height: 64%; }
.item h3 { font-size: 16px; margin: 0; }
.item__type { font-size: 13px; color: var(--muted); font-weight: 700; margin: -6px 0 0; }
.item__rarity { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .85); color: #1B1B1F; }
.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.item__price { font-weight: 800; display: flex; align-items: center; gap: 4px; }
.item.is-owned { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.item.is-equipped { box-shadow: 0 0 0 3px var(--token); border-color: transparent; }
.rarity-legendary .item__rarity { background: #FFC93C; }
.rarity-epic .item__rarity { background: #D9C2F5; }
.rarity-rare .item__rarity { background: #BFE3FF; }
.storebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.storebar__bal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 16px; margin: 0 0 22px; }
.storebar__bal .ic { color: var(--token-deep); }
.packs { margin-top: 46px; }
.packs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pack { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pack__amount { font: 700 32px/1 var(--font-display); }
.pack__bonus { color: var(--ok); font-weight: 800; font-size: 14px; min-height: 1.4em; }
.pack .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- forms, auth, panels */
.auth { display: grid; place-items: center; padding: 30px 0; }
.auth__card { width: min(460px, 100%); padding: 34px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.auth__sub { color: var(--muted); }
.auth__alt { text-align: center; margin: 18px 0 0; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.form small { font-weight: 600; color: var(--muted); }
.form input:not([type=checkbox]), .form select, .form textarea { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); padding: 10px 14px; font: 600 15px var(--font-ui); width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; }
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form__error { color: var(--danger); font-weight: 700; margin: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkout .order { padding: 16px; border-radius: 14px; background: var(--surface-2); margin: 10px 0 16px; }
.order__line { display: flex; justify-content: space-between; font-weight: 800; }
.fakecard { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.checkout .linkbtn { display: block; margin: 10px auto 0; }
.banner { padding: 14px 18px; border-radius: 14px; font-weight: 800; margin: 0 0 20px; }
.banner--ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.banner--warn { background: #FFF3CD; color: #6B4E00; }
.acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel h2 { font-size: 20px; }
.bignum { font: 700 40px/1 var(--font-display); margin: 6px 0 16px; }
.bignum small { font: 700 16px var(--font-ui); color: var(--muted); }
.acct__plan .btnrow { margin-top: 14px; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.inv .item { padding: 10px; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill--warn { background: #FFF0C2; color: #7A5600; }
.pill--bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill--brand { background: var(--brand-soft); color: var(--brand); }

/* ---------------------------------------------------------------- portal + admin */
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 22px; }
.tabs--scroll { overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tile__label { color: var(--muted); font-weight: 800; font-size: 13.5px; }
.tile__value { font: 700 30px/1.15 var(--font-display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile__note { color: var(--muted); font-size: 13px; }
.chart { display: block; width: 100%; height: 180px; }
.chart .bar-rect { fill: var(--brand); }
.chart .bar-rect--alt { fill: var(--token-deep); }
.chart text { fill: var(--muted); font: 700 11px var(--font-ui); }
.chart line { stroke: var(--line); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px; font: 600 14px var(--font-ui); }
.modal { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(14, 8, 24, .6); backdrop-filter: blur(3px); }
.modal__inner { padding: 26px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal__head h2 { margin: 0; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 26px; text-align: center; background: var(--bg); }
.dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.progresslist { font-size: 13.5px; max-height: 180px; overflow: auto; margin-top: 10px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { font-size: 13.5px; }
.code { background: var(--stage); color: #EDE6FA; border-radius: var(--r-lg); padding: 18px 20px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .92em; }

/* ---------------------------------------------------------------- developers landing */
.devhero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 34px clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--stage); color: #F1EBFB; margin-bottom: 40px; }
.devhero h1 { font-size: clamp(30px, 3.8vw, 46px); }
.devhero p { color: #CFC5E0; font-size: 17px; }
.devhero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.devhero .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.devhero__facts { margin: 0; display: grid; gap: 12px; }
.devhero__facts div { padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.devhero__facts dt { font: 700 30px/1 var(--font-display); color: var(--token); }
.devhero__facts dd { color: #CFC5E0; margin-top: 4px; }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.timeline li { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.timeline li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 17px var(--font-display); margin-bottom: 12px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15px; }
.sdk { margin-top: 44px; max-width: 860px; }

/* ---------------------------------------------------------------- prose / legal */
.prose { max-width: 72ch; margin: 0 auto; padding: 10px 0 30px; }
.prose h2 { margin-top: 30px; font-size: 21px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal__meta { color: var(--muted); font-weight: 700; }
.legal__draft { padding: 12px 16px; border-radius: 12px; background: #FFF3CD; color: #6B4E00; font-weight: 700; }
:root[data-theme="dark"] .legal__draft { background: #3A3016; color: #FFE08A; }
.notfound { text-align: center; padding: 80px 0; }
.notfound p { color: var(--muted); }

/* ---------------------------------------------------------------- footer, toast, consent, gate */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.footer__inner { max-width: 1640px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; padding: 36px 28px 20px; }
.footer__brand strong { font: 700 22px var(--font-display); }
.footer__brand p { color: var(--muted); max-width: 36ch; margin-top: 6px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer__cols h2 { font: 800 14px var(--font-ui); color: var(--muted); margin-bottom: 10px; }
.footer__cols a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; font-weight: 600; font-size: 15px; }
.footer__cols a:hover { color: var(--brand); }
.footer__legal { max-width: 1640px; margin: 0 auto; padding: 14px 28px 28px; color: var(--muted); font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); color: #fff; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 80; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.consent p { margin: 0 0 12px; font-size: 14.5px; }
.consent__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.gate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(14, 8, 24, .7); padding: 16px; }
.gate__card { position: relative; width: min(400px, 100%); padding: 28px; border-radius: var(--r-xl); background: var(--surface); text-align: center; }
.gate__q { font: 700 30px var(--font-display); }
.gate form { display: flex; gap: 10px; }
.gate input { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 700 20px var(--font-ui); text-align: center; }
.gate__close { position: absolute; top: 10px; right: 10px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .gamepage { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar__menu { display: inline-grid; }
  .rail { position: fixed; top: var(--top-h); left: 0; bottom: 0; height: auto; width: 280px; z-index: 50; background: var(--surface); box-shadow: var(--shadow-2); transform: translateX(-105%); transition: transform .25s ease; }
  body.menu-open .rail { transform: none; }
  body.menu-open::after { content: ''; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(14, 8, 24, .4); z-index: 45; }
  .stagehero { grid-template-columns: minmax(0, 1fr); }
  .stagehero__next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stagehero__nexthead { grid-column: 1 / -1; }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .mini img { width: 100%; }
  .mini small { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
  .plan--pass { transform: none; order: -1; }
  .devhero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --top-h: 58px; }
  .main { padding: 16px 16px 44px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .logo__word { display: none; }
  .topbar .btn--token span { display: none; }
  .topbar .btn--token { width: 42px; padding: 0; }
  .hide-sm { display: none !important; }
  .search input { height: 40px; }
  .stagehero__main { min-height: 300px; border-radius: 20px; }
  .stagehero__copy { max-width: calc(100% - 140px); }
  .stagehero__line { display: none; }
  .token { width: 72px; height: 72px; }
  .token__ring { width: 58px; height: 58px; }
  .stagehero__next { grid-template-columns: minmax(0, 1fr); }
  .mini { grid-template-columns: 96px minmax(0, 1fr); }
  .mini img { width: 96px; }
  .row__track { grid-auto-columns: 168px; gap: 12px; }
  .row__track:has(.card--lg) { grid-auto-columns: 230px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .grid--kids { grid-template-columns: minmax(0, 1fr); }
  .card__title { font-size: 15.5px; }
  .passband { flex-direction: column; align-items: flex-start; }
  .player__frame { border-radius: 16px 16px 0 0; max-height: none; }
  .player__bar { border-radius: 0 0 16px 16px; }
  .controls div, .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kidshero { flex-direction: column; text-align: center; padding: 24px; }
  .kidshero__art { width: 160px; }
  .acct, .cols2, .form__row { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); padding: 28px 16px 10px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { padding: 14px 16px 24px; }
  .auth__card { padding: 24px; }
  .pagehead--row { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- polish pass */
.topbar__search { display: none; }
.row__more { white-space: nowrap; }
.row__head h2 { min-width: 0; }
.card__play { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--token); color: var(--token-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .18s, transform .18s; }
.card__play .ic { margin-left: 2px; }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.card:focus-visible { outline: none; }
.card:focus-visible .card__media { outline: 3px solid var(--token); outline-offset: 3px; }
:root[data-theme="dark"] .card__media { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-1); }

.item__art { position: relative; overflow: hidden; }
.item__art svg { filter: drop-shadow(0 8px 10px rgba(30, 10, 60, .22)); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.item:hover .item__art svg { transform: translateY(-3px) scale(1.04); }
.rarity-rare .item__art { background: radial-gradient(circle at 50% 42%, rgba(77, 171, 247, .32), transparent 62%), var(--surface-2); }
.rarity-epic .item__art { background: radial-gradient(circle at 50% 42%, rgba(151, 117, 250, .38), transparent 62%), var(--surface-2); }
.rarity-legendary .item__art { background: radial-gradient(circle at 50% 42%, rgba(255, 201, 60, .5), transparent 64%), conic-gradient(from 0deg at 50% 42%, transparent 0 10deg, rgba(255, 201, 60, .12) 10deg 20deg, transparent 20deg 40deg, rgba(255, 201, 60, .12) 40deg 50deg, transparent 50deg 70deg, rgba(255, 201, 60, .12) 70deg 80deg, transparent 80deg 100deg, rgba(255, 201, 60, .12) 100deg 110deg, transparent 110deg 130deg, rgba(255, 201, 60, .12) 130deg 140deg, transparent 140deg 160deg, rgba(255, 201, 60, .12) 160deg 170deg, transparent 170deg), var(--surface-2); }
.rarity-legendary { border-color: color-mix(in srgb, var(--token) 45%, var(--line)); }
.item__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.item:hover .item__art::after { transform: translateX(120%); }

@media (max-width: 720px) {
  .search { display: none; }
  .topbar__search { display: inline-grid; }
  .topbar { justify-content: space-between; }
  .stagehero__next { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .stagehero__next .mini { scroll-snap-align: start; }
  .stagehero__nexthead { grid-column: auto; display: none; }
  .player__frame { aspect-ratio: 4 / 5 !important; }
  .player__frame:fullscreen { aspect-ratio: auto !important; }
  .player__thumb { width: 62%; }
  .player__bar { gap: 6px; padding: 8px 10px; }
  .player__meta { gap: 6px 10px; }
  .player__meta strong { width: 100%; }
}
.tiles { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.inv > p, .items > p { grid-column: 1 / -1; }
.tabs--scroll { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }

/* payments switched off before launch: locked buy buttons and an "unlocks soon" notice */
.testmode--soon { background: var(--brand-soft, #EFE6F8); color: var(--brand, #5B2A86); }
:root[data-theme="dark"] .testmode--soon { background: #2E2140; color: #E6D3FF; }
.btn.btn--locked, .btn.btn--locked:hover { opacity: .6; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
