/* BAGWORK base styles (the street identity lives in street.css) */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--base); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
body.in-game { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.money, .tnum { font-variant-numeric: tabular-nums; }
.money { color: var(--gold); font-family: var(--display); letter-spacing: .3px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

/* ---------- top bar ---------- */
#pad { min-height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(14px, 3vw, 32px); position: relative; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.logo span { text-shadow: 0 0 18px rgba(59, 232, 255, .45); }
.top-right { display: flex; align-items: center; gap: 14px; }
.music-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.music-btn:hover { border-color: var(--cyan); } .music-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.music-btn .slash { display: none; } .music-btn[aria-pressed="false"] { color: var(--muted); } .music-btn[aria-pressed="false"] .slash { display: inline; }
@media (max-width: 640px) { .music-btn span { display: none; } .music-btn { padding: 0; width: 40px; justify-content: center; } }
.wallet { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 8px 6px 12px; border-radius: 999px; }
.wallet .money { font-size: 22px; line-height: 1; }
.refill { background: var(--raised); border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.refill:hover { background: #2a3760; }
.refill .short { display: none; }
.logo { white-space: nowrap; }
.me { position: relative; display: flex; align-items: center; gap: 10px; }
.xp { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.xp i { display: block; width: 74px; height: 6px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.xp b { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 4px; transition: width .5s; }
.avatar { position: relative; width: 56px; height: 56px; padding: 0; border: 0; background: none; border-radius: 50%; }
.avatar .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.avatar .track { fill: none; stroke: var(--raised); stroke-width: 4; }
.avatar .prog { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s; }
.avatar canvas { position: absolute; inset: 7px; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); }
.avatar em { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-family: var(--display); font-size: 13px; background: var(--base); border: 2px solid var(--cyan); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 4px; }
.menu { position: absolute; top: 64px; right: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); z-index: 20; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 9px; font-weight: 500; }
.menu button:hover { background: rgba(59, 232, 255, .12); }

/* ---------- hero ---------- */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 4px clamp(12px, 3vw, 28px) 40px; }
.hero {
  position: relative; overflow: hidden; border-radius: 30px 30px 10px 10px; min-height: 520px; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 100%, #7a2a8e 0%, #3b1c70 38%, #1f1342 78%);
  display: flex; align-items: center; padding: clamp(22px, 4vw, 52px); padding-bottom: 120px;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 56px; z-index: 2; pointer-events: none; }
.skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 16, 32, .92) 0%, rgba(11, 16, 32, .72) 38%, rgba(11, 16, 32, 0) 72%); }
.hero-copy { position: relative; z-index: 3; max-width: 470px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--cyan); border: 1.5px solid rgba(59, 232, 255, .55); border-radius: 999px; padding: 3px 11px; margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 9vw, 80px); line-height: .95; letter-spacing: .5px; margin-bottom: 14px; text-shadow: 0 4px 0 #05070f; }
.lede { color: #dcdbe6; font-size: 18px; max-width: 420px; margin-bottom: 24px; }
.chips { display: flex; gap: 14px; margin-bottom: 22px; }
.chip {
  position: relative; width: 92px; padding: 0; background: none; border: 0; text-align: center; color: var(--text);
}
.chip .disc {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%;
  font-family: var(--display); font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 50% 50%, #2c1b55 0 54%, transparent 55%), conic-gradient(var(--gold) 0 12.5%, #4a3280 0 25%, var(--gold) 0 37.5%, #4a3280 0 50%, var(--gold) 0 62.5%, #4a3280 0 75%, var(--gold) 0 87.5%, #4a3280 0);
  box-shadow: 0 5px 0 #05070f; transition: transform .15s, box-shadow .15s;
  outline: 0;
}
.chip .disc::after { content: ""; position: absolute; width: 66px; height: 66px; border-radius: 50%; border: 2px dashed rgba(255, 200, 61, .6); pointer-events: none; }
.chip small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.chip:hover .disc { transform: translateY(-3px); }
.chip[aria-checked="true"] .disc { transform: translateY(-5px); box-shadow: 0 8px 0 #05070f, 0 0 0 4px var(--cyan), 0 0 26px rgba(59, 232, 255, .55); }
.chip[aria-checked="true"] small { color: var(--cyan); }
.chip:focus-visible .disc { box-shadow: 0 5px 0 #05070f, 0 0 0 4px var(--cyan); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* .play / .ghost look: see tokens.css (one button family for the whole site) */
.play[disabled] { opacity: .5; cursor: not-allowed; }
.ghost.danger { border-color: rgba(255, 77, 109, .7); color: var(--danger); }
.ghost.danger:hover { background: rgba(255, 77, 109, .12); }
.under { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.nick input { width: 140px; background: rgba(11, 16, 32, .7); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.nick input:focus-visible { outline-offset: 1px; }

.bulb { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- strip ---------- */
.strip { margin-top: 26px; }
.strip h2, .games h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 12px; }
.strip ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.strip li { flex: 0 0 auto; display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; background: var(--surface); border-radius: 12px 12px 12px 3px; font-size: 14px; }
.strip li b.money { font-size: 19px; }
.strip li .win { color: var(--cyan); font-size: 12.5px; font-weight: 600; }
.strip li .t { color: var(--muted); font-size: 12px; }

/* ---------- games grid ---------- */
.games { margin-top: 34px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { position: relative; grid-column: span 3; border-radius: 6px 22px 6px 22px; background: var(--surface); overflow: hidden; opacity: .66; border: 1px solid var(--line); }
.tile.wide { grid-column: span 6; }
.tile.wide:nth-child(2) { border-radius: 22px 6px 22px 6px; }
.tile:nth-child(5) { border-radius: 22px 6px 22px 6px; }
.tile .artbox { display: block; }
.tile svg.art { display: block; width: 100%; height: 124px; }
.tile.wide svg.art { height: 160px; }
.tile .meta { padding: 12px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 20px; }
.tile .soon { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(14px, 3vw, 32px) 26px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; font-size: 13px; }
.link:hover { color: var(--text); }

/* ---------- dialogs ---------- */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 22px; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
dialog::backdrop { background: rgba(10, 5, 24, .82); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.x { background: var(--raised); border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
dialog h3 { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--muted); margin: 18px 0 8px; }
.skin-preview { position: relative; border-radius: 18px; overflow: hidden; background: #0a0e1c; }
.skin-preview canvas { display: block; width: 100%; height: auto; }
.sp-info { position: relative; padding: 10px 14px 0; display: flex; flex-direction: column; }
.skin-preview { display: flex; flex-direction: column-reverse; }
.sp-info b { font-family: var(--display); font-weight: 400; font-size: 24px; }
.sp-info span { font-size: 13px; color: var(--muted); }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.skin { position: relative; background: var(--raised); border: 2px solid transparent; border-radius: 12px; padding: 4px 4px 6px; text-align: center; font-size: 12.5px; font-weight: 500; }
.skin canvas { display: block; width: 100%; height: 40px; }
.skin[aria-selected="true"] { border-color: var(--cyan); background: #3a2870; }
.skin.locked canvas { opacity: .8; }
.skin.locked { background: rgba(51, 33, 92, .55); }
.skin .lock { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.skin small { display: block; color: var(--muted); font-size: 11.5px; }
.acc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.acc { background: var(--raised); border: 2px solid transparent; border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 14px; }
.acc[aria-selected="true"] { border-color: var(--cyan); }
.acc.locked { opacity: .5; }
.dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.set-form { display: grid; gap: 12px; margin: 14px 0; }
.pref-grid { display: grid; gap: 10px; }
.pref-grid label, .pref-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; }
.pref-row { grid-template-columns: 92px 1fr auto; }
.pref-grid output { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; font-size: 13px; }
.pref-grid input[type=range] { width: 100%; accent-color: var(--gold); }
.pref-row select { background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); min-width: 0; }
.pref-check { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; font-size: 14px; }
.pref-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.pref-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.ghost.small { padding: 6px 12px; font-size: 13px; }
.set-form label { display: grid; gap: 4px; font-weight: 500; font-size: 14px; }
.set-form input, .set-form select { background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); }
.set-form small { color: var(--cyan); font-size: 12.5px; min-height: 0; }
.today { background: var(--base); border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.today b { color: var(--gold); font-variant-numeric: tabular-nums; }
.excl { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.excl p { font-size: 13px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 11px 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toastIn .25s ease-out; }
.toast.err { border-left-color: var(--danger); }
.toast.stuck { pointer-events: auto; display: grid; gap: 8px; } .toast.stuck .toast-btns { display: flex; gap: 8px; } .toast.stuck small { color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
#conn { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--danger); color: #fff; text-align: center; font-weight: 600; padding: 6px; }

/* ---------- game ---------- */
#game { position: fixed; inset: 0; background: #0b1020; touch-action: none; user-select: none; -webkit-user-select: none; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#hud { position: absolute; inset: 0; pointer-events: none; }
.hud-left { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 14px; }
#hm.warn { color: #ff8fb0; }
#rleave { margin-top: 12px; pointer-events: auto; }
.hv-label { font-size: 12.5px; color: var(--muted); font-weight: 500; text-shadow: 0 1px 3px #000; }
.hv { font-family: var(--display); font-size: clamp(40px, 7vw, 58px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(5, 7, 15, .85), 0 0 22px rgba(255, 200, 61, .35); }
#hud.practice .hv { color: var(--text); text-shadow: 0 3px 0 rgba(5, 7, 15, .85); }
.hm { font-size: 13.5px; color: #dcdbe6; text-shadow: 0 1px 3px #000; font-weight: 500; }
#feed { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; display: grid; gap: 3px; max-width: 260px; }
#feed li { background: rgba(11, 16, 32, .7); padding: 3px 9px; border-radius: 8px; animation: toastIn .2s; }
#feed li.me { border-left: 3px solid var(--cyan); }
#board { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; list-style: none; margin: 0; padding: 8px; width: 214px; background: rgba(11, 16, 32, .72); border-radius: 14px 4px 14px 14px; font-size: 13.5px; }
#board li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 2.5px 6px; border-radius: 6px; align-items: baseline; }
#board li i { font-style: normal; color: var(--muted); font-size: 12px; }
#board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#board li b { font-weight: 600; font-variant-numeric: tabular-nums; }
#board li b.money { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
#board li b.pts { color: var(--muted); }
#board li.me { background: rgba(59, 232, 255, .16); box-shadow: inset 3px 0 0 var(--cyan); }
#board li.gap { display: block; text-align: center; color: var(--muted); padding: 0; line-height: .6; }
#mini { position: absolute; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: 132px; height: 132px; }
#banner { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); text-align: center; font-family: var(--display); opacity: 0; white-space: nowrap; }
#banner b { display: block; font-weight: 400; font-size: 30px; color: var(--text); text-shadow: 0 3px 0 #05070f; }
#banner.big b { font-size: 48px; color: var(--gold); }
#banner span { display: block; font-family: var(--body); font-size: 15px; color: #dcdbe6; text-shadow: 0 1px 3px #000; }
#banner.show { animation: banner 1.6s ease-out; }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.12); } 22% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }

@keyframes pulseCoin { to { transform: scale(1.18); } }
#boostbtn, #joy, .roundbtn { display: none; }
.roundbtn { position: absolute; left: 14px; bottom: max(18px, env(safe-area-inset-bottom)); width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 16, 32, .72); border: 0; color: var(--text); pointer-events: auto; place-items: center; }
#muteBtn { display: grid; }
#joy { position: fixed; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(244, 238, 255, .08); border: 2px solid rgba(244, 238, 255, .25); }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(59, 232, 255, .55); border: 2px solid var(--cyan); }
body.touch #boostbtn { display: grid; position: absolute; right: 22px; bottom: max(124px, calc(env(safe-area-inset-bottom) + 112px)); width: 78px; height: 78px; border-radius: 50%; place-items: center; background: rgba(11, 16, 32, .78); border: 3px solid var(--cyan); pointer-events: auto; touch-action: none; }
body.touch body.touch body.touch #muteBtn { display: none; }
@media (pointer: coarse) {
  #boostbtn { display: grid; position: absolute; right: 22px; bottom: max(124px, calc(env(safe-area-inset-bottom) + 112px)); width: 78px; height: 78px; border-radius: 50%; place-items: center; background: rgba(11, 16, 32, .78); border: 3px solid var(--cyan); pointer-events: auto; touch-action: none; }
      #muteBtn { display: none; }
}

@keyframes pop { from { transform: scale(1.6); opacity: .2; } to { transform: scale(1); opacity: 1; } }
#dbg { position: absolute; left: 14px; top: 150px; margin: 0; padding: 8px 10px; background: rgba(0, 0, 0, .7); color: #7CFFB2; font: 12px/1.35 ui-monospace, Consolas, monospace; border-radius: 8px; z-index: 30; }

/* end screen */
#end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 11, 24, .88); padding: 12px; overflow: auto; animation: toastIn .3s; }
.end-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px 8px 26px 8px; padding: 26px 24px 22px; text-align: center; }
.end-card h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.end-card h2.bad { color: var(--danger); }
.end-card .big { font-family: var(--display); font-size: 64px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.end-card .big.money { color: var(--gold); }
.end-card .sub { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 14px; }
.stats div { background: var(--base); border-radius: 12px; padding: 9px 4px; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b.money { color: var(--gold); }
.xpline { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.xpline b { color: var(--cyan); }
.xpbar { height: 10px; border-radius: 6px; background: var(--base); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 1s ease-out; border-radius: 6px; }
.notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; text-align: left; }
.notes li { background: var(--raised); border-radius: 10px; padding: 7px 11px; }
.notes li b { color: var(--cyan); }
.end-actions { display: grid; gap: 10px; margin-top: 20px; }
.end-actions .play { width: 100%; }
.end-actions .ghost { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.wide svg.art { height: 124px; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 16, 32, .78), rgba(11, 16, 32, .9)); }
  #heroCanvas { opacity: .55; }
}
@media (max-width: 560px) {
  .top { padding: 10px 12px; gap: 6px; }
  .logo { font-size: 18px; gap: 6px; }
  .logo svg { width: 26px; height: 26px; }
  .top-right { gap: 8px; min-width: 0; }
  .wallet { padding: 4px 5px 4px 8px; gap: 5px; }
  .wallet > svg { width: 18px; height: 18px; }
  .wallet .money { font-size: 17px; }
  .refill { font-size: 12px; padding: 6px 9px; white-space: nowrap; }
  .refill .long { display: none; }
  .refill .short { display: inline; }
  .xp { display: none; }
  .play { white-space: nowrap; }
  .avatar { width: 48px; height: 48px; }
  .avatar canvas { inset: 6px; width: 36px; height: 36px; }
  .hero { min-height: 0; border-radius: 22px 22px 8px 8px; padding: 22px 16px 120px; align-items: flex-start; }
  .lede { font-size: 16px; margin-bottom: 18px; }
  .chips { gap: 8px; justify-content: space-between; }
  .chip { width: 30%; }
  .play { flex: 1; }
  .cta .ghost { flex: 1; }
  .grid { gap: 10px; }
  .tile svg.art { height: 92px; }
  .tile .meta { flex-direction: column; align-items: flex-start; padding: 10px 12px 12px; }
  .tile h3 { font-size: 17px; }
  #board { width: 150px; font-size: 12px; padding: 5px; }
  #board li:nth-child(n+7) { display: none; }
  #board li.me { display: grid !important; }
  #mini { width: 96px; height: 96px; right: 10px; bottom: auto; top: 188px; }
  .hv-label { font-size: 11px; }
  .skin-grid { grid-template-columns: repeat(3, 1fr); }
  .stats b { font-size: 19px; }
  .end-card .big { font-size: 54px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ====================== Blockside ====================== */
.tile.bs-tile { grid-column: 1 / -1; opacity: 1; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; border-radius: 26px 8px 26px 8px; border: 1px solid rgba(255, 200, 61, .35); background: linear-gradient(135deg, #2b1a58, #141c33 60%); }
.bs-art { position: relative; min-height: 280px; overflow: hidden; background: #2b2060; }
.bs-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-new { position: absolute; top: 14px; left: 14px; background: var(--gold); color: #3a2400; font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 3px 11px; }
.bs-body { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.bs-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bs-title h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1; text-shadow: 0 3px 0 #05070f; }
.bs-title .badge { margin: 0; }
.bs-lede { color: #dcdbe6; max-width: 560px; }
.bs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bs-seg button { text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 14px 4px 14px 4px; padding: 12px 14px; color: var(--text); display: grid; gap: 3px; }
.bs-seg button b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.bs-seg button span { font-size: 13.5px; color: #dcdbe6; }
.bs-seg button small { color: var(--muted); font-size: 12px; }
.bs-seg.one { grid-template-columns: 1fr; } .bs-mode-card { text-align: left; background: var(--surface); border: 2px solid var(--cyan); border-radius: 14px 4px 14px 4px; padding: 12px 14px; display: grid; gap: 3px; box-shadow: 0 0 0 3px rgba(59, 232, 255, .15); }
.bs-mode-card b { font-family: var(--display); font-weight: 400; font-size: 21px; } .bs-mode-card span { font-size: 13.5px; color: #dcdbe6; } .bs-mode-card small { color: var(--muted); font-size: 12px; }
.bs-seg button[aria-checked="true"] { border-color: var(--cyan); background: #1f2a4a; box-shadow: 0 0 0 3px rgba(59, 232, 255, .18); }
.bs-seg button:hover { border-color: rgba(59, 232, 255, .6); }
.bs-chips { display: flex; gap: 12px; }
.bs-chips .chip { width: 76px; }
.bs-chips .chip .disc { width: 66px; height: 66px; font-size: 24px; }
.bs-chips .chip .disc::after { width: 50px; height: 50px; }
.bs-map { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bs-map select { background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); }
@media (max-width: 860px) { .tile.bs-tile { grid-template-columns: 1fr; } .bs-art { min-height: 170px; } .bs-seg { grid-template-columns: 1fr; } }

body.in-bs { overflow: hidden; }
body.in-bs #pad { display: none; }
#bs { position: fixed; inset: 0; z-index: 50; background: #0b1020; user-select: none; -webkit-user-select: none; }
#bs[hidden] { display: none; }
#bsCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.bs-hudwrap { position: absolute; inset: 0; pointer-events: none; font-family: var(--body); --bs-spread: 8px; }
.bs-hudwrap [hidden] { display: none !important; }
.bs-vignette { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 160px 40px rgba(255, 77, 109, .0); }
.bs-vignette.hit { animation: bsHit .7s ease-out; }
.bs-vignette.zone { animation: bsZone .8s ease-out; }
@keyframes bsHit { 0% { opacity: 1; box-shadow: inset 0 0 180px 50px rgba(255, 40, 70, .75); } 100% { opacity: 0; box-shadow: inset 0 0 180px 50px rgba(255, 40, 70, 0); } }
@keyframes bsZone { 0% { opacity: 1; box-shadow: inset 0 0 200px 60px rgba(90, 40, 255, .6); } 100% { opacity: 0; } }
.bs-cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity .1s; }
.bs-cross i { position: absolute; background: #f4f1e8; box-shadow: 0 0 0 1px rgba(5, 7, 15, .7); }
.bs-cross i:nth-child(1) { width: 2px; height: 9px; left: -1px; top: calc(-9px - var(--bs-spread)); }
.bs-cross i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: var(--bs-spread); }
.bs-cross i:nth-child(3) { width: 9px; height: 2px; top: -1px; left: calc(-9px - var(--bs-spread)); }
.bs-cross i:nth-child(4) { width: 9px; height: 2px; top: -1px; left: var(--bs-spread); }
.bs-hitm { position: absolute; left: 50%; top: 50%; opacity: 0; }
.bs-hitm i { position: absolute; width: 11px; height: 2.5px; background: #fff; }
.bs-hitm i:nth-child(1) { transform: translate(-17px, -17px) rotate(45deg); } .bs-hitm i:nth-child(2) { transform: translate(6px, -17px) rotate(-45deg); }
.bs-hitm i:nth-child(3) { transform: translate(-17px, 14px) rotate(-45deg); } .bs-hitm i:nth-child(4) { transform: translate(6px, 14px) rotate(45deg); }
.bs-hitm.on { animation: bsHm .28s ease-out; } .bs-hitm.head i { background: var(--danger); } .bs-hitm.kill i { background: var(--gold); width: 18px; height: 3.5px; } .bs-hitm.pred { filter: opacity(.45); }
.bs-hitm.head:not(.kill) i:nth-child(1), .bs-hitm.head:not(.kill) i:nth-child(4) { width: 14px; }
@keyframes bsHm { 0% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1); } }
.bs-dmgdir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.bs-dd { position: absolute; left: -90px; top: -150px; width: 180px; height: 150px; transform-origin: 90px 150px; pointer-events: none; animation: bsDd 1.2s ease-out forwards; }
.bs-dd::before { content: ""; position: absolute; left: 50px; top: 0; width: 80px; height: 22px; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(255, 60, 90, .95), rgba(255, 60, 90, 0) 70%); }
@keyframes bsDd { to { opacity: 0; } }
.bs-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bs-val { display: flex; flex-direction: column; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.bs-vlabel { font-size: 12.5px; color: #dcdbe6; font-weight: 500; }
.bs-val b { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(5, 7, 15, .9), 0 0 22px rgba(255, 200, 61, .35); }
.bs-val b.bounty { animation: bsBounty 1s ease-in-out infinite alternate; }
@keyframes bsBounty { to { text-shadow: 0 3px 0 rgba(5, 7, 15, .9), 0 0 34px rgba(255, 200, 61, .95); } }
.bs-practice .bs-val b { color: var(--text); text-shadow: 0 3px 0 rgba(5, 7, 15, .9); }
.bs-sub { font-size: 13px; color: #dcdbe6; font-weight: 500; }
.bs-timer { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; text-shadow: 0 2px 4px #000; }
.bs-timer b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.bs-timer span { font-size: 13px; color: #dcdbe6; font-weight: 500; }
.bs-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 230px; }
.bs-board { list-style: none; margin: 0; padding: 7px; width: 250px; background: rgba(11, 16, 32, .74); border-radius: 14px 4px 14px 14px; font-size: 13px; }
.bs-board li { display: grid; grid-template-columns: 18px 1fr auto 22px; gap: 6px; padding: 2px 6px; border-radius: 6px; align-items: baseline; }
.bs-board li.h { grid-template-columns: 1fr 22px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.bs-board i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.bs-board span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-board b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-board em { font-style: normal; color: var(--muted); text-align: right; }
.bs-board li.me { background: rgba(59, 232, 255, .16); box-shadow: inset 3px 0 0 var(--cyan); }
.bs-practice .bs-board b { color: var(--text); }
.bs-feed { position: absolute; right: 18px; bottom: 150px; list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; width: min(360px, 60vw); justify-items: end; }
.bs-ks { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.bs-ks span { font: 400 15px/1 var(--display); color: var(--ink); background: var(--gold); padding: 5px 10px; border-radius: 999px; }
.bs-ks span.bad { background: var(--danger); color: #fff; }
.bs-feed .wico.head svg { filter: drop-shadow(0 0 3px #ff4d6d); }
.bs-feed li { font-size: 12.5px; background: rgba(11, 16, 32, .72); padding: 3px 9px; border-radius: 8px; text-align: right; animation: bsFeed .2s ease-out; }
.bs-feed li.me { border-right: 3px solid var(--cyan); } .bs-feed li.dead { border-right: 3px solid var(--danger); }
.bs-feed li u { text-decoration: none; color: var(--muted); font-size: 11.5px; } .bs-feed li em { font-style: normal; color: var(--gold); font-weight: 600; } .bs-feed li i { font-style: normal; background: var(--gold); color: #3a2400; border-radius: 4px; padding: 0 5px; font-size: 10.5px; font-weight: 700; }
@keyframes bsFeed { from { opacity: 0; transform: translateX(14px); } }
.bs-mini { position: absolute; left: 14px; bottom: 128px; width: 168px; height: 168px; }
.bs-bars { position: absolute; left: 14px; bottom: 16px; width: 250px; display: grid; gap: 6px; }
.bs-bar { position: relative; height: 22px; border-radius: 6px; background: rgba(11, 16, 32, .8); overflow: hidden; }
.bs-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff4d6d, #ff7a90); width: 100%; transition: width .12s; }
.bs-bar.ar { height: 14px; } .bs-bar.ar i { background: linear-gradient(90deg, #3b6bff, #3be8ff); width: 0; }
.bs-bar b { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.bs-bar.ar b { font-size: 11px; }
.bs-prot { display: none; font-size: 12.5px; font-weight: 600; color: var(--cyan); text-shadow: 0 1px 3px #000; }
.bs-ammo { position: absolute; right: 18px; bottom: 16px; text-align: right; text-shadow: 0 2px 4px #000; }
.bs-slots { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.bs-slots span { background: rgba(11, 16, 32, .75); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: var(--muted); border: 2px solid transparent; }
.bs-slots span i { font-style: normal; color: var(--cyan); margin-right: 5px; font-weight: 700; }
.bs-slots span.on { color: var(--text); border-color: var(--cyan); }
.bs-am { font-family: var(--display); line-height: 1; } .bs-am b { font-weight: 400; font-size: 54px; font-variant-numeric: tabular-nums; } .bs-am b.low { color: var(--danger); } .bs-am span { font-size: 22px; color: #dcdbe6; margin-left: 4px; }
.bs-wname { font-size: 14px; color: #dcdbe6; font-weight: 500; }
/* touch layout: thumbs own the bottom corners, so the HUD moves out of their way */
#bs.touch .bs-right, #bs.touch .bs-slots, #bs.touch .bs-hint, #bs.touch .bs-wname { display: none; }
#bs.touch .bs-val b { font-size: 30px; }
#bs.touch .bs-mini { left: 10px; top: 124px; bottom: auto; width: 96px; height: 96px; opacity: .9; }
#bs.touch .bs-bars { left: 50%; transform: translateX(-50%); bottom: 8px; width: min(220px, 46vw); gap: 4px; }
#bs.touch .bs-ammo { right: auto; left: 50%; transform: translateX(-50%); bottom: 60px; text-align: center; }
#bs.touch .bs-am b { font-size: 34px; } #bs.touch .bs-am span { font-size: 15px; }
#bs.touch .bs-feed { top: 114px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); width: min(300px, 40vw); justify-items: center; }
#bs.touch .bs-feed li { font-size: 11px; }
#bs.touch .bs-ks { bottom: 96px; }
@media (max-height: 500px) { #bs.touch .bs-mini { width: 82px; height: 82px; } }   /* clear of the left FIRE button on phones held sideways */
#bs.touch .bs-card { top: 34%; min-width: 0; width: min(340px, 86vw); padding: 14px 16px; }
@media (orientation: portrait) { #bs.touch .bs-feed { top: 176px; width: 70vw; } #bs.touch .bs-bars { left: 10px; transform: none; width: 40vw; } #bs.touch .bs-ammo { left: 12px; transform: none; bottom: 92px; text-align: left; } }
.bs-reload { display: none; color: var(--gold); font-weight: 600; font-size: 14px; animation: bsBlink .5s infinite alternate; } @keyframes bsBlink { to { opacity: .4; } }
.bs-ext { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: 92px; height: 92px; display: none; text-align: center; }
.bs-ext svg { width: 92px; height: 92px; } .bs-ext .t { fill: rgba(11, 16, 32, .7); stroke: rgba(255, 200, 61, .25); stroke-width: 6; } .bs-ext .f { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; }
.bs-ext span { position: absolute; left: 0; right: 0; top: 36px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px #000; }
.bs-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; font-family: var(--display); opacity: 0; white-space: nowrap; text-shadow: 0 3px 0 #05070f; }
.bs-banner b { display: block; font-weight: 400; font-size: 36px; } .bs-banner span { display: block; font-family: var(--body); font-size: 15px; color: #dcdbe6; text-shadow: 0 1px 3px #000; }
.bs-banner.gold b { color: var(--gold); font-size: 44px; } .bs-banner.warn b { color: var(--danger); }
.bs-banner.show { animation: bsBan 2s ease-out; }
@keyframes bsBan { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 10% { opacity: 1; transform: translateX(-50%) scale(1.1); } 18% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.bs-count { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font-family: var(--display); font-size: clamp(90px, 16vw, 160px); line-height: 1; text-shadow: 0 7px 0 rgba(5, 7, 15, .85), 0 0 40px rgba(59, 232, 255, .5); display: none; }
.bs-pops { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.bs-pop { position: absolute; top: 44%; font-family: var(--display); font-size: 40px; color: var(--gold); text-shadow: 0 3px 0 rgba(5, 7, 15, .9), 0 0 18px rgba(255, 200, 61, .6); animation: bsPop 1.3s ease-out forwards; white-space: nowrap; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.bs-pop.bounty { font-size: 52px; color: #fff3a8; }
@keyframes bsPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.bs-dmgnums { position: absolute; inset: 0; }
.bs-dn { position: absolute; font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 2px 3px #000; transform: translate(-50%, -50%); animation: bsDn .7s ease-out forwards; }
.bs-dn.head { color: var(--danger); font-size: 24px; }
@keyframes bsDn { to { opacity: 0; transform: translate(-50%, -50px); } }
.bs-card { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(11, 16, 32, .9); border: 1px solid var(--line); border-radius: 18px 4px 18px 4px; padding: 18px 26px; text-align: center; min-width: 300px; }
.bs-elim h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--danger); }
.bs-elim .by { color: #dcdbe6; margin-top: 2px; } .bs-elim .lost { margin-top: 8px; } .bs-elim .lost b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.bs-elim .resp { font-family: var(--display); font-size: 28px; margin-top: 8px; color: var(--cyan); } .bs-elim .load { margin-top: 8px; font-size: 13px; color: var(--muted); }
.bs-elim kbd { background: var(--raised); border-radius: 5px; padding: 1px 6px; font-family: var(--body); color: var(--text); }
.bs-score { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: min(520px, 92vw); background: rgba(11, 16, 32, .92); border-radius: 16px; padding: 14px 18px; }
.bs-score h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.bs-score ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.bs-score li, .bs-score .hd { display: grid; grid-template-columns: 24px 1fr 44px 34px 84px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; animation: lb-in .25s ease-out both; }
.bs-score .hd { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; animation: none; } .bs-score .hd b { text-align: right; } .bs-score .pot { color: var(--gold); }
.bs-score li:nth-child(odd) { background: rgba(244,241,232,.04); } .bs-score li.me { background: rgba(59, 232, 255, .16); box-shadow: inset 3px 0 0 var(--cyan); } .bs-score li.top { background: linear-gradient(90deg, rgba(255,200,61,.2), transparent); }
.bs-score li span { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; } .bs-score li span canvas { width: 12px; height: 27px; image-rendering: pixelated; flex: none; } .bs-score li span small { font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; }
.bs-score li b { position: relative; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; } .bs-score li b u { position: absolute; left: 0; bottom: -3px; height: 3px; border-radius: 2px; background: var(--gold); opacity: .5; }
.bs-score li em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; } .bs-score li i { font-style: normal; color: var(--muted); display: grid; place-items: center; }
.bs-speed { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); display: grid; grid-template-columns: 64px auto auto; align-items: center; gap: 2px 6px; opacity: 0; transition: opacity .3s; pointer-events: none; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.bs-speed.on { opacity: .85; } .bs-speed i { height: 4px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; } .bs-speed u { display: block; height: 100%; background: linear-gradient(90deg, #3BE8FF, #FFC83D); transition: width .08s linear; }
.bs-speed b { font: 400 15px var(--display); color: #fff; } .bs-speed small { font-size: 9.5px; color: rgba(255,255,255,.7); font-weight: 700; }
.bs-speed.hot b { color: #FFC83D; } .bs-speed.hot u { box-shadow: 0 0 8px #FFC83D; }
.bs-speed em { grid-column: 1 / -1; justify-self: center; font: 400 13px var(--display); font-style: normal; color: #FF4FA3; letter-spacing: .06em; min-height: 1em; }
.bs-speed em.pop { animation: bs-hop .35s cubic-bezier(.2,1.8,.4,1); } @keyframes bs-hop { from { transform: scale(1.7); } }
.touch .bs-speed { top: calc(50% + 38px); }
.bs-dbg { position: absolute; left: 14px; top: 150px; margin: 0; padding: 8px 10px; background: rgba(0, 0, 0, .72); color: #7CFFB2; font: 12px/1.35 ui-monospace, Consolas, monospace; border-radius: 8px; }
.bs-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; text-shadow: 0 1px 3px #000; }
.bs-practice .bs-hint { color: #dcdbe6; }

.bs-click { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(8, 11, 24, .55); cursor: pointer; }
.bs-click[hidden], .bs-lobby[hidden], .bs-menu[hidden], .bs-end[hidden], .bs-load[hidden] { display: none; }
.bs-load { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 70px); padding: 24px;
  background: radial-gradient(80% 70% at 30% 60%, rgba(77,163,255,.35), transparent 60%), radial-gradient(60% 60% at 80% 20%, rgba(255,79,163,.28), transparent 60%), linear-gradient(160deg, #0b0f2a, #1a0f3a 60%, #070a18); transition: opacity .45s; }
.bs-load.done { opacity: 0; }
.bs-load canvas { width: min(26vh, 220px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); animation: bsPose 2.4s ease-in-out infinite; }
@keyframes bsPose { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.bs-load-info { max-width: 460px; } .bs-load-info small { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.bs-load-info h2 { font: 400 clamp(36px, 6vw, 64px)/1 var(--display); margin: 6px 0 14px; text-shadow: 0 5px 0 #05070f; }
.bs-load-tip { color: #dcdbe6; font-size: 16px; min-height: 2.6em; }
.bs-load-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin: 14px 0 10px; } .bs-load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4da3ff, #8af7ff); transition: width .4s; }
.bs-load-music { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .bs-load { flex-direction: column; text-align: center; } }
.bs-click b { font-family: var(--display); font-weight: 400; font-size: 52px; text-shadow: 0 4px 0 #05070f; } .bs-click span { color: #dcdbe6; }
.bs-click small { color: #ffc83d; font-weight: 700; font-size: 14px; max-width: min(460px, 86vw); margin: 4px auto 0; line-height: 1.4; } .bs-click small:empty { display: none; }
.bs-lobby, .bs-menu, .bs-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 14px; overflow: auto; background: radial-gradient(120% 90% at 78% 100%, #5a2a7e 0%, #2a1a5c 40%, #170d33 80%); }
.bs-menu, .bs-end { background: rgba(8, 11, 24, .88); }
.bs-lob-card, .bs-menu-card, .bs-end-card { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px 8px 26px 8px; padding: 22px 24px; }
.bs-lob-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bs-lob-head h2, .bs-menu-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; } .bs-lob-head p { margin: 2px 0 0; color: var(--muted); }
.bs-pot { text-align: right; } .bs-pot span { display: block; font-size: 12px; color: var(--muted); } .bs-pot b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--gold); font-variant-numeric: tabular-nums; }
.bs-cd { font-family: var(--display); font-size: 26px; margin: 10px 0; color: var(--cyan); } .bs-cd .n { font-size: 44px; color: var(--text); }
.bs-cd.go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .bs-cd.go .play { font-size: 20px; padding: 12px 34px; min-height: 52px; } .bs-cd.go small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.bs-who { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 12px; min-height: 90px; }
.bs-who div { display: grid; justify-items: center; font-size: 12px; max-width: 74px; } .bs-who div.new { animation: bsNew .4s ease-out; } .bs-who canvas { width: 48px; height: 76px; image-rendering: pixelated; } .bs-who span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes bsNew { from { transform: scale(.4); opacity: 0; } }
.bs-lobby h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 10px 0 6px; color: var(--muted); } .bs-lobby h3 small { font-family: var(--body); font-size: 12px; margin-left: 6px; }
.bs-vote { display: flex; gap: 8px; flex-wrap: wrap; } .bs-vote button { background: var(--raised); border: 2px solid transparent; border-radius: 12px; padding: 9px 14px; text-align: left; color: var(--text); } .bs-vote button b { display: block; font-weight: 600; } .bs-vote button span { font-size: 12.5px; color: var(--muted); }
.bs-vote button.on { border-color: var(--cyan); background: #3a2870; } .bs-vote button:hover:not(:disabled) { border-color: rgba(59, 232, 255, .6); } .bs-vote.one button { cursor: default; }
.bs-rules { margin: 14px 0 0; padding-left: 18px; color: #dcdbe6; font-size: 13.5px; display: grid; gap: 4px; }
.bs-lob-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; } .bs-lob-foot span { color: var(--muted); font-size: 12.5px; }
.bs-menu-card label { display: grid; gap: 4px; margin: 12px 0; font-weight: 500; } .bs-menu-card label b { color: var(--cyan); margin-left: 6px; } .bs-menu-card input[type=range] { width: 100%; accent-color: #3BE8FF; }
.bs-menu-card select { background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); }
.bs-menu-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bs-end-card { text-align: center; max-height: calc(100vh - 28px); overflow: auto; }
.bs-end-card h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; } .bs-end-card h2.bad { color: var(--danger); }
.bs-end-card .big { font-family: var(--display); font-size: 62px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; margin: 6px 0 2px; } .bs-end-card .big.money { color: var(--gold); } .bs-end-card .big.zero { color: var(--muted); }
.bs-end-card .sub { color: var(--muted); font-size: 14px; margin-top: 2px; } .bs-end-card h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 14px 0 6px; text-align: left; color: var(--muted); }
.bs-endboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; text-align: left; } .bs-endboard li { display: grid; grid-template-columns: 22px 1fr auto 90px; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--base); } .bs-endboard li.me { background: rgba(59, 232, 255, .16); } .bs-endboard li i { font-style: normal; color: var(--muted); } .bs-endboard li em { font-style: normal; color: var(--muted); } .bs-endboard li b { color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; } .bs-endboard li b.neg { color: var(--danger); }
@media (max-width: 700px) { .bs-top { flex-wrap: wrap; } .bs-timer { position: static; transform: none; } .bs-right { min-width: 0; } .bs-board { width: 190px; } .bs-mini { width: 120px; height: 120px; bottom: 120px; } .bs-bars { width: 190px; } }
/* skin picker tabs + Blockside characters */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { background: var(--raised); border: 2px solid transparent; border-radius: 999px; padding: 7px 16px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--cyan); background: #3a2870; }
.block-prev { display: flex; gap: 18px; align-items: center; background: #0a0e1c; border-radius: 18px; padding: 14px 18px; }
.block-prev canvas { width: 120px; height: 180px; image-rendering: pixelated; }
.bp-info { display: flex; flex-direction: column; gap: 2px; } .bp-info b { font-family: var(--display); font-weight: 400; font-size: 26px; } .bp-info span { font-size: 13px; color: var(--muted); } .bp-info p { margin: 8px 0 0; font-size: 13px; }
.wfin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 6px; }
.wfin { position: relative; background: var(--raised); border: 2px solid transparent; border-radius: 12px; padding: 8px 6px 6px; text-align: center; font-size: 12.5px; font-weight: 500; color: inherit; }
.wfin i { display: block; height: 22px; border-radius: 6px; margin-bottom: 5px; border: 1px solid rgba(255,255,255,.15); overflow: hidden; }
.wfin i canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; } .wfin em, .bchar em { font-style: normal; font-weight: 800; }
.wfin small { display: block; color: var(--muted); font-size: 11.5px; } .wfin[aria-selected="true"] { border-color: var(--cyan); background: #3a2870; } .wfin.locked i { opacity: .55; }
.wfin:focus-visible, .bchar:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.wfin-stock { background: linear-gradient(90deg, #5a5a70, #767690 60%, #a46a36 60%); } .wfin-gold { background: linear-gradient(135deg, #fff3b0, #ffc83d 45%, #b88a10); }
.wfin-chrome { background: linear-gradient(135deg, #ffffff, #b8c0d0 40%, #e8ecf4 60%, #7a8294); } .wfin-hotdog { background: linear-gradient(180deg, #e0a35c 30%, #c4462e 30% 70%, #e0a35c 70%); }
.wfin-graffiti { background: radial-gradient(circle at 25% 40%, #ff3bd4 18%, transparent 20%), radial-gradient(circle at 65% 60%, #3be8ff 20%, transparent 22%), radial-gradient(circle at 85% 30%, #ffd23f 12%, transparent 14%), #2a2050; }
.wfin-diamond { background: linear-gradient(135deg, #e8ffff, #9ff4ff 35%, #5ad8f0 55%, #e8ffff 75%, #9ff4ff); }
.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.bchar { position: relative; background: var(--raised); border: 2px solid transparent; border-radius: 12px; padding: 8px 4px 6px; text-align: center; font-size: 12.5px; font-weight: 500; }
.bchar canvas { width: 48px; height: 72px; image-rendering: pixelated; display: block; margin: 0 auto 4px; }
.bchar[aria-selected="true"] { border-color: var(--cyan); background: #3a2870; } .bchar.locked canvas { opacity: .75; } .bchar small { display: block; color: var(--muted); font-size: 11.5px; } .bchar .lock { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.bs-prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); background: rgba(11, 16, 32, .85); border: 1px solid rgba(255, 200, 61, .6); border-radius: 12px; padding: 6px 14px; font-weight: 600; font-size: 14px; text-shadow: 0 1px 3px #000; }
.bs-prompt kbd { background: var(--gold); color: #3a2400; border-radius: 5px; padding: 0 7px; font-family: var(--body); margin: 0 3px; }

/* ---- Bag Holder ---- */
.tile.hp-tile { grid-column: 1 / -1; opacity: 1; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; border-radius: 26px 8px 26px 8px; border: 1px solid rgba(255, 154, 60, .45); background: linear-gradient(135deg, #3a2a1c, #141c33 68%); }
.hp-art { position: relative; min-height: 260px; overflow: hidden; background: #fdfaf1; }
.hp-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-art span { position: absolute; left: 14px; top: 14px; color: #23324a; background: #fff6a8; border: 2px solid #23324a; border-radius: 12px 8px 14px 7px; padding: 4px 11px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-2deg); }
.hp-body { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 13px; }
.hp-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-modes .pill { font-size: 16px; padding: 8px 18px; } .hp-modes .pill small { color: var(--muted); font-weight: 500; font-size: 12px; }
.hp-chips { display: flex; gap: 9px; }
.hp-chips .chip { width: 76px; }
.hp-chips .disc { width: 62px; height: 62px; font-size: 22px; }
.hp-chips .disc::after { width: 48px; height: 48px; }
@media (max-width: 720px) { .tile.hp-tile { grid-template-columns: 1fr; } .hp-art { min-height: 170px; } }
.tile.bh-tile { grid-column: 1 / -1; opacity: 1; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; border-radius: 26px 8px 26px 8px; border: 1px solid rgba(255, 200, 61, .38); background: linear-gradient(135deg, #35234e, #141c33 68%); }
.bh-art { position: relative; min-height: 260px; overflow: hidden; background: #172540; }
.bh-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-art span { position: absolute; left: 14px; top: 14px; color: #fff0a5; background: rgba(20, 25, 47, .8); border: 1px solid rgba(255, 200, 61, .6); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bh-body { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 13px; }
.bh-payout { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.bh-payout b { color: var(--gold); }
.bh-chips { display: flex; gap: 9px; }
.bh-chips .chip { width: 76px; }
.bh-chips .disc { width: 62px; height: 62px; font-size: 22px; }
.bh-chips .disc::after { width: 48px; height: 48px; }
@media (max-width: 700px) {
  .tile.bh-tile { grid-template-columns: 1fr; }
  .bh-art { min-height: 170px; }
}

/* Blockside: scope, kill-feed weapon icons, slipper cooldown */
.bs-scope { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0 33vmin, rgba(0,0,0,.94) 33.4vmin); }
.bs-scope .ring { position: absolute; left: 50%; top: 50%; width: 66vmin; height: 66vmin; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 3px #111, inset 0 0 40px rgba(0,0,0,.5); }
.bs-scope i { position: absolute; background: rgba(10,10,10,.85); }
.bs-scope i.h { left: calc(50% - 33vmin); width: 66vmin; top: 50%; height: 1.5px; }
.bs-scope i.v { top: calc(50% - 33vmin); height: 66vmin; left: 50%; width: 1.5px; }
.bs-scope .breath { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); width: 180px; display: grid; gap: 4px; text-align: center; color: #ddd; font-size: 12px; }
.bs-scope .breath b { display: block; height: 5px; border-radius: 3px; background: #7ff0ff; justify-self: start; transition: width .1s; }
.bs-feed .wico { display: inline-block; vertical-align: middle; margin-right: 4px; }
.bs-slots span.cool { opacity: .45; }

/* Blockside loadout picker (Krunker-style stat bars) */
.bs-loadouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bs-loadouts .lo-side { color: var(--muted); font-size: 11px; font-weight: 600; }
.bs-loadouts button { text-align: left; background: var(--ink); border: 2px solid var(--line); border-radius: var(--r); padding: 10px; color: var(--text); display: grid; gap: 8px; }
.bs-loadouts button.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,200,61,.2); }
.bs-loadouts b { font: 400 18px/1 var(--display); }
.bs-loadouts .lo-hero { position: relative; height: 96px; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding-left: 10px;
  background: radial-gradient(120% 90% at 20% 100%, var(--lo-glow), transparent 60%), linear-gradient(160deg, #1b2240, #10162b); }
.bs-loadouts .lo-trapstar { --lo-glow: rgba(255,200,61,.45); } .bs-loadouts .lo-shooter { --lo-glow: rgba(59,232,255,.4); } .bs-loadouts .lo-rusher { --lo-glow: rgba(255,90,95,.45); }
.bs-loadouts .lo-bouncer { --lo-glow: rgba(255,138,61,.45); } .bs-loadouts .lo-oldhead { --lo-glow: rgba(200,160,110,.45); } .bs-loadouts .lo-bighomie { --lo-glow: rgba(139,224,75,.4); } .bs-loadouts .lo-deadeye { --lo-glow: rgba(176,107,255,.45); }
.bs-loadouts .lo-hero canvas { width: 48px; height: 76px; image-rendering: pixelated; margin-bottom: 6px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.bs-loadouts button.on .lo-hero canvas { animation: lo-bob 1.1s ease-in-out infinite; }
.bs-loadouts .lo-gun { position: absolute; left: 34px; bottom: 30px; transform: scale(2.1) rotate(-8deg); transform-origin: left center; }
.bs-loadouts .lo-shooter .lo-gun { transform: scale(2.1) rotate(0deg); } .bs-loadouts .lo-rusher .lo-gun { transform: scale(2.1) rotate(-18deg); }
.bs-loadouts .lo-hero q { position: absolute; right: 8px; top: 10px; max-width: 62%; padding: 5px 8px; border-radius: 12px 12px 3px 12px; background: #f4f1e8; color: #141a30;
  font: 700 11.5px/1.2 var(--body, system-ui); quotes: '“' '”'; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.bs-loadouts button:not(.on) .lo-hero q { opacity: .55; }
.bs-loadouts button.say .lo-hero q { animation: lo-say .5s cubic-bezier(.2,1.6,.4,1); }
.bs-loadouts .lo-name { display: grid; gap: 3px; }
.bs-loadouts .lo-name small { color: var(--gold); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
@keyframes lo-bob { 50% { transform: translateY(-4px); } }
@keyframes lo-say { from { transform: scale(.4) translateY(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bs-loadouts button.on .lo-hero canvas, .bs-loadouts button.say .lo-hero q { animation: none; } }
.bs-loadouts .lw span { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 4px; } .bs-loadouts .lw small { color: var(--muted); font-weight: 600; font-size: 11px; }
.bs-loadouts .bar { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.bs-loadouts .bar em { font-style: normal; } .bs-loadouts .bar i { height: 6px; border-radius: 999px; background: rgba(244,241,232,.1); overflow: hidden; } .bs-loadouts .bar u { display: block; height: 100%; border-radius: 999px; }
.bs-loadouts .bar.dmg u { background: #ff5a5f; } .bs-loadouts .bar.rng u { background: #3BE8FF; } .bs-loadouts .bar.rate u { background: #FFC83D; }
.bs-elim .load span { margin: 0 4px; opacity: .6; } .bs-elim .load span.on { opacity: 1; color: var(--gold); font-weight: 700; }
.bs-elim .load q { display: block; margin-top: 6px; font-style: italic; color: var(--text); opacity: .85; }
#bsCard { z-index: 6; } .bs-elim .load span[data-lo] { pointer-events: auto; cursor: pointer; display: inline-block; padding: 6px 4px; }
@media (max-width: 700px) { .bs-loadouts { grid-template-columns: repeat(2, 1fr); gap: 8px; } .bs-loadouts .lo-hero { height: 70px; } .bs-loadouts .lo-hero q { display: none; } }

/* Slither waiting / countdown screen: opaque BAGWORK backdrop, centre card, snakes circling it */
#ready { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; pointer-events: none; text-align: center;
  background: radial-gradient(70% 60% at 50% 45%, #1f2a4a 0%, var(--ink) 70%); }
#rsnakes { position: absolute; inset: 0; width: 100%; height: 100%; }
#ready .rcard { position: relative; width: min(420px, 100%); padding: 22px 22px 16px; border-radius: var(--r-lg); background: #141c33; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
#ready .rgame { font: 400 34px/1 var(--display); color: var(--text); } #ready .rgame em { font-style: normal; color: #7cf07a; }
#ready .rchips { display: flex; justify-content: center; gap: 8px; margin: 12px 0 6px; }
#ready .rchips span { padding: 5px 12px; border-radius: var(--r-pill); background: var(--ink); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
#ready .rchips span:first-child { color: var(--gold); }
#ready .rring { width: 132px; height: 132px; margin: 10px auto 6px; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(59, 232, 255, .35); box-shadow: inset 0 0 30px rgba(59, 232, 255, .15); }
#rcount { font: 400 76px/1 var(--display); color: var(--text); }
#rcount.pop { animation: pop .45s ease-out; }
#rstatus { font: 400 20px/1.2 var(--display); color: var(--cyan); margin-bottom: 4px; }
#rsub { font-size: 14px; color: var(--muted); }
#rpot { font: 400 30px/1.1 var(--display); color: var(--gold); }
#rpot[hidden] { display: none; }
#rlist { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 0; margin: 10px 0 8px; max-height: 120px; overflow: hidden; }
#rlist li { display: grid; justify-items: center; font-size: 12px; font-weight: 600; color: var(--muted); animation: pop .35s ease-out; max-width: 72px; }
#rlist canvas { width: 32px; height: 32px; }
#rlist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 72px; }
#ready .fine { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- wallet (public/wallet.js) ---------- */
.wallet-open { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.wallet-open:hover .money { text-decoration: underline; text-underline-offset: 3px; }
.paycoin { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--muted); background: var(--raised); border-radius: var(--r-pill); padding: 2px 7px; }
.refill.deposit { background: var(--gold); color: var(--ink); }
.refill.deposit:hover { background: #ffd765; }
.wtabs { display: flex; gap: 4px; background: var(--raised); border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--s4); overflow-x: auto; }
.wtabs button { flex: 1; white-space: nowrap; background: none; border: 0; color: var(--muted); font: 600 14px var(--body); padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; }
.wtabs button[aria-selected="true"] { background: var(--surface); color: var(--text); }
.wlist { display: grid; gap: var(--s2); }
.wrow { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.wrow.on { border-color: var(--cyan); background: rgba(59, 232, 255, .05); }
.wrow input { accent-color: var(--cyan); }
.wcoin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 16px var(--display); color: var(--ink); background: var(--muted); }
.c-BTC { background: #f7931a; } .c-ETH { background: #8c9eff; } .c-SOL { background: #14f195; } .c-USDC { background: #2775ca; color: #fff; } .c-USDT { background: #26a17b; color: #fff; } .c-TEST { background: var(--gold); }
.wname { display: grid; min-width: 0; } .wname small { color: var(--muted); font-size: 12px; }
.wamt { font: 400 20px var(--display); color: var(--gold); }
.wbtns { grid-column: 2 / -1; display: flex; gap: var(--s2); }
.wnote { color: var(--muted); font-size: 14px; margin: var(--s3) 0; }
.wstep { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: var(--s4) 0 var(--s2); }
.wpills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { background: var(--raised); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-pill); padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; }
.pill.on { border-color: var(--cyan); color: var(--cyan); }
.waddr { display: grid; grid-template-columns: 148px 1fr; gap: var(--s4); align-items: center; margin-top: var(--s4); }
.wqr { background: #fff; border-radius: var(--r); padding: 6px; aspect-ratio: 1; }
.wqr svg { width: 100%; height: 100%; display: block; }
.wlbl { font-size: 13px; color: var(--muted); margin-bottom: var(--s2); }
.wcode { display: block; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--raised); padding: var(--s3); border-radius: var(--r-sm); margin-bottom: var(--s2); user-select: all; }
.wwarn { margin: var(--s4) 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.wwarn b { color: var(--text); } .wwarn code { word-break: break-all; font-size: 12px; }
.winput { width: 100%; background: var(--raised); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 11px 12px; font: 500 15px var(--body); }
.winput:focus { border-color: var(--cyan); outline: none; }
.wamtrow { display: flex; align-items: center; gap: var(--s2); } .wamtrow span { font: 400 20px var(--display); color: var(--gold); }
.wwds { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.wwds li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wwds li span { margin-left: auto; color: var(--muted); font-size: 13px; }
.pill small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.wother { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px; cursor: text; }
.wother input { width: 70px; background: none; border: 0; color: inherit; font: inherit; padding: 4px 0; outline: none; }
.wpaybtns { display: grid; gap: var(--s2); margin-top: var(--s4); }
.wpaybtns .play, .wpaybtns .ghost { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.wpaybtns img { border-radius: 4px; }
.wcardnote { color: var(--muted); font-size: 12px; margin: -2px 0 var(--s2); text-align: center; }
.wor { text-align: center; color: var(--muted); font-size: 13px; margin: var(--s3) 0 0; }
.wsend { color: var(--gold); white-space: nowrap; }
.wcopy { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wstatus { margin-top: var(--s4); display: grid; gap: var(--s2); }
.wst { margin: 0; padding: var(--s3); border-radius: var(--r-sm); background: var(--raised); font-size: 14px; color: var(--muted); }
.wst b { color: var(--text); } .wst a { color: var(--cyan); }
.wst.go { color: var(--text); border-left: 3px solid var(--cyan); }
.wst.ok { color: var(--text); border-left: 3px solid #3ddc84; } .wst.ok b { color: #3ddc84; }
.wst.wait::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: 1px; animation: wpulse 1.4s ease-in-out infinite; }
@keyframes wpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wst.wait::before { animation: none; } }
.wrecov { border: 2px solid var(--gold); background: rgba(255, 200, 61, .08); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s4); display: grid; gap: var(--s2); }
.wrecov code { font: 700 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; color: var(--gold); word-break: break-all; user-select: all; }
.wrecov p { font-size: 14px; color: var(--text); margin: 0; }
.wrecov-btns { display: flex; gap: var(--s2); justify-content: flex-end; }
@media (max-width: 520px) {
  .waddr { grid-template-columns: 1fr; } .wqr { max-width: 200px; margin: 0 auto; }
  .wrow { grid-template-columns: auto auto 1fr; } .wamt { grid-column: 3; justify-self: end; }
  .paycoin { display: none; }
  .wallet:has(.deposit:not([hidden])) #refill { display: none; }   /* phones: Refill lives in the wallet */
  .refill.deposit { padding: 6px 10px; }
}
@media (max-width: 420px) { .wallet-open svg { display: none; } .wallet { padding-left: 10px; } }

/* ---------- BAGWORK Studio: the top-bar button and the "build your own game" page (public/studio.js) ---------- */
.daily { position: fixed; z-index: 30; left: 14px; bottom: 54px; width: min(320px, calc(100vw - 28px)); background: rgba(11, 16, 32, .92); border: 1px solid rgba(255, 138, 30, .45); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.daily-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: none; border: 0; color: var(--text); font: 600 14px var(--body); cursor: pointer; text-align: left; }
.daily-head span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.daily-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.daily:not(.open) .daily-body { display: none; }
.dc { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13px; }
.dc i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--raised); overflow: hidden; } .dc i b { display: block; height: 100%; background: linear-gradient(90deg, #ff8a1e, #ffc83d); border-radius: 4px; transition: width .4s; }
.dc em { font-style: normal; color: var(--gold); font-weight: 700; font-size: 12px; } .dc.done { color: var(--muted); } .dc.done i b { background: #2fd17a; } .dc.done em { color: #2fd17a; }
.daily-foot { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.daily-foot b { color: #ff8a1e; }
@media (max-width: 720px) { .daily { bottom: 12px; } }
.build-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 200, 61, .6); background: linear-gradient(135deg, rgba(255, 200, 61, .18), rgba(255, 79, 163, .14)); color: #ffe7a3; font: 700 14px var(--body); cursor: pointer; white-space: nowrap; }
.build-btn:hover { background: linear-gradient(135deg, rgba(255, 200, 61, .3), rgba(255, 79, 163, .24)); color: #fff; }
.build-btn .short { display: none; }
@media (max-width: 760px) { .build-btn .long { display: none; } .build-btn .short { display: inline; } .build-btn { padding: 7px 11px; } }
body.studio-on { overflow: hidden; }
.studio-page { position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 79, 163, .18), transparent 60%), radial-gradient(900px 500px at 0% 10%, rgba(59, 232, 255, .12), transparent 60%), #0b1020; color: var(--text); }
.studio-page[hidden] { display: none; }
.sp-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(11, 16, 32, .85); border-bottom: 1px solid var(--line); }
.sp-brand { font: 400 20px var(--display); letter-spacing: .02em; color: #fff; } .sp-brand b { color: var(--gold); font-weight: 400; }
.sp-soon { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #14121c; background: var(--gold); border-radius: 999px; padding: 4px 10px; }
.sp-bar .x { margin-left: auto; }
.sp-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 40px) 72px; display: grid; gap: clamp(28px, 5vw, 56px); }
.sp-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.sp-hero h1 { margin: 0 0 14px; font: 400 clamp(34px, 5vw, 60px)/1.02 var(--display); color: #fff; }
.sp-hero h1, .sp-access h2 { text-shadow: none; -webkit-text-stroke: 0; }
.sp-hero h1 span { background: linear-gradient(90deg, var(--gold), #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; -webkit-text-stroke: 0; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.sp-lede { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; max-width: 56ch; }
.sp-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; } .sp-cta .play { text-decoration: none; }
.sp-count { color: var(--muted); font-size: 14px; }
.sp-editor { border-radius: 16px; background: #0d1117; border: 1px solid #263045; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 200, 61, .08); overflow: hidden; }
.sp-tabs { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #161b26; border-bottom: 1px solid #263045; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: #c9d4e8; }
.sp-tabs i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .sp-tabs i:nth-child(2) { background: #febc2e; } .sp-tabs i:nth-child(3) { background: #28c840; margin-right: 8px; }
.sp-tabs em { margin-left: auto; font-style: normal; font-size: 11px; color: #7d8aa5; border: 1px solid #2c3650; border-radius: 6px; padding: 1px 6px; }
.sp-code { margin: 0; padding: 16px 18px; height: 400px; overflow: hidden; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #d7e0f0; white-space: pre-wrap; word-break: break-word; }
.sp-code i { font-style: normal; } .sp-code .k { color: #ff7ab6; } .sp-code .s { color: #9be58a; } .sp-code .n { color: #ffb86b; } .sp-code .f { color: #6fd3ff; } .sp-code .c { color: #6b7895; }
.sp-caret { display: inline-block; width: 8px; height: 17px; vertical-align: -3px; background: var(--gold); animation: spBlink 1s steps(1) infinite; }
@keyframes spBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-caret { animation: none; } }
.sp-status { display: flex; justify-content: space-between; padding: 7px 14px; background: #161b26; border-top: 1px solid #263045; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #7d8aa5; }
.sp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sp-steps li { counter-increment: s; display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.sp-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #14121c; font: 400 18px var(--display); }
.sp-steps b { font-size: 17px; color: #fff; } .sp-steps span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.sp-access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 40px); align-items: start; padding: clamp(18px, 4vw, 32px); border-radius: 20px; border: 1px solid rgba(255, 200, 61, .35); background: linear-gradient(135deg, rgba(255, 200, 61, .08), rgba(255, 79, 163, .06)); }
.sp-access h2 { margin: 0 0 8px; font: 400 clamp(26px, 3vw, 36px) var(--display); color: #fff; }
.sp-form { display: grid; gap: 10px; } .sp-form label { display: grid; gap: 6px; } .sp-form label span { font-size: 13px; color: var(--muted); }
.sp-form textarea { background: var(--raised); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: 500 15px var(--body); resize: vertical; }
.sp-form .play { justify-self: start; }
.sp-faq { display: grid; gap: 8px; max-width: 820px; }
.sp-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(255, 255, 255, .02); }
.sp-faq summary { cursor: pointer; font-weight: 700; color: #fff; } .sp-faq p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .sp-hero, .sp-access { grid-template-columns: 1fr; } .sp-steps { grid-template-columns: 1fr 1fr; } .sp-code { height: 330px; font-size: 12.5px; } }
@media (max-width: 520px) { .sp-steps { grid-template-columns: 1fr; } }

/* ---------- season pass, rank, invites, pings, prime time ---------- */
.online-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: 14px; white-space: nowrap; }
.online-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1fd17a; box-shadow: 0 0 0 0 rgba(31, 209, 122, .7); animation: livePulse 1.8s infinite; }
.online-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(31, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 209, 122, 0); } }
.pass-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 10px; border-radius: 999px; border: 1px solid rgba(255, 210, 63, .7); background: linear-gradient(135deg, rgba(255, 210, 63, .22), rgba(59, 224, 240, .14)); color: #fff3c4; font: 700 14px var(--body); cursor: pointer; white-space: nowrap; overflow: hidden; }
.pass-btn .short { display: none; }
.pass-bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.pass-bar b { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ffd23f, #3be0f0); transition: width .6s; }
@media (max-width: 720px) { .pass-btn .long { display: none; } .pass-btn .short { display: inline; } .online-pill { display: none; } }
.pass-dlg { width: min(940px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: radial-gradient(120% 80% at 0 0, rgba(255, 210, 63, .12), transparent 60%), radial-gradient(100% 80% at 100% 0, rgba(59, 224, 240, .12), transparent 60%), var(--base, #0b1020); color: var(--text); border: 1px solid rgba(255, 210, 63, .45); border-radius: 20px; padding: 18px 18px 22px; overflow: auto; }
.pass-dlg::backdrop { background: rgba(3, 5, 12, .82); }
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pass-head h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.pass-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; }
.pass-head .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.pass-lede { color: var(--muted); font-size: 14px; margin: 8px 0 14px; max-width: 70ch; }
.pass-prog { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.pass-prog b { font-family: var(--display); font-weight: 400; font-size: 22px; color: #ffd23f; white-space: nowrap; }
.pass-prog i { flex: 1; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pass-prog u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd23f, #3be0f0); border-radius: 10px; transition: width .6s; }
.pass-track { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 12px; scroll-snap-type: x proximity; }
.pt { flex: 0 0 104px; scroll-snap-align: center; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; opacity: .55; filter: grayscale(.7); position: relative; }
.pt.got { opacity: 1; filter: none; border-color: rgba(31, 209, 122, .6); background: rgba(31, 209, 122, .08); }
.pt.got::after { content: '✓'; position: absolute; top: 6px; right: 8px; color: #1fd17a; font-weight: 900; }
.pt.next { opacity: 1; filter: none; border-color: #ffd23f; box-shadow: 0 0 0 2px rgba(255, 210, 63, .25), 0 0 22px rgba(255, 210, 63, .25); }
.pt small { font-family: var(--display); font-size: 15px; color: var(--muted); }
.pt-art { height: 46px; display: grid; place-items: center; }
.pt span { font-size: 12px; font-weight: 700; line-height: 1.15; }
.pt em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.title-chip { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #14121c; border: 1.5px solid #ffd23f; color: #ffd23f; font: 700 11px var(--body); white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.title-chip.none { border-color: var(--line); color: var(--muted); }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 6px; }
.pass-card { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.pass-card h3 { margin: 0; color: var(--text); font-size: 20px; }
.lk-row { display: grid; gap: 6px; } .lk-row > b { font-size: 12px; color: var(--muted); font-weight: 600; }
.lk-items { display: flex; flex-wrap: wrap; gap: 6px; }
.lk { background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); border-radius: 10px; padding: 4px; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.lk.on { border-color: #3be0f0; box-shadow: 0 0 0 2px rgba(59, 224, 240, .3); }
.div-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--dc) 22%, transparent); border: 1.5px solid var(--dc); color: var(--dc); font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.div-badge.big { font-size: 16px; padding: 8px 12px; border-radius: 10px; }
.rank-top { display: flex; align-items: center; gap: 12px; } .rank-top b { font-family: var(--display); font-weight: 400; font-size: 26px; display: block; } .rank-top small { color: var(--muted); font-size: 12px; }
.rank-ladder { display: flex; gap: 4px; } .rank-ladder i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); } .rank-ladder i.on { background: var(--dc); }
.hp-rank { font-size: 13px; color: var(--muted); margin: 8px 0 2px; }
.ranked-btn { border-color: rgba(59, 224, 240, .6) !important; color: #aef6ff !important; }
.inv-items { display: flex; align-items: center; gap: 10px; }
.invite-card p { font-size: 13px; color: var(--muted); }
.inv-link { display: flex; gap: 6px; } .inv-link input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 8px 10px; font: 13px var(--body); }
.ping-me { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; margin: 4px 0 8px; } .ping-me input { margin-top: 2px; accent-color: #1fd17a; } .ping-me small { color: var(--muted); }
.toast.ping { pointer-events: auto; display: grid; gap: 8px; border-left-color: #1fd17a; } .toast.ping .toast-btns { display: flex; gap: 8px; }
.prime { margin: 0 12px 12px; padding: 8px 10px; border-radius: 10px; font-size: 12px; color: var(--muted); background: rgba(255, 79, 163, .08); border: 1px dashed rgba(255, 79, 163, .4); }
.prime b { color: #ff7ac0; } .prime.live { background: rgba(255, 79, 163, .2); border-style: solid; color: var(--text); animation: primeGlow 2s infinite alternate; }
@keyframes primeGlow { to { box-shadow: 0 0 18px rgba(255, 79, 163, .45); } }
.daily:not(.open) .prime { display: none; }

/* ============ Blockside leaderboard ============ */
.bs-rankchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; background: color-mix(in srgb, var(--rk, #9AA3B8) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rk, #9AA3B8) 45%, transparent); font-size: 12px; color: var(--rk); }
.bs-rankchip b { font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.lb-open { display: inline-flex; align-items: center; gap: 6px; } .lb-open svg { color: var(--gold); }
dialog.lb { width: min(860px, calc(100vw - 20px)); padding: 0; overflow: hidden auto; background: radial-gradient(120% 60% at 50% -10%, #3a2470 0%, #141c33 55%) , var(--surface); border-color: rgba(255,200,61,.25); }
.lb-hero { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 12px; background: linear-gradient(180deg, rgba(20,16,42,.96), rgba(20,16,42,.82)); }
.lb-title { display: flex; gap: 12px; align-items: center; }
.lb-cup { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #14101a; background: linear-gradient(145deg, #fff3b0, #FFC83D 45%, #b07a00); box-shadow: 0 0 0 3px rgba(255,200,61,.18), 0 8px 24px rgba(255,200,61,.35); animation: lb-shine 3.2s ease-in-out infinite; }
.lb-title h2 { font: 400 28px/1 var(--display); background: linear-gradient(90deg, #fff, #FFC83D 60%, #ff8fb8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-title p { color: var(--muted); font-size: 13px; margin-top: 4px; } .lb-title p b { color: var(--cyan); font-variant-numeric: tabular-nums; }
@keyframes lb-shine { 0%, 100% { filter: brightness(1); transform: rotate(-4deg); } 50% { filter: brightness(1.25); transform: rotate(4deg); } }
.lb-you { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin: 4px 22px 14px; padding: 14px 16px; border-radius: 16px; background: rgba(11,16,32,.55); border: 1px solid var(--line); }
.lb-you:empty { display: none; }
.lb-you-rank { display: flex; gap: 12px; align-items: center; min-width: 230px; }
.lb-you-rank .bs-emblem { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rk) 60%, transparent)); }
.lb-you-rank b { display: block; font: 400 24px/1.05 var(--display); color: var(--rk); }
.lb-you-rank small { color: var(--muted); font-size: 11.5px; }
.lb-prog { height: 7px; border-radius: 999px; background: rgba(244,241,232,.1); margin: 6px 0 4px; overflow: hidden; width: 170px; }
.lb-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rk), #fff); box-shadow: 0 0 10px var(--rk); }
.lb-you-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: center; }
.lb-you-stats div { text-align: center; } .lb-you-stats b { display: block; font: 400 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.lb-you-stats small { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.lb-tabs { display: flex; gap: 6px; margin: 0 22px 8px; padding: 4px; border-radius: 14px; background: rgba(11,16,32,.6); overflow-x: auto; scrollbar-width: none; }
.lb-tabs button { flex: 1 0 auto; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 13.5px var(--body); white-space: nowrap; cursor: pointer; } .lb-tabs button:hover { color: var(--text); background: rgba(244,241,232,.06); }
.lb-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #FFC83D, #e8a800); color: #14101a; box-shadow: 0 4px 14px rgba(255,200,61,.35); }
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; padding: 26px 22px 0; min-height: 60px; }
.lb-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: lb-rise .7s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.lb-step .lb-av canvas { width: 48px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); animation: lo-bob 1.4s ease-in-out infinite; }
.lb-step.p1 .lb-av canvas { width: 64px; height: 96px; }
.lb-n { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-v { font: 400 22px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; } .lb-v small { font: 700 10px var(--body); color: var(--muted); margin-left: 4px; text-transform: uppercase; }
.lb-block { width: 100%; display: grid; place-items: start center; padding-top: 8px; border-radius: 12px 12px 0 0; font: 400 34px/1 var(--display); color: rgba(20,16,26,.75);
  background-image: linear-gradient(rgba(255,255,255,.18) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.18) 2px, transparent 2px); background-size: 16px 16px; }
.lb-step.p1 .lb-block { height: 108px; background-color: #FFC83D; box-shadow: 0 0 40px rgba(255,200,61,.45); }
.lb-step.p2 .lb-block { height: 78px; background-color: #D8DEE8; }
.lb-step.p3 .lb-block { height: 56px; background-color: #C98A5A; }
.lb-step.me .lb-n { color: var(--cyan); }
.lb-crown { position: absolute; top: -22px; animation: lb-crown 2.4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,200,61,.7)); }
@keyframes lb-rise { from { opacity: 0; transform: translateY(40px) scale(.9); } }
@keyframes lb-crown { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
.lb-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 22px 0 26px; text-align: center; color: var(--muted); } .lb-empty b { color: var(--text); font: 400 20px var(--display); }
.lb-list { list-style: none; margin: 0; padding: 10px 22px 22px; display: grid; gap: 6px; background: rgba(11,16,32,.35); }
.lb-list.loading { opacity: .5; }
.lb-list li { display: grid; grid-template-columns: 34px 28px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(31,42,74,.55); border: 1px solid transparent; animation: lb-in .35s ease-out both; animation-delay: var(--d); transition: transform .15s, background .15s; }
.lb-list li:hover { transform: translateX(3px); background: rgba(31,42,74,.9); }
.lb-list li.me { border-color: var(--cyan); background: rgba(59,232,255,.1); box-shadow: 0 0 0 3px rgba(59,232,255,.12); }
.lb-list li.pinned { position: sticky; bottom: 8px; background: rgba(20,40,60,.92); }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }
.lb-pos { font: 400 18px var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lb-av.s canvas { width: 24px; height: 36px; image-rendering: pixelated; display: block; }
.lb-who { min-width: 0; } .lb-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-who em { font-style: normal; font-size: 10px; color: #14101a; background: var(--cyan); border-radius: 6px; padding: 1px 5px; margin-left: 4px; vertical-align: 2px; }
.lb-who small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; }
.lb-meta { display: flex; gap: 14px; } .lb-meta span, .lb-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; } .lb-meta small, .lb-val small { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lb-val { font: 400 20px/1 var(--display); color: var(--gold); min-width: 64px; }
@media (max-width: 700px) {
  .lb-hero { padding: 14px 14px 10px; } .lb-title h2 { font-size: 22px; } .lb-cup { width: 42px; height: 42px; }
  .lb-you { grid-template-columns: 1fr; margin: 4px 12px 12px; } .lb-you-stats { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .lb-tabs { margin: 0 12px 6px; } .lb-podium { padding: 24px 12px 0; } .lb-list { padding: 8px 12px 16px; }
  .lb-meta { display: none; } .lb-list li { grid-template-columns: 28px 24px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .lb-step, .lb-list li, .lb-cup, .lb-crown, .lb-step .lb-av canvas { animation: none; } }


/* ---------- tips (wallet) ---------- */
.wtip-me { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 200, 61, .08); border: 1px solid rgba(255, 200, 61, .35); margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.wtip-me code { font: 800 18px ui-monospace, monospace; letter-spacing: .12em; color: var(--gold); margin-right: auto; }
.wtip-amts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.wtip-amts .on { border-color: var(--gold); color: var(--gold); }
.wtip-amts .winput { width: 96px; margin: 0; }
.wlabel { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }

.bs-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(59,232,255,.1); border: 1px dashed var(--cyan); }
.bs-code b { font: 400 24px var(--display); letter-spacing: .15em; color: var(--cyan); } .bs-code button { padding: 4px 10px; border-radius: 8px; background: var(--cyan); color: #14101a; font-weight: 800; border: 0; } .bs-code small { width: 100%; color: var(--muted); }

/* ============ private lobbies ============ */
dialog.priv { width: min(480px, calc(100vw - 20px)); }
.priv-lede { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 4px; }
.priv-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.priv-seg button { flex: 1 0 auto; min-width: 64px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--raised); color: var(--text); font: 700 14px var(--body); cursor: pointer; }
.priv-seg button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,200,61,.14); color: var(--gold); box-shadow: 0 0 0 3px rgba(255,200,61,.15); }
.priv-go { width: 100%; margin-top: 18px; padding: 14px; font-size: 16px; }
.priv-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.priv-or::before, .priv-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.priv-join { display: flex; gap: 8px; } .priv-join input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--ink); color: var(--cyan); font: 400 24px var(--display); letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.priv-join input:focus { outline: none; border-color: var(--cyan); }
.priv-pill { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 8px 10px 8px 16px; border-radius: 16px; background: rgba(11,16,32,.94); border: 1px dashed var(--cyan); box-shadow: 0 10px 30px rgba(0,0,0,.45); font-weight: 700; font-size: 13px; max-width: calc(100vw - 20px); }
.priv-pill b { font: 400 22px var(--display); letter-spacing: .18em; color: var(--cyan); } .priv-pill span { color: var(--muted); font-size: 12px; }
.priv-pill button { padding: 5px 11px; border-radius: 9px; border: 0; background: var(--cyan); color: #14101a; font-weight: 800; cursor: pointer; } .priv-pill .x { background: transparent; color: var(--muted); font-size: 18px; padding: 2px 6px; }


/* ---------- Blockside: pick your class on the death card (clickable; the hud is click-through elsewhere) ---------- */
.bs-card { pointer-events: auto; }
.bs-next { margin-top: 12px; }
.bs-next > small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.bs-next-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; max-width: 560px; }
.bs-next-row button { display: grid; gap: 1px; padding: 8px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: 600 12px var(--body); cursor: pointer; text-align: center; }
.bs-next-row button i { font-style: normal; font-size: 10px; color: var(--muted); }
.bs-next-row button b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.bs-next-row button small { font-size: 10px; color: var(--muted); }
.bs-next-row button:hover { border-color: var(--cyan); }
.bs-next-row button.on { border-color: var(--gold); background: rgba(255, 200, 61, .14); color: var(--gold); }
/* the final lobby on the Blockside end screen: kills, deaths and profit / loss per player */
.eor-pnl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.eor-pnl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.eor-pnl td { padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.eor-pnl tr.me td { background: rgba(59, 232, 255, .08); }
.eor-pnl tr.top td { color: var(--gold); }
.eor-pnl td.up { color: #8be04b; font-weight: 700; } .eor-pnl td.down { color: #ff6b7a; }
.eor-pnl .bag { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--gold); color: #14101a; margin-left: 4px; }

/* ---------- mobile fixes (owner, 2026-10-25) ---------- */
/* Studio page: nothing may push wider than the phone (the code box and the grid used to, cutting "coming soon" off) */
.sp-wrap, .sp-hero, .sp-access { min-width: 0; }
.sp-wrap > *, .sp-hero > *, .sp-access > * { min-width: 0; }
.sp-hero h1 { overflow-wrap: anywhere; }
.sp-bar { flex-wrap: wrap; }
@media (max-width: 560px) {
  .sp-code { white-space: pre-wrap; word-break: break-word; height: 300px; font-size: 11.5px; }
  .sp-hero h1 { font-size: 30px; }
  .sp-cta .play { width: 100%; }
}
/* the hub's top bar on a phone: icons only for Pass and Build, sound lives in the menu, a smaller wordmark */
@media (max-width: 560px) {
  .wordmark .sign { font-size: 20px; }
  .wordmark small { display: none; }
  .pass-btn, .build-btn { padding: 7px 9px; gap: 0; }
  .pass-btn .short, .build-btn .short, .pass-btn .long, .build-btn .long { display: none; }
  .pass-bar { left: 6px; right: 6px; }
  .music-btn { display: none; }
  .top-right { gap: 6px; }
  .me .xp { display: none; }
}
@media (max-width: 380px) { .wallet .paycoin { display: none; } }
@media (max-width: 560px) {
  #depositBtn { display: none !important; }          /* tap the balance: the wallet opens with Deposit right there */
  .pass-btn { min-width: 36px; justify-content: center; }
  .pass-btn svg { flex: 0 0 18px; }
}
.coin-ico { display: inline-block; vertical-align: -4px; flex: none; }
.wcoin .coin-ico { display: block; }
.paycoin { display: inline-flex; align-items: center; gap: 4px; }
.pill .coin-ico { margin-right: 2px; }
/* profile dialog */
.prof-dlg { width: min(560px, calc(100vw - 24px)); }
.prof-dlg h3 { color: var(--text); font-size: 18px; margin: 16px 0 8px; }
.prof-name { display: grid; gap: 6px; margin-top: 10px; } .prof-name span { font-size: 13px; color: var(--muted); }
.prof-name div { display: flex; gap: 8px; } .prof-name input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font: 600 16px var(--body); }
.prof-name small { color: var(--muted); font-size: 12px; }
.pfp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.pfp { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.05); font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.pfp.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,200,61,.3); }
.shop-card { grid-column: 1 / -1; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.shop-it { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); text-align: center; }
.shop-it b { font-size: 13px; } .shop-it small { font-size: 11px; color: var(--muted); }
.shop-art { height: 40px; display: grid; place-items: center; }
.shop-it .owned { font-size: 12px; color: #8be04b; font-weight: 700; }
.lb-dlg { width: min(760px, calc(100vw - 24px)); }
.lb-dlg h3 { color: var(--text); font-size: 18px; margin: 18px 0 8px; }
.lb-tabs, .lb-period { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.lb-tabs button, .lb-period button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.lb-tabs button.on, .lb-period button.on { border-color: var(--gold); color: var(--gold); background: rgba(255,200,61,.1); }
.lb-pfp { margin-right: 6px; }
.lb-dlg .eor-pnl { overflow-x: auto; display: table; }
/* ---------- Rock Paper Scissors ---------- */
#rps { position: fixed; top: var(--gbar-h, 32px); left: 0; right: 0; bottom: 0; z-index: 40; background: radial-gradient(900px 500px at 50% 0, rgba(255, 95, 162, .22), transparent 60%), #0b1020; color: var(--text); display: grid; grid-template-rows: auto auto 1fr auto; padding: 12px 16px 20px; overflow: auto; }
#rps[hidden] { display: none; }
.rps-top { display: flex; align-items: center; gap: 12px; } .rps-mode { color: var(--muted); font-size: 13px; }
.rps-leave { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; }
.rps-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; max-width: 640px; width: 100%; margin: 14px auto; }
.rps-side { display: grid; justify-items: center; } .rps-side b { font-size: 14px; color: var(--muted); } .rps-side span { font: 400 54px/1 var(--display); color: #ff7ac0; } .rps-side.me span { color: var(--cyan); }
.rps-mid { text-align: center; font: 400 22px var(--display); } .rps-mid small { display: block; font: 600 11px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rps-stage { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; min-height: 220px; }
.rps-stage .big { font: 400 28px var(--display); } .rps-stage .up { color: #8be04b; } .rps-stage .down { color: #ff6b7a; }
.rps-clock { font: 400 72px/1 var(--display); color: var(--gold); } .rps-clock.low { color: #ff6b7a; animation: rpsPulse .5s infinite alternate; }
@keyframes rpsPulse { to { transform: scale(1.12); } }
.rps-hands { display: flex; align-items: center; gap: 24px; font-size: 96px; } .rps-hands em { font: 400 24px var(--display); color: var(--muted); font-style: normal; }
.rps-hands .win { filter: drop-shadow(0 0 22px rgba(255, 200, 61, .8)); transform: scale(1.12); }
.rps-shake { display: flex; gap: 40px; font-size: 88px; } .rps-shake span { animation: rpsShake .26s ease-in-out 3; } .rps-shake span:last-child { transform: scaleX(-1); }
@keyframes rpsShake { 50% { transform: translateY(-26px); } }
.rps-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; width: 100%; margin: 0 auto; }
.rps-picks[hidden] { display: none; }
.rps-picks button { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 18px; border: 2px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font: 600 14px var(--body); transition: transform .12s; }
.rps-picks button span { font-size: 56px; line-height: 1.1; } .rps-picks button i { font-style: normal; font-size: 11px; color: var(--muted); }
.rps-picks button:hover:not(:disabled) { transform: translateY(-3px); border-color: #ff5fa2; }
.rps-picks button.on { border-color: var(--gold); background: rgba(255, 200, 61, .15); } .rps-picks button:disabled:not(.on) { opacity: .4; }
.rps-panel { max-width: 520px; width: 100%; margin: 20px auto; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: center; display: grid; gap: 8px; align-self: start; grid-row: 2 / 4; }
.rps-panel h2 { font: 400 34px var(--display); margin: 0; } .rps-panel .big { font: 400 26px var(--display); margin: 0; }
.rps-panel .cash { font: 400 34px var(--display); margin: 0; } .rps-panel .cash.up { color: #8be04b; } .rps-panel .cash.down { color: #ff6b7a; }
.rps-hist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 22px; } .rps-hist span { padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); } .rps-hist .w { border-color: #8be04b; } .rps-hist .l { border-color: #ff6b7a; }
.rps-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 560px) { .rps-picks button span { font-size: 44px; } .rps-hands { font-size: 72px; } .rps-side span { font-size: 42px; } }
/* RPS scene: graffiti wall, two doodle players facing off */
#rps { isolation: isolate; }
.rps-wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rps-wall svg { width: 100%; height: 100%; display: block; }
.rps-arena { display: flex; justify-content: space-between; align-items: flex-end; max-width: 760px; width: 100%; margin: 0 auto; padding: 0 4%; min-height: 230px; }
.rps-arena[hidden] { display: none; }
.rps-f { position: relative; width: min(38vw, 220px); }
.rps-f svg { width: 100%; display: block; }
.rps-f.them svg { transform: scaleX(-1); }
.rps-tag { text-align: center; font: 400 18px var(--display); color: #fff; text-shadow: 0 2px 0 #0b0618; margin-bottom: 2px; }
.rps-arm { position: absolute; top: 34%; right: -16%; transform-origin: 0% 50%; transform: rotate(10deg); }
.rps-f.them .rps-arm { right: auto; left: -16%; transform-origin: 100% 50%; transform: rotate(-10deg); }
.rps-hand { display: inline-block; font-size: clamp(56px, 9vw, 92px); filter: drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.rps-f.them .rps-hand { transform: scaleX(-1); }
.rps-f.think svg { animation: rpsBob 1.2s ease-in-out infinite; }
.rps-f.ready .rps-tag::after { content: ' ✓'; color: #8be04b; }
.rps-f.pump .rps-arm { animation: rpsPump .26s ease-in-out 3; }
.rps-f.them.pump .rps-arm { animation-name: rpsPumpL; }
.rps-f.win svg { animation: rpsJump .5s ease-in-out 2; } .rps-f.win .rps-hand { filter: drop-shadow(0 0 18px rgba(255, 210, 63, .9)); }
.rps-f.lose { opacity: .65; } .rps-f.lose svg { transform: translateY(6px) rotate(-4deg); } .rps-f.them.lose svg { transform: scaleX(-1) translateY(6px) rotate(-4deg); }
@keyframes rpsBob { 50% { transform: translateY(-5px); } }
@keyframes rpsPump { 50% { transform: rotate(-40deg) translateY(-18px); } }
@keyframes rpsPumpL { 50% { transform: rotate(40deg) translateY(-18px); } }
@keyframes rpsJump { 50% { transform: translateY(-22px); } }
.rps-f.them.win svg { animation-name: rpsJumpL; } @keyframes rpsJumpL { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-22px); } }
.rps-call { text-shadow: 0 3px 0 #0b0618; }
#rps .rps-stage { min-height: 120px; }
#rps { grid-template-rows: auto auto auto 1fr auto; }
.rps-panel { grid-row: 2 / 5; position: relative; z-index: 2; background: rgba(11, 16, 32, .9); }
.rps-board { background: rgba(11, 16, 32, .82); border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px; position: relative; z-index: 1; }
.rps-picks, .rps-stage { position: relative; z-index: 1; }
/* music popover and the in-game mini player */
.music-pop { position: fixed; z-index: 200; width: 260px; padding: 12px 14px; border-radius: 14px; background: #121830; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); display: grid; gap: 8px; color: var(--text); }
.music-pop[hidden] { display: none; }
.music-pop b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.music-pop #mpSong { font-weight: 700; font-size: 14px; }
.mp-row { display: flex; gap: 8px; } .mp-row button { flex: 1; }
.mp-vol { display: grid; gap: 4px; font-size: 12px; color: var(--muted); } .mp-vol input { width: 100%; accent-color: var(--gold); }
.gb-music { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; max-width: 42vw; }
.gb-music button { background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: 13px; }
.gb-music #gbSong { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .gb-music #gbSong { display: none; } }
.flag-search { display: grid; gap: 4px; margin: 8px 0; } .flag-search span { font-size: 12px; color: var(--muted); }
.flag-search input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font: 500 14px var(--body); }
.walk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.walk { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.walk svg { width: 54px; height: 110px; } .walk b { font-size: 12px; }
.walk.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,200,61,.3); }
.watch-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.chipb { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; font: 600 12px var(--body); }
.chipb.on { border-color: var(--gold); color: var(--gold); }
/* ---------- phones: game-style tab bar (Fortnite-like), daily challenges as a sheet ---------- */
.mnav, .mobile-only { display: none; }
@media (max-width: 720px) {
  .mobile-only { display: block; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(14, 10, 32, .96), #0b0618); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); }
  .mnav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; background: none; border: 0; color: #9aa0c0; font: 800 11px var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mnav button svg { width: 24px; height: 24px; transition: transform .15s; }
  .mnav button.on { color: #ffd23f; } .mnav button.on svg { transform: translateY(-2px) scale(1.12); filter: drop-shadow(0 0 8px rgba(255, 210, 63, .55)); }
  .mnav button.on::after { content: ''; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 3px; background: #ffd23f; }
  .mnav button i { position: absolute; top: 2px; right: 22%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff4f6d; color: #fff; font: 800 10px/16px var(--body); font-style: normal; }
  .mnav button i:empty { display: none; }
  #street, #pad { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* the top bar is just the logo, your balance and you */
  .pass-btn, .build-btn { display: none !important; }
  /* daily challenges: only as a sheet from the Quests tab */
  .daily { display: none; }
  .daily.sheet { display: block; left: 8px; right: 8px; width: auto; bottom: calc(68px + env(safe-area-inset-bottom)); max-height: 60vh; overflow: auto; border-radius: 18px; animation: sheetUp .22s ease-out; }
  @keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }
  .lobby { bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  dialog.pass-dlg { margin-bottom: calc(70px + env(safe-area-inset-bottom)); max-height: calc(100vh - 100px); }
}

/* map photos: the practice map picker on the launch pad and the vote in the waiting room */
.bs-maps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; width: 100%; }
.bs-maps button { flex: 1 1 140px; max-width: 220px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--raised, #1c1836); color: var(--text); text-align: left; cursor: pointer; }
.bs-maps button img, .bs-vote button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c0a16; }
.bs-maps button b { display: block; padding: 6px 10px; font-size: 13px; }
.bs-maps button[aria-checked="true"] { border-color: var(--gold, #ffc83d); }
.bs-vote button { width: 200px; padding: 0 0 8px; overflow: hidden; } .bs-vote button b, .bs-vote button span { padding: 0 12px; } .bs-vote button img { margin-bottom: 6px; }
@media (max-width: 560px) { .bs-vote button { width: calc(50% - 4px); } }

/* loadout B: one-tap classes (a character, the kit in plain words, what it's good at), Custom builds its own */
.bs-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.bs-classes .cls { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line); color: var(--text); cursor: pointer; }
.bs-classes .cls.on { border-color: var(--gold); background: rgba(255,200,61,.1); box-shadow: 0 0 0 3px rgba(255,200,61,.18); }
.bs-classes .who { position: relative; height: 84px; border-radius: 12px; display: grid; place-items: end center; background: radial-gradient(circle at 50% 70%, var(--lo-glow, rgba(255,255,255,.12)), transparent 70%); }
.bs-classes .who canvas { width: 40px; height: 64px; image-rendering: pixelated; }
.bs-classes .who .lo-gun { position: absolute; right: -4px; bottom: 4px; width: 34px; } .bs-classes .who .lo-gun svg { width: 100%; height: auto; }
.bs-classes .info b { display: block; font: 400 19px/1.1 var(--display); } .bs-classes .kit { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; } .bs-classes .good { display: block; font-size: 12px; color: #9cf0b8; margin-top: 2px; }
.bs-classes .key { position: absolute; top: 8px; right: 10px; font-style: normal; font-weight: 800; font-size: 12px; color: var(--muted); }
.bs-classes .lo-rusher { --lo-glow: rgba(255,79,163,.4); } .bs-classes .lo-trapstar { --lo-glow: rgba(255,200,61,.45); } .bs-classes .lo-shooter { --lo-glow: rgba(59,232,255,.4); }
.bs-classes .lo-bouncer { --lo-glow: rgba(255,138,61,.45); } .bs-classes .lo-bighomie { --lo-glow: rgba(124,240,122,.4); } .bs-classes .lo-custom { --lo-glow: rgba(176,107,255,.45); }
.bs-custom { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(176,107,255,.08); border: 1px solid rgba(176,107,255,.35); margin-bottom: 10px; }
.bs-custom > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .bs-custom > div > small { width: 72px; color: var(--muted); font-weight: 700; }
.bs-custom button { display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--ink); border: 2px solid var(--line); color: var(--text); font-weight: 700; font-size: 13px; text-align: left; cursor: pointer; }
.bs-custom button small { font-weight: 500; font-size: 10px; color: var(--muted); } .bs-custom button span svg { width: 40px; height: 16px; }
.bs-custom button.on { border-color: #b06bff; background: rgba(176,107,255,.18); }
.bs-slots .gd { border-color: rgba(124,240,122,.5); } .bs-slots .gd.used { opacity: .35; text-decoration: line-through; }
.bs-feed .wico.frag { font-size: 10px; font-weight: 900; color: #ffb347; letter-spacing: .04em; }
@media (max-width: 900px) { .bs-classes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bs-classes { grid-template-columns: 1fr; } .bs-classes .who { height: 64px; } }
.bs-maps-h { display: block; width: 100%; margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 12px; }
