/* Arcadia portal — design tokens */
:root {
  --bg: #0d0f15; --bg2: #11141b; --surface: #171a23; --surface2: #1e2230; --surface3: #262b3b;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --ink: #eef0f6; --muted: #9aa1b5; --dim: #6b7288;
  --brand: #7b61ff; --brand2: #a593ff; --brand-ink: #fff;
  --gold: #f5b70a; --good: #22c55e; --danger: #ef4444;
  --r: 14px; --r-lg: 20px; --side: 240px;
  --shadow: 0 16px 40px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; border-radius: 8px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg2); border-right: 1px solid var(--line); padding: 14px 12px 20px; display: flex; flex-direction: column; scrollbar-width: thin; }
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo svg, .logo .logo-img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.side-foot a { color: var(--brand2); }
.side-h { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 18px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .12s, color .12s; }
.side-link .i { width: 19px; height: 19px; }
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.on { background: var(--surface2); color: var(--ink); }
.side-link.on .i { color: var(--brand2); }
.side-link .count { margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 600; }
.side-foot { margin-top: auto; padding: 18px 12px 0; color: var(--dim); font-size: 12px; line-height: 1.6; }
.side-foot a:hover { color: var(--ink); }

.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(13,15,21,.82); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.menu-btn, .top-logo { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 18px; height: 18px; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; transition: border-color .15s, background .15s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wallet { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line2); font-weight: 700; font-size: 15px; color: var(--brand2); }
.coin { width: 18px; height: 18px; flex: none; }
.content { padding: 28px; max-width: 1440px; }
.scrim { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .15s, transform .12s, border-color .15s; white-space: nowrap; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #8c76ff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: rgba(255,255,255,.08); border: 1px solid var(--line2); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.ibtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2); font-weight: 600; font-size: 14px; color: var(--ink); transition: background .12s; }
.ibtn .i { width: 18px; height: 18px; }
.ibtn:hover { background: var(--surface2); }
.ibtn.on { color: #ff5c7a; border-color: rgba(255,92,122,.4); }
.ibtn.on .i { fill: #ff5c7a; stroke: #ff5c7a; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; aspect-ratio: 16 / 6.2; background: #1a0f08 center right / cover no-repeat; box-shadow: var(--shadow); isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9,8,12,.96) 0%, rgba(9,8,12,.82) 30%, rgba(9,8,12,.2) 62%, rgba(9,8,12,0) 100%), linear-gradient(0deg, rgba(9,8,12,.5), transparent 40%); }
.hero .copy { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); max-width: 460px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand2); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand2); }
.hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin: 10px 0 12px; }
.hero p { color: #c9ccd8; margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { width: 15px; height: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }
.hero .dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); transition: width .2s, background .2s; }
.hero .dots button.on { width: 26px; border-radius: 5px; background: #fff; }

/* ---------- sections + stats ---------- */
.section { margin-top: 40px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-h h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.section-h .aside { color: var(--muted); font-size: 14px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(123,97,255,.14); color: var(--brand2); flex: none; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 20px; }
.gcard { position: relative; display: block; }
.gcard .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .18s, box-shadow .18s; }
.gcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover .thumb { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 2px var(--brand); }
.gcard .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,8,12,.35); opacity: 0; transition: opacity .18s; }
.gcard:hover .play { opacity: 1; }
.gcard .play span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.gcard .play .i { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.gcard .label { position: absolute; bottom: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(10,10,14,.75); backdrop-filter: blur(6px); }
.gcard .label.top { color: #ffd166; }
.gcard .info { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 10px; }
.gcard .t { font-weight: 700; font-size: 15px; }
.gcard .s { color: var(--muted); font-size: 13px; font-weight: 500; }
.gcard .best { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.gcard .best .i { width: 14px; height: 14px; color: var(--gold); }
.fav { position: absolute; top: 9px; right: 9px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(10,10,14,.65); backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s, transform .12s; }
.gcard:hover .fav, .fav.on, .fav:focus-visible { opacity: 1; }
.fav .i { width: 17px; height: 17px; color: #fff; }
.fav.on .i { fill: #ff5c7a; stroke: #ff5c7a; }
.fav:active { transform: scale(.9); }
.soon .thumb { display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px), linear-gradient(160deg, var(--surface2), var(--surface)); }
.soon .thumb .i { width: 40px; height: 40px; color: var(--dim); stroke-width: 1.6; }
.soon .thumb .pill { position: absolute; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(0,0,0,.35); letter-spacing: .03em; }
.soon .thumb .pill .i { width: 12px; height: 12px; color: var(--muted); stroke-width: 2.2; }
.soon .t { color: var(--muted); }
.soon { pointer-events: none; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); grid-column: 1 / -1; }
.empty .i { width: 32px; height: 32px; color: var(--dim); margin: 0 auto 10px; display: block; }

/* ---------- game page ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.crumbs .i { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--muted); font-weight: 600; }
.gp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #08080c; height: min(76vh, 760px); min-height: 520px; display: grid; place-items: center; border: 1px solid var(--line); }
.player .backdrop { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(32px) brightness(.4) saturate(1.2); }
.player .frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #170b06; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 80px rgba(0,0,0,.6); }
.player.wide .frame { aspect-ratio: auto; width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player:fullscreen { height: 100vh; border-radius: 0; border: 0; }
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 32px 20px; background: center / cover no-repeat; }
.cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); }
.cover > * { position: relative; }
.cover small { color: #d4d6e0; font-weight: 600; font-size: 13px; }
.gamebar { display: flex; align-items: center; gap: 14px; padding: 18px 0 6px; flex-wrap: wrap; }
.gamebar .who { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.gamebar img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.gamebar h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.gamebar .sub { color: var(--muted); font-size: 13px; font-weight: 600; }
.gamebar .tools { display: flex; gap: 8px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--brand); }
.prose { padding: 22px 0; color: #c7cad6; font-size: 15px; line-height: 1.75; max-width: 760px; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 0 0 10px; font-weight: 700; }
.prose p { margin: 0 0 14px; }
.prose ol, .prose ul { margin: 0; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand2); font-weight: 700; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: none; }
.mode { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.mode b { display: block; color: var(--ink); margin-bottom: 4px; }
.mode .bar { width: 28px; height: 3px; border-radius: 2px; margin-bottom: 12px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.keys dt { color: var(--ink); font-weight: 700; }
.keys dd { margin: 0; }
kbd { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line2); border-bottom-width: 2px; font: 600 12px Inter, sans-serif; text-align: center; color: var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .i { width: 18px; height: 18px; color: var(--dim); transition: transform .15s; }
details[open] summary .i { transform: rotate(90deg); }
details p { margin: 0 0 16px; }

.rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.panel h3 small { color: var(--muted); font-weight: 600; font-size: 12px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.kv div { background: var(--surface); padding: 12px; }
.kv b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.kv small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ms { padding: 10px 0; border-top: 1px solid var(--line); }
.ms:first-of-type { border-top: 0; padding-top: 0; }
.ms .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.ms .row span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ms .pb { height: 6px; border-radius: 4px; background: var(--surface3); margin-top: 8px; overflow: hidden; }
.ms .pb i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.ms.done .pb i { background: var(--good); }
.ms.done .row b { color: var(--muted); }
.rail .grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.rail .gcard .t { font-size: 13px; }
.rail .gcard .s, .rail .gcard .best, .rail .fav { display: none; }
.rail .soon .thumb .i { width: 26px; height: 26px; }
.rail .soon .thumb .pill { display: none; }

/* ---------- leaderboard ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-h h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: fit-content; margin-bottom: 20px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--surface3); color: var(--ink); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.pod { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.pod .rk { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.pod.r1 .rk { background: rgba(245,183,10,.16); color: #f5b70a; box-shadow: inset 0 0 0 2px rgba(245,183,10,.5); }
.pod.r2 .rk { background: rgba(203,213,225,.12); color: #cbd5e1; box-shadow: inset 0 0 0 2px rgba(203,213,225,.4); }
.pod.r3 .rk { background: rgba(217,128,63,.14); color: #e0975a; box-shadow: inset 0 0 0 2px rgba(217,128,63,.45); }
.pod .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .m { color: var(--muted); font-size: 13px; }
.pod .sc { margin-left: auto; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pod.ghost { opacity: .45; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td.rk { color: var(--muted); font-weight: 700; width: 56px; }
.table td.sc { font-weight: 800; text-align: right; }
.table th.sc { text-align: right; }
.table tr.me td { background: rgba(123,97,255,.07); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface3); font-size: 12px; font-weight: 600; color: var(--muted); }
.profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile .avatar { display: grid; width: 48px; height: 48px; font-size: 18px; }
.profile .who { margin-right: auto; }
.profile .who b { display: block; }
.profile .who small { color: var(--muted); }
.field { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font: inherit; min-width: 220px; }
.field:focus { outline: none; border-color: var(--brand); }

/* ---------- footer + toast ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 28px 36px; color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--surface3); border: 1px solid var(--line2); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: all .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .gp { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .rail .panel:last-child { grid-column: 1 / -1; }
  .rail .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 14px; gap: 10px; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
  .menu-btn:hover { background: var(--surface); }
  .top-logo { display: flex; }
  .top-logo svg, .top-logo .logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
  .topbar .avatar { display: none; }
  .content { padding: 16px; }
  .hero { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; background: none !important; }
  .hero::after { display: none; }
  .hero .dots { top: 14px; right: 14px; bottom: auto; }
  .hero .art { display: block; aspect-ratio: 16 / 9; background: center / cover no-repeat; }
  .hero .copy { position: static; transform: none; padding: 20px; max-width: none; background: var(--surface); }
  .hero h1 { font-size: 30px; margin: 6px 0 8px; }
  .hero p { font-size: 15px; }
  .meta { margin-bottom: 18px; }
  .player { height: auto; min-height: 0; display: block; border-radius: var(--r); }
  .player .frame { height: auto; width: min(100%, calc(80vh * 9 / 16)); margin: 0 auto; }
  .player.wide .frame { width: 100%; aspect-ratio: 4 / 3; }
  .modes { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .foot { padding: 24px 16px 32px; }
}
@media (min-width: 901px) { .hero .art { display: none; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .gcard .best { display: none; }
  .gcard .fav { opacity: 1; }
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ico { width: 34px; height: 34px; }
  .stat .v { font-size: 17px; }
  .wallet { padding: 0 10px 0 8px; }
  .gamebar .tools .ibtn span { display: none; }
  .gamebar .tools .ibtn { padding: 0 11px; }
  .gamebar h1 { font-size: 20px; }
  .actions .btn { flex: 1; }
  .field { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- ad slots ---------- */
.ad-slot { margin: 22px 0; text-align: center; min-height: 0; }
.ad-slot .ad-label { display: block; font: 700 10px/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #8a8fa3); opacity: .7; margin-bottom: 6px; }
.ad-slot .ad-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 280px; border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.16); background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px); color: rgba(255,255,255,.55); font-size: 14px; }
.ad-slot .ad-ph small { font-size: 11px; opacity: .7; }
.ad-slot[data-size="rect"] .ad-ph { height: 250px; }
.rail .ad-slot { margin: 0 0 16px; }
.rail .ad-slot.sticky { position: sticky; top: 84px; }
.ad-slot.top { margin: 0 0 22px; }
.ad-slot.top .ad-ph { max-width: 1200px; margin: 0 auto; }
@media (max-width: 560px) { .ad-slot .ad-ph { height: 250px; } .ad-slot.top { margin-bottom: 16px; } }

/* preview of Google Auto ads (live, Google draws these itself) */
.pa-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #f3f4f7; box-shadow: 0 -2px 10px rgba(0,0,0,.35); display: flex; justify-content: center; padding: 3px 0; transition: transform .25s ease; }
.pa-anchor .box { width: 728px; max-width: calc(100vw - 16px); height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed #b7bccb; border-radius: 4px; color: #4a5064; font: 700 13px Inter, system-ui, sans-serif; }
.pa-anchor .box small { font-weight: 600; font-size: 10px; opacity: .7; }
.pa-anchor .tab { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 56px; height: 22px; border: 0; border-radius: 8px 8px 0 0; background: #f3f4f7; color: #4a5064; cursor: pointer; box-shadow: 0 -2px 6px rgba(0,0,0,.25); font-size: 13px; }
.pa-anchor.folded { transform: translateY(100%); }
body.pa-has-anchor { padding-bottom: 100px; }
@media (max-width: 760px) { .pa-anchor .box { width: 320px; height: 50px; } body.pa-has-anchor { padding-bottom: 60px; } }
.pa-rail { position: fixed; top: 50%; transform: translateY(-50%); z-index: 890; width: 160px; height: 600px; background: #f3f4f7; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4a5064; font: 700 13px Inter, system-ui, sans-serif; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.pa-rail small { font-weight: 600; font-size: 10px; opacity: .7; text-align: center; padding: 0 10px; }
.pa-rail .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.08); cursor: pointer; color: #4a5064; }
.pa-vig { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; }
.pa-vig .card { position: relative; width: min(480px, 92vw); background: #fff; border-radius: 6px; padding: 44px 16px 16px; color: #2b3040; font: 700 14px Inter, system-ui, sans-serif; text-align: center; }
.pa-vig .card .box { height: 320px; border: 1.5px dashed #b7bccb; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pa-vig .card small { font-weight: 600; font-size: 11px; opacity: .65; }
.pa-vig .close { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: #e8eaf0; color: #2b3040; font: 700 12px Inter, system-ui, sans-serif; cursor: pointer; }
.pa-vig .tag { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .1em; color: #8a8fa3; }
