/* The Gaming Hub - theme */
@font-face { font-family: 'Orbitron'; font-weight: 600; font-display: swap; src: url(/fonts/orbitron-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 700; font-display: swap; src: url(/fonts/orbitron-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 800; font-display: swap; src: url(/fonts/orbitron-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 900; font-display: swap; src: url(/fonts/orbitron-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 400; font-display: swap; src: url(/fonts/exo-2-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 500; font-display: swap; src: url(/fonts/exo-2-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 600; font-display: swap; src: url(/fonts/exo-2-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 700; font-display: swap; src: url(/fonts/exo-2-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 800; font-display: swap; src: url(/fonts/exo-2-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #050714; --bg2: #0a1030; --card: #0c1435; --card2: #101a44; --line: #1d2a66;
  --text: #eef0ff; --muted: #9aa3d0; --dim: #6b74a8;
  --purple: #8b5cf6; --violet: #a855f7; --blue: #3b82f6; --cyan: #22d3ee; --green: #34d399; --gold: #fbbf24; --red: #ef4444;
  --grad: linear-gradient(90deg, #7c3aed 0%, #6366f1 45%, #22d3ee 100%);
  --grad-v: linear-gradient(135deg, #a855f7, #3b82f6 60%, #22d3ee);
  --glow: 0 0 0 1px rgba(99,102,241,.35), 0 0 18px rgba(59,130,246,.18), inset 0 0 22px rgba(99,102,241,.08);
  --radius: 16px; --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Exo 2', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.22), transparent 60%),
  radial-gradient(900px 500px at -10% 30%, rgba(34,211,238,.10), transparent 60%),
  radial-gradient(700px 500px at 50% 110%, rgba(59,130,246,.15), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--cyan); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
h1, h2, h3, .orb { font-family: 'Orbitron', sans-serif; letter-spacing: .02em; }
h1 { font-size: 1.45rem; margin: .2rem 0 1rem; }
h2 { font-size: 1rem; margin: 0; text-transform: uppercase; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .82rem; } .center { text-align: center; }
.hidden { display: none !important; }
.grad-text { background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- shell ---------- */
#app { min-height: 100vh; }
.page { max-width: 520px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 26px + var(--safe-b)); }
.page.full { padding-bottom: 30px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(5,7,20,.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(99,102,241,.18); }
.topbar .logo { height: 38px; width: auto; }
.topbar .spacer { flex: 1; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.iconbtn:hover { background: rgba(99,102,241,.15); }
.iconbtn .ico { width: 24px; height: 24px; }
.badge-dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.desk-nav { display: none; }
.back-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.back-row h1 { margin: 0; font-size: 1.15rem; }

.bottomnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(6,9,28,.94); backdrop-filter: blur(14px); border-top: 1px solid rgba(99,102,241,.35); box-shadow: 0 -8px 30px rgba(0,0,0,.45); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.bottomnav a .ico { width: 24px; height: 24px; }
.bottomnav a.on { color: #a78bfa; text-shadow: 0 0 12px rgba(167,139,250,.7); }
.bottomnav a.on .ico { filter: drop-shadow(0 0 6px rgba(167,139,250,.8)); }

/* ---------- cards / panels ---------- */
.card { position: relative; background: linear-gradient(180deg, rgba(16,26,68,.92), rgba(9,14,40,.92)); border-radius: var(--radius); box-shadow: var(--glow); border: 1px solid rgba(99,102,241,.35); }
.card.pad { padding: 14px; }
.card.glow-purple { border-color: rgba(168,85,247,.6); box-shadow: 0 0 0 1px rgba(168,85,247,.25), 0 0 24px rgba(168,85,247,.25); }
.section-h { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.section-h a { font-size: .82rem; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: translateY(1px) scale(.99); }
.btn.block { width: 100%; } .btn.sm { height: 34px; padding: 0 14px; font-size: .7rem; border-radius: 10px; }
.btn.ghost { background: rgba(99,102,241,.12); box-shadow: inset 0 0 0 1px rgba(99,102,241,.5); }
.btn.danger { background: linear-gradient(90deg, #dc2626, #f43f5e); box-shadow: 0 6px 18px rgba(244,63,94,.35); }
.btn.green { background: linear-gradient(90deg, #059669, #22d3ee); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.field { position: relative; margin-bottom: 12px; }
.field label.lbl { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px 2px; }
.input, select.input, textarea.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: rgba(8,12,36,.9); border: 1px solid rgba(99,102,241,.45); outline: none; color: var(--text); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.field.ic .input { padding-left: 44px; } .field.ic > .ico { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--muted); }
.field .eye { position: absolute; right: 6px; top: 4px; }
.hint { font-size: .78rem; color: var(--muted); margin: -6px 0 10px 4px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .88rem; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--purple); }
.err { color: #fda4af; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.4); padding: 10px 12px; border-radius: 10px; font-size: .88rem; margin: 0 0 12px; }
.ok-msg { color: #a7f3d0; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); padding: 10px 12px; border-radius: 10px; font-size: .88rem; margin: 0 0 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(99,102,241,.35); }

/* tabs / chips */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(8,12,36,.9); border: 1px solid rgba(99,102,241,.35); margin-bottom: 12px; }
.tabs button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.45); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(99,102,241,.45); background: rgba(8,12,36,.8); color: var(--text); font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 16px rgba(124,58,237,.55); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: rgba(99,102,241,.18); color: #c4b5fd; border: 1px solid rgba(99,102,241,.4); }
.pill.green { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.45); }
.pill.gold { background: rgba(251,191,36,.12); color: #fcd34d; border-color: rgba(251,191,36,.45); }
.pill.red { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.45); }
.demo-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: rgba(251,191,36,.18); color: #fcd34d; border: 1px solid rgba(251,191,36,.5); vertical-align: middle; }

/* ---------- splash / auth ---------- */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 48px 24px calc(28px + var(--safe-b)); text-align: center;
  background: radial-gradient(500px 400px at 50% 30%, rgba(124,58,237,.35), transparent 70%), linear-gradient(160deg, transparent 55%, rgba(168,85,247,.25) 56%, transparent 62%), linear-gradient(20deg, transparent 60%, rgba(59,130,246,.2) 61%, transparent 66%); }
.splash .logo-stack { width: min(78vw, 330px); margin-top: 6vh; filter: drop-shadow(0 0 22px rgba(124,58,237,.5)); animation: float 4s ease-in-out infinite; }
.tagline { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: .14em; font-size: .78rem; margin: 18px 0; color: #dfe2ff; }
.tagline b { color: var(--cyan); margin: 0 6px; }
.splash .cta { width: min(100%, 360px); }
.traptech { height: 30px; width: auto; margin: 18px auto 0; opacity: .95; }
@keyframes float { 50% { transform: translateY(-8px); } }
.auth { max-width: 420px; margin: 0 auto; padding: 18px 20px 40px; }
.auth .logo-h { width: 220px; margin: 6px auto 4px; }
.auth h1 { text-align: center; margin: 14px 0 6px; }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: .92rem; }
.auth .card { padding: 20px 18px; }

/* ---------- home ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 334/100; box-shadow: var(--glow); border: 1px solid rgba(99,102,241,.4); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.gcard { display: block; scroll-snap-align: start; color: var(--text); border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid rgba(99,102,241,.45); box-shadow: 0 0 14px rgba(59,130,246,.18); transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(124,58,237,.45); }
.gcard .art { position: relative; aspect-ratio: 1/1.02; background: #0b1030 center/cover no-repeat; }
.gcard.wide .art { aspect-ratio: 16/9; }
.gcard .meta { padding: 8px 10px 10px; }
.gcard .t { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: .74rem; text-transform: uppercase; }
.gcard .c { font-size: .72rem; color: #c4b5fd; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.gcard .soon { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(5,7,20,.8); border: 1px solid rgba(251,191,36,.6); color: #fcd34d; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.gcard .live { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(16,185,129,.85); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.home-split { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.panel-h h2 { font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.crown { color: var(--gold); filter: drop-shadow(0 0 6px rgba(251,191,36,.6)); }

/* countdown */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.cd div { text-align: center; padding: 6px 0 4px; border-radius: 10px; background: rgba(5,8,26,.9); border: 1px solid rgba(99,102,241,.5); box-shadow: inset 0 0 12px rgba(99,102,241,.15); }
.cd b { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.15rem; }
.cd span { font-size: .58rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* leaderboard rows */
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid rgba(99,102,241,.25); }
.lb th:last-child, .lb td:last-child { text-align: right; }
.lb td { padding: 9px 10px; border-bottom: 1px solid rgba(99,102,241,.14); font-weight: 600; }
.lb tr.me td { background: rgba(124,58,237,.18); }
.lb .rk { width: 34px; font-family: 'Orbitron', sans-serif; }
.lb .sc { font-family: 'Orbitron', sans-serif; color: var(--text); }
.lb .sc.hi { color: var(--green); }
.who { display: flex; align-items: center; gap: 10px; color: var(--text); }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; border: 2px solid rgba(34,211,238,.6); background-size: cover; background-position: center; }
.av.lg { width: 92px; height: 92px; font-size: 2rem; border-width: 3px; box-shadow: 0 0 22px rgba(34,211,238,.45); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 6px 10px; border-radius: 12px; background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.25); }
.mini-row .n { width: 18px; font-family: 'Orbitron', sans-serif; font-weight: 800; }
.mini-row .s { margin-left: auto; font-family: 'Orbitron', sans-serif; color: var(--green); font-size: .9rem; }

/* giveaways */
.gw { padding: 14px; margin-bottom: 14px; overflow: hidden; }
.gw .row { display: grid; grid-template-columns: 1fr 42%; gap: 10px; align-items: center; }
.gw h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; }
.gw .host { font-size: .82rem; color: var(--muted); margin: 3px 0 8px; }
.gw .art { border-radius: 12px; overflow: hidden; aspect-ratio: 1.2/1; background: center/cover no-repeat; }
.brandblock { display: inline-block; padding: 4px 10px; background: #e11d2a; color: #fff; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; border-radius: 3px; transform: skew(-3deg); }
.brandblock.alt { background: linear-gradient(90deg, #059669, #10b981); }
.brandblock.tt { background: linear-gradient(90deg, #7c3aed, #3b82f6); }

/* game detail */
.gd-hero { position: relative; border-radius: 0 0 22px 22px; overflow: hidden; margin: -14px -16px 0; aspect-ratio: 1/0.95; background: #0b1030 center/cover no-repeat; }
.gd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,20,.1) 50%, var(--bg)); }
.gd-hero .iconbtn { position: absolute; top: 10px; z-index: 2; background: rgba(5,7,20,.55); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; font-size: .82rem; color: var(--muted); }
.tags span { display: inline-flex; align-items: center; gap: 6px; } .tags span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tags span:nth-child(2)::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); } .tags span:nth-child(3)::before { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* play screen */
.play-wrap { position: fixed; inset: 0; z-index: 60; background: #03040c; display: flex; flex-direction: column; }
.play-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(5,7,20,.9); border-bottom: 1px solid rgba(99,102,241,.3); }
.play-top .title { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: .9rem; }
.play-top .who-chip { margin-left: auto; font-size: .78rem; color: var(--muted); }
#game { flex: 1; width: 100%; min-height: 0; display: block; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3,4,12,.72); backdrop-filter: blur(3px); padding: 16px; }
.over-card { width: min(420px, 100%); padding: 22px 20px; text-align: center; }
.over-card .big { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 2.8rem; margin: 4px 0; text-shadow: 0 0 22px rgba(124,58,237,.8); }
.over-card .btns { display: grid; gap: 10px; margin-top: 16px; }
.rotate-tip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: .75rem; color: var(--muted); background: rgba(5,7,20,.75); padding: 4px 10px; border-radius: 99px; pointer-events: none; }

/* profile */
.prof-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; }
.prof-head .name { display: flex; align-items: center; gap: 8px; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.15rem; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat3 .card { text-align: center; padding: 14px 6px; }
.stat3 b { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.25rem; }
.stat3 span { font-size: .74rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 8px; }
.badges .b { text-align: center; font-size: .72rem; color: var(--muted); }
.badges img { width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 12px; object-fit: cover; }
.badges .locked img { filter: grayscale(1) brightness(.45); }
.act-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(99,102,241,.15); }
.act-row:last-child { border: 0; }
.act-row .g { font-weight: 600; } .act-row .s { margin-left: auto; font-family: 'Orbitron', sans-serif; font-weight: 700; } .act-row .t { width: 64px; text-align: right; font-size: .75rem; color: var(--muted); }

/* host / booking */
.banner { padding: 18px 16px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(124,58,237,.45), rgba(59,130,246,.25) 60%, rgba(34,211,238,.15)); border: 1px solid rgba(168,85,247,.55); box-shadow: 0 0 26px rgba(124,58,237,.3); }
.banner h2 { font-size: 1.15rem; text-transform: none; margin-bottom: 6px; }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pkg { padding: 12px 8px 10px; display: flex; flex-direction: column; overflow: hidden; }
.pkg::before { content: ''; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(225deg, var(--purple) 50%, transparent 50%); border-top-right-radius: var(--radius); }
.pkg h3 { font-size: .78rem; margin: 0 0 6px; }
.pkg img { width: 70px; height: 70px; object-fit: contain; margin: 4px auto 8px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 10px; font-size: .7rem; color: #cfd3f5; flex: 1; }
.pkg li { margin: 3px 0; } .pkg li::before { content: '• '; color: var(--cyan); }
.pkg .price { font-family: 'Orbitron', sans-serif; font-size: .7rem; color: var(--gold); margin-bottom: 8px; text-align: center; }
.pkg.sel { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34,211,238,.6), 0 0 24px rgba(34,211,238,.35); }
.steps { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.steps .st { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.steps .st i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(99,102,241,.6); font-weight: 700; font-size: .8rem; }
.steps .st.on { color: var(--text); } .steps .st.on i { background: var(--grad); border-color: transparent; }
.steps .bar { flex: 1; height: 1px; background: rgba(99,102,241,.4); }
.howto { display: grid; gap: 10px; margin-top: 12px; }
.howto .card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.howto .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-family: 'Orbitron', sans-serif; font-weight: 800; flex: none; }

/* community */
.post { padding: 14px; margin-bottom: 12px; }
.post .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post .ph b { display: block; font-size: .9rem; } .post .ph span { font-size: .75rem; color: var(--muted); }
.post p { margin: 0; color: #d7dbff; font-size: .92rem; line-height: 1.45; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); transform: translateX(-50%); z-index: 100; padding: 10px 16px; border-radius: 12px; background: #111a46; border: 1px solid rgba(34,211,238,.5); box-shadow: 0 8px 30px rgba(0,0,0,.5); font-weight: 600; font-size: .9rem; max-width: 90vw; }
.empty { text-align: center; color: var(--muted); padding: 28px 14px; }
.skeleton { height: 120px; border-radius: 14px; background: linear-gradient(90deg, rgba(16,26,68,.6), rgba(30,40,100,.6), rgba(16,26,68,.6)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; }
.drawer .in { width: min(300px, 82vw); height: 100%; background: #070b22; border-right: 1px solid rgba(99,102,241,.4); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.drawer a, .drawer button.link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--text); font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.drawer a:hover, .drawer button.link:hover { background: rgba(99,102,241,.15); }
.footer-note { text-align: center; font-size: .72rem; color: var(--dim); margin: 26px 0 0; }
.footer-note img { height: 24px; margin: 0 auto 6px; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .page { max-width: 1180px; padding: 22px 28px 50px; }
  .bottomnav { display: none; }
  .topbar { padding: 10px 28px; }
  .topbar .menu-btn { display: none; }
  .desk-nav { display: flex; gap: 4px; margin-left: 20px; }
  .desk-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
  .desk-nav a.on, .desk-nav a:hover { color: #fff; background: rgba(124,58,237,.22); box-shadow: inset 0 0 0 1px rgba(124,58,237,.5); }
  .hero { aspect-ratio: 334/86; }
  .hscroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; }
  .home-split { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .gw-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .gw-list .gw { margin: 0; }
  .two-col { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
  .gd-hero { margin: 0; border-radius: 22px; aspect-ratio: 16/9; }
  .narrow { max-width: 720px; margin: 0 auto; }
  .toast { bottom: 24px; }
  .auth { padding-top: 40px; }
}

/* =====================================================================
   v2: cosmetics, achievements, packages, branded giveaways
   ===================================================================== */
:root { --t-bronze: #d97706; --t-silver: #cbd5e1; --t-gold: #fbbf24; --t-epic: #a855f7; --t-legendary: #f472b6; --t-platinum: #7dd3fc; }
.t-bronze { --tc: var(--t-bronze); } .t-silver { --tc: var(--t-silver); } .t-gold { --tc: var(--t-gold); } .t-epic { --tc: var(--t-epic); } .t-legendary { --tc: var(--t-legendary); } .t-platinum { --tc: var(--t-platinum); }

/* avatar frames (ring drawn from --frame-bg set in /cosmetics.css) */
.frame { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; padding: 3px; isolation: isolate; }
.frame::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--frame-bg, transparent); z-index: -1; }
.frame .av { border-color: rgba(5,7,20,.9); }
.frame.fr-none { padding: 0; } .frame.fr-none .av { border-color: rgba(34,211,238,.6); }
.frame.f-lg { padding: 5px; } .frame.f-lg.fr-none { padding: 0; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
@keyframes fr-glow { 50% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(255,255,255,.45)); } }
@keyframes fr-pulse { 50% { transform: scale(1.07); filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .frame::before { animation: none !important; } }

/* names, titles, badges */
.who { position: relative; min-width: 0; }
.who > * { position: relative; }
.who > .bn-strip { position: absolute; inset: -5px -8px; border-radius: 10px; opacity: .42; -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 85%); mask-image: linear-gradient(90deg, #000 20%, transparent 85%); pointer-events: none; }
.pname { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pname .nm { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptitle { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; text-shadow: 0 0 8px rgba(167,139,250,.5); }
.ptitle.big { font-size: .74rem; margin-top: 4px; color: #e9d5ff; }
.eqbadge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--tc, #a855f7) 25%, #0b1030); color: var(--tc, #a855f7); box-shadow: 0 0 8px color-mix(in srgb, var(--tc, #a855f7) 50%, transparent); flex: none; }
.eqbadge .ico { width: 12px; height: 12px; }
.mini-row .who { flex: 1; }

/* achievement toast */
.ach-stack { position: fixed; z-index: 120; top: 12px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.ach-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--text); background: linear-gradient(120deg, rgba(30,20,80,.97), rgba(10,16,48,.97)); border: 1px solid var(--tc, #a855f7);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 26px color-mix(in srgb, var(--tc, #a855f7) 55%, transparent); animation: ach-in .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .5s, transform .5s; }
.ach-toast.out { opacity: 0; transform: translateY(-14px); }
.ach-toast .ai { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--tc, #a855f7) 28%, #0b1030); color: var(--tc, #a855f7); }
.ach-toast .ai .ico { width: 24px; height: 24px; }
.ach-toast small { display: block; font-size: .6rem; letter-spacing: .14em; color: var(--tc, #a855f7); font-weight: 800; }
.ach-toast b { display: block; font-family: 'Orbitron', sans-serif; font-size: .9rem; }
.ach-toast em { display: block; font-style: normal; font-size: .74rem; color: var(--muted); }
@keyframes ach-in { from { opacity: 0; transform: translateY(-24px) scale(.95); } }
.unl-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.unl { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--tc); border: 1px solid var(--tc); background: rgba(5,8,26,.7); }

/* game cards / detail */
.gcard .new { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 8px; background: linear-gradient(90deg, #db2777, #7c3aed); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; box-shadow: 0 0 12px rgba(219,39,119,.6); }
.tier-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tier-row .tt { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--tc); color: var(--tc); background: rgba(5,8,26,.6); }
.tier-row .tt b { color: var(--text); }
.sponsor-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); border: 1px solid var(--brand, #a855f7); background: linear-gradient(90deg, color-mix(in srgb, var(--brand, #a855f7) 30%, transparent), rgba(9,14,40,.9)); box-shadow: 0 0 18px color-mix(in srgb, var(--brand, #a855f7) 35%, transparent); }
.sponsor-bar small { display: block; font-size: .6rem; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.sponsor-bar > span { flex: 1; min-width: 0; } .sponsor-bar .brandblock { font-size: .7rem; }
.brand-logo { max-height: 40px; max-width: 120px; width: auto; object-fit: contain; border-radius: 6px; }
.gthumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(34,211,238,.5); flex: none; }
.ach-promo { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--text); border-color: rgba(168,85,247,.55); }
.ach-promo .ai { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad-v); flex: none; }
.ach-promo > div { flex: 1; }

/* branded giveaways */
.branded { --brand: #7c3aed; }
.card.branded[style*="--brand"] { border-color: color-mix(in srgb, var(--brand) 75%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent), 0 0 24px color-mix(in srgb, var(--brand) 30%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, transparent), rgba(9,14,40,.94) 55%); }
.tier-pill { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 6px 0; padding: 2px 8px; border-radius: 99px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.tier-pill .ico { width: 12px; height: 12px; }
.tier-pill.basic { color: #93c5fd; border-color: rgba(147,197,253,.5); background: rgba(59,130,246,.12); }
.tier-pill.premium { color: #e9d5ff; border-color: rgba(168,85,247,.7); background: rgba(168,85,247,.2); }
.tier-pill.elite { color: #fde68a; border-color: rgba(251,191,36,.7); background: linear-gradient(90deg, rgba(251,191,36,.2), rgba(219,39,119,.2)); }
.tier-pill.feat { color: #67e8f9; border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.1); }
.gw-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: rgba(5,8,26,.75); border: 1px solid rgba(99,102,241,.4); }
.gchip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.gchip.rule { padding-left: 9px; color: #fcd34d; border-color: rgba(251,191,36,.4); }
.gchip .ico { width: 14px; height: 14px; }
.gpicks { display: grid; gap: 8px; margin-bottom: 6px; }
.gpick { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; color: #fff; font-weight: 700; background: var(--grad); box-shadow: 0 6px 18px rgba(99,102,241,.4); }
.gpick img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.gpick span { flex: 1; font-family: 'Orbitron', sans-serif; font-size: .78rem; text-transform: uppercase; }
.ptiers { display: grid; gap: 6px; margin: 8px 0; }
.ptiers div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(5,8,26,.6); border: 1px solid rgba(251,191,36,.3); font-size: .85rem; }
.ptiers span { min-width: 34px; font-family: 'Orbitron', sans-serif; font-weight: 800; color: var(--gold); font-size: .75rem; display: inline-flex; }
.feat-gw { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.feat-gw::-webkit-scrollbar { display: none; }
.fgw { display: flex; gap: 10px; padding: 10px; color: var(--text); scroll-snap-align: start; }
.fgw .art { width: 76px; height: 76px; border-radius: 10px; background: center/cover no-repeat; flex: none; }
.fgw .m { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .fgw .m b { font-family: 'Orbitron', sans-serif; font-size: .82rem; }
.hero-take { position: relative; display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; color: var(--text); min-height: 210px;
  border: 1px solid color-mix(in srgb, var(--brand, #a855f7) 80%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--brand, #a855f7) 45%, transparent);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand, #a855f7) 60%, transparent), transparent 60%), linear-gradient(135deg, #12082e, #070b22); }
.hero-take .ht-art { position: absolute; inset: 0 0 0 45%; background: var(--img) center/cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); opacity: .85; }
.hero-take .ht-in { position: relative; z-index: 1; padding: 16px; max-width: 70%; }
.ht-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .14em; color: #fde68a; }
.ht-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.3rem; margin: 6px 0 4px; text-shadow: 0 0 18px color-mix(in srgb, var(--brand, #a855f7) 80%, transparent); }
.ht-sub { font-size: .8rem; color: #d9dcff; }
.hero-take .cd { max-width: 260px; margin: 10px 0; } .hero-take .cd b { font-size: .95rem; }

/* profile banner + customize */
.prof-banner { position: relative; border-radius: var(--radius); padding: 18px 14px; margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--glow); min-height: 140px; display: flex; align-items: flex-end; }
.prof-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(5,7,20,.72)); }
.prof-banner .prof-head { position: relative; z-index: 1; margin: 0; }
.prof-banner .name { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.pmeta { margin-top: 4px; color: #e2e5ff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.badges2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 8px; }
.badges2 .b { text-align: center; font-size: .66rem; color: var(--muted); line-height: 1.2; }
.badges2 .bi { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 5px; border-radius: 14px; color: var(--tc); border: 1px solid var(--tc); background: color-mix(in srgb, var(--tc) 16%, #0b1030); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 35%, transparent); }
.badges2 .bi .ico { width: 24px; height: 24px; }
.cz .tabs { margin-bottom: 10px; }
.czg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 470px; overflow-y: auto; padding: 2px; }
.czg.title, .czg.badge { grid-template-columns: repeat(2, 1fr); }
.czi { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid rgba(99,102,241,.35); background: rgba(5,8,26,.7); color: var(--text); cursor: pointer; text-align: left; }
.czi b { font-size: .76rem; } .czi small { font-size: .64rem; color: var(--muted); display: flex; align-items: center; gap: 4px; } .czi small .ico { width: 11px; height: 11px; }
.czi.on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34,211,238,.45), 0 0 16px rgba(34,211,238,.3); } .czi.on small { color: var(--cyan); }
.czi.locked { cursor: not-allowed; opacity: .55; } .czi.locked .czp { filter: grayscale(.8) brightness(.6); }
.czp { display: block; height: 52px; border-radius: 8px; }
.czp.czf, .czp.czt, .czp.czb { display: grid; place-items: center; background: rgba(16,26,68,.8); }
/* QA: czf pad — ring tops; overridden further in v7.css */
.czp { overflow: visible; }
.czp.czb .eqbadge { width: 30px; height: 30px; } .czp.czb .eqbadge .ico { width: 18px; height: 18px; }

/* achievements page */
.ach-sum { display: flex; gap: 14px; align-items: center; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #0b1235 78%, transparent 80% 100%), conic-gradient(#22d3ee calc(var(--p) * 1%), rgba(99,102,241,.25) 0); }
.ring b { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; line-height: 1; } .ring span { font-size: .7rem; color: var(--muted); }
.nocash { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 12px; font-size: .8rem; color: #a7f3d0; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.4); }
.nocash .ico { flex: none; margin-top: 1px; }
.chip .cnt { font-size: .7rem; opacity: .75; margin-left: 4px; }
.alist { display: grid; gap: 8px; margin-bottom: 12px; }
.ach { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(16,26,68,.92), rgba(9,14,40,.92)); border: 1px solid rgba(99,102,241,.3); }
.ach.on { border-color: color-mix(in srgb, var(--tc) 70%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--tc) 22%, transparent); }
.ach .ai { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); background: color-mix(in srgb, var(--tc) 16%, #0b1030); }
.ach .ai .ico { width: 24px; height: 24px; }
.ach.off .ai { filter: grayscale(.85) brightness(.7); }
.ach .ab { flex: 1; min-width: 0; }
.ach .at { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; } .ach .at b { font-family: 'Orbitron', sans-serif; font-size: .82rem; }
.ach .tier { font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); }
.ach .tier.secret { --tc: #94a3b8; }
.ach .bar { height: 6px; border-radius: 99px; background: rgba(99,102,241,.2); margin: 6px 0 2px; overflow: hidden; }
.ach .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.ach .rw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rwi { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; padding: 2px 7px 2px 3px; border-radius: 8px; background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.3); color: #d7dbff; }
.rwi .ico { width: 13px; height: 13px; margin-left: 3px; color: var(--violet); }
.rwi .sw { display: inline-block; width: 26px; height: 14px; border-radius: 4px; }
.rwi .sw.frame { width: 16px; height: 16px; padding: 2px; border-radius: 50%; } .rwi .sw.frame i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #0b1030; }
.ach .rar { text-align: right; flex: none; } .ach .rar b { display: block; font-family: 'Orbitron', sans-serif; font-size: .8rem; } .ach .rar span { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* host packages */
.pk3 { display: grid; gap: 12px; margin-top: 4px; }
.pk { padding: 16px 14px 14px; display: flex; flex-direction: column; }
.pk.premium { border-color: rgba(168,85,247,.8); box-shadow: 0 0 0 1px rgba(168,85,247,.35), 0 0 30px rgba(168,85,247,.3); }
.pk.elite { border-color: rgba(251,191,36,.7); box-shadow: 0 0 0 1px rgba(251,191,36,.25), 0 0 30px rgba(251,191,36,.18); background: linear-gradient(165deg, rgba(120,53,15,.35), rgba(9,14,40,.95) 45%); }
.pk-badge { position: absolute; top: -1px; right: 14px; padding: 4px 10px; border-radius: 0 0 10px 10px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--grad); }
.pk.elite .pk-badge { background: linear-gradient(90deg, #f59e0b, #db2777); }
.pk-h { display: flex; gap: 12px; align-items: center; }
.pk-h img { width: 58px; height: 58px; object-fit: contain; }
.pk-h h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; }
.pk.premium h3 { color: #e9d5ff; } .pk.elite h3 { color: #fde68a; }
.pk-tag { font-size: .8rem; color: var(--muted); }
.pk-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.pk-price b { font-family: 'Orbitron', sans-serif; font-size: 1.7rem; font-weight: 900; background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk.elite .pk-price b { background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; }
.pk-price span { font-size: .78rem; color: var(--muted); }
.pk-who { font-size: .8rem; color: #d7dbff; padding: 8px 10px; border-radius: 10px; background: rgba(5,8,26,.6); border: 1px solid rgba(99,102,241,.25); margin-bottom: 10px; }
.pk-who span { display: flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 3px; }
.pk-who .ico { width: 13px; height: 13px; }
.pk-f { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; flex: 1; }
.pk-f li { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: #e2e5ff; }
.pk-f li .ico { width: 16px; height: 16px; color: var(--green); margin-top: 1px; }
.pk.premium .pk-f li .ico { color: #c084fc; } .pk.elite .pk-f li .ico { color: var(--gold); }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .74rem; min-width: 360px; }
.cmp th, .cmp td { padding: 8px 6px; border-bottom: 1px solid rgba(99,102,241,.16); text-align: center; vertical-align: middle; }
.cmp th { font-family: 'Orbitron', sans-serif; font-size: .7rem; position: sticky; top: 0; background: #0c1435; }
.cmp th small { display: block; font-family: 'Exo 2', sans-serif; color: var(--gold); font-size: .7rem; margin-top: 2px; }
.cmp th.premium { color: #e9d5ff; } .cmp th.elite { color: #fde68a; }
.cmp td:first-child { text-align: left; color: var(--muted); font-weight: 600; width: 28%; }
.cmp td:nth-child(3) { background: rgba(168,85,247,.07); }
.cmp .yes { color: var(--green); } .cmp .no { color: rgba(148,163,184,.45); }
.cmp .ico { width: 16px; height: 16px; }
.faq { display: grid; gap: 8px; }
.faq details { padding: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--cyan); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.pk-sel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(99,102,241,.5); background: linear-gradient(120deg, rgba(124,58,237,.25), rgba(9,14,40,.9)); }
.pk-sel.elite { border-color: rgba(251,191,36,.6); } .pk-sel.premium { border-color: rgba(168,85,247,.7); }
.pk-sel img { width: 44px; height: 44px; object-fit: contain; }
.pk-sel > div:not(.pr) { flex: 1; display: flex; flex-direction: column; } .pk-sel small { font-size: .58rem; letter-spacing: .14em; color: var(--cyan); font-weight: 800; }
.pk-sel b { font-family: 'Orbitron', sans-serif; } .pk-sel span { font-size: .75rem; color: var(--muted); }
.pk-sel .pr { text-align: right; } .pk-sel .pr b { display: block; font-size: 1.15rem; color: var(--gold); }
.tierpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tierpick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; border: 1px solid rgba(99,102,241,.45); background: rgba(8,12,36,.9); cursor: pointer; }
.tierpick button b { font-size: .78rem; } .tierpick button span { font-size: .68rem; color: var(--gold); }
.tierpick button.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(124,58,237,.55); } .tierpick button.on span { color: #fff; }
.rv-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(99,102,241,.15); }
.rv-row > span:first-child { width: 96px; flex: none; } .rv-row > span:last-child { white-space: pre-wrap; word-break: break-word; }

/* community */
.post { overflow: hidden; }
.post .post-bn { position: absolute; left: 0; right: 0; top: 0; height: 58px; opacity: .38; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.post .ph, .post p, .post .post-f { position: relative; }
.post .ph .pname .nm { font-weight: 700; font-size: .9rem; }
.post-f { display: flex; justify-content: flex-end; margin-top: 8px; }
.hype { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(99,102,241,.4); background: rgba(5,8,26,.7); color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; }
.hype .ico { width: 15px; height: 15px; } .hype.on { color: #fdba74; border-color: rgba(249,115,22,.6); background: rgba(249,115,22,.12); box-shadow: 0 0 12px rgba(249,115,22,.3); }

@media (min-width: 900px) {
  .pk3 { grid-template-columns: repeat(3, 1fr); }
  .narrow.host { max-width: 1080px; }
  .feat-gw { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .czg { grid-template-columns: repeat(3, 1fr); }
  .hero-take { min-height: 260px; } .ht-title { font-size: 1.8rem; }
}
.play-top .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.play-top .who-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 420px) { .play-top .title { font-size: .76rem; } .play-top .who-chip { font-size: .7rem; max-width: 34vw; } }
/* Keep the game name and four thumb-sized controls readable on phones. */
@media (max-width: 600px) {
  .play-top { gap: 4px; padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  .play-top .title { flex: 1; font-size: clamp(.66rem, 2.7vw, .9rem); }
  .play-top .who-chip { display: none; }
  .play-top .iconbtn { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; }
}

/* keep anchored sections clear of the sticky top bar */
.pk, .cmp-wrap, #faq, #customize, .section-h[id] { scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px)); }

/* =====================================================================
   v3: accessibility, skeletons, empty states, footer branding, age gate,
   quests/streaks, season track, tournaments & brackets, notifications,
   search, invites, share cards, legal pages, settings, desktop polish.
   ===================================================================== */
.tiny { font-size: .72rem; } .center-row { justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
.input:focus-visible { outline: none; }
#main:focus { outline: none; }
.muted { color: #a7afdb; } /* slightly brighter for WCAG AA on dark cards */
.page > * { animation: pageIn .32s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.pop { animation: pop .45s ease; }
.card { transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card:hover, a.gcard:hover, a.t-card:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.55); }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* boot shell in index.html */
.page.boot { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.page.boot img { width: 180px; height: auto; filter: drop-shadow(0 0 22px rgba(124,58,237,.5)); animation: float 3s ease-in-out infinite; }
.skel-line { width: 160px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 200% 100%; animation: sk 1.1s linear infinite; }

/* skeletons + empty states */
.sk-wrap { display: grid; gap: 12px; padding-top: 4px; }
.sk { border-radius: 14px; background: linear-gradient(90deg, rgba(16,26,68,.65) 0%, rgba(40,52,124,.6) 50%, rgba(16,26,68,.65) 100%); background-size: 200% 100%; animation: sk 1.15s linear infinite; }
.sk-line { height: 14px; border-radius: 8px; } .sk-hero { height: 160px; } .sk-row { height: 54px; } .sk-card { aspect-ratio: 4/3; }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty-state { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; color: var(--muted); }
.empty-state b { color: var(--text); font-size: 1rem; } .empty-state p { margin: 0 0 6px; font-size: .86rem; max-width: 360px; }
.es-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.4); color: #a5b4fc; box-shadow: 0 0 18px rgba(99,102,241,.25); margin-bottom: 4px; }
.es-ic .ico { width: 26px; height: 26px; }
.page-head { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 14px; }
.page-head h1 { margin: 4px 0 2px; font-size: 1.25rem; } .page-head p { margin: 0; }

/* topbar additions */
.streak-chip { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px; border-radius: 99px; color: #fdba74; background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.45); font-family: 'Orbitron', sans-serif; font-size: .8rem; }
.streak-chip .ico { width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(249,115,22,.8)); }
.more-btn { display: none; }
.av.xs { width: 26px; height: 26px; font-size: .62rem; border-width: 1.5px; } .frame.f-xs { padding: 2px; }
.pill-mini { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); font-size: .7rem; display: inline-grid; place-items: center; }
.drawer .in { overflow-y: auto; }
.drawer-me { margin: 0 0 8px !important; }
.drawer-me .xpbar { margin: 6px 0 2px; }
.dr-sec { margin: 10px 12px 2px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-family: 'Orbitron', sans-serif; }
.dr-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 14px 12px 6px; font-size: .78rem; }
.drawer .dr-legal a { padding: 0; display: inline; color: var(--muted); font-weight: 500; }
.drawer a.dr-tt { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding: 12px; font-size: .7rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.dr-tt img { height: 24px; width: auto; }
.offline-bar { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #3b1424; border: 1px solid rgba(244,63,94,.6); font-size: .8rem; font-weight: 600; }

/* footer: compact on mobile (sits above bottom nav), full on desktop */
.site-foot { margin: 34px 0 0; padding: 20px 4px 4px; border-top: 1px solid rgba(99,102,241,.2); }
.sf-in { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sf-brand { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.sf-brand img { height: 22px; width: auto; opacity: .9; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .8rem; }
.sf-links a { color: var(--muted); padding: 4px 0; } .sf-links a:hover { color: var(--cyan); }
.sf-note { margin: 0; font-size: .7rem; color: var(--dim); max-width: 620px; line-height: 1.5; }
.tt-sig { display: grid; justify-items: center; gap: 6px; margin: 18px auto 0; color: var(--dim); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.tt-sig img { width: auto; opacity: .92; }
.splash-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tt-inline { margin-left: auto; letter-spacing: .06em; }

/* age gate */
.gate { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 30px 20px; text-align: center; }
.gate .logo-stack { width: 170px; height: auto; filter: drop-shadow(0 0 22px rgba(124,58,237,.55)); }
.gate-card { width: min(100%, 380px); text-align: left; }
.gate-card h1 { text-align: center; margin: 0 0 4px; } .gate-card > p.muted { text-align: center; margin: 0 0 14px; }
.dob { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; border: 0; padding: 0; margin: 0 0 8px; }
.dob label span { display: block; font-size: .72rem; color: var(--muted); margin: 0 0 4px 2px; font-weight: 600; }
.dob .input { text-align: center; font-family: 'Orbitron', sans-serif; letter-spacing: .08em; }
.gate-tt { display: grid; justify-items: center; gap: 6px; color: var(--dim); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.gate-tt img { height: 24px; width: auto; }

/* XP + daily panel + quests */
.xpbar { display: block; height: 8px; border-radius: 99px; background: rgba(99,102,241,.2); overflow: hidden; }
.xpbar.sm { height: 5px; } .xpbar.lg { height: 12px; margin: 8px 0 4px; }
.xpbar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,.6); transition: width .6s ease; }
.daily { padding: 12px; margin: 14px 0 4px; }
.daily-top { display: flex; align-items: center; gap: 14px; }
.streak-big { display: grid; justify-items: center; min-width: 74px; padding: 8px 6px; border-radius: 14px; color: var(--muted); background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.3); }
.streak-big .ico { width: 24px; height: 24px; }
.streak-big b { font-family: 'Orbitron', sans-serif; font-size: 1.35rem; line-height: 1.1; color: var(--text); }
.streak-big span { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.streak-big.on { color: #fdba74; border-color: rgba(249,115,22,.55); background: rgba(249,115,22,.1); box-shadow: 0 0 18px rgba(249,115,22,.25); }
.streak-big.on .ico { filter: drop-shadow(0 0 8px rgba(249,115,22,.9)); }
.lvl { flex: 1; min-width: 0; } .lvl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.lvl-h b { font-family: 'Orbitron', sans-serif; font-size: .95rem; }
.quests { display: grid; gap: 8px; }
.daily .quests { margin-top: 8px; }
.quest { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.25); transition: border-color .2s, background .2s; }
.q-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(99,102,241,.16); color: #a5b4fc; }
.q-body { flex: 1; min-width: 0; display: grid; gap: 3px; } .q-body b { font-size: .86rem; }
.q-body .bar { height: 5px; border-radius: 99px; background: rgba(99,102,241,.2); overflow: hidden; }
.q-body .bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.q-xp { flex: none; font-family: 'Orbitron', sans-serif; font-size: .7rem; color: var(--gold); } .q-xp.done { color: var(--green); }
.quest.ready { border-color: rgba(251,191,36,.55); box-shadow: 0 0 14px rgba(251,191,36,.18); }
.quest.claimed { opacity: .8; } .quest.claimed .q-ic { background: rgba(16,185,129,.18); color: var(--green); }
.quest.bonus .q-ic { background: rgba(251,191,36,.14); color: var(--gold); }
.q-claim { flex: none; }
.streak-card .sc-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.week { display: flex; gap: 6px; margin-top: 8px; } .week span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(5,8,26,.7); color: var(--dim); border: 1px solid rgba(99,102,241,.25); }
.week span .ico { width: 15px; height: 15px; } .week span.on { color: #fdba74; border-color: rgba(249,115,22,.5); background: rgba(249,115,22,.1); }
.streak-card, .streak-rewards, .invite-card { margin-bottom: 12px; }
.card.pad + .card.pad { margin-top: 12px; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.rw { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.25); }
.rw .ico { color: var(--gold); width: 20px; height: 20px; } .rw b { font-size: .82rem; } .rw span { font-size: .72rem; color: var(--muted); }
.cta-card { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.cta-card .es-ic { width: 42px; height: 42px; margin: 0; flex: none; }
.promo-grid { display: grid; gap: 10px; margin-top: 18px; }
.promo-grid .ach-promo { margin: 0; }
.ach-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.ach-links .chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }

/* tournaments */
.t-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; }
.t-strip > * { scroll-snap-align: start; }
.t-grid { display: grid; gap: 12px; }
.t-card { display: grid; grid-template-columns: 96px 1fr; overflow: hidden; color: var(--text); }
.t-art { position: relative; background-size: cover; background-position: center; min-height: 112px; }
.t-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(9,14,40,.95)); }
.t-art .pill { position: absolute; z-index: 1; left: 6px; top: 6px; background: rgba(5,7,20,.85); }
.t-body { display: grid; gap: 3px; align-content: center; padding: 10px 12px; min-width: 0; }
.t-body b { font-size: .92rem; line-height: 1.25; }
.t-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.t-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .t-meta .ico { width: 14px; height: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.t-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-explain .card.pad + .card.pad { margin-top: 0; }
.t-explain b { display: flex; align-items: center; gap: 6px; font-size: .86rem; } .t-explain p { margin: 6px 0 0; }
.t-hero { overflow: hidden; margin-bottom: 12px; background: linear-gradient(180deg, rgba(9,14,40,.55), rgba(9,14,40,.97) 70%), var(--art) center/cover; }
.t-hero-in { padding: 14px; }
.t-hero .page-head { margin-bottom: 6px; }
.t-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; } .t-hero-row .small { display: inline-flex; align-items: center; gap: 5px; }
.t-hero .cd { max-width: 320px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 10px; }
.bk-round { display: grid; align-content: space-around; gap: 10px; }
.bk-h { display: flex; justify-content: space-between; align-items: center; font-family: 'Orbitron', sans-serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bk-m { display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: rgba(5,8,26,.8); border: 1px solid rgba(99,102,241,.35); position: relative; }
.bk-p { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 8px; font-size: .8rem; min-width: 0; }
.bk-p.win { background: rgba(16,185,129,.12); box-shadow: inset 2px 0 0 var(--green); }
.bk-p.win .bk-s { color: var(--green); }
.bk-p.bye { opacity: .55; }
.seed { width: 18px; text-align: center; font-family: 'Orbitron', sans-serif; font-size: .64rem; color: var(--dim); }
.bk-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bk-s { font-family: 'Orbitron', sans-serif; font-size: .72rem; color: var(--muted); }
.bk-round.champ .bk-m { border-color: rgba(251,191,36,.6); box-shadow: 0 0 18px rgba(251,191,36,.25); padding: 12px; }

/* season */
.season-hero { position: relative; overflow: hidden; min-height: 190px; margin-bottom: 12px; }
.sh-bg { position: absolute; inset: 0; opacity: .75; }
.sh-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,20,.92) 30%, rgba(5,7,20,.35)); }
.sh-in { position: relative; padding: 18px; max-width: 520px; } .sh-in h1 { margin: 2px 0 4px; font-size: 1.6rem; }
.sh-tier { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; } .sh-tier b { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; } .sh-tier span { color: var(--muted); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.tier { display: grid; grid-template-rows: auto 1fr; gap: 6px; padding: 8px; min-height: 108px; border-radius: 12px; background: rgba(5,8,26,.75); border: 1px solid rgba(99,102,241,.25); text-align: center; }
.tier .tn { font-family: 'Orbitron', sans-serif; font-size: .78rem; color: var(--muted); }
.tier .tr { display: grid; place-items: center; gap: 4px; font-size: .66rem; } .tier .tr em { font-style: normal; font-weight: 700; line-height: 1.2; }
.tier .tr.dim { color: var(--dim); }
.tier.rw { border-color: rgba(251,191,36,.45); } .tier.rw .ico { color: var(--gold); }
.tier.on { background: rgba(124,58,237,.18); border-color: rgba(167,139,250,.65); } .tier.on .tn { color: #fff; } .tier.on .tr.dim { color: var(--green); }
.season-grid { display: grid; gap: 12px; margin-top: 8px; }
.ttb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .ttb-head img { height: 44px; width: auto; }
.ttb-list { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 8px; }
.ttb-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; } .ttb-list .ico { color: var(--cyan); margin-top: 2px; }
.tt-build { padding: 16px; margin-top: 18px; border-color: rgba(34,211,238,.45); background: radial-gradient(500px 200px at 100% 0, rgba(34,211,238,.12), transparent), linear-gradient(180deg, rgba(16,26,68,.92), rgba(9,14,40,.92)); }
.tt-build h2 { font-size: 1.02rem; text-transform: none; margin-bottom: 6px; } .tt-build p { margin: 0; font-size: .88rem; line-height: 1.5; }

/* notifications */
.notif-list { overflow: hidden; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--text); border-bottom: 1px solid rgba(99,102,241,.14); position: relative; transition: background .2s; }
.notif:last-child { border-bottom: 0; } .notif:hover { background: rgba(99,102,241,.08); }
.notif.unread { background: rgba(124,58,237,.1); }
.n-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(99,102,241,.16); color: #a5b4fc; }
.n-ic.t-achievement { color: var(--gold); background: rgba(251,191,36,.12); } .n-ic.t-win { color: var(--green); background: rgba(16,185,129,.14); } .n-ic.t-follow { color: var(--cyan); }
.n-b { display: grid; gap: 2px; min-width: 0; flex: 1; } .n-b b { font-size: .88rem; } .n-b span { font-size: .8rem; color: var(--muted); } .n-b em { font-style: normal; font-size: .7rem; color: var(--dim); }
.udot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); margin-top: 6px; flex: none; }

/* search */
.search-big .input { height: 52px; font-size: 1rem; }
.sr-list { overflow: hidden; }
.sr-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid rgba(99,102,241,.14); }
.sr-row:last-child { border-bottom: 0; } a.sr-row:hover { background: rgba(99,102,241,.08); }
.sr-row .gthumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; } .sr-row > .ico { color: var(--cyan); } .sr-row .muted { margin-left: auto; }

/* sheet (followers) */
.sheet { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.6); display: grid; align-items: end; justify-items: center; animation: pageIn .2s ease; }
.sheet-in { width: min(100%, 480px); max-height: 75vh; overflow: auto; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + var(--safe-b)); }
.sheet-list .mini-row { margin: 6px 12px; }

/* invites */
.invite-card { text-align: center; }
.ref-code { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 900; letter-spacing: .14em; margin: 6px 0 14px; background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy-field { display: flex; gap: 8px; align-items: center; } .copy-field .input { flex: 1; } .copy-field .btn { flex: none; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.inv-stats div { padding: 10px; border-radius: 12px; background: rgba(5,8,26,.7); border: 1px solid rgba(99,102,241,.25); } .inv-stats b { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.3rem; } .inv-stats span { font-size: .72rem; color: var(--muted); }
ol.steps { display: grid; gap: 6px; margin: 0 0 6px; padding-left: 20px; font-size: .88rem; }

/* share result card */
.share-card { position: relative; overflow: hidden; margin: 6px 0 14px; border-width: 2px; }
.share-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,20,.55), rgba(5,7,20,.92)); }
.shc-in { position: relative; z-index: 1; padding: 22px 18px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.shc-score { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 2.6rem; line-height: 1.1; text-shadow: 0 0 24px rgba(34,211,238,.6); }
.shc-who { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; text-align: left; } .shc-rank { color: var(--gold); font-weight: 700; }
.shc-art { width: 120px; border-radius: 14px; margin-top: 10px; box-shadow: 0 0 22px rgba(124,58,237,.45); }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.xp-line { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(124,58,237,.14); border: 1px solid rgba(167,139,250,.4); font-family: 'Orbitron', sans-serif; font-size: .76rem; }
.xp-line .xpbar { grid-column: 1 / -1; }

/* game boot overlay ("A Trap Tech game") */
.boot-ov { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(circle at 50% 40%, rgba(124,58,237,.35), rgba(5,7,20,.98) 70%); transition: opacity .35s ease; }
.boot-ov.out { opacity: 0; pointer-events: none; }
.boot-art { width: 120px; height: 120px; object-fit: cover; border-radius: 22px; box-shadow: 0 0 30px rgba(124,58,237,.6); animation: float 3s ease-in-out infinite; }
.boot-t { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.15rem; }
.boot-tt { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.boot-bar { width: 160px; height: 4px; border-radius: 99px; background: rgba(99,102,241,.25); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: bootbar 1s ease-in-out infinite; }
@keyframes bootbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* profile + giveaway actions */
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill.fire { color: #fdba74; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.45); }
.prof-actions { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.fcount { border: 0; background: rgba(99,102,241,.1); color: var(--muted); padding: 7px 12px; border-radius: 10px; cursor: pointer; font-size: .8rem; }
.fcount b { color: var(--text); font-family: 'Orbitron', sans-serif; margin-right: 3px; } .fcount:hover { background: rgba(99,102,241,.2); }
.gw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.gw-actions .btn { padding: 0 10px; font-size: .8rem; }

/* legal + about + settings */
.prose { line-height: 1.6; font-size: .92rem; }
.prose h2 { font-size: .85rem; margin: 20px 0 6px; color: #c4b5fd; } .prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 10px; } .prose ul { padding-left: 20px; } .prose li { margin-bottom: 6px; }
.npn { padding: 12px; border-radius: 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.45); font-weight: 700; font-size: .82rem; letter-spacing: .01em; }
.legal .tiny.center { margin-top: 14px; }
.about-hero { padding: 26px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; background: radial-gradient(500px 220px at 50% 0, rgba(34,211,238,.16), transparent), linear-gradient(180deg, rgba(16,26,68,.92), rgba(9,14,40,.92)); }
.about-hero img { width: 240px; height: auto; filter: drop-shadow(0 0 20px rgba(34,211,238,.35)); }
.about-hero h1 { margin: 10px 0 0; font-size: 1.35rem; } .about-hero p { max-width: 560px; margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.about-grid .card.pad + .card.pad { margin-top: 0; }
.about-grid .es-ic { width: 40px; height: 40px; } .about-grid b { display: block; margin-top: 6px; } .about-grid p { margin: 4px 0 0; }
.about-mini { display: flex; align-items: center; gap: 12px; } .about-mini img { height: 42px; width: auto; } .about-mini div { flex: 1; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(99,102,241,.14); }
.set-row:last-child { border-bottom: 0; } .set-row b { display: flex; align-items: center; gap: 8px; }
.toggle { position: relative; width: 48px; height: 28px; flex: none; } .toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: rgba(99,102,241,.25); border: 1px solid rgba(99,102,241,.5); transition: background .2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--grad); } .toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.legal-links { margin-top: 12px; overflow: hidden; } .legal-links .act-row { padding: 12px 14px; }

@media (min-width: 900px) {
  .topbar .more-btn { display: inline-grid; }
  .narrow.wide { max-width: 1080px; }
  .site-foot { margin-top: 48px; padding: 26px 0 8px; }
  .sf-in { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: 10px 30px; }
  .sf-brand { justify-items: start; } .sf-links { justify-content: flex-end; justify-self: end; } .sf-note { grid-column: 1 / -1; max-width: none; }
  .t-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .t-card { grid-template-columns: 120px 1fr; }
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .season-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .track { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); grid-auto-columns: auto; overflow: visible; }
  .about-grid { grid-template-columns: repeat(4, 1fr); }
  .daily-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sk-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { align-items: center; } .sheet-in { border-radius: 20px; }
  .offline-bar { top: 70px; }
  .share-card .shc-in { padding: 34px; }
}
@media (max-width: 380px) { .t-explain { grid-template-columns: 1fr; } .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .bracket { grid-auto-columns: minmax(158px, 1fr); gap: 10px; } .bk-p .frame { display: none; } .bk-p { padding: 6px 6px; } }
.lb .sc { white-space: nowrap; }
.bk-m.tbd { border-style: dashed; opacity: .7; }
.bk-round { min-width: 0; } .bk-m { min-width: 0; }
.bk-h { gap: 6px; flex-wrap: wrap; min-height: 22px; } .bk-h .pill { font-size: .6rem; padding: 1px 7px; }
@media (max-width: 600px) { .bracket { grid-auto-columns: 176px; } .bk-h { font-size: .62rem; } }
/* keep score columns intact: the player cell shrinks + ellipsizes instead */
.lb td:has(> .who) { max-width: 0; width: 100%; }
.lb td > .who { min-width: 0; overflow: hidden; } .lb td > .who .pname { min-width: 0; overflow: hidden; }
.site-foot .sf-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .daily .quests { grid-template-columns: repeat(3, 1fr); } .site-foot .sf-in { padding: 0 28px; } .page + .site-foot, .site-foot { padding-bottom: 20px; } }
@media (max-width: 899px) { .page:has(+ .site-foot) { padding-bottom: 8px; } .site-foot { padding-bottom: calc(var(--nav-h) + 22px + var(--safe-b)); } }

/* ---------- v4: winner rules, live standings, final results ---------- */
.pill.wpend { background: rgba(251,146,60,.12); color: #fdba74; border-color: rgba(251,146,60,.5); }
.wstate { white-space: nowrap; font-size: .7rem; }
.gw-how, .final-res { margin-bottom: 14px; }
.gw-how h2 .ico, .final-res h2 .ico { vertical-align: -3px; }
.tb-rules { margin: 6px 0 0; padding-left: 22px; font-size: .85rem; line-height: 1.45; }
.tb-rules li { margin: 3px 0; }
.tb-rules.plain { list-style: none; padding-left: 4px; }
.final-res { border-color: rgba(251,191,36,.55); box-shadow: 0 0 22px rgba(251,191,36,.12); }
.win-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 6px 0; border-radius: 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); flex-wrap: wrap; }
.win-row.confirmed { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.45); }
.win-row .wp { font-family: 'Orbitron', sans-serif; font-weight: 800; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; min-width: 48px; }
.win-row .wn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.win-row .ws { font-family: 'Orbitron', sans-serif; font-size: .8rem; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lb tr.win td { background: rgba(251,191,36,.10); }
.lb tr.win td.rk { color: var(--gold); }
.lb tr.me.win td { background: rgba(251,191,36,.18); }
.tb-tag { display: inline-block; margin: 2px 0 0 4px; font-size: .62rem; font-weight: 700; color: #c4b5fd; border: 1px solid rgba(167,139,250,.45); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.lb td > .who + .tb-tag { margin-left: 46px; }
.live-lb .lv-tools { gap: 10px; flex-wrap: wrap; }
.live-lb .lv-tools .input { max-width: 220px; padding: 8px 10px; font-size: .85rem; }
.lv-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #a7f3d0; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); border-radius: 999px; padding: 5px 12px; margin: 0 0 10px; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: lvpulse 1.6s infinite; }
@keyframes lvpulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (prefers-reduced-motion: reduce) { .live-pill .dot { animation: none; } }
.final-banner { padding: 10px 12px; border-radius: 12px; margin: 0 0 12px; font-size: .85rem; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.4); }
.final-banner.confirmed { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.45); }
.final-banner .wstate { margin-left: 4px; }
.lv-mecard { margin-bottom: 14px; display: grid; gap: 10px; border-color: rgba(139,92,246,.6); box-shadow: 0 0 22px rgba(139,92,246,.18); }
.lv-mecard.is-win { border-color: rgba(251,191,36,.65); }
.lv-mecard.guest { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-rank { display: flex; align-items: baseline; gap: 8px; }
.lv-rank span { color: var(--muted); font-size: .85rem; }
.lv-rank b { font-family: 'Orbitron', sans-serif; font-size: 2rem; line-height: 1; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.lv-stats > div { background: rgba(5,8,26,.55); border: 1px solid rgba(99,102,241,.25); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.lv-stats small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.lv-stats b { font-family: 'Orbitron', sans-serif; font-size: .95rem; }
.lv-stats em { font-style: normal; font-size: .7rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.lb.lv th:nth-child(4), .lb.lv td:nth-child(4) { text-align: center; }
@media (max-width: 560px) { .hide-sm { display: none; } }
code.hash { font-size: .68rem; word-break: break-all; background: rgba(5,8,26,.7); padding: 1px 5px; border-radius: 6px; color: #c4b5fd; }
.res-head h2 { margin: 4px 0 10px; }
.res-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 14px; font-size: .85rem; }
.res-meta small { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.results-page .card { margin-bottom: 14px; }
.results-page .back-row .spacer { flex: 1; }
.res-table td, .res-table th { font-size: .8rem; }
.res-table th:last-child, .res-table td:last-child { text-align: left; }
.vf-ok { color: var(--green); margin: 4px 0; } .vf-bad { color: var(--red); margin: 4px 0; font-weight: 700; }
.vf-ok .ico, .vf-bad .ico { vertical-align: -3px; }
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .topbar, .bottomnav, .site-foot, .no-print, .toast, .ach-stack, .bn-strip, .drawer { display: none !important; }
  .print-only { display: block; margin-bottom: 8px; filter: invert(1) hue-rotate(180deg); }
  .page { padding: 0 !important; max-width: none !important; }
  .results-page .card { background: #fff !important; border: 1px solid #999 !important; box-shadow: none !important; color: #000 !important; break-inside: avoid; }
  .results-page .lb td, .results-page .lb th { color: #000 !important; border-color: #bbb !important; background: #fff !important; }
  .results-page .lb tr.win td { background: #fff3c4 !important; }
  .results-page .win-row { background: #fff8db !important; border-color: #c9a227 !important; color: #000 !important; }
  .results-page .muted, .results-page .tiny, .res-meta small { color: #333 !important; }
  .results-page code.hash { background: #f1f1f1 !important; color: #000 !important; }
  .results-page .res-table { break-inside: auto; } .results-page .res-table tr { break-inside: avoid; }
  a { color: #000 !important; text-decoration: none; }
  .pill { border-color: #999 !important; color: #000 !important; background: #fff !important; }
}
.lb tr.zone td.rk { color: var(--gold); text-shadow: 0 0 8px rgba(251,191,36,.5); }

/* ---------- v5: phones + in-app browsers (Potato, Android WebView, iOS WKWebView) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body, #app, .splash, .gate { min-height: 100vh; min-height: 100dvh; }
a, button, .btn, .chip, .iconbtn, input, select, textarea, label { touch-action: manipulation; }
.topbar { padding-top: max(env(safe-area-inset-top, 0px), 0px); padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
.page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.play-wrap { height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); overscroll-behavior: none; }
#game { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.input, input, select, textarea { font-size: max(16px, 1em); } /* no iOS focus zoom */
.copy-sheet .input { width: 100%; margin-bottom: 8px; }
@media (hover: none) {
  .gcard:hover, a.card:hover, a.gcard:hover, a.t-card:hover { transform: none; box-shadow: none; }
  .btn:hover { filter: none; }
}

/* ---------- v5: sponsor tiers ---------- */
.who-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.who-chips .chip { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35); color: #ddd6fe; }
.pk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.launch-pill { flex-basis: 100%; display: inline-flex; align-items: center; gap: 5px; width: max-content; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #052e16; background: linear-gradient(90deg,#4ade80,#22d3ee); padding: 3px 9px; border-radius: 999px; }
.launch-pill svg { width: 12px; height: 12px; }
.pk-price s.reg { color: var(--muted, #9aa0c8); font-weight: 700; font-size: 1rem; }
.pk-dims { margin: 10px 0; display: grid; gap: 7px; }
.pk-dims .dim { background: rgba(5,8,26,.55); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 7px 10px; }
.pk-dims dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #a5b4fc; display: flex; align-items: center; gap: 5px; font-weight: 700; }
.pk-dims dt svg { width: 13px; height: 13px; }
.pk-dims dd { margin: 2px 0 0; font-size: .86rem; line-height: 1.35; }
.pk.elite .pk-dims .d-links, .pk.premium .pk-dims .d-links { border-color: rgba(74,222,128,.45); }
.pk.basic .pk-dims .d-links dd { color: #fca5a5; }
.pk-more summary { cursor: pointer; font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; list-style: none; }
.pk-more summary::-webkit-details-marker { display: none; }
.pk-more summary svg { width: 14px; height: 14px; }
.launch-note { margin: 10px 0 0; }
.why-links { margin-top: 14px; border-color: rgba(74,222,128,.35); }
.why-links h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.addons { display: grid; gap: 8px; }
@media (min-width: 760px) { .addons { grid-template-columns: 1fr 1fr; } }
.addon { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.addon .ap { font-weight: 800; color: #4ade80; white-space: nowrap; font-size: .9rem; }
.addon.custom { border-color: rgba(139,92,246,.5); }
.cmp th small s { opacity: .7; }
.potato-confirm { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.4); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.potato-confirm .pc-ic { color: #22d3ee; font-size: 1.6rem; line-height: 1; }
.potato-confirm .handle { color: #67e8f9; }
.check.lic { background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.4); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.check.lic .req { color: #fde047; font-weight: 700; }
.ad-pick { display: grid; gap: 6px; margin: 6px 0 12px; }
.ad-pick .check { margin: 0; }

/* ---------- v5: channels + eligibility ---------- */
.gw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip-row .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.chip-row .chip.on { background: rgba(139,92,246,.25); border-color: #8b5cf6; }
.chip-row .chip svg { width: 15px; height: 15px; }
.ch-link { color: #c4b5fd; font-weight: 700; text-decoration: none; }
.sponsor-link { margin: 8px 0; }
.elig h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.elig-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; font-size: .95rem; }
.elig-status.ok { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.45); color: #bbf7d0; }
.elig-status.joined { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.45); color: #a5f3fc; }
.elig-status.no { background: rgba(250,204,21,.1); border: 1px solid rgba(250,204,21,.4); color: #fef08a; }
.elig-checks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.elig-checks li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(5,8,26,.5); }
.elig-checks li > svg { width: 18px; height: 18px; flex: none; }
.elig-checks li.ok > svg { color: #4ade80; } .elig-checks li.no > svg { color: #f87171; }
.elig-checks li span { flex: 1; display: grid; } .elig-checks small { color: var(--muted, #9aa0c8); font-size: .78rem; }
.elig-entries { font-size: .88rem; margin: 6px 0 10px; display: flex; align-items: center; gap: 6px; }
.elig-rules summary { cursor: pointer; font-weight: 700; font-size: .88rem; display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.elig-rules ul { margin: 8px 0 0; padding-left: 20px; font-size: .85rem; color: #cfd3f5; } .elig-rules li { margin: 4px 0; }
.potato-form { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; } .potato-form .field { flex: 1; margin: 0; }
.ent-row { display: flex; gap: 10px; align-items: center; } .ent-row a { flex: 1; color: var(--text); }
.ch-list { display: grid; gap: 10px; }
.ch-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text); text-decoration: none; border-left: 4px solid var(--bc); }
.ch-card > div { flex: 1; }
.ch-logo { border-radius: 14px; object-fit: cover; flex: none; background: #111; }
.ch-logo.ph { display: grid; place-items: center; font-weight: 800; background: var(--bc, #8b5cf6); }
.ch-head { display: flex; gap: 14px; align-items: center; padding: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 30%, transparent), rgba(5,8,26,.8)); border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); }
.ch-head.elite { box-shadow: 0 0 24px color-mix(in srgb, var(--bc) 40%, transparent); }
.ch-meta { flex: 1; } .ch-meta .btn-row { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.game-sponsor { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 10px 0; border-left: 4px solid var(--bc, #8b5cf6); }
.game-sponsor > div { flex: 1; } .game-sponsor img { width: 36px; height: 36px; border-radius: 10px; }

/* ===== v5: points shop, badge art, special badges, profile effects, fair-play messages ===== */
.badge-art { width: 44px; height: 44px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.badge-art.sm { width: 30px; height: 30px; }
.badge-art.locked { filter: grayscale(1) brightness(.55); opacity: .7; }
.ach .ai.art { background: none !important; box-shadow: none !important; border: 0 !important; width: 48px; height: 48px; display: grid; place-items: center; }
.ach.t-legendary.on { box-shadow: 0 0 0 1px rgba(250,204,21,.45), 0 0 22px rgba(236,72,153,.25); }
.ach.t-platinum.on { box-shadow: 0 0 0 1px rgba(125,211,252,.55), 0 0 26px rgba(56,189,248,.35); }
.eqbadge.t-admin { --tc: #a78bfa; color: #fff; background: linear-gradient(135deg,#22d3ee,#a78bfa); box-shadow: 0 0 10px rgba(167,139,250,.8); outline: 1px solid rgba(255,255,255,.7); }
.eqbadge.t-common { --tc: #cbd5e1; } .eqbadge.t-rare { --tc: #60a5fa; } .eqbadge.t-epic { --tc: #e879f9; }
.eqbadge.big { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); }
.eqbadge.big .ico { width: 30px; height: 30px; }
.special-card { margin-bottom: 12px; border: 1px solid rgba(167,139,250,.35); background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(167,139,250,.1)); }
.special-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.special-b { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.2); }
.special-b b { font-size: .78rem; } .special-b small { font-size: .66rem; color: var(--muted); line-height: 1.2; }
.special-b.on { background: rgba(167,139,250,.16); box-shadow: inset 0 0 0 1px rgba(167,139,250,.55), 0 0 14px rgba(34,211,238,.18); }
.special-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.special-row .special-b { flex-direction: row; padding: 4px 10px 4px 4px; background: rgba(167,139,250,.14); box-shadow: inset 0 0 0 1px rgba(167,139,250,.5); }
.scroll-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .scroll-tabs button { white-space: nowrap; }
.shop-bal { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.shop-bal .sb-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg,#fde047,#f59e0b); color: #1c1917; }
.shop-bal .sb-ic .ico { width: 26px; height: 26px; } .shop-bal > div:nth-child(2) { flex: 1; } .sb-n { font-family: Orbitron, sans-serif; font-size: 1.5rem; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-item { overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); }
.shop-item.r-rare { border-color: rgba(96,165,250,.45); } .shop-item.r-epic { border-color: rgba(232,121,249,.5); } .shop-item.r-legendary { border-color: rgba(250,204,21,.6); box-shadow: 0 0 18px rgba(250,204,21,.18); }
.shop-item.owned { opacity: .8; }
.sp-prev { display: block; height: 84px; position: relative; overflow: hidden; background-color: #0b1030; }
.sp-center { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(124,77,255,.25), transparent 70%), #0b1030; }
.sp-name { font-size: 1.15rem; font-weight: 800; }
.si-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.si-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .si-top b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rar-chip { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: rgba(148,163,184,.2); color: #cbd5e1; flex: none; }
.rar-chip.r-rare { background: rgba(96,165,250,.2); color: #93c5fd; } .rar-chip.r-epic { background: rgba(232,121,249,.2); color: #f0abfc; } .rar-chip.r-legendary { background: rgba(250,204,21,.2); color: #fde047; }
.shop-owned { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.earn-list { margin: 0 0 8px 18px; padding: 0; line-height: 1.7; font-size: .9rem; }
.pb-banner { font-family: Orbitron, sans-serif; font-weight: 900; text-align: center; padding: 8px; margin-bottom: 8px; border-radius: 12px; color: #1c1917; background: linear-gradient(90deg,#fde047,#f472b6,#22d3ee); animation: pb-pop .6s ease-out; }
@keyframes pb-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.held-msg { padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.4); font-size: .85rem; }
/* profile effects (cosmetic overlay on the profile banner) */
.fx { position: relative; overflow: hidden; }
.fx::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.prof-banner.fx > * { position: relative; z-index: 1; }
.fx.fx-smoke::before { background: radial-gradient(40% 30% at 20% 80%, rgba(226,232,240,.28), transparent 70%), radial-gradient(35% 28% at 70% 70%, rgba(196,181,253,.25), transparent 70%), radial-gradient(30% 25% at 45% 30%, rgba(226,232,240,.18), transparent 70%); animation: fx-drift 9s ease-in-out infinite alternate; }
.fx.fx-leaves::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath fill='%2386efac' fill-opacity='.5' d='M20 4c2 6 2 11 1 15 3-3 7-5 11-5-2 4-6 7-10 8 3 1 5 2 7 4-4 1-7 0-9-1l-1 9-1-9c-2 1-5 2-9 1 2-2 4-3 7-4-4-1-8-4-10-8 4 0 8 2 11 5-1-4-1-9 3-15z' transform='scale(.6) rotate(20 20 20)'/%3E%3C/svg%3E"); background-size: 60px 60px; animation: fx-fall 7s linear infinite; }
.fx.fx-pixels::before { background-image: linear-gradient(#84cc16 0 0), linear-gradient(#22d3ee 0 0), linear-gradient(#f472b6 0 0), linear-gradient(#fde047 0 0); background-size: 6px 6px; background-repeat: no-repeat; background-position: 10% 0, 40% 30%, 70% 10%, 90% 50%; animation: fx-pix 2.8s steps(14) infinite; }
.fx.fx-neon::before { box-shadow: inset 0 0 22px rgba(236,72,153,.7), inset 0 0 44px rgba(34,211,238,.45); animation: fx-pulse 1.8s ease-in-out infinite; }
.fx.fx-sparkle::before { background: radial-gradient(2px 2px at 15% 30%, #fff, transparent), radial-gradient(2px 2px at 60% 20%, #e0f2fe, transparent), radial-gradient(3px 3px at 80% 70%, #fff, transparent), radial-gradient(2px 2px at 35% 75%, #bae6fd, transparent), radial-gradient(2px 2px at 90% 35%, #fff, transparent); animation: fx-twinkle 1.6s ease-in-out infinite alternate; }
.fx.fx-coins::before { background-image: radial-gradient(circle at 50% 50%, #fde047 0 4px, #b45309 4px 5px, transparent 6px); background-size: 46px 46px; animation: fx-fall 3.5s linear infinite; opacity: .75; }
@keyframes fx-drift { from { transform: translateX(-6%) translateY(4%); } to { transform: translateX(6%) translateY(-6%); } }
@keyframes fx-fall { from { background-position: 0 -60px; } to { background-position: 30px 120px; } }
@keyframes fx-pix { from { transform: translateY(-20%); } to { transform: translateY(120%); } }
@keyframes fx-pulse { 50% { opacity: .45; } }
@keyframes fx-twinkle { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx::before, .pb-banner { animation: none !important; } }

/* V1 AAA polish layer: shared design tokens and responsive finish across every Hub route. */
:root{--v1-border:rgba(148,163,255,.18);--v1-surface:rgba(11,17,43,.84);--v1-surface-hi:rgba(19,27,65,.94);--v1-shadow:0 18px 48px rgba(0,0,0,.28)}
body{background:radial-gradient(900px 500px at 80% -8%,rgba(124,58,237,.19),transparent 64%),radial-gradient(760px 500px at -12% 26%,rgba(34,211,238,.09),transparent 64%),linear-gradient(180deg,#050714 0%,#080b1d 48%,#050714 100%);background-attachment:fixed}
.topbar{border-bottom-color:var(--v1-border);box-shadow:0 8px 30px rgba(0,0,0,.16)}
.card{border-color:var(--v1-border);box-shadow:var(--v1-shadow);backdrop-filter:blur(10px);transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.card.pad{padding:clamp(14px,2.4vw,20px)}
.section-h{margin-top:24px;margin-bottom:12px;gap:12px}.section-h h2{letter-spacing:.075em}
.btn{min-height:44px;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}.btn:hover{box-shadow:0 9px 28px rgba(99,102,241,.32);filter:brightness(1.08)}
.btn:focus-visible,.iconbtn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
input,select,textarea{border-color:var(--v1-border)}input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:12px}
.bottomnav{border-top-color:var(--v1-border);box-shadow:0 -12px 34px rgba(0,0,0,.35)}.bottomnav a{transition:color .15s ease,background .15s ease}.bottomnav a.on{background:linear-gradient(180deg,rgba(139,92,246,.13),transparent 88%)}
.pname .nt{font-weight:800}
@media(min-width:900px){.page{max-width:1180px;padding-left:24px;padding-right:24px}.page:not(.full){max-width:1180px}}
@media(max-width:600px){.page{padding-left:14px;padding-right:14px}.card.pad{padding:14px}.section-h{margin-top:20px}.btn{letter-spacing:.035em}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* Prestige originals: each one-of-one collectible has its own art language and restrained motion. */
.px-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.px-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.px-card .px-art { align-self: center; margin: 4px auto 10px; }
.px-art {
  position: relative; display: grid; place-items: center; width: var(--s,120px); height: var(--s,120px);
  flex: 0 0 auto; overflow: hidden; isolation: isolate; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at 50% 42%, #26375d 0, #11172b 55%, #080b15 100%);
  color: var(--px-ink,#fff7dc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -16px 26px rgba(0,0,0,.3), 0 12px 28px rgba(0,0,0,.24);
}
.px-art::before,.px-art::after { content:""; position:absolute; inset:0; pointer-events:none; z-index:0; }
.px-art::before { opacity:.6; background:repeating-linear-gradient(135deg,transparent 0 11px,rgba(255,255,255,.035) 11px 12px); }
.px-art::after { inset:7%; border:1px solid rgba(255,255,255,.14); border-radius:17px; }
.px-art .px-glow { position:absolute; inset:12%; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.22),transparent 68%); filter:blur(2px); z-index:1; }
.px-art > svg { position:relative; z-index:3; width:42%; height:42%; color:var(--px-ink,#fff7dc); filter:drop-shadow(0 0 8px currentColor) drop-shadow(0 5px 5px rgba(0,0,0,.5)); }
.px-art .px-artwork { position:relative; z-index:3; display:block; width:86%; height:86%; object-fit:contain; filter:drop-shadow(0 4px 8px rgba(0,0,0,.42)); }
.px-art > i { position:absolute; display:block; pointer-events:none; z-index:2; }
.px-art > i:nth-of-type(1) { inset:10%; border:1px solid rgba(255,255,255,.4); border-radius:50%; transform:rotate(-24deg) scaleX(.72); }
.px-art > i:nth-of-type(2) { inset:17%; border:1px dashed rgba(255,255,255,.3); border-radius:50%; transform:rotate(35deg) scaleX(.6); }
.px-art > i:nth-of-type(3) { width:5px; height:5px; border-radius:50%; background:currentColor; top:19%; right:24%; box-shadow:0 0 12px currentColor; }
.px-art.px-art-prism-cane { --px-ink:#fff7d6; background:conic-gradient(from 20deg,#13314a,#573b8c,#b54c86,#237c8a,#13314a); }
.px-art.px-art-prism-cane .px-glow { background:conic-gradient(#6ee7f9,#f0abfc,#fde68a,#6ee7f9); opacity:.6; animation:px-prism-spin 7s linear infinite; }
.px-art.px-art-stack-throne { --px-ink:#d9f99d; background:linear-gradient(145deg,#173b2d,#10251f 52%,#07130f); }
.px-art.px-art-stack-throne::before { background:repeating-linear-gradient(0deg,transparent 0 8px,rgba(163,230,53,.15) 8px 10px),repeating-linear-gradient(90deg,transparent 0 13px,rgba(250,204,21,.08) 13px 15px); }
.px-art.px-art-royal-crown { --px-ink:#fde68a; background:radial-gradient(circle at 50% 35%,#76521b,#20170e 54%,#08090e); }
.px-art.px-art-royal-crown .px-glow { inset:19%; border:2px solid rgba(253,230,138,.45); box-shadow:0 0 22px rgba(250,204,21,.45),inset 0 0 22px rgba(250,204,21,.2); }
.px-art.px-art-phoenix-mantle { --px-ink:#ffdfaa; background:radial-gradient(ellipse at 50% 85%,#f97316 0,#7c2d12 35%,#170b13 76%); }
.px-art.px-art-phoenix-mantle .px-glow { background:radial-gradient(ellipse at 50% 85%,rgba(251,146,60,.9),rgba(239,68,68,.25) 45%,transparent 70%); animation:px-flare 2.8s ease-in-out infinite alternate; }
.px-art.px-art-singularity { --px-ink:#e9d5ff; background:radial-gradient(circle,#6d28d9 0,#26114d 36%,#070613 76%); }
.px-art.px-art-singularity .px-glow { inset:24%; border:3px solid rgba(216,180,254,.7); box-shadow:0 0 0 7px rgba(168,85,247,.15),0 0 28px #a855f7; animation:px-singularity 5s linear infinite; }
.px-art.px-art-void-dragon { --px-ink:#a7f3d0; background:radial-gradient(circle at 50% 45%,#064e3b,#071b1a 54%,#03080b); }
.px-art.px-art-void-dragon .px-glow { background:radial-gradient(circle,rgba(16,185,129,.5),transparent 65%); animation:px-void-pulse 3s ease-in-out infinite; }
.px-art.px-art-nebula-wings { --px-ink:#f5d0fe; background:linear-gradient(135deg,#20105c,#4c1d95 42%,#172554 80%,#080b18); }
.px-art.px-art-nebula-wings::before { background:radial-gradient(2px 2px at 18% 23%,#fff,transparent 3px),radial-gradient(2px 2px at 72% 18%,#f0abfc,transparent 3px),radial-gradient(2px 2px at 82% 74%,#fff,transparent 3px),radial-gradient(2px 2px at 28% 78%,#c4b5fd,transparent 3px); }
.px-art.px-art-titan-exoframe { --px-ink:#bfdbfe; background:linear-gradient(145deg,#334155,#0f172a 58%,#030712); }
.px-art.px-art-titan-exoframe .px-glow { inset:16%; border:2px solid rgba(96,165,250,.65); border-radius:12px; box-shadow:inset 0 0 20px rgba(59,130,246,.35),0 0 18px rgba(59,130,246,.35); }
.px-art.px-art-holo-decree { --px-ink:#a5f3fc; background:linear-gradient(135deg,#083344,#164e63 48%,#0f172a); }
.px-art.px-art-holo-decree::before { background:repeating-linear-gradient(0deg,transparent 0 5px,rgba(103,232,249,.13) 5px 6px); }
.px-art.px-art-storm-halo { --px-ink:#e0f2fe; background:radial-gradient(circle at 50% 30%,#475569,#111827 56%,#05070b); }
.px-art.px-art-storm-halo .px-glow { inset:22%; border:2px solid rgba(125,211,252,.8); box-shadow:0 0 14px rgba(56,189,248,.7); animation:px-storm 2.4s steps(2,end) infinite; }
.px-art.px-art-chronos-mantle { --px-ink:#fef3c7; background:radial-gradient(circle,#78350f 0,#292014 45%,#070707 80%); }
.px-art.px-art-chronos-mantle .px-glow { inset:21%; border:2px solid rgba(253,230,138,.65); border-radius:50%; box-shadow:0 0 16px rgba(251,191,36,.35); }
.px-art.px-art-aurora-crown { --px-ink:#ccfbf1; background:linear-gradient(145deg,#064e3b,#164e63 40%,#312e81 75%,#080b18); }
.px-art.px-art-aurora-crown .px-glow { background:linear-gradient(125deg,rgba(45,212,191,.5),rgba(167,139,250,.35),rgba(244,114,182,.3)); filter:blur(8px); animation:px-aurora 5s ease-in-out infinite alternate; }
.px-fx-prism > i:nth-of-type(1),.px-fx-singularity > i:nth-of-type(1),.px-fx-nebula > i:nth-of-type(1) { animation:px-prism-spin 8s linear infinite; }
.px-fx-stack > i:nth-of-type(2),.px-fx-holo > i:nth-of-type(2) { animation:px-float 3s ease-in-out infinite alternate; }
.px-fx-royal > i:nth-of-type(1),.px-fx-chronos > i:nth-of-type(1) { animation:px-prism-spin 12s linear infinite; }
.px-fx-phoenix > i:nth-of-type(3),.px-fx-void > i:nth-of-type(3),.px-fx-storm > i:nth-of-type(3) { animation:px-spark 1.7s ease-in-out infinite alternate; }
.px-fx-titan > i:nth-of-type(1),.px-fx-aurora > i:nth-of-type(1) { animation:px-float 4s ease-in-out infinite alternate; }
@keyframes px-prism-spin { to { transform:rotate(336deg) scaleX(.72); } }
@keyframes px-flare { from { opacity:.45; transform:scale(.88); } to { opacity:.95; transform:scale(1.08); } }
@keyframes px-singularity { to { transform:rotate(360deg) scaleX(.62); } }
@keyframes px-void-pulse { 50% { opacity:.35; transform:scale(.88); } }
@keyframes px-storm { 50% { opacity:.4; filter:blur(2px); } }
@keyframes px-aurora { to { transform:translateX(8%) rotate(8deg); opacity:.55; } }
@keyframes px-float { to { transform:translateY(-7px) rotate(10deg); } }
@keyframes px-spark { to { transform:translateY(-9px) scale(1.5); opacity:.2; } }
@media (prefers-reduced-motion: reduce) { .px-art *, .px-art::before, .px-art::after { animation:none !important; transition:none !important; } }


/* Searchable rotating cosmetic catalog */
.shop-catalog-head { align-items:center; gap:12px; }
.shop-catalog { margin-bottom:18px; }
.shop-catalog-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,.65fr) auto; gap:8px; margin:12px 0 16px; }
.shop-catalog-filters .input { min-width:0; width:100%; }
.shop-catalog .shop-owned { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.shop-catalog-item { min-width:0; width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:7px; padding:10px; text-align:left; color:var(--text); border:1px solid var(--line); background:rgba(15,23,42,.92); border-radius:12px; cursor:pointer; }
.shop-catalog-item b { overflow-wrap:anywhere; }
.shop-catalog-item .ec-prev { width:100%; min-height:64px; }
.shop-catalog-pager { align-items:center; justify-content:space-between; margin-top:14px; }
@media (max-width:700px) {
  .shop-catalog-filters { grid-template-columns:1fr 1fr; }
  .shop-catalog-filters button { grid-column:1 / -1; }
  .shop-catalog .shop-owned { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Per-game achievement plaques use the game's actual source artwork, not a repeated
   generic avatar portrait. Tier rim and icon identify the specific milestone. */
.ach-game-art{--ach-light:#8d9ed1;display:block;position:relative;width:82px;height:96px;flex:none;border:2px solid var(--ach-light);border-radius:15px;background:#080d1d;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 10px 24px rgba(0,0,0,.27)}
.ach-game-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.94)}
.ach-game-art::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 15%,rgba(3,7,22,.25) 45%,rgba(3,7,22,.95) 100%)}
.ach-game-art>.ico{position:absolute;left:7px;bottom:11px;z-index:2;width:25px;height:25px;color:var(--ach-light);filter:drop-shadow(0 2px 4px #000)}
.ach-game-grade{position:absolute;right:4px;bottom:13px;z-index:2;text-transform:uppercase;font-size:8px;font-weight:900;color:#fff;letter-spacing:.035em;text-shadow:0 2px 4px #000}
.ach-game-art.tier-bronze{--ach-light:#d6a16e}.ach-game-art.tier-silver{--ach-light:#d4e0ee}
.ach-game-art.tier-gold{--ach-light:#ffd76e}.ach-game-art.tier-epic{--ach-light:#d7a7ff}
.ach-game-art.tier-legendary{--ach-light:#ffee97;box-shadow:0 0 18px rgba(255,208,85,.24)}.ach-game-art.tier-platinum{--ach-light:#b8ecff;box-shadow:0 0 22px rgba(125,211,252,.35)}
.ach.off .ach-game-art img{filter:saturate(.55) brightness(.68)}
@media(max-width:460px){.ach-game-art{width:70px;height:83px}.ach-game-grade{font-size:7px;right:3px}}

/* Source-asset achievement rewards, using Kenney CC0 medals and per-game artwork. */
.ach-game-art .ach-medal{position:absolute;z-index:2;right:7px;top:7px;width:33px;height:33px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,0,0,.55))}
.ach-game-art>.ico{background:rgba(6,9,24,.72);padding:3px;border-radius:6px}

/* Genuine CC0 Kenney medal artwork in non-game achievement rows. */
.ach-license-art{--lic:#c8d8f9;flex:none;position:relative;display:grid;place-items:center;width:82px;height:96px;overflow:hidden;border:2px solid var(--lic);border-radius:16px;background:radial-gradient(circle at 28% 16%,rgba(160,150,255,.35),transparent 50%),linear-gradient(135deg,#182b4d,#070b1d);box-shadow:0 10px 24px rgba(0,0,0,.28)}
.ach-license-art:before{content:"";position:absolute;inset:-25%;background:repeating-conic-gradient(from 20deg,transparent 0 18deg,rgba(255,255,255,.07) 18deg 22deg,transparent 22deg 45deg)}
.ach-license-art img{position:relative;z-index:1;width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 4px 5px #030814)}
.ach-license-sigil{position:absolute;z-index:2;left:8px;bottom:10px;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(3,8,23,.9);color:#f8fafc;border:1px solid #64748b}
.ach-license-sigil .ico,.ach-license-sigil svg{width:19px;height:19px}
.ach-license-tier{position:absolute;z-index:2;right:5px;bottom:10px;color:var(--lic);font-size:8px;letter-spacing:.06em;text-transform:uppercase;font-weight:900;text-shadow:0 2px 4px #000}
.ach-license-art.tier-bronze{--lic:#d6a16e}.ach-license-art.tier-silver{--lic:#d4e0ee}.ach-license-art.tier-gold{--lic:#ffd76e}.ach-license-art.tier-epic{--lic:#d7a7ff}.ach-license-art.tier-legendary{--lic:#ffe597;box-shadow:0 0 22px rgba(255,207,84,.22)}.ach-license-art.tier-platinum{--lic:#b8ecff;box-shadow:0 0 24px rgba(125,211,252,.3)}
.ach-license-art.cat-progress{background:radial-gradient(circle at 28% 16%,rgba(57,218,175,.31),transparent 50%),linear-gradient(135deg,#0b3b3f,#090e21)}
.ach-license-art.cat-giveaways{background:radial-gradient(circle at 28% 16%,rgba(241,177,90,.29),transparent 50%),linear-gradient(135deg,#40311f,#101125)}
.ach-license-art.cat-community,.ach-license-art.cat-social{background:radial-gradient(circle at 28% 16%,rgba(235,124,192,.31),transparent 50%),linear-gradient(135deg,#3b2248,#101125)}
.ach-license-art.cat-secret{background:radial-gradient(circle at 28% 16%,rgba(119,79,215,.33),transparent 50%),linear-gradient(135deg,#19143f,#06081b)}
.ach.off .ach-license-art>img{filter:grayscale(.4) brightness(.7);opacity:.85}
.av-model-status{display:block;width:100%;padding:5px 9px;border-radius:9px;font-size:11px;font-weight:750;text-align:center}
.av-model-status.source{color:#bdf5e3;background:rgba(13,95,86,.17);border:1px solid rgba(67,220,165,.26)}
.av-model-status.compat{color:#ffd69b;background:rgba(126,74,12,.13);border:1px solid rgba(233,165,64,.25)}
@media(max-width:460px){.ach-license-art{width:70px;height:83px}.ach-license-art img{width:54px;height:54px}}
/* polish s5: phone toast sits under the header so it never covers CTAs */
@media (max-width: 899px) { .toast { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); } }
.tabs button { padding: 0 8px; white-space: nowrap; }
#ct.tabs { grid-auto-columns: auto; } @media (max-width: 380px) { .tabs button { font-size: .86rem; padding: 0 6px; } }
.ach-more { margin-top: 10px; }
.tagline { white-space: nowrap; } @media (max-width: 400px) { .tagline { font-size: .7rem; letter-spacing: .1em; } .tagline b { margin: 0 4px; } }
.gate-what { margin: 2px 0 6px; font-weight: 600; color: #dfe2ff; font-size: .92rem; }
@media (min-width: 900px) { .desk-nav { flex-wrap: nowrap; min-width: 0; } .desk-nav a { white-space: nowrap; padding: 9px 10px; } }
@media (min-width: 900px) and (max-width: 1599px) { .desk-nav a.dn-x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .desk-nav a.dn-x { padding: 9px; } }
.shop-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 14px; background: rgba(8,12,36,.9); border: 1px solid rgba(99,102,241,.35); }
.shop-sw a { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .84rem; line-height: 1.15; padding: 4px 6px; }
.shop-sw a.on { background: var(--grad); color: #fff; }
/* polish: profile action buttons fit at 360 */
@media(max-width:420px){.pf2-stage-foot .btn.sm{min-width:0;padding-inline:10px;font-size:.8rem;letter-spacing:.02em}.pf2-stage-foot .cnc-l{display:none}}
.has-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
/* polish: tap targets */
.ach-glink{display:inline-flex;align-items:center;min-height:24px;padding:4px 0}
input[type=checkbox],input[type=radio]{min-width:24px;min-height:24px}
summary{min-height:44px;display:list-item;padding-block:12px;cursor:pointer}
.skip-link{min-height:44px;display:inline-flex;align-items:center}.skip-link:focus{top:calc(12px + env(safe-area-inset-top))}
/* core hub games render the kit's combined menu (.ttgs-pausemenu .ttgs-box from player-prefs.css) inside their own overlay */
.overlay .ttgs-inline{width:100%;display:flex;justify-content:center;padding:12px;box-sizing:border-box}
.overlay .ttgs-inline .ttgs-box{text-align:center}
.overlay .ttgs-inline .ttgs-actions button{font-family:system-ui,sans-serif;font-size:13.33px;text-transform:none;letter-spacing:0}
.overlay:has(.ttgs-inline){background:#030617e8;backdrop-filter:none}
.overlay .ttgs-inline .ttgs-box{font-family:'Exo 2',system-ui,sans-serif}
.overlay .ttgs-inline h2{font-family:'Exo 2',system-ui,sans-serif;font-size:22px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#22d3ee;margin:0}
.overlay .ttgs-inline .ttgs-game{text-transform:uppercase}
/* Crown startup + hub background (2026-11-03, PR #56 branch). No glow, no loading bar, no animation. */
.page.boot { min-height: 100svh; }
.page.boot img.boot-poster { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; filter: none; animation: none; }
#app > main.page:has(.games-heading),
#app > main.page:has(.shop-grid),
#app > main.page:has(.pf2) { background-color: #050714; background-image: linear-gradient(rgba(3,5,16,.78), rgba(3,5,16,.86)), url('/assets/brand/startup-crown.jpg'); background-size: cover; background-position: center top; background-repeat: no-repeat; }
