:root {
  --bg: #0b0e12;
  --bg2: #11161c;
  --panel: rgba(17, 22, 29, 0.92);
  --panel-solid: #141a22;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #e7ebef;
  --muted: #8b96a3;
  --accent: #f2a33a;
  --accent2: #ffcf7a;
  --t: #e8833a;
  --ct: #4ea3ff;
  --good: #59d38a;
  --bad: #ff5a5a;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Rajdhani', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
a { color: var(--accent); }
a.btn { color: inherit; text-decoration: none; }
a.btn.primary { color: #17110a; }

#game { position: fixed; inset: 0; }
#game canvas { display: block; width: 100% !important; height: 100% !important; }
#ui { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#ui > * { pointer-events: auto; }
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; user-select: none; }

/* ───────────── boot ───────────── */
#boot { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .4s; }
#boot.done { opacity: 0; pointer-events: none; }
.boot-logo { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: 6px; }
.boot-logo span { color: var(--accent); }
.boot-bar { width: 320px; height: 3px; background: var(--line); overflow: hidden; }
.boot-bar div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.boot-msg { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ───────────── screens ───────────── */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.menu-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(242,163,58,.12), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(78,163,255,.10), transparent 60%),
    linear-gradient(180deg, #0d1117, #07090c);
}
.menu-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); opacity: .5;
}
.menu-bg::after {
  content: 'JP'; position: absolute; right: -40px; bottom: -120px; font-family: var(--display); font-weight: 700;
  font-size: 520px; color: rgba(255,255,255,.025); letter-spacing: -20px; line-height: 1;
}

.topbar { display: flex; align-items: center; gap: 28px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: rgba(8,10,13,.6); backdrop-filter: blur(8px); }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 3px; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav button { background: none; border: 0; padding: 10px 16px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.nav button:hover { color: var(--text); }
.nav button.active { color: var(--text); border-bottom-color: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; background: rgba(255,255,255,.03); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 3px; background: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #111; }
.user-chip .name { font-weight: 600; }
.user-chip .sub { font-size: 11px; color: var(--muted); }

.content { flex: 1; overflow-y: auto; padding: 28px 32px 40px; }
.content-inner { max-width: 1240px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 1.5px; margin: 0 0 12px; text-transform: uppercase; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.panel.tight { padding: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17110a; }
.btn.primary:hover { background: var(--accent2); }
.btn.danger { border-color: rgba(255,90,90,.5); color: #ffb3b3; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.big { padding: 16px 28px; font-size: 20px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], select {
  background: rgba(0,0,0,.35); border: 1px solid var(--line2); border-radius: 4px; padding: 10px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
select option { background: var(--panel-solid); }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=color] { width: 36px; height: 30px; border: 1px solid var(--line2); background: none; padding: 0; border-radius: 4px; cursor: pointer; }
.pw-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.pw-rules li::before { content: '○ '; }
.pw-rules li.ok { color: var(--good); }
.pw-rules li.ok::before { content: '● '; }
input.otp { font-family: var(--mono); font-size: 28px; letter-spacing: 14px; text-align: center; padding: 10px 0 10px 14px; }
.cf-ts { min-height: 65px; display: flex; justify-content: center; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* auth */
.auth-wrap { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; }
.auth-hero { display: flex; flex-direction: column; justify-content: center; padding: 60px; gap: 16px; }
.auth-hero .title { font-family: var(--display); font-weight: 700; font-size: 76px; line-height: .9; letter-spacing: 4px; }
.auth-hero .title span { color: var(--accent); display: block; }
.auth-hero p { max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-box { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box .panel { width: 380px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tabs button { flex: 1; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-hero { display: none; } }

/* mode cards */
.mode-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); cursor: pointer; transition: border-color .15s, transform .15s; min-height: 132px; display: flex; flex-direction: column; gap: 6px; }
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mode-card.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode-card .mc-title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 2px; text-transform: uppercase; }
.mode-card .mc-desc { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mode-card .mc-tag { align-self: flex-start; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: rgba(255,255,255,.08); }
.mode-card .mc-tag.ranked { background: var(--accent); color: #17110a; font-weight: 700; }
.rejoin-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-color: var(--accent); background: rgba(242,163,58,.08); }
.mode-card .mc-goal { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.map-card.disabled { opacity: .3; }
.mode-card .mc-big { position: absolute; right: -6px; bottom: -22px; font-family: var(--display); font-weight: 700; font-size: 86px; color: rgba(255,255,255,.04); }

.map-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--panel); }
.map-card.selected { border-color: var(--accent); }
.map-card canvas { width: 100%; aspect-ratio: 16/10; display: block; background: #000; image-rendering: pixelated; }
.map-card .mc-info { padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.map-card .mc-info b { font-family: var(--display); letter-spacing: 1.5px; text-transform: uppercase; }

/* rank badge */
.rank-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.rank-badge i { width: 18px; height: 18px; display: inline-block; clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%); background: var(--rc, #999); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.rank-badge.lg { font-size: 22px; }
.rank-badge.lg i { width: 36px; height: 36px; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl tr.me td { background: rgba(242,163,58,.08); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: rgba(255,255,255,.04); }
.tbl .num { font-family: var(--mono); text-align: right; }
.res-win { color: var(--good); font-weight: 700; }
.res-loss { color: var(--bad); font-weight: 700; }
.res-draw { color: var(--muted); font-weight: 700; }

.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.stat b { font-family: var(--display); font-size: 28px; }
.stat span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.xpbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.xpbar div { height: 100%; background: var(--accent); }

.online-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.online-list .o { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot.busy { background: var(--accent); }

/* creator */
.creator { display: grid; grid-template-columns: 300px 1fr 360px; gap: 18px; height: calc(100vh - 160px); min-height: 520px; }
.creator .preview { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a313b, #0c0f13); }
.creator .preview canvas { width: 100%; height: 100%; display: block; }
.creator .preview .hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.creator .controls { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 6px; }
.op-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.op-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; background: rgba(255,255,255,.02); }
.op-item:hover { border-color: var(--line2); }
.op-item.selected { border-color: var(--accent); background: rgba(242,163,58,.06); }
.op-item b { font-family: var(--display); font-size: 17px; letter-spacing: 1px; display: block; }
.op-item span { font-size: 12px; color: var(--muted); }
.op-item .perk { display: block; margin-top: 5px; color: var(--accent2); font-size: 12px; }
.perk-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgba(242,163,58,.4); border-radius: 4px; background: rgba(242,163,58,.06); }
.op-item .eq { float: right; font-size: 10px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att-row { margin: 10px 0 4px; }
.att-row .m-h3 small { font-weight: 400; opacity: .6; font-size: 11px; margin-left: 6px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.att { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.02); color: inherit; font: inherit; font-size: 11px; cursor: pointer; }
.att b { font-size: 12px; }
.att:hover { border-color: var(--accent, #f2c14e); }
.att.on { border-color: var(--accent, #f2c14e); box-shadow: inset 0 0 0 1px var(--accent, #f2c14e); }
.att.locked { opacity: .5; }
.att .good { color: #7bd389; } .att .bad { color: #ff8a7a; }
.att em { font-style: normal; opacity: .7; }
.item-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; background: rgba(255,255,255,.02); font-size: 12px; }
.item-card:hover { border-color: var(--rc); }
.item-card.equipped { border-color: var(--rc); box-shadow: inset 0 0 0 1px var(--rc); }
.item-card.locked { opacity: .4; }
.item-card .sw { height: 30px; border-radius: 3px; border: 1px solid var(--line2); margin-bottom: 4px; }
.item-card b { font-size: 12px; }
.item-card span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.item-card .lock { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 11px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatch { width: 26px; height: 26px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.swatch.sel { border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 10px; border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; font-size: 12px; text-transform: capitalize; }
.chip.sel { border-color: var(--accent); background: rgba(242,163,58,.12); }
@media (max-width: 1100px) { .creator { grid-template-columns: 1fr; height: auto; } .creator .preview { height: 420px; } }

/* lobby */
.lobby-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-col { border: 1px solid var(--line); border-radius: 6px; padding: 14px; min-height: 260px; }
.team-col h3 { display: flex; justify-content: space-between; }
.team-col.t h3 { color: var(--t); }
.team-col.ct h3 { color: var(--ct); }
.player-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: rgba(255,255,255,.03); margin-bottom: 6px; }
.player-row .host { font-size: 10px; color: var(--accent); letter-spacing: 1px; }
.player-row.bot { opacity: .65; }
.code-box { font-family: var(--mono); font-size: 26px; letter-spacing: 6px; padding: 8px 14px; border: 1px dashed var(--line2); border-radius: 4px; user-select: all; }

/* modal */
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; overflow: auto; padding: 24px 16px; z-index: 50; }
.modal-backdrop > .modal { margin: auto; flex-shrink: 0; }
.modal { width: min(560px, 92vw); max-height: 86vh; overflow-y: auto; }
.queue-pulse { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--accent); animation: pulse 1.4s infinite; margin: 10px auto; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* settings */
.settings-grid { display: grid; grid-template-columns: 220px 1fr 80px; gap: 12px 16px; align-items: center; }
.settings-grid .val { font-family: var(--mono); color: var(--muted); text-align: right; }
.seg { display: inline-flex; flex-wrap: wrap; width: max-content; max-width: 100%; justify-self: start; align-self: center; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
/* Checkboxes everywhere become toggle switches. */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid var(--line2); position: relative; cursor: pointer; flex: none; margin: 0; justify-self: start; transition: background .15s, border-color .15s; }
input[type=checkbox]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9ced6; transition: transform .15s, background .15s; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { transform: translateX(18px); background: #17110a; }
input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .45; cursor: default; }

.seg button { white-space: nowrap; flex: none; background: none; border: 0; padding: 7px 12px; cursor: pointer; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.seg button.sel { background: var(--accent); color: #17110a; font-weight: 700; }
.keys { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: 13px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px; background: rgba(255,255,255,.05); }

/* toasts */
#toast-stack { position: fixed; top: 76px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--panel-solid); border: 1px solid var(--line2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; max-width: 340px; animation: toastIn .2s ease-out; }
.toast.bad { border-left-color: var(--bad); }
.toast.good { border-left-color: var(--good); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }

/* ───────────── HUD ───────────── */
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.crosshair i { position: absolute; background: var(--ch, #3dff8f); box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
.crosshair .dot { width: 2px; height: 2px; left: -1px; top: -1px; border-radius: 0; }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; transition: opacity .25s; }
.hitmarker::before, .hitmarker::after { content: ''; position: absolute; left: 12px; top: -2px; width: 2px; height: 30px; background: #fff; transform: rotate(45deg); clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%, 0 65%, 100% 65%, 100% 100%, 0 100%); }
.hitmarker::after { transform: rotate(-45deg); }
.hitmarker.on { opacity: 1; transition: none; }
.hitmarker.hs::before, .hitmarker.hs::after { background: #ff4b4b; }
.hitmarker.kill::before, .hitmarker.kill::after { background: #ff4b4b; height: 34px; top: -4px; }

.hud-bottom-left { position: absolute; left: 28px; bottom: 24px; display: flex; gap: 26px; align-items: flex-end; }
.hud-num { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hud-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.65); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.hp-bar { width: 160px; height: 4px; background: rgba(255,255,255,.15); margin-top: 6px; }
.hp-bar div { height: 100%; background: #fff; transition: width .15s; }
.hp-low .hud-num { color: var(--bad); }
.hud-bottom-right { position: absolute; right: 28px; bottom: 24px; text-align: right; }
.ammo .hud-num span { font-size: 22px; color: rgba(255,255,255,.6); }
.weapon-name { font-family: var(--display); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; opacity: .8; margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.slots { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; margin-bottom: 14px; }
.slots div { font-family: var(--display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.45); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.slots div.cur { color: #fff; }
.slots div b { color: var(--accent); margin-right: 6px; }
.money { position: absolute; left: 28px; bottom: 104px; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--good); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.money .delta { font-size: 16px; margin-left: 8px; }

.topscore { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 0; font-family: var(--display); font-weight: 700; }
.topscore .ts { min-width: 64px; text-align: center; font-size: 30px; padding: 2px 14px; background: rgba(10,12,16,.72); }
.topscore .ts.t { color: var(--t); border-bottom: 3px solid var(--t); }
.topscore .ts.ct { color: var(--ct); border-bottom: 3px solid var(--ct); }
.topscore .timer { min-width: 96px; text-align: center; font-size: 26px; padding: 4px 14px; background: rgba(10,12,16,.85); }
.topscore .timer.bomb { color: var(--bad); }
.topscore .timer small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); line-height: 1; margin-top: 2px; }
.goal-pill { position: absolute; top: 88px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 12px; border-radius: 3px; background: rgba(10,12,16,.62); color: #e7ebef; white-space: nowrap; }
.tut-panel { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); padding: 10px 16px 12px; border-left: 3px solid var(--accent); border-radius: 3px; background: rgba(10,12,16,.78); color: #e7ebef; text-align: center; }
.tut-panel .tut-step { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.tut-panel .tut-title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.15; margin-top: 2px; }
.tut-panel .tut-help { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tut-panel .tut-help kbd { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid rgba(255,255,255,.3); border-bottom-width: 2px; border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 13px; color: #fff; background: rgba(255,255,255,.06); }
.tut-panel.done { border-left-color: var(--good, #3dff8f); }
.drop-card { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 22px; border: 1px solid var(--rc); border-radius: 6px; background: rgba(255,255,255,.03); box-shadow: 0 0 24px -8px var(--rc); animation: toastIn .3s; }
.drop-swatch { width: 120px; height: 44px; border-radius: 4px; border: 1px solid var(--line2); }
.goal-tag { font-family: var(--display); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.alive-row { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); display: flex; gap: 160px; }
.alive-row div { display: flex; gap: 3px; }
.alive-row i { width: 8px; height: 14px; background: currentColor; display: block; }
.alive-row i.dead { opacity: .2; }
.alive-row .t { color: var(--t); flex-direction: row-reverse; }
.alive-row .ct { color: var(--ct); }
.topscore .ts small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); line-height: 1; }
.topscore .ts.inf { color: #9dff2e; border-bottom-color: #9dff2e; }
/* Objective modes: point letters, the hill timer or flag states under the score. */
.obj-row { position: absolute; top: 116px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; font-family: var(--display); font-weight: 700; }
.obj-row:empty { display: none; }
.obj-row .obj { min-width: 30px; padding: 2px 8px; text-align: center; border: 2px solid currentColor; border-radius: 3px; background: rgba(10,12,16,.7); font-size: 16px; color: #e7ebef; }
.obj-row .obj.t { color: var(--t); } .obj-row .obj.ct { color: var(--ct); } .obj-row .obj.contested { color: #ff4040; }
.obj-row .obj.capping { animation: objPulse .5s infinite alternate; }
.obj-row .obj-t { font-size: 13px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
@keyframes objPulse { to { background: rgba(255,255,255,.18); } }
/* Zombies: points popping up beside the crosshair, and tonic chips where armor usually is. */
.zpts { position: absolute; left: calc(50% + 34px); top: calc(50% - 22px); pointer-events: none; }
.zpts span { position: absolute; left: var(--dx, 0); font-family: var(--display); font-weight: 700; font-size: 16px; color: #ffd23f; text-shadow: 0 2px 4px rgba(0,0,0,.9); animation: zpt .9s ease-out forwards; }
.zpts span.big { font-size: 22px; }
.zpts span.ast { top: 20px; font-size: 15px; color: #cfe8ff; letter-spacing: .04em; animation-duration: 1.2s; }
.kf .kf-plus { color: var(--muted); margin: 0 -4px; }
@keyframes zpt { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-46px); opacity: 0; } }
.zperk { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 3px; border-radius: 50%; background: var(--pc); color: #0b0d10; font-size: 13px; font-style: normal; font-weight: 800; box-shadow: 0 0 8px var(--pc); }

.killfeed { position: absolute; top: 14px; right: 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.kf { background: rgba(10,12,16,.7); padding: 5px 10px; border-radius: 3px; font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; align-items: center; max-width: 52vw; animation: toastIn .15s; }
.kf.mine { box-shadow: inset 0 0 0 1px #d33; }
.kf .t { color: var(--t); } .kf .ct { color: var(--ct); } .kf .ffa { color: #ddd; }
.kf .w { color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.kf .hs { color: #ff6b6b; font-size: 11px; }
.kf .kt { font-size: 10px; letter-spacing: .5px; padding: 1px 5px; border-radius: 2px; color: #f2c14e; background: color-mix(in srgb, currentColor 16%, transparent); }
.kf .kt-noscope { color: #c792ff; }
.kf .kt-spin { color: #4fd8e8; }
.kf .kt-last { color: #f2c14e; }
.kf .kt-air { color: #7fb4ff; }
.kf .kt-flash { color: #f6f6f0; }
.kf .kt-smoke { color: #a9b4be; }
.kf .kt-wallbang { color: #d9a066; }
.kf .kt-long { color: #7bd389; }
.kf .kt-burn { color: #ff8a3d; }
.kf .kt-assist { color: #cfe8ff; font-size: .85em; }
.kf .kt-win { color: #10140c; background: #f2c14e; }
.kf .kt-tk { color: #fff; background: #c0392b; }

.center-msg { position: absolute; top: 24%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0,0,0,.8); pointer-events: none; }
.center-msg .big { font-size: 52px; }
.center-msg .sub { font-size: 18px; color: rgba(255,255,255,.8); letter-spacing: 2px; }
.center-msg .big.t { color: var(--t); } .center-msg .big.ct { color: var(--ct); }
.info-msg { position: absolute; bottom: 30%; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 600; text-shadow: 0 2px 6px rgba(0,0,0,.9); }
.progress { position: absolute; top: 60%; left: 50%; width: 260px; transform: translateX(-50%); text-align: center; }
.progress .bar { height: 6px; background: rgba(255,255,255,.2); margin-top: 6px; }
.progress .bar div { height: 100%; background: var(--accent); }
.dmg-ind { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px; pointer-events: none; }
.dmg-ind i { position: absolute; left: 50%; top: 0; width: 70px; height: 18px; margin-left: -35px; background: radial-gradient(ellipse at center, rgba(255,40,40,.85), transparent 70%); transform-origin: 50% 130px; transition: opacity .6s; }
.flash { position: absolute; inset: 0; background: radial-gradient(circle, transparent 40%, rgba(160,0,0,.45)); opacity: 0; transition: opacity .5s; }
.flash.on { opacity: 1; transition: none; }
.blind { position: absolute; inset: 0; background: #fffdf6; opacity: 0; pointer-events: none; z-index: 5; }
/* Accessibility: reduce flashing turns the flashbang white-out into a dark blur and the damage flash into a gentle fade. */
.reduce-flash .blind { background: rgba(8,10,14,.97); backdrop-filter: blur(14px); }
.reduce-flash .flash.on { opacity: .55; transition: opacity .25s; }
/* Show sounds on screen: labelled arrows around the crosshair. */
.snd-cues { position: absolute; inset: 0; pointer-events: none; }
.snd { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: opacity .6s; }
.snd.fade { opacity: 0; }
.snd i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 13px solid currentColor; filter: drop-shadow(0 1px 2px #000); }
.snd span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; background: rgba(10,12,16,.7); color: #e7ebef; white-space: nowrap; }
.snd-shot, .snd-explosion, .snd-beep, .snd-fire, .snd-flash { color: var(--bad); }
.snd-step, .snd-reload, .snd-knife { color: #e7ebef; }
.snd-door, .snd-glass, .snd-wood, .snd-smoke { color: #ffd23f; }
/* HUD size: scales the corner panels, scores, radar, killfeed, chat and messages. */
.hud-bottom-left, .hud-bottom-right, .money, .bomb-icon, .killfeed, .radar, .chat, .topscore, .goal-pill, .tut-panel, .alive-row, .center-msg, .info-msg, .spectate, .progress { zoom: var(--hud-scale, 1); }
.radar { position: absolute; left: 18px; top: 18px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); background: rgba(10,12,16,.55); overflow: hidden; }
.radar canvas { width: 100%; height: 100%; }
.scope { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, transparent 34vh, #000 34.2vh); }
.scope::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.scope::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #000; }
.spectate { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); background: rgba(10,12,16,.75); padding: 8px 18px; border-radius: 4px; font-family: var(--display); font-size: 18px; letter-spacing: 1.5px; }
.fps { position: absolute; top: 4px; left: calc(30px + 200px * var(--hud-scale, 1)); font-family: var(--mono); font-size: 11px; color: #9f9; text-shadow: 0 1px 2px #000; }
.bomb-icon { position: absolute; left: 28px; bottom: 140px; font-family: var(--display); font-weight: 700; color: var(--bad); letter-spacing: 2px; font-size: 14px; background: rgba(10,12,16,.7); padding: 4px 10px; border-radius: 3px; }

.chat { position: absolute; left: 20px; bottom: 180px; width: 380px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.chat .ln { text-shadow: 0 1px 3px #000; animation: toastIn .15s; }
.chat .ln.old { opacity: 0; transition: opacity 1s; }
.chat input { pointer-events: auto; margin-top: 4px; background: rgba(0,0,0,.6); }

/* overlays inside hud (interactive) */
/* Overlays scroll when their content is taller than the window; margin:auto keeps short content centred
   without clipping the top of tall content. */
.overlay { position: absolute; inset: 0; display: flex; overflow: auto; overscroll-behavior: contain; padding: 24px 16px; pointer-events: auto; background: rgba(0,0,0,.45); }
.overlay > * { margin: auto; flex-shrink: 0; max-width: 100%; }
.scoreboard { width: min(900px, 94vw); background: rgba(12,15,20,.92); border: 1px solid var(--line2); border-radius: 6px; padding: 18px; }
.scoreboard .sb-team { margin-bottom: 14px; }
.scoreboard .sb-head { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; padding: 4px 8px; }
.scoreboard .sb-head.t { color: var(--t); } .scoreboard .sb-head.ct { color: var(--ct); }
.scoreboard tr.dead td { opacity: .45; }
.buy-menu { width: min(1180px, 96vw); background: rgba(12,15,20,.95); border: 1px solid var(--line2); border-radius: 6px; padding: 18px; }
.buy-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.buy-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 16px; margin-top: 14px; align-items: start; }
.buy-gear { padding-right: 16px; border-right: 1px solid var(--line); }
.buy-gear.buy-nades { padding-right: 0; padding-left: 16px; border-right: 0; border-left: 1px solid var(--line); }
.buy-gear .buy-item { padding: 18px 14px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.buy-gear .buy-item b { font-size: 14px; }
@media (max-width: 900px) { .buy-body { grid-template-columns: 1fr; } .buy-gear, .buy-gear.buy-nades { padding: 0; border: 0; } }
.buy-item.sell { border-style: dashed; }
.clan-tag { font-style: normal; opacity: .7; margin-right: 3px; font-size: .9em; }
.bot-tag { font-style: normal; font-size: .62em; font-weight: 700; letter-spacing: 1px; padding: 1px 4px; margin-right: 5px; border: 1px solid currentColor; border-radius: 3px; opacity: .55; vertical-align: middle; }
.buy-att { font-style: normal; font-size: 10px; opacity: .65; margin-left: 4px; }
.buy-item.sell b { color: var(--accent); }
.buy-cat h3 { font-size: 13px; }
.buy-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 6px; cursor: pointer; font-size: 13px; background: rgba(255,255,255,.02); }
.buy-item:hover { border-color: var(--accent); }
.buy-item.no { opacity: .35; pointer-events: none; }
.buy-item.owned { border-color: var(--good); }
.buy-item b { font-family: var(--mono); font-size: 12px; color: var(--good); }
.buy-item kbd { margin-right: 6px; }
.pause { width: 360px; display: flex; flex-direction: column; gap: 10px; }

.resume-prompt { cursor: pointer; background: rgba(0,0,0,.25); }
.resume-prompt > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-shadow: 0 2px 8px #000; }
.resume-prompt b { font-family: var(--display); font-size: 40px; letter-spacing: 3px; text-transform: uppercase; }
.resume-prompt span { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

/* Ready up: everyone's calling card either side of the panel. */
.ready-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; }
.lineup { width: 290px; display: flex; flex-direction: column; gap: 6px; }
.lineup:empty { display: none; }
.lu-head { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; padding: 0 2px 2px; }
.lu-head.t { color: var(--t); } .lu-head.ct { color: var(--ct); }
.lineup[data-side="1"] .lu-head { text-align: right; }
.lu-card { height: 64px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid #ddd; position: relative; display: flex; align-items: center; padding: 0 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.45); animation: lu-in .4s ease-out both; }
.lu-card.t { border-left-color: var(--t); } .lu-card.ct { border-left-color: var(--ct); }
.lu-card.me { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.45); }
.lu-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.3) 70%, transparent); }
.lu-text { position: relative; display: flex; flex-direction: column; min-width: 0; }
.lu-text b { font-family: var(--display); font-size: 21px; line-height: 1.05; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-text span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.lu-card.me .lu-text span { color: var(--accent); }
.lineup .lu-card:nth-child(2) { animation-delay: .04s; } .lineup .lu-card:nth-child(3) { animation-delay: .08s; } .lineup .lu-card:nth-child(4) { animation-delay: .12s; } .lineup .lu-card:nth-child(5) { animation-delay: .16s; } .lineup .lu-card:nth-child(n+6) { animation-delay: .2s; }
@keyframes lu-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .lu-card { animation: none; } }
@media (max-width: 1100px) { .ready-wrap { flex-direction: column; gap: 14px; } .lineup { width: 360px; max-width: 100%; } .lineup[data-side="1"] .lu-head { text-align: left; } }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.preset { border: 1px solid var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.03); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.preset-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.preset-items { min-height: 2.6em; line-height: 1.3; }
.preset .row { gap: 6px; }

.emote-wheel { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px; pointer-events: none; z-index: 6; }
.emote-wheel::before { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle, rgba(10,12,16,.75), rgba(10,12,16,.35)); }
.ew-slot { position: absolute; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: rgba(12,14,18,.82); border: 1px solid rgba(255,255,255,.12); transition: transform .12s, border-color .12s; }
.ew-slot i { font-style: normal; font-size: 30px; line-height: 1; }
.ew-slot span { font-family: var(--display); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.ew-slot.sel { border-color: var(--accent); transform: scale(1.12); box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(242,163,58,.35); }
.ew-slot.s0 { left: 118px; top: 0; } .ew-slot.s1 { right: 0; top: 128px; } .ew-slot.s2 { left: 118px; bottom: 0; } .ew-slot.s3 { left: 0; top: 128px; }
.ew-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 11px; color: rgba(255,255,255,.6); padding: 0 110px; }
.drop-swatch { display: grid; place-items: center; font-size: 28px; }

.killcam { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 4; animation: kc-in .35s ease-out; }
.kc-tag { font-family: var(--display); font-weight: 700; letter-spacing: 4px; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 2px 6px #000; }
.kc-tag i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: kc-blink 1s steps(2) infinite; }
.kc-card { width: 480px; height: 120px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 12px 40px rgba(0,0,0,.6); display: flex; align-items: center; padding: 0 22px; position: relative; overflow: hidden; }
.kc-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.25) 65%, transparent); }
.kc-text { position: relative; display: flex; flex-direction: column; }
.kc-text span { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.7); font-weight: 600; }
.kc-text b { font-family: var(--display); font-size: 34px; line-height: 1.05; letter-spacing: 1px; }
.kc-text em { font-style: normal; font-size: 13px; color: var(--accent); }
.kc-skip { font-size: 12px; color: rgba(255,255,255,.65); }
#hud.in-killcam::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px rgba(0,0,0,.65); background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); }
#hud.in-killcam .crosshair, #hud.in-killcam .spectate, #hud.in-killcam .center-msg, #hud.in-killcam .hud-bottom-left, #hud.in-killcam .hud-bottom-right, #hud.in-killcam .money { display: none; }
@keyframes kc-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes kc-blink { 50% { opacity: .2; } }

.replay-ui { position: absolute; inset: 0; pointer-events: none; font-size: 14px; }
.replay-ui > * { pointer-events: auto; }
.rp-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(10,12,16,.72); border: 1px solid rgba(255,255,255,.1); }
.rp-badge { background: #ff3b3b; color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: 3px; padding: 2px 8px; font-size: 13px; }
.rp-score { font-family: var(--display); font-size: 22px; font-weight: 700; }
.rp-feed { position: absolute; top: 72px; right: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; }
.rp-feed .kf { background: rgba(10,12,16,.72); padding: 4px 10px; display: flex; gap: 8px; }
.rp-feed .w { color: var(--muted); } .rp-feed .hs { color: #ff6b6b; }
.rp-players { position: absolute; left: 16px; top: 72px; display: flex; flex-direction: column; gap: 3px; max-height: 60vh; overflow-y: auto; }
.rp-p { padding: 4px 10px; background: rgba(10,12,16,.65); border-left: 3px solid #666; cursor: pointer; min-width: 150px; }
.rp-p.t { border-left-color: var(--t); } .rp-p.ct { border-left-color: var(--ct); }
.rp-p.sel { background: rgba(242,163,58,.25); outline: 1px solid var(--accent); }
.rp-target { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 6px #000; pointer-events: none; }
.rp-target b { font-family: var(--display); font-size: 26px; letter-spacing: 1px; }
.rp-bar { position: absolute; left: 16px; right: 16px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(10,12,16,.82); border: 1px solid rgba(255,255,255,.1); }
.rp-time { font-family: var(--mono, monospace); min-width: 96px; }
.rp-track { position: relative; flex: 1; }
.rp-scrub { width: 100%; }
.rp-marks { position: absolute; left: 0; right: 0; top: -8px; height: 6px; pointer-events: none; }
.rp-marks i { position: absolute; width: 3px; height: 8px; background: #ff4d4d; transform: translateX(-1px); }
.rp-help { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); pointer-events: none; }

#hud.spectator-hud .hud-bottom-right .slots, #hud.spectator-hud .money, #hud.spectator-hud .crosshair { display: none; }
#hud.spectator-hud .spectate { bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.spec-tag { font-family: var(--display); letter-spacing: 4px; font-weight: 700; font-size: 12px; color: var(--accent); }
.spectate b { font-family: var(--display); font-size: 26px; }

/* ───────────── controller ───────────── */
.pad-mode .pad-focus { outline: 3px solid var(--accent) !important; outline-offset: 2px; position: relative; z-index: 1; }
.pad-mode, .pad-mode * { cursor: none; }
.pad-gate { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at 50% 30%, rgba(242,163,58,.12), transparent 60%), var(--bg); display: flex; overflow-y: auto; padding: 24px 16px; }
.pad-gate-card { margin: auto; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pad-gate-icon { width: 120px; color: var(--muted); }
.pad-gate.ready .pad-gate-icon { color: var(--accent); }
.pad-gate h1 { margin: 0; }
.pad-gate p { margin: 0; line-height: 1.5; }
.pad-gate-status { font-weight: 600; color: var(--muted); }
.pad-gate.ready .pad-gate-status { color: var(--good); }
.pad-gate-help { font-size: 12px; color: var(--muted); margin-top: 8px !important; }
.drills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ───────────── pings ───────────── */
.ping-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.ping { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--c); text-shadow: 0 1px 4px #000; transition: opacity .2s; }
.ping i { font-style: normal; font-size: 22px; line-height: 1; animation: ping-pop .35s ease-out; }
.ping b { font-family: var(--display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.ping span { font-size: 11px; color: #e8e4da; }
.ping.edge b, .ping.edge span { display: none; }
@keyframes ping-pop { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ping-wheel { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px; pointer-events: none; z-index: 6; }
.ping-wheel::before { content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle, rgba(10,12,16,.7), rgba(10,12,16,.3)); }
.pw-slot { position: absolute; width: 92px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: rgba(12,14,18,.82); border: 1px solid rgba(255,255,255,.12); color: var(--c); transition: transform .12s, border-color .12s; }
.pw-slot i { font-style: normal; font-size: 20px; line-height: 1; }
.pw-slot span { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #fff; text-align: center; }
.pw-slot.sel { border-color: var(--c); transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
@media (prefers-reduced-motion: reduce) { .ping i { animation: none; } }
.kc-tag.hl i { background: var(--accent); }
.hl-overlay { background: none !important; pointer-events: none; align-items: flex-end; justify-content: flex-end; padding: 24px; }
.hl-overlay .btn { pointer-events: auto; margin: auto 0 0 auto; }
.btn.tiny { padding: 3px 8px; font-size: 12px; min-width: 30px; }
.tbl td.rate { white-space: nowrap; text-align: right; }
.tbl td.rate .btn + .btn { margin-left: 4px; }

/* Anything wider than its container scrolls sideways instead of being cut off. */
.modal, .overlay .panel, .buy-menu, .scoreboard, .adm-player, .m-panel { overflow-x: auto; }

/* Live crosshair preview in Settings, over a choice of backgrounds. */
.ch-preview { position: relative; height: 150px; border: 1px solid var(--line2, rgba(255,255,255,.14)); overflow: hidden; margin-bottom: 12px; }
.ch-preview[data-bg=dark] { background: linear-gradient(180deg, #3a3f45 0 55%, #23272c 55%), #2b2f33; }
.ch-preview[data-bg=sand] { background: linear-gradient(180deg, #d8c39a 0 55%, #b89a6a 55%); }
.ch-preview[data-bg=sky] { background: linear-gradient(180deg, #a9c8e8 0, #dfeaf5 60%, #8f9aa3 60%); }
.ch-preview .crosshair { z-index: 1; }
.ch-preview-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-preview-bar .seg { background: rgba(10,12,16,.7); }
.ch-preview-bar .btn { background: rgba(10,12,16,.7); }

/* Prop Hunt: the seekers' blindfold while the hiders hide */
.ph-blind { position: fixed; inset: 0; z-index: 40; background: #050608; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; color: #e9edf2; }
.ph-blind b { font-family: var(--display); font-size: 28px; letter-spacing: 2px; }
.ph-blind span { font-family: var(--display); font-size: 64px; color: var(--accent, #f2c14e); }

li.cl-sub { margin-left: 18px; list-style: circle; }

/* Clans */
.clan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.clan-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.clan-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.clan-head b { display: block; font-size: 20px; }
.clan-head span { color: var(--muted); font-size: 12px; }
.clan-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 8px 8px; border-radius: 5px; background: var(--accent, #f2c14e); color: #111; font-family: var(--display); font-size: 18px; letter-spacing: 1px; }
.clan-badge.small { min-width: 0; padding: 1px 6px; font-size: 11px; vertical-align: middle; }
.clan-invite { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.clan-invite > span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.clan-invite kbd { font-size: 16px; letter-spacing: 2px; }
.clan-role { font-style: normal; font-size: 10px; color: var(--accent, #f2c14e); margin-left: 4px; text-transform: uppercase; letter-spacing: 1px; }
#clan-leave { margin-top: 14px; }
