@font-face { font-family: 'Oswald'; src: url(../fonts/oswald-latin.woff2) format('woff2'); font-weight: 200 700; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: block; }
@font-face { font-family: 'Oswald'; src: url(../fonts/oswald-cyrillic.woff2) format('woff2'); font-weight: 200 700; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: block; }
@font-face { font-family: 'Kelly Slab'; src: url(../fonts/kellyslab-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; font-display: block; }
@font-face { font-family: 'Kelly Slab'; src: url(../fonts/kellyslab-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: block; }
@font-face { font-family: 'Rye'; src: url(../fonts/rye-latin.woff2) format('woff2'); font-display: block; }

:root {
  --ink: rgba(14, 11, 8, 0.8);
  --ink-solid: #120e0a;
  --ink-soft: rgba(14, 11, 8, 0.55);
  --paper: #f1e7d0;
  --paper-dim: rgba(241, 231, 208, 0.6);
  --paper-faint: rgba(241, 231, 208, 0.14);
  --sun: #f0a43a;
  --sun-deep: #c97a1e;
  --blood: #d2402f;
  --sage: #8fc06a;
  --line: 1px solid rgba(241, 231, 208, 0.14);
  --ui: 'Oswald', 'Arial Narrow', sans-serif;
  --slab: 'Kelly Slab', 'Oswald', serif;
  --west: 'Rye', 'Kelly Slab', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #1a120c; color: var(--paper); font-family: var(--ui); user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

.screen { position: fixed; inset: 0; z-index: 10; }

/* ---------- logo ---------- */
.logo { position: relative; display: inline-flex; align-items: flex-end; gap: 14px; }
.logo-hn { font-family: var(--west); font-size: 76px; line-height: 0.9; color: var(--paper); letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #3a2414, 0 4px 0 #2a190d, 0 10px 24px rgba(0,0,0,.55); }
.stamp { font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; color: var(--blood);
  border: 3px solid var(--blood); padding: 2px 10px 3px; transform: rotate(-7deg) translateY(-14px); opacity: .92;
  box-shadow: inset 0 0 0 1px rgba(210,64,47,.35); background: rgba(14,11,8,.25); }
.logo.small .logo-hn { font-size: 34px; }
.logo.small .stamp { font-size: 12px; border-width: 2px; padding: 1px 6px; transform: rotate(-7deg) translateY(-6px); }

/* ---------- loading ---------- */
#loading { display: grid; place-items: center; background:
  radial-gradient(ellipse at 50% 120%, #b4521e 0%, #5a2a14 35%, #1a100a 75%); }
.load-inner { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.load-bar { width: 420px; height: 4px; background: rgba(241,231,208,.12); }
.load-bar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .2s; }
.load-text { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-dim); }

/* ---------- lobby ---------- */
#menu { display: flex; flex-direction: column; padding: 34px 48px 26px;
  background: linear-gradient(90deg, rgba(10,7,5,.86) 0%, rgba(10,7,5,.62) 42%, rgba(10,7,5,0) 70%),
              linear-gradient(0deg, rgba(10,7,5,.75) 0%, rgba(10,7,5,0) 22%); }
.menu-top { display: flex; align-items: center; gap: 46px; }
.tabs { display: flex; gap: 6px; flex: 1; }
.tabs button { position: relative; padding: 10px 18px; font-size: 17px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.tabs button:hover { color: var(--paper); }
.tabs button.on { color: var(--paper); }
.tabs button.on::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; background: var(--sun); }
.who { display: flex; flex-direction: column; gap: 4px; }
.who label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); }
.who input { width: 220px; padding: 8px 12px; background: var(--ink); border: var(--line); border-bottom: 2px solid var(--sun); outline: none; font-size: 18px; font-weight: 500; letter-spacing: .04em; }

.tab-body { flex: 1; display: flex; align-items: flex-start; padding-top: 38px; min-height: 0; }
.panel { background: var(--ink); border: var(--line); backdrop-filter: blur(3px); display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: var(--line); }
.panel-head h2 { font-family: var(--slab); font-weight: 400; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: var(--line); }
.hint { font-size: 13px; color: var(--paper-dim); letter-spacing: .04em; }

.primary { background: var(--sun); color: var(--ink-solid); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; padding: 12px 30px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background .12s, transform .12s; }
.primary:hover:not(:disabled) { background: #ffbb55; transform: translateY(-1px); }
.primary:disabled { opacity: .35; cursor: default; }
.ghost { padding: 7px 14px; border: var(--line); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }
.ghost:hover { color: var(--paper); border-color: rgba(241,231,208,.4); }

.rooms { width: 760px; max-height: 100%; }
.room-cols, .room { display: grid; grid-template-columns: 1fr 150px 130px 80px 70px; gap: 10px; align-items: center; padding: 0 22px; }
.room-cols { padding-top: 10px; padding-bottom: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); }
.room-list { overflow-y: auto; min-height: 120px; max-height: 46vh; }
.room { height: 54px; border-top: 1px solid rgba(241,231,208,.06); cursor: pointer; font-size: 16px; position: relative; }
.room:hover { background: rgba(241,231,208,.05); }
.room.sel { background: rgba(240,164,58,.12); }
.room.sel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sun); }
.room .r-name { font-weight: 500; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .r-name small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--paper-dim); text-transform: uppercase; font-weight: 400; }
.room .r-mode { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--sun); }
.room .r-mode svg { width: 40px; height: 15px; fill: var(--sun); }
.room .r-num { font-variant-numeric: tabular-nums; color: var(--paper-dim); }
.room .r-num b { color: var(--paper); font-weight: 500; }
.room-empty { padding: 30px 22px; color: var(--paper-dim); font-size: 15px; }
.room .bots { display: flex; align-items: center; gap: 9px; }
.room .bots b { min-width: 16px; }
.diff { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; }
.diff i { display: flex; gap: 2px; }
.diff i svg { width: 10px; height: 10px; fill: currentColor; opacity: .3; }
.diff i svg.f { opacity: 1; }
.diff.easy { color: var(--sage); } .diff.normal { color: var(--sun); } .diff.hard { color: #e0705a; }

.create, .settings { width: 640px; }
.form { padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 18px; }
.form label, .field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); }
.form input:not([type]) { padding: 10px 12px; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--paper); background: rgba(0,0,0,.3); border: var(--line); outline: none; }
.form input:not([type]):focus { border-color: var(--sun); }
.seg { display: flex; gap: 0; border: var(--line); }
.seg button { flex: 1; padding: 10px 6px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); display: flex; align-items: center; justify-content: center; gap: 8px; border-right: var(--line); }
.seg button:last-child { border-right: 0; }
.seg button small { font-size: 10px; opacity: .7; letter-spacing: .1em; }
.seg button:hover { color: var(--paper); background: rgba(241,231,208,.05); }
.seg button.on { background: var(--sun); color: var(--ink-solid); font-weight: 600; }
.seg button.on .wicon { fill: var(--ink-solid); }
.wicon { width: 34px; height: 13px; fill: var(--paper-dim); }
.range { display: flex; align-items: center; gap: 14px; }
.range b { min-width: 64px; font-size: 18px; font-weight: 500; color: var(--paper); letter-spacing: .04em; text-transform: none; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 3px; background: rgba(241,231,208,.2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; background: var(--sun); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 22px; background: var(--sun); border: 0; border-radius: 0; cursor: pointer; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; padding: 16px 22px 20px; border-top: var(--line); font-size: 13px; color: var(--paper-dim); letter-spacing: .04em; }
kbd { display: inline-block; min-width: 26px; margin-right: 8px; padding: 1px 6px; border: var(--line); border-bottom-width: 2px; font-family: var(--ui); font-size: 12px; color: var(--paper); text-align: center; }

.charsel { width: 420px; }
.char-name { padding: 22px 22px 4px; font-family: var(--slab); font-size: 40px; letter-spacing: .03em; }
.char-desc { padding: 0 22px 18px; font-size: 15px; line-height: 1.5; color: var(--paper-dim); min-height: 70px; }
.char-pick { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: var(--line); font-size: 16px; letter-spacing: .2em; }
.arrow { font-size: 24px; line-height: 1; padding: 4px 18px 8px; }

.menu-foot { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-dim); }
.wm { font-weight: 700; letter-spacing: .08em; color: var(--sun); text-transform: none; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#hud .pause-panel, #hud #chatInput, #hud #pause, #hud #clickToPlay { pointer-events: auto; }
#vignette { position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(150,10,0,.55) 100%); }
#dmgDirs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.dmg-arc { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
  border: 6px solid transparent; border-top-color: rgba(220,40,20,.85); filter: drop-shadow(0 0 6px rgba(200,20,0,.7)); transition: opacity .9s; }

#crosshair { position: absolute; left: 50%; top: 50%; --gap: 8px; }
#crosshair i { position: absolute; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
#crosshair .t, #crosshair .b { width: 2px; height: 9px; left: -1px; }
#crosshair .l, #crosshair .r { width: 9px; height: 2px; top: -1px; }
#crosshair .t { top: calc(-1 * var(--gap) - 9px); } #crosshair .b { top: var(--gap); }
#crosshair .l { left: calc(-1 * var(--gap) - 9px); } #crosshair .r { left: var(--gap); }
#crosshair .dot { width: 2px; height: 2px; left: -1px; top: -1px; }
#crosshair.hide-lines .t, #crosshair.hide-lines .b, #crosshair.hide-lines .l, #crosshair.hide-lines .r { display: none; }
#crosshair.ring::before { content: ''; position: absolute; width: calc(var(--gap) * 2 + 6px); height: calc(var(--gap) * 2 + 6px);
  left: calc(-1 * var(--gap) - 3px); top: calc(-1 * var(--gap) - 3px); border: 1.5px solid rgba(241,231,208,.85); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
#crosshair.ring .t, #crosshair.ring .b, #crosshair.ring .l, #crosshair.ring .r { display: none; }

#hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; }
#hitmarker i { position: absolute; width: 11px; height: 2px; background: #fff; box-shadow: 0 0 2px rgba(0,0,0,.8); }
#hitmarker i:nth-child(1) { transform: translate(5px, 5px) rotate(45deg); transform-origin: 0 0; }
#hitmarker i:nth-child(2) { transform: translate(-5px, 5px) rotate(135deg); transform-origin: 0 0; }
#hitmarker i:nth-child(3) { transform: translate(-5px, -5px) rotate(225deg); transform-origin: 0 0; }
#hitmarker i:nth-child(4) { transform: translate(5px, -5px) rotate(315deg); transform-origin: 0 0; }
#hitmarker.head i { background: var(--sun); }
#hitmarker.kill i { background: var(--blood); width: 15px; }

/* own ping, top-left */
#pingBox { position: absolute; left: 22px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); font-size: 15px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.bars b { display: block; width: 3px; background: rgba(241,231,208,.18); }
.bars b:nth-child(1) { height: 4px; } .bars b:nth-child(2) { height: 7px; } .bars b:nth-child(3) { height: 10px; } .bars b:nth-child(4) { height: 13px; }
.p4 .bars b, .p3 .bars b:nth-child(-n+3), .p2 .bars b:nth-child(-n+2), .p1 .bars b:nth-child(1) { background: currentColor; }
.p4 { color: var(--sage); } .p3 { color: #c9d36a; } .p2 { color: var(--sun); } .p1 { color: var(--blood); } .p0 { color: var(--paper-dim); }
#pingBox span { color: var(--paper); }

#topbar { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tb-plate { display: flex; align-items: center; gap: 16px; padding: 6px 22px 7px; background: var(--ink); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); font-size: 24px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tb-sep { width: 1px; height: 18px; background: rgba(241,231,208,.3); }
#tbLead { color: var(--sun); }
.tb-mode { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-dim); text-shadow: 0 1px 2px #000; }

#killfeed { position: absolute; top: 18px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kf { display: flex; align-items: center; gap: 10px; padding: 4px 12px; background: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: .02em; animation: kfIn .18s ease-out; transition: opacity .5s; }
.kf.me { box-shadow: inset 0 0 0 1px var(--sun); }
.kf .k { color: var(--paper); } .kf .v { color: #e88f7f; } .kf .k.self, .kf .v.self { color: var(--sun); }
.kf svg { width: 46px; height: 16px; fill: var(--paper-dim); }
.kf svg.sniper { width: 56px; } .kf svg.revolver { width: 36px; }
.kf .hs { width: 16px; height: 16px; fill: var(--sun); }
.kf .as { font-size: 12px; color: var(--paper-dim); }
@keyframes kfIn { from { transform: translateX(20px); opacity: 0; } }

#notify { position: absolute; top: 31%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nt { font-family: var(--slab); font-size: 30px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.5); animation: ntIn .35s cubic-bezier(.2,1.6,.4,1); transition: opacity .4s, transform .4s; }
.nt.big { font-size: 44px; color: var(--sun); }
.nt.small { font-family: var(--ui); font-size: 15px; letter-spacing: .2em; color: var(--paper-dim); }
@keyframes ntIn { from { transform: scale(1.6); opacity: 0; } }

#radarBox { position: absolute; left: 26px; bottom: 24px; width: 196px; }
#radar { width: 196px; height: 196px; display: block; }
.bars { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bar { flex: 1; height: 8px; background: rgba(0,0,0,.5); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.bar i { display: block; height: 100%; width: 100%; background: var(--sage); transition: width .15s, background .2s; }
.bar.low i { background: var(--blood); }
#hpNum { width: 34px; text-align: right; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }

#ammoBox { position: absolute; right: 28px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.w-name { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-dim); }
.ammo-row { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
#ammoNum { font-size: 64px; font-weight: 600; line-height: .95; }
#ammoNum.low { color: var(--blood); }
.ammo-sep { font-size: 30px; color: var(--paper-dim); }
#ammoMax { font-size: 26px; color: var(--paper-dim); }
.pips { display: flex; gap: 3px; height: 22px; align-items: flex-end; }
.pips i { display: block; width: 4px; height: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.pips i.e { background: rgba(241,231,208,.18); }
.pips.revolver { position: relative; width: 44px; height: 44px; }
.pips.revolver i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #d9a441; box-shadow: inset 0 0 0 2px #7a5418, 0 0 0 1px rgba(0,0,0,.5); }
.pips.revolver i.e { background: #1b130c; box-shadow: inset 0 0 0 2px #5a4a36; }
.pips.sniper i { width: 7px; height: 22px; border-radius: 3px 3px 1px 1px; background: #d9a441; }
.pips.sniper i.e { background: rgba(241,231,208,.15); }
.reload-hint { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
/* weapon tags hanging off a rope */
#slotBar { position: absolute; right: 22px; bottom: 166px; display: flex; flex-direction: column; align-items: stretch; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
#slotBar .rope { height: 4px; margin: 0 -6px; border-radius: 3px; background: repeating-linear-gradient(115deg, #9a7650 0 4px, #5b4129 4px 7px); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
#slots { display: flex; gap: 9px; padding: 0 8px; align-items: flex-start; }
.htag { display: flex; flex-direction: column; align-items: center; transform-origin: 50% -2px; }
.htag .str { position: relative; width: 2px; height: 10px; background: linear-gradient(#8a6a44, #4e3826); transition: height .25s cubic-bezier(.3,1.5,.5,1); }
.htag .str::before { content: ''; position: absolute; top: -6px; left: -4px; width: 10px; height: 10px; border: 2px solid #a07a50; border-radius: 50%; box-sizing: border-box; }
.htag .card { width: 104px; padding: 7px 9px 6px; background: rgba(14,11,8,.72); border-top: 1px solid rgba(241,231,208,.1);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%, 0 9px);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 6px; align-items: center; transition: background .2s; }
.htag kbd { margin: 0; min-width: 20px; padding: 0 5px; font-size: 12px; line-height: 17px; border-color: rgba(241,231,208,.3); color: var(--paper-dim); background: rgba(0,0,0,.25); }
.htag .cnt { justify-self: end; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--paper-dim); }
.htag .cnt small { font-size: 10px; opacity: .6; margin-left: 1px; }
.htag svg.ic { grid-column: 1 / -1; justify-self: center; width: 76px; height: 22px; fill: rgba(241,231,208,.45); }
.htag svg.ic.revolver { width: 56px; } .htag svg.ic.dynamite { width: 64px; }
.htag .nm { grid-column: 1 / -1; justify-self: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); white-space: nowrap; }
.htag .nm em { font-style: normal; margin-left: 4px; padding: 0 4px; border: 1px solid rgba(241,231,208,.3); font-size: 9px; letter-spacing: 0; }
.htag.on .str { height: 18px; }
.htag.on .card { background: rgba(14,11,8,.9); box-shadow: inset 0 -3px 0 var(--sun); }
.htag.on kbd { background: var(--sun); border-color: var(--sun); color: var(--ink-solid); font-weight: 600; }
.htag.on svg.ic { fill: var(--paper); }
.htag.on .cnt, .htag.on .nm { color: var(--paper); }
.htag.swing { animation: swing .8s cubic-bezier(.3,1.4,.4,1); }
@keyframes swing { 0% { transform: rotate(-10deg); } 35% { transform: rotate(6deg); } 65% { transform: rotate(-2.5deg); } 100% { transform: rotate(0); } }
.htag.empty { opacity: .38; }
.htag.dyn.on .card { box-shadow: inset 0 -3px 0 var(--blood); }
.htag.dyn.on kbd { background: var(--blood); border-color: var(--blood); color: var(--paper); }
.sticks { display: flex; gap: 3px; }
.sticks i { position: relative; width: 6px; height: 15px; border-radius: 1px; background: linear-gradient(#a8291f 0 30%, #eadcc0 30% 64%, #a8291f 64%); box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.sticks i::after { content: ''; position: absolute; top: -4px; left: 3px; width: 1px; height: 4px; background: #8a7a62; }
.sticks i.e { background: rgba(241,231,208,.14); }
.sticks i.e::after { display: none; }
.pips.dynamite { gap: 5px; }
.pips.dynamite i { width: 8px; height: 22px; border-radius: 2px; background: linear-gradient(#a8291f 0 30%, #eadcc0 30% 64%, #a8291f 64%); }
.pips.dynamite i.e { background: rgba(241,231,208,.15); }

/* ---- HvH: cheat-menu look on purpose ---- */
#esp { position: absolute; inset: 0; width: 100%; height: 100%; }
#hvhBar { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 7px; padding: 6px 10px 5px; background: rgba(17,17,17,.9); border: 1px solid #2b2b2b;
  font: 12px Verdana, Tahoma, sans-serif; color: #dcdcdc; letter-spacing: 0; box-shadow: 0 0 0 1px #0a0a0a; }
#hvhBar .rgb { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, #3bc8ff, #c43bff 50%, #ffd83b); }
#hvhBar b { color: #9fd65a; font-weight: 400; }
#hvhBar s { width: 1px; height: 11px; background: #3a3a3a; }
#hvhLog { position: absolute; left: 14px; top: 42px; display: flex; flex-direction: column; gap: 2px; font: 12px Verdana, Tahoma, sans-serif; text-shadow: 1px 1px 0 #000; }
#hvhLog div { color: #dcdcdc; transition: opacity .6s; }
#hvhLog div b { font-weight: 400; color: #9fd65a; }
#hvhLog div.miss b { color: #ff6b6b; }
#hvhLog div em { font-style: normal; color: #8fb8ff; }
#hvhInd { position: absolute; left: 50%; top: calc(50% + 31vh); transform: translateX(-50%); display: flex; gap: 12px; font: 700 12px Verdana, Tahoma, sans-serif; color: #dcdcdc; text-shadow: 1px 1px 0 #000; }
#hvhInd .r { color: #ff5a5a; } #hvhInd .aa { color: #8fb8ff; } #hvhInd .bh { color: #b6ff4a; }
.diff.hvh { color: #c77dff; }

/* fuse timer under the crosshair */
#fuse { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fuse-ring { position: relative; width: 66px; height: 66px; display: none; }
#fuse.lit .fuse-ring { display: block; }
.fuse-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fuse-ring circle { fill: none; stroke-width: 4; }
.fuse-ring .bg { stroke: rgba(14,11,8,.55); }
.fuse-ring .fg { stroke: var(--sun); stroke-dasharray: 170; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(240,164,58,.8)); transition: stroke .2s; }
.fuse-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
#fuse.danger .fg { stroke: var(--blood); filter: drop-shadow(0 0 5px rgba(255,60,30,.9)); }
#fuse.danger .fuse-ring { animation: fusePulse .25s infinite alternate; }
#fuse.danger b { color: #ff7a5c; }
@keyframes fusePulse { to { transform: scale(1.12); } }
#fuseHint { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; }
.kf svg.dynamite { width: 40px; fill: #e0705a; }
.death-by svg.dynamite { width: 46px; fill: #e0705a; }

#chat { position: absolute; left: 26px; bottom: 250px; width: 420px; display: flex; flex-direction: column; gap: 6px; }
#chatLog { display: flex; flex-direction: column; gap: 2px; font-size: 15px; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
#chatLog div { transition: opacity 1s; }
#chatLog b { color: var(--sun); font-weight: 500; margin-right: 6px; }
#chatLog .sys { color: var(--paper-dim); font-size: 13px; letter-spacing: .04em; }
#chatInput { width: 100%; padding: 7px 10px; background: var(--ink); border: 0; border-left: 3px solid var(--sun); outline: none; font-size: 15px; }

.wm-hud { position: absolute; right: 30px; bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgba(241,231,208,.45); }

#scope { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, transparent 37vh, #050403 37.2vh); }
.scope-ring { position: absolute; left: 50%; top: 50%; width: 74vh; height: 74vh; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 40px 12px rgba(0,0,0,.75);
  background: linear-gradient(transparent calc(50% - .5px), rgba(0,0,0,.9) calc(50% - .5px), rgba(0,0,0,.9) calc(50% + .5px), transparent calc(50% + .5px)),
              linear-gradient(90deg, transparent calc(50% - .5px), rgba(0,0,0,.9) calc(50% - .5px), rgba(0,0,0,.9) calc(50% + .5px), transparent calc(50% + .5px)); }
.scope-ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #c0261a; box-shadow: 0 0 6px #ff3b20; }
.scope-wm { position: absolute; left: 50%; top: calc(50% + 30vh); transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .3em; color: rgba(241,231,208,.25); }

#board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); width: 760px; background: rgba(14,11,8,.88); border: var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 24px 14px; border-bottom: 2px solid var(--sun); }
.board-head h3 { font-family: var(--slab); font-weight: 400; font-size: 30px; letter-spacing: .04em; }
.board-head span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-dim); }
.b-time { font-size: 26px !important; font-variant-numeric: tabular-nums; color: var(--paper) !important; letter-spacing: .06em !important; }
.board-cols, .brow { display: grid; grid-template-columns: 40px 1fr 54px 54px 54px 64px 92px; align-items: center; padding: 0 24px; }
.brow .pg { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.brow .pg .bars { height: 11px; } .brow .pg .bars b:nth-child(4) { height: 11px; } .brow .pg .bars b:nth-child(3) { height: 8px; } .brow .pg .bars b:nth-child(2) { height: 6px; } .brow .pg .bars b:nth-child(1) { height: 3px; }
.brow .pg em { font-style: normal; color: var(--paper); font-size: 14px; }
.board-cols { padding-top: 10px; padding-bottom: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); }
.board-cols span:nth-child(n+3), .brow span:nth-child(n+3) { text-align: right; }
.brow { height: 36px; font-size: 17px; font-variant-numeric: tabular-nums; border-top: 1px solid rgba(241,231,208,.05); position: relative; }
.brow:nth-child(odd) { background: rgba(241,231,208,.025); }
.brow.me { background: rgba(240,164,58,.14); }
.brow.me::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sun); }
.brow.dead { opacity: .55; }
.brow .rk { color: var(--paper-dim); font-size: 14px; }
.brow .nm { display: flex; align-items: center; gap: 10px; font-weight: 500; overflow: hidden; white-space: nowrap; }
.brow .chip { width: 8px; height: 8px; transform: rotate(45deg); flex: none; }
.brow .tag { font-size: 10px; letter-spacing: .16em; padding: 1px 5px; border: 1px solid rgba(241,231,208,.25); color: var(--paper-dim); font-weight: 400; }
.brow .kk { color: var(--paper); font-weight: 600; }
.brow .pg { color: var(--paper-dim); font-size: 14px; }
.board-foot { display: flex; justify-content: space-between; padding: 12px 24px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); border-top: var(--line); }

#death { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(transparent 38%, rgba(0,0,0,.45) 50%, transparent 62%); }
.wasted { font-family: var(--slab); font-size: 96px; letter-spacing: .08em; color: #d23a2a; text-shadow: 0 3px 0 #3a0c06, 0 0 30px rgba(0,0,0,.6); animation: wasted 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes wasted { 0% { opacity: 0; transform: scale(1.25); letter-spacing: .3em; } 100% { opacity: 1; } }
.death-by { font-size: 20px; letter-spacing: .08em; text-shadow: 0 1px 4px #000; display: flex; align-items: center; gap: 10px; }
.death-by b { color: var(--sun); font-weight: 500; }
.death-by svg { width: 52px; height: 18px; fill: var(--paper); }
.death-timer { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--paper-dim); }

#roundEnd { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(10,7,5,.72); }
.re-title { font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: var(--paper-dim); }
.re-winner { font-family: var(--slab); font-size: 64px; letter-spacing: .03em; color: var(--sun); text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.re-rows { display: flex; flex-direction: column; gap: 2px; width: 520px; margin-top: 14px; }
.re-row { display: grid; grid-template-columns: 34px 1fr 50px 50px 50px; padding: 6px 16px; background: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.re-row span:nth-child(n+3) { text-align: right; }
.re-row.me { box-shadow: inset 4px 0 0 var(--sun); }
.re-next { margin-top: 18px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--paper-dim); }

#pause { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,7,5,.55); }
.pause-panel { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 30px 36px; background: var(--ink); border: var(--line); min-width: 340px; }
.pause-panel .logo { margin-bottom: 14px; }
#clickToPlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,7,5,.35); pointer-events: auto; cursor: pointer; }
#clickToPlay span { padding: 12px 28px; background: var(--ink); font-size: 16px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 2px solid var(--sun); }

#toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 50; padding: 10px 22px; background: var(--ink); border-left: 3px solid var(--blood); font-size: 15px; letter-spacing: .04em; }

@media (max-width: 1100px) {
  .logo-hn { font-size: 52px; }
  .menu-top { flex-wrap: wrap; gap: 18px; }
  .rooms, .create, .settings { width: 100%; }
}

/* create form: map picker and HvH bot tuning */
.field small { text-transform: none; letter-spacing: .02em; opacity: .7; margin-left: 8px; }
.field.hidden { display: none; }
.diff small { display: none; }
.panel.create .form { max-height: calc(100vh - 290px); overflow-y: auto; }
