/* Bundled fonts (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-700-900.woff') format('woff'); font-weight: 700 900; font-style: normal; font-display: swap; }
:root {
  --bg: #14163a; --panel: #22265f; --panel2: #2b3078; --line: rgba(255,255,255,.12);
  --text: #fff; --muted: #a9b0e0;
  --gold: #ffc83d; --gold2: #ff9d00; --gem: #ff4dd2; --gem2: #9b4dff;
  --blue: #3d8bff; --red: #ff4d5e; --green: #46e08a;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: var(--body); -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  overscroll-behavior: none; touch-action: none;
}
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
#game-layer, #ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui > .lobby, #ui > .toasts { pointer-events: none; }
.lobby > * { pointer-events: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; user-select: text; -webkit-user-select: text; touch-action: auto; }
.muted { color: var(--muted); } .center { text-align: center; }
.fine { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* ---------- icons ---------- */
.ico { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; margin-right: .3em; }
.ico.coin { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc83d 45%, #d98a00); box-shadow: inset 0 0 0 2px #b36b00; }
.ico.gem { background: linear-gradient(135deg, #ffb3f0, #ff4dd2 45%, #9b4dff); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.ico.xp { width: auto; padding: 0 .3em; border-radius: 6px; background: linear-gradient(#5cf2ff, #3d8bff); color: #0b1440; font: 900 .7em/1.6em var(--body); vertical-align: .05em; }
.ico-t { margin-right: .25em; }
.swatch { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid; background: linear-gradient(135deg, var(--b) 55%, var(--a) 55%); flex: none; }
.hero-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--b) 70%, #fff), var(--b) 60%); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 0 0 3px var(--a); flex: none; }
.hb-eye { width: 8px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 2px 0 0 0 #111; margin-top: -4px; }

/* ---------- buttons ---------- */
.btn { font-family: var(--display); letter-spacing: .02em; padding: 10px 16px; border-radius: 12px; background: linear-gradient(#5aa2ff, #2f6fe0); box-shadow: 0 4px 0 #1b3f8f, inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .08s; white-space: nowrap; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1b3f8f; }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.btn.gold { background: linear-gradient(#ffe066, #ffb000); color: #3a2200; text-shadow: none; box-shadow: 0 4px 0 #b36b00, inset 0 1px 0 rgba(255,255,255,.5); }
.btn.gem { background: linear-gradient(#ff7be0, #b24dff); box-shadow: 0 4px 0 #6a1fa8, inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { background: rgba(255,255,255,.1); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn.danger { background: linear-gradient(#ff7480, #e0354a); box-shadow: 0 4px 0 #8a1424; }
.btn.sm { padding: 7px 12px; font-size: 14px; } .btn.xs { padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.btn.big { padding: 14px 26px; font-size: 20px; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pill.ok { background: rgba(70,224,138,.18); color: var(--green); } .pill.big { font-size: 15px; padding: 9px 14px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.link { color: var(--gold); text-decoration: underline; }

/* ---------- lobby ---------- */
.lobby { position: fixed; inset: 0; }
.topbar { position: absolute; top: calc(var(--sat) + 10px); left: calc(var(--sal) + 12px); right: calc(var(--sar) + 12px); display: flex; gap: 8px; align-items: center; }
.topbar .spacer { flex: 1; }
.chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 40px; border-radius: 14px; background: rgba(8,10,38,.72); border: 2px solid var(--line); font-family: var(--display); font-size: 16px; backdrop-filter: blur(6px); }
.chip.profile { padding: 4px 12px 4px 4px; text-align: left; }
.chip.profile .hero-badge { width: 34px; height: 34px; }
.pinfo { display: flex; flex-direction: column; line-height: 1.05; } .pinfo b { font-weight: 400; } .pinfo small { font-family: var(--body); font-size: 11px; color: var(--muted); font-weight: 700; }
.chip.res .plus { margin-left: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--green); color: #063; display: grid; place-items: center; font-size: 16px; }
.sidenav { position: absolute; left: calc(var(--sal) + 12px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.sidenav button { position: relative; width: 66px; height: 62px; border-radius: 16px; background: rgba(8,10,38,.72); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 12px; backdrop-filter: blur(6px); transition: transform .1s; }
.sidenav button:active { transform: scale(.94); }
.sidenav .ni { font-size: 24px; line-height: 1.1; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); font: 900 12px/22px var(--body); font-style: normal; display: none; box-shadow: 0 2px 0 rgba(0,0,0,.3); animation: bounce 1.6s infinite; }
.badge.on { display: block; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hero-card { position: absolute; left: calc(var(--sal) + 92px); bottom: calc(var(--sab) + 14px); padding: 10px 16px; border-radius: 16px; background: rgba(8,10,38,.72); border: 2px solid var(--line); cursor: pointer; backdrop-filter: blur(6px); }
.hc-role { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hc-name { font-family: var(--display); font-size: 26px; line-height: 1.05; }
.hc-lvl { font-size: 13px; font-weight: 700; }
.pass-strip { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 14px); width: min(320px, 34vw); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; padding: 8px 12px; border-radius: 16px; background: rgba(8,10,38,.72); border: 2px solid var(--line); cursor: pointer; backdrop-filter: blur(6px); }
.ps-tier { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(#ff7be0, #9b4dff); line-height: 1; }
.ps-tier small { font-size: 9px; font-weight: 900; } .ps-tier b { font-family: var(--display); font-size: 20px; font-weight: 400; }
.ps-label { font-family: var(--display); font-size: 14px; order: -1; }
.ps-bar { position: relative; height: 16px; border-radius: 8px; background: rgba(0,0,0,.45); overflow: hidden; }
.ps-bar.big { height: 22px; border-radius: 11px; }
.ps-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #5cf2ff, #3d8bff); border-radius: inherit; transition: width .4s; }
.ps-bar span { position: relative; display: block; text-align: center; font: 800 11px/16px var(--body); text-shadow: 0 1px 2px #000; }
.ps-bar.big span { line-height: 22px; font-size: 13px; }
.play-wrap { position: absolute; right: calc(var(--sar) + 16px); bottom: calc(var(--sab) + 14px); display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.mode-chip { text-align: center; font-family: var(--display); font-size: 13px; padding: 5px 10px; border-radius: 10px; background: rgba(8,10,38,.72); }
.play-btn { font-family: var(--display); font-size: 40px; letter-spacing: .04em; padding: 12px 52px; border-radius: 20px; color: #3a2200; background: linear-gradient(#fff07a, #ffc21a 50%, #ff9d00); box-shadow: 0 6px 0 #b36b00, 0 10px 24px rgba(255,170,0,.45), inset 0 2px 0 rgba(255,255,255,.6); animation: playpulse 2.2s infinite; }
.play-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b36b00; }
@keyframes playpulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

@media (orientation: portrait) {
  .hero-card { left: calc(var(--sal) + 12px); bottom: calc(var(--sab) + 176px); }
  .pass-strip { width: auto; left: calc(var(--sal) + 12px); right: calc(var(--sar) + 12px); transform: none; bottom: calc(var(--sab) + 110px); }
  .play-wrap { left: calc(var(--sal) + 12px); right: calc(var(--sar) + 12px); }
  .sidenav { top: calc(var(--sat) + 70px); transform: none; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .sidenav button { width: 58px; height: 52px; } .sidenav .ni { font-size: 20px; }
  .play-btn { font-size: 32px; padding: 8px 40px; }
  .hc-name { font-size: 20px; }
}

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(5,6,25,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: calc(var(--sat) + 10px) calc(var(--sar) + 10px) calc(var(--sab) + 10px) calc(var(--sal) + 10px); animation: fadein .15s; z-index: 5; }
.modal { width: min(880px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .2s; overflow: hidden; }
.modal.m-daily, .modal.m-quests, .modal.m-settings, .modal.m-howto { width: min(560px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(0,0,0,.2); }
.modal-head h2 { margin: 0; font: 400 22px var(--display); }
.x { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 18px; }
.modal-body { padding: 14px 16px 18px; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.modal-body h3 { font: 400 18px var(--display); margin: 16px 0 8px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* heroes */
.heroes-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
@media (max-width: 640px) { .heroes-layout { grid-template-columns: 1fr; } }
.hgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.hcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: rgba(0,0,0,.25); border: 2px solid var(--line); }
.hcard.sel { border-color: var(--gold); background: rgba(255,200,61,.1); }
.hcard.locked { filter: grayscale(.7); opacity: .75; }
.hcard b { font: 400 18px var(--display); } .hcard small { color: var(--muted); font-weight: 700; font-size: 12px; }
.hcard .hero-badge { width: 52px; height: 52px; margin-bottom: 4px; }
.hcard .lvl { font-size: 12px; font-weight: 800; }
.hcard .tag { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 900; background: var(--green); color: #063; padding: 2px 6px; border-radius: 6px; }
.hdetail { padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.22); }
.hd-head { display: flex; align-items: baseline; gap: 8px; } .hd-head b { font: 400 26px var(--display); } .hd-head span { color: var(--muted); font-weight: 800; }
.hdetail p { margin: 4px 0 10px; color: #dfe3ff; font-size: 14px; }
.stats, .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid { grid-template-columns: repeat(3, 1fr); margin: 12px 0; }
.stats div, .stat-grid div { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); text-align: center; }
.stats small, .stat-grid small { display: block; font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.stats b, .stat-grid b { font: 400 16px var(--display); }
.unlock-box { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,200,61,.1); font-size: 14px; }
.skins { display: flex; flex-direction: column; gap: 8px; }
.skin-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 2px solid transparent; cursor: pointer; }
.skin-row.pv { border-color: rgba(61,224,255,.6); }
.sk-info { flex: 1; display: flex; flex-direction: column; } .sk-info b { font-size: 14px; } .sk-info small { font-size: 10px; font-weight: 900; }

/* pass */
.pass-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ph-prog { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.ph-tier { font-family: var(--display); font-size: 18px; } .ph-tier b { font-size: 30px; font-weight: 400; } .ph-tier small { color: var(--muted); margin-left: 4px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pcol.labels { position: sticky; left: 0; z-index: 2; width: 70px; }
.pcol.labels .ptier { background: #1b1e4f; }
.pcell.lab { font: 400 12px/1.2 var(--display); }
.pcell.lab.premium { background: #55288a; color: #ffc6f2; } .pcell.lab.free { background: #2b3078; color: var(--muted); }
@media (max-height: 460px) {
  .pcell { height: 72px; } .pass-head { margin-bottom: 4px; gap: 8px; } .ph-tier b { font-size: 24px; }
  .modal-head { padding: 8px 14px; } .modal-body { padding: 10px 14px 14px; }
}
.track-scroll { overflow-x: auto; padding-bottom: 8px; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.track { display: flex; gap: 8px; width: max-content; }
.pcol { width: 104px; display: flex; flex-direction: column; gap: 6px; }
.ptier { text-align: center; font: 400 15px var(--display); padding: 3px; border-radius: 8px; background: rgba(0,0,0,.3); color: var(--muted); }
.pcol.reached .ptier { background: linear-gradient(#5cf2ff, #3d8bff); color: #0b1440; }
.pcol.next .ptier { outline: 2px dashed var(--gold); }
.pcell { position: relative; height: 92px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; font-size: 12px; }
.pcell.premium { background: linear-gradient(rgba(255,77,210,.28), rgba(155,77,255,.22)); border: 2px solid rgba(255,77,210,.35); }
.pcell.free { background: rgba(255,255,255,.06); border: 2px solid var(--line); }
.pcell.empty { opacity: .4; }
.pcell.can { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,200,61,.45); }
.pcell.claimed { opacity: .5; }
.pcell.locked .rw { filter: saturate(.5) brightness(.85); }
.pc-state { position: absolute; top: 4px; right: 6px; font-size: 13px; }
.rw { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; font-weight: 800; }
.rw.big { font-size: 16px; } .rw .swatch { width: 26px; height: 26px; }
.rw b { font-family: var(--display); font-weight: 400; font-size: 1.1em; }

/* quests */
.quests { display: flex; flex-direction: column; gap: 10px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 2px solid var(--line); }
.quest.done { border-color: var(--gold); } .quest.claimed { opacity: .6; }
.quest.bonus { margin-top: 12px; background: rgba(255,200,61,.08); }
.q-main { flex: 1; display: flex; flex-direction: column; gap: 6px; } .q-main small { color: var(--muted); font-size: 11px; font-weight: 800; margin-top: -4px; }
.q-rw { font-family: var(--display); white-space: nowrap; }

/* shop */
.gift { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(70,224,138,.18), rgba(61,139,255,.12)); border: 2px solid rgba(70,224,138,.4); }
.gift.used { opacity: .65; } .gift > div { flex: 1; display: flex; flex-direction: column; } .gift small { color: var(--muted); font-weight: 700; }
.gift-ico { font-size: 30px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: rgba(0,0,0,.25); border: 2px solid var(--r, var(--line)); text-align: center; overflow: hidden; }
.shop-item b { font-size: 14px; } .shop-item small { font-size: 10px; font-weight: 900; }
.si-art { position: relative; height: 64px; display: grid; place-items: center; } .si-art .swatch { width: 54px; height: 54px; }
.si-hat { position: absolute; bottom: -4px; font-size: 9px; text-transform: uppercase; font-weight: 900; color: var(--muted); }
.gemart .ico.gem { width: 46px; height: 46px; margin: 0; }
.ribbon { position: absolute; top: 8px; right: -26px; transform: rotate(35deg); background: var(--red); font-size: 10px; font-weight: 900; padding: 2px 30px; }
.demo-note { padding: 10px 12px; border-radius: 12px; background: rgba(255,200,61,.12); border: 1px dashed var(--gold); font-size: 13px; margin-bottom: 10px; }

/* daily */
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 16px; }
.dday { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: rgba(0,0,0,.25); border: 2px solid var(--line); }
.dday.big { grid-column: span 2; background: linear-gradient(rgba(255,77,210,.25), rgba(155,77,255,.2)); }
.dday.today { border-color: var(--gold); box-shadow: 0 0 16px rgba(255,200,61,.5); animation: bounce 1.4s infinite; }
.dday.got { opacity: .5; } .dday small { font-weight: 900; color: var(--muted); font-size: 11px; }
.dday .check { position: absolute; top: 4px; right: 8px; color: var(--green); font-weight: 900; }

/* settings + howto */
.settings label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.settings input:not([type=checkbox]), .settings select { padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.3); color: #fff; }
.settings label.tog { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
.settings .tog input { width: 22px; height: 22px; accent-color: var(--green); }
.howto { display: flex; flex-direction: column; gap: 10px; }
.ht { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.2); }
.ht > span { font-size: 28px; } .ht div { display: flex; flex-direction: column; } .ht small { color: #dfe3ff; font-size: 13px; }

/* ---------- loading / results / toasts ---------- */
.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(8,10,38,.85); font: 400 22px var(--display); z-index: 6; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.results { position: fixed; inset: 0; display: grid; place-items: center; padding: calc(var(--sat) + 10px) 10px calc(var(--sab) + 10px); background: rgba(5,6,25,.7); backdrop-filter: blur(5px); z-index: 7; overflow: auto; }
.res-card { width: min(520px, 100%); text-align: center; padding: 18px 18px 20px; border-radius: 24px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--line); animation: pop .3s; max-height: 100%; overflow: auto; }
.res-card h1 { margin: 0; font: 400 46px var(--display); letter-spacing: .03em; text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.res-card.win h1 { color: var(--gold); } .res-card.loss h1 { color: #ff8a96; }
.res-score { font: 400 30px var(--display); } .res-score .blue { color: var(--blue); } .res-score .red { color: var(--red); }
.mvp { display: inline-block; margin: 6px 0 12px; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 14px; }
.mvp.me { background: linear-gradient(90deg, #ffe066, #ffb000); color: #3a2200; font-weight: 900; }
.res-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rr { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: rgba(0,0,0,.25); font-size: 22px; }
.rr b { font: 400 26px var(--display); } .rr b.neg { color: #ff8a96; } .rr small { font-size: 11px; color: var(--muted); font-weight: 800; }
.res-note { margin-top: 8px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 14px; font-weight: 700; }
.res-note.good { background: rgba(70,224,138,.15); }
.board { margin-top: 12px; text-align: left; font-size: 13px; }
.board summary { cursor: pointer; font-family: var(--display); text-align: center; padding: 6px; }
.brow { display: grid; grid-template-columns: 1.4fr 1fr .45fr .45fr .6fr .8fr; gap: 6px; padding: 5px 8px; border-radius: 8px; }
.brow.me { background: rgba(255,200,61,.15); } .brow.head { color: var(--muted); font-weight: 900; }
.brow b { text-align: right; } .brow small { color: var(--muted); }
.bsep { height: 2px; background: var(--line); margin: 4px 0; }
.res-card .row-btns { justify-content: center; margin-top: 16px; }
.toasts { position: fixed; top: calc(var(--sat) + 60px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 9; }
.toast { padding: 8px 16px; border-radius: 12px; background: rgba(8,10,38,.92); border: 2px solid var(--line); font-weight: 800; font-size: 14px; animation: pop .2s; transition: opacity .4s, transform .4s; }
.toast.good { border-color: var(--green); } .toast.bad { border-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(-10px); }
.reward-pop { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 28px; border-radius: 20px; background: linear-gradient(var(--panel2), var(--panel)); border: 3px solid var(--gold); box-shadow: 0 0 40px rgba(255,200,61,.5); z-index: 10; animation: pop .25s; transition: opacity .4s; }
.reward-pop small { font-weight: 900; color: var(--muted); } .reward-pop .rw.big { font-size: 26px; }
.reward-pop.out { opacity: 0; }
.fatal { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; }

/* ---------- in-match HUD ---------- */
.game-ui { position: fixed; inset: 0; pointer-events: auto; touch-action: none; overflow: hidden; }
.hud-top { position: absolute; top: calc(var(--sat) + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.hud-score { display: flex; align-items: center; gap: 8px; }
.hud-score .n { font: 400 34px/1 var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.35); min-width: 34px; text-align: center; }
.hud-score.blue .n { color: var(--blue); } .hud-score.red .n { color: var(--red); }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 16px; border-radius: 3px; background: rgba(0,0,0,.4); }
.hud-score.blue .pips i.on { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.hud-score.red .pips i.on { background: var(--red); box-shadow: 0 0 6px var(--red); }
.hud-timer { font: 400 24px/1 var(--display); padding: 8px 12px; border-radius: 12px; background: rgba(8,10,38,.75); min-width: 72px; text-align: center; }
.hud-timer.low { color: var(--red); animation: bounce .5s infinite; }
@media (max-width: 520px) { .pips i { width: 5px; height: 12px; } .hud-score .n { font-size: 26px; } .hud-leave { top: calc(var(--sat) + 58px); width: 34px; height: 34px; } }
.hud-leave { position: absolute; top: calc(var(--sat) + 8px); left: calc(var(--sal) + 10px); width: 38px; height: 38px; border-radius: 12px; background: rgba(8,10,38,.7); font-size: 16px; z-index: 2; }
.killfeed { position: absolute; top: calc(var(--sat) + 56px); right: calc(var(--sar) + 10px); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; }
.feed-row { padding: 4px 10px; border-radius: 8px; background: rgba(8,10,38,.7); font-size: 12px; transition: opacity .6s; }
.feed-row.fade { opacity: 0; } .feed-x { color: var(--gold); }
.announce { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font: 400 44px var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 24px rgba(61,139,255,.6); pointer-events: none; white-space: nowrap; transition: transform .25s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.announce.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.announce.good { color: var(--gold); } .announce.bad { color: #ff8a96; } .announce.small { font-size: 22px; top: 22%; }
.announce.count { font-size: 80px; top: 40%; } .announce.go { color: var(--gold); }
.respawn { position: absolute; left: 50%; top: 55%; transform: translateX(-50%); padding: 10px 18px; border-radius: 14px; background: rgba(8,10,38,.8); font: 400 22px var(--display); display: none; pointer-events: none; }
.respawn.show { display: block; }
.plates { position: absolute; inset: 0; pointer-events: none; }
.plate { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; will-change: transform; }
.pname { font: 800 11px var(--body); text-shadow: 0 1px 2px #000, 0 0 4px #000; white-space: nowrap; }
.plate.me .pname { color: var(--gold); }
.hpbar { position: relative; width: 66px; height: 12px; border-radius: 6px; background: rgba(0,0,0,.6); border: 2px solid rgba(0,0,0,.6); overflow: hidden; }
.plate.me .hpbar { width: 84px; height: 15px; }
.hpfill { position: absolute; inset: 0 auto 0 0; transition: width .12s; }
.plate.blue .hpfill { background: linear-gradient(var(--ally-hi, #7ab6ff), var(--blue)); } .plate.red .hpfill { background: linear-gradient(var(--enemy-hi, #ff8a96), var(--red)); }
.plate.me .hpfill { background: linear-gradient(var(--me-hi, #8bffb8), var(--me-hp, #22c768)); }
.hpnum { position: relative; display: block; text-align: center; font: 900 9px/8px var(--body); text-shadow: 0 1px 1px #000; }
.plate.me .hpnum { font-size: 10px; line-height: 11px; }
.ammo { display: flex; gap: 2px; }
.ammo i { width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ffb000 calc(var(--f, 1) * 100%), rgba(0,0,0,.6) 0); border: 1px solid rgba(0,0,0,.6); }
.plate.noammo .ammo { animation: shake .25s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.floater { position: absolute; left: 0; top: 0; font: 400 18px var(--display); text-shadow: 0 2px 0 rgba(0,0,0,.6); pointer-events: none; white-space: nowrap; }
.floater.dmg { color: #fff; } .floater.hurt { color: #ff8a96; } .floater.heal { color: var(--green); } .floater.block { color: #9fd8ff; font-size: 14px; }
.super-btn { position: absolute; right: calc(var(--sar) + 120px); bottom: calc(var(--sab) + 110px); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 400 15px var(--display); color: rgba(255,255,255,.75); background: rgba(8,10,38,.6); border: 3px solid rgba(255,255,255,.2); z-index: 2; touch-action: none; }
.super-fill { position: absolute; inset: 4px; border-radius: 50%; background: conic-gradient(rgba(255,200,61,.75) calc(var(--c, 0) * 1%), transparent 0); }
.super-btn span { position: relative; }
.super-btn.ready { color: #3a2200; border-color: #fff3b0; background: radial-gradient(#ffe066, #ffb000); animation: superglow 1s infinite; }
.super-btn.ready .super-fill { display: none; }
@keyframes superglow { 0%,100% { box-shadow: 0 0 12px rgba(255,200,61,.6); } 50% { box-shadow: 0 0 30px rgba(255,200,61,1); transform: scale(1.05); } }
@media (orientation: portrait) { .super-btn { right: calc(var(--sar) + 24px); bottom: calc(var(--sab) + 200px); } }
.stick-base, .stick-knob { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.stick-base { width: 112px; height: 112px; border: 3px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.stick-knob { width: 44px; height: 44px; background: rgba(255,255,255,.75); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.stick-base.aim { border-color: rgba(255,120,120,.5); background: rgba(255,80,80,.08); } .stick-knob.aim { background: rgba(255,140,140,.85); }
.stick-base.super { border-color: rgba(255,200,61,.6); } .stick-knob.super { background: rgba(255,200,61,.9); }
.ctrl-hint { position: absolute; bottom: calc(var(--sab) + 14px); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 10px; background: rgba(8,10,38,.7); font-size: 12px; font-weight: 800; white-space: nowrap; pointer-events: none; transition: opacity 1s; }
.ctrl-hint.hide { opacity: 0; }

/* ---------- stats & leaderboards ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tab { flex: 1; padding: 9px 10px; border-radius: 12px; background: rgba(0,0,0,.25); font: 400 15px var(--display); color: var(--muted); white-space: nowrap; border: 2px solid transparent; }
.tab.on { background: rgba(255,200,61,.15); color: var(--gold); border-color: rgba(255,200,61,.5); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.tile { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.22); text-align: center; }
.tile small { display: block; font-size: 10px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile b { font: 400 22px var(--display); }
.tile.hi { background: linear-gradient(rgba(255,200,61,.22), rgba(255,157,0,.12)); border: 2px solid rgba(255,200,61,.5); } .tile.hi b { color: var(--gold); }
.table { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.trow { display: grid; grid-template-columns: 1.8fr .8fr .8fr .7fr .7fr .7fr; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); text-align: right; }
.trow > span:first-child { display: flex; align-items: center; gap: 8px; text-align: left; }
.trow .hero-badge { width: 26px; height: 26px; } .trow .hb-eye { width: 5px; height: 7px; margin-top: -2px; }
.trow.head { background: none; color: var(--muted); font-weight: 900; font-size: 11px; text-transform: uppercase; }
.trow .kd { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 15px; }
.history { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border-left: 4px solid var(--muted); }
.hrow.win { border-left-color: var(--green); } .hrow.loss { border-left-color: var(--red); }
.hres { font: 400 14px var(--display); } .hrow.win .hres { color: var(--green); } .hrow.loss .hres { color: #ff8a96; }
.hhero { display: flex; align-items: center; gap: 8px; } .hhero > span:last-child { display: flex; flex-direction: column; }
.hhero small { color: var(--muted); font-size: 11px; font-weight: 700; }
.hhero .hero-badge { width: 28px; height: 28px; } .hhero .hb-eye { width: 5px; height: 7px; margin-top: -2px; }
.hkd { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; } .hkd b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.hkd small { color: var(--muted); font-weight: 800; font-size: 10px; }
.htr { font: 400 15px var(--display); min-width: 54px; text-align: right; } .htr.neg { color: #ff8a96; }
.league-note { padding: 9px 12px; border-radius: 12px; background: rgba(61,224,255,.08); border: 1px dashed rgba(61,224,255,.45); font-size: 13px; margin-bottom: 10px; }
.my-rank { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,200,61,.2), rgba(255,77,210,.15)); font-weight: 800; }
.my-rank b { font: 400 30px var(--display); color: var(--gold); }
.rank-note { color: #dfe3ff; font-size: 13px; font-weight: 700; margin: 8px 0 10px; }
.lb { display: flex; flex-direction: column; gap: 4px; }
.lrow { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.lrow.top { background: rgba(255,200,61,.08); }
.lrow.me { background: rgba(255,200,61,.22); border: 2px solid var(--gold); }
.lrank { font: 400 16px var(--display); text-align: center; color: var(--muted); } .lrow.top .lrank { font-size: 22px; }
.lname { display: flex; align-items: center; gap: 10px; min-width: 0; } .lname > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lname small { color: var(--muted); font-size: 11px; font-weight: 700; }
.lname .hero-badge { width: 30px; height: 30px; } .lname .hb-eye { width: 6px; height: 8px; margin-top: -2px; }
.bot-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font: 400 14px var(--display); color: var(--muted); }
.lval { font: 400 18px var(--display); }
.res-kd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.res-kd span { display: flex; flex-direction: column; padding: 6px 2px; border-radius: 10px; background: rgba(255,255,255,.06); }
.res-kd small { font-size: 10px; font-weight: 900; color: var(--muted); text-transform: uppercase; }
.res-kd b { font: 400 20px var(--display); }
@media (max-width: 520px) { .trow { grid-template-columns: 1.6fr .7fr .7fr .6fr .6fr .7fr; font-size: 12px; } .trow > span:first-child b { display: none; } }
@media (max-height: 420px) and (orientation: landscape) { .sidenav { gap: 6px; } .sidenav button { height: 46px; } .sidenav .ni { font-size: 18px; } }
@media (max-height: 460px) {
  .res-card { padding: 10px 14px 12px; } .res-card h1 { font-size: 30px; } .res-score { font-size: 22px; }
  .mvp { margin: 2px 0 6px; } .rr { padding: 4px; font-size: 16px; } .rr b { font-size: 20px; }
  .res-kd b { font-size: 16px; } .res-card .row-btns { margin-top: 8px; } .btn.big { padding: 10px 22px; font-size: 18px; }
}

/* ---------- online / accounts ---------- */
.netchip { font-family: var(--body); font-weight: 800; font-size: 12px; gap: 6px; }
.netchip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.netchip.on .dot, .netchip.guest .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.netchip.off .dot { background: #ff8a96; }
.netchip.guest u { color: var(--gold); }
@media (max-width: 700px) { .netchip.guest u { display: none; } .netchip { padding: 6px 10px; } }
.acct { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; margin-bottom: 14px; background: rgba(0,0,0,.25); border: 2px solid var(--line); }
.acct small { color: #dfe3ff; font-size: 13px; }
.acct.on { flex-direction: row; align-items: center; justify-content: space-between; border-color: rgba(70,224,138,.45); }
.acct.guest { border-color: rgba(255,200,61,.5); background: rgba(255,200,61,.07); }
.acct form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.acct form input { flex: 1 1 150px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; }
.acct-err { margin: 0; color: #ff8a96; font-size: 13px; font-weight: 800; min-height: 1em; }
.link-btn { align-self: flex-start; color: var(--gold); text-decoration: underline; font-size: 13px; font-weight: 800; padding: 2px 0; }
.lsub { font: 800 14px var(--body); color: var(--muted); }
.loading.mm { gap: 10px; }
.net-badge { position: absolute; top: calc(var(--sat) + 12px); right: calc(var(--sar) + 12px); padding: 3px 8px; border-radius: 8px; background: rgba(70,224,138,.2); color: var(--green); font: 900 10px var(--body); letter-spacing: .08em; pointer-events: none; }
.net-badge.bad { background: rgba(255,77,94,.25); color: #ff8a96; }
.league-note.online { background: rgba(70,224,138,.08); border-color: rgba(70,224,138,.45); }

/* ---------- accounts: email / reset ---------- */
.acct.on { flex-direction: column; align-items: stretch; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acct-links { display: flex; gap: 14px; flex-wrap: wrap; }
.acct form, .acct-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.acct-form input, .acct form input { flex: 1 1 150px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; }
.acct-err.ok { color: var(--green); }

/* ---------- friends / party ---------- */
.party-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.25); border: 2px solid var(--line); text-align: center; }
.pcard b { font: 400 20px var(--display); } .pcard small { color: #dfe3ff; font-size: 13px; margin-bottom: 4px; }
.ico-big { font-size: 34px; }
.pjoin { display: flex; gap: 8px; width: 100%; }
.pjoin input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; font: 400 22px var(--display); letter-spacing: .25em; text-transform: uppercase; text-align: center; }
.party { display: flex; flex-direction: column; gap: 10px; }
.pcode { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(rgba(255,77,210,.2), rgba(155,77,255,.15)); border: 2px solid rgba(255,77,210,.4); }
.pcode small { font-weight: 900; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.pcode b { font: 400 40px var(--display); letter-spacing: .2em; color: #fff; }
.pcode .row-btns { margin-top: 6px; justify-content: center; }
.pmembers { display: flex; flex-direction: column; gap: 6px; }
.pmem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.pmem > span:not(.hero-badge) { flex: 1; display: flex; flex-direction: column; } .pmem small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pmem .hero-badge { width: 34px; height: 34px; }
.pmem.empty { justify-content: center; color: var(--muted); font-weight: 800; font-size: 13px; border: 2px dashed var(--line); background: none; }
.pmodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pmode { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 2px solid var(--line); text-align: left; }
.pmode b { font: 400 16px var(--display); } .pmode small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pmode.on { border-color: var(--gold); background: rgba(255,200,61,.12); }
.pmode:disabled { opacity: .4; }
.party-strip { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 12px; background: rgba(155,77,255,.3); border: 2px solid rgba(255,77,210,.5); font: 400 13px var(--display); }
.party-strip .hero-badge { width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--a); } .party-strip .hb-eye { width: 4px; height: 6px; margin-top: -2px; }
.party-strip span { margin-left: 6px; }
.play-btn.waiting { filter: grayscale(.8) brightness(.7); animation: none; }
@media (max-height: 420px) and (orientation: landscape) { .sidenav { gap: 5px; } .sidenav button { height: 42px; width: 56px; font-size: 11px; } .sidenav .ni { font-size: 17px; } }
@media (max-width: 520px) { .net-badge { top: calc(var(--sat) + 60px); } .killfeed { top: calc(var(--sat) + 84px); } }

/* ---------- uncommon rarity, pay-or-earn buttons ---------- */
.buy2 { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.buy2 .btn { padding: 6px 9px; font-size: 13px; }
.buy2 .ico { margin-right: .2em; }
.shop-item.owned { opacity: .7; }
.tabs.small .tab { padding: 6px 8px; font-size: 13px; flex: 0 1 auto; }
.tbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 900 11px/18px var(--body); font-style: normal; }
.tbadge.ok { background: var(--green); color: #063; }
.chip.trophies { position: relative; }
.chip .badge { top: -6px; right: -6px; }

/* ---------- mode chip / picker ---------- */
.mode-chip { display: flex; flex-direction: column; align-items: center; line-height: 1.15; cursor: pointer; border: 2px solid var(--line); }
.mode-chip small { font: 800 11px var(--body); color: var(--muted); }
.mode-chip .chg { color: var(--gold); font-size: 11px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; text-align: left; background: rgba(0,0,0,.25); border: 2px solid var(--line); }
.mode-card.sel { border-color: var(--gold); background: rgba(255,200,61,.12); }
.mode-card .mi { font-size: 26px; } .mode-card b { font: 400 18px var(--display); } .mode-card small { color: #dfe3ff; font-size: 12px; }
.mode-card .mp { position: absolute; top: 10px; right: 10px; font: 900 10px var(--body); color: var(--muted); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.map-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); border: 2px solid var(--line); text-align: center; }
.map-card.sel { border-color: var(--gold); }
.map-card.locked .map-art { filter: grayscale(.6) brightness(.7); }
.map-card small { font-size: 12px; font-weight: 800; }
.map-card .ps-bar { width: 100%; height: 8px; }
.map-art { position: relative; width: 100%; height: 64px; border-radius: 10px; background: var(--g); overflow: hidden; box-shadow: inset 0 0 0 3px rgba(0,0,0,.2); }
.map-art i { position: absolute; background: var(--w); border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.map-art i:nth-child(1) { left: 18%; top: 22%; width: 22%; height: 12%; } .map-art i:nth-child(2) { right: 16%; bottom: 24%; width: 12%; height: 34%; } .map-art i:nth-child(3) { left: 46%; top: 50%; width: 10%; height: 14%; }

/* ---------- trophy road ---------- */
.road { display: flex; flex-direction: column; gap: 6px; }
.road-step { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 2px solid var(--line); opacity: .75; }
.road-step.reached { opacity: 1; border-color: rgba(255,200,61,.6); background: rgba(255,200,61,.08); }
.road-step.claimed { opacity: .55; border-color: var(--line); background: rgba(0,0,0,.15); }
.road-step.next { opacity: 1; border-style: dashed; border-color: var(--gold); }
.road-at { font: 400 16px var(--display); }
.road-rw .hero-badge { width: 26px; height: 26px; }

/* ---------- settings sliders ---------- */
.settings label.slider { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
.settings label.slider input { flex: 1; accent-color: var(--gold); }
.settings label.slider output { width: 44px; text-align: right; color: var(--muted); font-size: 13px; }

/* ---------- social ---------- */
.addf { display: flex; gap: 8px; margin-bottom: 8px; }
.addf input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; }
.frow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 6px; }
.frow .hero-badge { width: 34px; height: 34px; }
.frow.offline { opacity: .7; } .frow.req { background: rgba(255,200,61,.1); border: 1px solid rgba(255,200,61,.4); }
.fmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmain small { color: var(--muted); font-weight: 700; font-size: 12px; }
.ctag { color: var(--gold); margin-right: 4px; font-weight: 900; }
.blocked summary { cursor: pointer; color: var(--muted); font-weight: 800; margin: 10px 0 6px; }
.clan-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: linear-gradient(rgba(255,200,61,.15), rgba(255,77,210,.1)); border: 2px solid rgba(255,200,61,.4); }
.clan-head b { font: 400 22px var(--display); } .clan-head small { display: block; color: #dfe3ff; }
.clan-stats { display: flex; gap: 10px; align-items: center; font-weight: 800; flex-wrap: wrap; }
.clan-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.clan-edit input { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; }
.clan-edit input[name=desc] { flex: 1 1 200px; }
.clan-edit label { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; }
.clan-edit label input { width: 80px; }
.crank { width: 30px; font: 400 15px var(--display); color: var(--muted); text-align: center; }
.clan-create { margin-top: 12px; } .clan-create summary { display: inline-block; list-style: none; cursor: pointer; }
.clan-create summary::-webkit-details-marker { display: none; }
.clan-create form { margin-top: 10px; }
.acct-form label.mini { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; }
.acct-form label.mini input { width: 80px; flex: none; }
.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5,6,25,.55); padding: 16px; }
.sheet { width: min(320px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--line); animation: pop .15s; text-align: center; }
.sheet b { font: 400 20px var(--display); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.link-btn { background: none; }
.sheet .link-btn { align-self: center; }
.invite-pop { position: fixed; top: calc(var(--sat) + 60px); left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .2s; max-width: calc(100vw - 24px); }
.invite-pop div { display: flex; flex-direction: column; font-size: 14px; } .invite-pop small { color: var(--muted); }
.invite-pop .ico-big { font-size: 26px; }

/* ---------- chat ---------- */
.chat-btn { position: absolute; left: calc(var(--sal) + 92px); top: calc(var(--sat) + 62px); width: 46px; height: 46px; border-radius: 14px; background: rgba(8,10,38,.72); border: 2px solid var(--line); font-size: 22px; backdrop-filter: blur(6px); }
.chat-btn[hidden] { display: none; }
.chat-panel { position: fixed; z-index: 8; top: calc(var(--sat) + 8px); bottom: calc(var(--sab) + 8px); left: calc(var(--sal) + 8px); width: min(380px, calc(100vw - 16px)); display: flex; flex-direction: column; border-radius: 18px; background: rgba(20,22,58,.97); border: 2px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: slidein .2s; overflow: hidden; }
@keyframes slidein { from { transform: translateX(-30px); opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 8px; background: rgba(0,0,0,.25); }
.chat-head .tabs { flex: 1; margin: 0; }
.chat-list { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.cmsg { font-size: 14px; line-height: 1.35; word-wrap: break-word; user-select: text; -webkit-user-select: text; }
.cmsg.mine .cname { color: var(--gold); }
.cmsg.sys { color: var(--muted); font-style: italic; font-size: 13px; text-align: center; }
.cname { font-weight: 900; color: #8fc1ff; margin-right: 6px; padding: 0; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,.35); color: #fff; }
.chat-gate { padding: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--muted); text-align: center; }
.chat-err { margin: 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255,77,94,.2); color: #ffb3bb; font-size: 13px; font-weight: 800; }
.chat-rules { margin: 0; padding: 0 10px 8px; font-size: 11px; color: var(--muted); text-align: center; }
@media (orientation: portrait) { .chat-btn { top: auto; left: auto; right: calc(var(--sar) + 12px); bottom: calc(var(--sab) + 236px); } }

/* ---------- in-match additions ---------- */
.hud-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hud-mode { font: 800 10px var(--body); color: rgba(255,255,255,.75); letter-spacing: .04em; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.hud-score small { font: 900 9px var(--body); color: rgba(255,255,255,.7); letter-spacing: .06em; }
.hud-score:has(small:empty) small { display: none; }
.mode-br .pips, .mode-br .hud-score .pips { display: none; }
.storm-warn { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 8px 14px; border-radius: 12px; background: rgba(122,43,255,.85); font-weight: 900; font-size: 14px; display: none; pointer-events: none; animation: bounce .6s infinite; white-space: nowrap; }
.storm-warn.show { display: block; }
.ctag { font-size: .95em; }
.plate .ctag { font-size: 10px; }
.pcubes { color: var(--gold); }
.res-mode { font: 800 13px var(--body); color: var(--muted); margin-bottom: 2px; }
.res-score small { font-size: 16px; color: var(--muted); }
.brow .pl { display: inline-block; width: 20px; font-style: normal; color: var(--gold); font-weight: 900; }
@media (max-width: 520px) { .storm-warn { font-size: 12px; white-space: normal; width: 80%; text-align: center; } }
@media (orientation: portrait) {
  .pass-strip { bottom: calc(var(--sab) + 132px); }
  .hero-card { bottom: calc(var(--sab) + 198px); }
  .topbar { gap: 6px; }
  .topbar .chip { padding: 5px 8px; font-size: 14px; min-height: 36px; }
  .topbar .pinfo { display: none; }
  .chip.profile { padding: 3px; }
  .netchip { font-size: 0; gap: 0; padding: 5px 9px !important; }
  .netchip .dot { width: 11px; height: 11px; }
  .chip.res .plus { display: none; }
}
@media (orientation: portrait) {
  .topbar .netchip { font-size: 0; }
  .pass-strip { bottom: calc(var(--sab) + 150px); }
  .hero-card { bottom: calc(var(--sab) + 222px); }
  .play-btn { font-size: 34px; padding: 10px 40px; }
}
@media (orientation: portrait) and (max-height: 780px) {
  .sidenav { gap: 6px; } .sidenav button { height: 52px; width: 60px; } .sidenav .ni { font-size: 19px; }
  .hero-card { padding: 6px 12px; } .hc-name { font-size: 20px; }
}

/* ---------- What's New ---------- */
.modal.m-news { width: min(620px, 100%); }
.news-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.news-head b { font: 400 24px var(--display); color: var(--gold); }
.news-head small { color: var(--muted); font-weight: 800; }
.news-ver { padding: 2px 8px; border-radius: 8px; background: linear-gradient(#ff7be0, #9b4dff); font: 900 12px var(--body); }
.news-sec h3 { margin: 12px 0 4px; font-size: 17px; }
.news-sec ul { margin: 0; padding-left: 20px; color: #dfe3ff; font-size: 14px; line-height: 1.45; }
.news-sep { border: 0; border-top: 2px solid var(--line); margin: 16px 0; }
.center-row { justify-content: center; margin-top: 16px; }

/* ---- Super button editor (Settings → Move / resize Super button) ---- */
.ctl-editor { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at center, #1a1f5c, #070a24); touch-action: none; user-select: none; }
.ctl-zone { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; text-align: center; font: 400 18px var(--display); color: rgba(255,255,255,.35); }
.ctl-zone small { font: 500 12px system-ui, sans-serif; }
.ctl-zone.left { left: 0; width: 45%; border-right: 2px dashed rgba(255,255,255,.15); }
.ctl-zone.right { right: 0; width: 55%; }
.ctl-timer { position: absolute; top: calc(var(--sat, 0px) + 10px); left: 50%; transform: translateX(-50%); font: 400 22px var(--display); color: rgba(255,255,255,.4); }
.ctl-help { position: absolute; top: calc(var(--sat, 0px) + 48px); left: 50%; transform: translateX(-50%); width: min(90vw, 420px); text-align: center; color: #fff; font-size: 15px; }
.ctl-editor .super-btn.ctl-super { cursor: grab; z-index: 3; animation: none; box-shadow: 0 0 0 4px rgba(255,224,102,.35), 0 0 24px rgba(255,200,0,.6); }
.ctl-editor .super-btn.dragging { cursor: grabbing; transform: scale(1.08); }
.ctl-bar { position: absolute; left: 50%; top: calc(var(--sat, 0px) + 84px); transform: translateX(-50%); display: flex; gap: 6px; align-items: center; background: rgba(0,0,0,.45); padding: 8px 10px; border-radius: 14px; z-index: 2; color: #fff; font: 400 14px var(--display); }
.ctl-bar .btn.on { background: linear-gradient(#ffe066, #ffb000); color: #3a2200; }
.ctl-note { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 8px); text-align: center; color: rgba(255,255,255,.45); font-size: 12px; margin: 0; }

/* ---- Color vision modes ---- */
.emark { display: none; font-style: normal; color: var(--red); margin-right: 3px; font-size: 10px; }
.cb-marks .emark { display: inline; }
.cb-marks .plate.red .hpbar { border-color: var(--red); }
.cb-swatch { display: flex; gap: 8px; align-items: center; font-size: 12px; opacity: .85; margin-top: -4px; }
.cb-swatch i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 4px; }

/* hidden in a bush and healing faster */
.plate.bushregen .hpbar { box-shadow: 0 0 0 2px #7dff9e, 0 0 10px #7dff9e; }
.plate.bushregen .pname::after { content: ' 🌿'; }

.now-playing { margin: -6px 0 2px; font-size: 12px; color: #9fe6ff; opacity: .9; min-height: 1em; }

/* party members' name tags in the lobby */
.lobby-labels { position: fixed; inset: 0; pointer-events: none; }
.lobby-tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.lobby-tag b { font: 400 15px var(--display); color: #fff; }
.lobby-tag small { font: 800 11px var(--body); color: #9fe6ff; }

/* ---- 3D previews ---- */
.live-wrap { position: relative; height: 230px; margin: -2px -4px 10px; border-radius: 14px; overflow: hidden; background: #10123a; border: 2px solid rgba(255,255,255,.08); }
.live-wrap.big { height: 100%; min-height: 240px; margin: 0; }
.live3d { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.live3d:active { cursor: grabbing; }
.live-hint { position: absolute; right: 10px; bottom: 8px; font: 800 11px var(--body); color: rgba(255,255,255,.55); pointer-events: none; }
.live-name { position: absolute; left: 12px; top: 8px; z-index: 1; font: 400 17px var(--display); text-shadow: 0 2px 4px #000; pointer-events: none; }
.live-name small { font: 900 10px var(--body); margin-left: 4px; }
.sk-thumb { width: 54px; height: 61px; border-radius: 10px; object-fit: cover; background: rgba(0,0,0,.3); border: 2px solid var(--r); flex: none; opacity: .35; transition: opacity .25s; }
.sk-thumb.ready { opacity: 1; }
.si-art { height: auto; }
.si-thumb { width: 100%; max-width: 132px; aspect-ratio: 150 / 170; border-radius: 12px; object-fit: cover; background: rgba(0,0,0,.3); opacity: .35; transition: opacity .25s, transform .15s; }
.si-thumb.ready { opacity: 1; }
.shop-item { cursor: pointer; }
.shop-item:hover .si-thumb { transform: scale(1.04); }
.si-3d { position: absolute; top: 6px; left: 6px; font: 900 10px var(--body); padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.55); }
.skin-sheet { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: linear-gradient(var(--panel2), var(--panel)); border-radius: inherit; animation: pop .18s; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.sheet-body { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 14px; min-height: 0; }
.sheet-info { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sheet-info .rar { color: var(--r); font: 900 12px var(--body); letter-spacing: .1em; }
.sheet-info h2 { margin: 0; font: 400 30px var(--display); }
.sheet-info p { margin: 0; color: #dfe3ff; }
@media (orientation: portrait) {
  .sheet-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .live-wrap.big { min-height: 300px; }
}
.modal { position: relative; }

/* ---- Casual / Ranked ---- */
.queue-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(8,10,38,.72); border: 2px solid var(--line); }
.queue-tabs button { flex: 1; padding: 5px 8px; border-radius: 9px; font: 400 13px var(--display); color: var(--muted); }
.queue-tabs button.on { color: #fff; background: linear-gradient(#5aa2ff, #2f6fe0); }
.queue-tabs button.on[data-qt="ranked"] { color: #2a1600; background: linear-gradient(#ffe27a, #ffb21a); }
.mode-chip { position: relative; }
.mode-chip .rank-badge { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); }
.mode-chip .rk-mode { padding-left: 26px; }
.mode-chip .rank-badge ~ small { padding-left: 26px; }
.play-btn.ranked { background: linear-gradient(#c9a2ff, #8f4dff 50%, #6a2fd8); color: #fff; box-shadow: 0 6px 0 #45198f, 0 10px 24px rgba(143,77,255,.45), inset 0 2px 0 rgba(255,255,255,.5); text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.play-btn.ranked:active { box-shadow: 0 2px 0 #45198f; }
.play-btn.locked { filter: grayscale(.6) brightness(.8); animation: none; }

.rank-badge { --c: #cd8a52; position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), radial-gradient(var(--c), color-mix(in srgb, var(--c) 45%, #000)); border: 2px solid color-mix(in srgb, var(--c) 70%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); vertical-align: middle; flex: none; }
.rank-badge i { font-style: normal; font-size: 17px; line-height: 1; }
.rank-badge em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font: 900 9px/1 var(--body); font-style: normal; padding: 2px 4px; border-radius: 6px; background: #0b0e2e; color: var(--c); border: 1px solid var(--c); }
.rank-badge.placing { --c: #8a93c9; }
.rank-badge.sm { width: 22px; height: 22px; } .rank-badge.sm i { font-size: 12px; } .rank-badge.sm em { font-size: 7px; bottom: -5px; }
.rank-badge.md { width: 52px; height: 52px; } .rank-badge.md i { font-size: 26px; }
.rank-badge.xl { width: 92px; height: 92px; border-width: 3px; } .rank-badge.xl i { font-size: 46px; } .rank-badge.xl em { font-size: 13px; bottom: -9px; padding: 3px 7px; }

.ranked-top { display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.25); }
.rk-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rk-name { font: 400 28px var(--display); }
.rk-info small { color: var(--muted); font-weight: 800; }
.rk-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; } .rk-bar i { display: block; height: 100%; border-radius: inherit; }
.btn.big { display: block; width: 100%; margin: 10px 0 4px; font-size: 22px; padding: 12px; }
.tier-ladder { display: flex; flex-direction: column; gap: 6px; }
.tier-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 2px solid transparent; }
.tier-row b { font: 400 16px var(--display); color: var(--c); min-width: 80px; }
.tier-row small { color: var(--muted); font-weight: 700; }
.tier-row.me { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.rk-rules { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #dfe3ff; }
.res-ranked { display: flex; gap: 12px; align-items: center; margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: rgba(143,77,255,.16); border: 2px solid rgba(143,77,255,.45); text-align: left; }
.res-ranked.up { background: rgba(94,224,122,.14); border-color: rgba(94,224,122,.5); }
.res-ranked.down { background: rgba(255,77,94,.12); border-color: rgba(255,77,94,.45); }
.res-ranked > div { display: flex; flex-direction: column; gap: 2px; }
.rr-head { font: 400 17px var(--display); }
.rr-delta { font: 400 22px var(--display); color: #5ee07a; } .rr-delta.neg { color: #ff6b7a; }
.rr-note { color: #9fe6ff; font-weight: 800; } .rr-note.bad { color: #ff8a96; }
.hud-ranked { color: #ffd23f; }

/* ---- kill cam ---- */
.killcam { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.killcam::before, .killcam::after { content: ''; position: absolute; left: 0; right: 0; height: 9vh; background: #000; animation: kcbars .35s ease-out; }
.killcam::before { top: 0; } .killcam::after { bottom: 0; }
@keyframes kcbars { from { height: 0; } }
.kc-top { position: absolute; top: calc(9vh + 10px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 2px 4px #000; white-space: nowrap; }
.kc-top b { font: 400 24px var(--display); color: #ffd23f; letter-spacing: .04em; }
.kc-top span { font: 400 18px var(--display); }
.kc-top i { font-style: normal; }
.kc-skip { position: absolute; right: calc(var(--sar) + 16px); bottom: calc(9vh + 14px); pointer-events: auto; z-index: 2; }
.respawn small { display: block; font: 800 13px var(--body); color: #ffd0d6; margin-top: 2px; }
.si-thumb { display: block; height: 150px; width: 132px; max-width: 100%; }

/* Keep the PLAY area the same width in Casual and Ranked: the PLAY button sets the width,
   longer ranked text wraps onto a second line instead of stretching the panel. */
@media (orientation: landscape) {
  /* as wide as fits beside the centered Rumble Pass box (which is 34vw wide), up to 300px */
  .play-wrap { width: clamp(210px, calc(33vw - 30px), 300px); }
  .play-btn { white-space: nowrap; padding-left: 0; padding-right: 0; }
}
.mode-chip .rk-mode, .mode-chip small { white-space: normal; overflow-wrap: anywhere; }
.queue-tabs button { white-space: nowrap; }

/* ---- Rumble Drops ---- */
.chip.drops.has { border-color: #ffd23f; box-shadow: 0 0 12px rgba(255,210,63,.45); animation: bounce 1.6s infinite; }
.drop-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 4px; }
.drop-box { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #8f4dff, #3b1a7a 70%); box-shadow: 0 0 40px rgba(143,77,255,.6), inset 0 -8px 0 rgba(0,0,0,.25); }
.drop-box .db-body { font-size: 84px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.drop-box.empty { filter: grayscale(.8) brightness(.6); box-shadow: none; }
.drop-box:not(.empty) { animation: dropidle 2.4s ease-in-out infinite; }
.drop-box.shaking { animation: dropshake .12s infinite, dropglow 1.1s ease-in forwards; }
@keyframes dropidle { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes dropshake { 0% { transform: rotate(-7deg) scale(1.04); } 50% { transform: rotate(7deg) scale(1.08); } 100% { transform: rotate(-7deg) scale(1.04); } }
@keyframes dropglow { to { box-shadow: 0 0 90px 30px rgba(255,255,255,.9); background: radial-gradient(circle, #fff, #c9a2ff 70%); } }
.drop-reveal { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px; min-width: 240px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 45%, transparent), rgba(0,0,0,.25) 70%); border: 3px solid var(--c); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 70%, transparent); animation: reveal .5s cubic-bezier(.2,1.6,.4,1); text-align: center; }
@keyframes reveal { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.dr-rar { font: 900 13px var(--body); letter-spacing: .14em; color: var(--c); }
.drop-reveal > b { font: 400 24px var(--display); }
.drop-reveal small { color: #dfe3ff; font-weight: 700; }
.dr-big { font-size: 64px; line-height: 1; } .dr-big .ico { width: 64px; height: 64px; }
.dr-thumb { width: 130px; height: 147px; border-radius: 16px; object-fit: cover; border: 2px solid var(--c); }
.drop-count { font: 400 18px var(--display); } .drop-count b { color: #ffd23f; }
.row-btns.center { justify-content: center; }
.odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.odds div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.odds b { font: 400 22px var(--display); color: var(--c); } .odds span { font: 900 12px var(--body); } .odds small { font-size: 11px; color: var(--muted); font-weight: 700; }
@media (orientation: portrait) { .odds { grid-template-columns: repeat(2, 1fr); } }

/* ---- Ranked seasons ---- */
.season-box { margin: 12px 0 4px; padding: 12px; border-radius: 16px; background: rgba(255,200,61,.07); border: 2px solid rgba(255,200,61,.25); }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .sb-head b { font: 400 20px var(--display); color: #ffd23f; } .sb-head span { font-weight: 800; color: var(--muted); }
.sr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sr-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.2); border: 2px solid transparent; text-align: center; }
.sr-cell.me { border-color: var(--c); }
.sr-cell b { font: 400 14px var(--display); color: var(--c); } .sr-cell small { font-size: 10px; font-weight: 800; color: #dfe3ff; } .sr-cell .ico { width: 12px; height: 12px; }
.sr-item { color: #ffd23f !important; }
@media (orientation: portrait) { .sr-grid { grid-template-columns: repeat(3, 1fr); } }
.pill.season { background: rgba(255,200,61,.18); color: #ffd23f; }
.season-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.season-end h2 { margin: 6px 0 0; font: 400 26px var(--display); }
.se-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0; }
.se-rewards > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.se-item { flex-direction: column; } .se-item img { width: 84px; height: 95px; border-radius: 10px; object-fit: cover; }

/* ---- Invite a friend ---- */
.invite-hero { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,77,210,.18), rgba(61,224,255,.14)); border: 2px solid rgba(255,77,210,.35); }
.invite-hero > b { font: 400 20px var(--display); } .invite-hero small { color: #dfe3ff; font-weight: 700; }
.inv-rewards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.inv-rewards div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.25); }
.inv-rewards b { font: 400 14px var(--display); } .inv-rewards small { font-size: 10px; }
@media (orientation: portrait) { .inv-rewards { grid-template-columns: repeat(2, 1fr); } }
.inv-link { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 16px; background: rgba(0,0,0,.25); text-align: center; }
.inv-link > span { font-weight: 800; color: var(--muted); }
.inv-code { font: 400 34px var(--display); letter-spacing: .14em; color: #ffd23f; }
.inv-link small { word-break: break-all; }
.inv-me { padding: 10px 12px; border-radius: 12px; background: rgba(61,224,255,.1); border: 2px solid rgba(61,224,255,.35); margin-bottom: 8px; }
.inv-me.done { background: rgba(94,224,122,.12); border-color: rgba(94,224,122,.45); }
.inv-list { display: flex; flex-direction: column; gap: 6px; }
.inv-row { position: relative; display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); overflow: hidden; }
.inv-row i { position: absolute; left: 0; bottom: 0; height: 3px; background: #5ee07a; }
.inv-row span { font-weight: 800; color: var(--muted); } .inv-row.done span { color: #5ee07a; }

/* ---- kill cam clips ---- */
.clip-btn { display: block; margin: 8px auto 4px; background: linear-gradient(#ff7ae0, #c63db0); box-shadow: 0 4px 0 #7a1f6b; }
.clip-btn[disabled] { opacity: .7; }
.clip-sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(5,6,24,.75); padding: 16px; }
.clip-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(92vw, 720px); padding: 16px; border-radius: 20px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--line); animation: pop .2s; }
.clip-card > b { font: 400 20px var(--display); }
.clip-card video { width: 100%; max-height: 48vh; border-radius: 12px; background: #000; }

/* ---- events, emotes, mastery ---- */
.event-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,77,210,.22), rgba(255,200,61,.16)); border: 2px solid rgba(255,200,61,.45); }
.event-card.sel { border-color: #ffd23f; box-shadow: 0 0 16px rgba(255,210,63,.35); }
.ev-icon { font-size: 44px; }
.ev-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ev-info small { font: 900 11px var(--body); color: #ffd23f; letter-spacing: .06em; }
.ev-info b { font: 400 22px var(--display); } .ev-info span { font-size: 13px; color: #dfe3ff; } .ev-info em { font: 800 12px var(--body); font-style: normal; color: #5ee07a; }
@media (orientation: portrait) { .event-card { flex-wrap: wrap; } .event-card .btn { width: 100%; } }
.mode-card { position: relative; }
.feat { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1; font: 900 10px var(--body); padding: 2px 6px; border-radius: 8px; background: linear-gradient(#ff8a2a, #ff4d5e); color: #fff; }
.ev-tag { font: 900 10px var(--body); padding: 1px 6px; border-radius: 6px; background: #ff4dd2; color: #fff; vertical-align: middle; }
.ev-tag.hot { background: none; padding: 0; font-size: 13px; }
.hud-emote { position: absolute; top: calc(var(--sat) + 52px); left: calc(var(--sal) + 10px); width: 38px; height: 38px; border-radius: 12px; background: rgba(8,10,38,.7); font-size: 20px; z-index: 2; }
@media (max-width: 520px) { .hud-emote { top: calc(var(--sat) + 98px); width: 34px; height: 34px; } }
.emote-pick { position: absolute; top: calc(var(--sat) + 52px); left: calc(var(--sal) + 56px); z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(8,10,38,.92); border: 2px solid var(--line); max-width: 260px; }
.ep-emotes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } .ep-emotes button { font-size: 24px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.06); }
.ep-chat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; } .ep-chat button { font: 800 12px var(--body); padding: 6px; border-radius: 10px; background: rgba(61,224,255,.14); }
.bubble { align-self: center; margin-bottom: 2px; padding: 3px 9px; border-radius: 12px; background: #fff; color: #14163a; font: 900 12px var(--body); white-space: nowrap; animation: bubblein .25s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.bubble.big { font-size: 26px; padding: 2px 6px; background: rgba(255,255,255,.92); }
@keyframes bubblein { from { transform: scale(.3) translateY(10px); opacity: 0; } }
.ms-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 8px 0 4px; }
.ms-cell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 2px; border-radius: 10px; background: rgba(255,255,255,.05); opacity: .7; }
.ms-cell.got { opacity: 1; background: rgba(255,200,61,.15); border: 1px solid rgba(255,200,61,.5); }
.ms-cell b { font: 400 12px var(--display); } .ms-cell small { font-size: 10px; font-weight: 800; } .ms-cell em { font: 800 9px var(--body); color: var(--muted); font-style: normal; }
.ms-cell .ico { width: 11px; height: 11px; }
@media (orientation: portrait) { .ms-track { grid-template-columns: repeat(3, 1fr); } }
.res-mastery { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255,200,61,.08); text-align: left; }
.res-mastery > span { font-weight: 800; } .res-mastery small { color: var(--muted); font-weight: 800; }
.res-pose { position: relative; width: 150px; height: 170px; margin: -6px auto -4px; border-radius: 16px; overflow: hidden; }
.res-pose .live-hint { display: none; }
.event-card + .mode-grid { margin-top: 16px; row-gap: 14px; }
.hcard .tag.new { background: linear-gradient(#ff4dd2, #8f4dff); color: #fff; }

/* ---- Clan War ---- */
.war-box { margin: 12px 0; padding: 12px; border-radius: 16px; background: rgba(255,77,94,.08); border: 2px solid rgba(255,77,94,.3); }
.war-box .sb-head b { color: #ff8a96; }
.war-mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.war-mine div { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.25); }
.war-mine small { font-weight: 800; color: var(--muted); font-size: 11px; } .war-mine b { font: 400 22px var(--display); }
.war-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .war-top span { padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 700; }
.war-list { display: flex; flex-direction: column; gap: 4px; }
.war-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.war-row.me { background: rgba(255,200,61,.14); border: 1px solid rgba(255,200,61,.5); }
.war-row i { font-style: normal; font-weight: 900; } .war-row span { font-weight: 800; }
.inbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.push-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(61,224,255,.08); border: 2px solid rgba(61,224,255,.25); }
.pb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.push-box small { color: #dfe3ff; font-weight: 700; } .pb-prefs { display: flex; flex-direction: column; gap: 2px; }

/* Compact PLAY panel (Casual/Ranked switch, mode, PLAY) */
@media (orientation: landscape) {
  .play-wrap { width: clamp(190px, calc(28vw - 30px), 250px); gap: 5px; }
  .play-btn { font-size: 30px; padding-top: 8px; padding-bottom: 8px; border-radius: 16px; }
  .queue-tabs { padding: 2px; border-radius: 10px; }
  .queue-tabs button { padding: 3px 6px; font-size: 12px; border-radius: 8px; }
  .mode-chip { font-size: 12px; padding: 4px 8px; }
  .mode-chip small { font-size: 10px; }
  .mode-chip .rank-badge.sm { width: 18px; height: 18px; } .mode-chip .rank-badge.sm i { font-size: 10px; }
  .mode-chip .rk-mode, .mode-chip .rank-badge ~ small { padding-left: 20px; }
}
@media (max-height: 420px) and (orientation: landscape) { .play-btn { font-size: 26px; padding-top: 6px; padding-bottom: 6px; } }

/* ---------- 2.8: 3D pass rewards, holiday shop, trails + shot sounds ---------- */
.pcell { height: 116px; }
.pcell.has3d .rw-thumb { width: 50px; height: 56px; }
.pcell.has3d .rw3d > span:last-child { font-size: 10px; white-space: nowrap; }
.pcell.has3d .rw-any { display: inline; margin-left: 2px; }
@media (max-height: 460px) {
  .pcell { height: 84px; }
  .pcell.has3d .rw-thumb { width: 42px; height: 47px; }
  .pcell.has3d .rw3d > span:last-child { display: none; }       /* tap the picture to see its name in 3D */
}
.rw3d { flex-direction: column; gap: 2px; line-height: 1.1; }
.rw3d > span:last-child { font-size: 11px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.rw-tw { position: relative; display: inline-block; }
.rw-thumb { width: 54px; height: 62px; object-fit: cover; border-radius: 10px; border: 2px solid var(--r, #8a93c9); background: rgba(0,0,0,.3); opacity: .4; transition: opacity .25s; display: block; }
.rw-thumb.ready { opacity: 1; }
.rw-type { position: absolute; right: -6px; bottom: -4px; font-style: normal; font-size: 13px; filter: drop-shadow(0 1px 2px #000); }
.rw-any { display: block; font-style: normal; font-size: 9px; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.rw.big .rw-thumb { width: 104px; height: 118px; }
.rw.big.rw3d > span:last-child { font-size: 18px; max-width: 220px; }
.reward-pop .rw.big .rw-thumb { width: 130px; height: 148px; }
.tap3d { cursor: pointer; }
.pcell.tap3d:hover, .road-step.tap3d:hover { filter: brightness(1.12); }
.pcell .btn.xs, .pcell .pc-state { position: absolute; bottom: 4px; }
.pcell.has3d { justify-content: flex-start; padding-top: 6px; }
.pcell.has3d .btn.xs { bottom: 3px; }
.road-rw .rw-thumb { width: 44px; height: 50px; }
.road-rw .rw3d { flex-direction: row; gap: 8px; }
.holiday-box { margin: 8px 0 4px; padding: 10px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 2px solid var(--line); }
.holiday-box.live { border-color: rgba(255,138,31,.6); background: linear-gradient(rgba(255,138,31,.12), rgba(155,77,255,.08)); }
.holiday-box h3 { margin-top: 0; }
.hb-live { color: #ffb36b; }
.set-note { margin: 6px 0; font-weight: 700; }
.set-heroes { flex-wrap: wrap; margin-bottom: 8px; }
.si-play { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.si-play:active { transform: scale(.92); }
.floater.vent { color: #e3c8ff; font-size: 15px; }

/* 2.8.2: you're hidden in a bush (healing kicks in after 3 s out of combat) */
.plate.inbush .pname::after { content: ' 🌿'; opacity: .75; }

/* 2.8.2: shop jump bar + collapsible sections */
.shop-jump { position: sticky; top: -14px; z-index: 3; margin: -14px -16px 10px; padding: 10px 16px 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(#2a2f76 80%, rgba(42,47,118,0)); }
.shop-jump::-webkit-scrollbar { display: none; }
@media (max-height: 460px) { .shop-jump { top: -10px; margin: -10px -14px 8px; padding: 8px 14px 6px; } }
.sj-chip { flex: none; border: 2px solid var(--line); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 6px 12px; font: 800 13px var(--body); cursor: pointer; white-space: nowrap; }
.sj-chip.on { border-color: var(--gold); background: rgba(255,200,61,.16); }
.sj-chip.ghost { color: var(--muted); }
.shop-fold { margin: 8px 0; border-radius: 16px; background: rgba(255,255,255,.035); border: 2px solid var(--line); scroll-margin-top: 56px; }
.shop-fold.open { border-color: rgba(255,255,255,.2); }
.sf-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: #fff; cursor: pointer; text-align: left; }
.sf-head b { font: 400 19px var(--display); }
.sf-head small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sf-ico { font-size: 20px; }
.sf-arrow { font-style: normal; transition: transform .2s; transform: rotate(-90deg); opacity: .8; }
.shop-fold.open .sf-arrow { transform: none; }
.sf-body { display: none; padding: 0 12px 12px; }
.shop-fold.open .sf-body { display: block; }
.sf-body .holiday-box { margin: 0; border: 0; padding: 0; background: none; }
.hb-note { margin: 0 0 8px; }

/* 2.8.2: tutorial — lobby tour */
.coach-ov { position: fixed; inset: 0; z-index: 60; }
.coach-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(6,8,30,.72), 0 0 0 3px var(--gold), 0 0 24px rgba(255,200,61,.6); transition: all .3s ease; pointer-events: none; }
.coach-card { position: fixed; width: min(340px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 18px; background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: pop .2s; }
.coach-card.center { width: min(420px, calc(100vw - 24px)); text-align: center; }
.coach-card h3 { margin: 0 0 6px; font: 400 22px var(--display); }
.coach-card p { margin: 0 0 12px; line-height: 1.4; }
.coach-row { display: flex; align-items: center; gap: 8px; }
.coach-row .sp { flex: 1; }
.coach-row small { color: var(--muted); font-weight: 800; }
.coach-card.center .coach-row { justify-content: center; } .coach-card.center .sp { display: none; }
/* tutorial — in-match coach */
.coach-panel { position: absolute; top: calc(var(--sat) + 78px); left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 180px)); padding: 10px 14px; border-radius: 16px; background: rgba(14,16,48,.88); border: 2px solid var(--gold); color: #fff; z-index: 6; pointer-events: auto; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: border-color .2s, background .2s, opacity .3s; }
.coach-panel.pop { animation: pop .25s; }
.coach-panel.good { border-color: var(--green); background: rgba(20,70,40,.9); }
.coach-panel.out { opacity: 0; }
.cp-text { font-size: 15px; line-height: 1.35; }
.cp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); margin: 8px 0 2px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.cp-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cp-dots { flex: 1; display: flex; gap: 5px; }
.cp-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.cp-dots i.done { background: var(--green); } .cp-dots i.on { background: var(--gold); }
.cp-btn { border: 0; border-radius: 10px; padding: 6px 12px; font: 800 13px var(--body); background: var(--gold); color: #1b1446; cursor: pointer; }
.cp-btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.game-ui.tutorial .ctrl-hint { display: none; }
@media (max-height: 460px) {
  .coach-panel { top: calc(var(--sat) + 58px); width: min(400px, 52vw); padding: 6px 10px; border-radius: 12px; }
  .cp-text { font-size: 12px; line-height: 1.3; } .cp-row { margin-top: 4px; } .cp-bar { margin: 5px 0 0; height: 4px; }
  .cp-btn { padding: 4px 9px; font-size: 11px; } .cp-dots i { width: 6px; height: 6px; }
}
@media (orientation: portrait) { .coach-panel { width: calc(100vw - 24px); top: calc(var(--sat) + 96px); } }

/* 2.8.2: rotate-your-phone screen */
.rotate-tip { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 35%, #2b3078, #14163a 70%); }
.rotate-tip[hidden] { display: none; }
.rotate-tip h2 { margin: 8px 0 0; font: 400 28px var(--display); }
.rotate-tip p { margin: 0 0 10px; max-width: 320px; color: #cfd3ff; line-height: 1.4; }
.rt-phone { width: 64px; height: 108px; border: 5px solid #fff; border-radius: 14px; position: relative; animation: rtturn 2.4s ease-in-out infinite; box-shadow: 0 0 24px rgba(61,224,255,.5); }
.rt-phone i { position: absolute; left: 50%; bottom: 6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #fff; }
@keyframes rtturn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* 2.8.3: whoever has the flag gets a 🚩 on their name tag */
.plate.carrier .pname::before { content: '🚩 '; }
.plate.carrier .pname { animation: carrierBlink 0.9s ease-in-out infinite; }
@keyframes carrierBlink { 50% { opacity: .65; } }

/* 2.8.3: online/offline dot on the profile picture (replaces the Online chip) */
.chip.profile { position: relative; }
.pdot { position: absolute; left: 28px; top: 28px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #14163a; background: var(--muted); pointer-events: none; }
.pdot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.pdot.off { background: #ff8a96; }
@media (orientation: portrait) { .pdot { left: 26px; top: 26px; } }
/* 2.8.3: a narrower Rumble Pass bar, centered at the bottom */
.pass-strip { width: clamp(210px, 25vw, 270px); padding: 6px 10px; }
@media (orientation: portrait) { .pass-strip { width: min(290px, calc(100vw - 24px)); left: 50%; right: auto; transform: translateX(-50%); } }

/* 2.8.3: save-your-progress prompt */
.acct-prompt { display: grid; place-items: center; background: rgba(6,8,30,.72); }
.acct-prompt .coach-card { position: static; }
.ap-perks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; font-weight: 800; }
.acct-prompt .fine { margin: 10px 0 0; }

/* 2.8.5: emote animations */
.bubble.big { position: relative; }
.bubble.big.r-rare { box-shadow: 0 0 0 2px #4fc3ff, 0 3px 8px rgba(0,0,0,.35); }
.bubble.big.r-epic { box-shadow: 0 0 0 2px #c36bff, 0 0 12px #c36bff; }
.bubble.big.r-legendary { box-shadow: 0 0 0 3px #ffc83d, 0 0 16px #ffc83d; }
.bubble.fx-bounce { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emBounce .5s ease-in-out .25s 4; }
.bubble.fx-spin { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emSpin .8s ease-in-out .25s 2; }
.bubble.fx-shake { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emShake .12s linear .25s 10; }
.bubble.fx-pulse { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emPulse .6s ease-in-out .25s 3; }
.bubble.fx-float { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emFloat 1.9s ease-out .25s 1 forwards; }
.bubble.fx-rain, .bubble.fx-burst { animation: bubblein .25s cubic-bezier(.2,1.6,.4,1), emPulse .5s ease-in-out .25s 3; }
@keyframes emBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes emSpin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes emShake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-6deg); } 75% { transform: translateX(3px) rotate(6deg); } }
@keyframes emPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes emFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-18px); } }
.erain { position: absolute; top: -34px; pointer-events: none; animation: emRain 1.1s ease-in forwards; opacity: 0; }
@keyframes emRain { 0% { transform: translateY(-14px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(46px) rotate(200deg); opacity: 0; } }
.ep-emotes { grid-template-columns: repeat(4, 1fr); }
.ep-emotes button.r-rare { box-shadow: inset 0 0 0 2px rgba(79,195,255,.6); }
.ep-emotes button.r-epic { box-shadow: inset 0 0 0 2px rgba(195,107,255,.7); }
.ep-emotes button.r-legendary { box-shadow: inset 0 0 0 2px rgba(255,200,61,.8); }
.ep-chat { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* 2.8.5: emote shop + editor */
.em-art { height: 132px !important; display: grid; place-items: center; position: relative; border-radius: 12px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--r) 35%, transparent), rgba(0,0,0,.25) 70%); overflow: hidden; cursor: pointer; }
.em-big { font-size: 64px; line-height: 1; display: inline-block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.em-big.fx-pop { animation: bubblein .35s cubic-bezier(.2,1.6,.4,1); }
.em-big.fx-bounce { animation: emBounce .5s ease-in-out 3; }
.em-big.fx-spin { animation: emSpin .8s ease-in-out 2; }
.em-big.fx-shake { animation: emShake .12s linear 8; }
.em-big.fx-pulse, .em-big.fx-rain, .em-big.fx-burst { animation: emPulse .5s ease-in-out 3; }
.em-big.fx-float { animation: emFloat 1.2s ease-out 1; }
.em-art .erain { top: 4px; font-size: 18px; }
.eburst { position: absolute; left: 50%; top: 50%; color: var(--r, #ffc83d); font-size: 18px; pointer-events: none; animation: emBurst .9s ease-out forwards; }
@keyframes emBurst { 0% { transform: translate(-50%,-50%) rotate(var(--a)) translateY(0) scale(.4); opacity: 1; } 100% { transform: translate(-50%,-50%) rotate(var(--a)) translateY(-56px) scale(1.2); opacity: 0; } }
.rw-emote { display: grid; place-items: center; width: 50px; height: 56px; border-radius: 10px; border: 2px solid var(--r); background: rgba(0,0,0,.3); font-size: 30px; }
.rw.big .rw-emote { width: 104px; height: 118px; font-size: 64px; }
.dr-emote { font-size: 72px; line-height: 1.1; }
.em-slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.em-slot { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 2px dashed var(--line); color: var(--muted); font-size: 22px; background: rgba(0,0,0,.2); position: relative; }
.em-slot.full { border: 2px solid var(--r); font-size: 28px; cursor: pointer; color: #fff; }
.em-slot.full i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ff4d5e; font: 900 11px/18px var(--body); font-style: normal; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.em-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.em-tile.on { border-color: var(--r); background: color-mix(in srgb, var(--r) 18%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--r) 50%, transparent); }
.em-tile.locked { opacity: .5; }
.em-ico { font-size: 30px; line-height: 1.1; }
.em-tile small { font-weight: 800; font-size: 11px; }
.em-how { font-style: normal; font-size: 9px; color: var(--muted); text-align: center; }
.em-chat { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 2px solid var(--line); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 6px 12px; font: 800 13px var(--body); cursor: pointer; }
.chip-btn.on { border-color: var(--green); background: rgba(70,224,138,.18); }
@media (max-height: 460px) { .em-slots { grid-template-columns: repeat(8, minmax(0, 46px)); } }
/* 2.8.5: sticker emotes */
img.stk { opacity: .3; transition: opacity .2s; } img.stk.ready { opacity: 1; }
.em-art img.em-big { width: 118px; height: 118px; font-size: 0; }
.stk-tag { position: absolute; top: 6px; left: 6px; font: 900 9px var(--body); letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: linear-gradient(90deg, #ff4dd2, #3de0ff); color: #fff; }
.em-ico.stk { width: 54px; height: 54px; }
.em-slot-art.stk { width: 100%; height: 100%; padding: 3px; }
.em-slot.full span.em-slot-art { font-size: 28px; }
.rw-stk { width: 100%; height: 100%; }
.dr-stk { width: 150px; height: 150px; }
.ep-stk { width: 34px; height: 34px; display: block; }
.ep-emotes button { display: grid; place-items: center; min-height: 44px; }
.bubble.sticker { padding: 0; background: none; box-shadow: none !important; }
.bubble.sticker img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
/* 2.8.5: lobby dance button */
.dance-btn { position: absolute; left: calc(var(--sal) + 146px); top: calc(var(--sat) + 62px); width: 46px; height: 46px; border-radius: 14px; background: rgba(8,10,38,.72); border: 2px solid var(--line); font-size: 22px; backdrop-filter: blur(6px); cursor: pointer; }
.dance-pick { position: absolute; left: calc(var(--sal) + 92px); top: calc(var(--sat) + 114px); z-index: 4; width: min(300px, calc(100vw - 110px)); padding: 10px; border-radius: 16px; background: rgba(8,10,38,.94); border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.dance-pick[hidden] { display: none; }
.dance-pick b { font: 400 17px var(--display); }
.dp-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; max-height: 180px; overflow: auto; }
.dp-list button { border: 2px solid var(--r); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 6px 11px; font: 800 12px var(--body); cursor: pointer; }
.dp-list button i { font-style: normal; }
@media (orientation: portrait) {
  .dance-btn { top: auto; left: auto; right: calc(var(--sar) + 12px); bottom: calc(var(--sab) + 290px); }
  .dance-pick { top: auto; left: auto; right: calc(var(--sar) + 12px); bottom: calc(var(--sab) + 342px); }
}

/* ---- 2.9: age screen, Kid Mode, legal links, delete account ---- */
.age-gate { z-index: 80; }
.age-row { display: flex; gap: 8px; justify-content: center; margin: 12px 0 14px; }
.age-row select { flex: 1; max-width: 180px; min-height: 44px; padding: 8px 10px; border-radius: 12px; background: rgba(8,10,38,.85); color: inherit; border: 2px solid var(--line); font: inherit; }
.age-gate .btn[disabled] { opacity: .45; }
.age-gate .fine a, .legal-box a, .acct .fine a { color: var(--gold); }
.kid-box { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(70,224,138,.1); border: 1px dashed var(--green); }
.kid-box small { color: var(--muted); font-size: 12.5px; }
.kid-name { display: flex; align-items: center; gap: 10px; }
.kid-name b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.legal-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.link-btn.danger { color: var(--red); }
.del-form { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; background: rgba(255,77,94,.08); border: 1px solid var(--red); }
.del-form small { color: var(--muted); }
.del-form input { min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: rgba(8,10,38,.85); color: inherit; font: inherit; }
.age-gate { display: grid; place-items: center; background: rgba(6,8,30,.86); }
.age-gate .coach-card { position: static; }
.age-gate h3 { margin: 0 0 4px; }
.age-gate .fine { margin: 10px 0 0; }
