/* 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, .72); backdrop-filter: blur(5px); }
.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; backdrop-filter: blur(4px); }
#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, .78); backdrop-filter: blur(6px); 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; backdrop-filter: blur(3px); }
.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; backdrop-filter: blur(5px); }
.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 { display: grid; grid-template-columns: 24px 1fr auto 84px; gap: 8px; padding: 4px 8px; border-radius: 8px; } .bs-score li.me { background: rgba(59, 232, 255, .16); } .bs-score li b { color: var(--gold); text-align: right; } .bs-score li em { font-style: normal; color: var(--muted); } .bs-score li i { font-style: normal; color: var(--muted); }
.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, .78); backdrop-filter: blur(6px); }
.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); }
.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(3, 1fr); gap: 10px; margin-bottom: 14px; }
.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-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: 1fr; } }

/* 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; } }
