/* Reclaim. Lime ops: near-black, off-white, one lime accent; a drone feed over site A. */

/* Anybody (OFL) is a variable font with a width axis. The display face is pinned to its narrow cut (62.5%) here,
   so every `font: … var(--display)` shorthand gets the narrow cut without restating it. */
@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 100 900; font-stretch: 62.5%; font-display: swap; src: url(../fonts/anybody.woff2) format('woff2'); }
@font-face { font-family: 'Anybody'; font-style: italic; font-weight: 100 900; font-stretch: 62.5%; font-display: swap; src: url(../fonts/anybody-italic.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/hanken-grotesk.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/hanken-grotesk-italic.woff2) format('woff2'); }

:root {
  --bg: #0A0B09; --bg-2: #0F110D; --panel: rgba(17, 19, 15, .78); --panel-2: #12140F; --line: rgba(214, 226, 196, .10); --line-2: rgba(214, 226, 196, .2);
  --text: #ECEFE6; --muted: #8E9487; --dim: #5E6459; --acc: #C5F23C; --acc-2: #9DC72A; --sub: #B5BEA6; --danger: #FF5A47; --good: #C5F23C;
  --display: 'Anybody', 'Arial Narrow', Impact, sans-serif;
  --text-f: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --type: 'Hanken Grotesk', system-ui, sans-serif;
  --rail: 76px; --top: 64px; --gutter: clamp(16px, 3.4vw, 44px); --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font: 400 16.5px/1.55 var(--text-f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
main:focus, main:focus-visible { outline: none; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--acc); color: #111; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }
.noscript { padding: 24px var(--gutter); }

/* ---------- frame: the rail, the top bar ---------- */
.rail { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; background: rgba(10, 11, 9, .82); border-right: 1px solid var(--line); backdrop-filter: blur(10px); }
.rail-mark { width: 40px; height: 40px; margin-bottom: 18px; }
.rail-mark svg { width: 40px; height: 40px; color: var(--text); }
.rail a.ri { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.rail a.ri:hover { color: var(--text); background: rgba(214, 226, 196, .08); }
.rail a.ri[aria-current="page"] { color: var(--acc); background: rgba(197, 242, 60, .1); }
.rail a.ri[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--acc); }
.rail a.ri svg { width: 22px; height: 22px; }
.rail a.ri .tip { position: absolute; left: 58px; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line-2); padding: 5px 9px; border-radius: 6px; font-size: 13px; color: var(--text); opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
.rail a.ri:hover .tip, .rail a.ri:focus-visible .tip { opacity: 1; transform: none; }
.rail-sp { flex: 1; }
.top { position: absolute; z-index: 15; left: var(--rail); right: 0; top: 0; height: var(--top); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); padding: 0 var(--gutter); }
.top-word { display: none; }
.top-word svg { height: 18px; width: auto; color: var(--text); }
.top nav { display: flex; gap: clamp(2px, .6vw, 8px); }
.top nav a { font: 700 13px var(--text-f); text-transform: uppercase; letter-spacing: .09em; text-decoration: none; color: #C9CEC1; padding: 8px 12px; border-radius: 3px; position: relative; }
.top nav a:hover { color: var(--text); background: rgba(214, 226, 196, .08); }
.top nav a[aria-current="page"] { color: #0A0B09; background: var(--acc); }
.lv-chip { position: absolute; right: var(--gutter); display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(14, 16, 12, .6); font-size: 13.5px; }
.lv-chip b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 900 15px var(--display); background: conic-gradient(var(--acc) var(--p, 0%), rgba(214, 226, 196, .16) 0); position: relative; }
.lv-chip b::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-2); }
.lv-chip b span { position: relative; }
#view { margin-left: var(--rail); min-height: 100svh; display: block; }
.foot { margin-left: var(--rail); padding: 26px var(--gutter) 24px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-row { max-width: var(--max); margin: 0 auto 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.foot-row p { margin: 0; flex: 1; min-width: 220px; font-size: 14.5px; }
.fine-print { max-width: var(--max); margin: 4px auto 0; font-size: 11px; line-height: 1.5; color: var(--dim); }
body.in-round .rail, body.in-round .top, body.in-round .foot { display: none; }
body.in-round #view, body.is-play .foot { margin-left: 0; }
body.is-play .foot { display: none; }

/* ---------- type and buttons ---------- */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .88; margin: 0; letter-spacing: .01em; }
.hl { color: var(--text); }
/* the narrow heavy cut crowds at small sizes: open it up a little below ~32px */
.loc-head b, .seg span b, .pick-name, .feat h3, .lv-block h2, .lvup, .hud-feed em, .board-empty b, .stats dd, .rstats dd, .place b { letter-spacing: .035em; }
.h2, .page-h, .coin-h { letter-spacing: .012em; }
.h2 { font: 900 clamp(32px, 4vw, 52px)/.92 var(--display); text-transform: uppercase; margin: 0; }
.kicker { margin: 0; color: var(--acc); font-weight: 600; font-size: 17px; }
.lede { margin: 0; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.55; color: #C3C9BA; max-width: 36em; }
.small { margin: 0; font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(14, 16, 12, .6); color: var(--text); font: 600 16px/1.1 var(--text-f); text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { border-color: rgba(197, 242, 60, .6); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-acc { background: var(--acc); border-color: var(--acc); color: #0A0B09; font-weight: 700; }
.btn-acc:hover { background: #D3FA5C; border-color: #D3FA5C; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: 14px; border-radius: 4px; }
.btn-wide { width: 100%; }
.btn-paper { background: var(--text); color: #0A0B09; border-color: var(--text); }
.btn-ghost { background: transparent; }
.panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }

/* ---------- home: the lobby ---------- */
.lobby-v { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.lb-bg { position: absolute; inset: 0; z-index: -2; background: center 40% / cover no-repeat; filter: grayscale(.85) contrast(1.1) brightness(.5) blur(2px); transform: scale(1.05); }
.lobby-v::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 42% 50% at 36% 66%, rgba(197, 242, 60, .09), transparent 66%), linear-gradient(180deg, rgba(10, 11, 9, .72) 0%, rgba(10, 11, 9, .1) 30%, rgba(10, 11, 9, .15) 62%, var(--bg) 100%), linear-gradient(90deg, rgba(10, 11, 9, .55), transparent 38%, transparent 58%, rgba(10, 11, 9, .78)); }
.lobby-v::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(120, 160, 40, .1); mix-blend-mode: color; pointer-events: none; }
.lb-scene { position: absolute; inset: 0; z-index: 0; }
.lb-scene canvas { display: block; width: 100%; height: 100%; }
.lb-plates { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.plate { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; min-width: 180px; max-width: 200px; background: rgba(12, 13, 10, .84); border: 1px solid var(--line-2); border-radius: 4px; backdrop-filter: blur(10px); pointer-events: auto; color: var(--text); text-align: left; font: inherit; }
.plate.me { border-color: rgba(197, 242, 60, .55); box-shadow: inset 3px 0 0 var(--acc); }
.plate-t { display: flex; flex-direction: column; min-width: 0; }
.plate-name { font: 900 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--text); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.plate-name:hover { color: var(--acc); }
.plate em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.plate-input { font: 900 20px/1.05 var(--display); text-transform: uppercase; width: 150px; background: rgba(0, 0, 0, .4); border: 1px solid var(--acc); color: var(--text); padding: 2px 6px; border-radius: 3px; }
.plate-add { cursor: pointer; border-style: dashed; background: rgba(12, 13, 10, .62); }
.plate-add:hover { border-color: var(--acc); }
.plate-plus { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 4px; background: rgba(197, 242, 60, .12); color: var(--acc); font: 600 26px/1 var(--text-f); }
.lb-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lb-ui > * { pointer-events: auto; }
.lb-tl { position: absolute; left: var(--gutter); top: calc(var(--top) + 12px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lb-chip { font: 700 12px var(--text-f); text-transform: uppercase; letter-spacing: .14em; padding: 4px 9px; border-radius: 3px; background: rgba(197, 242, 60, .14); color: var(--acc); }
.lb-h { margin: 0; font-size: clamp(40px, 4.6vw, 64px); line-height: .9; }
.lb-h span { color: var(--acc); }
.lb-ping { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--text-f); color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-ping i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.lb-ping[data-q="good"] i { background: var(--acc); box-shadow: 0 0 8px rgba(197, 242, 60, .8); }
.lb-ping[data-q="ok"] i { background: #E6BE52; }
.lb-ping[data-q="bad"] i { background: var(--danger); }
.lb-info { position: absolute; right: var(--gutter); top: calc(var(--top) + 12px); width: 300px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-info-h { display: flex; align-items: center; gap: 10px; font: 900 22px var(--display); letter-spacing: .03em; }
.lb-coin { width: 30px; height: 30px; color: var(--text); }
.lb-coin svg { width: 100%; height: 100%; display: block; }
.lb-info p { margin: 0; font-size: 13.5px; color: var(--sub); }
.lb-info .btn { align-self: flex-start; }
.lb-feed { position: absolute; left: var(--gutter); bottom: 26px; width: min(300px, 26vw); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.lb-feed p { margin: 0; padding: 5px 10px; background: rgba(10, 11, 9, .64); border-radius: 3px; color: #D6DACD; }
.lb-feed time { color: var(--dim); font-variant-numeric: tabular-nums; margin-right: 6px; }
.lb-right { position: absolute; right: var(--gutter); bottom: 26px; width: 340px; display: flex; flex-direction: column; gap: 10px; }
.lb-mode { position: relative; }
.lb-mode-cur { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "s i" "b i" "e i"; text-align: left; gap: 0 10px; padding: 12px 14px; background: rgba(14, 16, 12, .9); border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); cursor: pointer; font: inherit; }
.lb-mode-cur:hover:not(:disabled) { border-color: var(--acc); }
.lb-mode-cur:disabled { cursor: default; }
.lb-mode-cur span { grid-area: s; font: 700 11.5px var(--text-f); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lb-mode-cur b { grid-area: b; font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-top: 3px; }
.lb-mode-cur em { grid-area: e; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lb-mode-cur i { grid-area: i; align-self: center; font-style: normal; color: var(--acc); font-size: 18px; }
.lb-mode-cur:disabled i { opacity: .3; }
.lb-mode-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; z-index: 4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.lb-mode-list button { text-align: left; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; }
.lb-mode-list button:last-child { border-bottom: 0; }
.lb-mode-list button b { font: 900 19px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.lb-mode-list button span { font-size: 12.5px; color: var(--muted); }
.lb-mode-list button:hover:not(:disabled), .lb-mode-list button[aria-selected="true"] { background: rgba(197, 242, 60, .1); }
.lb-mode-list button[aria-selected="true"] b { color: var(--acc); }
.lb-mode-list button:disabled { opacity: .35; cursor: not-allowed; }
.lb-rank { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; background: rgba(14, 16, 12, .9); border: 1px solid var(--line-2); border-radius: 4px; text-decoration: none; color: var(--text); }
.lb-rank:hover { border-color: rgba(197, 242, 60, .5); }
.rk-t { display: flex; flex-direction: column; min-width: 0; }
.rk-t > span { font: 700 11.5px var(--text-f); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.rk-t b { font: 900 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.rk-t em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.rk-t .xpbar { margin-top: 5px; }
.lb-actions { display: flex; flex-direction: column; gap: 8px; }
.lb-start { width: 100%; min-height: 64px; border: 0; border-radius: 4px; background: var(--acc); color: #0A0B09; font: 900 32px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(197, 242, 60, .55); transition: background-color .15s, transform .1s; }
.lb-start:hover:not(:disabled) { background: #D3FA5C; }
.lb-start:active:not(:disabled) { transform: translateY(1px); }
.lb-start:disabled { background: #3A3F2E; color: #7D836F; box-shadow: none; cursor: not-allowed; }
.lb-start.is-searching { background: rgba(10, 11, 9, .7); color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); font-size: 24px; }
.lb-hint, .lb-botline { margin: 0; }
.lb-right .note { margin: 0; }
.lobby-v.in-match .lb-ui, .lobby-v.in-match .lb-plates, .lobby-v.in-match .lb-scene { display: none; }
.lobby-v > .panel { z-index: 5; top: calc(50% + var(--top) / 2); max-height: calc(100% - var(--top) - 24px); }
body.in-round .lobby-v > .panel { top: 50%; max-height: calc(100% - 32px); }
body.in-round { overflow: hidden; }
.loc-wide { max-width: none; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; padding: 18px 20px; }
.loc-wide .plan-mini { margin-top: 0; border-top: 0; padding-top: 0; }
/* the drone-feed frame around your operator: two lime corners, a faint grid, live readouts */
.feed { position: absolute; inset: 3% 1% 5%; pointer-events: none; border: 1px solid rgba(214, 226, 196, .12); background-image: linear-gradient(rgba(214, 226, 196, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 226, 196, .035) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.feed::before, .feed::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--acc); }
.feed::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.feed::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.feed .rd { position: absolute; font: 600 12.5px/1 var(--text-f); color: #CFD4C6; letter-spacing: .02em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 7px; text-transform: uppercase; }
.feed .rd b { color: var(--acc); font-weight: 700; }
.feed .rd i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px rgba(197, 242, 60, .8); }
.feed .rd.off i { background: var(--dim); box-shadow: none; }
.feed .rd.off b { color: var(--muted); }
.feed .tl { left: 16px; top: 16px; } .feed .tr { right: 16px; top: 16px; } .feed .bl { left: 16px; bottom: 16px; } .feed .br { right: 16px; bottom: 16px; color: var(--muted); }
.ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acc) var(--p, 0%), rgba(214, 226, 196, .16) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel-2); }
.ring b { position: relative; font: 900 24px/1 var(--display); }
.xpbar { height: 6px; border-radius: 3px; background: rgba(214, 226, 196, .14); overflow: hidden; margin-top: 7px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transform-origin: left; }
.loc-card { max-width: 460px; padding: 14px 16px 12px; }
.loc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.loc-head b { font: 900 19px var(--display); text-transform: uppercase; color: var(--acc); }
.loc-arrows { display: flex; gap: 6px; }
.loc-arrows button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; }
.loc-arrows button:hover { border-color: var(--acc); }
.loc-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 8px 0 0; font-size: 14px; }
.loc-card dt { color: var(--muted); }
.loc-card dd { margin: 0; }
.plan-mini { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.plan-svg { width: 100%; height: auto; color: #8E9A80; }
.pl-contours path { fill: none; stroke: #8E9A80; stroke-opacity: .08; stroke-width: 1; }
.pl-site { fill: rgba(197, 242, 60, .05); stroke: #8E9A80; stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 5 4; }
.pl-bld { fill: rgba(142, 154, 128, .1); stroke: currentColor; stroke-width: 1.4; }
.pl-wall, .pl-solid { fill: #6F7A62; }
.pl-crate { fill: rgba(142, 154, 128, .18); stroke: currentColor; stroke-width: 1.1; }
.pl-x { stroke: currentColor; stroke-width: .8; opacity: .5; }
.pl-cont { fill: #3F4A33; stroke: currentColor; stroke-width: 1; }
.pl-A { font: 900 150px var(--display); fill: #8E9A80; opacity: .1; }
.pl-routes path { fill: none; stroke: var(--sub); stroke-width: 1.8; stroke-dasharray: 7 5; stroke-linecap: round; }
.pl-routes path.on { stroke: var(--acc); stroke-width: 2.6; stroke-dasharray: none; }
.pl-holds circle { fill: none; stroke: var(--danger); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: 2.2 2.4; }
.pl-spawn circle { fill: none; stroke: var(--sub); stroke-width: 1.8; }
.pl-spawn .pl-dot { fill: var(--sub); stroke: none; }
.pl-alt { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pl-fuse path { fill: #8E9A80; opacity: .16; transition: opacity .5s ease, fill .5s ease; }
.pl-fuse path.lit { fill: var(--acc); opacity: 1; }
.pl-charge { fill: var(--acc); }
.pl-note { font: 400 13.5px var(--type); fill: #8E9A80; }
.pl-pin circle { fill: #161A12; stroke: #8E9A80; stroke-width: 1.2; }
.pl-pin.is-fuse circle { fill: var(--acc); stroke: none; }
.pl-pin text { font: 700 13px var(--type); fill: var(--text); }
.pl-lead { stroke: #8E9A80; stroke-width: 1; }
.pl-stamp { display: none; }
.pl-scale path { fill: none; stroke: #8E9A80; stroke-width: 1.5; }
.pl-scale text, .pl-north text { font: 12px var(--type); fill: #8E9A80; }
.pl-north path { fill: #8E9A80; }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(14, 16, 12, .6); }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--muted); min-height: 38px; }
.tabs button[aria-pressed="true"] { background: rgba(197, 242, 60, .14); color: var(--acc); }
.tabs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.board { padding: 6px; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.board td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board .rk { font: 900 26px/1 var(--display); color: var(--muted); width: 56px; }
.board tr:nth-child(1) .rk { color: var(--acc); }
.board .tm { font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.board .ops { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.board .ops span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.board .ops i { font-style: normal; font: 700 11.5px var(--type); padding: 2px 6px; border-radius: 5px; background: rgba(214, 226, 196, .12); color: var(--sub); }
.board .ago { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.board-empty { padding: 34px 20px; text-align: center; }
.board-empty b { display: block; font: 900 40px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.board-stat { margin: 14px 4px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; }
.board-stat b { color: var(--text); font-weight: 700; }
.skill { color: var(--danger) !important; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; position: relative; overflow: hidden; }
.feat h3 { margin: 0; font: 900 30px/.95 var(--display); text-transform: uppercase; }
.feat p { margin: 0; color: #BCC2B3; font-size: 15px; }
.feat .key { margin-top: auto; font: 700 13px var(--type); color: var(--sub); }
.feat.vet { border-color: rgba(255, 90, 71, .45); background: linear-gradient(160deg, rgba(255, 90, 71, .14), var(--panel) 55%); }
.feat.vet h3 { color: #FF7A66; }
.coin { position: relative; overflow: hidden; }
.coin-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.coin-mark svg { width: clamp(110px, 13vw, 180px); height: auto; color: var(--text); }
.coin-h { font-size: clamp(54px, 7vw, 96px); }
.coin-copy { display: flex; flex-direction: column; gap: 14px; }
.coin-copy p { margin: 0; color: #C3C9BA; max-width: 42em; }
.ca { border: 1px solid var(--line-2); border-radius: 6px; background: rgba(11, 12, 10, .6); padding: 12px 14px; max-width: 560px; }
.ca-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ca-label { font-weight: 600; font-size: 14.5px; }
.ca-soon { font: 700 13px var(--type); color: var(--acc); }
.ca-addr { display: block; font: 400 14px/1.45 var(--type); margin: 6px 0 10px; overflow-wrap: anywhere; color: var(--muted); }
.ca.is-live .ca-addr { color: var(--text); font-weight: 700; user-select: all; }
.ca-actions { display: flex; align-items: center; gap: 12px; }
.ca-status { font-size: 14px; color: var(--muted); }
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 62px; border-radius: 6px; background: #ECEFE6; color: #0A0B09; border: 1px solid transparent; text-decoration: none; transition: transform .12s ease; }
a.lk:hover { transform: translateY(-1px); }
.lk.is-off { background: transparent; color: var(--text); border-color: var(--line-2); }
.lk-logo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 50%; overflow: hidden; }
.lk-logo img, .lk-logo svg { width: 20px; height: 20px; object-fit: contain; }
.lk-logo img[src*="pumpfun"] { width: 24px; height: 24px; }
.lk-logo img[src*="dexscreener"] { width: 34px; height: 34px; }
.lk-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lk-t { font-weight: 600; font-size: 14.5px; }
.lk-s { font: 400 12.5px var(--type); opacity: .7; }
.lk-c { min-height: 0; padding: 0; background: none; border: 0; }
.lk-c .lk-logo { width: 34px; height: 34px; }
.lk-c.is-off { opacity: .5; }
.foot-links { display: flex; gap: 8px; }

/* ---------- operator page ---------- */
.op-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.op-stage { position: sticky; top: 0; height: 100svh; background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(197, 242, 60, .12), transparent 70%), linear-gradient(180deg, #0E100C, #0A0B09); overflow: hidden; }
.op-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.op-stage .op-name { position: absolute; left: 0; right: 0; bottom: calc(5vh + 30px); text-align: center; font-size: clamp(48px, 6vw, 92px); pointer-events: none; }
.op-stage .op-rank { position: absolute; left: 0; right: 0; bottom: 4vh; margin: 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.op-form { padding: calc(var(--top) + 18px) var(--gutter) 60px; display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.lv-block { padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.lv-block .ring { width: 74px; height: 74px; }
.lv-block .ring b { font-size: 32px; }
.lv-block h2 { margin: 0; font: 900 30px/1 var(--display); text-transform: uppercase; }
.lv-block p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.unlock-next { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.unlock-next b { color: var(--text); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.field-t { font-weight: 700; font-size: 15px; padding: 0; color: #DDE2D5; }
.input { min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(11, 12, 10, .7); font: 700 18px var(--type); max-width: 24em; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip > span { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(14, 16, 12, .6); font-weight: 600; font-size: 14.5px; }
.chip .sw { width: 28px; height: 28px; border-radius: 3px; background: radial-gradient(circle at 30% 30%, var(--c) 0 18%, transparent 19%), radial-gradient(circle at 70% 62%, var(--b) 0 22%, transparent 23%), var(--a); border: 1px solid rgba(255, 255, 255, .15); }
.chip input:checked + span { border-color: var(--acc); background: rgba(197, 242, 60, .1); box-shadow: inset 0 0 0 1px var(--acc); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.chip.locked > span { opacity: .45; cursor: not-allowed; }
.chip.locked em { font: 700 11.5px var(--type); font-style: normal; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.picks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick { cursor: pointer; display: block; position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-in { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(14, 16, 12, .6); }
.pick input:checked + .pick-in { border-color: var(--acc); background: rgba(197, 242, 60, .08); box-shadow: inset 0 0 0 1px var(--acc); }
.pick input:focus-visible + .pick-in { outline: 2px solid var(--acc); outline-offset: 3px; }
.pick-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pick-name { font: 900 25px/.9 var(--display); text-transform: uppercase; }
.pick-kind { font: 400 12.5px var(--type); color: var(--muted); }
.pick-line { font-size: 14px; line-height: 1.4; color: #BCC2B3; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bar { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bar-t { height: 5px; background: rgba(214, 226, 196, .14); border-radius: 3px; overflow: hidden; }
.bar-f { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--sub); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14, 16, 12, .5); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font: 900 30px/1 var(--display); }
.status { min-height: 1.4em; font-size: 14px; color: var(--muted); }

/* ---------- play, duo, results ---------- */
.play { position: relative; height: 100svh; overflow: hidden; background: #070806; }
.stage { position: absolute; inset: 0; user-select: none; -webkit-user-select: none; }
.game-canvas { width: 100%; height: 100%; display: block; }
.play-bg { position: absolute; inset: 0; background: center / cover no-repeat; filter: brightness(.45) saturate(.8) blur(2px); transform: scale(1.04); }
.lobby { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.lobby h1 { font-size: clamp(48px, 6vw, 72px); }
.lobby .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(14, 16, 12, .6); min-height: 58px; }
.seg span b { font: 900 21px/1 var(--display); text-transform: uppercase; }
.seg span em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.seg input:checked + span { border-color: var(--acc); background: rgba(197, 242, 60, .1); box-shadow: inset 0 0 0 1px var(--acc); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.seg label.vet span em { color: #FF7A66; }
.roster { display: grid; gap: 8px; }
.roster div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(14, 16, 12, .5); }
.roster div.wait { color: var(--muted); border-style: dashed; }
.roster b { font-weight: 700; }
.roster em { font-style: normal; font: 700 12px var(--type); color: var(--sub); }
.roster div.me { border-color: rgba(197, 242, 60, .45); }
.input.ask { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(197, 242, 60, .16); }
.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(11, 12, 10, .7); font: 400 14px var(--type); color: var(--text); }
.keys summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.keylist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 10px 0 0; }
.keylist div { display: flex; flex-direction: column; }
.keylist dt { font: 700 13px var(--type); color: var(--sub); }
.keylist dd { margin: 0; font-size: 13.5px; color: var(--muted); }
.note { padding: 10px 12px; border-radius: 4px; background: rgba(197, 242, 60, .08); border: 1px solid rgba(197, 242, 60, .3); font-size: 14px; color: #DCEFAE; margin: 0; }
.result { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.result h2 { font-size: clamp(54px, 8vw, 92px); }
.result h2.skill { color: #FF7A66 !important; }
.result h2.won { color: var(--good); }
.xp-list { display: grid; gap: 4px; margin: 0; font-size: 14.5px; }
.xp-list div { display: flex; justify-content: space-between; color: #C3C9BA; }
.xp-list div b { font-variant-numeric: tabular-nums; }
.xp-list .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; color: var(--text); font-weight: 700; }
.lvup { align-self: flex-start; font: 900 22px/1 var(--display); text-transform: uppercase; color: #0A0B09; background: var(--acc); padding: 7px 12px; border-radius: 4px; animation: lvup .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lvup { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.result .rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.result .rstats div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.result .rstats dt { font-size: 12.5px; color: var(--muted); }
.result .rstats dd { margin: 2px 0 0; font: 900 26px/1 var(--display); }
.place { padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(197, 242, 60, .35); background: rgba(197, 242, 60, .08); font-weight: 600; }
.place b { font: 900 26px/1 var(--display); color: var(--acc); margin-right: 6px; }
.row-b { display: flex; flex-wrap: wrap; gap: 10px; }


/* ---------- ranks: emblems, the rank change, the ladder, career ---------- */
.emblem { display: block; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.rk-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.rk-change { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(14, 16, 12, .6); }
.rk-arrow { color: var(--muted); font-size: 22px; }
.rk-change b { display: block; font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.rk-change span { font-size: 14px; color: var(--sub); }
.rk-change em { display: inline-block; margin-top: 6px; font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; font-style: normal; }
.rk-change em.up { background: var(--acc); color: #0A0B09; }
.rk-change em.down { background: rgba(255, 90, 71, .18); color: #FF8A7A; }
.rk-mine { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; margin-top: 8px; }
.rk-mine-h { margin: 4px 0 6px; font-size: clamp(44px, 6vw, 76px); line-height: .9; }
.rk-mine .lede { margin: 0; }
.rk-mine .stats { margin-top: 16px; }
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tier { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border-top: 3px solid var(--tc); }
.tier.mine { box-shadow: inset 0 0 0 1px var(--tc), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.tier h3 { margin: 6px 0 0; font: 900 28px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--tc); }
.tier p { margin: 0; font-size: 14px; color: var(--sub); }
.tier-you, .tier-start { position: absolute; right: 12px; top: 12px; font: 700 11px var(--text-f); font-style: normal; text-transform: uppercase; letter-spacing: .1em; padding: 3px 7px; border-radius: 3px; }
.tier-you { background: var(--acc); color: #0A0B09; }
.tier-start { background: rgba(214, 226, 196, .12); color: var(--sub); }
.tier-you + .tier-start { top: 38px; }
.rk-how { padding: 18px 22px; margin-top: 16px; }
.rk-how ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 15.5px; color: #CFD4C6; }
.rk-how b { color: var(--text); }
.career { display: grid; gap: 14px; }
.career-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; }
.career-id h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: .9; }
.career-id p { margin: 6px 0 0; color: var(--sub); }
.career .panel { padding: 18px 20px; }
.career-h { margin: 0 0 10px; font: 900 22px var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--acc); }
.board-stat a { color: var(--acc); }

/* play pages: the lobby and result panels sit below the top bar (and above the tab bar on phones), not under them */
body.is-play:not(.in-round) .play > .panel { top: calc(50% + var(--top) / 2); max-height: calc(100% - var(--top) - 24px); }

/* ---------- match: the queue, the seats, between rounds, the result ---------- */
.lobby .seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.mm-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(197, 242, 60, .35); border-radius: 4px; background: rgba(197, 242, 60, .06); font-size: 14.5px; }
.mm-search b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-search span:last-child { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.mm-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); animation: blink 1s steps(2, jump-none) infinite; }
.mm-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mm-teams .field-t { display: block; margin-bottom: 8px; }
.mm-between { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mm-between h2 { margin: 0; font-size: clamp(46px, 7vw, 80px); }
.mm-between h2.won { color: var(--good); }
.mm-between .lede { margin: 0; font-size: 16px; }
.mm-score { display: flex; align-items: baseline; gap: 14px; }
.mm-score b { font: 900 64px/1 var(--display); font-variant-numeric: tabular-nums; }
.mm-score i { font: 900 40px/1 var(--display); color: var(--dim); }
.mm-score span { font-weight: 600; color: var(--muted); }
.mm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mm-table th { padding: 12px 8px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.mm-table th:not(:first-child), .mm-table td:not(:first-child) { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.mm-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.mm-table tr.me td { color: var(--acc); }
.mm-table td i { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(214, 226, 196, .12); font: 700 11px var(--type); font-style: normal; color: var(--sub); }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; color: #F1F4F8; font-family: var(--text-f); z-index: 2; }
.hud.is-over > :not(.hud-white):not(.hud-hurt) { opacity: 0; transition: opacity .4s ease; }
.hud-top { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hud-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hud-score { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 4px; background: rgba(11, 12, 10, .62); font-size: 13px; white-space: nowrap; }
.hud-score b { font: 900 22px/1 var(--display); }
.hud-score em { font-style: normal; color: var(--muted); }
.hud-fuse { display: flex; align-items: center; gap: 10px; padding: 6px 16px 4px; background: rgba(11, 12, 10, .62); border: 1px solid rgba(255, 255, 255, .08); border-radius: 4px; }
.hud-fuse b { font: 900 38px/1 var(--display); color: var(--acc); letter-spacing: .02em; }
.hud-fuse-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px rgba(197, 242, 60, .8); }
.hud-fuse.low b { color: #FF6B57; }
.hud-fuse.low .hud-fuse-dot { animation: blink .5s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hud-foes { display: flex; gap: 6px; padding-top: 6px; min-width: 120px; }
.hud-foes i { width: 14px; height: 26px; background: #F1F4F8; clip-path: polygon(30% 0, 70% 0, 70% 26%, 100% 30%, 100% 66%, 82% 66%, 82% 100%, 18% 100%, 18% 66%, 0 66%, 0 30%, 30% 26%); }
.hud-foes i.down { opacity: .22; }
.hud-mates { display: flex; flex-direction: column; gap: 6px; min-width: 120px; align-items: flex-end; }
.hud-mates span { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; background: rgba(11, 12, 10, .62); border-radius: 4px; min-width: 130px; font-size: 13px; }
.hud-mates span i { display: block; height: 4px; background: var(--good); transform-origin: left; border-radius: 2px; }
.hud-mates span.down { opacity: .45; }
.hud-mates span.down b::after { content: ' · down'; color: #FF6B57; font-weight: 400; }
.hud-feed { position: absolute; right: 18px; top: 74px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.hud-feed p { margin: 0; padding: 6px 10px; background: rgba(11, 12, 10, .62); border-radius: 4px; font-size: 13.5px; transition: opacity .6s ease; }
.hud-feed p.mine { border-left: 3px solid var(--acc); }
.hud-feed p.bad { border-left: 3px solid var(--danger); }
.hud-feed p.out { opacity: 0; }
.hud-feed em { font-style: normal; font: 900 14px var(--display); text-transform: uppercase; color: var(--acc); margin-left: 4px; }
.hud-cross { position: absolute; left: 50%; top: 50%; --gap: 6px; }
.hud-cross i { position: absolute; background: #F7F9FC; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.hud-cross i:nth-child(1), .hud-cross i:nth-child(2) { width: 2px; height: 9px; left: -1px; }
.hud-cross i:nth-child(1) { bottom: var(--gap); }
.hud-cross i:nth-child(2) { top: var(--gap); }
.hud-cross i:nth-child(3), .hud-cross i:nth-child(4) { height: 2px; width: 9px; top: -1px; }
.hud-cross i:nth-child(3) { right: var(--gap); }
.hud-cross i:nth-child(4) { left: var(--gap); }
.hud-hit { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; opacity: 0; background: linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.hud-hit.on { animation: hit .24s ease-out; }
.hud-hit.kill { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: linear-gradient(45deg, transparent 44%, #FF4A3D 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #FF4A3D 44% 56%, transparent 56%); }
.hud-hit.head { background: linear-gradient(45deg, transparent 44%, var(--acc) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--acc) 44% 56%, transparent 56%); }
@keyframes hit { from { opacity: 1; transform: scale(1.3); } to { opacity: 0; transform: scale(1); } }
.hud-pop { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); font: 900 clamp(30px, 4vw, 46px)/1 var(--display); text-transform: uppercase; color: var(--acc); text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 30px rgba(197, 242, 60, .35); opacity: 0; }
.hud-pop.on { animation: pop 1s ease-out both; }
@keyframes pop { 0% { opacity: 0; transform: translateX(-50%) scale(1.4); } 15% { opacity: 1; transform: translateX(-50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.hud-scope { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, transparent 0 min(36vh, 36vw), rgba(4, 5, 7, .97) calc(min(36vh, 36vw) + 1px)); }
.hud-scope::before, .hud-scope::after { content: ''; position: absolute; background: rgba(10, 10, 10, .9); }
.hud-scope::before { left: 50%; top: calc(50% - min(36vh, 36vw)); bottom: calc(50% - min(36vh, 36vw)); width: 1.5px; }
.hud-scope::after { top: 50%; left: calc(50% - min(36vh, 36vw)); right: calc(50% - min(36vh, 36vw)); height: 1.5px; }
.hud-scope i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #FF5A3A; box-shadow: 0 0 6px #FF5A3A; }
.hud-scope.on { opacity: 1; }
.hud-msg { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font: 900 clamp(32px, 4.4vw, 54px)/1 var(--display); text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.hud-msg.on { opacity: 1; }
.hud-msg span { display: block; margin-top: 10px; font: 700 20px var(--type); text-transform: none; color: var(--acc); }
.hud-hint { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); font-weight: 600; font-size: 16px; background: rgba(11, 12, 10, .62); padding: 6px 14px; border-radius: 4px; white-space: nowrap; }
.hud-hint:empty { display: none; }
.hud-defuse { position: absolute; left: 50%; top: calc(50% + 46px); width: 240px; height: 8px; margin-left: -120px; background: rgba(11, 12, 10, .55); border-radius: 4px; overflow: hidden; opacity: 0; }
.hud-defuse.on { opacity: 1; }
.hud-defuse i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
.hud-bottom { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hud-hp, .hud-ammo { display: flex; align-items: baseline; gap: 8px; background: rgba(11, 12, 10, .55); padding: 6px 14px 6px; border-radius: 4px; position: relative; }
.hud-hp b, .hud-ammo b { font: 900 44px/1 var(--display); }
.hud-hp span, .hud-ammo span { font: 400 15px var(--type); opacity: .85; }
.hud-ammo em { font-style: normal; font-weight: 600; font-size: 14px; margin-left: 6px; opacity: .85; }
.hud-hp.low b { color: #FF9A86; }
.hud-stam { position: absolute; left: 14px; right: 14px; bottom: -6px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.hud-stam.on { opacity: 1; }
.hud-stam i { display: block; height: 100%; background: var(--sub); transform-origin: left; }
.hud-hurt { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 140px 30px rgba(160, 24, 16, .7); }
.hud-white { position: absolute; inset: 0; background: #FFF4E2; opacity: 0; }
.hud-white.on { animation: white 1.4s ease-out forwards; }
@keyframes white { 0% { opacity: 1; } 100% { opacity: .15; } }
.hud-tags { position: absolute; inset: 0; }
.hud-tag { position: absolute; left: 0; top: 0; font: 700 13px var(--text-f); padding: 2px 8px; border-radius: 6px; background: rgba(11, 12, 10, .6); color: var(--good); white-space: nowrap; }
.hud-pause { position: absolute; inset: 0; background: rgba(6, 7, 5, .66); display: grid; place-items: center; pointer-events: auto; z-index: 5; padding: 16px; }
.hud-pause-card { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 24px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.hud-pause-t { margin: 0; font: 900 52px/.9 var(--display); text-transform: uppercase; }
.hud-pause-s { margin: 0; font-size: 15px; color: var(--muted); }
.hud-pause-b { display: flex; flex-wrap: wrap; gap: 10px; }
.sens { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sens input { accent-color: var(--acc); }
.mute { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.touch { position: absolute; inset: 0; pointer-events: none; }
.touch-move, .touch-look { position: absolute; bottom: 0; pointer-events: auto; touch-action: none; }
.touch-move { left: 0; width: 45%; height: 70%; }
.touch-look { right: 0; top: 0; width: 55%; height: 100%; }
.stick { position: absolute; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; border: 2px solid rgba(241, 244, 248, .5); opacity: 0; pointer-events: none; }
.stick.on { opacity: 1; }
.stick.sprint { border-color: var(--acc); }
.stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(241, 244, 248, .55); }
.tb { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; border: 2px solid rgba(241, 244, 248, .6); background: rgba(11, 12, 10, .38); color: #F1F4F8; font: 700 13px var(--text-f); -webkit-tap-highlight-color: transparent; }
.tb.on { background: rgba(241, 244, 248, .35); }
.tb-fire { right: 22px; bottom: 92px; width: 88px; height: 88px; font-size: 15px; }
.tb-scope { right: 120px; bottom: 182px; width: 60px; height: 60px; }
.tb-reload { right: 122px; bottom: 54px; width: 60px; height: 60px; }
.tb-swap { right: 122px; bottom: 120px; width: 56px; height: 56px; }
.tb-jump { right: 36px; bottom: 196px; width: 60px; height: 60px; }
.tb-crouch { right: 36px; bottom: 266px; width: 60px; height: 60px; font-size: 12px; }
.tb-defuse { left: 50%; bottom: 96px; width: 190px; height: 54px; margin-left: -95px; border-radius: 4px; background: rgba(197, 242, 60, .5); border-color: var(--acc); }
.tb-pause { right: 14px; top: 14px; width: 44px; height: 44px; font-size: 14px; }
@media (pointer: coarse) {
  .hud-bottom { bottom: auto; top: 64px; left: 14px; right: 70px; }
  .hud-hp b, .hud-ammo b { font-size: 30px; }
  .hud-fuse b { font-size: 30px; }
  .hud-feed { top: 120px; }
  .hud-hint { bottom: 168px; white-space: normal; text-align: center; max-width: 80vw; }
}

/* ---------- not found ---------- */
.lost { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lost-mark svg { width: 110px; height: 110px; color: var(--text); }
.page-h { font-size: clamp(60px, 8vw, 112px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --rail: 0px; --top: 58px; }
  .rail { top: auto; right: 0; width: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
  .rail-mark, .rail-sp { display: none; }
  .rail a.ri { width: 44px; height: 44px; }
  .rail a.ri[aria-current="page"]::before { left: 12px; right: 12px; top: -7px; bottom: auto; width: auto; height: 3px; }
  .rail a.ri .tip { display: none; }
  .top { left: 0; justify-content: flex-start; background: linear-gradient(180deg, rgba(10, 11, 9, .9), transparent); }
  .top-word { display: block; }
  .top nav { display: none; }
  .foot { margin-left: 0; padding-bottom: 90px; }
  .op-page { grid-template-columns: minmax(0, 1fr); }
  .op-stage { position: relative; height: 62vh; }
  .op-form { padding-top: 18px; padding-bottom: 100px; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .coin-wrap { grid-template-columns: minmax(0, 1fr); }
  .board .ago, .board .hs { display: none; }
  .lobby-v { height: auto; min-height: 100svh; display: flex; flex-direction: column; gap: 12px; padding-bottom: 96px; }
  .lb-scene { position: relative; inset: auto; height: 56svh; min-height: 330px; flex: none; }
  .lb-ui { display: contents; }
  .lb-tl { top: calc(var(--top) + 4px); left: 16px; }
  .lb-h { font-size: 36px; }
  .lb-right, .lb-feed, .lb-info { position: relative; inset: auto; width: auto; margin: 0 16px; }
  .lb-right { order: 1; }
  .lb-feed { order: 2; }
  .lb-info { order: 3; }
  .plate { min-width: 0; max-width: 46vw; padding: 6px 10px 6px 6px; gap: 7px; }
  .plate .emblem { width: 26px; height: 26px; }
  .plate-name { font-size: 16px; }
  .plate em { font-size: 11.5px; }
  .plate-plus { width: 26px; height: 26px; font-size: 20px; }
  .lobby-v.in-match { height: 100svh; display: block; padding: 0; }
  .lobby-v > .panel { top: calc(50% + (var(--top) - 64px - env(safe-area-inset-bottom)) / 2); max-height: calc(100% - var(--top) - 64px - env(safe-area-inset-bottom) - 16px); }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-wide { grid-template-columns: minmax(0, 1fr); }
  .result .rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-play:not(.in-round) .play > .panel { top: calc(50% + (var(--top) - 64px - env(safe-area-inset-bottom)) / 2); max-height: calc(100% - var(--top) - 64px - env(safe-area-inset-bottom) - 16px); }
  .keylist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feat-grid, .links, .picks-2 { grid-template-columns: minmax(0, 1fr); }
  .feed .br { display: none; }
  .feed .rd { font-size: 11.5px; }
  .lv-chip { padding-right: 8px; }
  .lv-chip .lv-t { display: none; }
  .lobby .seg { grid-template-columns: minmax(0, 1fr); }
  .rk-mine, .career-id { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .rk-change { grid-template-columns: auto auto auto; }
  .rk-change > div { grid-column: 1 / -1; }
  .lobby .seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-teams { grid-template-columns: minmax(0, 1fr); }
  .hud-score em { display: none; }
  .rail a.ri { width: 40px; }
  .board td, .board th { padding: 10px 8px; }
  .board .rk-name { display: none; }
  .board .tm { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
