/* GUNRUN: the page, ARCADE. Deep navy, hot yellow, cyan and magenta; Lilita One for every big word and number, Rethink Sans for
   text, Source Code Pro for small numbers. Chunky rounded plates with a hard sticker shadow, tilted stickers, the gun ladder as a
   strip of tiles that ends in the golden knife. No blur over the live canvas, nothing moves under the pointer, nothing overlaps,
   1920 x 945 without a scrollbar; phones by (pointer: coarse) / body.touch. Every scroller gets a thin themed bar. */
@font-face { font-family: 'Lilita One'; src: url('/fonts/LilitaOne.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rethink Sans'; src: url('/fonts/RethinkSans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Source Code Pro'; src: url('/fonts/SourceCodePro.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  --ink: #0a1230; --ink2: #111b45; --ink3: #18245a; --plate: rgba(12, 20, 52, 0.94); --plate2: rgba(16, 26, 66, 0.97); --line: #2a3a7e; --line2: #3a4d9c; --edge: #050a1e;
  --yel: #ffd23f; --yel2: #ffbe1a; --cyan: #2de2e6; --mag: #ff3cac; --text: #ffffff; --mute: #b3bde8; --dim: #7c88c2; --red: #ff4a5a; --mint: #3ff5a5; --gold: #ffc83a;
  --lime: var(--yel);
  --d: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif; --t: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --m: 'Source Code Pro', ui-monospace, Menlo, monospace;
  --r: 14px; --r2: 10px; --sh: 0 5px 0 var(--edge); --sh2: 0 3px 0 var(--edge);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 15px/1.45 var(--t); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--yel); text-decoration: none; }
kbd { font: 700 11px/1 var(--m); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); color: inherit; vertical-align: 1px; }
.num { font-family: var(--m); font-variant-numeric: tabular-nums; }
.big { font-family: var(--d); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 0.9; }
.is-hidden { display: none !important; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 7px; height: 7px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; } ::-webkit-scrollbar-button { display: none; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; outline: none; touch-action: none; }
#snap { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--ink) url(/art/title.webp) center / cover no-repeat; transition: opacity 0.7s, visibility 0s 0.7s; }
body.drawn #snap { opacity: 0; visibility: hidden; }
@media (max-width: 760px) { #snap { background-image: url(/art/title-s.webp); } }
#veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s; background:
  linear-gradient(90deg, rgba(8, 13, 40, 0.86) 0%, rgba(8, 13, 40, 0.6) 26%, rgba(8, 13, 40, 0) 40%, rgba(8, 13, 40, 0) 66%, rgba(8, 13, 40, 0.5) 82%, rgba(8, 13, 40, 0.8) 100%),
  linear-gradient(0deg, rgba(8, 13, 40, 0.9) 0%, rgba(8, 13, 40, 0) 22%), linear-gradient(180deg, rgba(8, 13, 40, 0.75) 0%, rgba(8, 13, 40, 0) 14%); }
body.on-title #veil { opacity: 1; }
.tab { position: relative; }
/* a sticker: a chunky label, tilted, with a hard shadow */
.stk { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 6px; border-radius: 9px; font: 400 17px/1 var(--d); letter-spacing: 0.02em; color: var(--ink); background: var(--yel); border: 3px solid var(--edge); box-shadow: var(--sh2); white-space: nowrap; transform: rotate(-3deg); }
.stk.c { background: var(--cyan); transform: rotate(2.5deg); } .stk.m { background: var(--mag); color: #fff; transform: rotate(-1.5deg); } .stk.w { background: #fff; transform: rotate(2deg); }
.stk .ldot { background: #fff; box-shadow: 0 0 8px #fff; }

/* ---------------------------------------------------------------- the top bar */
#bar { position: fixed; left: 0; right: 0; top: 0; height: 64px; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 0 22px; }
body:not(.on-title):not(.spectating) #bar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand .mark { width: 40px; height: 40px; display: block; flex: none; transform: rotate(-6deg); }
.brand .mark svg, .brand .mark img { width: 100%; height: 100%; display: block; border-radius: 10px; border: 3px solid var(--edge); box-shadow: var(--sh2); }
.brand .word { font: 400 34px/1 var(--d); letter-spacing: 0.02em; color: #fff; text-shadow: 0 3px 0 var(--edge); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav > * { color: var(--mute); font-size: 14.5px; font-weight: 700; padding: 8px 12px; border-radius: 10px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.nav > *:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.chip { font: 700 13px/1 var(--m); padding: 8px 11px; border-radius: 10px; background: var(--plate); border: 2px solid var(--line2); color: var(--yel); white-space: nowrap; }
.ca-pill { display: none; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 12px; background: var(--plate); border: 3px solid var(--yel); box-shadow: var(--sh2); }
.ca-pill.is-live { display: flex; }
.ca-lab { font: 700 11px/1 var(--m); color: var(--yel); letter-spacing: 0.08em; }
.ca-addr { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--m); color: var(--text); padding: 6px 7px; border-radius: 8px; max-width: 260px; }
.ca-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-addr:hover { background: rgba(255, 210, 63, 0.12); }
.ca-copy { font-style: normal; font: 700 11px/1 var(--m); color: var(--ink); background: var(--yel); padding: 5px 7px; border-radius: 6px; }
.ca-link { font: 700 11px/1 var(--m); color: var(--mute); padding: 5px 4px; }
.ca-link:hover { color: var(--text); }
.x-link { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; border: 3px solid var(--edge); box-shadow: var(--sh2); }
.x-link svg { width: 15px; height: 15px; fill: currentColor; }
.live { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.live i, .ldot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); display: inline-block; }
.live b { color: var(--text); font-family: var(--m); }

/* ---------------------------------------------------------------- the title: you in the arena, the ladder, the pot */
#title { position: fixed; inset: 64px 0 150px 0; z-index: 5; display: none; padding: 0 22px; }
body.on-title #title { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero { width: min(600px, 40vw); display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 16px); }
.stk-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wordmark { margin: 4px 0 0; font: 400 clamp(84px, 13vh, 132px)/0.86 var(--d); letter-spacing: 0.01em; color: var(--yel); -webkit-text-stroke: 5px var(--edge); paint-order: stroke fill; text-shadow: 0 8px 0 var(--edge), 0 14px 30px rgba(0, 0, 0, 0.45); transform: rotate(-2deg); transform-origin: left bottom; }
.wordmark span:last-child { color: var(--cyan); }
.tag { margin: 0; color: #e6ebff; font-size: 17px; line-height: 1.4; max-width: 560px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.tag b { color: #fff; } .tag .gold { color: var(--gold); }
.card { background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh), 0 20px 50px rgba(0, 0, 0, 0.45); }
.row2 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font: 700 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld > span em { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; }
.fld input { width: 100%; min-width: 0; height: 44px; padding: 0 13px; border-radius: 11px; background: #070d28; border: 2px solid var(--line2); color: var(--text); font-size: 15px; font-weight: 600; outline: none; transition: border-color 0.15s; }
.fld input:focus { border-color: var(--yel); }
.fld input.bad { border-color: var(--red); }
.go { display: flex; align-items: stretch; gap: 14px; }
.play { flex: none; width: 230px; height: 74px; border-radius: 16px; background: var(--yel); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 12px; border: 3px solid var(--edge); box-shadow: 0 7px 0 var(--edge), 0 12px 30px rgba(255, 210, 63, 0.35); transition: transform 0.08s, box-shadow 0.08s, background 0.15s; }
.play b { font: 400 48px/1 var(--d); letter-spacing: 0.04em; padding-top: 2px; }
.play kbd { background: rgba(0, 0, 0, 0.12); border-color: rgba(0, 0, 0, 0.3); }
.play:hover { background: #ffe066; }
.play:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--edge), 0 8px 20px rgba(255, 210, 63, 0.3); }
.go-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.prize-now { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prize-now span { font: 700 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.prize-now b { font: 600 15px/1.2 var(--m); color: var(--mint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: flex; gap: 5px; flex-wrap: nowrap; min-width: 0; }
.links button { font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 7px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 2px solid var(--line); white-space: nowrap; }
.links button:hover { color: var(--text); border-color: var(--line2); }
.nav > .hot, .links .hot { color: var(--yel); }
.side { width: min(400px, 28vw); align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 6px 0; }
/* the cast: twelve portraits */
.cast-box { background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); padding: 12px 12px 12px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 9px; }
.cls-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cls-head span { font: 400 21px/1 var(--d); color: #fff; flex: none; }
.cls-head b { font-weight: 600; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ct { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 0 4px; border-radius: 11px; background: var(--c, #2a3a7e); border: 3px solid var(--edge); text-align: center; overflow: hidden; transition: transform 0.12s; box-shadow: var(--sh2); }
.ct::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.ct img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; position: relative; }
.ct .cn { position: relative; width: 100%; display: block; }
.ct .cn b { display: block; font: 400 14px/1 var(--d); letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 0 var(--edge); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct .cn i, .ct .bars, .ct svg { display: none; }
.ct .key { position: absolute; top: 3px; left: 5px; font: 700 9px/1 var(--m); color: rgba(255, 255, 255, 0.8); z-index: 1; }
.ct:hover { transform: translateY(-2px); }
.ct.on { border-color: var(--yel); box-shadow: 0 0 0 2px var(--edge), 0 5px 0 var(--edge), 0 0 22px rgba(255, 210, 63, 0.55); }
.cls.small { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.cls.small .ct .cn b { font-size: 12px; }
/* the live box */
.feedbox { background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--sh); }
.fb-head { display: flex; align-items: center; gap: 10px; }
.rec { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--m); color: var(--mag); letter-spacing: 0.1em; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 8px var(--mag); }
.fb-head b { flex: 1; min-width: 0; font: 400 19px/1 var(--d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-head .num { font-size: 14px; color: var(--text); font-weight: 700; }
.fb-head .num.hot { color: var(--red); }
.tfeed { height: 136px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; }
.tf-empty { margin: auto 0; color: var(--dim); font-size: 13px; text-align: center; }
.kc { display: flex; align-items: center; gap: 7px; height: 30px; flex: none; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; animation: kcIn 0.28s ease-out; }
.kc .kn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kc img.gi { height: 22px; width: auto; max-width: 52px; flex: none; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)); }
.kc svg { width: 40px; height: 19px; flex: none; fill: #dfe5ff; }
.kc .hs { flex: none; width: 15px; height: 15px; fill: var(--yel); }
.kc .bn { margin-left: auto; flex: none; font: 700 11px/1 var(--m); color: var(--yel); }
.kc .bn.mag { color: var(--mag); } .kc .bn.gold { color: var(--gold); }
.kc.hot { border-color: rgba(255, 210, 63, 0.45); background: rgba(255, 210, 63, 0.1); }
.kc.gold { border-color: var(--gold); background: linear-gradient(90deg, rgba(255, 200, 58, 0.25), rgba(255, 200, 58, 0.06)); }
@keyframes kcIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fb-sub { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--line); padding-top: 8px; }
.fb-sub span { font: 700 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.fb-sub i { font: 600 12px/1 var(--m); color: var(--dim); font-style: normal; }
.ttop { display: flex; flex-direction: column; gap: 4px; }
.tr { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; height: 29px; padding: 0 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); }
.tr .p { font: 400 19px/1 var(--d); color: var(--yel); padding-top: 1px; }
.tr .d { width: 10px; height: 10px; border-radius: 3px; }
.tr .n { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .s { font: 700 12.5px/1 var(--m); color: var(--text); }
.tr .pay { font: 600 12px/1 var(--m); color: var(--mint); min-width: 64px; text-align: right; }
.tr.empty { opacity: 0.4; }
.fb-watch { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 6px 10px; border: 2px solid var(--line); border-radius: 9px; }
.fb-watch:hover { color: var(--text); border-color: var(--line2); }
/* the ladder: the round's 24 guns as tiles, the golden pistol and the golden knife at the end; who is where, live */
#t-ladder { position: fixed; left: 22px; right: 22px; bottom: 56px; height: 88px; z-index: 6; display: none; flex-direction: column; gap: 6px; }
body.on-title #t-ladder { display: flex; }
.lad-h { display: flex; align-items: baseline; gap: 12px; padding-left: 2px; }
.lad-h b { font: 400 18px/1 var(--d); color: #fff; text-shadow: 0 2px 0 var(--edge); }
.lad-h span { font: 600 12px/1 var(--m); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lad { flex: 1; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; min-height: 0; }
.lt { position: relative; border-radius: 10px; background: var(--plate); border: 3px solid var(--edge); box-shadow: var(--sh2); display: flex; align-items: center; justify-content: center; min-width: 0; overflow: visible; }
.lt img { width: 92%; height: 72%; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)); }
.lt .n { position: absolute; left: 5px; top: 3px; font: 700 9.5px/1 var(--m); color: var(--dim); }
.lt.gold { background: linear-gradient(160deg, #ffe27a, #ffb21a); }
.lt.gold .n { color: rgba(0, 0, 0, 0.55); }
.lt.knife { background: linear-gradient(160deg, #fff1a8, #ffc83a 55%, #ff9f1a); box-shadow: 0 3px 0 var(--edge), 0 0 22px rgba(255, 200, 58, 0.55); }
.lt .who { position: absolute; top: -9px; right: -4px; display: flex; gap: 2px; }
.lt .who i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--edge); }
.lt.lead { border-color: var(--cyan); }
#strip { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 6; display: none; align-items: center; gap: 28px; padding: 0 22px; background: rgba(7, 11, 33, 0.92); border-top: 3px solid var(--edge); }
body.on-title #strip { display: flex; }
#strip span { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; min-width: 0; opacity: 0; transition: opacity 0.3s; } #strip.on span { opacity: 1; }
#strip i { font: 700 10.5px/1 var(--m); font-style: normal; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
#strip b { font-size: 13px; font-weight: 600; color: var(--text); }
#strip span:first-child b { color: var(--yel); font: 400 19px/1 var(--d); } #strip span:nth-child(2) b { color: var(--mint); }
#strip .last { flex: 1; overflow: hidden; }
#strip .last b { font-family: var(--t); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- the HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud button, #hud input { pointer-events: auto; }
body.spectating #hud { top: 64px; }
.plate { background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); box-shadow: var(--sh2); }
#h-board { position: absolute; left: 16px; top: 16px; width: 248px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.hb { display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px; align-items: center; gap: 7px; height: 28px; padding: 0 6px; border-radius: 8px; font-size: 13.5px; font-weight: 700; }
.hb .p { font: 400 17px/1 var(--d); color: var(--ink); background: var(--mute); border-radius: 6px; text-align: center; padding: 3px 0 2px; }
.hb .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.hb .n i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.hb img.gi { height: 18px; width: 44px; object-fit: contain; justify-self: end; }
.hb.lead .p { background: var(--yel); }
.hb.gold .p { background: var(--gold); box-shadow: 0 0 10px rgba(255, 200, 58, 0.6); }
.hb.me { background: rgba(45, 226, 230, 0.16); } .hb.me .n { color: var(--cyan); }
#h-top { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 8px; }
.ht-cell { width: 92px; height: 62px; padding: 7px 10px; background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); box-shadow: var(--sh2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ht-cell i { font: 700 10px/1 var(--m); font-style: normal; color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.ht-cell b { font-size: 34px; }
.ht-clock { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ht-clock > b { width: 132px; height: 62px; display: flex; align-items: center; justify-content: center; padding-top: 3px; font-size: 48px; background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); box-shadow: var(--sh2); }
#h-top.hot .ht-clock > b { color: var(--red); }
#h-prize { font: 600 12px/1.2 var(--m); color: var(--mint); white-space: nowrap; padding: 5px 10px; border-radius: 9px; background: var(--plate); border: 2px solid var(--edge); }
#h-prize:empty { display: none; }
#h-prize b { font-weight: 700; }
/* your rung: the gun in hand, n / 24 with a pip per rung, the next gun */
.rung { height: 62px; display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; background: var(--plate); border: 3px solid var(--edge); border-radius: var(--r); box-shadow: var(--sh2); }
.rung .gnow { width: 92px; height: 46px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; }
.rung .gnow img { width: 88px; height: 42px; object-fit: contain; }
.rung .rg { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.rung .rg b { font-size: 30px; color: var(--yel); }
.pips { display: grid; grid-template-columns: repeat(24, 4px); gap: 2px; }
.pips i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.pips i.on { background: var(--cyan); } .pips i.g { background: rgba(255, 200, 58, 0.35); } .pips i.g.on { background: var(--gold); }
.rung .gnext { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0.85; }
.rung .gnext i { font: 700 9px/1 var(--m); font-style: normal; color: var(--mute); letter-spacing: 0.1em; }
.rung .gnext img { width: 58px; height: 28px; object-fit: contain; }
.rung.gold { border-color: var(--edge); background: linear-gradient(160deg, rgba(255, 210, 63, 0.35), var(--plate) 60%); box-shadow: var(--sh2), 0 0 26px rgba(255, 200, 58, 0.45); }
#h-teams { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); display: none; gap: 8px; }
body.mode-tdm #h-teams { display: flex; }
#h-teams .tm { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 10px; background: var(--plate); border: 3px solid var(--edge); font: 700 12px/1 var(--m); }
#h-teams .tm b { font: 400 24px/1 var(--d); }
#h-teams .t0 b { color: var(--cyan); } #h-teams .t1 b { color: var(--mag); }
#h-teams.me0 .t0, #h-teams.me1 .t1 { border-color: var(--yel); }
#h-zone, #h-zmark, #h-nuke, #h-nukekey, #h-speed, #tc-nuke { display: none !important; }
#h-feed { position: absolute; right: 16px; top: 16px; width: 380px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#h-feed .kc { max-width: 100%; background: var(--plate); border-color: var(--edge); box-shadow: var(--sh2); animation: kcIn 0.22s ease-out; }
#h-feed .kc.mine { border-color: var(--cyan); }
#h-feed .kc.died { border-color: var(--red); }
#h-feed .kc.gold { border-color: var(--gold); }
#h-cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --g: 8px; }
#h-cross i { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
#h-cross .c-t, #h-cross .c-b { width: 2px; height: 9px; left: -1px; }
#h-cross .c-l, #h-cross .c-r { height: 2px; width: 9px; top: -1px; }
#h-cross .c-t { top: calc(-1 * var(--g) - 9px); } #h-cross .c-b { top: var(--g); } #h-cross .c-l { left: calc(-1 * var(--g) - 9px); } #h-cross .c-r { left: var(--g); }
#h-cross .c-dot { width: 2px; height: 2px; left: -1px; top: -1px; }
#h-cross.off i:not(.c-dot) { opacity: 0; } #h-cross.off .c-dot { opacity: 0; }
#h-cross.knife i:not(.c-dot) { opacity: 0; }
#h-cross.knife .c-dot { width: 6px; height: 6px; left: -3px; top: -3px; border-radius: 50%; }
#h-hit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#h-hit i { position: absolute; width: 3px; height: 11px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); border-radius: 1px; }
#h-hit i:nth-child(1) { left: -11px; top: -16px; transform: rotate(-45deg); } #h-hit i:nth-child(2) { left: 9px; top: -16px; transform: rotate(45deg); }
#h-hit i:nth-child(3) { left: -11px; top: 5px; transform: rotate(45deg); } #h-hit i:nth-child(4) { left: 9px; top: 5px; transform: rotate(-45deg); }
#h-hit.on { animation: hit 0.22s ease-out; }
#h-hit.head i { background: var(--yel); }
#h-hit.kill i { background: var(--mag); height: 14px; }
@keyframes hit { 0% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
#h-pops { position: absolute; left: 50%; top: calc(50% + 96px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 460px; }
.pp { font: 400 24px/1 var(--d); letter-spacing: 0.02em; color: #fff; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; white-space: nowrap; animation: pp 1.7s ease-out forwards; }
.pp b { color: var(--yel); margin-right: 6px; display: inline-block; }
.pp.main { font-size: 30px; }
.pp.multi { color: var(--mag); font-size: 30px; }
@keyframes pp { 0% { opacity: 0; transform: translateY(6px) scale(1.2); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
#h-dmgn b { position: absolute; font: 400 25px/1 var(--d); color: #fff; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; pointer-events: none; animation: dmgn 0.75s ease-out forwards; }
#h-dmgn b.head { color: var(--yel); font-size: 29px; } #h-dmgn b.limb { color: #cfd6f5; font-size: 22px; }
@keyframes dmgn { 0% { transform: translateY(4px) scale(1.25); opacity: 1; } 18% { transform: translateY(0) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
body.dropped #h-dmgn { visibility: hidden; }
/* the big moment banner: a tilted sticker that slams in */
#h-banner { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); text-align: center; font: 400 72px/0.95 var(--d); letter-spacing: 0.02em; color: #fff; -webkit-text-stroke: 6px var(--edge); paint-order: stroke fill; text-shadow: 0 6px 0 var(--edge); opacity: 0; white-space: nowrap; }
#h-banner small { display: block; font: 700 16px/1.2 var(--t); -webkit-text-stroke: 0; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); color: #fff; margin-top: 10px; }
#h-banner.lime { color: var(--gold); }
#h-banner.on { animation: ban 2.2s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes ban { 0% { opacity: 0; transform: translateX(-50%) scale(1.6) rotate(-6deg); } 9% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); } 80% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); } 100% { opacity: 0; transform: translateX(-50%) scale(0.96) rotate(-3deg); } }
#h-flash { position: fixed; inset: 0; background: #fff; opacity: 0; }
#h-flash.on { animation: flash 2.2s ease-out forwards; }
@keyframes flash { 0% { opacity: 1; } 30% { opacity: 0.92; } 100% { opacity: 0; } }
#h-scope { position: absolute; inset: 0; display: none; }
#h-scope.on { display: block; }
#h-scope .lens { position: absolute; left: 50%; top: 50%; width: min(86vh, 86vw); height: min(86vh, 86vw); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 200vmax #050713, inset 0 0 50px 12px rgba(0, 0, 0, 0.85); }
#h-scope svg { width: 100%; height: 100%; display: block; }
/* the reticle of an optic, aimed in: a red dot / a holo ring / a prism chevron / a launcher ring, on the exact aim point (the screen's
   middle: where every shot leaves along). Projected like a real one: it stays on the aim point while the glass sways round it */
#h-ret { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: none; }
#h-ret.on { display: block; }
#h-ret i { position: absolute; display: block; }
#h-ret .r-dot { width: 6px; height: 6px; left: -3px; top: -3px; border-radius: 50%; background: #ff2b3d; box-shadow: 0 0 3px 1px rgba(255, 43, 61, 0.9), 0 0 9px rgba(255, 43, 61, 0.5); }
#h-ret .r-ring { display: none; width: 34px; height: 34px; left: -17px; top: -17px; border-radius: 50%; border: 2px solid rgba(255, 52, 70, 0.9); box-shadow: 0 0 6px rgba(255, 43, 61, 0.5), inset 0 0 5px rgba(255, 43, 61, 0.35); }
#h-ret .r-chev { display: none; width: 0; height: 0; left: -6px; top: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #ffb12e; filter: drop-shadow(0 0 3px rgba(255, 177, 46, 0.85)); }
#h-ret[data-t="holo"] .r-ring { display: block; }
#h-ret[data-t="holo"] .r-dot { width: 4px; height: 4px; left: -2px; top: -2px; }
#h-ret[data-t="prism"] .r-dot { display: none; }
#h-ret[data-t="prism"] .r-chev { display: block; }
#h-ret[data-t="ring"] .r-ring { display: block; width: 46px; height: 46px; left: -23px; top: -23px; border-color: rgba(255, 210, 63, 0.92); box-shadow: 0 0 6px rgba(255, 210, 63, 0.5); }
#h-ret[data-t="ring"] .r-dot { width: 4px; height: 4px; left: -2px; top: -2px; background: #ffd23f; box-shadow: 0 0 3px 1px rgba(255, 210, 63, 0.85); }
#h-dmg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; background: radial-gradient(circle at var(--dx, 50%) var(--dy, 50%), rgba(255, 40, 60, 0) 30%, rgba(255, 40, 60, 0.34) 100%); }
#h-dmg.on { opacity: var(--k, 1); transition: none; }
/* TAKING A HIT is unmistakable: the edge flashes red as hard as the hit (#h-dmg, --k), an arc round the middle points at who did it,
   the health bar flashes; low on health the edge pulses with a heartbeat */
#h-arcs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#h-arcs i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 8px solid transparent; border-top-color: rgba(255, 46, 66, 0.95); transform: rotate(var(--a, 0rad)); opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 40, 60, 0.8)); }
#h-arcs i.on { animation: arcHit 1.3s ease-out forwards; }
@keyframes arcHit { 0% { opacity: 1; } 55% { opacity: 0.85; } 100% { opacity: 0; } }
#h-low { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(120, 0, 12, 0) 42%, rgba(175, 0, 22, 0.5) 100%); }
#h-low.on { animation: lowBeat 0.95s ease-in-out infinite; }
@keyframes lowBeat { 0% { opacity: 0.35; } 10% { opacity: 0.85; } 22% { opacity: 0.45; } 34% { opacity: 0.75; } 60% { opacity: 0.38; } 100% { opacity: 0.35; } }
#h-life.hit .hl-bar { box-shadow: 0 0 0 3px #ff2d4a, 0 0 16px rgba(255, 45, 74, 0.85); }
#h-life.hit #h-hp { color: #fff; }
#h-life { position: absolute; left: 16px; bottom: 16px; width: 330px; padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 7px; align-items: end; }
.hl-top { grid-column: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hl-top b { font: 400 21px/1 var(--d); white-space: nowrap; }
.hl-top span { font: 700 11px/1 var(--m); color: var(--yel); white-space: nowrap; }
.hl-bar { grid-column: 1; height: 16px; border-radius: 6px; background: #0a1035; overflow: hidden; border: 2px solid var(--edge); }
.hl-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #22c55e, var(--mint)); transform-origin: left; transition: transform 0.12s; }
#h-life.low .hl-bar i { background: linear-gradient(90deg, #ff2d4a, var(--red)); }
#h-hp { grid-column: 2; grid-row: 1 / span 2; font-size: 56px; min-width: 76px; text-align: right; }
#h-life.low #h-hp { color: var(--red); }
#h-ammo { position: absolute; right: 16px; bottom: 16px; width: 300px; padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ic n" "w w" "nx nx" "rel rel"; align-items: center; column-gap: 10px; row-gap: 6px; }
#h-ammo .ic { grid-area: ic; height: 64px; display: grid; place-items: center start; }
#h-ammo .ic img { max-width: 170px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)); }
#h-ammo .w { grid-area: w; display: flex; align-items: baseline; gap: 10px; width: 100%; justify-content: space-between; }
#h-ammo .w b { font: 400 22px/1 var(--d); }
#h-slots { display: flex; gap: 4px; }
#h-slots i { font: 700 10px/1 var(--m); font-style: normal; padding: 3px 6px; border-radius: 5px; color: var(--dim); border: 2px solid var(--line); }
#h-slots i.on { color: var(--ink); background: var(--yel); border-color: var(--yel); }
#h-ammo .n { grid-area: n; display: flex; align-items: baseline; gap: 6px; justify-self: end; }
#h-ammo .n b { font-size: 56px; }
#h-ammo .n i { font: 400 24px/1 var(--d); color: var(--dim); font-style: normal; }
#h-ammo .n span { font: 400 28px/1 var(--d); color: var(--mute); }
#h-ammo .nx { grid-area: nx; display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; border-top: 2px solid var(--line); padding-top: 7px; min-width: 0; }
#h-ammo .nx img { height: 22px; width: 54px; object-fit: contain; }
#h-ammo .nx b { font: 400 15px/1 var(--d); color: #fff; text-transform: none; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h-ammo.empty .n b { color: var(--red); }
#h-ammo.knife .n { visibility: hidden; }
#h-ammo.gold { background: linear-gradient(160deg, rgba(255, 210, 63, 0.3), var(--plate) 55%); box-shadow: var(--sh2), 0 0 26px rgba(255, 200, 58, 0.4); }
#h-rel { grid-area: rel; width: 100%; height: 5px; border-radius: 3px; background: #0a1035; overflow: hidden; visibility: hidden; }
#h-rel.on { visibility: visible; }
#h-rel i { display: block; height: 100%; width: 0; background: var(--yel); }
#h-chat { position: absolute; left: 16px; bottom: 150px; width: 380px; display: flex; flex-direction: column; gap: 3px; }
#h-lines { display: flex; flex-direction: column; gap: 2px; }
.cl { font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95); color: #eef1ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl b { font-weight: 800; }
.cl.sys { color: var(--yel); }
#h-say { height: 34px; padding: 0 10px; border-radius: 9px; background: var(--plate2); border: 2px solid var(--yel); color: var(--text); outline: none; font-size: 13.5px; }
#h-esc { position: absolute; left: 16px; bottom: 112px; color: var(--mute); font-size: 11px; }
#h-emote { position: absolute; left: 130px; bottom: 116px; font: 700 11px/1 var(--m); color: var(--mute); padding: 6px 9px; border-radius: 9px; background: var(--plate); border: 2px solid var(--edge); }
#spec { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: var(--r); background: var(--plate); border: 3px solid var(--edge); box-shadow: var(--sh2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
#spec b { color: var(--yel); }
#spec em { font-style: normal; color: var(--mute); font-size: 12px; }
#spec button { padding: 6px 11px; border-radius: 9px; background: var(--yel); color: var(--ink); font-weight: 800; font-size: 12.5px; }
body.dropped #h-pops, body.dropped #h-cross { visibility: hidden; }
body.spectating #h-life, body.spectating #h-ammo, body.spectating #h-cross, body.spectating #h-chat, body.spectating #h-esc, body.spectating #h-emote, body.spectating #touch, body.spectating .rung { display: none; }

/* ---------------------------------------------------------------- touch */
#touch { display: none; }
body.touch #touch { display: block; }
body.touch #h-esc, body.touch #h-board, body.touch #h-chat, body.touch #h-emote { display: none; }
#tc-look { position: absolute; left: 40%; right: 0; top: 0; bottom: 0; pointer-events: auto; touch-action: none; }
#tc-stick { position: absolute; left: calc(26px + env(safe-area-inset-left)); bottom: calc(30px + env(safe-area-inset-bottom)); width: 136px; height: 136px; border-radius: 50%; background: rgba(10, 18, 48, 0.5); border: 3px solid rgba(255, 255, 255, 0.2); pointer-events: auto; touch-action: none; }
#tc-stick i { position: absolute; left: 43px; top: 43px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 210, 63, 0.9); box-shadow: 0 0 18px rgba(255, 210, 63, 0.4); }
#touch button { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; background: rgba(10, 18, 48, 0.66); border: 3px solid rgba(255, 255, 255, 0.24); color: #fff; font: 400 15px/1 var(--d); letter-spacing: 0.03em; user-select: none; -webkit-user-select: none; }
#touch button.on { background: rgba(255, 210, 63, 0.9); color: var(--ink); border-color: var(--yel); }
#tc-fire { right: calc(26px + env(safe-area-inset-right)); bottom: calc(40px + env(safe-area-inset-bottom)); width: 92px; height: 92px; font-size: 22px !important; border-color: rgba(255, 210, 63, 0.8) !important; }
#tc-jump { right: calc(132px + env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 70px; height: 70px; }
#tc-crouch { right: calc(132px + env(safe-area-inset-right)); bottom: calc(108px + env(safe-area-inset-bottom)); width: 64px; height: 64px; font-size: 13px !important; }
#tc-aim { right: calc(40px + env(safe-area-inset-right)); bottom: calc(146px + env(safe-area-inset-bottom)); width: 62px; height: 62px; }
#tc-rel { right: calc(212px + env(safe-area-inset-right)); bottom: calc(30px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
#tc-swap { right: calc(212px + env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
#tc-knife { right: calc(116px + env(safe-area-inset-right)); bottom: calc(184px + env(safe-area-inset-bottom)); width: 54px; height: 54px; font-size: 12px !important; }
#tc-menu { right: calc(12px + env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 12px !important; font: 600 20px/1 var(--t) !important; padding: 0 !important; }
body.touch #h-feed { right: calc(66px + env(safe-area-inset-right)); width: 270px; }
body.touch #h-feed .kc { height: 26px; font-size: 12px; }
body.touch #h-feed .kc img.gi { height: 16px; max-width: 38px; }
body.touch #h-life { left: calc(180px + env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 210px; padding: 7px 10px 8px; }
body.touch #h-life #h-hp { font-size: 38px; min-width: 52px; }
body.touch .hl-top b { font-size: 16px; }
body.touch #h-ammo { right: calc(292px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 168px; padding: 6px 9px 8px; grid-template-areas: "ic n" "w w" "rel rel"; }
body.touch #h-ammo .ic img { height: 34px; max-width: 90px; } body.touch #h-ammo .ic { height: 36px; } body.touch #h-ammo .nx { display: none; }
body.touch #h-ammo .n b { font-size: 36px; } body.touch #h-ammo .n span { font-size: 20px; } body.touch #h-ammo .w b { font-size: 15px; } body.touch #h-slots { display: none; }

/* ---------------------------------------------------------------- sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 9, 28, 0.7); }
.sheet.glassless { background: transparent; pointer-events: none; }
.sheet.glassless .panel { pointer-events: auto; }
.panel { position: relative; background: var(--plate2); border: 3px solid var(--edge); border-radius: 18px; padding: 22px 26px; box-shadow: 0 7px 0 var(--edge), 0 30px 80px rgba(0, 0, 0, 0.6); max-height: calc(100vh - 40px); overflow: auto; }
.panel h2 { margin: 0 0 12px; font: 400 42px/0.95 var(--d); letter-spacing: 0.01em; color: var(--yel); -webkit-text-stroke: 4px var(--edge); paint-order: stroke fill; text-shadow: 0 4px 0 var(--edge); }
.panel .note { color: var(--mute); font-size: 13.5px; margin: 8px 0; }
.panel .x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; color: var(--mute); }
.panel .x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.btn-l { height: 46px; padding: 0 20px; border-radius: 12px; background: var(--yel); color: var(--ink); font: 800 15px/1 var(--t); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border: 3px solid var(--edge); box-shadow: var(--sh2); }
.btn-l kbd { background: rgba(0, 0, 0, 0.12); border-color: rgba(0, 0, 0, 0.3); }
.btn-l:hover { background: #ffe066; }
.btn-l:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn-q { height: 46px; padding: 0 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 3px solid var(--line2); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-q:hover { border-color: var(--mute); }
.how { width: min(900px, 100%); }
.how .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.step { background: rgba(255, 255, 255, 0.05); border: 3px solid var(--edge); border-radius: 14px; padding: 14px 16px; }
.step > b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font: 400 24px/1 var(--d); color: var(--ink); background: var(--cyan); border: 3px solid var(--edge); }
.step:nth-child(2) > b { background: var(--yel); } .step:nth-child(3) > b { background: var(--mag); color: #fff; } .step:nth-child(4) > b { background: var(--gold); }
.step h3 { margin: 8px 0 6px; font: 400 23px/1 var(--d); }
.step p { margin: 0; color: #d3d9f6; font-size: 13.5px; }
.step .tp { display: none; }
body.touch .step .kb { display: none; } body.touch .step .tp { display: block; }
body.touch kbd { display: none; }
.sheet#s-dead { align-items: flex-end; padding-bottom: 140px; }
.dead { width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.dead h2 { margin: 0; font-size: 40px; color: #fff; }
.dead h2 b { font-weight: 400; }
.dead .dkill { display: flex; align-items: center; gap: 12px; }
.dead .dkill img { height: 40px; width: 110px; object-fit: contain; }
.dead p { margin: 0; color: var(--mute); font-size: 13.5px; }
.dead .tip { color: var(--yel); font-weight: 700; }
.d-back { position: absolute; right: 22px; top: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.d-back span { font: 700 10px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.d-back b { font-size: 50px; color: var(--yel); }
.result { width: min(820px, 100%); }
.result h2 { text-align: center; font-size: 56px; }
.result #r-sub { text-align: center; color: var(--mute); margin: 0 0 14px; font-size: 13px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 3px solid var(--edge); box-shadow: var(--sh2); min-width: 0; }
.pod.p1 { background: linear-gradient(170deg, rgba(255, 210, 63, 0.32), rgba(255, 210, 63, 0.06)); padding: 18px 8px; }
.pod .pl { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font: 400 32px/1 var(--d); color: var(--ink); background: var(--cyan); border: 3px solid var(--edge); }
.pod.p1 .pl { width: 56px; height: 56px; font-size: 40px; background: var(--yel); } .pod.p3 .pl { background: var(--mag); color: #fff; }
.pod .nm { font-weight: 800; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .ks { font: 600 12px/1.3 var(--m); color: var(--mute); text-align: center; }
.pod .pay { font: 700 14px/1 var(--m); color: var(--mint); }
.pod .why { font-size: 11.5px; color: var(--dim); text-align: center; }
.pod .gk { font: 400 14px/1 var(--d); color: var(--gold); }
.pod.empty { opacity: 0.4; }
.r-me { text-align: center; font-size: 15px; font-weight: 600; margin: 4px 0 10px; min-height: 22px; }
.r-me .sol { color: var(--mint); font-family: var(--m); }
.r-xp { text-align: center; font: 700 12.5px/1 var(--m); color: var(--cyan); min-height: 14px; }
.r-vote { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
.r-vote:empty { display: none; }
.vt { position: relative; height: 92px; border-radius: 14px; border: 3px solid var(--edge); box-shadow: var(--sh2); overflow: hidden; background: var(--ink3) center / cover no-repeat; display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 10px; text-align: left; }
.vt::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 28, 0) 30%, rgba(5, 9, 28, 0.85)); }
.vt b { position: relative; font: 400 21px/1 var(--d); color: #fff; text-shadow: 0 2px 0 var(--edge); }
.vt i { position: relative; font: 700 13px/1 var(--m); font-style: normal; color: var(--yel); }
.vt.on { border-color: var(--yel); box-shadow: 0 0 0 2px var(--edge), var(--sh2), 0 0 20px rgba(255, 210, 63, 0.5); }
.vt-h { text-align: center; font: 700 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 10px; }
.r-go { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 12px; }
.r-go .num { color: var(--mute); font-size: 12.5px; min-width: 110px; }
.fullboard { display: flex; flex-direction: column; gap: 2px; }
.fbr { display: grid; grid-template-columns: 30px 10px minmax(0, 1fr) 70px 46px 46px 46px; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; }
.fbr.h { height: 22px; font: 700 10px/1 var(--m); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fbr .p { font: 400 18px/1 var(--d); color: var(--mute); }
.fbr .d { width: 10px; height: 10px; border-radius: 3px; }
.fbr .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbr .s, .fbr .k { font: 600 12.5px/1 var(--m); text-align: right; }
.fbr .s { color: var(--yel); font-weight: 700; }
.fbr:nth-child(odd):not(.h) { background: rgba(255, 255, 255, 0.04); }
.fbr.paid .p { color: var(--yel); }
.fbr.me { background: rgba(45, 226, 230, 0.15) !important; }
.fbr.me .n { color: var(--cyan); }
.fullboard.small .fbr { height: 24px; font-size: 12.5px; }
.tabboard { width: min(660px, 100%); }
.tab-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tab-h b { font: 400 26px/1 var(--d); }
.tab-h span { font-size: 12.5px; color: var(--mint); }
.menu { width: min(540px, 100%); display: flex; flex-direction: column; gap: 12px; }
.menu h2 span { font-size: 13px; color: var(--mute); margin-left: 8px; -webkit-text-stroke: 0; text-shadow: none; font-family: var(--m); }
.m-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: #d3d9f6; }
.m-row label { display: flex; align-items: center; gap: 10px; }
.m-row input[type=range] { accent-color: var(--yel); width: 200px; }
.m-row .ck input { accent-color: var(--yel); }
.m-acct { font-size: 13.5px; color: var(--mute); }
.m-acct button { color: var(--yel); font-weight: 700; }
.m-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rooms { width: min(740px, 100%); }
.ro-list { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; margin-bottom: 12px; }
.ro { display: grid; grid-template-columns: minmax(0, 1.4fr) 70px 1fr 110px auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 13.5px; font-weight: 600; }
.ro .mint { color: var(--mint); }
.ro button { padding: 6px 10px; border-radius: 9px; border: 2px solid var(--line2); font-size: 12.5px; font-weight: 700; }
.ro button:hover { border-color: var(--yel); color: var(--yel); }
.ro-own { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ro-own .code { width: 130px; }
.acct { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; }
.tabs { display: flex; gap: 5px; }
.tabs button { flex: 1; height: 38px; border-radius: 10px; border: 2px solid var(--line2); font-weight: 700; font-size: 13.5px; color: var(--mute); }
.tabs button.on { color: var(--ink); background: var(--yel); border-color: var(--edge); }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 0; }
#toasts { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
body:not(.on-title) #toasts { top: 124px; }
.toast-m { padding: 10px 15px; border-radius: 12px; background: var(--plate2); border: 3px solid var(--edge); font-size: 13.5px; font-weight: 600; box-shadow: var(--sh2), 0 10px 30px rgba(0, 0, 0, 0.5); max-width: min(560px, 92vw); animation: kcIn 0.2s ease-out; }
.toast-m.good { border-color: var(--mint); }
.toast-m.bad { border-color: var(--red); }
#reconnect { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 45; padding: 14px 20px; border-radius: 14px; background: var(--plate2); border: 3px solid var(--yel); font-size: 14px; font-weight: 600; }
#reconnect b { color: var(--yel); margin-right: 6px; }
#slow3d { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 46; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--plate2); border: 3px solid var(--edge); box-shadow: var(--sh2); font-size: 13.5px; white-space: nowrap; }
#slow3d[hidden] { display: none; } #slow3d b { color: var(--text); } #slow3d span { color: var(--mute); } #slow3d .btn-l { height: 36px; font-size: 13.5px; } #slow3d .x { width: 30px; height: 30px; font-size: 20px; color: var(--mute); border-radius: 9px; }
@media (max-width: 760px) { #slow3d span { display: none; } }

/* ---------------------------------------------------------------- smaller windows */
@media (max-width: 1500px) { .hero { width: min(560px, 44vw); } .side { width: 350px; } .wordmark { font-size: clamp(76px, 11vh, 112px); } }
@media (max-height: 860px) { .tag { font-size: 15px; } .card { gap: 10px; padding: 13px 15px; } .tfeed { height: 96px; } .play { height: 64px; } .play b { font-size: 42px; } .wordmark { font-size: clamp(64px, 10vh, 96px); } #t-ladder { height: 76px; } #title { bottom: 136px; } }
@media (max-height: 760px) { .tag { display: none; } .feedbox { display: none; } }
@media (max-width: 1180px) { .nav > a { display: none; } .ca-addr { max-width: 150px; } .live { display: none; } .lt .n { display: none; } }
@media (max-width: 1050px) { .side { display: none; } .hero { width: min(640px, 100%); } #veil { background: linear-gradient(90deg, rgba(8, 13, 40, 0.92) 0%, rgba(8, 13, 40, 0.7) 55%, rgba(8, 13, 40, 0.25) 100%); } }
@media (max-width: 760px) {
  html, body { overflow: hidden; }
  #bar { height: 54px; gap: 10px; padding: 0 12px; } body.spectating #hud { top: 54px; } body.on-title #toasts { top: auto; bottom: 16px; }
  .brand .word { font-size: 26px; } .brand .mark { width: 30px; height: 30px; }
  .nav { display: none; } .ticker { display: none; } .x-link span { display: none; } .ca-addr { max-width: 112px; } .ca-link { display: none; }
  #title { inset: 54px 0 0 0; padding: 8px 12px 16px; overflow-y: auto; overflow-x: hidden; }
  body.on-title #title { display: block; }
  .hero { width: 100%; }
  .wordmark { font-size: 66px; }
  .stk { font-size: 13px; padding: 5px 9px 4px; }
  .tag { display: block; font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .go { flex-direction: column; gap: 10px; } .play { width: 100%; }
  .prize-now b { white-space: normal; }
  .links { flex-wrap: wrap; }
  .side { display: flex; width: 100%; margin-top: 12px; } .feedbox { display: none; }
  #strip, #t-ladder { display: none !important; }
  .how .steps { grid-template-columns: 1fr; }
  .result h2 { font-size: 42px; }
  .fbr { grid-template-columns: 26px 10px minmax(0, 1fr) 58px 34px 34px 34px; gap: 6px; padding: 0 6px; }
  .ro { grid-template-columns: minmax(0, 1fr) 54px auto; } .ro > :nth-child(3), .ro > :nth-child(4) { display: none; }
  .r-vote { grid-template-columns: 1fr; } .vt { height: 56px; }
}
/* a phone held sideways: short and wide */
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) {
  #bar { height: 48px; } body.spectating #hud { top: 48px; } .brand .word { font-size: 24px; } .brand .mark { width: 28px; height: 28px; }
  #title { inset: 48px 0 0 0; padding: 4px 16px 10px; overflow-y: auto; }
  body.on-title #title { display: flex; align-items: flex-start; }
  .tag, .stk-row { display: none; }
  .hero { width: min(560px, 62vw); gap: 6px; } .wordmark { font-size: 46px; -webkit-text-stroke: 3px var(--edge); }
  .card { padding: 10px 12px; gap: 7px; } .fld input { height: 36px; } .row2 { grid-template-columns: 0.8fr 1.2fr; }
  .go { flex-direction: row; } .play { width: 160px; height: 52px; } .play b { font-size: 32px; }
  .side { width: min(300px, 34vw); } .feedbox { display: none; } .cls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #strip, #t-ladder { display: none !important; }
  .sheet#s-dead { padding-bottom: 10px; }
  #h-top .ht-cell { display: none; } .ht-clock > b { width: 96px; height: 46px; font-size: 34px; } .rung { height: 46px; } .rung .gnow { width: 64px; height: 34px; } .rung .gnow img { width: 60px; height: 30px; } .rung .gnext { display: none; } .pips { display: none; } .rung .rg b { font-size: 24px; }
  #h-pops { top: calc(50% + 72px); } .pp { font-size: 19px; } .pp.main { font-size: 22px; }
  #h-banner { font-size: 42px; top: 25%; }
  body.on-title #toasts { left: auto; right: 12px; transform: none; align-items: flex-end; top: 56px; } body.on-title .toast-m { max-width: 30vw; }
}
#turn { display: none; }
@media (orientation: portrait) {
  body.touch:not(.on-title):not(.spectating) #turn { display: flex; position: fixed; inset: 0; z-index: 80; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(10, 18, 48, 0.96); text-align: center; padding: 24px; }
  #turn svg { width: 92px; height: 92px; fill: none; stroke: var(--yel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: turn 2.2s ease-in-out infinite; }
  #turn b { font: 400 34px/1 var(--d); }
  #turn span { font: 700 13px/1.3 var(--m); color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }
}
@keyframes turn { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* ---- the armory: finishes paid in burns */
.panel.armory { width: min(1180px, 100%); padding: 20px 24px 16px; }
.ar-head { display: flex; align-items: center; gap: 16px; padding-right: 46px; }
.ar-head h2 { margin: 0; }
.ar-head .note { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.ar-wallet { flex: none; height: 36px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 2px solid var(--line2); font: 700 13px/1 var(--t); color: var(--text); }
.ar-wallet:hover { border-color: var(--mute); } .ar-wallet.on { border-color: var(--mint); color: var(--mint); font-family: var(--m); }
.ar-main { display: grid; grid-template-columns: 210px minmax(0, 1fr) 272px; gap: 12px; margin-top: 14px; height: 340px; }
.ar-guns { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; }
.ar-guns button { flex: none; display: grid; grid-template-columns: 54px minmax(0, 1fr) 10px; align-items: center; gap: 8px; height: 36px; padding: 0 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 2px solid transparent; color: var(--mute); text-align: left; }
.ar-guns button img { width: 54px; height: 24px; object-fit: contain; }
.ar-guns button svg { width: 50px; height: 20px; fill: currentColor; opacity: 0.75; }
.ar-guns button b { font: 400 17px/1 var(--d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-guns button:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.ar-guns button.on { border-color: var(--yel); background: rgba(255, 210, 63, 0.1); color: var(--text); }
.ar-guns .dot { width: 8px; height: 8px; border-radius: 50%; }
.ar-stage { position: relative; min-height: 0; border-radius: 14px; background: radial-gradient(70% 75% at 50% 45%, rgba(45, 226, 230, 0.12), rgba(0, 0, 0, 0.45)); border: 3px solid var(--edge); overflow: hidden; }
.ar-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.ar-stage canvas:active { cursor: grabbing; }
.ar-gname { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.ar-gname b { font: 400 30px/0.95 var(--d); }
.ar-gname i { font: 700 11px/1 var(--m); font-style: normal; color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.ar-hint { position: absolute; right: 14px; bottom: 12px; font: 700 10.5px/1 var(--m); color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; pointer-events: none; }
.ar-detail { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 3px solid var(--edge); min-width: 0; }
.ar-tier { align-self: flex-start; padding: 5px 9px 4px; border-radius: 8px; font: 700 10.5px/1 var(--m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--t, #9aa6b4); }
.ar-detail h3 { margin: 2px 0 0; font: 400 36px/0.95 var(--d); }
.ar-detail .note { margin: 0; }
.ar-price { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.ar-price b { font: 700 21px/1 var(--m); color: var(--mint); }
.ar-price span { font-size: 12px; line-height: 1.35; color: var(--mute); }
#ar-go { justify-content: center; width: 100%; }
#ar-go:disabled { opacity: 0.5; cursor: default; }
.ar-msg { min-height: 32px; margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.ar-msg.good { color: var(--mint); } .ar-msg.bad { color: var(--red); } .ar-msg a { color: var(--yel); text-decoration: underline; }
.ar-skins { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ar-skins button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 6px 7px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 2px solid var(--line); text-align: left; min-width: 0; }
.ar-skins button:hover { border-color: var(--line2); background: rgba(255, 255, 255, 0.08); }
.ar-skins button.on { border-color: var(--yel); box-shadow: inset 0 0 0 1px var(--yel); }
.ar-skins .sw { width: 100%; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -10px 16px rgba(0, 0, 0, 0.28); }
.ar-skins b { font: 400 16px/1 var(--d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ar-skins i { font: 700 9px/1 var(--m); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; color: var(--t); }
.ar-skins em { font: 700 11px/1 var(--m); font-style: normal; color: var(--mute); white-space: nowrap; min-height: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ar-skins em.eq { color: var(--yel); } .ar-skins em.pr { color: var(--mint); }
.ar-foot { margin: 12px 0 0 !important; font-size: 12px !important; }
.ar-foot a, .lnk { color: var(--yel); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
@media (max-height: 820px) { .ar-main { height: 290px; } .ar-skins .sw { height: 22px; } }
@media (max-width: 1050px) { .ar-main { grid-template-columns: 170px minmax(0, 1fr); height: auto; } .ar-stage { height: 240px; } .ar-detail { grid-column: 1 / -1; } .ar-skins { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ar-head .note { display: none; } }
@media (max-width: 760px) {
  .panel.armory { padding: 14px; }
  .ar-head { gap: 10px; } .ar-head h2 { font-size: 32px; }
  .ar-main { grid-template-columns: minmax(0, 1fr); height: auto; gap: 8px; }
  .ar-guns { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .ar-guns button { grid-template-columns: 38px auto 8px; height: 34px; } .ar-guns button img { width: 38px; }
  .ar-stage { height: 190px; } .ar-detail { grid-column: auto; } .ar-detail .note { display: none; }
  .ar-skins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) {
  .panel.armory { padding: 10px 14px; width: min(820px, 100%); }
  .ar-head h2 { font-size: 30px; } .ar-head .note { display: none; } .ar-wallet { height: 30px; }
  .ar-main { grid-template-columns: 140px minmax(0, 1fr) 210px; height: 172px; margin-top: 8px; gap: 8px; }
  .ar-guns { flex-direction: column; overflow-y: auto; overflow-x: hidden; } .ar-guns button { grid-template-columns: 38px minmax(0, 1fr) 8px; height: 26px; gap: 6px; padding: 0 6px; } .ar-guns button b { font-size: 14px; }
  .ar-stage { height: auto; } .ar-detail { grid-column: auto; padding: 10px; gap: 5px; } .ar-detail .note { display: none; } .ar-detail h3 { font-size: 26px; } .ar-gname b { font-size: 22px; } .ar-price b { font-size: 16px; } .ar-price span { font-size: 11px; } #ar-go { height: 36px; font-size: 13.5px; } .ar-msg { min-height: 0; font-size: 11.5px; }
  .ar-skins { grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 8px; gap: 4px; } .ar-skins button { padding: 4px; gap: 3px; } .ar-skins .sw { height: 14px; } .ar-skins b { font-size: 13px; } .ar-skins em { display: none; } .ar-foot { display: none; }
}

/* ---- players: friends, the leaderboard, you */
.panel.social { width: min(740px, 100%); min-height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; }
.so-tabs { margin-bottom: 14px; }
.so-tabs2 { display: flex; gap: 4px; flex-wrap: wrap; }
.so-tabs2 button { height: 30px; padding: 0 11px; border-radius: 9px; border: 2px solid var(--line2); font-size: 12.5px; font-weight: 700; color: var(--mute); }
.so-tabs2 button.on { background: var(--yel); border-color: var(--edge); color: var(--ink); }
.so-body { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.so-body h4 { margin: 8px 0 0; font: 700 11px/1 var(--m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.so-body h4 .mono { color: var(--dim); margin-left: 4px; }
.so-body .note { margin: 0; }
.so-add { display: flex; gap: 8px; }
.so-add input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 11px; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--line2); font-size: 15px; outline: none; }
.so-add input:focus { border-color: var(--yel); }
.so-add .btn-l { height: 44px; }
.so-code { margin: 0; font-size: 13px; color: var(--mute); } .so-code b { color: var(--yel); font-family: var(--m); } .so-code .err { display: inline; margin-left: 10px; }
.so-row { display: grid; grid-template-columns: 10px minmax(0, auto) auto minmax(0, 1fr) auto 30px; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 2px solid var(--line); }
.so-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.so-row.on .dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); } .so-row.play .dot { background: var(--yel); box-shadow: 0 0 8px var(--yel); }
.so-row b { font: 400 19px/1 var(--d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-row .st { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-row.play .st { color: var(--yel); }
.so-row .sm { height: 32px; padding: 0 12px; font-size: 13px; }
.so-row .x.sm { position: static; width: 28px; height: 28px; font-size: 18px; color: var(--mute); border-radius: 8px; }
.so-row .x.sm:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.so-row.wait { opacity: 0.7; }
i.lv { display: inline-grid; place-items: center; min-width: 24px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(255, 210, 63, 0.16); border: 2px solid rgba(255, 210, 63, 0.5); color: var(--yel); font: 700 10.5px/1 var(--m); font-style: normal; }
.so-sub { font-size: 12.5px !important; } .so-sub b { color: var(--yel); }
.so-board { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; max-height: min(430px, calc(100vh - 290px)); }
.so-board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px auto; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.so-board .rk { font: 700 13px/1 var(--m); color: var(--mute); text-align: right; }
.so-board b { font: 400 18px/1 var(--d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-board .v { font: 700 13px/1 var(--m); color: var(--mint); }
.so-board li.top .rk { color: var(--yel); } .so-board li.me { background: rgba(45, 226, 230, 0.12); box-shadow: inset 0 0 0 2px rgba(45, 226, 230, 0.5); }
.so-you { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 3px solid var(--edge); }
.so-lv { display: grid; place-items: center; width: 88px; height: 88px; flex: none; border-radius: 16px; background: var(--yel); color: var(--ink); border: 3px solid var(--edge); }
.so-lv .big { font: 400 50px/1 var(--d); margin-top: 10px; } .so-lv i { font: 700 10px/1 var(--m); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; margin-top: -16px; }
.so-xp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.so-xp b { font: 400 28px/0.95 var(--d); }
.so-xp .bar { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.45); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line2); }
.so-xp .bar i { display: block; height: 100%; background: var(--cyan); }
.so-xp .mono { font: 600 12px/1 var(--m); color: var(--mute); }
.so-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.so-stats div { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 2px solid var(--line); }
.so-stats i { font: 700 10px/1 var(--m); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.so-stats b { font: 700 18px/1 var(--m); }
.badged { position: relative; }
.badged[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; right: -5px; top: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--mag); color: #fff; font: 700 10px/16px var(--m); text-align: center; }
@media (max-width: 760px) { .so-row { grid-template-columns: 10px minmax(0, 1fr) auto auto 28px; } .so-row .st { display: none; } .so-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .so-lv { width: 64px; height: 64px; } .so-lv .big { font-size: 38px; } }
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) { .panel.social { min-height: 0; padding: 12px 16px; } .panel.social h2 { font-size: 30px; margin-bottom: 8px; } .so-tabs { margin-bottom: 8px; } .so-board { max-height: calc(100vh - 210px); } .so-you { padding: 10px; } .so-lv { width: 60px; height: 60px; } .so-lv .big { font-size: 36px; } .so-stats div { padding: 7px 9px; } }
/* the free modes */
.panel.modes { width: min(640px, 100%); }
.mo-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "p go"; align-items: center; gap: 4px 16px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 3px solid var(--edge); }
.mo-t { grid-area: t; display: flex; align-items: baseline; gap: 10px; } .mo-t b { font: 400 26px/0.95 var(--d); } .mo-t i { font: 700 11px/1 var(--m); font-style: normal; color: var(--mint); }
.mo p { grid-area: p; margin: 0; color: var(--mute); font-size: 13px; } .mo .btn-l { grid-area: go; }
body.mode-tdm:not(.on-title) #toasts { top: 178px; }
body.mode-tdm #h-banner { top: 24%; }
body.spectating #h-top .ht-cell { display: none; }
body.bare #title, body.bare #bar, body.bare #strip, body.bare #t-ladder, body.bare #veil, body.bare #snap, body.bare #toasts { display: none !important; }
