/* FRAG: the page. Ink glass plates (no blur over the live canvas), sharp 3 px corners, a 3 px electric-lime tab on the left edge of
   what matters, Teko for every big number and word, Rethink Sans for text, Source Code Pro for small numbers. Nothing moves under
   the pointer, nothing overlaps, it fits 1920 x 945 without a scrollbar; the phone layouts by (pointer: coarse) / body.touch. */
@font-face { font-family: 'Teko'; src: url('/fonts/Teko.woff2') format('woff2'); font-weight: 300 700; 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: #0b0f14; --ink2: #111821; --plate: rgba(11, 15, 20, 0.9); --plate2: rgba(17, 24, 33, 0.94); --line: #1f2a36; --line2: #2b3a4b;
  --lime: #c6ff3d; --lime2: #a9e01f; --text: #e9eef4; --mute: #8795a5; --dim: #5d6b7b; --red: #ff4a3d; --mint: #14f195; --gold: #ffd25a;
  --d: 'Teko', 'Arial Narrow', sans-serif; --t: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --m: 'Source Code Pro', ui-monospace, Menlo, monospace;
  --r: 3px;
}
* { 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(--lime); text-decoration: none; }
kbd { font: 600 11px/1 var(--m); padding: 3px 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: inherit; vertical-align: 1px; }
.num { font-family: var(--m); font-variant-numeric: tabular-nums; }
.big { font-family: var(--d); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 0.82; }
.is-hidden { display: none !important; }
[hidden] { display: none !important; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; outline: none; touch-action: none; }
/* the first paint: a real capture of an arena until the live picture has drawn (then it fades away for good) */
#snap { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #0b0f14 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, 11, 15, 0.92) 0%, rgba(8, 11, 15, 0.78) 30%, rgba(8, 11, 15, 0.12) 52%, rgba(8, 11, 15, 0) 62%, rgba(8, 11, 15, 0.08) 74%, rgba(8, 11, 15, 0.62) 100%),
  linear-gradient(0deg, rgba(8, 11, 15, 0.82) 0%, rgba(8, 11, 15, 0) 16%), linear-gradient(180deg, rgba(8, 11, 15, 0.7) 0%, rgba(8, 11, 15, 0) 13%); }
body.on-title #veil { opacity: 1; }
.tab { position: relative; }
.tab::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); border-radius: var(--r) 0 0 var(--r); }

/* ---------------------------------------------------------------- the top bar */
#bar { position: fixed; left: 0; right: 0; top: 0; height: 58px; z-index: 20; display: flex; align-items: center; gap: 26px; 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: 34px; height: 34px; display: block; flex: none; }
.brand .mark svg, .brand .mark img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.brand .word { font: 600 34px/1 var(--d); letter-spacing: 0.04em; padding-top: 5px; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav > * { color: var(--mute); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--r); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.nav > *:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.chip { font: 600 13px/1 var(--m); padding: 7px 10px; border-radius: var(--r); background: var(--plate); border: 1px solid var(--line2); color: var(--lime); white-space: nowrap; }
.ca-pill { display: none; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: var(--r); background: var(--plate); border: 1px solid var(--lime); }
.ca-pill.is-live { display: flex; }
.ca-lab { font: 700 11px/1 var(--m); color: var(--lime); letter-spacing: 0.08em; }
.ca-addr { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--m); color: var(--text); padding: 5px 6px; border-radius: 2px; max-width: 260px; }
.ca-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-addr:hover { background: rgba(198, 255, 61, 0.1); }
.ca-copy { font-style: normal; font: 700 11px/1 var(--m); color: var(--ink); background: var(--lime); padding: 4px 6px; border-radius: 2px; }
.ca-link { font: 600 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: 7px 11px; border-radius: var(--r); background: var(--text); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.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: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); display: inline-block; }
.live b { color: var(--text); font-family: var(--m); }

/* ---------------------------------------------------------------- the title */
#title { position: fixed; inset: 58px 0 44px 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(620px, 46vw); display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px); }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 9px; font: 600 12px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em; }
.hero h1 { margin: 0; font: 600 clamp(54px, 7.4vh, 80px)/0.84 var(--d); letter-spacing: 0.01em; display: flex; flex-direction: column; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.hero h1 .lime { color: var(--lime); font-size: 0.62em; margin-top: 0.12em; }
.sub { margin: 0; color: #c3ccd6; font-size: 15px; max-width: 560px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 16px 21px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 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: 5px; min-width: 0; }
.fld > span { font: 600 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: 40px; padding: 0 11px; border-radius: var(--r); background: #070a0e; border: 1px solid var(--line2); color: var(--text); font-size: 14px; outline: none; transition: border-color 0.15s; }
.fld input:focus { border-color: var(--lime); }
.fld input.bad { border-color: var(--red); }
.cls-head { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.cls-head span { font: 600 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; flex: none; }
.cls-head b { font-weight: 500; font-size: 13px; color: #c3ccd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.ct { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 9px 8px; border-radius: var(--r); background: #0a0e13; border: 1px solid var(--line); text-align: left; transition: border-color 0.15s, background 0.15s, opacity 0.15s; opacity: 0.72; }
.ct:hover { opacity: 1; border-color: var(--line2); }
.ct.on { opacity: 1; border-color: var(--lime); background: linear-gradient(180deg, rgba(198, 255, 61, 0.1), rgba(198, 255, 61, 0.02)); box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.25), 0 0 24px rgba(198, 255, 61, 0.12); }
.ct svg { width: 100%; height: 30px; fill: #d5dde6; display: block; }
.ct.on svg { fill: var(--lime); }
.ct .cn { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.ct .cn b { font: 600 20px/0.9 var(--d); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct .cn i { font: 600 10px/1 var(--m); font-style: normal; color: var(--mute); white-space: nowrap; }
.ct .bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.ct .bars span { height: 3px; border-radius: 2px; background: #1c2633; overflow: hidden; }
.ct .bars span i { display: block; height: 100%; background: #9fb0c2; }
.ct.on .bars span i { background: var(--lime); }
.ct .key { position: absolute; top: 5px; right: 6px; font: 600 9px/1 var(--m); color: var(--dim); }
.cls.small .ct { padding: 6px 7px; }
.cls.small .ct svg { height: 22px; }
.cls.small .ct .cn b { font-size: 17px; }
.cls.small .ct .bars { display: none; }
.go { display: flex; align-items: stretch; gap: 14px; }
.play { flex: none; width: 210px; height: 62px; border-radius: var(--r); background: var(--lime); color: #0b1004; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 8px 26px rgba(198, 255, 61, 0.28); transition: background 0.15s, box-shadow 0.15s; }
.play b { font: 700 40px/1 var(--d); letter-spacing: 0.06em; padding-top: 6px; }
.play kbd { background: rgba(0, 0, 0, 0.14); border-color: rgba(0, 0, 0, 0.25); }
.play:hover { background: #d4ff66; box-shadow: 0 8px 34px rgba(198, 255, 61, 0.42); }
.go-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.prize-now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prize-now span { font: 600 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.prize-now b { font: 500 15px/1.2 var(--m); color: var(--mint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; }
.links button { font-size: 12.5px; font-weight: 600; color: var(--mute); padding: 6px 8px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); white-space: nowrap; }
.links button:hover { color: var(--text); border-color: var(--line2); }
.side { width: min(380px, 30vw); align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.feedbox { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 19px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.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(--red); letter-spacing: 0.1em; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.fb-head b { flex: 1; min-width: 0; font: 600 20px/1 var(--d); letter-spacing: 0.03em; padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-head .num { font-size: 14px; color: var(--text); }
.fb-head .num.hot { color: var(--red); }
.tfeed { height: 216px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden; }
.tf-empty { margin: auto 0; color: var(--dim); font-size: 13px; text-align: center; }
.kc { display: flex; align-items: center; gap: 8px; height: 31px; flex: none; padding: 0 10px; border-radius: var(--r); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; animation: kcIn 0.28s ease-out; }
.kc .kn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kc svg { width: 40px; height: 19px; flex: none; fill: #cfd8e2; }
.kc .hs { flex: none; width: 15px; height: 15px; fill: var(--lime); }
.kc .bn { margin-left: auto; flex: none; font: 600 11px/1 var(--m); color: var(--lime); }
.kc.hot { border-color: rgba(198, 255, 61, 0.35); background: rgba(198, 255, 61, 0.08); }
@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: 1px solid var(--line); padding-top: 9px; }
.fb-sub span { font: 600 11px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.fb-sub i { font: 500 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: 30px; padding: 0 8px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); }
.tr .p { font: 600 20px/1 var(--d); color: var(--lime); padding-top: 3px; }
.tr .d { width: 10px; height: 10px; border-radius: 2px; }
.tr .n { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .s { font: 500 12.5px/1 var(--m); color: var(--text); }
.tr .pay { font: 500 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: 600; color: var(--mute); padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r); }
.fb-watch:hover { color: var(--text); border-color: var(--line2); }
#strip { position: fixed; left: 0; right: 0; bottom: 0; height: 44px; z-index: 6; display: none; align-items: center; gap: 28px; padding: 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(8, 11, 15, 0.86); }
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; }      /* (the numbers show once they are real, never a row of zeros) */
#strip i { font: 600 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: 500; color: var(--text); }
#strip span:first-child b, #strip span:nth-child(2) b { color: var(--mint); }
#strip .last { flex: 1; overflow: hidden; }
#strip .last b { font-family: var(--t); font-weight: 600; 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: 58px; }      /* (watching: the header stays, the HUD sits under it) */
.plate { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }
#h-board { position: absolute; left: 16px; top: 16px; width: 236px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.hb { display: grid; grid-template-columns: 18px 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; height: 24px; padding: 0 7px; border-radius: 2px; font-size: 13px; font-weight: 600; }
.hb .p { font: 600 17px/1 var(--d); color: var(--mute); padding-top: 3px; }
.hb .d { width: 8px; height: 8px; border-radius: 2px; }
.hb .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .k { font: 500 12.5px/1 var(--m); }
.hb.paid .p { color: var(--lime); }
.hb.me { background: rgba(198, 255, 61, 0.14); }
.hb.me .n { color: var(--lime); }
#h-top { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 8px; }
.ht-cell { width: 92px; height: 58px; padding: 7px 10px; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ht-cell i { font: 600 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: 4px; }
.ht-clock > b { width: 132px; height: 58px; display: flex; align-items: center; justify-content: center; padding-top: 7px; font-size: 52px; background: var(--plate); border: 1px solid var(--line); border-bottom: 2px solid var(--lime); border-radius: var(--r); }
#h-top.hot .ht-clock > b { color: var(--red); border-bottom-color: var(--red); }
#h-prize { font: 500 12px/1.2 var(--m); color: var(--mint); white-space: nowrap; padding: 4px 9px; border-radius: var(--r); background: var(--plate); border: 1px solid var(--line); }
#h-prize:empty { display: none; }
#h-prize b { font-weight: 600; }
#h-teams { position: absolute; left: 50%; top: 96px; 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: 4px 10px; border-radius: var(--r); background: var(--plate); border: 1px solid var(--line); font: 600 12px/1 var(--m); }
#h-teams .tm b { font: 600 24px/1 var(--d); padding-top: 3px; }
#h-teams .t0 b { color: #a8e63a; } #h-teams .t1 b { color: #a07bff; }
#h-teams.me0 .t0, #h-teams.me1 .t1 { border-color: var(--lime); }
#h-feed { position: absolute; right: 16px; top: 16px; width: 360px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#h-feed .kc { max-width: 100%; background: var(--plate); border-color: var(--line); animation: kcIn 0.22s ease-out; }
#h-feed .kc.mine { border-color: var(--lime); }
#h-feed .kc.died { border-color: var(--red); }
#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.55); }
#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: 2px; height: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
#h-hit i:nth-child(1) { left: -10px; top: -15px; transform: rotate(-45deg); } #h-hit i:nth-child(2) { left: 8px; top: -15px; transform: rotate(45deg); }
#h-hit i:nth-child(3) { left: -10px; top: 5px; transform: rotate(45deg); } #h-hit i:nth-child(4) { left: 8px; top: 5px; transform: rotate(-45deg); }
#h-hit.on { animation: hit 0.22s ease-out; }
#h-hit.head i { background: var(--lime); }
#h-hit.kill i { background: var(--red); height: 13px; }
@keyframes hit { 0% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1); } }
#h-pops { position: absolute; left: 50%; top: calc(50% + 98px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 420px; }
.pp { font: 600 24px/1 var(--d); letter-spacing: 0.04em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75); white-space: nowrap; animation: pp 1.7s ease-out forwards; }
.pp b { color: var(--lime); font-weight: 700; margin-right: 6px; display: inline-block; }
.pp.main { font-size: 30px; }
.pp.multi { color: var(--lime); font-size: 28px; }
@keyframes pp { 0% { opacity: 0; transform: translateY(6px) scale(1.15); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
#h-dmgn b { position: absolute; font: 600 25px/1 var(--d); color: #fff; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 1px #000; pointer-events: none; animation: dmgn 0.75s ease-out forwards; }
#h-dmgn b.head { color: var(--lime); font-size: 29px; } #h-dmgn b.limb { color: #c3ccd6; 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; }
#h-speed { position: absolute; left: 50%; top: calc(50% + 60px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 3px; opacity: 0.85; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
#h-speed b { font: 600 20px/1 var(--d); }
#h-speed i { font: 600 10px/1 var(--m); font-style: normal; color: var(--mute); }
#h-speed.fast b { color: var(--lime); }
#h-banner { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); text-align: center; font: 600 72px/0.9 var(--d); letter-spacing: 0.04em; color: #fff; text-shadow: 0 4px 26px rgba(0, 0, 0, 0.7); opacity: 0; white-space: nowrap; }
#h-banner small { display: block; font: 600 15px/1.2 var(--t); letter-spacing: 0; color: #d5dde6; margin-top: 8px; }
#h-banner.lime { color: var(--lime); }
#h-banner.on { animation: ban 2.1s ease-out forwards; }
@keyframes ban { 0% { opacity: 0; transform: translateX(-50%) scale(1.3); } 8% { opacity: 1; transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(0.98); } }
#h-nuke { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); display: none; align-items: center; gap: 14px; padding: 8px 16px; border-radius: var(--r); background: rgba(80, 6, 4, 0.92); border: 1px solid var(--red); box-shadow: 0 0 40px rgba(255, 74, 61, 0.4); }
#h-nuke.on { display: flex; animation: siren 0.8s ease-in-out infinite alternate; }
#h-nuke b { font: 600 30px/1 var(--d); color: var(--red); letter-spacing: 0.06em; padding-top: 4px; }
#h-nuke span { font-size: 13px; color: #ffd6d2; }
#h-nuke em { font: 600 34px/1 var(--d); font-style: normal; color: #fff; padding-top: 4px; min-width: 34px; text-align: right; }
@keyframes siren { from { box-shadow: 0 0 20px rgba(255, 74, 61, 0.3); } to { box-shadow: 0 0 60px rgba(255, 74, 61, 0.65); } }
#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 #050608, inset 0 0 50px 12px rgba(0, 0, 0, 0.85); }
#h-scope svg { width: 100%; height: 100%; display: block; }
#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, 30, 20, 0) 30%, rgba(255, 30, 20, 0.32) 100%); }
#h-dmg.on { opacity: 1; transition: none; }
#h-life { position: absolute; left: 16px; bottom: 16px; width: 340px; padding: 10px 14px 12px 17px; 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: 600 22px/1 var(--d); letter-spacing: 0.03em; padding-top: 3px; white-space: nowrap; }
.hl-top span { font: 600 11px/1 var(--m); color: var(--lime); white-space: nowrap; }
.hl-bar { grid-column: 1; height: 12px; border-radius: 2px; background: #1a232e; overflow: hidden; }
.hl-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime2), var(--lime)); transform-origin: left; transition: transform 0.12s; }
#h-life.low .hl-bar i { background: linear-gradient(90deg, #ff2d20, var(--red)); }
#h-hp { grid-column: 2; grid-row: 1 / span 2; font-size: 58px; padding-top: 7px; min-width: 76px; text-align: right; }
#h-life.low #h-hp { color: var(--red); }
#h-nukekey { position: absolute; left: 16px; bottom: 112px; display: none; align-items: center; gap: 12px; padding: 8px 12px; border-color: var(--red); }
#h-nukekey.on { display: flex; }
#h-nukekey b { font: 600 22px/1 var(--d); color: var(--red); padding-top: 3px; }
#h-nukekey span { font-size: 12.5px; color: var(--mute); }
#h-ammo { position: absolute; right: 16px; bottom: 16px; width: 270px; padding: 10px 16px 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#h-ammo .w { display: flex; align-items: baseline; gap: 10px; width: 100%; justify-content: space-between; }
#h-ammo .w b { font: 600 22px/1 var(--d); letter-spacing: 0.03em; padding-top: 3px; }
#h-slots { display: flex; gap: 4px; }
#h-slots i { font: 600 10px/1 var(--m); font-style: normal; padding: 3px 5px; border-radius: 2px; color: var(--dim); border: 1px solid var(--line); }
#h-slots i.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }
#h-ammo .n { display: flex; align-items: baseline; gap: 6px; }
#h-ammo .n b { font-size: 60px; padding-top: 6px; }
#h-ammo .n i { font: 600 26px/1 var(--d); color: var(--dim); font-style: normal; }
#h-ammo .n span { font: 600 30px/1 var(--d); color: var(--mute); padding-top: 3px; }
#h-ammo.empty .n b { color: var(--red); }
#h-ammo.knife .n { visibility: hidden; }
#h-rel { width: 100%; height: 3px; border-radius: 2px; background: #1a232e; overflow: hidden; visibility: hidden; }
#h-rel.on { visibility: visible; }
#h-rel i { display: block; height: 100%; width: 0; background: var(--lime); }
#h-chat { position: absolute; left: 16px; bottom: 120px; width: 380px; display: flex; flex-direction: column; gap: 3px; }
#h-lines { display: flex; flex-direction: column; gap: 2px; }
.cl { font-size: 13.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); color: #e3e8ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl b { font-weight: 700; }
.cl.sys { color: var(--mute); }
#h-say { height: 32px; padding: 0 10px; border-radius: var(--r); background: var(--plate2); border: 1px solid var(--lime); color: var(--text); outline: none; font-size: 13.5px; }
#h-esc { position: absolute; left: 16px; top: 190px; color: var(--mute); font-size: 11px; }
body.nukeready #h-chat { bottom: 170px; }
#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: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
#spec b { color: var(--lime); }
#spec em { font-style: normal; color: var(--mute); font-size: 12px; }
#spec button { padding: 5px 10px; border-radius: var(--r); background: var(--lime); color: var(--ink); font-weight: 700; font-size: 12.5px; }
body.dropped #h-speed, 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-speed, body.spectating #h-chat, body.spectating #h-esc, body.spectating #h-nukekey, body.spectating #touch { display: none; }

/* ---------------------------------------------------------------- touch */
#touch { display: none; }
body.touch #touch { display: block; }
body.touch #h-esc, body.touch #h-board, body.touch #h-chat { 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(11, 15, 20, 0.45); border: 2px solid rgba(255, 255, 255, 0.18); pointer-events: auto; touch-action: none; }
#tc-stick i { position: absolute; left: 43px; top: 43px; width: 50px; height: 50px; border-radius: 50%; background: rgba(198, 255, 61, 0.85); box-shadow: 0 0 18px rgba(198, 255, 61, 0.35); }
#touch button { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; background: rgba(11, 15, 20, 0.62); border: 2px solid rgba(255, 255, 255, 0.22); color: #fff; font: 600 15px/1 var(--d); letter-spacing: 0.05em; padding-top: 3px; user-select: none; -webkit-user-select: none; }
#touch button.on { background: rgba(198, 255, 61, 0.85); color: var(--ink); border-color: var(--lime); }
#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(198, 255, 61, 0.7) !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-nuke { right: calc(26px + env(safe-area-inset-right)); bottom: calc(222px + env(safe-area-inset-bottom)); width: 60px; height: 60px; font-size: 13px !important; border-color: var(--red) !important; color: var(--red) !important; display: none; }
body.nukeready #tc-nuke { display: block; }
#tc-menu { right: calc(12px + env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: var(--r) !important; font: 600 20px/1 var(--t) !important; padding: 0 !important; }
body.touch #h-feed { right: calc(66px + env(safe-area-inset-right)); width: 260px; }
body.touch #h-feed .kc { height: 26px; font-size: 12px; }
body.touch #h-feed .kc svg { width: 32px; height: 15px; }
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 13px; }
body.touch #h-life #h-hp { font-size: 40px; min-width: 52px; }
body.touch .hl-top b { font-size: 17px; }
body.touch #h-ammo { right: calc(292px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 150px; padding: 7px 10px 8px; }
body.touch #h-ammo .n b { font-size: 40px; } body.touch #h-ammo .n span { font-size: 22px; } body.touch #h-ammo .w b { font-size: 16px; } body.touch #h-slots { display: none; }
body.touch #h-nukekey { display: none !important; }

/* ---------------------------------------------------------------- sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 12, 0.66); }
.sheet.glassless { background: transparent; pointer-events: none; }
.sheet.glassless .panel { pointer-events: auto; }
.panel { position: relative; background: var(--plate2); border: 1px solid var(--line2); border-radius: var(--r); padding: 22px 26px 22px 29px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); max-height: calc(100vh - 40px); overflow: auto; }
.panel h2 { margin: 0 0 12px; font: 600 40px/0.9 var(--d); letter-spacing: 0.03em; padding-top: 5px; }
.panel .note { color: var(--mute); font-size: 13px; margin: 8px 0; }
.panel .x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: var(--r); font-size: 22px; color: var(--mute); }
.panel .x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-l { height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--lime); color: var(--ink); font: 700 15px/1 var(--t); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.btn-l kbd { background: rgba(0, 0, 0, 0.12); border-color: rgba(0, 0, 0, 0.25); }
.btn-l:hover { background: #d4ff66; }
.btn-q { height: 44px; padding: 0 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line2); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-q:hover { border-color: var(--mute); }
.how { width: min(880px, 100%); }
.how .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.step { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.step > b { font: 600 34px/0.8 var(--d); color: var(--lime); }
.step h3 { margin: 6px 0 6px; font: 600 24px/1 var(--d); letter-spacing: 0.02em; }
.step p { margin: 0; color: #c3ccd6; 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: 120px; }
.dead { width: min(600px, 100%); display: flex; flex-direction: column; gap: 8px; }
.dead h2 { margin: 0; font-size: 36px; }
.dead h2 b { font-weight: 600; }
.dead p { margin: 0; color: var(--mute); font-size: 13px; }
.d-back { position: absolute; right: 22px; top: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.d-back span { font: 600 10px/1 var(--m); color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.d-back b { font-size: 48px; color: var(--lime); padding-top: 4px; }
.result { width: min(760px, 100%); }
.result h2 { text-align: center; font-size: 52px; }
.result #r-sub { text-align: center; color: var(--mute); margin: 0 0 14px; font-size: 12.5px; }
.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: 4px; padding: 12px 8px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); min-width: 0; }
.pod.p1 { border-color: var(--lime); background: rgba(198, 255, 61, 0.07); padding: 18px 8px; }
.pod .pl { font: 600 44px/0.8 var(--d); color: var(--lime); }
.pod.p1 .pl { font-size: 60px; }
.pod .nm { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .ks { font: 500 12px/1.3 var(--m); color: var(--mute); text-align: center; }
.pod .pay { font: 600 13px/1 var(--m); color: var(--mint); }
.pod .why { font-size: 11.5px; color: var(--dim); text-align: center; }
.pod.empty { opacity: 0.4; }
.r-me { text-align: center; font-size: 15px; margin: 4px 0 10px; min-height: 22px; }
.r-me .sol { color: var(--mint); font-family: var(--m); }
.r-xp { display: none; }
.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: 2px; font-size: 13.5px; }
.fbr.h { height: 22px; font: 600 10px/1 var(--m); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fbr .p { font: 600 19px/1 var(--d); color: var(--mute); padding-top: 3px; }
.fbr .d { width: 10px; height: 10px; border-radius: 2px; }
.fbr .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbr .s, .fbr .k { font: 500 12.5px/1 var(--m); text-align: right; }
.fbr .s { color: var(--text); font-weight: 600; }
.fbr:nth-child(odd):not(.h) { background: rgba(255, 255, 255, 0.025); }
.fbr.paid .p { color: var(--lime); }
.fbr.me { background: rgba(198, 255, 61, 0.12) !important; }
.fbr.me .n { color: var(--lime); }
.fullboard.small .fbr { height: 24px; font-size: 12.5px; }
.tabboard { width: min(640px, 100%); }
.tab-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tab-h b { font: 600 26px/1 var(--d); padding-top: 3px; }
.tab-h span { font-size: 12.5px; color: var(--mint); }
.menu { width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px; }
.menu h2 span { font-size: 13px; color: var(--mute); margin-left: 8px; }
.m-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #c3ccd6; }
.m-row label { display: flex; align-items: center; gap: 10px; }
.m-row input[type=range] { accent-color: var(--lime); width: 200px; }
.m-row .ck input { accent-color: var(--lime); }
.m-acct { font-size: 13.5px; color: var(--mute); }
.m-acct button { color: var(--lime); font-weight: 600; }
.m-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rooms { width: min(720px, 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: var(--r); background: rgba(255, 255, 255, 0.035); font-size: 13.5px; }
.ro .mint { color: var(--mint); }
.ro button { padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; }
.ro button:hover { border-color: var(--lime); color: var(--lime); }
.ro-own { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ro-own .code { width: 130px; }
.acct { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.tabs { display: flex; gap: 4px; }
.tabs button { flex: 1; height: 36px; border-radius: var(--r); border: 1px solid var(--line2); font-weight: 600; font-size: 13.5px; color: var(--mute); }
.tabs button.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 0; }
#toasts { position: fixed; left: 50%; top: 72px; 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: 120px; }
.toast-m { padding: 9px 14px; border-radius: var(--r); background: var(--plate2); border: 1px solid var(--line2); font-size: 13.5px; box-shadow: 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(--lime); }
.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: var(--r); background: var(--plate2); border: 1px solid var(--lime); font-size: 14px; }
#reconnect b { color: var(--lime); 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: var(--r); background: var(--plate2); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 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: 34px; font-size: 13.5px; } #slow3d .x { width: 30px; height: 30px; font-size: 20px; color: var(--mute); border-radius: var(--r); } #slow3d .x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 760px) { #slow3d span { display: none; } }

/* ---------------------------------------------------------------- smaller windows */
@media (max-width: 1500px) { .hero { width: min(590px, 50vw); } .side { width: 340px; } .tfeed { height: 186px; } }
@media (max-height: 820px) { .sub { display: none; } .hero h1 { font-size: 58px; } .card { gap: 10px; padding: 13px 15px 13px 18px; } .tfeed { height: 158px; } .ct svg { height: 24px; } .ct { gap: 3px; padding: 6px 8px; } }
@media (max-width: 1180px) { .nav > a { display: none; } .ca-addr { max-width: 150px; } .live { display: none; } }
@media (max-width: 1050px) { .side { display: none; } .hero { width: min(640px, 100%); } #veil { background: linear-gradient(90deg, rgba(8, 11, 15, 0.92) 0%, rgba(8, 11, 15, 0.7) 55%, rgba(8, 11, 15, 0.25) 100%); } }
@media (max-width: 760px) {
  html, body { overflow: hidden; }
  #bar { height: 52px; gap: 10px; padding: 0 12px; } body.spectating #hud { top: 52px; } body.on-title #toasts { top: auto; bottom: 16px; } .eyebrow { display: none; }
  .brand .word { font-size: 28px; } .brand .mark { width: 28px; height: 28px; }
  .nav { display: none; } .ticker { display: none; } .x-link span { display: none; } .ca-addr { max-width: 112px; } .ca-link { display: none; }
  #title { inset: 52px 0 0 0; padding: 8px 12px 16px; overflow-y: auto; overflow-x: hidden; }
  body.on-title #title { display: block; }
  .hero { width: 100%; }
  .hero h1 { font-size: 48px; }
  .eyebrow { font-size: 10.5px; }
  .sub { display: block; font-size: 13.5px; }
  .row2 { grid-template-columns: 1fr; }
  .cls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .ct { padding: 6px 6px; } .ct .cn i { display: none; } .ct .cn b { font-size: 16px; } .ct svg { height: 20px; } .ct .key { display: none; }
  .go { flex-direction: column; gap: 10px; } .play { width: 100%; }
  .prize-now b { white-space: normal; }
  .links { flex-wrap: wrap; }
  #strip { display: none !important; }
  .how .steps { grid-template-columns: 1fr; }
  .result h2 { font-size: 40px; }
  .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; }
}
/* a phone held sideways: short and wide */
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) {
  #bar { height: 46px; } body.spectating #hud { top: 46px; } .brand .word { font-size: 26px; } .brand .mark { width: 26px; height: 26px; }
  #title { inset: 46px 0 0 0; padding: 4px 16px 10px; overflow-y: auto; }
  body.on-title #title { display: flex; align-items: flex-start; }
  .eyebrow, .sub { display: none; }
  .hero { width: min(600px, 70vw); gap: 6px; } .hero h1 { font-size: 34px; flex-direction: row; gap: 12px; align-items: baseline; } .hero h1 .lime { font-size: 0.7em; }
  .card { padding: 10px 12px 10px 15px; gap: 7px; } .fld input { height: 34px; } .row2 { grid-template-columns: 0.8fr 1.2fr; }
  .ct svg { height: 18px; } .ct .bars { display: none; } .ct { padding: 5px 6px; gap: 2px; } .ct .cn b { font-size: 15px; }
  .go { flex-direction: row; } .play { width: 160px; height: 50px; } .play b { font-size: 32px; }
  .side { display: none; } #strip { display: none !important; }
  .sheet#s-dead { padding-bottom: 10px; }
  #h-top .ht-cell { display: none; } .ht-clock > b { width: 96px; height: 44px; font-size: 38px; }
  #h-pops { top: calc(50% + 72px); } #h-speed { top: calc(50% + 42px); } .pp { font-size: 19px; } .pp.main { font-size: 22px; }
  #h-banner { font-size: 40px; 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; }
}

/* a phone held upright in a match: turn it */
#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(11, 15, 20, 0.95); text-align: center; padding: 24px; }
  #turn svg { width: 92px; height: 92px; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: turn 2.2s ease-in-out infinite; }
  #turn b { font: 600 34px/1 var(--d); text-transform: uppercase; letter-spacing: 0.01em; }
  #turn span { font: 500 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 27px; }
.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: 34px; padding: 0 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); font: 600 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: 200px 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: 50px minmax(0, 1fr) 10px; align-items: center; gap: 8px; height: 34px; padding: 0 9px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; color: var(--mute); text-align: left; }
.ar-guns button svg { width: 50px; height: 20px; fill: currentColor; opacity: 0.75; }
.ar-guns button b { font: 600 19px/1 var(--d); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.ar-guns button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.ar-guns button.on { border-color: var(--lime); background: rgba(198, 255, 61, 0.08); color: var(--text); }
.ar-guns button.on svg { fill: var(--lime); opacity: 1; }
.ar-guns .dot { width: 8px; height: 8px; border-radius: 50%; }
.ar-stage { position: relative; min-height: 0; border-radius: var(--r); background: radial-gradient(70% 75% at 50% 45%, rgba(198, 255, 61, 0.08), rgba(0, 0, 0, 0.45)); border: 1px solid var(--line2); 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: 2px; pointer-events: none; }
.ar-gname b { font: 600 32px/0.9 var(--d); letter-spacing: 0.03em; padding-top: 4px; }
.ar-gname i { font: 600 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: 600 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: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line2); min-width: 0; }
.ar-tier { align-self: flex-start; padding: 5px 9px 4px; border-radius: var(--r); 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: 600 38px/0.9 var(--d); letter-spacing: 0.03em; padding-top: 4px; }
.ar-detail .note { margin: 0; }
.ar-price { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.ar-price b { font: 600 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(--lime); 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: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); text-align: left; min-width: 0; }
.ar-skins button:hover { border-color: var(--line2); background: rgba(255, 255, 255, 0.06); }
.ar-skins button.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.ar-skins .sw { width: 100%; height: 30px; border-radius: 2px; 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: 600 17px/1 var(--d); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding-top: 2px; }
.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: 600 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(--lime); } .ar-skins em.pr { color: var(--mint); }
.ar-foot { margin: 12px 0 0 !important; font-size: 12px !important; }
.ar-foot a, .lnk { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
.nav > .hot, .links .hot { color: var(--lime); }
@media (max-height: 820px) { .ar-main { height: 290px; } .ar-skins { grid-template-columns: repeat(8, minmax(0, 1fr)); } .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 14px 12px 17px; }
  .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: 34px auto 8px; height: 32px; } .ar-guns button svg { width: 34px; }
  .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 10px 17px; width: min(820px, 100%); }
  .ar-head h2 { font-size: 30px; } .ar-head .note { display: none; } .ar-wallet { height: 30px; }
  .ar-main { grid-template-columns: 136px 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: 34px minmax(0, 1fr) 8px; height: 24px; gap: 6px; padding: 0 6px; } .ar-guns button svg { width: 34px; height: 14px; } .ar-guns button b { font-size: 16px; }
  .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 4px 5px; gap: 3px; } .ar-skins .sw { height: 14px; } .ar-skins b { font-size: 14px; } .ar-skins em { display: none; } .ar-foot { display: none; }
}

/* ---- players: friends, the leaderboard, you */
.panel.social { width: min(720px, 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: 28px; padding: 0 11px; border-radius: var(--r); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; color: var(--mute); }
.so-tabs2 button.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.so-body { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.so-body h4 { margin: 8px 0 0; font: 600 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: 42px; padding: 0 12px; border-radius: var(--r); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line2); font-size: 15px; outline: none; }
.so-add input:focus { border-color: var(--lime); }
.so-add .btn-l { height: 42px; }
.so-code { margin: 0; font-size: 13px; color: var(--mute); } .so-code b { color: var(--lime); 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: 44px; padding: 0 8px 0 12px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px 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(--lime); box-shadow: 0 0 8px var(--lime); }
.so-row b { font: 600 20px/1 var(--d); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.so-row .st { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-row.play .st { color: var(--lime); }
.so-row .sm { height: 30px; padding: 0 12px; font-size: 13px; }
.so-row .x.sm { position: static; width: 28px; height: 28px; font-size: 18px; color: var(--mute); border-radius: var(--r); }
.so-row .x.sm:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.so-row.wait { opacity: 0.7; }
i.lv { display: inline-grid; place-items: center; min-width: 24px; height: 18px; padding: 0 5px; border-radius: 2px; background: rgba(198, 255, 61, 0.14); border: 1px solid rgba(198, 255, 61, 0.45); color: var(--lime); font: 700 10.5px/1 var(--m); font-style: normal; }
.so-sub { font-size: 12.5px !important; } .so-sub b { color: var(--lime); }
.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: 36px; padding: 0 12px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); }
.so-board .rk { font: 600 13px/1 var(--m); color: var(--mute); text-align: right; }
.so-board b { font: 600 19px/1 var(--d); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.so-board .v { font: 600 13px/1 var(--m); color: var(--mint); }
.so-board li.top .rk { color: var(--lime); } .so-board li.me { background: rgba(198, 255, 61, 0.1); box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.5); }
.so-you { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line2); }
.so-lv { display: grid; place-items: center; width: 88px; height: 88px; flex: none; border-radius: var(--r); background: var(--lime); color: var(--ink); }
.so-lv .big { font: 600 54px/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: 600 30px/0.9 var(--d); letter-spacing: 0.03em; padding-top: 3px; }
.so-xp .bar { height: 8px; border-radius: 2px; background: rgba(0, 0, 0, 0.45); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line2); }
.so-xp .bar i { display: block; height: 100%; background: var(--lime); }
.so-xp .mono { font: 500 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: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.so-stats i { font: 600 10px/1 var(--m); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.so-stats b { font: 600 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(--red); 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: 40px; } }
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) { .panel.social { min-height: 0; padding: 12px 16px 12px 19px; } .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: 38px; } .so-stats div { padding: 7px 9px; } }

/* ---- Point control: the zone line under the team score, the marker over the zone */
body.mode-point #h-teams { display: flex; }
#h-zone { position: absolute; left: 50%; top: 134px; transform: translateX(-50%); display: none; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border-radius: var(--r); background: var(--plate); border: 1px solid var(--line); font: 600 11.5px/1 var(--m); color: var(--mute); white-space: nowrap; }
#h-zone.on { display: flex; }
#h-zone b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 2px; background: #e9eef4; color: var(--ink); font: 600 20px/1 var(--d); padding-top: 3px; }
#h-zone span { min-width: 136px; text-transform: uppercase; letter-spacing: 0.06em; }
#h-zone .hz-bar { position: relative; width: 70px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
#h-zone .hz-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: currentColor; }
#h-zone em { font-style: normal; color: var(--dim); min-width: 98px; text-align: right; }
#h-zone[data-h="us"] { color: var(--lime); border-color: rgba(198, 255, 61, 0.5); } #h-zone[data-h="us"] b { background: var(--lime); }
#h-zone[data-h="them"] { color: #c8b2ff; border-color: rgba(160, 123, 255, 0.55); } #h-zone[data-h="them"] b { background: #a07bff; }
#h-zone[data-h="both"] { color: var(--red); border-color: rgba(255, 74, 61, 0.55); } #h-zone[data-h="both"] b { background: var(--red); }
#h-zone[data-h="t0"] { color: #a8e63a; } #h-zone[data-h="t0"] b { background: #a8e63a; } #h-zone[data-h="t1"] { color: #a07bff; } #h-zone[data-h="t1"] b { background: #a07bff; }
#h-zmark { position: absolute; left: 0; top: 0; margin: -16px 0 0 -16px; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; will-change: transform; }
#h-zmark[hidden] { display: none; }
#h-zmark b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 2px; transform: rotate(45deg); background: rgba(233, 238, 244, 0.9); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); color: var(--ink); font: 600 20px/1 var(--d); }
#h-zmark b::first-line { line-height: 1; }
#h-zmark i { font: 600 11px/1 var(--m); font-style: normal; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); margin-top: 4px; }
#h-zmark[data-h="us"] b { background: var(--lime); } #h-zmark[data-h="them"] b { background: #a07bff; } #h-zmark[data-h="both"] b { background: var(--red); color: #fff; }
#h-zmark[data-h="t0"] b { background: #a8e63a; } #h-zmark[data-h="t1"] b { background: #a07bff; }
body.dropped #h-zmark { visibility: hidden; }
/* the free modes */
.panel.modes { width: min(620px, 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 14px 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line2); }
.mo-t { grid-area: t; display: flex; align-items: baseline; gap: 10px; } .mo-t b { font: 600 28px/0.9 var(--d); letter-spacing: 0.03em; padding-top: 3px; } .mo-t i { font: 600 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; }
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) {
  #h-teams { top: 86px; } #h-teams .tm { padding: 3px 8px; } #h-teams .tm b { font-size: 20px; }
  #h-zone { top: 116px; padding: 3px 8px 3px 4px; gap: 7px; } #h-zone b { width: 20px; height: 20px; font-size: 17px; } #h-zone span { min-width: 118px; } #h-zone .hz-bar { width: 50px; }
  body.mode-tdm #h-banner, body.mode-point #h-banner { top: 40%; font-size: 34px; }
  body.mode-tdm:not(.on-title) #toasts, body.mode-point:not(.on-title) #toasts { top: 150px; }
}
/* team modes: the banner and the toasts go below the team score and the zone line */
body.mode-tdm:not(.on-title) #toasts, body.mode-point:not(.on-title) #toasts { top: 178px; }
body.mode-tdm #h-banner, body.mode-point #h-banner { top: 24%; }
#h-zmark { z-index: 2; }
@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (min-width: 700px) {
  body.mode-tdm #h-banner, body.mode-point #h-banner { top: 40%; font-size: 34px; }      /* (after the team-mode rule above: a phone's top rows are taller in proportion) */
  body.mode-tdm:not(.on-title) #toasts, body.mode-point:not(.on-title) #toasts { top: 150px; }
}
#h-scope.on ~ #h-speed { visibility: hidden; }      /* (down a scope: only the reticle in the lens) */
body.spectating #h-top .ht-cell { display: none; }      /* (a spectator has no score and no place: the clock alone) */
#h-speed { display: none !important; }      /* (no speedometer: it was for slide-hops) */
