/* ═══════════════════════════════════════════════════════════
   SPINLEAGUE — Neon Slot Arena × Competitive Esports
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg0: #05061a; --bg1: #0b0d2e; --bg2: #141850;
  --panel: rgba(22, 20, 70, .62); --panel2: rgba(34, 28, 100, .55);
  --line: rgba(150, 130, 255, .22); --line2: rgba(150, 130, 255, .4);
  --txt: #eef0ff; --dim: #9aa0d0; --mute: #6a6f9e;
  --violet: #8b5cf6; --purple: #a855f7; --cyan: #22d3ee; --gold: #ffcf4a; --gold2: #ffaa00;
  --pink: #ff3d9a; --green: #34e89e; --red: #ff4d5e; --blue: #4f8cff;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fd: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --r: 14px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #020208; color: var(--txt); font-family: var(--font); overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
input, select { font: inherit; color: inherit; }
.num { font-family: var(--fd); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

#stage-bg { position: fixed; inset: 0; background:
  radial-gradient(60vmax 40vmax at 15% 20%, rgba(139,92,246,.22), transparent 60%),
  radial-gradient(50vmax 40vmax at 85% 80%, rgba(34,211,238,.14), transparent 60%), #020208; }

/* Phone frame: real phone dimensions, never stretched */
#app.phone {
  position: relative; margin: 0 auto; width: 100vw; max-width: 430px; height: 100vh; height: 100dvh; max-height: 932px;
  top: 50%; transform: translateY(-50%); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(90% 50% at 50% 115%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, #0a0b2a 0%, #070823 55%, #05061a 100%);
}
@media (min-width: 500px) { #app.phone { box-shadow: 0 0 0 1px rgba(150,130,255,.25), 0 30px 120px rgba(0,0,0,.7), 0 0 80px rgba(139,92,246,.18); } }
#app::before { /* arena floor grid */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(150,130,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(150,130,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 70%, transparent 100%);
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
#screens { position: absolute; inset: 0; }

/* Boot */
#boot { position: absolute; inset: 0; z-index: 100; display: grid; place-content: center; gap: 22px; background: var(--bg0); transition: opacity .5s; }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-logo { animation: pulse 1.6s ease-in-out infinite; }
.boot-bar { width: 180px; height: 3px; margin: 0 auto; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--violet), var(--cyan)); animation: bootbar 1s ease-in-out infinite; }
@keyframes bootbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { opacity: .7; transform: scale(.98); } }

/* ── Screens ─────────────────────────────────────────────── */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--safe-t); animation: scrIn .32s cubic-bezier(.2,.8,.2,1); }
.screen.out { animation: scrOut .22s ease forwards; pointer-events: none; }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes scrOut { to { opacity: 0; transform: scale(1.01); } }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 20px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* Header */
.hdr { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; min-height: 52px; }
.hdr .title { flex: 1; font: 700 15px var(--fd); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.hdr .sp { flex: 1; }
.ib { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); flex: none; transition: transform .12s, background .2s; position: relative; }
.ib:active { transform: scale(.92); }
.ib svg { width: 17px; height: 17px; }
.ib.home img, .ib.home svg.gm { width: 55%; height: auto; }
.ib .dot { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--pink); font: 700 10px/16px var(--font); padding: 0 4px; box-shadow: 0 0 10px var(--pink); }
.bal { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: linear-gradient(180deg, rgba(255,207,74,.16), rgba(255,170,0,.06)); border: 1px solid rgba(255,207,74,.35); font: 700 14px var(--fd); }
.bal .coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffcf4a 45%, #b86e00); box-shadow: 0 0 10px rgba(255,190,40,.6); display: grid; place-items: center; font: 800 11px var(--fd); color: #6b3a00; }
.bal.flash { animation: balflash .7s; }
@keyframes balflash { 30% { box-shadow: 0 0 22px rgba(255,207,74,.8); transform: scale(1.06); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font: 700 15px var(--fd); letter-spacing: .1em; text-transform: uppercase; transition: transform .12s, filter .2s, opacity .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.gold { color: #2a1600; background: linear-gradient(180deg, #ffe58a, #ffc21f 50%, #f29a00); box-shadow: 0 6px 24px rgba(255,170,0,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.btn.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 3.2s infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.btn.neon { background: linear-gradient(180deg, #9b6bff, #6d33f0); box-shadow: 0 6px 24px rgba(124,58,237,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.cyan { color: #00262e; background: linear-gradient(180deg, #8ff3ff, #22d3ee); box-shadow: 0 6px 20px rgba(34,211,238,.35); }
.btn.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line2); }
.btn.red { background: linear-gradient(180deg, #ff6b78, #e02a3d); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font: 600 12px var(--font); background: rgba(255,255,255,.07); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: rgba(139,92,246,.35); border-color: var(--violet); }
.chip.gold { color: var(--gold); border-color: rgba(255,207,74,.4); background: rgba(255,207,74,.08); }
.chip.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tag-demo { font: 700 9px var(--font); letter-spacing: .12em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--dim); border: 1px solid var(--line); text-transform: uppercase; }

/* Panels */
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, rgba(40,34,110,.55), rgba(18,16,60,.6)); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card.glow { border-color: transparent; background:
  linear-gradient(180deg, rgba(40,34,110,.85), rgba(16,14,52,.92)) padding-box,
  linear-gradient(135deg, var(--violet), var(--cyan) 50%, var(--pink)) border-box; border: 1.5px solid transparent; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; font: 700 12px var(--fd); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

/* Avatars */
.av { --h: 260; width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 700 13px var(--fd); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 90% 62%), hsl(calc(var(--h) + 50) 85% 38%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 8px rgba(0,0,0,.4); position: relative; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.av.lg { width: 76px; height: 76px; border-radius: 22px; font-size: 28px; }
.av.md { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.av.you { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255,207,74,.5); }
.av.rival { box-shadow: 0 0 0 2px var(--pink), 0 0 12px rgba(255,61,154,.5); }

/* ── Home ────────────────────────────────────────────────── */
.hero { text-align: center; padding: 6px 0 4px; }
.logo-h { display: flex; align-items: center; justify-content: center; gap: 10px; }
.logo-h .emb { width: 56px; height: 56px; filter: drop-shadow(0 0 14px rgba(139,92,246,.75)); }
.lw { display: flex; flex-direction: column; line-height: .88; text-align: left; }
.l1 { font: italic 700 40px var(--fd); letter-spacing: .05em; background: linear-gradient(180deg, #fff6c8, #ffcf4a 50%, #ff9d00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255,170,0,.45)); padding-right: 6px; }
.l2 { font: 700 15.5px var(--fd); letter-spacing: .58em; color: #8ff3ff; text-shadow: 0 0 10px rgba(34,211,238,.8); margin-top: 3px; }
.logo-h.sm .emb { width: 30px; height: 30px; } .logo-h.sm .l1 { font-size: 20px; } .logo-h.sm .l2 { font-size: 8px; letter-spacing: .5em; }
.tagline { font: 600 10px var(--fd); letter-spacing: .16em; white-space: nowrap; color: var(--dim); text-transform: uppercase; margin-top: 2px; }
.mode { display: block; width: 100%; text-align: left; padding: 16px; margin-top: 12px; overflow: hidden; min-height: 132px; transition: transform .15s; }
.mode:active { transform: scale(.985); }
.mode .m-k { font: 700 11px var(--fd); letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.mode .m-t { font: 700 26px/1.05 var(--fd); letter-spacing: .04em; margin: 4px 0 6px; text-transform: uppercase; }
.mode .m-d { font-size: 13px; color: var(--dim); max-width: 60%; line-height: 1.35; }
.mode .m-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; position: relative; z-index: 1; max-width: 64%; }
.mode .m-art { position: absolute; right: -10px; top: 12px; width: 40%; height: calc(100% - 20px); pointer-events: none; }
.mode.unl { background: linear-gradient(180deg, rgba(64,36,150,.85), rgba(24,14,70,.92)) padding-box, linear-gradient(135deg, #b98cff, #22d3ee) border-box; border: 1.5px solid transparent; }
.mode.lim { background: linear-gradient(180deg, rgba(110,20,90,.75), rgba(40,10,50,.92)) padding-box, linear-gradient(135deg, #ff5fb8, #ffcf4a) border-box; border: 1.5px solid transparent; }
.mode.lim .m-k { color: var(--pink); }
.mini-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; transform: perspective(500px) rotateY(-18deg) rotateX(8deg); }
.mini-grid .mg { border-radius: 9px; background: rgba(10,8,40,.7); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; }
.mini-grid .mg .sym { width: 70%; height: 70%; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.mini-grid .mg.sel { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,207,74,.5), inset 0 0 10px rgba(255,207,74,.25); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { padding: 14px; text-align: left; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .t-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 18px; }
.tile .t-t { font: 700 15px var(--fd); letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
.tile .t-d { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.statline { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 6px; margin-top: 10px; }
.statline > div { text-align: center; }
.statline b { display: block; font: 700 18px var(--fd); }
.statline span { font-size: 10px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

/* Tabs */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + var(--safe-b)); background: linear-gradient(180deg, rgba(8,8,30,.4), rgba(8,8,30,.95)); border-top: 1px solid var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font: 600 10px var(--font); letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button.on { color: var(--txt); }
.tabs button.on svg { filter: drop-shadow(0 0 6px var(--violet)); color: #c4a8ff; }

/* Lobby lists */
.room { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; width: 100%; text-align: left; transition: transform .12s; }
.room:active { transform: scale(.985); }
.room .r-badge { width: 54px; height: 54px; border-radius: 14px; flex: none; display: grid; place-items: center; text-align: center; font: 700 17px/1 var(--fd); background: linear-gradient(160deg, rgba(139,92,246,.5), rgba(34,211,238,.25)); border: 1px solid var(--line2); }
.room .r-badge small { display: block; font: 600 8.5px var(--font); letter-spacing: .1em; color: var(--dim); margin-top: 3px; }
.room .r-main { flex: 1; min-width: 0; }
.room .r-name { font: 700 15px var(--fd); letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.room .r-sub { font-size: 12px; color: var(--dim); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.room .r-side { text-align: right; }
.room .r-pool { font: 700 16px var(--fd); color: var(--gold); }
.room .r-cd { font: 600 11px var(--fd); color: var(--cyan); margin-top: 3px; }
.seats { display: flex; gap: 3px; margin-top: 7px; flex-wrap: wrap; }
.seats i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255,255,255,.12); }
.seats i.f { background: var(--pink); box-shadow: 0 0 6px rgba(255,61,154,.6); }
.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); gap: 3px; margin-bottom: 12px; }
.seg button { flex: 1; height: 34px; border-radius: 9px; font: 700 12px var(--fd); letter-spacing: .08em; color: var(--dim); }
.seg button.on { background: linear-gradient(180deg, rgba(139,92,246,.7), rgba(109,51,240,.7)); color: #fff; box-shadow: 0 2px 10px rgba(124,58,237,.4); }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font: 700 11px var(--fd); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.inp { width: 100%; height: 46px; border-radius: 12px; padding: 0 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line2); outline: none; font-size: 15px; }
.inp:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { min-width: 48px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font: 700 13px var(--fd); }
.opts button.on { background: rgba(139,92,246,.35); border-color: var(--violet); box-shadow: 0 0 12px rgba(139,92,246,.35); }
.sumbox { padding: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; gap: 6px; }
.sumbox b { display: block; font: 700 17px var(--fd); }
.sumbox span { font-size: 10px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }

/* Payout table */
.pay { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay td { padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pay td:last-child { text-align: right; font: 700 14px var(--fd); color: var(--gold); }
.pay tr.me td { color: var(--cyan); }

/* ── Sheets & modals ─────────────────────────────────────── */
#sheets { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.bk { position: absolute; inset: 0; background: rgba(2,2,12,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: auto; animation: fadeIn .2s; }
.bk.out { animation: fadeOut .2s forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; pointer-events: auto;
  background: linear-gradient(180deg, #1b1858 0%, #0e0d33 40%, #0a0a28 100%); border-top: 1px solid var(--line2); box-shadow: 0 -20px 60px rgba(0,0,0,.6); animation: sheetIn .32s cubic-bezier(.2,.9,.2,1); padding-bottom: var(--safe-b); }
.sheet.out { animation: sheetOut .22s ease-in forwards; }
@keyframes sheetIn { from { transform: translateY(100%); } } @keyframes sheetOut { to { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: 8px auto 2px; flex: none; }
.sheet .sh-h { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; }
.sheet .sh-h h3 { flex: 1; margin: 0; font: 700 17px var(--fd); letter-spacing: .1em; text-transform: uppercase; }
.sheet .sh-b { overflow-y: auto; padding: 0 16px 16px; scrollbar-width: none; }
.sheet .sh-f { padding: 10px 16px 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.modal { position: absolute; left: 50%; top: 50%; width: calc(100% - 40px); max-width: 360px; transform: translate(-50%, -50%); pointer-events: auto; padding: 20px; border-radius: 20px; animation: popIn .28s cubic-bezier(.2,1.3,.4,1); }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }

/* Toasts */
#toasts { position: absolute; left: 0; right: 0; top: calc(56px + var(--safe-t)); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { max-width: 88%; padding: 9px 14px; border-radius: 12px; background: rgba(20,18,64,.95); border: 1px solid var(--line2); font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastIn .3s cubic-bezier(.2,1.2,.4,1); display: flex; gap: 8px; align-items: center; }
.toast.out { animation: fadeOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.95); } }

/* ═══ GAME ═════════════════════════════════════════════════ */
.game { background: transparent; }
.game.final::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(80% 50% at 50% 40%, rgba(255,60,90,.22), transparent 70%), radial-gradient(100% 40% at 50% 100%, rgba(255,190,40,.18), transparent 70%); animation: finalPulse 1.1s ease-in-out infinite; }
@keyframes finalPulse { 50% { opacity: .55; } }
.g-top { display: flex; align-items: center; gap: 7px; padding: 8px 12px 4px; min-height: 46px; }
.g-mid { flex: 1; min-width: 0; text-align: center; }
.g-room { font: 600 10px var(--font); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-prog { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 4px; }
.g-prog .rd { display: flex; gap: 2px; padding: 3px 4px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid transparent; }
.g-prog .rd.cur { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.12); box-shadow: 0 0 10px rgba(34,211,238,.25); }
.g-prog .rd i { width: 7px; height: 5px; border-radius: 2px; background: rgba(255,255,255,.18); }
.g-prog .rd i.d { background: var(--violet); }
.g-prog .rd i.n { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: blink .8s infinite; }
.g-prog .rd.fin i.d { background: var(--pink); }
.g-pool { text-align: right; line-height: 1.05; }
.g-pool b { font: 700 14px var(--fd); color: var(--gold); display: block; }
.g-pool span { font-size: 9px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

/* rival band */
.band { display: flex; align-items: center; gap: 8px; margin: 2px 10px 0; padding: 7px 8px; border-radius: 14px; background: rgba(12,10,44,.7); border: 1px solid var(--line); width: calc(100% - 20px); text-align: left; }
.band .myrank { text-align: center; min-width: 50px; line-height: 1; }
.band .myrank b { font: 700 24px var(--fd); display: block; transition: color .3s; }
.band .myrank span { font: 600 10px var(--fd); color: var(--dim); }
.band .myrank.up b { color: var(--green); } .band .myrank.down b { color: var(--red); }
.band .ladder { flex: 1; display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.rc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; padding: 4px 5px; border-radius: 9px; background: rgba(255,255,255,.04); position: relative; transition: transform .35s; }
.rc .av { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }
.rc .rcx { min-width: 0; line-height: 1.1; }
.rc .rcn { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .rcs { font: 700 12px var(--fd); }
.rc.me { background: rgba(255,207,74,.12); box-shadow: inset 0 0 0 1px rgba(255,207,74,.45); }
.rc.ld .rcn { color: var(--gold); }
.rc.pin { box-shadow: inset 0 0 0 1px rgba(255,61,154,.6); }
.rc .crown { position: absolute; top: -6px; left: 2px; font-size: 10px; }
.band .gap { text-align: center; min-width: 54px; line-height: 1.05; }
.band .gap b { font: 700 13px var(--fd); color: var(--cyan); display: block; }
.band .gap span { font-size: 9px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.band .gap.lead b { color: var(--gold); }

/* stage */
.g-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 4px 0; }
.status { height: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 12px var(--fd); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.status b { color: var(--txt); }
.status .hl { color: var(--cyan); }
.grid-host { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.frame { position: relative; border-radius: 20px; padding: 6px; background: linear-gradient(180deg, rgba(60,40,160,.5), rgba(20,14,70,.6)) padding-box, linear-gradient(160deg, #b98cff, #22d3ee 40%, #ff5fb8 75%, #ffcf4a) border-box; border: 2px solid transparent; box-shadow: 0 0 30px rgba(139,92,246,.35), 0 0 80px rgba(34,211,238,.12), inset 0 0 30px rgba(0,0,0,.6); transition: box-shadow .4s; }
.frame.spinning { box-shadow: 0 0 40px rgba(139,92,246,.55), 0 0 100px rgba(34,211,238,.2), inset 0 0 30px rgba(0,0,0,.6); }
.game.final .frame { background: linear-gradient(180deg, rgba(110,20,60,.55), rgba(40,10,40,.65)) padding-box, linear-gradient(160deg, #ff3d5a, #ffcf4a 50%, #ff3d9a) border-box; box-shadow: 0 0 40px rgba(255,60,90,.45), 0 0 90px rgba(255,190,40,.2), inset 0 0 30px rgba(0,0,0,.6); }
.frame::before, .frame::after { content: ''; position: absolute; top: 50%; width: 6px; height: 40%; transform: translateY(-50%); border-radius: 3px; background: linear-gradient(180deg, transparent, var(--cyan), transparent); box-shadow: 0 0 12px var(--cyan); }
.frame::before { left: -9px; } .frame::after { right: -9px; }
.game.final .frame::before, .game.final .frame::after { background: linear-gradient(180deg, transparent, #ff3d5a, transparent); box-shadow: 0 0 12px #ff3d5a; }
.gridwrap { position: relative; }
.gridwrap canvas.reels { position: absolute; inset: 0; width: 100%; height: 100%; }
.cells { position: absolute; inset: 0; padding: var(--pad); display: grid; grid-template-columns: repeat(5, var(--cw)); grid-template-rows: repeat(var(--rows, 4), var(--ch)); gap: var(--gap); }
.cell { position: relative; border-radius: calc(var(--cw) * .14); transition: box-shadow .2s, background .2s; }
.cell::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: all .2s; }
.cell.sel::after { box-shadow: inset 0 0 0 2.5px var(--gold), inset 0 0 18px rgba(255,207,74,.35), 0 0 14px rgba(255,190,40,.45); }
.cell.sel .pk { opacity: 1; transform: scale(1); }
.cell .pk { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 6px; background: var(--gold); color: #3a2000; font: 800 10px/17px var(--fd); text-align: center; opacity: 0; transform: scale(.5); transition: all .18s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 0 8px rgba(255,207,74,.7); }
.cell .rv { position: absolute; bottom: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); opacity: 0; transition: opacity .2s; }
.cell.rv-on .rv { opacity: 1; }
.cells.selecting .cell { cursor: pointer; }
.cells.selecting .cell:not(.sel):hover::after { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.cells.selecting .cell:active { transform: scale(.95); }
.cells.reveal .cell:not(.sel)::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(4,3,20,.5); }
.cell.win::after { box-shadow: inset 0 0 0 3px var(--c, var(--gold)), 0 0 22px var(--c, var(--gold)), inset 0 0 26px var(--c, var(--gold)); animation: winPulse .5s ease-out 2; }
@keyframes winPulse { 50% { transform: scale(1.06); } }
.cell.boom::after { box-shadow: inset 0 0 0 3px var(--red), 0 0 30px var(--red), inset 0 0 30px rgba(255,40,60,.8); }
.cell.dead::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(30,0,10,.65); }
.cell.safe::after { box-shadow: inset 0 0 0 3px #8fd0ff, 0 0 26px #4fa8ff, inset 0 0 22px rgba(80,170,255,.6); }
.cell .pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 800 18px var(--fd); color: #fff; text-shadow: 0 0 10px var(--c, var(--gold)), 0 2px 0 rgba(0,0,0,.6); pointer-events: none; animation: popUp 1s ease-out forwards; white-space: nowrap; z-index: 3; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }

/* callouts */
.callout { position: absolute; left: 50%; top: 42%; z-index: 30; transform: translate(-50%, -50%); text-align: center; pointer-events: none; white-space: nowrap; }
.callout .co-t { font: 700 34px/1 var(--fd); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #fff, var(--cc1, #ffe58a) 45%, var(--cc2, #ff9d00)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px var(--cc2, rgba(255,170,0,.8))) drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
.callout .co-s { font: 700 13px var(--fd); letter-spacing: .24em; color: #fff; text-transform: uppercase; margin-top: 6px; text-shadow: 0 0 10px rgba(0,0,0,.9); }
.callout { animation: coIn 1.5s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes coIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 28% { transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1); } }
.callout.big .co-t { font-size: 46px; }

/* score row */
.scorerow { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; padding: 6px 18px 2px; gap: 10px; min-height: 52px; }
.scorerow .lbl { font: 600 9.5px var(--font); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.scorerow .spin-sc { font: 700 24px var(--fd); color: var(--cyan); line-height: 1; min-height: 24px; }
.scorerow .spin-sc.zero { color: var(--red); }
.scorerow .tot { text-align: right; }
.scorerow .tot b { font: 700 30px/1 var(--fd); display: block; background: linear-gradient(180deg, #fff, #ffd76a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scorerow .calc { flex: 1; text-align: center; font: 600 11px var(--fd); color: var(--dim); align-self: center; min-height: 14px; }
.scorerow .calc em { font-style: normal; color: var(--txt); }

/* dock */
.dock { height: 168px; flex: none; padding: 8px 12px calc(10px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; position: relative; }
.timer { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; flex: none; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: left; }
.timer.urgent i { background: linear-gradient(90deg, var(--red), var(--gold)); }
.pickinfo { display: flex; align-items: center; gap: 10px; }
.pickinfo .pc { font: 700 22px var(--fd); min-width: 30px; text-align: center; line-height: 1; }
.pickinfo .pc small { display: block; font: 600 9px var(--font); letter-spacing: .1em; color: var(--dim); }
.pickinfo .meta { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pickinfo .meta div { padding: 4px 6px; border-radius: 9px; background: rgba(255,255,255,.04); text-align: center; line-height: 1.1; }
.pickinfo .meta b { display: block; font: 700 13px var(--fd); }
.pickinfo .meta span { font-size: 9px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.vol { display: flex; gap: 2px; justify-content: center; align-items: flex-end; height: 13px; }
.vol i { width: 4px; border-radius: 1px; background: rgba(255,255,255,.15); }
.vol i.on { background: linear-gradient(0deg, var(--gold), var(--red)); }
.row { display: flex; gap: 6px; align-items: center; }
.qbtn { height: 36px; padding: 0 11px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 700 11px var(--fd); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.qbtn:active { transform: scale(.95); }
.qbtn.side { margin-left: auto; border-color: rgba(255,61,154,.5); background: rgba(255,61,154,.12); position: relative; }
.qbtn .dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--pink); font: 700 10px/16px var(--font); padding: 0 4px; box-shadow: 0 0 10px var(--pink); }
.ready { height: 50px; }
.ready .tm { font: 700 13px var(--fd); opacity: .75; margin-left: 4px; }
.feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column-reverse; gap: 3px; mask-image: linear-gradient(0deg, #000 60%, transparent); }
.feed div { flex: none; line-height: 1.35; font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; animation: feedIn .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed div b { color: var(--txt); font-weight: 600; }
.feed .g { color: var(--green); font-family: var(--fd); font-weight: 700; }
.feed .r { color: var(--red); font-family: var(--fd); font-weight: 700; }
.feed .y { color: var(--gold); font-family: var(--fd); font-weight: 700; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }
.reacts { display: flex; gap: 6px; }
.reacts button { flex: 1; height: 38px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 18px; transition: transform .1s; }
.reacts button:active { transform: scale(.88); }
.reacts button.txt { font: 700 12px var(--fd); letter-spacing: .08em; }
.emo-fly { position: absolute; z-index: 40; font-size: 26px; pointer-events: none; animation: emoFly 1.6s ease-out forwards; }
@keyframes emoFly { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 15% { opacity: 1; transform: translateY(0) scale(1.2); } 100% { opacity: 0; transform: translateY(-90px) scale(1); } }

/* incoming challenge card */
.duelcard { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); z-index: 20; padding: 10px 12px; border-radius: 16px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(110,20,80,.96), rgba(50,10,50,.97)) padding-box, linear-gradient(135deg, var(--pink), var(--gold)) border-box; border: 1.5px solid transparent; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 30px rgba(255,61,154,.3); animation: duelIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes duelIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
.duelcard .dc-t { flex: 1; min-width: 0; line-height: 1.2; }
.duelcard .dc-t b { font: 700 12.5px/1.2 var(--fd); display: block; }
.duelcard .dc-t span { font-size: 11px; color: #f2c6e0; }
.duelcard .dc-a { display: flex; gap: 5px; }
.duelcard .dc-a button { height: 34px; padding: 0 10px; border-radius: 9px; font: 700 11px var(--fd); letter-spacing: .06em; text-transform: uppercase; }
.duelcard .ring { width: 30px; height: 30px; flex: none; }
.b-call { background: var(--green); color: #002a17; } .b-raise { background: var(--gold); color: #3a2000; } .b-fold { background: rgba(255,255,255,.12); }

/* side action sheet */
.duel-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.duel-row .dr-m { flex: 1; min-width: 0; }
.duel-row .dr-n { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.duel-row .dr-s { font-size: 11px; color: var(--dim); }
.state { font: 700 10px var(--fd); letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; background: rgba(255,255,255,.08); }
.state.active { background: rgba(52,232,158,.18); color: var(--green); }
.state.wait { background: rgba(34,211,238,.15); color: var(--cyan); }
.state.no { color: var(--mute); }
.table-seats { display: flex; justify-content: center; gap: 12px; padding: 14px 0 8px; }
.table-seats .seat { width: 56px; text-align: center; font-size: 10px; color: var(--dim); }
.table-seats .seat .av, .table-seats .seat .empty { margin: 0 auto 4px; }
.table-seats .empty { width: 48px; height: 48px; border-radius: 14px; border: 1.5px dashed var(--line2); display: grid; place-items: center; color: var(--mute); font-size: 18px; }

/* leaderboard sheet */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; width: 100%; text-align: left; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.lb-row.me { background: rgba(255,207,74,.12); box-shadow: inset 0 0 0 1px rgba(255,207,74,.4); position: sticky; bottom: 0; top: 0; z-index: 2; backdrop-filter: blur(6px); }
.lb-row .lr { width: 30px; text-align: center; font: 700 14px var(--fd); color: var(--dim); }
.lb-row .lr.p1 { color: var(--gold); } .lb-row .lr.p2 { color: #d9e1ff; } .lb-row .lr.p3 { color: #ffb07a; }
.lb-row .ln { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .ln small { display: block; font-weight: 500; font-size: 10.5px; color: var(--dim); }
.lb-row .lp { font: 600 11px var(--fd); color: var(--dim); min-width: 42px; text-align: right; }
.lb-row .lt { font: 700 15px var(--fd); min-width: 58px; text-align: right; }
.lb-row .prize { color: var(--gold); font: 700 12px var(--fd); }
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.3); }
.mgrid i { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.06); }
.mgrid i.on { background: linear-gradient(160deg, var(--pink), #b0156a); box-shadow: 0 0 8px rgba(255,61,154,.6); }
.mgrid.you i.on { background: linear-gradient(160deg, var(--gold), #c47a00); box-shadow: 0 0 8px rgba(255,207,74,.6); }

/* round summary / splash */
.splash { position: absolute; inset: 0; z-index: 35; display: grid; place-content: center; text-align: center; pointer-events: none; background: radial-gradient(75% 45% at 50% 45%, rgba(8,6,32,.94), rgba(8,6,32,.72) 70%, rgba(8,6,32,.45)); animation: fadeIn .25s; }
.splash.out { animation: fadeOut .3s forwards; }
.splash .sp-k { font: 700 13px var(--fd); letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; }
.splash .sp-t { font: 700 44px/1 var(--fd); letter-spacing: .04em; text-transform: uppercase; margin: 8px 0; background: linear-gradient(180deg, #fff, #c9b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 20px rgba(139,92,246,.7)); animation: spT .6s cubic-bezier(.2,1.3,.4,1); }
.splash.fin .sp-t { background: linear-gradient(180deg, #fff, #ffcf4a 50%, #ff3d5a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px rgba(255,60,90,.8)); font-size: 52px; }
.splash .sp-s { font-size: 14px; color: var(--dim); }
.splash .sp-stats { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.splash .sp-stats div { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); min-width: 82px; }
.splash .sp-stats b { display: block; font: 700 18px var(--fd); }
.splash .sp-stats span { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
@keyframes spT { from { opacity: 0; transform: scale(.6); } }
.countdown { font: 700 96px/1 var(--fd); color: #fff; text-shadow: 0 0 30px var(--violet); animation: cdPop .9s ease-out; }
@keyframes cdPop { from { transform: scale(1.8); opacity: 0; } 30% { opacity: 1; transform: scale(1); } to { opacity: .2; } }

/* waiting */
.wait-c { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 16px; overflow: hidden; }
.wait-ring { width: 170px; height: 170px; position: relative; margin: 8px 0 14px; display: grid; place-items: center; }
.wait-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wait-ring .wr-n { font: 700 46px/1 var(--fd); text-align: center; }
.wait-ring .wr-n small { display: block; font: 600 10px var(--font); letter-spacing: .16em; color: var(--dim); margin-top: 6px; }
.av-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-height: 200px; overflow: hidden; margin-top: 12px; }
.av-cloud .av { animation: avIn .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes avIn { from { opacity: 0; transform: scale(.3); } }
.codebox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 12px; width: 100%; }
.codebox .code { flex: 1; font: 700 26px var(--fd); letter-spacing: .3em; color: var(--cyan); }

/* results */
.results { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; background: radial-gradient(100% 60% at 50% 0%, rgba(139,92,246,.45), transparent 60%), linear-gradient(180deg, #08072a, #050516); animation: fadeIn .4s; padding-top: var(--safe-t); }
.res-h { text-align: center; padding: 14px 16px 4px; }
.res-h .k { font: 700 11px var(--fd); letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; }
.res-h .t { font: 700 30px/1.1 var(--fd); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 10px 16px 0; }
.pod { text-align: center; animation: podIn .6s cubic-bezier(.2,1.2,.4,1) backwards; }
.pod:nth-child(1) { animation-delay: .5s; } .pod:nth-child(2) { animation-delay: .9s; } .pod:nth-child(3) { animation-delay: .2s; }
@keyframes podIn { from { opacity: 0; transform: translateY(40px); } }
.pod .av { margin: 0 auto 6px; }
.pod .pn { font: 600 12px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .ps { font: 700 13px var(--fd); color: var(--dim); }
.pod .base { margin-top: 6px; border-radius: 10px 10px 0 0; display: grid; place-items: center; font: 700 22px var(--fd); }
.pod.p1 .base { height: 86px; background: linear-gradient(180deg, rgba(255,207,74,.55), rgba(255,170,0,.08)); border: 1px solid rgba(255,207,74,.6); border-bottom: 0; color: var(--gold); }
.pod.p2 .base { height: 62px; background: linear-gradient(180deg, rgba(200,210,255,.35), rgba(200,210,255,.04)); border: 1px solid rgba(200,210,255,.4); border-bottom: 0; }
.pod.p3 .base { height: 46px; background: linear-gradient(180deg, rgba(255,150,90,.35), rgba(255,150,90,.04)); border: 1px solid rgba(255,150,90,.4); border-bottom: 0; color: #ffb07a; }
.pod .pp { font: 700 12px var(--fd); color: var(--gold); }
.mine { margin: 12px 16px 0; padding: 14px; display: flex; align-items: center; gap: 12px; }
.mine .mp { font: 700 40px/1 var(--fd); min-width: 64px; text-align: center; }
.mine .mp small { display: block; font: 600 10px var(--font); color: var(--dim); letter-spacing: .1em; }
.mine .mm { flex: 1; }
.mine .mm b { font: 700 24px var(--fd); color: var(--gold); display: block; }
.mine .mm span { font-size: 12px; color: var(--dim); }
.hl3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 16px 0; }
.hl3 > div { padding: 10px 8px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.hl3 .hk { font-size: 9px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.hl3 .hv { font: 700 18px var(--fd); margin: 3px 0 1px; }
.hl3 .hn { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-new { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 16px 0; }
.res-f { padding: 12px 16px calc(12px + var(--safe-b)); display: flex; gap: 8px; }
.res-f .btn { padding: 0 10px; font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.wait-tip { margin-top: auto; width: 100%; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.wait-tip .sym { width: 40px; height: 40px; flex: none; }

/* profile & achievements */
.prof { display: flex; align-items: center; gap: 14px; padding: 16px; }
.lvl { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.lvl i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.stats6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats6 > div { padding: 12px 6px; text-align: center; }
.stats6 b { display: block; font: 700 19px var(--fd); }
.stats6 span { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.achs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ach .ai { font-size: 22px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,92,246,.25); flex: none; }
.ach.lock { opacity: .4; filter: grayscale(1); }
.ach b { font: 700 12px var(--fd); display: block; letter-spacing: .03em; }
.ach span { font-size: 10.5px; color: var(--dim); line-height: 1.25; display: block; }
.hist { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.hist .hp { width: 44px; text-align: center; font: 700 20px/1 var(--fd); }
.hist .hp small { display: block; font: 600 9px var(--font); color: var(--dim); margin-top: 2px; }
.hist .hm { flex: 1; min-width: 0; }
.hist .hm b { font: 700 14px var(--fd); display: block; }
.hist .hm span { font-size: 11px; color: var(--dim); }
.hist .hr { text-align: right; font: 700 15px var(--fd); }
.hist .hr.pos { color: var(--green); } .hist .hr.neg { color: var(--dim); }
.empty-st { text-align: center; color: var(--dim); padding: 40px 20px; font-size: 14px; }

/* rules */
.rule { display: flex; gap: 12px; padding: 12px; margin-bottom: 8px; align-items: flex-start; }
.rule .ri { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(139,92,246,.22); font: 700 18px var(--fd); }
.rule .ri .sym { width: 34px; height: 34px; }
.rule b { font: 700 14px var(--fd); letter-spacing: .04em; display: block; margin-bottom: 3px; }
.rule p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.symtab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.symtab > div { padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.symtab .sym { width: 40px; height: 40px; }
.symtab b { display: block; font: 700 13px var(--fd); }
.symtab span { font-size: 10px; color: var(--dim); }
.boosttab { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.boosttab div { text-align: center; padding: 6px 2px; border-radius: 8px; background: rgba(255,255,255,.04); }
.boosttab b { display: block; font: 700 12px var(--fd); color: var(--cyan); }
.boosttab span { font-size: 10px; color: var(--dim); }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.sw { width: 46px; height: 27px; border-radius: 14px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw.on { background: var(--violet); } .sw.on::after { transform: translateX(19px); }

/* chat */
.chat-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg .mb { padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.07); font-size: 13px; max-width: 78%; }
.msg .mb small { display: block; font-size: 10px; color: var(--dim); margin-bottom: 1px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .mb { border-radius: 14px 4px 14px 14px; background: rgba(139,92,246,.35); }
.msg.sys .mb { background: transparent; color: var(--dim); font-size: 11.5px; text-align: center; max-width: 100%; margin: 0 auto; }

@media (max-height: 700px) {
  .dock { height: 150px; gap: 6px; }
  .ready { height: 44px; }
  .scorerow { min-height: 44px; padding-top: 2px; }
  .scorerow .tot b { font-size: 24px; } .scorerow .spin-sc { font-size: 20px; }
  .mode { min-height: 116px; } .mode .m-t { font-size: 22px; }
  .g-top { min-height: 40px; padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .btn.gold::after { animation: none; } }
.reduced * { animation-duration: .01s !important; }
.reduced .callout { animation: coIn 1.2s linear forwards !important; }
.hidden { display: none !important; }

/* ═══ v2: Full / Half bombs, shield, clean spin ══════════════ */
.pickinfo .pc.low { color: var(--red); }
.ss-wrap { position: relative; min-width: 120px; }
.scorerow .calc { font-size: 11px; line-height: 1.35; }
.stamp { position: absolute; left: 74px; top: -20px; z-index: 2; padding: 3px 8px; border-radius: 7px; font: 800 12px/1 var(--fd); letter-spacing: .06em; white-space: nowrap; opacity: 0; transform: scale(.4) rotate(-8deg); pointer-events: none; }
.stamp.on { opacity: 1; transform: scale(1) rotate(-6deg); animation: stampIn .32s cubic-bezier(.2,1.6,.4,1); }
@keyframes stampIn { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } }
.stamp.mult { background: linear-gradient(180deg, #c9a2ff, #7b2ff7); color: #fff; box-shadow: 0 0 14px rgba(157,92,255,.7); }
.stamp.half.h1 { background: #ffb347; color: #3a1a00; box-shadow: 0 0 12px rgba(255,160,40,.6); }
.stamp.half.h2 { background: #ff8a00; color: #2a0f00; box-shadow: 0 0 16px rgba(255,120,0,.75); }
.stamp.half.h3 { background: #ff4d1a; color: #fff; box-shadow: 0 0 20px rgba(255,70,20,.85); }
.stamp.full { background: #ff2238; color: #fff; box-shadow: 0 0 22px rgba(255,34,56,.9); font-size: 13px; }
.stamp.clean { background: linear-gradient(180deg, #fff3b0, #ffcf4a); color: #3a2400; box-shadow: 0 0 18px rgba(255,207,74,.8); }
.stamp.saved { background: linear-gradient(180deg, #bfe4ff, #2d8cff); color: #001a3a; box-shadow: 0 0 16px rgba(45,140,255,.7); }
.scorerow .calc .cs { color: #8fd0ff; font-weight: 600; }
.scorerow .calc em.r { color: var(--red); }

.frame .cracks { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); z-index: 4; pointer-events: none; opacity: 0; transition: opacity .15s; overflow: hidden; }
.frame .cracks path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: crackDraw .22s ease-out forwards; }
.frame .cracks .l1 { stroke: rgba(255,214,150,.75); stroke-width: 1.4; filter: drop-shadow(0 0 3px #ff9a2e); }
.frame .cracks .l2 { stroke: rgba(255,170,90,.85); stroke-width: 2; filter: drop-shadow(0 0 4px #ff7a00); }
.frame .cracks .l3 { stroke: rgba(255,120,60,.95); stroke-width: 2.6; filter: drop-shadow(0 0 6px #ff3d1a); }
@keyframes crackDraw { to { stroke-dashoffset: 0; } }
.frame .sheen { position: absolute; inset: 6px; z-index: 5; border-radius: 14px; pointer-events: none; overflow: hidden; }
.frame.clean .sheen::before { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,240,180,.55), transparent); animation: sheenSweep .75s ease-out; }
@keyframes sheenSweep { to { left: 120%; } }
.frame.clean { box-shadow: 0 0 46px rgba(255,207,74,.55), 0 0 100px rgba(255,190,40,.25), inset 0 0 30px rgba(0,0,0,.6); }
.frame.wiped { animation: wipeFlash .6s ease-out; }
@keyframes wipeFlash { 0% { box-shadow: 0 0 0 rgba(255,34,56,0); } 25% { box-shadow: 0 0 70px rgba(255,34,56,.9), inset 0 0 60px rgba(255,34,56,.55); } 100% { box-shadow: 0 0 30px rgba(139,92,246,.35), inset 0 0 30px rgba(0,0,0,.6); } }

.cell.cracked::after { box-shadow: inset 0 0 0 2.5px #ffb347, 0 0 18px rgba(255,150,40,.7), inset 0 0 20px rgba(255,150,40,.45);
  background: center/90% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 L46 30 L58 44 L40 60 L52 76 L44 96 M58 44 L80 40 L94 52 M40 60 L18 64 L6 56' fill='none' stroke='%23fff1c7' stroke-width='3' stroke-linejoin='round' opacity='.9'/%3E%3C/svg%3E"); animation: crackPulse .3s ease-out; }
.cell.cracked.c2::after { box-shadow: inset 0 0 0 3px #ff8a00, 0 0 24px rgba(255,120,0,.8), inset 0 0 26px rgba(255,120,0,.5); }
.cell.cracked.c3::after { box-shadow: inset 0 0 0 3.5px #ff4d1a, 0 0 30px rgba(255,70,20,.9), inset 0 0 32px rgba(255,70,20,.6); }
@keyframes crackPulse { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.cell.blocked::after { box-shadow: inset 0 0 0 3px #8fd0ff, 0 0 26px #4fa8ff, inset 0 0 26px rgba(80,170,255,.65); background: radial-gradient(circle, rgba(143,208,255,.32), rgba(45,140,255,.12) 60%, transparent 70%); }
.cell.blocked::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(10,30,70,.45); z-index: 1; }
.cell .pop.big { font-size: 24px; }
.cell .pop.tag { font-size: 11px; letter-spacing: .1em; padding: 2px 5px; border-radius: 5px; background: rgba(20,60,140,.85); text-shadow: none; }

.symtab.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.symtab.five > div { padding: 6px 2px; }
.symtab.five .sym { width: 34px; height: 34px; }
.symtab.five b { font-size: 12px; }
.symtab.five span { font-size: 9px; display: block; line-height: 1.2; }
.flow { padding: 6px 12px; }
.flow > div { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.flow > div:last-child { border: 0; }
.flow i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(139,92,246,.3); font: 700 11px var(--fd); flex: none; }
.pay.risk td { text-align: center; font: 600 13px var(--fd); color: var(--txt); }
.pay.risk td:first-child { text-align: left; font: 500 12px var(--font); color: var(--dim); }
.pay.risk tr:first-child td { color: var(--cyan); }

/* ═══ v2.2: CLEAN ×3 moment ═════════════════════════════════ */
.cell.gold::after { box-shadow: inset 0 0 0 3px #ffcf4a, 0 0 22px rgba(255,200,60,.85), inset 0 0 24px rgba(255,210,90,.55); animation: goldPop .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes goldPop { 0% { transform: scale(.9); opacity: .2; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.frame.triple { animation: tripleGlow 1.1s ease-out; }
@keyframes tripleGlow { 0% { box-shadow: 0 0 30px rgba(139,92,246,.35), inset 0 0 30px rgba(0,0,0,.6); } 30% { box-shadow: 0 0 80px rgba(255,207,74,.95), 0 0 160px rgba(255,170,0,.45), inset 0 0 50px rgba(255,210,90,.35); } 100% { box-shadow: 0 0 46px rgba(255,207,74,.55), 0 0 100px rgba(255,190,40,.25), inset 0 0 30px rgba(0,0,0,.6); } }
.frame.triple .sheen::before { animation-duration: .6s; background: linear-gradient(100deg, transparent, rgba(255,245,200,.8), transparent); }
.stamp.clean { font-size: 13px; padding: 4px 9px; }
.scorerow .calc em.g { color: var(--gold); font-weight: 800; }
.scorerow .calc .cg { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }

/* Spinleague compact logo and one-screen home */
.brand-logo { display:block; width:100%; height:auto; max-height:100%; object-fit:contain; }
.logo-h { width:100%; max-width:300px; margin:0 auto; }
.hero .logo-h { max-width: min(88%, 340px); }
.hdr .sp .logo-h { max-width:150px; }
.hdr .sp { min-width:0; }
.hdr .sp .brand-logo { max-height:40px; }
.bal { padding:0 7px 0 4px; gap:3px; height:29px; font-size:10px; flex:none; }
.bal .coin { width:16px; height:16px; font-size:10px; }
.home-scroll { overflow:hidden; display:flex; flex-direction:column; justify-content:space-evenly; padding:4px 12px 8px; gap:12px; min-height:0; }
.home-scroll .hero { flex:0 0 auto; padding:0; }
.home-scroll .tagline { font-size:9px; }
.home-scroll .mode { margin:0; padding:9px 12px; min-height:104px; flex:0 1 auto; }
.home-scroll .mode .m-t { font-size:clamp(18px,4.8vw,24px); margin:3px 0 5px; }
.home-scroll .mode .m-d { font-size:11px; line-height:1.2; }
.home-scroll .mode .m-row { margin-top:6px; }
.home-scroll .mode .chip { height:22px; padding:0 7px; font-size:10px; }
.home-scroll .duo { margin:0; gap:12px; flex:0 0 auto; }
.home-scroll .tile { padding:8px 10px; min-height:60px; }
.home-scroll .tile .t-i { display:none; }
.home-scroll .tile .t-t { margin:0; font-size:12px; }
.home-scroll .tile .t-d { font-size:10px; }
.home-scroll .statline { margin:0; padding:5px 2px; flex:0 0 auto; }
.home-scroll .statline b { font-size:15px; }
.pickinfo .meta { display:flex; justify-content:flex-end; }
.pickinfo .meta .risk-only { display:flex; align-items:center; gap:12px; padding:8px 12px; }
.pickinfo .meta .risk-only span { white-space:nowrap; font-size:10px; }
.pickinfo .meta .risk-only span b { display:inline; font-size:11px; color:var(--gold); }
.ready { min-height:60px; height:60px; flex:none; }
@media (max-height:700px) { .ready { min-height:56px; height:56px; } .home-scroll .tagline { display:none; } .home-scroll .statline { display:none; } }
.d-spin { justify-content:flex-end; }
.duel-progress { width:100%; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; padding:7px 10px; border:1px solid rgba(255,61,154,.5); background:rgba(255,61,154,.1); border-radius:12px; font-size:11px; }
.duel-progress strong { font-size:16px; color:var(--gold); }
.duel-progress .g { color:var(--green); } .duel-progress .r { color:var(--red); }
.duel-progress.hidden { display:none; }
.podium.two { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; max-width:390px; margin:0 auto; gap:18px; }
.podium.two .pod.p1 { order:0; } .podium.two .pod.p2 { order:1; }
.callout .co-t { font-size:clamp(21px,6vw,34px); }
.callout.big .co-t { font-size:clamp(26px,8vw,46px); }
.callout .co-s { font-size:11px; letter-spacing:.09em; }

/* Compact selection dock preserves the original gameplay grid height. */
.d-select { gap:5px !important; }
.d-select .pickinfo { min-height:27px; }
.d-select .row { gap:5px; }
.d-select .qbtn { height:34px; padding:0 9px; }
.d-select .ready { min-height:55px; height:55px; }
@media (max-height:700px) { .d-select .ready { min-height:51px; height:51px; } }

/* Shared compact centered brand header on every non-game screen */
.hdr { position:relative; }
.hdr .sp { position:absolute; left:50%; transform:translateX(-50%); width:clamp(92px, 23vw, 140px); max-width:140px; min-width:0; display:flex; justify-content:center; align-items:center; pointer-events:none; }
.hdr .sp .logo-h { width:100%; max-width:100%; }
.hdr .sp .brand-logo { width:100%; max-height:30px; object-fit:contain; }
.hdr .bal { margin-left:auto; }
/* Match the information icon's neutral color without recoloring the button. */
.ib.home img { filter: grayscale(1) brightness(0) invert(1); opacity:.82; }

/* Keep generous separation while fitting short mobile home screens. */
@media (max-height:740px) { .home-scroll { gap:8px; padding-top:2px; padding-bottom:3px; } .home-scroll .mode { min-height:88px; padding:7px 11px; } .home-scroll .duo { gap:8px; } }

/* ══ Arena refresh: visual-only, all game mechanics untouched ══ */
:root { --bg0:#100b32; --bg1:#191347; --bg2:#2c2675; --panel:rgba(43,34,116,.72); --panel2:rgba(57,45,137,.65); --line:rgba(165,148,255,.34); --line2:rgba(168,151,255,.53); --dim:#b9b6e7; --mute:#9895c5; }
#stage-bg { background:radial-gradient(65vmax 45vmax at 12% 18%,rgba(155,68,245,.35),transparent 65%),radial-gradient(55vmax 50vmax at 85% 75%,rgba(20,175,255,.27),transparent 67%),#0d092b; }
#app.phone { background:radial-gradient(90% 38% at 50% 4%,rgba(114,55,239,.50),transparent 75%),radial-gradient(80% 42% at 90% 80%,rgba(0,146,235,.25),transparent 75%),linear-gradient(165deg,#20164e,#15143c 60%,#15103d); }
.card { background:linear-gradient(155deg,rgba(60,45,142,.72),rgba(24,20,79,.77));border-color:rgba(166,151,255,.32); }
.home-screen .home-scroll { position:relative; isolation:isolate; gap:clamp(7px,1.35vh,13px); justify-content:space-evenly; padding:3px 13px 7px; }
.home-screen .home-scroll::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(75% 37% at 50% 14%,rgba(167,63,251,.24),transparent 85%),radial-gradient(70% 30% at 50% 99%,rgba(15,175,255,.22),transparent 90%); }
.home-scroll .arena-hero { position:relative; overflow:hidden; border:1px solid rgba(165,116,255,.34); border-radius:18px; flex:1 1 120px; min-height:86px; max-height:174px; padding:10px 7px 6px; display:flex;flex-direction:column;align-items:center;justify-content:center; background:radial-gradient(ellipse at 50% 90%,rgba(247,64,233,.42),transparent 55%),radial-gradient(ellipse at 50% 20%,rgba(31,186,255,.37),transparent 70%),linear-gradient(135deg,#2a1668,#20166b 55%,#0b387e); box-shadow:inset 0 0 24px rgba(154,68,255,.28),0 5px 20px rgba(23,10,80,.25); }
.arena-hero::before { content:''; position:absolute;inset:-45% -20% 0; pointer-events:none; background:repeating-conic-gradient(from 0deg at 50% 70%,rgba(255,255,255,.13) 0deg,transparent 8deg,transparent 23deg); opacity:.55; animation:arenaBeams 18s linear infinite; }
.arena-hero::after {content:'';position:absolute;bottom:-38px;left:7%;width:86%;height:64px;border:3px solid rgba(45,216,255,.75);border-radius:50%;box-shadow:0 0 15px #10c8f9,0 0 38px rgba(243,44,246,.6),inset 0 0 20px #9b44fa;pointer-events:none;}
@keyframes arenaBeams { to { transform:rotate(18deg); } }
.arena-hero .arena-crown {font-size:17px;color:#ffe27b;text-shadow:0 0 15px #ffe66e;line-height:1;position:relative;}
.arena-hero .arena-headline {position:relative;z-index:1;font:800 clamp(17px,4.7vw,25px) var(--fd);letter-spacing:.07em;color:#fff4ce;text-shadow:0 2px 0 #7328ba,0 0 15px #fa4bf4;white-space:nowrap;}
.arena-hero .tagline {position:relative;z-index:1;font-size:clamp(9px,2.45vw,11px);letter-spacing:.045em;color:#e9d9ff;margin-top:4px;}
.arena-stage {position:relative;z-index:1;display:flex;justify-content:space-around;width:85%;margin-top:9px;color:#ffdf6e;font-size:clamp(14px,4vw,21px);text-shadow:0 0 13px #f25cff;}
.arena-stage span:nth-child(2),.arena-stage span:nth-child(4){color:#49e3ff;}
.home-scroll .mode { overflow:hidden; position:relative; flex:0 0 auto; min-height:104px; padding:12px 14px 11px 75px; border-radius:18px; text-align:left; box-shadow:0 6px 22px rgba(11,6,44,.27); transition:filter .15s,transform .15s; }
.home-scroll .mode:active {transform:scale(.985);filter:brightness(1.16);}
.home-scroll .mode.unl { background:radial-gradient(circle at 6% 50%,rgba(255,198,57,.27),transparent 45%),linear-gradient(120deg,rgba(103,35,151,.92),rgba(50,25,111,.97)); border:1.5px solid #ffcf4a;box-shadow:0 0 13px rgba(255,190,45,.23),inset 0 0 20px rgba(255,195,30,.08); }
.home-scroll .mode.lim {background:radial-gradient(circle at 6% 50%,rgba(255,71,187,.3),transparent 45%),linear-gradient(120deg,rgba(95,34,163,.93),rgba(34,45,127,.97));border:1.5px solid #f966ed;box-shadow:0 0 13px rgba(236,69,239,.24),inset 0 0 20px rgba(255,77,226,.08);}
.home-scroll .mode .m-art {display:none;}
.home-scroll .mode-icon {position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:clamp(33px,9vw,45px);line-height:1;filter:drop-shadow(0 0 12px rgba(255,198,44,.52));}
.home-scroll .mode .m-t {font-size:clamp(17px,4.8vw,22px);margin:0 0 5px;letter-spacing:.005em;line-height:1.1;white-space:nowrap;}
.home-scroll .mode-arrow {float:right;color:#ffdf7d;font-size:27px;line-height:19px;}
.home-scroll .mode .m-d {font-size:12px;color:#fff0ce;}
.home-scroll .mode .m-row {margin-top:7px;}
.home-scroll .mode .chip {height:22px;background:rgba(14,11,51,.35);border-color:rgba(255,255,255,.18);}
.home-scroll .duo {gap:11px;}
.home-scroll .tile {min-height:61px; padding:11px 12px;border-color:rgba(155,148,255,.48);background:linear-gradient(145deg,rgba(87,61,166,.8),rgba(36,35,103,.85));}
.home-scroll .tile .t-t {font-size:12px;color:#f7f3ff;}
.home-scroll .tile .t-d {font-size:10px;color:#c8c2f2;}
.home-scroll .statline {background:rgba(53,40,123,.45);padding:6px 3px;}
.tabs {background:linear-gradient(180deg,rgba(32,21,83,.82),rgba(16,15,57,.98));border-top-color:rgba(157,127,255,.4);}
.room {background:linear-gradient(130deg,rgba(67,50,146,.78),rgba(29,29,93,.88));}
@media(max-height:740px){.home-scroll .arena-hero{min-height:65px;max-height:105px;flex:1 1 75px}.arena-stage{margin-top:3px}.home-scroll .mode{min-height:85px;padding:8px 11px 8px 67px}.home-scroll .mode-icon{left:10px;font-size:34px}.home-scroll .mode .m-t{font-size:17px}.home-scroll .mode .m-row{margin-top:3px}.home-scroll .tile{min-height:50px;padding:7px 9px}.home-scroll .statline{padding:3px}}
@media(max-height:620px){.home-scroll .arena-hero{min-height:48px;max-height:66px}.arena-stage,.arena-crown{display:none}.home-scroll .mode{min-height:74px;padding-top:6px;padding-bottom:6px}.home-scroll .mode .m-d{font-size:10px}.home-scroll .mode .chip{font-size:9px}.home-scroll .statline{display:none}}
@media(prefers-reduced-motion:reduce){.arena-hero::before{animation:none}}

/* Spinleague promotional lobby — functional HTML over original arena artwork */
.home-screen .promo-home { flex:1 1 auto; min-height:0; overflow:hidden; padding:7px 12px 8px; gap:clamp(7px,1.25vh,13px); justify-content:space-between; background:radial-gradient(ellipse at 50% 35%,#39227c 0%,#171342 67%,#101033 100%); }
.promo-home .promo-hero { position:relative; flex:1 1 145px; min-height:112px; max-height:300px; border-radius:18px; background:linear-gradient(0deg,rgba(24,12,67,.48),transparent 75%),url('../assets/arena-promo.webp') center 38%/cover no-repeat; overflow:hidden; box-shadow:inset 0 -18px 30px #1d145b; }
.promo-hero:after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,rgba(26,13,74,.30),transparent 70%); pointer-events:none; }
.promo-headline { position:absolute; bottom:3%; width:100%; text-align:center; z-index:1; font-family:var(--fd); font-weight:900; font-style:italic; line-height:.91; letter-spacing:.01em; filter:drop-shadow(0 4px 3px #23043c); }
.promo-headline span,.promo-headline strong,.promo-headline em { display:block; }
.promo-headline span {font-size:clamp(13px,3.7vw,20px); color:#fff; text-shadow:0 2px 2px #23136d,0 0 8px #6b4ce7;}
.promo-headline strong {font-size:clamp(35px,10vw,62px); color:#ffcf38; -webkit-text-stroke:1px #a44707; text-shadow:0 3px #78227d,0 6px #3b1265,0 0 15px #fc7c28;}
.promo-headline em {font-size:clamp(16px,4.8vw,27px); color:#80efff; text-shadow:0 2px #1642ad,0 0 13px #2bcbfa;}
.promo-home .promo-room { display:grid; grid-template-columns:23% 34% 43%; align-items:center; flex:0 0 auto; min-height:clamp(94px,15vh,130px); width:100%; border-radius:19px; padding:9px 10px; overflow:hidden; position:relative; color:#fff; text-align:left; box-shadow:0 4px 14px #09072780,inset 0 0 14px #ffffff13; transition:transform .12s,filter .12s; }
.promo-home .promo-room:active {transform:scale(.985);filter:brightness(1.1)}
.promo-unlimited {background:radial-gradient(ellipse at 0 100%,#1c9bde77,transparent 65%),linear-gradient(110deg,#113978,#12327d 56%,#071c5b);border:2px solid #ffcc54;}
.promo-limited {background:radial-gradient(ellipse at 0 100%,#f146bd77,transparent 65%),linear-gradient(110deg,#682086,#56117f 56%,#2a116d);border:2px solid #f76eea;}
.promo-room-art {font-size:clamp(38px,10vw,66px);line-height:1;text-align:center;filter:drop-shadow(0 3px 7px #ffb52a88)}
.promo-room-name {display:block;font:italic 900 clamp(15px,4.4vw,25px)/1.05 var(--fd);letter-spacing:-.025em;text-shadow:0 3px 1px #280e63,0 0 9px #45218c;}
.promo-room-name b {font-size:1.19em;color:#ffd14c;text-shadow:0 2px #8e3b00,0 4px #4e1668;}
.promo-room-details {display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:7px;min-width:0;}
.promo-room-stats {display:flex;justify-content:space-around;gap:4px;text-align:center;}
.promo-room-stats>span {display:flex;flex-direction:column;min-width:0;}
.promo-room-stats b {font:900 clamp(15px,4.6vw,25px) var(--fd);color:#ffdd58;white-space:nowrap;}
.promo-room-stats small {font:800 clamp(7px,2vw,10px) var(--font);color:#fff;white-space:nowrap;}
.promo-join {display:block;align-self:stretch;text-align:center;background:linear-gradient(#fff0a3,#ffcd32 52%,#ff9f00);border:1px solid #fff1a8;border-radius:999px;padding:8px 2px;color:#351452;font:900 clamp(10px,2.8vw,15px) var(--fd);white-space:nowrap;box-shadow:0 3px 0 #a44d00,0 0 12px #ffc32b77;}
.promo-join span {font-size:.8em;margin-left:3px;}
.promo-shortcuts {display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:0 0 auto;}
.promo-shortcuts button {display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;height:clamp(43px,7vh,61px);border:1.5px solid #67c8ff;border-radius:14px;background:linear-gradient(150deg,#28348d,#1b155a);font:800 clamp(10px,2.8vw,14px) var(--fd);box-shadow:inset 0 1px #ffffff44,0 0 9px #257de444;color:#fff;white-space:nowrap;}
.promo-shortcuts button+button {border-color:#e977fb;background:linear-gradient(150deg,#582b9e,#281363)}
.promo-shortcuts svg {width:20px;height:20px;flex:none;}
.promo-stage {flex:0 1 65px;min-height:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#db51ef44,transparent 68%);}
.promo-stage span {display:grid;place-items:center;width:65%;height:48%;border-radius:50%;border:2px solid #8bdfff;box-shadow:0 0 13px #0abaff,0 0 18px #ec41f5;color:#e9a1ff;font-size:23px;transform:perspective(100px) rotateX(20deg);}
.home-screen .tabs {border-top:1px solid #8061d3;background:linear-gradient(#302069,#140e3e);}
.home-screen .tabs button.on {color:#ffd54c;}
@media(max-height:740px) {.home-screen .promo-home {gap:7px;padding:4px 10px 5px}.promo-home .promo-hero{min-height:85px;flex-basis:90px}.promo-home .promo-room{min-height:83px;padding:6px 8px}.promo-stage{flex-basis:30px}.promo-join{padding:6px 2px}}
@media(max-height:590px) {.promo-home .promo-hero{min-height:55px;flex-basis:60px}.promo-stage{display:none}.promo-home .promo-room{min-height:70px}.promo-shortcuts button{height:39px}.promo-room-art{font-size:34px}}
@media(prefers-reduced-motion:reduce){.promo-room{transition:none!important}}

/* Home promotional cards: compact, three data points without crowding. */
.promo-home .promo-room {grid-template-columns:19% 36% 45%;column-gap:0;padding:8px 7px;}
.promo-home .promo-room-art {font-size:clamp(30px,8vw,54px)}
.promo-home .promo-room-name {font-size:clamp(13px,3.55vw,21px);letter-spacing:-.04em}
.promo-home .promo-price {color:#fff;font-size:.88em;white-space:nowrap}
.promo-home .promo-room-stats {justify-content:space-evenly;gap:5px;align-items:center}
.promo-home .promo-room-stats>span {flex:1 1 0;min-width:0}
.promo-home .promo-room-stats>span+span {border-left:1px solid #ffffff70;padding-left:4px}
.promo-home .promo-room-stats b {font-size:clamp(12px,3.65vw,22px);line-height:1.1;overflow:hidden;text-overflow:ellipsis}
.promo-home .promo-room-stats small {font-size:clamp(6px,1.55vw,9px);letter-spacing:0}
.promo-home .promo-room-stats.single b {font-size:clamp(18px,5vw,27px)}
.promo-home .promo-room-details {gap:6px}
.promo-home .promo-join {padding:7px 1px}
.promo-home .promo-shortcuts {margin-bottom:0}
.promo-home {justify-content:space-between}
@media(max-width:370px) {
 .promo-home .promo-room {grid-template-columns:17% 37% 46%;padding:6px 5px}
 .promo-home .promo-room-name {font-size:12px}
 .promo-home .promo-room-stats b {font-size:12px}
 .promo-home .promo-room-stats small {font-size:6px}
}

/* Gameplay polish: no changes to stage/grid geometry. Duel uses the existing band. */
.game { background: radial-gradient(ellipse 95% 55% at 50% 28%, rgba(57,42,125,.10), transparent 75%); }
.game .band { height: 50px; min-height: 50px; max-height: 50px; background: linear-gradient(110deg,rgba(29,20,82,.88),rgba(20,18,66,.88)); border-color:rgba(160,112,255,.42); box-shadow:inset 0 0 16px rgba(126,72,230,.10); }
.game .band .ladder { align-items:center; }
.game .duel-inline { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; overflow:hidden; line-height:1.12; }
.game .duel-inline .di-name { font-size:10px; font-weight:700; color:#f4baff; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:100%; }
.game .duel-inline .di-score { font-size:clamp(12px,3.7vw,16px); font-weight:800; color:#fff; white-space:nowrap; }
.game .duel-inline .di-score i { font-size:9px; font-style:normal; color:#f5a9d6; }
.game .duel-inline .di-delta { font:700 9px var(--fd); white-space:nowrap; }
.game .duel-inline .di-delta.ahead { color:var(--green); }
.game .duel-inline .di-delta.behind { color:#ff9da9; }
.game .reacts { margin-top:auto; }
.game .reacts button { background:linear-gradient(180deg,rgba(52,36,109,.62),rgba(26,20,72,.78)); border-color:rgba(158,122,250,.38); }
.game .reacts button:active { box-shadow:0 0 12px rgba(170,105,255,.45); }

/* Rival presentation lives inside the original 50px band; the stage/grid
   geometry is identical with and without a rival. */
.game .band.has-rival { background:linear-gradient(105deg,rgba(45,23,99,.92),rgba(22,31,89,.9)); border-color:rgba(190,109,255,.65); }
.game .duel-inline { gap:0; padding:0 2px; }
.game .duel-inline .di-caption { color:#d6aaff; font:700 8px var(--fd); letter-spacing:.06em; white-space:nowrap; }
.game .duel-inline .di-match { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-width:0; }
.game .duel-inline .di-person { display:flex; flex-direction:column; align-items:center; min-width:0; flex:1; line-height:1.04; }
.game .duel-inline .di-person small { max-width:100%; font-size:9px; color:#e4d8ff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.game .duel-inline .di-person b { font-size:clamp(12px,3.4vw,16px); color:#fff; }
.game .duel-inline .di-vs { font:900 11px var(--fd); color:#ffce4a; }
.game .duel-inline .di-delta { font-size:8px; letter-spacing:.02em; }
.game .band.has-rival .gap { min-width:48px; }
@media(max-width:370px) { .game .duel-inline .di-caption { font-size:7px; } .game .duel-inline .di-match { gap:3px; } .game .band.has-rival .gap { min-width:42px; } }

/* Spinleague competitive scoreboard v3 — fixed 50px band, no grid layout changes */
.game .band.battle-scoreboard {
  display:flex; box-sizing:border-box; height:50px; min-height:50px; max-height:50px;
  padding:3px 7px; gap:7px; overflow:hidden;
  background:linear-gradient(110deg,#302063 0%,#1b235a 52%,#372052 100%);
  border:1px solid #b778ff; box-shadow:inset 0 0 0 1px #ffffff12,0 0 13px #7a48c82b;
}
.game .bs-rank { width:45px; flex:0 0 45px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-right:1px solid #ffffff33; line-height:1.02; }
.game .bs-rank strong { font:900 21px var(--fd); color:#ffcf4a; }
.game .bs-rank small {font:700 8px var(--fd); color:#c6b9ee; letter-spacing:.05em;}
.game .bs-versus {display:grid; grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr); align-items:center; width:100%; min-width:0; height:100%; gap:2px;}
.game .bs-contender {min-width:0; display:flex; flex-direction:column; justify-content:center; line-height:1.1; gap:3px;}
.game .bs-contender small {font:700 9px var(--fd); color:#d7ccf6; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.game .bs-contender strong {font:900 clamp(14px,4vw,20px) var(--fd); color:white; white-space:nowrap;}
.game .bs-you {text-align:left;}
.game .bs-opponent {text-align:right;}
.game .bs-center {display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; gap:1px; min-width:0;}
.game .bs-center span {font:700 7px var(--fd); letter-spacing:.04em; color:#b7eaff; white-space:nowrap;}
.game .bs-center b {font:900 13px var(--fd); color:#ffcf4a; text-shadow:0 0 8px #ffae5070;}
.game .bs-center em {font:800 8px var(--fd); font-style:normal; white-space:nowrap;}
.game .bs-center em.ahead {color:#44e8aa;} .game .bs-center em.behind {color:#ff9baf;}
@media(max-width:370px) { .game .bs-rank {width:38px;flex-basis:38px;} .game .bs-versus {grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);} .game .bs-center span {font-size:6px;} }

/* Approved home artwork and functional social/mission destinations. */
.screen.approved-home{padding:0!important;background:#14024f;overflow:hidden}
.approved-frame{display:block;width:100%;height:100%;border:0;flex:1;background:#14024f}
.new-section{padding:14px 16px 35px;background:radial-gradient(ellipse at 50% 0%,#3b0e86 0%,#170b45 48%,#0b0926 100%);color:#fff}
.section-hero{display:flex;align-items:center;gap:12px;margin:8px 0 18px;padding:12px;background:linear-gradient(125deg,#4811a5,#1b0756);border:2px solid #b95cff;border-radius:20px;box-shadow:0 0 20px #a93eff60}
.section-hero img{width:66px;height:66px;object-fit:contain}.section-hero h2{font-size:21px;color:#ffe13b;margin:0 0 4px}.section-hero p{font-size:12px;margin:0}
.neon-section-card{border:1.5px solid #a85bff;background:linear-gradient(140deg,#2a086d,#180849);border-radius:18px;padding:16px;margin-bottom:14px;box-shadow:0 0 12px #a73bff40}
.neon-section-card h3{font-size:16px;color:#ffe34c;margin:0 0 13px;display:flex;justify-content:space-between}.neon-section-card p{font-size:13px;line-height:1.55;color:#e3d8ff;margin:10px 0}
.neon-section-card .btn{margin-top:12px}.mission-head{display:flex;justify-content:space-between;font-size:13px}.mission-head span{color:#ffdb3c}.mission-track{height:17px;background:#100539;border:2px solid #a65cff;border-radius:20px;margin:15px 0;overflow:hidden}.mission-track i{display:block;height:100%;background:linear-gradient(90deg,#a900ec,#ff38d8);border-radius:20px}
.social-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.social-stat-grid>div{background:#18083e;border:1px solid #6934d1;border-radius:12px;padding:12px 4px;text-align:center}.social-stat-grid b{display:block;color:#ffe34c;font-size:18px}.social-stat-grid span{font-size:10px;color:#d9c9ff}
.trophy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.trophy-item{text-align:center;background:#17063d;border:1px solid #6131ba;border-radius:12px;padding:10px 5px}.trophy-item span{display:block;font-size:27px}.trophy-item small{font-size:10px}.home-menu-actions{display:flex;flex-direction:column;gap:8px}.home-menu-actions .room{padding:15px;text-align:left;font-size:14px}

/* Unified secondary navigation — new home-screen era */
.modern-secondary {background: radial-gradient(110% 44% at 50% -10%,rgba(159,48,255,.32),transparent 75%),linear-gradient(180deg,#21045f,#100338 62%,#120447);}
.modern-secondary .hdr {min-height:66px;padding:12px 16px;background:linear-gradient(180deg,rgba(61,9,125,.92),rgba(34,4,91,.6));border-bottom:1px solid rgba(219,102,255,.45);box-shadow:0 3px 22px rgba(195,30,255,.19);}
.modern-secondary .hdr .ib {border:1px solid #b37dff;background:#280b6e;box-shadow:0 0 12px rgba(172,81,255,.45);}
.modern-secondary .hdr .bal {border-color:#ac7bff;background:#1d0b61;}
.modern-secondary .scroll {padding-top:16px;padding-bottom:28px;}
.modern-secondary .card {background:linear-gradient(160deg,rgba(79,14,160,.72),rgba(29,5,94,.92));border:1px solid rgba(213,114,255,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 14px rgba(143,37,255,.18);}
.modern-secondary .sec-h {color:#f5d6ff;}
.modern-secondary .empty-st {color:#d6c7ff;}

/* Social Arena + Missions visual treatment (gameplay styles untouched). */
.home-menu-actions .menu-gloryplay{display:block;text-decoration:none;text-align:left;color:#ffdb63;font-weight:800;margin-top:16px;border-top:2px solid #b95cff;padding-top:19px}
.arena-subpage{background:radial-gradient(90% 35% at 50% 0%,#5b0c9a88,transparent),linear-gradient(#220653,#10032e 65%,#170449)}
.arena-page{padding:14px 15px 42px!important;overscroll-behavior:contain}
.arena-page-title{display:flex;align-items:center;gap:9px;padding:10px 7px 16px;background:radial-gradient(ellipse at 40% 100%,#ac28ff55,transparent 70%)}
.arena-page-title img{width:73px;height:73px;object-fit:contain;filter:drop-shadow(0 0 12px #c428ff)}
.arena-page-title h2{font:900 24px/1.13 var(--fd);color:#ffe43e;text-shadow:0 2px #7b218e,0 0 15px #ff38d5;margin:3px 0}
.arena-page-title p{font-size:12px;color:#f2dcff;margin:0}
.arena-eyebrow{font-size:9px;letter-spacing:1.3px;font-weight:900;color:#eeadff}
.arena-feature,.arena-rival-card,.arena-trophy-card,.arena-rank-card{padding:15px;border-radius:19px;border:2px solid #c35cff;background:linear-gradient(150deg,#451098,#1a054d 85%);box-shadow:inset 0 1px 0 #ffffff33,0 0 19px #a323ff5c;margin-bottom:13px}
.arena-feature{border-color:#ffcb39;box-shadow:0 0 20px #ff9a2550,inset 0 0 25px #9d23f64d}
.arena-feature-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px;letter-spacing:.5px;font-weight:900;color:#ffe250}
.arena-chip{border:1px solid #e855ff;border-radius:20px;padding:5px 7px;color:white;background:#7a13b0;font-size:9px;white-space:nowrap}
.arena-feature h3{font:900 23px var(--fd);margin:12px 0 3px;color:white}
.arena-feature p{font-size:13px;color:#e7d5ff;margin:0}
.arena-count{font:900 35px var(--fd);color:#ffdf3c;text-align:right;margin-top:-25px}.arena-count small{font-size:16px;color:#e7d7ff}
.arena-progress{height:12px;background:#130436;border:1px solid #aa5bff;border-radius:20px;overflow:hidden;margin:10px 0}
.arena-progress i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#e600f7,#ff64df);box-shadow:0 0 12px #ff33dd;transition:width .4s}
.arena-reward{font-size:13px;color:#ffe55b;text-align:center;margin:10px 0}
.arena-subtitle{display:flex;justify-content:space-between;gap:5px;color:#ffdf40;font:900 13px var(--fd);margin:16px 0 10px}.arena-subtitle span{font:700 9px var(--font);color:#dcb4ff}
.arena-mission-mini{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;background:linear-gradient(130deg,#4c129c,#1a054e);border:1px solid #a24cf0;border-radius:15px;padding:10px;margin-bottom:9px}
.arena-mission-mini strong,.arena-mission-mini small{display:block}.arena-mission-mini strong{font-size:12px;color:#ffe15b}.arena-mission-mini small{font-size:10px;color:#e8d4ff}.arena-mission-mini b{font-size:12px;color:#fff}
.arena-mini-icon{font-size:29px;text-align:center}.arena-mission-mini .arena-progress{height:8px;margin:6px 0 0}
.arena-disclaimer{font-size:10px!important;line-height:1.5;color:#bda7df!important;margin:8px 0 14px}
.arena-feed-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #9c4ad24d;font-size:12px;color:#eee4ff}
.arena-feed-row strong{color:#ffe14c}.arena-feed-row small{display:block;color:#bda8ed;font-size:10px;margin-top:3px}
.arena-feed-icon{font-size:24px;background:#290a63;border:1px solid #8d3bdd;border-radius:12px;width:43px;height:43px;display:grid;place-items:center;flex-shrink:0}
.arena-reactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.arena-reactions button{font-size:9px;font-weight:800;background:#42108a;border:1px solid #ae56ff;border-radius:18px;padding:8px 7px}.arena-reactions button:active{background:#a63bf4}
.arena-stat-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:13px}.arena-stat-trio div{text-align:center;padding:12px 4px;border:1px solid #c45dff;border-radius:13px;background:#410a92}.arena-stat-trio b{display:block;font:900 21px var(--fd);color:#ffe34a}.arena-stat-trio small{font-size:9px;color:#e5d3ff}
.arena-card-head{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:13px;color:#ffe15b;margin-bottom:12px}.arena-card-head span{font-size:9px;color:#e7b7ff}
.arena-trophy-list{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.arena-trophy{background:#25075c;border:1px solid #8540cf;border-radius:12px;text-align:center;padding:9px 3px}.arena-trophy span{font-size:24px;display:block}.arena-trophy small{font-size:9px;line-height:1.2;display:block}.arena-trophy.locked{filter:grayscale(1);opacity:.48}.arena-trophy.earned{box-shadow:0 0 9px #f4b7356b;border-color:#f7b839}
.arena-rank-card strong{font-size:15px;color:#ffe34d}.arena-rank-card p{font-size:12px;color:#f4e7ff}.arena-rank-card small{font-size:10px;color:#c9afea;line-height:1.5;display:block}
