:root { --acc: #7fffd4; --red: #ff6b5b; --blue: #5b9dff; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff; font-family: system-ui, "Segoe UI", sans-serif; }
/* no text selection anywhere (a game, not a document) - except where you type */
body { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; }
canvas { display: block; }
.red { color: var(--red); } .blue { color: var(--blue); }
#hud { position: fixed; inset: 0; pointer-events: none; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
/* HUD size (menu): every panel scales; crosshair, hitmarker, scope and the full-screen overlays stay as they are */
#aimname, #killban, #score, #minimap, #feed, #msgs, #chat, #carry, #prot, #spec, #actbar, #center, #teamtag, #vitals, #slots, #ammo, #board { zoom: var(--hud-scale, 1); }
/* crosshair: look comes from --ch-* on :root (crosshair editor), the in-game gap from --gap (dynamic) */
:root { --ch-col: #7fffd4; --ch-len: 9px; --ch-th: 2px; --ch-gap: 5px; --ch-ol: 1px; --ch-a: 1; }
.xhair { position: absolute; left: 50%; top: 50%; opacity: var(--ch-a); }
.xhair i { position: absolute; background: var(--ch-col); box-shadow: 0 0 0 var(--ch-ol) rgba(0,0,0,.7); }
.xhair i:nth-child(1) { width: var(--ch-th); height: var(--ch-len); left: calc(var(--ch-th) / -2); bottom: var(--gap, var(--ch-gap)); }
.xhair i:nth-child(2) { width: var(--ch-th); height: var(--ch-len); left: calc(var(--ch-th) / -2); top: var(--gap, var(--ch-gap)); }
.xhair i:nth-child(3) { width: var(--ch-len); height: var(--ch-th); top: calc(var(--ch-th) / -2); left: var(--gap, var(--ch-gap)); }
.xhair i:nth-child(4) { width: var(--ch-len); height: var(--ch-th); top: calc(var(--ch-th) / -2); right: var(--gap, var(--ch-gap)); }
.xhair i:nth-child(5) { display: none; width: var(--ch-th); height: var(--ch-th); left: calc(var(--ch-th) / -2); top: calc(var(--ch-th) / -2); }
:root[data-chdot] .xhair i:nth-child(5) { display: block; }
#scope { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .1s, visibility .1s; background: radial-gradient(circle 44vh at center, transparent 99.5%, #000 100%); }
#scope.on { opacity: 1; visibility: visible; }
#scope::before, #scope::after { content: ''; position: absolute; background: #000; }
#scope::before { left: 0; right: 0; top: 50%; height: 1px; } #scope::after { top: 0; bottom: 0; left: 50%; width: 1px; }
#cross[hidden] { display: none; }
#hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; --c: #fff; }
#hitmarker i { position: absolute; width: 2px; height: 11px; left: -1px; top: -5.5px; background: var(--c); box-shadow: 0 0 1px rgba(0,0,0,.8); }
#hitmarker i:nth-child(1) { transform: rotate(45deg) translateY(-17px); } #hitmarker i:nth-child(2) { transform: rotate(135deg) translateY(-17px); }
#hitmarker i:nth-child(3) { transform: rotate(225deg) translateY(-17px); } #hitmarker i:nth-child(4) { transform: rotate(315deg) translateY(-17px); }
#aimname { position: absolute; left: 50%; top: calc(50% + 40px); transform: translateX(-50%); font-weight: 600; }
.panel { position: absolute; background: rgba(8, 12, 18, .55); border-left: 3px solid var(--acc); padding: 6px 14px; font-weight: 800; font-size: 30px; }
.panel small { font-size: 13px; font-weight: 600; opacity: .7; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
#minimap { position: absolute; left: 16px; top: 14px; width: 200px; height: 200px; border: 1px solid var(--team, rgba(127, 255, 212, .35)); }
/* own team colour on the HUD */
body[data-team=red] { --team: var(--red); } body[data-team=blue] { --team: var(--blue); }
body[data-team] .panel { border-left-color: var(--team); }
#teamtag { position: absolute; left: 20px; bottom: 74px; padding: 3px 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #fff; background: var(--team); border-radius: 2px; text-shadow: none; }
#teamtag:empty { display: none; }
#vitals { left: 20px; bottom: 20px; } #vitals b + small { margin-left: 18px; }
#ammo { right: 20px; bottom: 20px; text-align: right; } #ammo .res { font-size: 20px; opacity: .7; }
/* score: the colon always sits at the screen centre (two equal halves), map and timer below */
#score { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 4px 18px 6px;
  background: rgba(8, 12, 18, .6); border-radius: 8px; border-top: 2px solid var(--team, var(--acc)); }
#score .srow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 32px; font-weight: 900; line-height: 1.1; }
#score .side { display: flex; align-items: center; gap: 8px; } #score .side.red { justify-content: flex-end; }
#score .colon { opacity: .6; }
/* player heads left (red) and right (blue) of the score, nearest first; the dead greyed out and crossed */
#score .heads { position: absolute; top: 4px; display: flex; gap: 5px; }
#score .heads.red { right: calc(100% + 10px); flex-direction: row-reverse; } #score .heads.blue { left: calc(100% + 10px); }
.hd { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 34px; }
.hd .face, .hd small { transition: opacity .3s, filter .3s; }
.hd .face { position: relative; width: 24px; height: 26px; background: var(--skin); border-radius: 3px; border-bottom: 4px solid var(--tc); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hd .face::before { content: ''; position: absolute; left: 3px; right: 3px; top: 9px; height: 5px; background: #a8f4ff; border-radius: 1px; }
.hd small { max-width: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; opacity: .85; }
.hd.me small { color: var(--acc); }
.heads.red .hd { --tc: var(--red); } .heads.blue .hd { --tc: var(--blue); }
.hd { position: relative; }
.hd.dead .face { filter: grayscale(1) brightness(.5); opacity: .7; }
.hd.dead small { opacity: .45; text-decoration: line-through; }
.hd.dead::after { content: '✕'; position: absolute; top: 0; left: 0; right: 0; height: 30px; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #ff5147; -webkit-text-stroke: 1px #000; text-shadow: 0 0 4px #000; }
#timer { font-size: 12px; font-weight: 700; opacity: .8; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.flag { font-size: 20px; padding: 2px 6px; border-radius: 3px; }
.flag.carried { animation: blink .5s steps(2) infinite; background: rgba(255,255,255,.2); }
.flag.dropped { opacity: .45; }
@keyframes blink { 50% { opacity: .2; } }
#feed { position: absolute; right: 16px; top: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 15px; font-weight: 600; }
#feed div { background: rgba(8,12,18,.55); padding: 3px 10px; }
#feed .w { opacity: .8; margin: 0 8px; font-weight: 400; }
#feed .me { color: #fff; font-weight: 800; }
#feed .mine { box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
#msgs { position: absolute; left: 50%; top: 19%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 22px; font-weight: 700; }
#msgs div { padding: 4px 14px; border-radius: 6px; background: rgba(8, 12, 18, .5); }
/* chat (Y / U): bottom left above the team tag; lines fade out, the open chat shows the history */
#chat { position: absolute; left: 20px; bottom: 112px; width: min(440px, 40vw); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
#chatlog { display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow: hidden; justify-content: flex-end; }
#chatlog div { padding: 2px 8px; background: rgba(8, 12, 18, .45); border-radius: 3px; overflow-wrap: anywhere; transition: opacity .6s; }
#chatlog div.old { opacity: 0; }
#chat.open #chatlog div { opacity: 1; }
#chatlog b { margin-right: 6px; font-weight: 800; } #chatlog b.red { color: var(--red); } #chatlog b.blue { color: var(--blue); }
#chatlog b::after { content: ':'; color: #fff; }
#chatlog i { margin-right: 6px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .7; }
#chatbar { display: none; align-items: center; gap: 8px; padding: 5px 8px; background: rgba(8, 12, 18, .78); border-radius: 4px; border-left: 3px solid var(--acc); }
#chat.open #chatbar { display: flex; }
#chatto { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); white-space: nowrap; }
#chatto.team { color: var(--team, var(--acc)); }
#chatin { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; text-shadow: none; pointer-events: auto; }
#carry { position: absolute; left: 50%; bottom: 236px; transform: translateX(-50%); white-space: nowrap; font-weight: 700; color: #ffd27a; font-size: 18px; }
#spec { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); white-space: pre; text-align: center; line-height: 1.5; padding: 5px 14px; border-radius: 6px; background: rgba(8, 12, 18, .55); font-size: 14px; font-weight: 600; opacity: .85; }
#spec:empty { display: none; }
#prot { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); white-space: nowrap; font-weight: 700; color: #bff8ff; font-size: 16px; }
.dmgnum { position: absolute; left: 50%; top: 50%; font-weight: 800; font-size: 17px; color: #fff; pointer-events: none; text-shadow: 0 1px 3px #000; animation: dmgfloat .8s ease-out forwards; }
.dmgnum.hs { color: #ffd23a; font-size: 21px; }
@keyframes dmgfloat { from { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.2); } to { opacity: 0; transform: translate(var(--x), calc(var(--y) - 40px)) scale(.9); } }
#killban { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; }
#killban .kname { font-size: 26px; font-weight: 900; color: #ff5b4f; letter-spacing: .04em; }
#killban .ktags { font-size: 14px; font-weight: 800; color: #ffd23a; letter-spacing: .15em; margin-top: 2px; }
#actbar { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); width: 220px; height: 8px; background: rgba(8,12,18,.6); border: 1px solid #ffd23a; }
#actbar > div { height: 100%; width: 0; background: #ffd23a; }
#actlabel { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: #ffd23a; }
#center { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font-size: 34px; font-weight: 800; text-align: center; }
.hitdir { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; border: 7px solid transparent; border-top-color: rgba(255, 40, 40, .9); filter: drop-shadow(0 0 4px rgba(255, 0, 0, .8)); pointer-events: none; }
#lowhp { position: absolute; inset: 0; background: radial-gradient(transparent 55%, rgba(170, 0, 0, .5)); opacity: 0; pointer-events: none; }
#lowhp.on { animation: lowhp 1.1s ease-in-out infinite; }
@keyframes lowhp { 50% { opacity: 1; } }
#flash { position: absolute; inset: 0; background: radial-gradient(transparent 40%, rgba(200, 0, 0, .55)); opacity: 0; transition: opacity .35s; }
#blind { position: absolute; inset: 0; background: #fff; opacity: 0; }
#smokeov { position: absolute; inset: 0; background: #a9adb3; opacity: 0; }
#slots[hidden] { display: none; }
#slots { position: absolute; right: 20px; bottom: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
#slots .s { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 9px; background: rgba(8, 12, 18, .42); border-right: 3px solid transparent;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; transition: transform .15s, opacity .15s, background .15s; }
#slots .s b { font-size: 11px; min-width: 16px; padding: 1px 0; text-align: center; border: 1px solid currentColor; border-radius: 3px; opacity: .7; }
#slots .s.on { opacity: 1; background: rgba(8, 12, 18, .72); border-right-color: var(--team, var(--acc)); transform: translateX(-8px); }
#slots .s.off { opacity: .28; }
#slots i { font-style: normal; opacity: .55; } #slots i + i::before { content: '·'; margin: 0 6px; opacity: .5; }
#slots .s.on i.sel { opacity: 1; color: var(--team, var(--acc)); }
/* grenade colour chips, like the models: flash white with a blue band, smoke grey with a yellow band, HE round olive */
#slots .s b.nd { display: inline-block; width: 9px; height: 11px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; border: 0; min-width: 0; padding: 0; opacity: 1; }
#slots .s b.nd.flash { background: linear-gradient(#e4e7ea 55%, #2f6fdc 55% 75%, #e4e7ea 75%); }
#slots .s b.nd.smoke { width: 11px; background: linear-gradient(#6b7279 25%, #f2c230 25% 45%, #6b7279 45%); }
#slots .s b.nd.he { width: 11px; border-radius: 50%; background: #4d5d2c; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35); }
#slots .s b.nd.molotov { width: 8px; border-radius: 3px 3px 2px 2px; background: linear-gradient(#ffa040 20%, #d9cfb4 20% 35%, #2f6a34 35%); }
#slots .s b.nd.bomb { width: 12px; background: #3f4a2e; box-shadow: inset 0 0 0 1px #ff2a2a; }
#slots .hint { margin-bottom: 4px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: #111; background: var(--acc); border-radius: 2px; }
/* scoreboard: Tab, or on its own while waiting for the respawn (.dead) */
#board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; flex-direction: column; width: min(760px, 94vw);
  background: linear-gradient(180deg, rgba(16, 22, 32, .93), rgba(6, 9, 14, .93)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); overflow: hidden; text-shadow: none; }
#board.show, #board.dead { display: flex; }
#bhead { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
#bhead b { font-size: 20px; letter-spacing: .14em; color: #fff; }
#bteams { display: flex; gap: 14px; padding: 14px; }
.bteam { --c: var(--red); color: #e8edf3; flex: 1; min-width: 0; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.bteam.blue { --c: var(--blue); }
.btbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 3px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), transparent 85%); }
.btbar .score { min-width: 1.1em; font-size: 42px; font-weight: 900; line-height: 1; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.btbar .tname { font-size: 18px; font-weight: 800; }
.btbar .tsub { font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.bteam table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bteam th { padding: 9px 10px 5px; text-align: right; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.bteam td { padding: 6px 10px; text-align: right; font-weight: 600; }
.bteam th:first-child, .bteam td:first-child { text-align: left; }
.bteam td.name { color: var(--c); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bteam td.name::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.bteam td.kd { color: rgba(255, 255, 255, .6); }
.bteam tbody tr:nth-child(even) { background: rgba(255, 255, 255, .035); }
.bteam tr.me { background: color-mix(in srgb, var(--acc) 15%, transparent) !important; box-shadow: inset 3px 0 var(--acc); }
.bteam tr.me td.name { color: var(--acc); }
.bteam tr.dead td { color: rgba(255, 255, 255, .38); }
.bteam tr.dead td.name::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.bteam td.empty { padding: 14px; text-align: center; font-style: italic; font-weight: 400; color: rgba(255, 255, 255, .35); }
#bfoot { padding: 11px; border-top: 1px solid rgba(255, 90, 80, .25); background: rgba(255, 70, 60, .12); text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .06em; color: #ffb9b0; }
#bfoot:empty { display: none; }
/* menu: brand (3D logo), join card, settings and controls cards */
#menu { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 14px; overflow-y: auto; padding: 20px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(30, 60, 70, .55), transparent 60%), rgba(5, 8, 12, .84); backdrop-filter: blur(3px); }
#menu > * { flex-shrink: 0; } /* a long panel scrolls the menu instead of squeezing the cards onto each other */
#menu[hidden], #menu [hidden] { display: none !important; } /* the cards' display: flex must not undo hidden */
#menu .brand { display: flex; flex-direction: column; align-items: center; }
#title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; } /* the 3D logo shows it */
#title.fallback { position: static; width: auto; height: auto; clip-path: none; font-size: 64px; letter-spacing: .25em; font-weight: 900; color: var(--acc); }
#logo { width: min(620px, 92vw); aspect-ratio: 620 / 150; display: block; animation: logoglow 2.6s ease-in-out infinite alternate; }
@keyframes logoglow { /* the letters glow from within (bright materials) and shine out into the menu */
  from { filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 255, 255, .35)) drop-shadow(0 0 22px rgba(127, 255, 212, .35)); }
  to { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, .55)) drop-shadow(0 0 40px rgba(127, 255, 212, .6)); } }
#menu .sub { margin: 0; opacity: .6; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
#menu .card { width: min(380px, 100%); box-sizing: border-box; padding: 16px 18px; border-radius: 10px; background: rgba(16, 22, 32, .78);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 10px; }
#menu h2 { margin: 0 0 2px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
#menu .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
#menu .field .val { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; }
#menu input:not([type=checkbox]):not([type=range]):not([type=color]), #menu select { width: 170px; box-sizing: border-box; padding: 7px 10px; font-size: 15px; color: #fff;
  background: #0d141c; border: 1px solid #2a3a46; border-radius: 6px; }
#menu input:focus, #menu select:focus { border-color: var(--acc); outline: none; }
#menu input[type=range] { width: 170px; accent-color: var(--acc); }
#menu input[type=color] { width: 54px; height: 30px; padding: 0 2px; background: #0d141c; border: 1px solid #2a3a46; border-radius: 6px; }
/* toggle switch from a plain checkbox (no pseudo-elements: works everywhere) */
#menu input.switch { appearance: none; width: 42px; height: 24px; margin: 0; flex: none; border-radius: 12px; cursor: pointer; transition: background .15s;
  background: radial-gradient(circle at 12px 50%, #cfd8e0 8px, transparent 9px), #2a3a46; }
#menu input.switch:checked { background: radial-gradient(circle at 30px 50%, #062 8px, transparent 9px), var(--acc); }
#menu button { padding: 10px 20px; font-size: 15px; font-weight: 800; letter-spacing: .1em; border: 0; border-radius: 8px; cursor: pointer; background: var(--acc); color: #04261c; }
#menu button:hover { filter: brightness(1.08); }
#modelink { display: block; text-align: center; color: var(--acc); font-size: 14px; margin-top: 8px; text-decoration: none; }
#modelink:hover { text-decoration: underline; }
#menu #play { padding: 14px; font-size: 20px; letter-spacing: .2em; box-shadow: 0 6px 24px color-mix(in srgb, var(--acc) 35%, transparent); }
#menu button:focus-visible, #menu input:focus-visible, #menu summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#status { margin: 0; text-align: center; font-size: 13px; opacity: .7; }
#menu .hint.warn { color: #ffd23a; opacity: 1; }
#menu .hint { margin: 0; text-align: center; font-size: 12px; opacity: .45; }
#menu summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
#menu summary::before { content: '▸'; color: var(--acc); transition: transform .15s; }
#menu details[open] > summary::before { transform: rotate(90deg); }
#menu details .rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#menu #login button { align-self: flex-end; padding: 7px 16px; font-size: 13px; background: #ffd23a; color: #3a2a00; }
#login-msg { margin: 0; font-size: 13px; color: #ff8a7a; } #login-msg:empty { display: none; }
#menu #adm-go { align-self: flex-end; padding: 7px 16px; font-size: 13px; background: #ffd23a; color: #3a2a00; }
#menu #xh-reset { align-self: flex-end; padding: 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0; background: transparent; color: var(--acc); border: 1px solid var(--acc); }
#xh-preview { position: relative; height: 90px; border-radius: 6px; border: 1px solid #2a3a46; background: linear-gradient(135deg, #5b6a72, #9fb0b8 55%, #6f6150); }
.help { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 13px; }
.help kbd { justify-self: end; padding: 2px 7px; border-radius: 5px; font: 700 11px system-ui, sans-serif; color: var(--acc); background: #0d141c; border: 1px solid #2a3a46; border-bottom-width: 2px; white-space: nowrap; }
.help span { opacity: .8; }
#menu .goal { margin: 4px 0 0; font-size: 12px; line-height: 1.5; opacity: .7; } #menu .goal b { color: var(--acc); }
/* map vote: above the menu (which shows while the mouse is free), a button per map with its votes */
#vote { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(720px, 94vw); box-sizing: border-box; padding: 14px;
  background: linear-gradient(180deg, rgba(16, 22, 32, .96), rgba(6, 9, 14, .96)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6); color: #e8edf3; }
#vote[hidden] { display: none; }
#vote header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
#vote header b { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
#vote-left { font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
#vote-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
#vote-maps button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; font: inherit; font-size: 14px; text-align: left;
  color: inherit; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; cursor: pointer; }
#vote-maps button:hover { background: rgba(255, 255, 255, .12); }
#vote-maps button.mine { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 22%, transparent); }
#vote-maps button b { min-width: 1.2em; font-size: 18px; color: var(--acc); text-align: right; }
#vote footer { margin-top: 10px; font-size: 12px; opacity: .6; }
#vote small { font-size: 13px; letter-spacing: 0; text-transform: none; opacity: .7; }
/* a vote from the chat while playing: just a bar at the top (the crosshair stays free); Esc opens the menu with the full list */
body.locked #vote.chat { top: 96px; transform: translateX(-50%); width: auto; padding: 8px 14px; }
body.locked #vote.chat header { margin: 0; gap: 16px; }
body.locked #vote.chat header b { font-size: 15px; }
body.locked #vote.chat #vote-maps, body.locked #vote.chat footer { display: none; }
/* start screen: primary weapon cards in the join card, classic buttons flipping it to the settings / controls / changelog / admin pages */
/* the start card has a back: the buttons below flip it over to their page (Einstellungen, Steuerung, ...) */
.flip { width: min(660px, 100%); perspective: 1600px; }
.flipper { display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .1, .2, 1); }
.flip.flipped .flipper { transform: rotateY(180deg); }
#menu .flipper > .face { grid-area: 1 / 1; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: rgba(13, 18, 26, .97); } /* nearly solid: readable over the game */
.flipper > .back { transform: rotateY(180deg); }
#menu #back-btn { align-self: flex-start; padding: 6px 14px; font-size: 13px; letter-spacing: .05em; color: var(--acc); background: transparent; border: 1px solid var(--acc); }
.page { display: flex; flex-direction: column; gap: 10px; }
#menu .namefield { display: flex; flex-direction: column; gap: 6px; }
#menu .namefield span { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
#menu #name { width: 100%; padding: 12px 16px; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
#wpreview { display: block; width: 100%; height: 120px; margin: -4px 0; }
#primaries { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
#menu button.wcard { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 9px; text-align: left; font-weight: 600; letter-spacing: 0;
  color: #e8edf3; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; }
#menu button.wcard:hover { background: rgba(255, 255, 255, .09); }
#menu button.wcard.sel { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 18%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.wcard strong { font-size: 15px; }
.wcard small { min-height: 2.6em; font-size: 11px; font-weight: 400; line-height: 1.3; opacity: .65; }
.wcard i { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px; font-size: 9.5px; font-style: normal; opacity: .8; }
.wcard i b { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) calc(var(--v) * 100%), rgba(255, 255, 255, .12) 0); }
.mbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#menu .mbtns button { min-width: 160px; color: #e8edf3; background: rgba(16, 22, 32, .78); border: 1px solid rgba(255, 255, 255, .14); }
#menu .mbtns button:hover, #menu .mbtns button.on { color: var(--acc); border-color: var(--acc); }
#menu .mbtns #adm-btn { color: #ffd23a; } #menu .mbtns #adm-btn.on { border-color: #ffd23a; }
#p-admin h2 { color: #ffd23a; }
#menu .page .rows { display: flex; flex-direction: column; gap: 10px; }
#menu h2.sub2 { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
#changelog { max-height: 50vh; overflow-y: auto; }
#changelog h3 { margin: 12px 0 4px; font-size: 13px; color: var(--acc); }
#changelog h3 code { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .45); }
#changelog ul { margin: 0; padding-left: 18px; font-size: 14px; font-weight: 400; line-height: 1.5; }
