@font-face { font-family: 'Silkscreen'; src: url('/vendor/fonts/silkscreen/silkscreen-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/vendor/fonts/silkscreen/silkscreen-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('/vendor/fonts/pixelify/pixelify-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --navy: #131a24; --navy2: #1b2431; --line: #33405a; --brass: #c9a14a; --brass-d: #7d6228; --cream: #efe4c8; --dim: #9aa3b2;
  --blue: #2f73d8; --blue-d: #1b4a94; --blue-l: #6fb2ff; --coral: #e2604f; --green: #3f9a4f; --green-d: #23602f;
  --head: 'Silkscreen', ui-monospace, monospace; --body: 'Pixelify Sans', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1219; color: var(--cream); font-family: var(--body); font-size: 17px; user-select: none; -webkit-user-select: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
img { image-rendering: pixelated; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ================= menus ================= */
#menu { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at 30% 40%, rgba(13, 18, 25, 0.25), rgba(13, 18, 25, 0.78)); overflow: auto; }
#menu.show { display: flex; }
#menu.ingame { background: rgba(10, 14, 20, 0.62); backdrop-filter: blur(3px); }
.screen { display: none; }
.screen.show { display: block; animation: pop 0.14s steps(4); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel { position: relative; width: min(440px, 100%); background: linear-gradient(#18212e, var(--navy)); border: 3px solid #0b0f15; outline: 2px solid var(--line); outline-offset: -6px; padding: 22px 24px 20px; box-shadow: 0 0 0 2px #2a3446, 0 14px 0 rgba(0, 0, 0, 0.35); }
.panel.wide { width: min(760px, 100%); }
.panel.narrow { width: min(340px, 100%); }
.panel::before, .panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 3px solid var(--brass); pointer-events: none; }
.panel::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.panel h3 { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 3px; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.panel h3::before, .panel h3::after { content: ''; height: 3px; background: var(--brass-d); flex: 0 0 18px; }
.panel h3::after { flex: 1; }
.panel h3.center::before { flex: 1; }
.center { text-align: center; justify-content: center; }
fieldset { border: 2px solid var(--line); margin: 0 0 12px; padding: 8px 12px 12px; min-width: 0; }
legend { font-family: var(--head); font-size: 13px; letter-spacing: 2px; color: var(--dim); padding: 0 6px; }
fieldset.row { display: flex; align-items: center; justify-content: center; gap: 18px; }
fieldset.row b { font-family: var(--head); font-size: 24px; min-width: 40px; text-align: center; }
.step { background: none; border: 0; color: var(--cream); font-size: 18px; padding: 4px 10px; }
.step:hover { color: var(--blue-l); }

.btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 2px; padding: 13px 18px; text-align: left; color: var(--cream); background: linear-gradient(#232d3d, #171f2b); border: 3px solid #0b0f15; box-shadow: inset 0 0 0 2px #3a475e, 0 4px 0 rgba(0, 0, 0, 0.4); text-shadow: 0 2px 0 #000; transition: transform 0.05s; }
.btn:hover:not(:disabled), .btn:focus-visible { box-shadow: inset 0 0 0 2px var(--brass), 0 4px 0 rgba(0, 0, 0, 0.4); outline: none; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--brass), 0 1px 0 rgba(0, 0, 0, 0.4); }
.btn.primary { background: linear-gradient(#3b86ee, var(--blue-d)); box-shadow: inset 0 0 0 2px var(--blue-l), 0 4px 0 rgba(0, 0, 0, 0.4); }
.btn.ready { background: linear-gradient(#4aa85a, var(--green-d)); box-shadow: inset 0 0 0 2px #7fd08c, 0 4px 0 rgba(0, 0, 0, 0.4); }
.btn.ready.off { background: linear-gradient(#232d3d, #171f2b); box-shadow: inset 0 0 0 2px #3a475e, 0 4px 0 rgba(0, 0, 0, 0.4); }
.btn:disabled { filter: grayscale(0.9) brightness(0.65); cursor: not-allowed; }
.btn.small { font-size: 15px; padding: 10px 14px; letter-spacing: 2px; }
.btn.wide { width: 100%; justify-content: center; margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.actions .primary, .actions .ready { margin-left: auto; }
.actions .ready + .primary { margin-left: 0; }
.actions.center .primary { margin-left: 0; }
.note { color: var(--dim); font-size: 15px; margin: 4px 0 10px; min-height: 18px; }
.error { color: var(--coral); font-family: var(--head); font-size: 13px; letter-spacing: 2px; text-align: center; min-height: 18px; margin: 8px 0 0; }

.logo { text-align: center; margin-bottom: 18px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55)); }
.logo h1 { font-family: var(--head); font-weight: 700; font-size: 46px; letter-spacing: 3px; margin: 0; color: #f2b14a; text-shadow: 0 3px 0 #a8651c, 0 6px 0 #3b2412; line-height: 1; }
.logo h2 { font-family: var(--head); font-size: 17px; letter-spacing: 12px; margin: 8px 0 0; color: var(--cream); display: flex; align-items: center; justify-content: center; gap: 10px; padding-left: 12px; }
.logo h2 span { width: 34px; height: 3px; background: var(--cream); }
.logo.small h1 { font-size: 52px; }
.trees { display: flex; justify-content: center; align-items: flex-end; gap: 2px; height: 46px; margin-bottom: 4px; }
.trees i { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 34px solid #f2b14a; }
.trees i:nth-child(2) { border-left-width: 14px; border-right-width: 14px; border-bottom-width: 46px; }
.field { display: block; font-family: var(--head); font-size: 12px; letter-spacing: 2px; color: var(--dim); margin-bottom: 14px; }
.field input, #code { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; background: #0e141c; border: 3px solid #0b0f15; box-shadow: inset 0 0 0 2px var(--line); font-family: var(--head); font-size: 18px; letter-spacing: 2px; color: var(--cream); user-select: text; -webkit-user-select: text; }
.field input:focus, #code:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-l); }
#code { font-size: 34px; text-align: center; letter-spacing: 12px; padding-left: 24px; text-transform: uppercase; margin: 0; }
.tagline { font-family: var(--head); font-size: 12px; letter-spacing: 4px; line-height: 1.7; text-align: center; color: var(--cream); opacity: 0.8; margin: 26px 0 6px; text-shadow: 0 2px 0 #000; }
.conn { font-family: var(--head); font-size: 11px; letter-spacing: 2px; text-align: center; color: var(--dim); margin: 0; }
.conn.ok { color: #7fd08c; } .conn.bad { color: var(--coral); }

.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; font-family: var(--head); font-size: 13px; letter-spacing: 1px; background: #0e141c; border: 2px solid var(--line); color: var(--cream); }
.choice img { height: 34px; }
.choice:hover { border-color: var(--brass); }
.choice.sel { background: linear-gradient(#2a66bd, var(--blue-d)); border-color: var(--blue-l); box-shadow: 0 0 0 2px #0b0f15, 0 0 12px rgba(111, 178, 255, 0.35); }
.choice.toggle.sel { background: linear-gradient(#3f9a4f, var(--green-d)); border-color: #7fd08c; }
.choice.teamb.coral.sel { background: linear-gradient(#e2604f, #8c2f28); border-color: #ffb0a0; }
.choice .face { width: 54px; height: 54px; background-size: 150% auto; background-position: 50% 3%; background-repeat: no-repeat; image-rendering: pixelated; }
#xhair-pick .choice { min-width: 52px; padding: 6px; }
.mapcard { position: relative; border: 2px solid var(--line); line-height: 0; }
.mapcard img { width: 100%; height: 92px; object-fit: cover; }
.mapcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 6px; font-family: var(--head); font-size: 13px; letter-spacing: 2px; text-align: center; line-height: 1; background: linear-gradient(transparent, rgba(8, 12, 18, 0.92)); }

#s-lobby header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
#s-lobby header h3 { flex: 1; }
.code { font-family: var(--head); font-size: 15px; letter-spacing: 2px; color: var(--dim); display: flex; align-items: center; gap: 8px; padding-top: 6px; white-space: nowrap; }
.code b { color: var(--cream); font-size: 20px; letter-spacing: 4px; user-select: text; -webkit-user-select: text; }
.mini { background: #0e141c; border: 2px solid var(--line); padding: 2px 8px; font-size: 18px; }
.mini:hover { border-color: var(--brass); }
#lobby-mode { font-family: var(--head); font-size: 13px; letter-spacing: 2px; color: var(--brass); margin: -6px 0 10px; }
#lobby-lan { font-size: 15px; color: var(--dim); margin: -4px 0 10px; }
#lobby-lan b { color: var(--cream); font-weight: 400; user-select: text; -webkit-user-select: text; }
#roster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.team { border: 2px solid var(--line); min-height: 60px; }
.team h4 { margin: 0; padding: 6px 10px; font-family: var(--head); font-size: 13px; letter-spacing: 2px; background: #223049; }
.team.blue { border-color: var(--blue); } .team.blue h4 { background: #1c3f78; color: #cfe4ff; }
.team.coral { border-color: var(--coral); } .team.coral h4 { background: #6e2a24; color: #ffd6cc; }
.prow { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-top: 1px solid #232d3d; }
.prow .face { width: 38px; height: 38px; flex: none; background-size: 150% auto; background-position: 50% 3%; background-repeat: no-repeat; image-rendering: pixelated; }
.prow b { display: block; font-weight: 400; font-size: 17px; }
.prow small { font-size: 14px; color: var(--dim); }
.prow small.ok { color: #6fd07f; }
.prow .tag { margin-left: auto; font-family: var(--head); font-size: 10px; letter-spacing: 1px; color: var(--brass); }
.prow.me b { color: #ffe9a8; }
.prow.empty { color: #4a5568; font-size: 14px; min-height: 48px; }
.pickers { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 10px; }
.pickers fieldset { margin: 0 0 6px; }
.pickers .choice { min-width: 0; font-size: 11px; padding: 8px 4px; }

.sliders label { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 10px; font-family: var(--head); font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; }
.sliders output { text-align: right; font-family: var(--head); font-size: 13px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; background: #0e141c; border: 2px solid var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; background: var(--brass); border: 2px solid #0b0f15; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; color: var(--dim); }
kbd { font-family: var(--head); font-size: 10px; color: var(--cream); background: #0e141c; border: 1px solid var(--line); padding: 1px 5px; }

#res-score { font-family: var(--head); font-weight: 700; font-size: 44px; text-align: center; letter-spacing: 4px; margin: -6px 0 12px; }
#res-table, #scoreboard .sb-team { font-size: 16px; }
.sb-head, .sb-row { display: grid; grid-template-columns: 1fr 70px 70px; align-items: center; padding: 3px 10px; }
.sb-head { font-family: var(--head); font-size: 11px; letter-spacing: 1px; color: var(--dim); }
.sb-row { border-top: 1px solid #232d3d; }
.sb-row span:first-child { display: flex; align-items: center; gap: 8px; }
.sb-row img { width: 22px; height: 22px; object-fit: cover; object-position: 50% 0; }
.sb-row.me { background: rgba(47, 115, 216, 0.3); box-shadow: inset 0 0 0 2px var(--blue-l); }
.sb-row em { font-style: normal; font-size: 11px; color: var(--brass); font-family: var(--head); }
.sb-head span:not(:first-child), .sb-row span:not(:first-child) { text-align: center; }
.sb-team h4 { margin: 8px 0 2px; font-family: var(--head); font-size: 14px; letter-spacing: 2px; }
.sb-team.blue h4, .blue { color: var(--blue-l); } .sb-team.coral h4, .coral { color: #ff8a70; }

/* ================= HUD ================= */
#hud { position: fixed; inset: 0; display: none; pointer-events: none; font-family: var(--head); }
#hud.show { display: block; }
#vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(190, 24, 14, 0.75)); }
#viewmodel { position: absolute; right: -1vh; bottom: -3vh; height: 46vh; transform-origin: 80% 100%; will-change: transform; }
#viewmodel #wstack { height: 100%; position: relative; will-change: filter; }
#viewmodel #weapon { height: 100%; display: block; position: relative; }
#wunder, #wover { position: absolute; display: none; pointer-events: none; } /* what is fitted to the weapon: under and over the sprite (sized in game.js) */
#muzzle { position: absolute; width: 46%; left: 15%; top: -30%; opacity: 0; mix-blend-mode: screen; z-index: 2; }
#viewmodel[data-w=scattergun] #muzzle { left: 4%; top: -34%; width: 56%; }
#viewmodel[data-w=launcher] #muzzle { display: none; }
#viewmodel[data-w=smg] #muzzle { left: 16%; top: -28%; width: 40%; }
#viewmodel[data-w=sniper] #muzzle { left: -2%; top: -50%; width: 44%; }
#viewmodel[data-w=lmg] #muzzle { left: 2%; top: -44%; width: 46%; }
#viewmodel[data-w=repeater] #muzzle { left: -22%; top: -52%; width: 44%; }
#viewmodel[data-w=burst] #muzzle { left: 4%; top: -40%; width: 44%; }
#viewmodel[data-w=arc] #muzzle { display: none; }
#topbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center; }
.scorebox { display: inline-flex; border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); background: var(--navy); font-weight: 700; font-size: 24px; }
.scorebox span { padding: 3px 14px; min-width: 62px; }
#score-a { background: #1f4f9c; color: #fff; } #score-b { background: #a43a30; color: #fff; }
#timer { letter-spacing: 1px; font-weight: 400; }
#mode-label { display: inline-block; margin-top: 3px; font-size: 11px; letter-spacing: 2px; background: rgba(19, 26, 36, 0.85); padding: 2px 10px; }
#fps { display: inline-block; font-size: 11px; letter-spacing: 1px; background: rgba(19, 26, 36, 0.85); padding: 2px 8px; color: #c9d4e6; }
#ping { display: inline-block; font-size: 11px; letter-spacing: 1px; background: rgba(19, 26, 36, 0.85); padding: 2px 8px; }
#ping.good { color: #7fd08c; } #ping.ok { color: #f2d06b; } #ping.bad { color: #ff8a70; }
#killfeed { position: absolute; top: 12px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--body); font-size: 16px; }
.kf { background: rgba(13, 18, 25, 0.72); padding: 3px 10px; display: flex; align-items: center; gap: 8px; border-left: 3px solid transparent; }
.kf.mine { border-left-color: var(--brass); background: rgba(13, 18, 25, 0.9); }
.kf img { height: 16px; filter: brightness(0) invert(0.92); } .kf img.hs { filter: none; height: 15px; }
.kf span { color: var(--dim); }
#crosshair, #hitmarker, #dmg-dir { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#crosshair svg { display: block; }
#hitmarker { width: 34px; height: 34px; opacity: 0; }
#hitmarker.show { opacity: 1; }
#hitmarker i { position: absolute; width: 11px; height: 4px; background: #f3ead2; box-shadow: 0 0 0 1.5px #1b140c; }
#hitmarker.kill i { background: #ff6a55; }
#hitmarker i:nth-child(1) { left: 0; top: 4px; transform: rotate(45deg); } #hitmarker i:nth-child(2) { right: 0; top: 4px; transform: rotate(-45deg); }
#hitmarker i:nth-child(3) { left: 0; bottom: 4px; transform: rotate(-45deg); } #hitmarker i:nth-child(4) { right: 0; bottom: 4px; transform: rotate(45deg); }
#dmg-dir { width: 220px; height: 220px; opacity: 0; }
#dmg-dir.show { animation: dmg 0.9s linear; }
#dmg-dir i { position: absolute; left: 50%; top: 0; width: 70px; height: 9px; margin-left: -35px; background: #ff5540; box-shadow: 0 0 0 2px rgba(27, 20, 12, 0.8); clip-path: polygon(0 100%, 12% 0, 88% 0, 100% 100%); }
@keyframes dmg { 0% { opacity: 1; } 70% { opacity: 0.8; } 100% { opacity: 0; } }
#speed { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); font-size: 12px; color: rgba(239, 228, 200, 0.75); text-shadow: 0 1px 0 #000; }
#reload-hint, #protect { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); font-size: 13px; letter-spacing: 3px; opacity: 0; text-shadow: 0 2px 0 #000; }
#reload-hint.show, #protect.show { opacity: 1; }
#protect { top: calc(50% + 92px); color: var(--blue-l); }
/* mantle timing: the marker reaches the bright end when a jump throws you off the edge */
#mantle { position: absolute; left: 50%; top: calc(50% + 38px); width: 96px; height: 6px; transform: translateX(-50%); background: rgba(13, 18, 25, 0.8); box-shadow: 0 0 0 2px #0b0f15; display: none; }
#mantle.show { display: block; } #mantle-win { position: absolute; right: 0; top: 0; height: 100%; background: #5d6b80; } #mantle.open #mantle-win { background: #ffd35a; }
#mantle-at { position: absolute; top: -3px; width: 3px; height: 12px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #0b0f15; }
#mantle-note { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); font-family: var(--head); font-size: 11px; letter-spacing: 3px; text-shadow: 0 2px 0 #000; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
#mantle-note.show { opacity: 1; transition: none; } #mantle-note.hit { color: #ffd35a; } #mantle-note.miss { color: #9aa7ba; }
/* healing: a bar that fills until the heal lands */
#cast { position: absolute; left: 50%; top: calc(50% + 94px); transform: translateX(-50%); display: none; align-items: center; gap: 10px; }
#cast.show { display: flex; } #cast.show ~ #protect { top: calc(50% + 118px); }
#cast .bar { width: 220px; height: 10px; margin: 0; background: rgba(13, 18, 25, 0.82); border: 2px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); } #cast-fill { height: 100%; width: 0; background: linear-gradient(#b8ffc4, #4fc866); }
#cast span { font-size: 12px; letter-spacing: 2px; min-width: 3.4em; color: #b8ffc4; text-shadow: 0 2px 0 #000; }
#toast { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); font-size: 14px; letter-spacing: 3px; opacity: 0; text-shadow: 0 2px 0 #000; transition: opacity 0.2s; white-space: nowrap; }
#toast.show { opacity: 1; } #toast.big { font-size: 20px; font-weight: 700; color: #ffe9a8; }
.plate { position: absolute; bottom: 16px; display: flex; align-items: center; gap: 10px; background: rgba(13, 18, 25, 0.72); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); padding: 6px 12px; }
#hp { left: 16px; } #heals { font-size: 20px; color: #7fd08c; letter-spacing: 2px; margin-left: 4px; } #hp img { height: 30px; } #hp b { font-size: 26px; line-height: 1; }
.bar { width: 150px; height: 9px; background: #0e141c; margin-top: 3px; } #hp-fill { height: 100%; width: 100%; background: linear-gradient(#8fd0ff, #3f8cff); transition: width 0.12s; }
#abil { left: calc(100% + 14px); bottom: -3px; padding: 6px 10px; gap: 8px; opacity: 0.8; white-space: nowrap; } /* (sits beside the health plate, however wide that is) */ #abil em { font-style: normal; font-family: var(--head); font-size: 12px; color: #0b0f15; background: #6f7a8c; min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 4px; }
#hp #abil b { font-family: var(--head); font-size: 10px; font-weight: 400; letter-spacing: 1px; color: var(--dim); } #abil .bar { width: 104px; height: 6px; } #abil-fill { height: 100%; background: #6f7a8c; }
#abil.ready { opacity: 1; } #abil.ready em { background: #8fe0c0; } #hp #abil.ready b { color: #efe4c8; } #abil.ready #abil-fill { background: linear-gradient(#b8f2dc, #5fc9a4); }
#char-abil { margin: 8px 0 0; max-width: 330px; font-size: 13px; line-height: 1.25; color: var(--dim); } #char-abil b { font-family: var(--head); font-size: 10px; font-weight: 400; letter-spacing: 1px; color: #8fe0c0; } #char-abil span { white-space: nowrap; }
#hp.low #hp-fill { background: linear-gradient(#ff9a86, #e2402c); } #hp.low b { color: #ff9a86; }
#ammo { right: 16px; font-size: 18px; } #ammo b { font-size: 32px; line-height: 1; } #ammo em { font-style: normal; color: var(--dim); } #ammo img { height: 28px; margin-left: 4px; }
#ammo.low b { color: #ff9a86; }
#click-hint { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-size: 14px; letter-spacing: 3px; padding: 8px 16px; background: rgba(13, 18, 25, 0.85); border: 2px solid var(--brass); display: none; }
#click-hint.show { display: block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.dmgnum { position: absolute; left: 0; top: 0; font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 3px #000; will-change: transform; }
.dmgnum.head { color: #ffd34a; font-size: 22px; }
#scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); display: none; font-family: var(--body); }
#scoreboard.show { display: block; }
#scoreboard h3 small { font-size: 12px; color: var(--dim); letter-spacing: 1px; }
#respawn { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(10, 14, 20, 0.55); pointer-events: auto; text-align: center; }
#respawn.show { display: flex; }
#respawn h2 { font-size: 24px; letter-spacing: 4px; margin: 0; } #respawn h3 { font-size: 16px; letter-spacing: 3px; margin: 18px 0 10px; color: var(--cream); }
#respawn p { font-size: 12px; letter-spacing: 3px; color: var(--dim); margin-top: 14px; }
#respawn-count { font-size: 76px; font-weight: 700; line-height: 1; text-shadow: 0 5px 0 #000; }
#killed-by { font-family: var(--body); font-size: 19px; margin-bottom: 18px; }
#loadout { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.card { position: relative; width: 170px; padding: 14px 8px 10px; background: rgba(19, 26, 36, 0.92); border: 3px solid #0b0f15; box-shadow: inset 0 0 0 2px var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--head); color: var(--cream); }
.card img { height: 46px; max-width: 140px; object-fit: contain; }
.card b { font-size: 14px; letter-spacing: 1px; } .card span { font-size: 10px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.card i { position: absolute; left: 6px; top: 4px; font-style: normal; font-size: 11px; color: var(--dim); }
.card:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.card.sel { box-shadow: inset 0 0 0 3px var(--brass), 0 0 14px rgba(201, 161, 74, 0.4); }
#flash { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--head); font-size: 13px; letter-spacing: 2px; padding: 8px 16px; background: var(--navy); border: 2px solid var(--brass); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 9; }
#flash.show { opacity: 1; }
#reconnect { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); font-family: var(--head); font-size: 14px; letter-spacing: 2px; padding: 10px 20px; background: var(--navy); border: 2px solid #ff6a55; color: #ffd9d2; display: none; pointer-events: none; z-index: 30; animation: reconnect 1.1s ease-in-out infinite; }
#reconnect.show { display: block; }
@keyframes reconnect { 50% { opacity: 0.55; } }

@media (max-width: 700px) {
  #roster, .pickers { grid-template-columns: 1fr; }
  .logo h1 { font-size: 36px; }
  #s-main { margin: 0 auto; }
  .sliders label { grid-template-columns: 110px 1fr 40px; }
  .card { width: 44%; }
}
@media (prefers-reduced-motion: reduce) { .screen.show, #click-hint.show { animation: none; } }

/* key bindings */
#binds { display: grid; grid-template-columns: 1fr 120px 120px; gap: 5px 8px; align-items: center; font-size: 15px; }
#binds .slot { font-family: var(--head); font-size: 11px; letter-spacing: 1px; padding: 7px 4px; background: #0e141c; border: 2px solid var(--line); color: var(--cream); min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#binds .slot:hover, #binds .slot:focus-visible { border-color: var(--brass); outline: none; }
#binds .slot.empty { color: #4a5568; }
#binds .slot.listen { border-color: var(--blue-l); background: #17325c; animation: blink 0.8s steps(2) infinite; }
#bind-note { font-size: 13px; margin: 8px 0; }
#bind-note.warn { color: #f2d06b; }

/* teams with any colour */
.team[style] { border-color: var(--c); } .team[style] h4 { background: color-mix(in srgb, var(--c) 34%, #101620); color: #fff; }
.choice.teamb { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--c); }
.choice.teamb.sel { background: color-mix(in srgb, var(--c) 55%, #101620); border-color: var(--c); color: #fff; box-shadow: 0 0 0 2px #0b0f15; }
.sb-team[style] h4 { color: var(--c); }
#roster { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
#create-info { margin: 8px 0 0; min-height: 34px; font-size: 14px; }
#mode-choices .choice { min-width: 22%; }

/* settings categories */
.cat { border: 2px solid var(--line); margin-bottom: 8px; background: rgba(14, 20, 28, 0.5); }
.cat > summary { list-style: none; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 3px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(#232d3d, #171f2b); }
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::after { content: '+'; font-size: 18px; color: var(--brass); }
.cat[open] > summary::after { content: '-'; }
.cat > summary:hover, .cat > summary:focus-visible { color: #ffe9a8; outline: none; }
.cat[open] > summary { border-bottom: 2px solid var(--line); }
.catbody { padding: 10px 14px 12px; }
.srow { display: grid; grid-template-columns: 1fr minmax(150px, 46%) ; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #1f2836; font-size: 15px; }
label.srow { grid-template-columns: 1fr minmax(120px, 38%) 44px; }
.srow > span small { display: block; font-size: 12px; color: var(--dim); }
.srow output { text-align: right; font-family: var(--head); font-size: 12px; }
.choices.tight { gap: 4px; flex-wrap: nowrap; }
.choices.tight .choice { min-width: 0; padding: 7px 6px; font-size: 11px; flex-direction: row; }
.choice.swatch { background: var(--c); height: 28px; }
.choice.swatch.sel { background: var(--c); box-shadow: 0 0 0 2px #0b0f15, 0 0 0 4px #fff; border-color: #0b0f15; }
.bindwrap h5 { font-family: var(--head); font-size: 12px; letter-spacing: 2px; color: var(--brass); margin: 12px 0 6px; }
.binds { display: grid; grid-template-columns: 1fr 112px 112px; gap: 5px 8px; align-items: center; font-size: 15px; }
.binds .slot { font-family: var(--head); font-size: 11px; letter-spacing: 1px; padding: 7px 4px; background: #0e141c; border: 2px solid var(--line); color: var(--cream); min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.binds .slot:hover, .binds .slot:focus-visible { border-color: var(--brass); outline: none; }
.binds .slot.empty { color: #4a5568; }
.binds .slot.listen { border-color: var(--blue-l); background: #17325c; animation: blink 0.8s steps(2) infinite; }
#s-settings { max-height: calc(100vh - 32px); overflow: auto; }

/* Wildcard HUD */
.wc { display: none; }
#hud[data-mode=wildcard] .wc { display: flex; }
#hud[data-mode=wildcard] .scorebox #score-a, #hud[data-mode=wildcard] .scorebox #score-b, #hud[data-mode=training] .scorebox #score-a, #hud[data-mode=training] .scorebox #score-b { display: none; }
#wc-left { left: 16px; bottom: 78px; flex-direction: column; align-items: stretch; gap: 6px; width: 228px; }
#evo-level { font-size: 13px; letter-spacing: 2px; color: #ffe08a; }
.bar.gold { width: 100%; } .bar.gold #evo-fill { height: 100%; width: 0; background: linear-gradient(#ffe9a0, #f2b02c); transition: width 0.2s; }
#cards { display: flex; gap: 4px; }
.wcard { flex: 1; font-size: 8px; letter-spacing: 0.5px; text-align: center; padding: 6px 2px; border: 2px solid var(--line); color: #55617a; line-height: 1.2; min-height: 30px; display: flex; align-items: center; justify-content: center; }
.wcard.on { border-color: #38e0c8; color: #c9fff6; background: rgba(40, 200, 180, 0.16); }
.wcard.ready { border-color: #38e0c8; color: #38e0c8; animation: blink 1s steps(2) infinite; }
#squads { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); gap: 10px; font-size: 13px; background: rgba(19, 26, 36, 0.8); padding: 3px 12px; }
#squads span { color: var(--c); letter-spacing: 2px; } #squads span.mine { text-decoration: underline; text-underline-offset: 4px; } #squads span.dead { opacity: 0.4; }
#ring-warn { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 16px; font-weight: 700; letter-spacing: 4px; color: #ff8a55; text-shadow: 0 2px 0 #000; opacity: 0; }
#ring-warn.show { opacity: 1; animation: blink 0.7s steps(2) infinite; }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 14px; letter-spacing: 3px; padding: 8px 16px; background: rgba(13, 18, 25, 0.88); border: 2px solid #38e0c8; color: #c9fff6; opacity: 0; }
#prompt.show { opacity: 1; }
#offer { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(6, 22, 24, 0.62); pointer-events: auto; text-align: center; }
#offer.show { display: flex; }
#offer h2 { font-size: 30px; letter-spacing: 6px; color: #5fe9d6; margin: 0; text-shadow: 0 4px 0 #000; }
#offer p { font-size: 12px; letter-spacing: 3px; color: var(--dim); }
#offer-cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pcard { position: relative; width: 210px; min-height: 170px; padding: 26px 14px 14px; background: linear-gradient(#12303a, #0d1c24); border: 3px solid #0b0f15; box-shadow: inset 0 0 0 2px #2aa596; color: var(--cream); display: flex; flex-direction: column; gap: 10px; align-items: center; font-family: var(--head); }
.pcard b { font-size: 16px; letter-spacing: 1px; color: #c9fff6; } .pcard span { font-family: var(--body); font-size: 15px; line-height: 1.3; color: var(--cream); }
.pcard i { position: absolute; left: 8px; top: 6px; font-style: normal; font-size: 12px; color: #5fe9d6; }
.pcard:hover, .pcard:focus-visible { box-shadow: inset 0 0 0 3px #5fe9d6, 0 0 22px rgba(95, 233, 214, 0.45); outline: none; transform: translateY(-3px); }
.dmgstack { position: absolute; left: calc(50% + 34px); top: calc(50% - 30px); font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 3px #000; }
.dmgstack.head { color: #ffd34a; }
@media (max-width: 700px) { .srow, label.srow { grid-template-columns: 1fr; } .binds { grid-template-columns: 1fr 84px 84px; } .pcard { width: 44%; } }

/* map picker */
.mappick { display: flex; align-items: center; gap: 6px; }
.mappick .mapcard { flex: 1; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; padding: 8px; text-align: center; background: linear-gradient(120deg, #b86b45, #f3cf9a 45%, #5b86c0); }
.mapcard[data-map=deepwood] { background: linear-gradient(120deg, #0f2a2c, #5c7f5a 50%, #cfe0a8); }
.mapcard[data-map=frostkeep] { background: linear-gradient(120deg, #5f7fa8, #e8eef8 55%, #a9b8cf); }
.mapcard[data-map=wharf] { background: linear-gradient(120deg, #05070f, #1d2c52 55%, #ffa03c); }
.mapcard[data-map=valley] { background: linear-gradient(120deg, #6f8f45, #f3cf9a 55%, #5b86c0); }
.mapcard[data-map=range] { background: linear-gradient(120deg, #8a8f9a, #d8d2c8 55%, #5b86c0); }
.mappick .mapcard b { font-family: var(--head); font-size: 16px; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; position: static; background: none; padding: 0; }
.mappick .mapcard span { position: static; background: rgba(8, 12, 18, 0.72); padding: 3px 8px; font-family: var(--body); font-size: 13px; letter-spacing: 0; color: var(--cream); }
/* spectating while you wait */
#spectate { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); font-size: 13px; letter-spacing: 3px; padding: 6px 14px; background: rgba(13, 18, 25, 0.8); border: 2px solid var(--line); display: none; }
#spectate.show { display: block; }
#respawn { background: linear-gradient(rgba(10, 14, 20, 0) 30%, rgba(10, 14, 20, 0.78) 62%); justify-content: flex-end; padding-bottom: 5vh; }
#respawn h2 { font-size: 18px; } #respawn-count { font-size: 52px; } #killed-by { margin-bottom: 8px; } #respawn h3 { margin: 8px 0 8px; }

.shell { position: absolute; left: 0; top: 0; width: 7px; height: 13px; background: linear-gradient(90deg, #8a6a1f, #f2d06b 45%, #a8842f); box-shadow: 0 0 0 1px #2b1d08; will-change: transform; }
.shell.red { background: linear-gradient(#d43a2c 62%, #c9a14a 62%); width: 9px; height: 16px; }
.shell.big { background: linear-gradient(#c9a14a 20%, #4aa3ff 20% 80%, #c9a14a 80%); width: 12px; height: 18px; }

/* aimed view */
#adsgun { position: absolute; left: 50%; top: 50%; height: 92vh; image-rendering: pixelated; transform-origin: 50% 30%; will-change: transform; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.25)); }
#reddot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #ff2a1a; border-radius: 50%; box-shadow: 0 0 6px 2px rgba(255, 50, 30, 0.85), 0 0 14px 5px rgba(255, 40, 20, 0.35); opacity: 0; }
#scope { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 38vh, rgba(0, 0, 0, 0.92) 38.6vh, #000 41vh); }
#scope::before, #scope::after { content: ''; position: absolute; left: 50%; top: 50%; background: #0b0b0b; }
#scope::before { width: 2px; height: 76vh; transform: translate(-50%, -50%); }
#scope::after { height: 2px; width: 76vh; transform: translate(-50%, -50%); }
#scope i { position: absolute; left: 50%; top: 50%; width: 76vh; height: 76vh; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 3px #1a1a1a, inset 0 0 60px 10px rgba(0, 0, 0, 0.55); }
#scope i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; background: #ff2a1a; border-radius: 50%; box-shadow: 0 0 5px 1px rgba(255, 50, 30, 0.8); }
.shell.long { width: 7px; height: 20px; }
#loadout .card { width: 150px; }

/* ---------- weapon slots, loot and the inventory ---------- */
#slots { position: absolute; right: 16px; bottom: 74px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.wslot { position: relative; display: flex; align-items: center; gap: 8px; min-width: 190px; height: 38px; padding: 3px 10px 3px 26px; background: rgba(13, 18, 25, 0.6); border: 2px solid #0b0f15; box-shadow: 0 0 0 1px var(--line); font-family: var(--head); font-size: 11px; letter-spacing: 1px; opacity: 0.72; }
.wslot.on { opacity: 1; box-shadow: 0 0 0 2px var(--brass); background: rgba(24, 31, 43, 0.86); }
.wslot em { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--brass); font-size: 12px; }
.wslot img { height: 30px; max-width: 92px; object-fit: contain; image-rendering: pixelated; } .wslot span { flex: 1; white-space: nowrap; } .wslot small { color: var(--dim); }
.wslot.none span { color: var(--dim); } .wslot u { display: flex; gap: 2px; text-decoration: none; } .wslot u i { width: 7px; height: 7px; border: 1px solid #5a6680; }
#viewmodel[data-w=fists] { height: 24vh; right: 7vw; bottom: -5vh; } #viewmodel[data-w=fists] #weapon { image-rendering: pixelated; } #viewmodel[data-w=fists] #muzzle { display: none; }
#reddot::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255, 42, 26, 0.8); box-shadow: 0 0 6px rgba(255, 40, 20, 0.5); display: none; }
#reddot[data-o="1"] { width: 5px; height: 5px; } #reddot[data-o="1"]::after { display: block; width: 30px; height: 30px; }
#reddot[data-o="2"]::after { display: block; width: 46px; height: 46px; border-width: 1.5px; border-style: dashed; }
#reddot[data-o="3"] { width: 4px; height: 4px; }
#inventory { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 22px; padding: 4vh 3vw; background: rgba(8, 11, 17, 0.72); backdrop-filter: blur(3px); pointer-events: auto; }
#inventory.show { display: flex; }
.inv-col { width: min(440px, 46vw); display: flex; flex-direction: column; gap: 12px; }
.inv-col h3 { font-family: var(--head); font-size: 18px; letter-spacing: 3px; margin: 0; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 0 #000; }
.inv-col h3 small { color: var(--dim); font-size: 12px; } .inv-col h3 img { height: 30px; image-rendering: pixelated; margin-left: auto; } .inv-col .mini { font-family: var(--head); font-size: 11px; letter-spacing: 1px; color: var(--cream); padding: 4px 8px; }
.iw { background: linear-gradient(#18212e, #131a24); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); padding: 10px 12px; }
.iw.hand { box-shadow: 0 0 0 2px var(--brass); } .iw.none { color: var(--dim); display: flex; flex-direction: column; gap: 4px; min-height: 90px; justify-content: center; align-items: center; font-size: 14px; } .iw.none b { font-family: var(--head); letter-spacing: 2px; }
.iw header { display: flex; align-items: baseline; gap: 10px; font-family: var(--head); } .iw header b { font-size: 15px; letter-spacing: 2px; } .iw header small { color: var(--dim); font-size: 10px; letter-spacing: 1px; flex: 1; }
.iw img.gun { display: block; height: 84px; max-width: 100%; margin: 6px auto; image-rendering: pixelated; object-fit: contain; cursor: grab; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.4)); }
.iw p { margin: 8px 0 0; font-size: 13px; color: var(--dim); } .iw p b { color: var(--cream); font-weight: 400; }
.att-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.inv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px; background: linear-gradient(#18212e, #131a24); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); }
.slot { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #0e141c; border: 2px solid var(--c, #33405a); --c: #33405a; }
.slot img { width: 76%; image-rendering: pixelated; pointer-events: none; } .slot em { position: absolute; left: 3px; bottom: 1px; font-family: var(--head); font-style: normal; font-size: 8px; letter-spacing: 1px; color: var(--dim); }
.slot.empty { border-style: dashed; } .slot.off { opacity: 0.3; background: repeating-linear-gradient(45deg, #0e141c 0 6px, #161d28 6px 12px); } .slot.locked { opacity: 0.35; background: repeating-linear-gradient(45deg, #0b0f15 0 5px, #121823 5px 10px); border-style: dotted; }
.slot.r1 { --c: #e8e4d8; background: linear-gradient(#0e141c, #2a2c30); } .slot.r2 { --c: #4aa3ff; background: linear-gradient(#0e141c, #173452); } .slot.r3 { --c: #b46bff; background: linear-gradient(#0e141c, #33205a); } .slot.r4 { --c: #ffc94a; background: linear-gradient(#0e141c, #4d3a12); }
.slot[draggable=true] { cursor: grab; } .slot[draggable=true]:hover { box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c); } .slot.nofit img { opacity: 0.45; }
#inv-ground { border: 2px dashed var(--line); padding: 14px; text-align: center; font-family: var(--head); font-size: 11px; letter-spacing: 2px; color: var(--dim); }
#inventory .note { font-size: 13px; margin: 0; }

/* ---------- zombies ---------- */
.zm, #zm-down { display: none; }
#hud[data-mode=zombies] .zm { display: flex; }
#hud[data-mode=zombies] .scorebox #score-a, #hud[data-mode=zombies] .scorebox #score-b { display: none; }
#zm-round { position: absolute; left: 18px; top: 14px; flex-direction: column; font-family: var(--head); color: #d8301f; text-shadow: 0 3px 0 #000, 0 0 18px rgba(216, 48, 31, 0.6); line-height: 1; }
#zm-round small { font-size: 11px; letter-spacing: 4px; color: #ff8a70; } #zm-round b { font-size: 60px; }
#zm-points { left: 16px; bottom: 78px; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 12px; } #zm-points b { font-family: var(--head); font-size: 24px; color: #ffd84a; line-height: 1.1; } #zm-points small { font-family: var(--head); font-size: 9px; letter-spacing: 3px; color: var(--dim); }
#zm-perks { position: absolute; left: 16px; bottom: 136px; flex-wrap: wrap; gap: 5px; max-width: 320px; }
#zm-perks span, #zm-power span { --c: #5fe9d6; font-family: var(--head); font-size: 10px; letter-spacing: 1px; padding: 3px 7px; background: rgba(13, 18, 25, 0.8); border: 2px solid var(--c); color: var(--c); }
#zm-power { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); gap: 10px; } #zm-power span { font-size: 15px; padding: 5px 12px; box-shadow: 0 0 16px var(--c); animation: zpulse 0.8s infinite alternate; }
@keyframes zpulse { to { transform: scale(1.06); } }
#zm-team { position: absolute; left: 16px; top: 110px; flex-direction: column; gap: 4px; font-size: 14px; }
#zm-team div { position: relative; display: flex; gap: 8px; align-items: center; min-width: 170px; padding: 2px 8px; background: rgba(13, 18, 25, 0.6); border-left: 3px solid #7fd08c; }
#zm-team div.me { background: rgba(40, 52, 70, 0.75); } #zm-team i { font-style: normal; color: #7fd08c; } #zm-team span { flex: 1; } #zm-team b { color: #ffd84a; font-weight: 400; }
#zm-team div.down { border-color: #ff5a4a; } #zm-team div.down i { color: #ff5a4a; } #zm-team div.dead { opacity: 0.45; border-color: #666; } #zm-team div.dead i { color: #999; }
#zm-team u { position: absolute; left: 0; bottom: 0; height: 3px; background: #7fd08c; }
#zm-down.show { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle, rgba(90, 0, 0, 0.15) 20%, rgba(60, 0, 0, 0.75)); text-align: center; }
#zm-down h2 { font-family: var(--head); font-size: 30px; letter-spacing: 6px; color: #ff5a4a; margin: 0; text-shadow: 0 4px 0 #000; } #zm-down .bar { width: 260px; height: 12px; } #zm-rev { height: 100%; width: 0; background: linear-gradient(#b8ffc4, #4fc866); transition: width 0.2s; }
#zm-down p { font-family: var(--head); font-size: 12px; letter-spacing: 3px; margin: 0; }
@media (max-width: 800px) { #inventory { flex-direction: column; overflow: auto; justify-content: flex-start; } .inv-col { width: min(440px, 100%); } }

/* ---------- pings: markers for your team, pinned to their spot in the world ---------- */
#marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mk { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--head); color: var(--c); text-shadow: 0 2px 0 #0b0f15, 0 0 6px rgba(0, 0, 0, 0.8); white-space: nowrap; will-change: transform; }
.mk i { order: 3; font-style: normal; font-size: 20px; line-height: 20px; filter: drop-shadow(0 2px 0 #0b0f15); animation: mkpop 0.28s ease-out; }
.mk b { order: 2; font-size: 11px; font-weight: 400; color: #efe4c8; letter-spacing: 1px; }
.mk span { order: 1; font-size: 10px; letter-spacing: 1px; background: rgba(13, 18, 25, 0.72); padding: 1px 6px; border-bottom: 2px solid var(--c); }
.mk.k1 i { animation: mkpop 0.28s ease-out, mkpulse 0.7s ease-in-out infinite; }
.mk.off { opacity: 0.75; } .mk.off span { display: none; } .mk.off i { font-size: 15px; }
@keyframes mkpop { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mkpulse { 50% { transform: scale(1.25); } }

/* ---------- emote wheel, compass, bile ---------- */
#emote-wheel { position: absolute; left: 50%; top: 50%; width: min(440px, 70vh); aspect-ratio: 1; transform: translate(-50%, -50%); display: none; border-radius: 50%; background: radial-gradient(circle, rgba(13, 18, 25, 0.2) 22%, rgba(13, 18, 25, 0.78) 23%, rgba(13, 18, 25, 0.78) 68%, rgba(13, 18, 25, 0) 70%); }
#emote-wheel.show { display: block; }
.ew { position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(24, 31, 43, 0.92); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); font-family: var(--head); font-size: 9px; letter-spacing: 1px; text-align: center; }
.ew.band { box-shadow: 0 0 0 2px var(--brass); } .ew img { height: 52%; image-rendering: pixelated; object-fit: contain; max-width: 80%; } .ew em { position: absolute; left: 4px; top: 2px; font-style: normal; color: var(--brass); font-size: 10px; }
.ew.sel { transform: translate(-50%, -50%) scale(1.16); background: #2c3a52; box-shadow: 0 0 0 3px #ffe9a8, 0 0 22px rgba(255, 233, 168, 0.5); z-index: 2; }
.ew-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-family: var(--head); display: flex; flex-direction: column; gap: 6px; width: 40%; } .ew-mid b { font-size: 15px; letter-spacing: 2px; color: #ffe9a8; text-shadow: 0 2px 0 #000; } .ew-mid span { font-size: 8px; letter-spacing: 1px; color: var(--dim); }
#compass { position: absolute; left: 50%; top: 62px; width: min(560px, 60vw); height: 26px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(13, 18, 25, 0), rgba(13, 18, 25, 0.7) 18%, rgba(13, 18, 25, 0.7) 82%, rgba(13, 18, 25, 0)); border-bottom: 2px solid rgba(201, 161, 74, 0.5); }
#compass i { position: absolute; top: 3px; transform: translateX(-50%); font-style: normal; font-family: var(--head); font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; }
#compass i.dir { color: var(--dim); font-size: 12px; } #compass i.st { color: #0b0f15; background: var(--c); border: 1px solid #0b0f15; font-weight: 700; } #compass i.mate { color: var(--c); font-size: 13px; } #compass i.down { animation: zpulse 0.5s infinite alternate; }
#compass u { position: absolute; left: 50%; bottom: -5px; width: 2px; height: 8px; background: #ffe9a8; } #compass span { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); white-space: nowrap; font-family: var(--head); font-size: 10px; letter-spacing: 2px; color: #ffe9a8; text-shadow: 0 2px 0 #000; }
#hud[data-mode=zombies] #zm-power { top: 112px; }
#bile { position: absolute; inset: 0; display: none; opacity: 0; pointer-events: none; backdrop-filter: blur(2px) saturate(0.75); background: radial-gradient(ellipse at 50% 50%, rgba(70, 110, 20, 0.05) 30%, rgba(60, 100, 10, 0.42) 100%); }
#bile.show { display: block; }
#bile i { position: absolute; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%; background: radial-gradient(circle at 40% 35%, rgba(190, 230, 70, 0.58), rgba(90, 140, 20, 0.42) 55%, rgba(60, 100, 10, 0) 72%); }
#bile i:nth-child(1) { left: 4%; top: 8%; width: 30vh; height: 26vh; } #bile i:nth-child(2) { right: 6%; top: 14%; width: 38vh; height: 34vh; } #bile i:nth-child(3) { left: 24%; bottom: 4%; width: 44vh; height: 30vh; } #bile i:nth-child(4) { right: 22%; bottom: 16%; width: 22vh; height: 22vh; } #bile i:nth-child(5) { left: 38%; top: 2%; width: 26vh; height: 18vh; }
#rooms:empty { display: none; } #rooms { margin-bottom: 10px; } #rooms .btn span { font-size: 11px; letter-spacing: 1px; opacity: 0.85; }

/* ============ tennis (the sport mode): its own board, calls and keys; none of the shooter's HUD ============ */
#hud[data-mode=tennis] #hp, #hud[data-mode=tennis] #ammo, #hud[data-mode=tennis] #slots, #hud[data-mode=tennis] #crosshair, #hud[data-mode=tennis] #viewmodel, #hud[data-mode=tennis] #adsgun,
#hud[data-mode=tennis] #scope, #hud[data-mode=tennis] #reddot, #hud[data-mode=tennis] #killfeed, #hud[data-mode=tennis] #speed, #hud[data-mode=tennis] #reload-hint, #hud[data-mode=tennis] #protect,
#hud[data-mode=tennis] #prompt, #hud[data-mode=tennis] #marks, #hud[data-mode=tennis] #hitmarker, #hud[data-mode=tennis] #dmg-dir, #hud[data-mode=tennis] #cast, #hud[data-mode=tennis] #mantle,
#hud[data-mode=tennis] #mantle-note, #hud[data-mode=tennis] #click-hint, #hud[data-mode=tennis] .scorebox, #hud[data-mode=tennis] #respawn, #hud[data-mode=tennis] #spectate { display: none !important; }
#tn { display: none; position: absolute; inset: 0; pointer-events: none; font-family: var(--head); }
#tn.show { display: block; }
#tn-board { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 3px; }
.tn-row { display: flex; align-items: center; gap: 0; background: rgba(13, 18, 25, 0.82); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); height: 34px; }
.tn-row i { width: 12px; height: 12px; margin: 0 8px 0 10px; border-radius: 50%; background: transparent; } .tn-row i.srv { background: #d6f03c; box-shadow: 0 0 0 2px #5d7a12; }
.tn-row b { font-weight: 400; font-size: 12px; letter-spacing: 1px; color: var(--c); min-width: 150px; padding-right: 12px; white-space: nowrap; }
.tn-row em, .tn-row strong { font-style: normal; font-weight: 400; width: 34px; text-align: center; font-size: 16px; line-height: 28px; border-left: 2px solid #0b0f15; color: #efe4c8; }
.tn-row em.old { color: #7f8a9c; } .tn-row strong { width: 46px; background: var(--c); color: #0b0f15; } .tn-row.won b::after { content: '  WINNER'; color: #ffd35a; }
.tn-tb { font-size: 10px; letter-spacing: 3px; color: #ffd35a; padding: 2px 4px; text-shadow: 0 2px 0 #000; }
#tn-call, #tn-sub { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; opacity: 0; transition: opacity 0.25s; text-shadow: 0 4px 0 #0b0f15, 0 0 18px rgba(0, 0, 0, 0.5); }
#tn-call { top: 36%; font-size: 30px; letter-spacing: 6px; color: #efe4c8; } #tn-call.big { font-size: 44px; color: #ffd35a; } #tn-sub { top: 58px; font-size: 16px; letter-spacing: 4px; color: #fff; padding: 5px 14px 4px; background: rgba(10, 14, 20, 0.74); box-shadow: inset 0 0 0 2px rgba(242, 177, 74, 0.3); } #tn-sub:empty { padding: 0; box-shadow: none; }
#tn-intro small { display: block; margin-top: 18px; font-family: var(--head); font-size: 11px; letter-spacing: 3px; color: var(--dim); animation: blink 1.4s steps(2) infinite; }
#tn-call.show, #tn-sub.show { opacity: 1; transition: none; }
#tn-hint { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); font-family: var(--body, inherit); font-size: 13px; letter-spacing: 3px; color: #efe4c8; text-shadow: 0 2px 0 #000; white-space: nowrap; }
#tn-energy { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: rgba(13, 18, 25, 0.78); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); padding: 7px 12px; font-size: 11px; letter-spacing: 2px; color: var(--dim); }
#tn-energy .bar { width: 190px; height: 10px; margin: 0; } #tn-energy-fill { height: 100%; width: 0; background: linear-gradient(#ffe9a0, #f2b02c); transition: width 0.15s; }
#tn-energy em { font-style: normal; color: #5d6b80; border: 2px solid #5d6b80; padding: 1px 6px; } #tn-energy.full { color: #ffd35a; box-shadow: 0 0 0 2px #ffd35a, 0 0 18px rgba(255, 211, 90, 0.5); } #tn-energy.full em { color: #0b0f15; background: #ffd35a; border-color: #ffd35a; }
#tn-keys { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
#tn-keys span { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 2px; color: var(--c); background: rgba(13, 18, 25, 0.72); padding: 3px 8px 3px 4px; border-right: 4px solid var(--c); }
#tn-keys b { font-weight: 400; color: #efe4c8; background: #0b0f15; padding: 2px 6px; min-width: 74px; text-align: center; }
/* the show: black bars for the walk-on, a replay and the close-up of a power shot; the card of who plays whom */
#tn-bars i { position: absolute; left: 0; right: 0; height: 0; background: #06080c; transition: height 0.35s ease; } #tn-bars i:first-child { top: 0; } #tn-bars i:last-child { bottom: 0; }
#tn-bars.on i { height: 9vh; }
#tn-warn { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 22vh 2vh rgba(255, 70, 40, 0.55); } #tn-warn.show { animation: tn-warn 0.28s linear infinite alternate; }
@keyframes tn-warn { from { opacity: 0.35; } to { opacity: 1; } }
#tn-rally { position: absolute; right: 18px; top: 62px; font-size: 20px; letter-spacing: 4px; color: #ffd35a; text-shadow: 0 3px 0 #0b0f15; opacity: 0; } #tn-rally.show { opacity: 1; animation: tn-bump 0.28s ease-out; }
@keyframes tn-bump { from { transform: scale(1.45); color: #fff; } to { transform: scale(1); } }
#tn-replay { position: absolute; left: 22px; top: calc(9vh + 14px); font-size: 18px; letter-spacing: 6px; color: #fff; padding: 4px 12px 4px 30px; background: rgba(13, 18, 25, 0.7); opacity: 0; }
#tn-replay::before { content: ''; position: absolute; left: 10px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: #ff4a3a; animation: tn-warn 0.5s steps(1) infinite alternate; } #tn-replay.show { opacity: 1; }
#tn-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); text-align: center; opacity: 0; transition: opacity 0.5s; white-space: nowrap; text-shadow: 0 4px 0 #0b0f15; }
#tn-intro.show { opacity: 1; } #tn-intro h2 { font-size: 40px; letter-spacing: 8px; margin: 0; color: #ffd35a; font-weight: 400; } #tn-intro p { font-family: var(--head); font-size: 14px; letter-spacing: 5px; margin: 6px 0 26px; color: #efe4c8; }
.tn-vs { display: flex; align-items: center; justify-content: center; gap: 34px; } .tn-vs > i { font-style: normal; font-size: 46px; color: #fff; letter-spacing: 4px; }
.tn-side { display: flex; gap: 14px; } #tn-intro.show .tn-side:first-child { animation: tn-in-l 0.6s 0.5s both cubic-bezier(0.2, 1.3, 0.4, 1); } #tn-intro.show .tn-side:last-child { animation: tn-in-r 0.6s 0.5s both cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes tn-in-l { from { transform: translateX(-60vw); } to { transform: none; } } @keyframes tn-in-r { from { transform: translateX(60vw); } to { transform: none; } }
.tn-who { background: rgba(13, 18, 25, 0.88); border: 3px solid #0b0f15; box-shadow: 0 0 0 3px var(--c); padding: 10px 14px 8px; min-width: 150px; text-shadow: none; }
.tn-who .face { width: 96px; height: 96px; margin: 0 auto 6px; background-size: 150% auto; background-position: 50% 4%; background-repeat: no-repeat; image-rendering: pixelated; }
.tn-who b { display: block; font-weight: 400; font-size: 15px; letter-spacing: 2px; color: var(--c); } .tn-who span { font-size: 10px; letter-spacing: 3px; color: #9aa7ba; }

/* ============ the main menu ============ */
/* Everything is sized in --u, one hundredth of the height of the 16:9 picture that fits the window, so it is the same
   composition at every resolution. */
:root { --u: min(1vh, 0.5625vw); --gold: #f2b14a; --ink: #0a0e14; }
#mm-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
/* the light changes with what is under the cursor: night for the undead, a bright day for tennis, gold for the valley.
   Two sheets over the 3D view (outside #menu, so they blend with the picture and not with the interface). */
#mm-mood, #mm-glow { position: fixed; inset: 0; pointer-events: none; display: none; transition: background-color 0.7s ease; }
#mm-mood { background: #fff; mix-blend-mode: multiply; } #mm-glow { background: rgba(0, 0, 0, 0); mix-blend-mode: screen; }
body.home #mm-mood, body.home #mm-glow { display: block; }
body[data-mood=wildcard] #mm-mood { background: #ffd9a6; } body[data-mood=wildcard] #mm-glow { background: rgba(255, 120, 30, 0.1); }
body[data-mood=zombies] #mm-mood { background: #4f6196; } body[data-mood=zombies] #mm-glow { background: rgba(30, 80, 60, 0.14); }
body[data-mood=tennis] #mm-mood { background: #fffdf4; } body[data-mood=tennis] #mm-glow { background: rgba(120, 175, 255, 0.2); }
body[data-mood=training] #mm-mood { background: #cdd9ea; } body[data-mood=training] #mm-glow { background: rgba(120, 150, 190, 0.08); }
body[data-mood=exit] #mm-mood { background: #8a8f9c; }
#mm-fx.on { display: block; }
#menu.home { padding: 0; display: block; background:
  linear-gradient(90deg, rgba(8, 11, 16, 0.86) 0%, rgba(8, 11, 16, 0.6) 22%, rgba(8, 11, 16, 0) 50%),
  linear-gradient(0deg, rgba(8, 11, 16, 0.85) 0%, rgba(8, 11, 16, 0) 30%),
  linear-gradient(180deg, rgba(8, 11, 16, 0.55) 0%, rgba(8, 11, 16, 0) 18%); transition: background 0.6s; }
#menu.home.title { background: linear-gradient(90deg, rgba(8, 11, 16, 0.78) 0%, rgba(8, 11, 16, 0.55) 30%, rgba(8, 11, 16, 0) 58%); }
#s-main { position: absolute; inset: 0; }
#s-main.show { display: block; animation: none; }

/* the logo: in its corner, and (class title) large on the left while the game opens */
#mm-logo { position: absolute; left: calc(var(--u) * 6.5); top: calc(var(--u) * 5); margin: 0; text-align: left; transform-origin: left top; filter: drop-shadow(0 calc(var(--u) * 0.5) 0 rgba(0, 0, 0, 0.6)); transition: transform 0.85s cubic-bezier(0.2, 0.9, 0.15, 1); }
#mm-logo .trees { justify-content: flex-start; height: calc(var(--u) * 5.2); gap: calc(var(--u) * 0.25); margin: 0 0 calc(var(--u) * 0.5) calc(var(--u) * 0.4); }
#mm-logo .trees i { border-left-width: calc(var(--u) * 1.25); border-right-width: calc(var(--u) * 1.25); border-bottom-width: calc(var(--u) * 3.9); transform-origin: bottom; }
#mm-logo .trees i:nth-child(2) { border-left-width: calc(var(--u) * 1.6); border-right-width: calc(var(--u) * 1.6); border-bottom-width: calc(var(--u) * 5.2); }
#mm-logo h1 { font-size: calc(var(--u) * 5.6); letter-spacing: calc(var(--u) * 0.32); text-shadow: 0 calc(var(--u) * 0.35) 0 #a8651c, 0 calc(var(--u) * 0.7) 0 #3b2412; white-space: nowrap; }
#mm-logo h1 .l { display: inline-block; animation: mm-shine 7s linear infinite; animation-delay: calc(var(--i) * 70ms + 2.5s); }
#mm-logo h2 { justify-content: flex-start; font-size: calc(var(--u) * 2); letter-spacing: calc(var(--u) * 1.5); margin-top: calc(var(--u) * 0.9); gap: calc(var(--u) * 1.2); padding-left: 0; }
#mm-logo h2 span { width: calc(var(--u) * 4.2); height: calc(var(--u) * 0.36); transform-origin: left; }
#mm-logo h2 span:last-child { flex: 1; max-width: calc(var(--u) * 13); }
#mm-logo .tagline { display: none; text-align: left; margin: calc(var(--u) * 1.7) 0 0; font-size: calc(var(--u) * 1.02); letter-spacing: calc(var(--u) * 0.36); opacity: 1; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 calc(var(--u) * 1.2) #000; }
@keyframes mm-shine { 0%, 6%, 100% { color: #f2b14a; } 3% { color: #fff6da; } }
#s-main.title #mm-logo { transform: translate(calc(var(--u) * 2), calc(var(--u) * 28)) scale(1.62); transition: none; }
#s-main.title #mm-logo .tagline { display: block; }
#s-main.title:not(.reveal) #mm-logo { opacity: 0; }
#s-main.title.reveal #mm-logo .trees i { animation: mm-grow 0.5s cubic-bezier(0.2, 1.5, 0.3, 1) both; }
#s-main.title.reveal #mm-logo .trees i:nth-child(2) { animation-delay: 0.1s; } #s-main.title.reveal #mm-logo .trees i:nth-child(3) { animation-delay: 0.2s; }
#s-main.title.reveal #mm-logo h1 .l { animation: mm-drop 0.5s cubic-bezier(0.2, 1.35, 0.3, 1) both; animation-delay: calc(var(--i) * 55ms + 0.15s); }
#s-main.title.reveal #mm-logo h2 { animation: mm-spread 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both 0.8s; }
#s-main.title.reveal #mm-logo h2 span { animation: mm-line 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) both 1s; }
#s-main.title.reveal #mm-logo .tagline { animation: mm-fade 0.9s both 1.5s; }
@keyframes mm-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes mm-drop { 0% { opacity: 0; transform: translateY(-140%) scale(1.5); color: #fff6da; } 60% { opacity: 1; color: #fff6da; } 100% { opacity: 1; transform: none; color: #f2b14a; } }
@keyframes mm-spread { from { opacity: 0; letter-spacing: 0; } to { opacity: 1; } }
@keyframes mm-line { from { transform: scaleX(0); } to { transform: none; } }
@keyframes mm-fade { from { opacity: 0; } }

/* who you are, top right */
#mm-player { position: absolute; right: calc(var(--u) * 4.5); top: calc(var(--u) * 4.5); width: calc(var(--u) * 30); text-align: right; }
#mm-player .field { margin: 0; font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.25); text-align: right; color: var(--cream); opacity: 0.9; text-shadow: 0 2px 0 #000; }
#mm-player .field input { text-align: right; font-size: calc(var(--u) * 2.3); padding: calc(var(--u) * 0.9) calc(var(--u) * 1.3); background: rgba(10, 14, 20, 0.72); border: 0; border-right: calc(var(--u) * 0.5) solid var(--gold); box-shadow: none; backdrop-filter: blur(4px); }
#mm-player .field input:focus { box-shadow: inset 0 0 0 2px var(--gold); }
#mm-player .conn { text-align: right; margin-top: calc(var(--u) * 0.8); font-size: calc(var(--u) * 1.15); text-shadow: 0 2px 0 #000; }

/* the list */
#mm-list { position: absolute; left: calc(var(--u) * 5); top: calc(var(--u) * 25.5); display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 0.35); }
.mm { position: relative; isolation: isolate; display: flex; align-items: baseline; gap: calc(var(--u) * 1.3); min-width: calc(var(--u) * 46); padding: calc(var(--u) * 0.75) calc(var(--u) * 4) calc(var(--u) * 0.75) calc(var(--u) * 1.5); background: none; border: 0; color: var(--cream); font-family: var(--head); text-align: left; cursor: pointer; outline: none; }
.mm::before { content: ''; position: absolute; inset: 0 0 0 calc(var(--u) * -6); z-index: -1; background: linear-gradient(90deg, #f6c56a, #f2a13a 70%, #e07f2a); transform: skewX(-16deg) scaleX(0); transform-origin: left; transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.15, 1); box-shadow: calc(var(--u) * 0.9) 0 0 rgba(255, 246, 218, 0.9), calc(var(--u) * 1.5) 0 0 rgba(10, 14, 20, 0.55); }
.mm em { font-style: normal; font-size: calc(var(--u) * 1.35); letter-spacing: calc(var(--u) * 0.15); color: var(--gold); width: calc(var(--u) * 2.6); transition: color 0.15s; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); }
.mm b { font-size: calc(var(--u) * 4.5); font-weight: 700; letter-spacing: calc(var(--u) * 0.3); line-height: 1; text-shadow: 0 calc(var(--u) * 0.4) 0 rgba(0, 0, 0, 0.75); transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.15, 1), color 0.12s, text-shadow 0.12s; }
.mm span { font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.22); color: #3b2412; white-space: nowrap; opacity: 0; transform: translateX(calc(var(--u) * -1.5)); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.9, 0.15, 1); }
.mm.sm { padding-top: calc(var(--u) * 0.55); padding-bottom: calc(var(--u) * 0.55); padding-left: calc(var(--u) * 5.4); }
.mm.sm b { font-size: calc(var(--u) * 2.5); letter-spacing: calc(var(--u) * 0.26); opacity: 0.86; }
.mm.on::before { transform: skewX(-16deg) scaleX(1); }
.mm.on b { color: var(--ink); text-shadow: none; transform: translateX(calc(var(--u) * 1.2)); opacity: 1; }
.mm.on em { color: var(--ink); text-shadow: none; }
.mm.on span { opacity: 0.9; transform: translateX(calc(var(--u) * 1.2)); }
.mm:active b { transform: translateX(calc(var(--u) * 1.9)); }
.mm.go::before { animation: mm-go 0.5s both; }
@keyframes mm-go { 0% { filter: brightness(2.2); transform: skewX(-16deg) scaleX(1); } 100% { filter: none; transform: skewX(-16deg) scaleX(1.25); opacity: 0; } }
.mm-sep { display: block; width: calc(var(--u) * 26); height: calc(var(--u) * 0.3); margin: calc(var(--u) * 1.3) 0 calc(var(--u) * 1.1) calc(var(--u) * 1.5); background: linear-gradient(90deg, var(--gold), rgba(242, 177, 74, 0)); opacity: 0.7; }
#s-main.show:not(.title) .mm, #s-main.show:not(.title) .mm-sep { animation: mm-in 0.55s cubic-bezier(0.2, 0.9, 0.15, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 0.1s); }
@keyframes mm-in { from { opacity: 0; transform: translateX(calc(var(--u) * -9)); } to { opacity: 1; transform: none; } }

/* what the item under the cursor is */
#mm-info { position: absolute; left: 44%; right: calc(var(--u) * 5); bottom: calc(var(--u) * 8.4); text-align: right; pointer-events: none; }
#mm-kicker { display: flex; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 1.2); margin: 0; font-family: var(--head); font-size: calc(var(--u) * 1.45); letter-spacing: calc(var(--u) * 0.5); color: var(--gold); text-shadow: 0 2px 0 #000; }
#mm-kicker::before { content: ''; width: calc(var(--u) * 7); height: calc(var(--u) * 0.3); background: var(--gold); }
#mm-title { margin: calc(var(--u) * 0.4) 0 calc(var(--u) * 0.8); font-family: var(--head); font-weight: 700; font-size: calc(var(--u) * 5.6); letter-spacing: calc(var(--u) * 0.35); line-height: 1; color: #fff8e6; text-shadow: 0 calc(var(--u) * 0.5) 0 rgba(0, 0, 0, 0.75); }
#mm-text { margin: 0 0 calc(var(--u) * 1.3) auto; max-width: calc(var(--u) * 62); font-size: calc(var(--u) * 2.25); line-height: 1.3; color: var(--cream); text-shadow: 0 2px 0 #000, 0 0 calc(var(--u) * 1.5) rgba(0, 0, 0, 0.8); }
#mm-chips { display: flex; justify-content: flex-end; gap: calc(var(--u) * 0.9); }
#mm-chips i { font-style: normal; font-family: var(--head); font-size: calc(var(--u) * 1.25); letter-spacing: calc(var(--u) * 0.22); padding: calc(var(--u) * 0.55) calc(var(--u) * 1.1); background: rgba(10, 14, 20, 0.78); box-shadow: inset 0 0 0 2px rgba(242, 177, 74, 0.55); color: var(--cream); }
#mm-info.swap > * { animation: mm-swap 0.42s cubic-bezier(0.2, 0.9, 0.15, 1) both; }
#mm-info.swap #mm-title { animation-delay: 0.04s; } #mm-info.swap #mm-text { animation-delay: 0.09s; } #mm-info.swap #mm-chips { animation-delay: 0.14s; }
@keyframes mm-swap { from { opacity: 0; transform: translateX(calc(var(--u) * 5)); clip-path: inset(0 0 0 100%); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 -20%); } }

/* rooms that are open on this server */
#mm-rooms { position: absolute; right: calc(var(--u) * 4.5); top: calc(var(--u) * 17); width: calc(var(--u) * 38); }
#mm-rooms:has(#rooms:empty) { display: none; }
#mm-rooms h4 { margin: 0 0 calc(var(--u) * 0.8); font-family: var(--head); font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.4); color: var(--gold); text-align: right; text-shadow: 0 2px 0 #000; }
#mm-rooms h4::before { content: ''; display: inline-block; width: calc(var(--u) * 1); height: calc(var(--u) * 1); margin-right: calc(var(--u) * 0.8); background: #7fd08c; animation: blink 1.1s steps(2) infinite; }
#mm-rooms .btn { font-size: calc(var(--u) * 1.7); padding: calc(var(--u) * 1) calc(var(--u) * 1.4); }

/* the bar at the bottom */
#mm-foot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 5.6); display: flex; align-items: center; gap: calc(var(--u) * 3); padding: 0 calc(var(--u) * 5); background: rgba(8, 11, 16, 0.78); box-shadow: 0 calc(var(--u) * -0.3) 0 rgba(242, 177, 74, 0.4); font-family: var(--head); font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.2); color: var(--dim); }
#mm-news { flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(var(--u) * 1.4); overflow: hidden; white-space: nowrap; }
#mm-news b { flex: none; padding: calc(var(--u) * 0.35) calc(var(--u) * 0.9); background: var(--gold); color: var(--ink); }
#mm-news-text { display: inline-block; color: var(--cream); padding-left: 100%; animation: mm-ticker 38s linear infinite; }
@keyframes mm-ticker { to { transform: translateX(-100%); } }
#mm-news:has(#mm-news-text:empty) { visibility: hidden; }
#mm-keys { flex: none; display: flex; align-items: center; gap: calc(var(--u) * 0.7); }
kbd { font-family: var(--head); font-size: calc(var(--u) * 1.2); padding: calc(var(--u) * 0.3) calc(var(--u) * 0.8); background: #1b2431; box-shadow: inset 0 0 0 2px var(--line), 0 calc(var(--u) * 0.3) 0 #05070a; color: var(--cream); }
#mm-keys kbd:nth-of-type(3) { margin-left: calc(var(--u) * 1.4); }
#mm-ver { flex: none; color: var(--gold); }
#s-main.show:not(.title) #mm-foot { animation: mm-up 0.6s cubic-bezier(0.2, 0.9, 0.15, 1) both 0.25s; }
#s-main.show:not(.title) #mm-info { animation: mm-fade 0.7s both 0.45s; }
#s-main.show:not(.title) #mm-player, #s-main.show:not(.title) #mm-rooms { animation: mm-down 0.6s cubic-bezier(0.2, 0.9, 0.15, 1) both 0.3s; }
@keyframes mm-up { from { transform: translateY(110%); } } @keyframes mm-down { from { opacity: 0; transform: translateY(calc(var(--u) * -6)); } }
#s-main.title #mm-list, #s-main.title #mm-info, #s-main.title #mm-rooms, #s-main.title #mm-foot, #s-main.title #mm-player { visibility: hidden; }

/* ============ the opening ============ */
#intro { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
#intro .lb { position: absolute; left: 0; right: 0; height: 11.5vh; background: #05070a; transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1); }
#intro .lb.t { top: 0; } #intro .lb.b { bottom: 0; }
#intro.done .lb.t { transform: translateY(-101%); } #intro.done .lb.b { transform: translateY(101%); }
#intro-flash { position: absolute; inset: 11.5vh 0; background: #fff3d6; opacity: 0; }
#intro.hit #intro-flash { animation: intro-flash 0.5s ease-out both; }
@keyframes intro-flash { 0% { opacity: 0.6; } 100% { opacity: 0; } }
#intro-place { position: absolute; left: calc(var(--u) * 7); bottom: calc(11.5vh + var(--u) * 4); margin: 0; font-family: var(--head); color: var(--cream); text-shadow: 0 2px 0 #000; opacity: 0; }
#intro-place b { display: block; font-size: calc(var(--u) * 2.6); letter-spacing: calc(var(--u) * 0.6); }
#intro-place span { display: block; margin-top: calc(var(--u) * 0.6); font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.45); color: var(--gold); }
#intro-place::before { content: ''; display: block; width: calc(var(--u) * 9); height: calc(var(--u) * 0.35); margin-bottom: calc(var(--u) * 1.2); background: var(--gold); transform-origin: left; }
#intro.place #intro-place { opacity: 1; animation: intro-place 3s both; }
#intro.place #intro-place::before { animation: mm-line 0.5s both; }
#intro.place #intro-place b { animation: intro-type 0.7s steps(17) both 0.2s; } #intro.place #intro-place span { animation: intro-type 0.8s steps(26) both 0.7s; }
@keyframes intro-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes intro-place { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
#intro-press { position: absolute; left: calc(var(--u) * 8.6); top: calc(var(--u) * 67); margin: 0; font-family: var(--head); font-size: calc(var(--u) * 1.9); letter-spacing: calc(var(--u) * 0.7); color: var(--cream); text-shadow: 0 2px 0 #000; opacity: 0; }
#intro-press::before { content: '▶'; margin-right: calc(var(--u) * 1.4); color: var(--gold); }
#intro.wait #intro-press { animation: intro-press 1.3s ease-in-out infinite; }
@keyframes intro-press { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
#intro-load { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 2); background: #05070a; font-family: var(--head); font-size: calc(var(--u) * 1.5); letter-spacing: calc(var(--u) * 0.8); color: var(--dim); }
#intro.loading #intro-load { display: flex; }
#intro-load .trees i { animation: intro-tree 1.2s ease-in-out infinite; transform-origin: bottom; } #intro-load .trees i:nth-child(2) { animation-delay: 0.15s; } #intro-load .trees i:nth-child(3) { animation-delay: 0.3s; }
@keyframes intro-tree { 0%, 100% { transform: scaleY(0.55); opacity: 0.5; } 50% { transform: none; opacity: 1; } }
#intro.run::after { content: ''; position: absolute; inset: 0; background: #05070a; animation: intro-open 1.5s ease-out both; }
@keyframes intro-open { to { opacity: 0; } }
#intro.off { display: none; }

/* between two screens: three slabs across the picture */
#wipe { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 29; }
#wipe i { position: absolute; top: -20%; bottom: -20%; left: -90vw; width: 46vw; transform: skewX(-18deg); }
#wipe i:nth-child(1) { background: var(--gold); } #wipe i:nth-child(2) { background: #fff3d6; width: 6vw; } #wipe i:nth-child(3) { background: var(--ink); width: 30vw; }
#wipe.run i { animation: wipe 0.6s cubic-bezier(0.65, 0, 0.25, 1) both; }
#wipe.run i:nth-child(2) { animation-delay: 0.05s; } #wipe.run i:nth-child(3) { animation-delay: 0.09s; }
@keyframes wipe { from { translate: 0 0; } to { translate: 260vw 0; } }
/* the panels of the other screens arrive with it */
#menu:not(.ingame) .screen.panel.show { animation: panel-in 0.42s cubic-bezier(0.2, 0.9, 0.15, 1) both 0.12s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(calc(var(--u) * 4)) scale(0.97); } to { opacity: 1; transform: none; } }

/* the lobby and the results stand aside for the people on the square */
#menu.docked { justify-content: flex-start; padding-left: calc(var(--u) * 3.5); background: linear-gradient(90deg, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.5) 46%, rgba(8, 11, 16, 0) 72%), linear-gradient(0deg, rgba(8, 11, 16, 0.5) 0%, rgba(8, 11, 16, 0) 22%); }
#menu.docked .panel.wide { width: min(700px, 49vw); }
#menu.docked #roster .team { min-width: 0; }
@media (max-height: 820px) { #menu.docked .panel.wide { zoom: 0.84; } } @media (max-height: 700px) { #menu.docked .panel.wide { zoom: 0.74; } }
#menu.docked .pickers { grid-template-columns: 1.4fr 1fr; } #menu.docked #host-box { grid-column: 1 / -1; }
#menu.docked #host-box .choices { flex-wrap: wrap; } #menu.docked #host-box .choice { flex: 1 1 30%; white-space: nowrap; }

/* a match begins: the mode, the map, something worth knowing */
#loadcard { position: fixed; inset: 0; z-index: 28; display: none; align-items: center; background: #080b10; overflow: hidden; }
#loadcard.show { display: flex; } #loadcard.out { animation: lc-out 0.45s ease-in both; }
#loadcard > i { position: absolute; top: -20%; bottom: -20%; left: -12vw; width: 84vw; background: linear-gradient(90deg, #f6c56a, #e07f2a); transform: skewX(-18deg); animation: lc-slab 0.5s cubic-bezier(0.2, 0.9, 0.15, 1) both; box-shadow: 3vw 0 0 rgba(255, 243, 214, 0.9), 5vw 0 0 rgba(242, 177, 74, 0.25); }
#loadcard > div { position: relative; margin-left: calc(var(--u) * 9); font-family: var(--head); animation: lc-text 0.5s cubic-bezier(0.2, 0.9, 0.15, 1) both 0.08s; }
#lc-kicker { margin: 0; font-size: calc(var(--u) * 1.7); letter-spacing: calc(var(--u) * 0.7); color: #3b2412; }
#lc-title { margin: calc(var(--u) * 0.6) 0; font-size: calc(var(--u) * 7.6); font-weight: 700; letter-spacing: calc(var(--u) * 0.5); line-height: 1; color: #0a0e14; white-space: nowrap; }
#lc-map { margin: 0; font-size: calc(var(--u) * 2.4); letter-spacing: calc(var(--u) * 0.8); color: #0a0e14; }
#lc-tip { margin: calc(var(--u) * 10) 0 0; max-width: calc(var(--u) * 70); font-family: var(--body); font-size: calc(var(--u) * 2.4); color: #3b2412; }
#lc-tip::before { content: 'TIP'; display: inline-block; margin-right: calc(var(--u) * 1.4); padding: calc(var(--u) * 0.3) calc(var(--u) * 0.9); font-family: var(--head); font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.3); background: #0a0e14; color: var(--gold); vertical-align: middle; }
@keyframes lc-slab { from { transform: translateX(-100vw) skewX(-18deg); } } @keyframes lc-text { from { opacity: 0; transform: translateX(calc(var(--u) * -8)); } }
@keyframes lc-out { to { opacity: 0; transform: scale(1.04); } }

/* the Timberline Cup: three rounds, one above the other */
#menu.docked #s-cup { width: min(620px, 46vw); }
#cup-sub { margin: -4px 0 12px; }
#cup-rounds { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cup-round { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; background: #0e141c; border: 2px solid var(--line); font-family: var(--head); }
.cup-round em { font-style: normal; font-size: 22px; color: var(--dim); text-align: center; }
.cup-round b { display: block; font-size: 17px; letter-spacing: 2px; } .cup-round small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 1.5px; color: var(--dim); }
.cup-round span { font-size: 12px; letter-spacing: 2px; color: var(--dim); }
.cup-round.now { border-color: var(--gold); box-shadow: inset 0 0 0 2px rgba(242, 177, 74, 0.35); } .cup-round.now em, .cup-round.now span { color: var(--gold); }
.cup-round.now::before { content: ''; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 6px; background: var(--gold); animation: blink 1.2s steps(2) infinite; }
.cup-round.won { border-color: #2f6b3a; } .cup-round.won em, .cup-round.won span { color: #7fd08c; }
.cup-round.lost { border-color: #7a3229; } .cup-round.lost em, .cup-round.lost span { color: var(--coral); }
#cup-abil { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: var(--cream); } #cup-abil b { font-family: var(--head); font-size: 12px; letter-spacing: 1.5px; color: var(--gold); }
body[data-mood=cup] #mm-mood { background: #fff6dc; } body[data-mood=cup] #mm-glow { background: rgba(255, 190, 80, 0.14); }

/* ============ settings: a bar of tabs, the options of one tab, and what the option under the cursor is ============ */
#menu.full { padding: 0; display: block; overflow: hidden; background: linear-gradient(180deg, rgba(8, 11, 16, 0.93) 0%, rgba(8, 11, 16, 0.8) 100%); }
#menu.full.ingame { backdrop-filter: blur(5px); }
#s-settings.show { position: absolute; inset: 0; display: flex; flex-direction: column; animation: none; }
#set-head { position: relative; flex: none; display: flex; align-items: center; gap: calc(var(--u) * 4); padding: calc(var(--u) * 3.2) calc(var(--u) * 6) 0; }
#set-head h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: calc(var(--u) * 3.4); letter-spacing: calc(var(--u) * 0.5); color: var(--gold); text-shadow: 0 calc(var(--u) * 0.35) 0 #3b2412; animation: set-drop 0.45s cubic-bezier(0.2, 0.9, 0.15, 1) both; }
#set-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(242, 177, 74, 0), rgba(242, 177, 74, 0.55) 12%, rgba(242, 177, 74, 0.55) 88%, rgba(242, 177, 74, 0)); }
#set-head::before { content: ''; position: absolute; left: 0; bottom: -1px; width: 18%; height: 4px; background: linear-gradient(90deg, rgba(255, 246, 218, 0), #fff6da, rgba(255, 246, 218, 0)); animation: set-scan 4.5s linear infinite; }
@keyframes set-scan { from { transform: translateX(-100%); } to { transform: translateX(660%); } } @keyframes set-drop { from { opacity: 0; transform: translateY(calc(var(--u) * -3)); } }
#set-tabs { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: calc(var(--u) * 0.6); padding-bottom: calc(var(--u) * 1.3); }
#set-tabs kbd { align-self: center; margin: 0 calc(var(--u) * 1.4); }
#set-tabs .tab { position: relative; padding: calc(var(--u) * 1.1) calc(var(--u) * 2.4); background: none; border: 0; font-family: var(--head); font-weight: 700; font-size: calc(var(--u) * 2); letter-spacing: calc(var(--u) * 0.32); color: var(--dim); cursor: pointer; transition: color 0.15s, transform 0.2s cubic-bezier(0.2, 0.9, 0.15, 1); animation: set-drop 0.4s cubic-bezier(0.2, 0.9, 0.15, 1) both; }
#set-tabs .tab:nth-of-type(2) { animation-delay: 0.04s; } #set-tabs .tab:nth-of-type(3) { animation-delay: 0.08s; } #set-tabs .tab:nth-of-type(4) { animation-delay: 0.12s; } #set-tabs .tab:nth-of-type(5) { animation-delay: 0.16s; }
#set-tabs .tab:hover { color: var(--cream); transform: translateY(calc(var(--u) * -0.3)); }
#set-tabs .tab.on { color: #fff8e6; text-shadow: 0 0 calc(var(--u) * 1.6) rgba(242, 177, 74, 0.55); }
#set-ink { position: absolute; bottom: 0; height: calc(var(--u) * 0.55); width: 0; background: linear-gradient(90deg, #f6c56a, #e07f2a); box-shadow: 0 0 calc(var(--u) * 1.4) rgba(242, 177, 74, 0.8); transform: skewX(-16deg); transition: left 0.3s cubic-bezier(0.2, 0.9, 0.15, 1), width 0.3s cubic-bezier(0.2, 0.9, 0.15, 1); }
#set-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: calc(var(--u) * 5); padding: calc(var(--u) * 3) calc(var(--u) * 6) calc(var(--u) * 1.5); }
#settings-body { overflow-y: auto; overflow-x: hidden; padding-right: calc(var(--u) * 1.5); scrollbar-width: thin; scrollbar-color: var(--brass-d) transparent; }
#s-settings .srow { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: calc(var(--u) * 2); min-height: calc(var(--u) * 6.4); padding: calc(var(--u) * 0.6) calc(var(--u) * 2) calc(var(--u) * 0.6) calc(var(--u) * 2.4); margin-bottom: calc(var(--u) * 0.45); border: 0; background: rgba(27, 36, 49, 0.55); font-size: calc(var(--u) * 2.25); color: var(--cream); cursor: default; }
#s-settings .srow::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(242, 177, 74, 0.32), rgba(242, 177, 74, 0.04) 70%); transform: scaleX(0); transform-origin: left; transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.15, 1); }
#s-settings .srow::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--u) * 0.55); background: var(--gold); transform: scaleY(0); transition: transform 0.18s; }
#s-settings .srow.at::before { transform: scaleX(1); } #s-settings .srow.at::after { transform: scaleY(1); }
#s-settings .srow > span { transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.15, 1); } #s-settings .srow.at > span { transform: translateX(calc(var(--u) * 0.8)); color: #fff8e6; }
#settings-body.in-r > * { animation: set-in-r 0.36s cubic-bezier(0.2, 0.9, 0.15, 1) both; animation-delay: calc(var(--i, 0) * 26ms); }
#settings-body.in-l > * { animation: set-in-l 0.36s cubic-bezier(0.2, 0.9, 0.15, 1) both; animation-delay: calc(var(--i, 0) * 26ms); }
@keyframes set-in-r { from { opacity: 0; transform: translateX(calc(var(--u) * 9)); } } @keyframes set-in-l { from { opacity: 0; transform: translateX(calc(var(--u) * -9)); } }
#s-settings .choices.tight { gap: 0; flex-wrap: nowrap; background: #0c1118; box-shadow: inset 0 0 0 2px var(--line); }
#s-settings .choices.tight .choice { flex: 0 0 auto; min-width: calc(var(--u) * 13); padding: calc(var(--u) * 1.15) calc(var(--u) * 1.6); border: 0; background: none; font-size: calc(var(--u) * 1.5); letter-spacing: calc(var(--u) * 0.2); color: var(--dim); text-transform: uppercase; transition: color 0.12s, background 0.12s; }
#s-settings .choices.tight .choice:hover { color: var(--cream); background: rgba(242, 177, 74, 0.12); }
#s-settings .choices.tight .choice.sel { color: var(--ink); background: linear-gradient(90deg, #f6c56a, #f2a13a); box-shadow: none; animation: set-pick 0.25s cubic-bezier(0.2, 1.4, 0.3, 1); }
@keyframes set-pick { from { transform: scale(0.9); filter: brightness(1.8); } }
#s-settings #xhair-pick .choice { min-width: calc(var(--u) * 7); } #s-settings #xhair-pick .choice.sel { background: #17325c; box-shadow: inset 0 0 0 2px var(--blue-l); }
#s-settings #xhair-color .choice { min-width: calc(var(--u) * 5.2); height: calc(var(--u) * 4.2); background: var(--c); } #s-settings #xhair-color .choice.sel { background: var(--c); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #0b0f15; }
#s-settings .rng { display: flex; align-items: center; gap: calc(var(--u) * 1.6); }
#s-settings .rng input[type=range] { width: calc(var(--u) * 34); height: calc(var(--u) * 1.5); border: 0; background: linear-gradient(90deg, #f6c56a var(--p, 50%), #0c1118 var(--p, 50%)); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
#s-settings .rng input[type=range]::-webkit-slider-thumb { width: calc(var(--u) * 1.5); height: calc(var(--u) * 3.6); background: #fff8e6; border: 2px solid #0b0f15; box-shadow: 0 0 calc(var(--u) * 1) rgba(242, 177, 74, 0.7); }
#s-settings .rng output { min-width: calc(var(--u) * 6.5); padding: calc(var(--u) * 0.7) 0; text-align: center; font-family: var(--head); font-size: calc(var(--u) * 1.7); background: #0c1118; box-shadow: inset 0 0 0 2px var(--line); color: var(--gold); }
#s-settings .bindwrap { padding: calc(var(--u) * 1) calc(var(--u) * 1) calc(var(--u) * 3) calc(var(--u) * 2.4); }
#s-settings .bindwrap h5 { font-size: calc(var(--u) * 1.5); letter-spacing: calc(var(--u) * 0.35); margin: calc(var(--u) * 2.2) 0 calc(var(--u) * 0.9); }
#s-settings .binds { grid-template-columns: 1fr calc(var(--u) * 19) calc(var(--u) * 19); gap: calc(var(--u) * 0.6) calc(var(--u) * 1); font-size: calc(var(--u) * 2.1); }
#s-settings .binds .slot { aspect-ratio: auto; font-size: calc(var(--u) * 1.45); min-height: calc(var(--u) * 4.4); padding: calc(var(--u) * 0.9) calc(var(--u) * 0.6); }
#s-settings .note { font-size: calc(var(--u) * 1.7); }
/* the panel on the right */
#set-info { position: relative; align-self: start; padding: calc(var(--u) * 3) calc(var(--u) * 3) calc(var(--u) * 3.4); background: linear-gradient(160deg, rgba(27, 36, 49, 0.82), rgba(14, 20, 28, 0.7)); box-shadow: inset 0 0 0 2px var(--line); }
#set-info::before, #set-info::after { content: ''; position: absolute; width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); border: calc(var(--u) * 0.4) solid var(--gold); }
#set-info::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; } #set-info::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
#set-info-k { margin: 0; font-family: var(--head); font-size: calc(var(--u) * 1.4); letter-spacing: calc(var(--u) * 0.5); color: var(--gold); }
#set-info-t { margin: calc(var(--u) * 0.8) 0 calc(var(--u) * 1.4); font-family: var(--head); font-weight: 700; font-size: calc(var(--u) * 3.2); letter-spacing: calc(var(--u) * 0.25); line-height: 1.12; color: #fff8e6; }
#set-info-d { margin: 0; min-height: calc(var(--u) * 6); font-size: calc(var(--u) * 2.2); line-height: 1.32; color: var(--cream); }
#set-info-def { margin: calc(var(--u) * 2) 0 0; font-family: var(--head); font-size: calc(var(--u) * 1.35); letter-spacing: calc(var(--u) * 0.3); color: var(--dim); } #set-info-def:empty { display: none; }
#set-info.swap > p, #set-info.swap > h4 { animation: mm-swap 0.36s cubic-bezier(0.2, 0.9, 0.15, 1) both; } #set-info.swap > h4 { animation-delay: 0.03s; } #set-info.swap #set-info-d { animation-delay: 0.07s; } #set-info.swap #set-info-def { animation-delay: 0.11s; }
.xprev { margin-top: calc(var(--u) * 2.4); height: calc(var(--u) * 22); display: flex; align-items: center; justify-content: center; background: linear-gradient(#5d7fa8, #c9a57a 58%, #6b6a5a 58%); box-shadow: inset 0 0 0 2px #0b0f15; }
.xprev svg { transform: scale(2.6); image-rendering: pixelated; }
#set-foot { flex: none; display: flex; align-items: center; gap: calc(var(--u) * 3.5); padding: calc(var(--u) * 1.4) calc(var(--u) * 6) calc(var(--u) * 2.2); font-family: var(--head); font-size: calc(var(--u) * 1.3); letter-spacing: calc(var(--u) * 0.2); color: var(--dim); box-shadow: 0 -2px 0 rgba(242, 177, 74, 0.25); }
#set-foot span { display: flex; align-items: center; gap: calc(var(--u) * 0.7); } #set-foot .btn { margin-right: auto; }
@media (max-aspect-ratio: 1/1) { #set-main { grid-template-columns: 1fr; } #set-info { display: none; } #set-tabs kbd { display: none; } #set-tabs { flex-wrap: wrap; } }

/* the room browser */
#menu.docked #s-browse { width: min(860px, 60vw); }
#br-server { margin: -4px 0 10px; letter-spacing: 2px; }
#br-count { font-family: var(--head); font-size: 13px; letter-spacing: 2px; color: var(--gold); margin-right: 8px; }
#br-list { display: flex; flex-direction: column; gap: 6px; min-height: 250px; max-height: 52vh; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--brass-d) transparent; }
.br-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1.3fr 70px 108px 66px; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; background: rgba(14, 20, 28, 0.9); border: 2px solid var(--line); color: var(--cream); font-family: var(--head); text-align: left; cursor: pointer; animation: set-in-r 0.32s cubic-bezier(0.2, 0.9, 0.15, 1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.br-row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(242, 177, 74, 0.34), rgba(242, 177, 74, 0.03) 75%); transform: scaleX(0); transform-origin: left; transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.15, 1); }
.br-row:hover, .br-row:focus-visible { border-color: var(--gold); outline: none; } .br-row:hover::before, .br-row:focus-visible::before { transform: scaleX(1); }
.br-row b { display: block; font-size: 15px; letter-spacing: 1.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .br-row small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 1.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-n { position: relative; font-size: 13px; letter-spacing: 1px; text-align: center; padding-bottom: 7px; } .br-n i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #7fd08c var(--p), #1f2836 var(--p)); }
.br-row em { font-style: normal; font-size: 10px; letter-spacing: 1.5px; color: #7fd08c; text-align: center; } .br-row em.playing { color: var(--gold); } .br-row em.ended { color: var(--dim); }
.br-row u { text-decoration: none; font-size: 13px; letter-spacing: 1.5px; color: var(--blue-l); text-align: right; transition: transform 0.2s; } .br-row:hover u { transform: translateX(4px); color: #fff; }
.br-row.full { opacity: 0.55; cursor: not-allowed; } .br-row.full u { color: var(--coral); } .br-row.full .br-n i { background: var(--coral); }
.br-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; border: 2px dashed var(--line); font-family: var(--head); text-align: center; }
.br-empty b { font-size: 16px; letter-spacing: 3px; color: var(--cream); } .br-empty span { font-family: var(--body); font-size: 15px; color: var(--dim); }


/* ================= Survival (client/js/wild.js) ================= */
#sv { display: none; }
#hud[data-mode=survival] #sv.show { display: block; }
#hud[data-mode=survival] #ammo, #hud[data-mode=survival] #slots, #hud[data-mode=survival] #heals, #hud[data-mode=survival] #abil, #hud[data-mode=survival] .scorebox, #hud[data-mode=survival] #mode-label,
#hud[data-mode=survival] #adsgun, #hud[data-mode=survival] #scope, #hud[data-mode=survival] #reddot, #hud[data-mode=survival] #muzzle, #hud[data-mode=survival] #cast { display: none !important; }
#hud[data-mode=survival] #prompt { top: 68%; }
#hud[data-mode=survival] #viewmodel[data-w=tool] #weapon { image-rendering: pixelated; }
#sv .slot { position: relative; width: 54px; height: 54px; background: rgba(13, 18, 25, 0.78); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; }
#sv .slot img { width: 40px; height: 40px; }
#sv .slot b { position: absolute; right: 3px; bottom: 1px; font-size: 12px; font-weight: 400; color: #fff3c0; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
#sv .slot em { position: absolute; left: 3px; top: 1px; font-size: 9px; font-style: normal; color: var(--dim); }
#sv .slot.on { box-shadow: 0 0 0 2px var(--brass), 0 0 14px rgba(242, 177, 74, 0.45); background: rgba(40, 34, 18, 0.86); transform: translateY(-4px); }
#sv-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; }
#sv-bar .slot { transition: transform 0.08s steps(2); }
#sv-held { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); font-size: 11px; letter-spacing: 3px; color: #ffe9a8; text-shadow: 0 2px 0 #000; white-space: nowrap; }
#sv-hunger { left: 16px; bottom: 76px; padding: 5px 10px; gap: 8px; }
#sv-hunger img { height: 24px; } #sv-hunger .bar { width: 132px; height: 8px; background: #0b0f15; }
#sv-hunger-fill { height: 100%; background: linear-gradient(#f2c06a, #c9812a); transition: width 0.4s; }
#sv-hunger.low #sv-hunger-fill { background: linear-gradient(#ff9a86, #e2402c); } #sv-hunger.low { animation: svpulse 0.9s steps(2) infinite; }
@keyframes svpulse { 50% { box-shadow: 0 0 0 2px #e2402c; } }
#sv-clock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(13, 18, 25, 0.78); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line); padding: 5px 14px 5px 8px; font-size: 13px; letter-spacing: 2px; }
#sv-clock b { color: #ffe9a8; } #sv-clock span { color: var(--cream); min-width: 46px; }
#sv-sun { position: relative; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(#6fb2ff 50%, #1b2431 50%); border: 2px solid #0b0f15; transition: transform 1s linear; }
#sv-sun u { position: absolute; left: 50%; top: -1px; width: 8px; height: 8px; margin-left: -4px; background: #ffd84a; border-radius: 50%; box-shadow: 0 0 6px #ffd84a; }
#sv-clock.night b { color: #9fb8ff; } #sv-clock.night #sv-sun u { background: #dfe8ff; box-shadow: 0 0 6px #dfe8ff; }
#sv-home { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 2px; color: var(--dim); text-shadow: 0 2px 0 #000; }
#sv-home i { display: inline-block; font-style: normal; color: #ffd27a; font-size: 13px; } #sv-home b { font-weight: 400; }
#sv-goal { position: absolute; left: 16px; top: 14px; max-width: 340px; display: flex; gap: 10px; align-items: baseline; background: rgba(13, 18, 25, 0.72); border-left: 4px solid var(--brass); padding: 8px 12px; font-family: var(--body); font-size: 15px; line-height: 1.25; }
#sv-goal em { font-family: var(--head); font-style: normal; font-size: 10px; letter-spacing: 1px; color: var(--brass); white-space: nowrap; }
#sv-goal.done { animation: svdone 0.9s steps(6); }
@keyframes svdone { 0% { background: rgba(242, 177, 74, 0.9); transform: translateX(-10px); } 100% { background: rgba(13, 18, 25, 0.72); transform: none; } }
#sv-got { position: absolute; right: 16px; top: 38%; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
#sv-got div { display: flex; align-items: center; gap: 8px; background: rgba(13, 18, 25, 0.72); padding: 3px 10px 3px 4px; font-size: 11px; letter-spacing: 2px; animation: svgot 0.2s steps(3); }
#sv-got img { width: 26px; height: 26px; } #sv-got b { color: #9fe08a; }
@keyframes svgot { from { transform: translateX(20px); opacity: 0; } }
#sv-target { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 3px; text-shadow: 0 2px 0 #000; }
#sv-target.show { display: flex; } #sv-target .bar { width: 120px; height: 6px; background: rgba(11, 15, 21, 0.85); box-shadow: 0 0 0 2px #0b0f15; }
#sv-target .bar div { height: 100%; background: linear-gradient(#f2c06a, #c9812a); } #sv-target i { font-style: normal; font-size: 9px; color: #ff9a86; }
#sv-build { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; }
#sv-build.show { display: flex; } #sv-build .row { display: flex; gap: 4px; }
#sv-build .slot { width: 44px; height: 44px; } #sv-build .slot img { width: 34px; height: 34px; } #sv-build .slot.poor img { opacity: 0.35; filter: grayscale(1); }
#sv-build p { margin: 0; display: flex; align-items: center; gap: 12px; background: rgba(13, 18, 25, 0.82); padding: 4px 12px; font-size: 11px; letter-spacing: 2px; white-space: nowrap; }
#sv-build p b { color: #ffe9a8; } #sv-build p span { display: inline-flex; align-items: center; gap: 3px; } #sv-build p span img { width: 20px; height: 20px; } #sv-build p i { font-style: normal; font-size: 9px; color: var(--dim); letter-spacing: 1px; }
#sv .lack { color: #ff9a86; }
#sv-keys { position: absolute; right: 16px; bottom: 18px; font-size: 9px; letter-spacing: 2px; color: var(--dim); text-shadow: 0 2px 0 #000; }
#sv-keys kbd { font: inherit; color: var(--cream); background: rgba(13, 18, 25, 0.8); border: 2px solid #0b0f15; box-shadow: 0 0 0 1px var(--line); padding: 2px 6px; margin-left: 10px; }
#sv-panel { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 18px; padding: 4vh 3vw; background: rgba(8, 11, 17, 0.7); backdrop-filter: blur(3px); pointer-events: auto; }
#sv-panel.show { display: flex; animation: pop 0.14s steps(4); }
#sv-panel .col { background: linear-gradient(#18212e, var(--navy)); border: 3px solid #0b0f15; box-shadow: 0 0 0 2px var(--line), 0 12px 0 rgba(0, 0, 0, 0.35); padding: 14px 16px 16px; max-height: 88vh; display: flex; flex-direction: column; }
#sv-panel h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 4px; color: var(--brass); }
#sv-panel .grid { display: grid; grid-template-columns: repeat(8, 54px); gap: 6px; } #sv-panel .grid.four { grid-template-columns: repeat(4, 54px); }
#sv-panel .slot { cursor: pointer; } #sv-panel .slot:hover { box-shadow: 0 0 0 2px var(--cream); } #sv-panel .slot.bar { background: rgba(40, 34, 18, 0.7); } #sv-panel .slot.on { transform: none; }
#sv-panel .info { margin-top: 12px; min-height: 44px; display: flex; align-items: center; gap: 12px; font-family: var(--body); font-size: 15px; color: var(--dim); max-width: 474px; }
#sv-panel .info b { font-family: var(--head); font-size: 12px; letter-spacing: 2px; color: var(--cream); white-space: nowrap; } #sv-panel .info span { flex: 1; }
#sv-panel button { font-family: var(--head); font-size: 10px; letter-spacing: 2px; background: #233043; border: 2px solid #0b0f15; box-shadow: 0 0 0 1px var(--line); color: var(--cream); padding: 5px 10px; } #sv-panel button:hover { background: var(--brass-d); }
#sv-panel .note { margin: 10px 0 0; font-size: 13px; }
#sv-panel .make { width: 380px; } #sv-panel .list { overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
#sv-panel .rec { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: rgba(13, 18, 25, 0.6); border: 2px solid #0b0f15; cursor: pointer; }
#sv-panel .rec:hover { border-color: var(--brass); background: rgba(40, 34, 18, 0.8); } #sv-panel .rec.no { opacity: 0.5; }
#sv-panel .rec > img { width: 36px; height: 36px; } #sv-panel .rec > div { flex: 1; } #sv-panel .rec b { font-size: 11px; letter-spacing: 2px; font-weight: 400; color: var(--cream); }
#sv-panel .rec p { margin: 2px 0 0; display: flex; gap: 10px; font-size: 10px; letter-spacing: 1px; color: #9fe08a; } #sv-panel .rec p span { display: inline-flex; align-items: center; gap: 3px; } #sv-panel .rec p img { width: 18px; height: 18px; }
#sv-panel .rec em { font-style: normal; font-size: 8px; letter-spacing: 1px; color: var(--dim); text-align: right; }
#sv-map { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(8, 11, 17, 0.78); backdrop-filter: blur(3px); pointer-events: auto; }
#sv-map.show { display: flex; animation: pop 0.14s steps(4); }
#sv-map .frame { position: relative; width: min(82vh, 82vw); height: min(82vh, 82vw); border: 4px solid #0b0f15; box-shadow: 0 0 0 2px var(--brass), 0 14px 0 rgba(0, 0, 0, 0.4); background: #1c3a5c; }
#sv-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; } #sv-map-marks { image-rendering: auto; }
#sv-map p { margin: 0; font-size: 10px; letter-spacing: 3px; color: var(--cream); }
/* the worlds screen */
.wl-row { display: flex; gap: 14px; } .wl-row .field { flex: 1; } .wl-row small { font-size: 8px; color: var(--dim); letter-spacing: 1px; }
#world-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 150px; overflow-y: auto; }
#world-list button { font-family: var(--head); font-size: 11px; letter-spacing: 2px; background: rgba(13, 18, 25, 0.7); border: 2px solid #0b0f15; box-shadow: 0 0 0 1px var(--line); color: var(--cream); padding: 7px 12px; text-align: left; }
#world-list button small { display: block; font-size: 8px; color: var(--dim); margin-top: 3px; letter-spacing: 1px; } #world-list button:hover, #world-list button.sel { box-shadow: 0 0 0 2px var(--brass); }
#world-list p { margin: 0; font-size: 14px; color: var(--dim); }
#world-credit { font-size: 11px; opacity: 0.7; margin: 8px 0 0; }
