:root {
  --accent: #f2b33d;
  --accent2: #ff5a36;
  --friendly: #48b8ff;
  --enemy: #ff4a3a;
  --panel: rgba(12, 14, 16, 0.78);
  --panel2: rgba(30, 34, 38, 0.85);
  --text: #eef0ea;
  --muted: #9aa29a;
  --font: 'Rajdhani', 'Segoe UI', sans-serif;
  --head: 'Teko', 'Impact', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a0b0c; color: var(--text); font-family: var(--font); user-select: none; }
#app, #canvas-wrap { position: fixed; inset: 0; }
#game-canvas { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }
body.hoverlook #game-canvas { cursor: none; }
#nametags { position: absolute; inset: 0; overflow: hidden; }
.ntag { position: absolute; left: 0; top: 0; text-align: center; color: var(--friendly); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; }
.ntag i { display: block; width: 0; height: 0; margin: 1px auto 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--friendly); filter: drop-shadow(0 1px 1px #000); }
#enemy-name { transition: opacity .1s; }
.etag { position: absolute; left: 0; top: 0; }
.etag i { display: block; width: 9px; height: 9px; background: var(--enemy); transform: rotate(45deg); border: 1.5px solid rgba(0,0,0,.65); box-shadow: 0 0 6px rgba(255,60,40,.8); }
.ntag i { border-top-color: var(--friendly); }

/* ---------------- Loading ---------------- */
#loading { position: fixed; inset: 0; background: radial-gradient(ellipse at center, #1c1f1e 0%, #070808 80%); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; }
.load-title { font-family: var(--head); font-size: 84px; letter-spacing: 6px; line-height: 1; }
.load-title b { color: var(--accent); }
#load-msg { color: var(--muted); margin: 12px 0; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.load-bar { width: 360px; height: 4px; background: #222; }
#load-fill { height: 100%; width: 0; background: var(--accent); transition: width .1s; }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity .08s; }
#crosshair .ch { position: absolute; background: rgba(255,255,255,.92); box-shadow: 0 0 2px rgba(0,0,0,.9); }
#crosshair .ch-t, #crosshair .ch-b { width: 2px; height: 9px; left: -1px; }
#crosshair .ch-l, #crosshair .ch-r { width: 9px; height: 2px; top: -1px; }
#crosshair .ch-dot { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; background: rgba(255,255,255,.85); }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#hitmarker i { position: absolute; width: 11px; height: 2px; background: #fff; box-shadow: 0 0 2px #000; }
#hitmarker i:nth-child(1) { left: 5px; top: 5px; transform: rotate(45deg); transform-origin: 0 0; }
#hitmarker i:nth-child(2) { left: -5px; top: 5px; transform: rotate(135deg); transform-origin: 0 0; }
#hitmarker i:nth-child(3) { left: -5px; top: -5px; transform: rotate(225deg); transform-origin: 0 0; }
#hitmarker i:nth-child(4) { left: 5px; top: -5px; transform: rotate(315deg); transform-origin: 0 0; }
#hitmarker.kill i { background: #ff3a2a; }
#hitmarker.head i { background: #ffd23a; }

#vignette-dmg { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(150,0,0,.55) 100%); }
#vignette-low { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(90,0,0,.85) 100%); }
#dmg-indicators { position: absolute; left: 50%; top: 50%; }
.dmg-ind { position: absolute; left: -60px; top: -170px; width: 120px; height: 40px; transform-origin: 60px 170px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,40,20,.85) 0%, rgba(255,40,20,0) 70%); border-top: 3px solid rgba(255,60,40,.9); border-radius: 50% 50% 0 0; }

#scope-overlay { position: absolute; inset: 0; }
#scope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#scope-read { position: absolute; left: 50%; top: calc(50% + 20vh); transform: translateX(-50%); font-family: var(--font); font-weight: 700; font-size: 24px; letter-spacing: 3px; color: #5dffb0; text-shadow: 0 0 8px rgba(40,255,170,.6); white-space: nowrap; }
#scope-read.lock { color: #ffb14a; text-shadow: 0 0 8px rgba(255,160,60,.7); }

#minimap-wrap { position: absolute; left: 22px; top: 22px; width: 220px; height: 220px; border-radius: 6px; overflow: hidden; background: rgba(10,12,12,.62); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 2px 14px rgba(0,0,0,.5); }

#scorebar { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 0; font-family: var(--head); }
.sb-team { min-width: 70px; padding: 0 14px; display: flex; align-items: center; justify-content: center; font-size: 40px; line-height: 1; background: var(--panel); }
.sb-friendly { color: var(--friendly); border-bottom: 3px solid var(--friendly); }
.sb-enemy { color: var(--enemy); border-bottom: 3px solid var(--enemy); }
.sb-mid { padding: 2px 18px; background: rgba(0,0,0,.55); text-align: center; }
#sb-timer { font-size: 30px; line-height: 1; }
#sb-mode { font-size: 13px; color: var(--muted); letter-spacing: 2px; font-family: var(--font); font-weight: 700; }

#killfeed { position: absolute; top: 22px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; font-size: 16px; }
.kf { background: var(--panel); padding: 3px 10px; display: flex; gap: 10px; align-items: center; animation: kfin .18s ease-out; }
.kf .f { color: var(--friendly); } .kf .e { color: var(--enemy); } .kf .me { color: var(--accent); }
.kf .w { color: #ddd; font-size: 13px; letter-spacing: 1px; opacity: .85; }
.kf .hs { color: #ffd23a; font-size: 12px; }
@keyframes kfin { from { transform: translateX(30px); opacity: 0; } }

#ammo { position: absolute; right: 34px; bottom: 30px; text-align: right; }
#ammo-weapon { font-family: var(--head); font-size: 24px; letter-spacing: 2px; color: #e8e8e0; text-shadow: 0 2px 6px #000; }
#ammo-count { font-family: var(--head); line-height: .9; text-shadow: 0 2px 8px #000; }
#ammo-mag { font-size: 64px; }
#ammo-mag.low { color: var(--accent2); }
#ammo-res { font-size: 30px; color: #bbb; margin-left: 8px; }
#ammo-bar { height: 3px; background: rgba(255,255,255,.85); margin-top: 4px; margin-left: auto; width: 160px; transform-origin: right; }
#ammo-hint { font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-top: 6px; font-size: 16px; height: 18px; }

#movement-hud { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); text-align: center; }
#tac-bar { width: 120px; height: 3px; background: rgba(255,255,255,.15); margin: 0 auto; opacity: 0; transition: opacity .3s; }
#tac-bar.show { opacity: 1; }
#tac-fill { height: 100%; width: 100%; background: var(--accent); }
#move-state { font-weight: 700; letter-spacing: 3px; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 6px; height: 16px; }

#center-msg { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-family: var(--head); font-size: 42px; letter-spacing: 3px; text-shadow: 0 3px 12px #000; text-align: center; }
#score-popups { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); text-align: center; font-family: var(--head); }
.pop { font-size: 26px; color: var(--accent); animation: popup 1.4s ease-out forwards; text-shadow: 0 2px 6px #000; }
.pop.big { font-size: 34px; color: #fff; }
.pop small { display: block; font-size: 16px; color: #ddd; letter-spacing: 2px; font-family: var(--font); font-weight: 700; }
@keyframes popup { 0% { transform: scale(1.5); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
#enemy-name { position: absolute; left: 50%; top: calc(50% - 60px); transform: translateX(-50%); color: var(--enemy); font-weight: 700; letter-spacing: 2px; font-size: 15px; text-shadow: 0 1px 4px #000; }
#enemy-name.friendly { color: var(--friendly); }
#fps { position: absolute; right: 8px; bottom: 4px; font-size: 12px; color: rgba(255,255,255,.55); font-family: monospace; }

#scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 640px; background: rgba(8,10,10,.86); border: 1px solid rgba(255,255,255,.1); padding: 18px 22px; }
#scoreboard h3 { margin: 0 0 8px; font-family: var(--head); font-size: 30px; letter-spacing: 2px; font-weight: 500; }
#scoreboard table { width: 100%; border-collapse: collapse; font-size: 17px; font-weight: 600; }
#scoreboard th { text-align: left; color: var(--muted); font-size: 13px; letter-spacing: 2px; padding: 4px 8px; }
#scoreboard td { padding: 4px 8px; border-top: 1px solid rgba(255,255,255,.06); }
#scoreboard tr.me td { background: rgba(242,179,61,.16); }
#scoreboard .tf { color: var(--friendly); } #scoreboard .te { color: var(--enemy); }

/* ---------------- Death screen ---------------- */
#death-screen { position: fixed; inset: 0; z-index: 12; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12vh; background: radial-gradient(ellipse at center, rgba(60,0,0,0) 40%, rgba(40,0,0,.45)); }
.death-title { font-family: var(--head); font-size: 64px; letter-spacing: 6px; color: #ff4a3a; text-shadow: 0 4px 16px #000; }
#death-by { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
#death-timer { font-size: 18px; color: var(--muted); margin-top: 10px; letter-spacing: 2px; }
.death-hint { margin-top: 18px; color: var(--accent); letter-spacing: 2px; font-weight: 700; }

/* ---------------- Menu ---------------- */
#menu { position: fixed; inset: 0; z-index: 20; }
#menu:empty { display: none; }
.menu-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,6,.92) 0%, rgba(5,6,6,.7) 45%, rgba(5,6,6,.2) 100%); }
.menu-inner { position: absolute; inset: 0; padding: 48px 64px; display: flex; flex-direction: column; overflow-y: auto; pointer-events: auto; }
.logo { font-family: var(--head); font-size: 78px; line-height: .85; letter-spacing: 4px; }
.logo b { color: var(--accent); }
.logo small { display: block; font-size: 18px; letter-spacing: 8px; color: var(--muted); font-family: var(--font); font-weight: 700; margin-top: 6px; }
.tabs { display: flex; gap: 6px; margin: 28px 0 22px; }
.tab { font-family: var(--head); font-size: 28px; letter-spacing: 3px; padding: 4px 22px 0; background: transparent; color: var(--muted); border: none; border-bottom: 3px solid transparent; cursor: pointer; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--accent); }
.section-title { font-family: var(--head); font-size: 22px; letter-spacing: 3px; color: var(--muted); margin: 14px 0 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.08); padding: 12px 14px; cursor: pointer; transition: border-color .12s, transform .12s, background .12s; min-width: 150px; }
.card:hover { border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.card.sel { border-color: var(--accent); background: rgba(40,34,20,.85); box-shadow: inset 0 0 0 1px var(--accent); }
.card h4 { margin: 0; font-family: var(--head); font-size: 26px; letter-spacing: 2px; font-weight: 500; line-height: 1; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; max-width: 260px; }
.card .tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 700; }
.map-card { width: 260px; }
.map-card canvas { width: 100%; height: 130px; display: block; margin-bottom: 8px; background: #111; }
.btn { font-family: var(--head); font-size: 30px; letter-spacing: 4px; padding: 8px 40px 2px; background: var(--accent); color: #111; border: none; cursor: pointer; transition: filter .12s, transform .1s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.opt { display: flex; align-items: center; gap: 14px; margin: 8px 0; font-weight: 700; letter-spacing: 1px; }
.opt label { width: 220px; color: #cfd4cc; }
.opt input[type=range] { width: 240px; accent-color: var(--accent); }
.opt .val { width: 60px; color: var(--accent); }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.18); }
.seg button { background: transparent; color: #ccc; border: none; padding: 6px 14px; font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: 1px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #111; }
.stat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #bbb; margin-top: 3px; }
.stat span { width: 82px; }
.stat i { flex: 1; height: 4px; background: rgba(255,255,255,.1); position: relative; }
.stat i b { position: absolute; left: 0; top: 0; bottom: 0; background: #e8e8e0; }
.wcard { width: 230px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; font-weight: 600; }
.controls { display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px; font-weight: 600; font-size: 15px; max-width: 620px; }
.controls b { color: var(--accent); }
.pause-box { position: absolute; left: 64px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.ws-preview { position: absolute; right: 4%; top: 18%; width: 46%; height: 50%; pointer-events: none; }

.tab-body.loadout { max-width: 56vw; }
.tab-body.loadout .section-title { margin: 12px 0 6px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.tab-body.loadout .wcard { width: auto; min-width: 0; padding: 7px 11px 5px; }
.tab-body.loadout .wcard h4 { font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
.tab-body.loadout .wcard .tag { font-size: 10px; letter-spacing: 1.5px; white-space: nowrap; }
.seg.wrap { display: flex; flex-wrap: wrap; width: fit-content; }
.seg.wrap button { padding: 5px 11px; font-size: 14px; }
.optic-hint { margin-top: 5px; font-size: 13px; line-height: 1.3; }
.optic-hint b { color: #cfd4cc; }
.wstats { position: fixed; right: 4vw; top: 70vh; width: 32vw; min-width: 280px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); padding: 10px 16px 12px; }
.wstats .tag { font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 700; }
.wstats h4 { margin: 0; font-family: var(--head); font-size: 30px; letter-spacing: 2px; font-weight: 500; line-height: 1; }
.wstats-optic { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 1px; margin: 2px 0 6px; }
@media (max-width: 1000px) { .tab-body.loadout { max-width: 62vw; } .wgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* ---------------- Warzone ---------------- */
.wz { max-width: 640px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); padding: 18px 24px 22px; }
.wz h2 { margin: 0 0 6px; font-family: var(--head); font-weight: 500; font-size: 32px; letter-spacing: 2px; color: var(--accent); }
.wz p { margin: 0 0 12px; font-weight: 600; color: #d4d8d0; line-height: 1.35; }
.wz ul { list-style: none; margin: 0 0 14px; padding: 0; font-weight: 600; font-size: 15px; color: var(--muted); }
.wz li { margin: 4px 0; }
.wz li b { display: inline-block; width: 92px; color: #fff; }
#hitmarker.armor i { background: #5ac8ff; }
#hud.br .sb-team { min-width: 76px; flex-direction: column; color: #fff; border-bottom-color: rgba(255,255,255,.4); line-height: .9; padding-top: 4px; }
#hud.br .sb-friendly::after, #hud.br .sb-enemy::after { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin-top: 2px; }
#hud.br .sb-friendly::after { content: 'LEBEN'; }
#hud.br .sb-enemy::after { content: 'KILLS'; }
#sb-timer.urgent { color: #ff8a4a; }
#br-status { position: absolute; left: 22px; bottom: 26px; width: 280px; }
.br-armor { display: flex; gap: 4px; margin-bottom: 4px; }
.br-armor i { flex: 1; height: 9px; background: rgba(0,0,0,.5); position: relative; border: 1px solid rgba(255,255,255,.14); }
.br-armor i::after { content: ''; position: absolute; inset: 0; background: #5ac8ff; transform-origin: left; transform: scaleX(var(--k, 0)); box-shadow: 0 0 6px rgba(90,200,255,.5); }
.br-health { height: 12px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); }
.br-health b { display: block; height: 100%; width: 100%; background: #eef0ea; transition: width .12s; }
.br-health b.low { background: #ff4a3a; }
.br-plates { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-family: var(--head); font-size: 24px; line-height: 1; text-shadow: 0 2px 4px #000; }
.br-plates .ic { width: 15px; height: 20px; background: #5ac8ff; border: 1px solid rgba(0,0,0,.6); clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 70%, 50% 100%, 0 70%, 0 12%); }
.br-plates .k { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); }
#br-banner { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); font-family: var(--head); font-size: 40px; letter-spacing: 4px; text-shadow: 0 3px 12px #000; white-space: nowrap; opacity: 0; text-align: center; }
#br-hint { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); font-weight: 700; font-size: 17px; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 5px #000; white-space: nowrap; opacity: 0; }
#br-prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); padding: 6px 16px; background: var(--panel); border: 1px solid rgba(255,255,255,.25); font-weight: 700; letter-spacing: 1px; font-size: 17px; white-space: nowrap; }
#br-card { --rar: #fff; position: absolute; left: 0; top: 0; width: clamp(176px, 14.6vw, 300px); font-size: clamp(10px, 0.72vw, 15px); pointer-events: none; will-change: transform; animation: br-card-in .1s ease-out; }
@keyframes br-card-in { from { opacity: 0; } to { opacity: 1; } }
#br-card .pan { position: relative; aspect-ratio: 280 / 88; padding: .45em .6em; box-sizing: border-box; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--rar) 44%, #080a0c), color-mix(in srgb, var(--rar) 24%, #080a0c)); border: 1px solid color-mix(in srgb, var(--rar) 70%, #fff 12%); opacity: .95; }
#br-card .na { position: relative; z-index: 1; font-weight: 700; font-size: 1.14em; letter-spacing: .4px; line-height: 1.1; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
#br-card .cl { position: relative; z-index: 1; font-weight: 600; font-size: .86em; line-height: 1.15; color: rgba(255,255,255,.66); white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
#br-card .dm { position: absolute; right: .7em; top: .7em; width: .62em; height: .62em; transform: rotate(45deg); border: 1px solid #fff; background: color-mix(in srgb, var(--rar) 80%, #fff); }
#br-card .ic { position: absolute; left: 16%; bottom: 2%; width: 68%; height: 56%; filter: brightness(1.45) drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
#br-card .op { position: absolute; z-index: 1; left: .7em; bottom: .3em; font-weight: 700; font-size: .78em; color: rgba(255,255,255,.82); white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
#br-card .key { display: flex; align-items: center; gap: .5em; margin-top: .4em; font-weight: 700; letter-spacing: .6px; font-size: .95em; color: #fff; text-shadow: 0 1px 3px #000; }
#br-card .key b { display: inline-block; min-width: 1.5em; text-align: center; padding: 0 .3em; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; background: rgba(0,0,0,.5); line-height: 1.5; }
#br-card.far .key { visibility: hidden; }
#br-progress { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); width: 240px; text-align: center; font-weight: 700; letter-spacing: 2px; font-size: 13px; text-shadow: 0 1px 3px #000; }
#br-progress i { display: block; height: 5px; margin-top: 4px; background: rgba(0,0,0,.5); }
#br-progress b { display: block; height: 100%; width: 0; background: #5ac8ff; }
#br-gas { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,110,30,.12) 25%, rgba(255,70,10,.5) 100%); }
#br-gas div { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-family: var(--head); font-size: 34px; letter-spacing: 3px; color: #ffb27a; text-align: center; text-shadow: 0 2px 8px #000; white-space: nowrap; }
#br-gas small { display: block; font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #fff; }
#br-alt { position: absolute; right: 34px; top: 46%; font-family: var(--head); font-size: 38px; letter-spacing: 2px; text-shadow: 0 2px 8px #000; }
#br-veh { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 230px; text-align: center; background: var(--panel); padding: 5px 12px 8px; border: 1px solid rgba(255,255,255,.1); }
#br-veh .na { font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--muted); }
#br-veh .sp { font-weight: 700; color: #d8dcd4; }
#br-veh .sp b { font-family: var(--head); font-size: 40px; font-weight: 500; line-height: 1; color: #fff; }
#br-veh i { display: block; height: 4px; margin-top: 3px; background: rgba(255,255,255,.14); }
#br-veh u { display: block; height: 100%; background: var(--accent); }
#br-pops { position: absolute; left: calc(50% + 70px); top: calc(50% + 26px); font-weight: 700; letter-spacing: 1px; font-size: 14px; text-shadow: 0 1px 3px #000; }
#br-map { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(4,6,8,.62); pointer-events: none; }
#br-map canvas { border: 2px solid rgba(255,255,255,.3); box-shadow: 0 8px 40px rgba(0,0,0,.6); }
#br-map .legend { margin-top: 8px; font-weight: 700; letter-spacing: 1px; font-size: 14px; color: #dfe2da; }
#br-map .legend span { margin-right: 16px; }
#br-map .lz::before, #br-map .ln::before, #br-map .lp::before, #br-map .lv::before { content: ''; display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; background: #ff6a2a; }
#br-map .ln::before { background: #fff; }
#br-map .lp::before { background: #ffd04a; height: 8px; width: 8px; }
#br-map .lv::before { background: #7fd4ff; height: 6px; width: 9px; }
#br-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: auto; }
#br-result .logo { font-size: 110px; }
#br-result .rs { display: flex; gap: 46px; margin: 26px 0 30px; }
#br-result .rs b { display: block; font-family: var(--head); font-weight: 500; font-size: 54px; line-height: 1; }
#br-result .rs span { color: var(--muted); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
#br-result .bt { display: flex; gap: 14px; }

/* docked to cover: a small marker under the sight, pointing where you lean */
#mount-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 52px); text-align: center; opacity: 0; transition: opacity .12s; pointer-events: none; }
#mount-mark.top, #mount-mark.left, #mount-mark.right { opacity: 1; }
#mount-mark span { display: block; font-weight: 700; font-size: 11px; letter-spacing: 3px; color: #f2e6c8; text-shadow: 0 1px 2px #000; }
#mount-mark i { display: block; width: 0; height: 0; margin: 0 auto 3px; border: 6px solid transparent; }
#mount-mark.top i { border-bottom-color: #f2b33d; border-top-width: 0; }
#mount-mark.left i { border-right-color: #f2b33d; border-left-width: 0; }
#mount-mark.right i { border-left-color: #f2b33d; border-right-width: 0; }

/* Warzone: down, waiting for your own revive */
#br-down { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 19vh; background: radial-gradient(ellipse at center, rgba(120,0,0,0) 36%, rgba(90,0,0,.62) 100%); }
#br-down .t { font-family: var(--head); font-size: 44px; letter-spacing: 8px; color: #ff5a44; text-shadow: 0 2px 6px #000; }
#br-down .bl { width: 300px; height: 7px; margin: 6px 0 10px; background: rgba(0,0,0,.6); }
#br-down .bl b { display: block; height: 100%; background: #e8392a; transform-origin: left; }
#br-down .key { font-weight: 700; font-size: 16px; letter-spacing: 2px; color: #fff; text-shadow: 0 1px 3px #000; }
#br-down .rv { width: 300px; height: 9px; margin-top: 8px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3); opacity: 0; }
#br-down .rv b { display: block; height: 100%; background: #6ad06a; transform-origin: left; transform: scaleX(0); }

/* finishers: the picture of a film */
#br-cine{position:absolute;inset:0;pointer-events:none;z-index:40;overflow:hidden}
#br-cine .b{position:absolute;left:0;right:0;height:11.5vh;background:#000;transform:scaleY(0);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
#br-cine .b.t{top:0;transform-origin:top}
#br-cine .b.u{bottom:0;transform-origin:bottom}
#br-cine .v{position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 54%,rgba(0,0,0,.55) 100%);opacity:0;transition:opacity .25s}
#br-cine .n{position:absolute;left:4vw;bottom:4vh;font-family:var(--font);font-weight:700;font-size:1.6vh;letter-spacing:.42em;color:#e8e2d4;opacity:0;transition:opacity .4s .35s}
#br-cine .f{position:absolute;inset:0;background:#fff;opacity:0}
#br-cine .f.on{animation:cineflash .55s ease-out}
@keyframes cineflash{0%{opacity:.92}100%{opacity:0}}
body.cine #br-cine .b{transform:scaleY(1)}
body.cine #br-cine .v{opacity:1}
body.cine #br-cine .n{opacity:.85}
body.cine #hud>*{opacity:0!important}
body.cine #canvas-wrap canvas{filter:contrast(1.14) saturate(.82) brightness(.97)}
