:root {
  --bg: #0e110c; --panel: #171c13; --panel2: #20271a; --line: #36402c;
  --text: #f1f3ea; --muted: #9aa68c; --accent: #ffd23f; --accent2: #3ee08f;
  --danger: #ff5a5f; --blue: #58a6ff; --red: #ff5a5f; --squad: #3ee08f;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.h { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.box { background: rgba(10, 13, 8, .84); border: 1px solid #ffffff22; border-radius: 12px; box-shadow: 0 6px 20px #0008; }
.mt { margin-top: 9px; }

/* ------------------------------------------------------------ screens */
.screen { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; z-index: 20;
  background: radial-gradient(120% 60% at 50% 0%, #2c4a24 0%, var(--bg) 62%); padding: var(--sat) var(--sar) var(--sab) var(--sal); }
.screen.overlay { background: rgba(8, 10, 6, .88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 30; }
.wrap { padding: 22px 16px 28px; max-width: 540px; margin: 0 auto; }
.wrap.wide { max-width: 760px; }
.logo { text-align: center; margin: 6px 0 14px; }
.logo .t1, .logo .t2 { font-size: 44px; line-height: .9; }
.logo .t2, .logo span { color: var(--accent); }
.logo.small .t1 { font-size: 32px; }
.logo .sub2 { color: var(--muted); font-size: 11px; letter-spacing: .3em; margin-top: 7px; font-weight: 700; }
.card { background: rgba(23, 28, 19, .94); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.card p, .card li { font-size: 13px; line-height: 1.45; color: #cdd6c4; }
.card p b, .card li b { color: var(--accent); }
.card ul { padding-left: 18px; display: grid; gap: 5px; }
.lbl { font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase; }
.lbl.mt { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel2); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.sel { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.maps { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; touch-action: pan-x pan-y; }
.mapc { flex: 0 0 44%; scroll-snap-align: start; background: var(--panel2); border: 2px solid transparent; border-radius: 12px; padding: 6px; text-align: left; }
.mapc.sel { border-color: var(--accent); background: #2a2a14; }
.mapc canvas { width: 100%; height: 118px; border-radius: 8px; display: block; }
.mapc .n { font-size: 13px; font-weight: 900; margin-top: 5px; } .mapc .d { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 0; text-align: center; font-weight: 900; font-style: italic; font-size: 15px; }
.seg button.sel { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.seg button small { display: block; font-size: 9px; font-style: normal; opacity: .75; letter-spacing: .06em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opts button { background: var(--panel2); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 6px; text-align: left; }
.opts b { color: var(--accent); }
.player { display: flex; gap: 12px; align-items: center; }
.player canvas { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 12px; background: radial-gradient(circle, #2c3a22, #151a10); border: 1px solid var(--line); }
.pinfo { flex: 1; min-width: 0; }
.inp { width: 100%; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-weight: 900; font-size: 15px; text-transform: uppercase; user-select: text; -webkit-user-select: text; outline: none; margin-bottom: 7px; }
.inp:focus { border-color: var(--accent); }
.sw { display: flex; gap: 7px; flex-wrap: wrap; }
.sw button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #0006; }
.sw button.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.rank { font-size: 11px; color: var(--muted); font-weight: 800; margin-top: 7px; }
.rank b { color: var(--accent); }
.cta { display: block; width: 100%; text-align: center; padding: 16px; border-radius: 16px; font-size: 24px; background: linear-gradient(180deg, #ffe066, #f0b400);
  color: #241900; box-shadow: 0 8px 0 #0008, 0 0 30px #ffd23f44; margin-top: 6px; }
.cta:active { transform: translateY(4px); box-shadow: 0 4px 0 #0008; }
.links { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.links button { font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: underline; }
.note { font-size: 11px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stats div { background: var(--panel2); border-radius: 10px; padding: 7px 0; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.stats b { display: block; font-size: 19px; color: var(--text); font-style: italic; letter-spacing: 0; }
.ul { display: flex; justify-content: space-between; align-items: center; padding: 7px 4px; border-bottom: 1px solid #ffffff10; font-size: 12.5px; }
.ul b { font-weight: 900; } .ul small { display: block; color: var(--muted); font-size: 11px; }
.ul .st { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.ul.got .st { color: var(--accent2); }
.keys2 { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.keys2 th, .keys2 td { text-align: left; padding: 5px 4px; border-bottom: 1px solid #ffffff10; color: #cdd6c4; }
.keys2 th { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.vc canvas { width: 100%; height: 70px; border-radius: 8px; display: block; background: #2b2f27; }
.vc .n { font-size: 12.5px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-top: 5px; }
.vc .n small { display: block; font-size: 9px; font-style: normal; color: var(--muted); letter-spacing: .08em; }

/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud button { pointer-events: auto; }
.tix { position: absolute; top: calc(8px + var(--sat)); left: calc(10px + var(--sal)); right: calc(10px + var(--sar)); display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.tix.static { position: static; max-width: 560px; margin: 0 auto; }
.tk { display: flex; align-items: center; gap: 6px; }
.tk.r { flex-direction: row-reverse; }
.tk b { font-size: 22px; font-style: italic; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.tk.bl b { color: var(--blue); } .tk.r b { color: var(--red); }
.tk .bar { flex: 1; height: 8px; border-radius: 2px; background: #0009; border: 1px solid #ffffff33; overflow: hidden; transform: skewX(-18deg); }
.tk.r .bar { transform: skewX(18deg); }
.tk .bar i { display: block; height: 100%; width: 100%; }
.tk.bl .bar i { background: linear-gradient(90deg, #2a5aa8, var(--blue)); }
.tk.r .bar i { background: linear-gradient(270deg, #a82a2e, var(--red)); margin-left: auto; }
.flags { display: flex; gap: 4px; }
.fl { position: relative; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-size: 13px; font-style: italic;
  border: 2px solid #000; box-shadow: 0 2px 0 #0008; color: #fff; text-shadow: 0 1px 0 #0008; background: #5a5e52; }
.fl.here { outline: 2px solid var(--accent); outline-offset: 1px; }
.fl.hot { animation: hot .6s infinite alternate; }
@keyframes hot { to { box-shadow: 0 0 0 3px #ffd23f88; } }
.squad { position: absolute; left: calc(10px + var(--sal)); top: calc(46px + var(--sat)); display: flex; flex-direction: column; gap: 3px; width: 128px; }
.squad .t { font-size: 9px; font-weight: 900; letter-spacing: .16em; color: var(--squad); margin-bottom: 1px; }
.sm { display: flex; align-items: center; gap: 5px; background: rgba(10, 13, 8, .78); border-left: 3px solid var(--squad); border-radius: 4px; padding: 3px 6px 4px; }
.sm.you { border-left-color: var(--accent); }
.sm .ci { width: 15px; height: 15px; border-radius: 4px; background: #ffffff1a; display: grid; place-items: center; font-size: 9px; font-weight: 900; }
.sm .nm { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 900; letter-spacing: .04em; overflow: hidden; white-space: nowrap; }
.sm .nm i { display: block; height: 3px; border-radius: 2px; background: #ffffff22; margin-top: 2px; overflow: hidden; }
.sm .nm i::after { content: ""; display: block; height: 100%; width: var(--hp, 100%); background: var(--squad); }
.sm.down .nm { color: var(--danger); } .sm.down .nm i::after { background: var(--danger); }
.sm.dead { opacity: .45; }
.sm.you .nm i::after { background: var(--accent); }
.sm .st { font-size: 8px; font-weight: 900; color: var(--muted); }
.mm { position: absolute; right: calc(10px + var(--sar)); top: calc(46px + var(--sat)); width: 112px; height: 112px; border-radius: 12px; border: 2px solid #ffffff33; background: #0008; overflow: hidden; box-shadow: 0 6px 18px #0009; }
.mm canvas { width: 100%; height: 100%; display: block; }
.feed { position: absolute; right: calc(10px + var(--sar)); top: calc(164px + var(--sat)); display: flex; flex-direction: column; gap: 3px; align-items: flex-end; max-width: 70%; }
.feed div { background: rgba(10, 13, 8, .78); border-radius: 5px; padding: 2px 7px; font-size: 10.5px; font-weight: 800; white-space: nowrap; animation: fin .2s; }
@keyframes fin { from { transform: translateX(14px); opacity: 0; } }
.feed .b { color: var(--blue); } .feed .r { color: var(--red); } .feed .y { color: var(--accent); } .feed .g { color: var(--squad); } .feed .w { color: var(--muted); font-weight: 700; margin: 0 4px; }
.feed em { font-style: normal; background: var(--danger); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 8.5px; margin-left: 4px; }
.capt { position: absolute; left: 50%; top: calc(46px + var(--sat)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(10, 13, 8, .86); border: 1px solid #ffffff22; }
.capt .ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 var(--p, 0%), #ffffff22 var(--p, 0%) 100%); }
.capt .ring b { width: 22px; height: 22px; border-radius: 50%; background: #0d100b; display: grid; place-items: center; font-size: 13px; font-weight: 900; font-style: italic; }
.capt .tx { font-size: 8px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.capt .tx b { display: block; font-size: 12px; letter-spacing: .02em; color: var(--text); font-style: italic; }
.capt .vs { font-size: 10px; font-weight: 900; margin-left: 2px; }
.capt .vs i { font-style: normal; color: var(--blue); } .capt .vs u { text-decoration: none; color: var(--red); }
.pops { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0; }
.pop { font-weight: 900; font-style: italic; text-shadow: 0 2px 0 #000, 0 0 12px #000; white-space: nowrap; line-height: 1.05; text-align: center; animation: pop 1.6s forwards; }
.pop b { color: var(--accent); font-size: 18px; } .pop span { display: block; font-size: 10.5px; color: #fff; letter-spacing: .06em; text-transform: uppercase; }
@keyframes pop { 0% { transform: scale(1.4); opacity: 0; } 10% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.banner { position: absolute; left: 50%; top: 24%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font-size: 26px; color: #fff; -webkit-text-stroke: 1.5px #000; text-shadow: 0 4px 0 #000; animation: ban 2.2s forwards; }
.banner.blue { color: #b8dcff; } .banner.red { color: #ffc0b8; }
@keyframes ban { 0% { transform: translateX(-50%) rotate(-3deg) scale(1.6); opacity: 0; } 12% { transform: translateX(-50%) rotate(-3deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.warn { position: absolute; left: 50%; top: calc(88px + var(--sat)); transform: translateX(-50%); padding: 6px 14px; border-radius: 10px; font-size: 14px; font-weight: 900; font-style: italic; letter-spacing: .06em;
  background: #ff5a5fee; color: #fff; border: 2px solid #000; box-shadow: 0 0 0 4px #ff5a5f55, 0 0 30px #ff5a5f; animation: blink .4s infinite alternate; }
@keyframes blink { to { opacity: .55; } }
.vignette { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background: radial-gradient(ellipse at center, transparent 50%, #c0101088 100%); }
.dirhit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.dirhit i { position: absolute; width: 60px; height: 14px; margin: -7px 0 0 -30px; border-radius: 50%; background: radial-gradient(ellipse, #ff3030cc, transparent 70%); animation: dh 1s forwards; }
@keyframes dh { to { opacity: 0; } }
.xh { position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); left: -100px; top: -100px; }
.xh i { position: absolute; background: #fff; box-shadow: 0 0 0 1px #000a; }
.xh .a { left: 16px; top: 0; width: 2px; height: 10px; } .xh .b { left: 16px; bottom: 0; width: 2px; height: 10px; }
.xh .c { top: 16px; left: 0; height: 2px; width: 10px; } .xh .d { top: 16px; right: 0; height: 2px; width: 10px; }
.xh .hm { position: absolute; inset: 4px; opacity: 0; background: linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%); filter: drop-shadow(0 0 2px #000); }
.xh .hm.on { animation: hm .25s; } .xh .hm.kill { filter: drop-shadow(0 0 2px #000) sepia(1) saturate(9) hue-rotate(-30deg); }
@keyframes hm { from { opacity: 1; } to { opacity: 0; } }
.xh.lock i { background: var(--danger); } .xh.locking i { background: var(--accent); }
.revive { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--squad); }
.revive .rr { width: 110px; height: 7px; border-radius: 4px; background: #0009; overflow: hidden; margin-bottom: 3px; border: 1px solid #ffffff33; }
.revive .rr i { display: block; height: 100%; width: 0; background: var(--squad); }
.pause { position: absolute; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #ffffff2a; background: rgba(10, 13, 8, .8); font-weight: 900; display: grid; place-items: center; font-size: 12px;
  left: 50%; transform: translateX(-50%); bottom: calc(118px + var(--sab)); }
.hpb { position: absolute; left: calc(14px + var(--sal)); bottom: calc(224px + var(--sab)); display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; text-shadow: 0 1px 0 #000; }
.hpb .bar { width: 96px; height: 9px; background: #0009; border: 1px solid #ffffff33; border-radius: 2px; overflow: hidden; transform: skewX(-18deg); }
.hpb .bar i { display: block; height: 100%; background: linear-gradient(90deg, #28b26a, var(--accent2)); }
.hpb .bar i.lo { background: linear-gradient(90deg, #b8262c, var(--danger)); }
.hpb b { font-size: 17px; font-style: italic; }
.ammo { position: absolute; padding: 5px 14px 6px; text-align: center; border-radius: 14px; left: 50%; transform: translateX(-50%); bottom: calc(26px + var(--sab)); min-width: 120px; }
.ammo .wn { font-size: 9px; font-weight: 900; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ammo .n { font-size: 24px; font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; line-height: 1.05; }
.ammo .n small { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 800; }
.ammo.rel .n span { color: var(--ammo, #ffb13b); }
.ammo .fm { font-size: 9.5px; font-weight: 900; color: var(--accent); letter-spacing: .06em; margin-top: 1px; min-height: 11px; }
.vh { position: absolute; padding: 7px 10px; border-radius: 14px; min-width: 150px; left: calc(10px + var(--sal)); top: calc(46px + var(--sat)); }
.vh .nm { font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.vh .nm small { font-size: 9px; font-style: normal; color: var(--muted); letter-spacing: .12em; margin-left: 4px; }
.vh .row { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.vh .row .bar { flex: 1; height: 7px; background: #0009; border: 1px solid #ffffff33; border-radius: 2px; overflow: hidden; }
.vh .row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #d8a21a, var(--accent)); }
.vh .row .bar i.lo { background: linear-gradient(90deg, #b8262c, var(--danger)); }
.seats { display: flex; gap: 4px; margin-top: 5px; }
.seats span { flex: 1; font-size: 8.5px; font-weight: 900; text-align: center; border-radius: 5px; padding: 3px 2px; background: #ffffff12; color: var(--muted); white-space: nowrap; overflow: hidden; }
.seats span.y { background: var(--accent); color: #1a1400; } .seats span.s { background: #1f5a3a; color: #bff5d6; }
.keys { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(86px); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 10.5px; font-weight: 800; color: #d8dfcf; max-width: 92%; }
.keys span { background: rgba(10, 13, 8, .72); border-radius: 6px; padding: 2px 6px; border: 1px solid #ffffff1a; }
kbd { display: inline-block; min-width: 15px; text-align: center; background: #e8e8e0; color: #111; border-radius: 3px; padding: 0 3px; font-size: 9.5px; font-weight: 900; box-shadow: 0 2px 0 #777; margin-right: 3px; font-family: inherit; }

/* touch controls */
#touch { position: absolute; inset: 0; }
.zone { position: absolute; bottom: 0; height: 52%; pointer-events: auto; touch-action: none; }
.zone.left { left: 0; width: 50%; } .zone.right { right: 0; width: 50%; }
.stick { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; background: radial-gradient(circle, #0006 0 50%, #ffffff12 51% 100%); border: 2px solid #ffffff33; pointer-events: none; }
.zone.left .stick { left: 92px; top: calc(100% - 112px - var(--sab)); } .zone.right .stick { left: calc(100% - 92px); top: calc(100% - 112px - var(--sab)); }
.stick .knob { position: absolute; width: 60px; height: 60px; border-radius: 50%; left: 50%; top: 50%; margin: -30px 0 0 -30px; border: 3px solid #000a; box-shadow: 0 6px 0 #0007, inset 0 -4px 0 #0003; }
.stick.mv .knob { background: radial-gradient(circle at 35% 30%, #e6e6de, #8b8f84); }
.stick.fire .knob { background: radial-gradient(circle at 35% 30%, #ff9a8d, #d8262c 65%, #8a1015); }
.stick.firing { border-color: #ff5a5f; box-shadow: 0 0 0 4px #ff5a5f33; }
.stick .lb { position: absolute; bottom: -16px; left: -20px; right: -20px; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .16em; color: #ffffff88; }
.rb { position: absolute; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px;
  font-weight: 900; font-style: italic; font-size: 11px; letter-spacing: .03em; border: 3px solid #000a; pointer-events: auto;
  box-shadow: 0 6px 0 #0008, inset 0 -5px 0 #0003, inset 0 3px 0 #ffffff55; text-align: center; line-height: 1; }
.rb:active, .rb.down { transform: translateY(4px); box-shadow: 0 2px 0 #0008, inset 0 -3px 0 #0003; }
.rb b { font-size: 18px; display: block; } .rb small { font-size: 8px; font-style: normal; opacity: .85; letter-spacing: .06em; margin-top: 2px; }
.rb.nade { background: radial-gradient(circle at 35% 30%, #b8f0a0, #4a9a32); color: #0b1f04; right: calc(16px + var(--sar)); bottom: calc(312px + var(--sab)); }
.rb.gad { background: radial-gradient(circle at 35% 30%, #ffffff, #d8dde2); color: #16222a; right: calc(84px + var(--sar)); bottom: calc(292px + var(--sab)); }
.rb.gad.on { background: radial-gradient(circle at 35% 30%, #fff09a, #f0b400); color: #241900; }
.rb.rel { background: radial-gradient(circle at 35% 30%, #ffd29a, #f08a1a); color: #2a1300; right: calc(16px + var(--sar)); bottom: calc(242px + var(--sab)); }
.rb.arty { background: radial-gradient(circle at 35% 30%, #ffb0a0, #e5402f); color: #fff; right: calc(150px + var(--sar)); bottom: calc(300px + var(--sab)); box-shadow: 0 6px 0 #0008, 0 0 0 5px #ff5a5f44, 0 0 22px #ff5a5f88; }
.rb.ent { background: radial-gradient(circle at 35% 30%, #fff09a, #f0b400); color: #241900; left: calc(16px + var(--sal)); bottom: calc(254px + var(--sab)); width: 64px; height: 64px; box-shadow: 0 6px 0 #0008, 0 0 0 5px #ffd23f44, 0 0 22px #ffd23f88; }
.rb.gun { background: radial-gradient(circle at 35% 30%, #ff9a8d, #d8262c 65%, #8a1015); color: #fff; width: 80px; height: 80px; right: calc(20px + var(--sar)); bottom: calc(236px + var(--sab)); }
.rb.alt { background: radial-gradient(circle at 35% 30%, #b9c2cc, #5e6873); color: #fff; right: calc(110px + var(--sar)); bottom: calc(250px + var(--sab)); }
.rb.smk { background: radial-gradient(circle at 35% 30%, #e8e8e0, #9a9a90); color: #202018; right: calc(26px + var(--sar)); bottom: calc(330px + var(--sab)); width: 54px; height: 54px; }
.rb.smk.fl { background: radial-gradient(circle at 35% 30%, #a8e4ff, #2a8ad8); color: #021624; }
.rb .ring { position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--p, 100%), transparent var(--p, 100%));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.small { position: absolute; border-radius: 12px; background: rgba(10, 13, 8, .8); border: 1px solid #ffffff2a; font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 7px 9px; color: #ddd; pointer-events: auto; }
#tb-spot { right: calc(94px + var(--sar)); bottom: calc(236px + var(--sab)); }
#tb-seat { right: calc(110px + var(--sar)); bottom: calc(318px + var(--sab)); }

/* down */
#down { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, #5a000066 100%); }
.downp { position: absolute; left: 16px; right: 16px; bottom: calc(20px + var(--sab)); padding: 14px; text-align: center; pointer-events: auto; max-width: 440px; margin: 0 auto; }
.downp .big { font-size: 32px; color: var(--danger); line-height: 1; }
.bleed { height: 10px; border-radius: 6px; background: #0009; overflow: hidden; margin: 9px 0 4px; border: 1px solid #ffffff33; }
.bleed i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a5f, #ffb13b); }
.dl { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.downp p { font-size: 12.5px; color: #cdd6c4; line-height: 1.4; margin-top: 8px; }
.downp p b { color: var(--squad); }
.killer { display: flex; gap: 10px; align-items: center; text-align: left; margin-top: 10px; background: #0d100b; border-radius: 10px; padding: 8px; border-left: 3px solid var(--red); }
.killer canvas { width: 46px; height: 46px; border-radius: 8px; background: #2a1a14; flex: 0 0 46px; }
.killer div { font-size: 11px; color: var(--muted); font-weight: 800; line-height: 1.35; }
.killer b { color: var(--red); font-size: 14px; font-style: italic; }
.killer em { font-style: normal; background: var(--danger); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 9px; }
.btns2 { display: flex; gap: 8px; margin-top: 12px; }
.btn { flex: 1; padding: 12px 0; border-radius: 12px; font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.btn.y { background: linear-gradient(180deg, #ffe066, #f0b400); color: #241900; box-shadow: 0 5px 0 #0008; }
.btn.g { background: var(--panel2); border: 1px solid var(--line); }

/* deploy */
#deploy { display: flex; flex-direction: column; overflow: hidden; background: #0e110c; }
#deploy.hidden { display: none; }
.dtop { padding: calc(8px + var(--sat)) 10px 4px; }
.sub { text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
.dmap { position: relative; flex: 1; min-height: 0; margin: 4px 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); touch-action: none; }
.dmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dpins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center; pointer-events: auto; }
.pin i { width: 20px; height: 20px; transform: rotate(45deg); border: 2px solid #000; background: var(--blue); box-shadow: 0 2px 0 #0008; }
.pin span { position: absolute; transform: rotate(0); font-size: 9px; font-weight: 900; color: #000; }
.pin.unit i { background: var(--squad); } .pin.veh i { background: var(--accent); } .pin.hq i { background: #9fc8ff; }
.pin.sel::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--accent); background: #ffd23f33; }
.pin label { position: absolute; top: 28px; white-space: nowrap; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.fpin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; pointer-events: auto; }
.sheet { position: relative; background: linear-gradient(180deg, #171c13, #0e110c); border-top: 2px solid #000; border-radius: 18px 18px 0 0; padding: 12px 12px calc(10px + var(--sab)); box-shadow: 0 -10px 30px #000a; }
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 5px; border-radius: 18px 18px 0 0; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #171c13 14px 28px); opacity: .8; }
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cls { background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 4px 3px 6px; text-align: center; }
.cls.sel { border-color: var(--accent); background: #2a2a14; }
.cls canvas { width: 100%; height: 46px; display: block; }
.cls b { display: block; font-size: 11px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.cls small { display: block; font-size: 8.5px; color: var(--muted); font-weight: 800; }
.lo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.lo > * { background: #0d100b; border: 1px solid var(--line); border-radius: 9px; padding: 5px 6px; font-size: 10px; font-weight: 900; text-align: left; }
.lo small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.lo button.can { border-color: var(--accent); }
.dep { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.dep .cta { flex: 1; margin: 0; font-size: 21px; padding: 13px; }
.dep .cta[disabled] { filter: grayscale(1) brightness(.7); }
.dep .sel2 { flex: 0 0 42%; background: var(--panel2); border-radius: 14px; padding: 7px 10px; font-size: 10px; font-weight: 900; color: var(--muted); letter-spacing: .1em; }
.dep .sel2 b { display: block; color: var(--squad); font-size: 15px; font-style: italic; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlinks { display: flex; justify-content: center; gap: 20px; margin-top: 8px; }
.dlinks button { font-size: 12px; font-weight: 800; color: var(--muted); text-decoration: underline; }

/* big map */
#bigmap { display: flex; flex-direction: column; overflow: hidden; padding: calc(10px + var(--sat)) calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); }
#bigmap.hidden { display: none; }
.bm-top { text-align: center; } .bm-top .h { font-size: 22px; }
.bm-wrap { position: relative; flex: 1; min-height: 0; margin: 8px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.bm-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bm-btns { display: flex; gap: 8px; align-items: center; }
.bm-btns .chip { padding: 12px 16px; }
.bm-btns .cta { margin: 0; flex: 1; font-size: 18px; padding: 12px; }
.fpin.ord::after { content: "SQUAD"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 900; color: var(--squad); letter-spacing: .1em; text-shadow: 0 1px 0 #000; }

/* scoreboard */
.sb { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sb td, .sb th { padding: 4px 5px; border-bottom: 1px solid #ffffff10; font-weight: 800; text-align: left; }
.sb th { font-size: 9px; color: var(--muted); letter-spacing: .1em; }
.sb td.n, .sb th.n { text-align: right; font-variant-numeric: tabular-nums; color: #cdd6c4; }
.sb tr.me td { background: #ffd23f22; color: var(--accent); }
.sb tr.dead td { opacity: .55; }
.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbs h3 { font-size: 13px; font-style: italic; text-transform: uppercase; margin-bottom: 4px; }
.sbs .bl h3 { color: var(--blue); } .sbs .rd h3 { color: var(--red); }

/* results */
.res .vic { text-align: center; margin: 8px 0 2px; }
.res .vic b { display: block; font-size: 52px; line-height: .9; color: var(--accent); text-shadow: 0 5px 0 #000; }
.res .vic b.lose { color: var(--danger); }
.res .vic span { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.score { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 12px; font-size: 30px; font-weight: 900; font-style: italic; }
.score .b { color: var(--blue); } .score .r { color: var(--red); } .score small { font-size: 11px; color: var(--muted); font-style: normal; letter-spacing: .12em; }
.ribbons { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ribbons span { font-size: 10.5px; font-weight: 900; padding: 5px 8px; border-radius: 6px; background: #2a2a14; border: 1px solid #ffd23f55; color: var(--accent); }
.xp { margin-top: 10px; }
.xp .bar { height: 12px; border-radius: 6px; background: #0009; overflow: hidden; border: 1px solid #ffffff22; }
.xp .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0b400, #ffe066); transition: width 1.2s; }
.xp .row { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 900; color: var(--muted); margin-bottom: 4px; }


/* ------------------------------------------------------------ landscape phones */
@media (orientation: landscape) and (max-height: 520px) {
  .tix { left: 30%; right: 30%; top: calc(6px + var(--sat)); }
  .tk b { font-size: 18px; }
  .squad { top: calc(8px + var(--sat)); left: calc(8px + var(--sal)); width: 116px; }
  .vh { top: calc(8px + var(--sat)); left: calc(8px + var(--sal)); }
  .mm { top: calc(8px + var(--sat)); width: 92px; height: 92px; }
  .feed { top: calc(104px + var(--sat)); }
  .capt { top: calc(38px + var(--sat)); }
  .warn { top: calc(76px + var(--sat)); }
  .zone { height: 70%; }
  .zone.left .stick { left: calc(84px + var(--sal)); top: calc(100% - 84px - var(--sab)); }
  .zone.right .stick { left: calc(100% - 84px - var(--sar)); top: calc(100% - 84px - var(--sab)); }
  .stick { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .stick .knob { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .rb { width: 50px; height: 50px; } .rb b { font-size: 15px; }
  .rb.nade { right: calc(160px + var(--sar)); bottom: calc(18px + var(--sab)); }
  .rb.gad { right: calc(214px + var(--sar)); bottom: calc(40px + var(--sab)); }
  .rb.rel { right: calc(160px + var(--sar)); bottom: calc(74px + var(--sab)); }
  .rb.arty { right: calc(268px + var(--sar)); bottom: calc(20px + var(--sab)); }
  #tb-spot { right: calc(16px + var(--sar)); bottom: calc(160px + var(--sab)); }
  .rb.ent { left: calc(160px + var(--sal)); bottom: calc(22px + var(--sab)); width: 54px; height: 54px; }
  .rb.gun { width: 66px; height: 66px; right: calc(158px + var(--sar)); bottom: calc(20px + var(--sab)); }
  .rb.alt { right: calc(230px + var(--sar)); bottom: calc(26px + var(--sab)); }
  .rb.smk { right: calc(166px + var(--sar)); bottom: calc(96px + var(--sab)); width: 46px; height: 46px; }
  #tb-seat { right: calc(220px + var(--sar)); bottom: calc(92px + var(--sab)); }
  .hpb { left: calc(150px + var(--sal)); bottom: calc(86px + var(--sab)); }
  .ammo { bottom: calc(8px + var(--sab)); padding: 3px 12px 4px; } .ammo .n { font-size: 19px; }
  .pause { bottom: auto; top: calc(40px + var(--sat)); left: auto; right: calc(110px + var(--sar)); transform: none; }
  .pops { top: 30%; }
  .downp { max-width: 520px; padding: 10px; } .downp .big { font-size: 24px; } .killer { margin-top: 6px; } .downp p { margin-top: 4px; }
  #deploy:not(.hidden) { display: grid; grid-template-columns: 1fr 48%; grid-template-rows: auto 1fr; }
  .dtop { grid-column: 1 / -1; padding-bottom: 0; }
  .dmap { margin: 4px; }
  .sheet { border-radius: 14px; margin: 4px; overflow-y: auto; align-self: end; max-height: 100%; }
  .cls canvas { height: 34px; }
}

/* ------------------------------------------------------------ desktop */
body.desk .hpb { left: 16px; bottom: 16px; }
body.desk .ammo { left: auto; right: 16px; transform: none; bottom: 16px; }
body.desk .pause { bottom: auto; top: 46px; left: auto; right: 132px; transform: none; }
@media (min-width: 900px) { body.desk .pause { right: 214px; } }
body.desk .vh { left: 16px; top: auto; bottom: 48px; }
body.desk .squad { top: 46px; width: 160px; }
body.desk .keys { bottom: 14px; }
@media (min-width: 900px) {
  body.desk .mm { width: 190px; height: 190px; }
  body.desk .feed { top: 246px; }
  body.desk .tix { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }
  #deploy:not(.hidden) { display: grid; grid-template-columns: 1fr 420px; grid-template-rows: auto 1fr; }
  .dtop { grid-column: 1 / -1; }
  .dmap { margin: 8px; }
  .sheet { margin: 8px; border-radius: 16px; align-self: end; }
}
#hud > button, #hud > .mm { z-index: 3; }
#touch { z-index: 1; }

/* Studio credit and link back to the games page, the same on every Game Golem Studios title screen */
.ggs-foot { text-align: center; font-size: 11px; margin-top: 12px; }
.ggs-foot a { color: var(--muted); text-underline-offset: 2px; }

/* ------------------------------------------------------------ multiplayer */
.mp .lbl small { color: var(--accent2); letter-spacing: .1em; margin-left: 6px; }
.mprow { display: grid; grid-template-columns: 1fr 88px auto; gap: 6px; align-items: center; }
.chip.big { padding: 10px 14px; font-size: 13px; font-weight: 900; }
#btn-host { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.inp.code { margin: 0; text-align: center; letter-spacing: .25em; font-size: 17px; }
.note.err { color: var(--danger); }
.seg.mptabs { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.seg.mptabs button { font-size: 13px; padding: 7px 0; }
#btn-quick { width: 100%; background: var(--accent); color: #1a1400; border-color: var(--accent); }
.srvl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.srow { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.srow:hover { border-color: var(--accent); }
.srow.off { opacity: .5; cursor: default; }
.srow div { flex: 1; min-width: 0; }
.srow b { display: block; font-size: 13px; }
.srow small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow span { font-weight: 900; font-size: 12px; color: var(--accent2); }
.srow.off span { color: var(--muted); }
.qpmodes { margin-bottom: 6px; }
.qpnote { margin-bottom: 8px; }
.qpwait { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; font-size: 13px; }
.qpwait b { color: var(--accent); }
.center { text-align: center; }
#l-code { letter-spacing: .12em; }
#lobby .logo.small { position: static; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; letter-spacing: .02em; }   /* not the HUD's .small pill: it sat over the battle card */
#l-picks { margin-top: 10px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm .lbl { margin-bottom: 6px; } .tm.bl .lbl { color: var(--blue); } .tm.rd .lbl { color: var(--red); }
.tm .pl { display: flex; align-items: center; gap: 6px; padding: 6px 4px; border-bottom: 1px solid #ffffff10; font-size: 13px; font-weight: 900; }
.tm .pl small { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.tm .pl.me { color: var(--accent); }
.tm .pl i { font-style: normal; font-size: 9px; background: #ffffff1a; border-radius: 4px; padding: 1px 4px; color: var(--muted); }
.tm .chip { margin-top: 8px; width: 100%; }
.tm .bots { font-size: 11px; color: var(--muted); padding: 6px 4px; }
.netbadge { position: absolute; left: 50%; transform: translateX(-50%); top: calc(30px + var(--sat)); font-size: 9px; font-weight: 900; letter-spacing: .14em; color: var(--accent2); text-shadow: 0 1px 0 #000; pointer-events: none; }
/* cloud save */
.card.cloud .chip.big { display: inline-block; text-decoration: none; color: inherit; margin-bottom: 6px; }
.card.cloud .note a { color: inherit; }
.cloudb { color: var(--muted); font-weight: 400; }
