/* Azzy Zone: Paintball Pop! Arena — bright, friendly, readable. */
@font-face { font-family: "Fredoka"; src: url("/vendor/fonts/fredoka/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/vendor/fonts/nunito/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1d2340; --ink2: #4a5275; --paper: #ffffff; --line: rgba(29, 35, 64, .14);
  --blue: #2f8fff; --orange: #ff7a1a; --pink: #ff5fae; --mint: #2fd6a0; --grape: #8a5cff; --red: #ff4d5e;
  --go1: #ffd23d; --go2: #ff9f1a; --radius: 20px; --shadow: 0 10px 30px rgba(20, 30, 70, .22);
  --display: "Fredoka", "Nunito", system-ui, sans-serif; --ui: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fcaf5; color: var(--ink); font-family: var(--ui); font-size: 17px; }
body { -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: .01em; }
h2 { font-size: 30px; }
h3 { font-size: 20px; margin: 18px 0 8px; }
p { line-height: 1.5; }
kbd { font-family: var(--ui); font-weight: 800; font-size: 13px; background: #eef2fb; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; padding: 1px 7px; margin: 0 2px; color: var(--ink); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 16px;
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .03em; cursor: pointer; transition: transform .08s, filter .15s, box-shadow .08s; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.btn:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(3px); }
.btn-play { font-size: 46px; min-height: 96px; min-width: min(420px, 82vw); padding: 12px 44px; color: var(--ink); border-radius: 28px;
  background: linear-gradient(180deg, var(--go1), var(--go2)); box-shadow: 0 8px 0 #c26a00, 0 16px 34px rgba(80, 40, 0, .35); letter-spacing: .06em; }
.btn-play svg { width: 40px; height: 40px; stroke: none; fill: var(--ink); }
.btn-play:not(:disabled):active { box-shadow: 0 3px 0 #c26a00, 0 8px 20px rgba(80, 40, 0, .3); }
.btn-go { color: var(--ink); background: linear-gradient(180deg, var(--go1), var(--go2)); box-shadow: 0 5px 0 #c26a00; }
.btn-go:not(:disabled):active { box-shadow: 0 2px 0 #c26a00; }
.btn-go.is-on { background: linear-gradient(180deg, #7ff0c4, var(--mint)); box-shadow: 0 5px 0 #149a70; }
.btn-soft { color: var(--ink); background: var(--paper); box-shadow: 0 4px 0 rgba(29, 35, 64, .18), inset 0 0 0 2px var(--line); }
.btn-soft.is-on { background: #eef6ff; box-shadow: 0 4px 0 rgba(47, 143, 255, .5), inset 0 0 0 2px var(--blue); }
.btn-back { min-height: 40px; padding: 6px 16px; font-size: 16px; background: #eef2fb; color: var(--ink); }
.btn-leave { color: #fff; background: linear-gradient(180deg, #ff7a8a, var(--red)); box-shadow: 0 4px 0 #b3293a; }
.btn.big { min-height: 60px; font-size: 22px; padding: 12px 28px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: #eef2fb; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { color: var(--ink2); font-size: 15px; margin: 6px 0; }
.fineprint { color: var(--ink2); font-size: 13px; margin: 14px 0 0; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 4px; }

/* ---------- screens and cards ---------- */
.screen { position: fixed; inset: 0; z-index: 10; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.panel-screen { display: grid; place-items: center; padding: 16px; background: rgba(29, 60, 110, .28); overflow: auto; }
.panel-screen > .card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.panel-screen > .card.wide { width: min(1040px, 100%); }
.side-screen { display: flex; justify-content: flex-end; padding: 16px; pointer-events: none; }
.side-screen > .side { pointer-events: auto; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; }

/* ---------- home ---------- */
#home { pointer-events: none; }
#home > * { pointer-events: auto; }
.topbar { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.logo { font-size: clamp(34px, 5vw, 58px); line-height: .95; color: #fff; text-shadow: 0 4px 0 var(--blue), 0 8px 18px rgba(0, 40, 120, .35); }
.logo span { color: var(--go1); text-shadow: 0 4px 0 var(--pink), 0 8px 18px rgba(120, 0, 60, .3); }
.logo em { font-style: normal; display: block; font-size: .55em; letter-spacing: .3em; color: #fff; }
.logo small { display: block; font-size: .36em; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 #0b3c8a, 0 6px 14px rgba(0, 30, 90, .35); margin-bottom: 4px; }
.logo small b { color: #ff9f1c; text-shadow: 0 3px 0 #8a3a00, 0 6px 14px rgba(90, 30, 0, .3); }

/* Title screen: the Azzy Zone poster greets everyone before the menus */
.title-screen { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: auto minmax(260px, 500px);
  align-items: center; justify-content: center; gap: clamp(20px, 4vw, 64px); padding: 24px; background: #06122e; overflow: hidden; }
.title-screen[hidden] { display: none; }
.title-bg { position: absolute; inset: -48px; background: url("/img/azzy-zone-poster-blur.webp") center / cover no-repeat;
  filter: blur(20px) saturate(1.25) brightness(.5); }
.title-poster { position: relative; display: block; height: min(86vh, 1402px); width: auto; max-width: 52vw; object-fit: cover;
  border-radius: 22px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 24px 70px rgba(0, 0, 0, .55), 0 0 70px rgba(31, 178, 255, .35);
  animation: poster-in .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.title-side { position: relative; color: #fff; animation: title-in .6s .15s ease-out both; }
.title-name { margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; text-shadow: 0 4px 0 #0b3c8a, 0 10px 30px rgba(0, 0, 0, .45); }
.title-brand { display: block; font-size: .64em; letter-spacing: .05em; color: #ff9f1c; text-shadow: 0 3px 0 #8a3a00, 0 10px 30px rgba(0, 0, 0, .45); }
.title-tag { margin: 0 0 24px; max-width: 30ch; font-size: 19px; font-weight: 700; color: #d6e6ff; }
.title-side .btn-play { min-width: min(340px, 82vw); }
.title-invite, .title-note { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: #b9cbee; }
.title-invite b { color: #fff; letter-spacing: .12em; }
@keyframes poster-in { from { opacity: 0; transform: translateY(18px) scale(.96) rotate(-1.5deg); } }
@keyframes title-in { from { opacity: 0; transform: translateX(18px); } }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .title-screen { grid-template-columns: 1fr; justify-items: center; align-content: center; text-align: center; gap: 18px; overflow-y: auto; }
  .title-poster { height: auto; width: min(76vw, 44vh); max-width: none; }
  .title-tag { margin-inline: auto; }
}
.nick { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 18px; padding: 8px 10px 8px 16px; box-shadow: var(--shadow); }
.nick-label { font-size: 13px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .1em; }
.nick strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
.invite-banner { position: absolute; top: 118px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; align-items: center; background: var(--paper); padding: 10px 12px 10px 20px; border-radius: 18px; box-shadow: var(--shadow); font-weight: 700; white-space: nowrap; }
.drag-hint { position: absolute; left: 50%; bottom: calc(7vh + 190px); transform: translateX(-50%); margin: 0; font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 2px 6px rgba(0, 30, 80, .6); pointer-events: none; }
.home-actions { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 18px; width: min(760px, 94vw); }
.home-menu { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.home-menu .btn { min-width: 150px; }
.device-note { position: absolute; top: 120px; left: 16px; right: 16px; margin: 0 auto; max-width: 560px; background: #fff3c4; border-radius: 14px; padding: 10px 14px; font-weight: 700; box-shadow: var(--shadow); }
.guest-note { position: absolute; left: 16px; bottom: 8px; margin: 0; font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0, 30, 80, .7); pointer-events: none; }

/* ---------- mode picker ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.mode { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 0; cursor: pointer; background: #f3f6fd; box-shadow: inset 0 0 0 2px var(--line); }
.mode b { font-family: var(--display); font-size: 26px; font-weight: 600; }
.mode span { font-size: 14px; color: var(--ink2); font-weight: 700; }
.mode[aria-checked="true"] { background: #fff7d6; box-shadow: inset 0 0 0 3px var(--go2), 0 4px 0 #c26a00; }
.mode.practice { background: #eafbf4; }
.mode-note { font-weight: 700; margin: 0 0 10px; }
.join-form { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.join-form label { font-weight: 800; }
.join-form input { font: 700 22px var(--display); letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); width: 200px; color: var(--ink); background: #fff; user-select: text; -webkit-user-select: text; }
select { font: 700 16px var(--ui); padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); color: var(--ink); background: #fff; }
label.inline { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; }

/* ---------- loadout and skins ---------- */
.gun-list, .util-list { display: grid; gap: 8px; }
.gun { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 0; cursor: pointer; background: #f3f6fd; box-shadow: inset 0 0 0 2px var(--line); }
.gun b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.gun p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink2); }
.gun[aria-pressed="true"] { background: #fff7d6; box-shadow: inset 0 0 0 3px var(--go2); }
.gun:disabled { opacity: .45; cursor: not-allowed; }
.ratings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.bar { height: 7px; border-radius: 9px; background: #dde4f3; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--blue)); border-radius: 9px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.tabs button { border: 0; border-radius: 12px; padding: 8px 14px; font: 700 15px var(--ui); background: #eef2fb; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.skin { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 8px; border-radius: 14px; border: 0; cursor: pointer; background: #f3f6fd; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 13px; }
.skin .sw { width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 2px 6px rgba(0, 0, 0, .15); }
.skin[aria-pressed="true"] { background: #fff7d6; box-shadow: inset 0 0 0 3px var(--go2); }
.skin.locked { opacity: .6; }
.skin .lock { position: absolute; top: 6px; right: 6px; font-size: 11px; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 6px; }
.skin .equipped { position: absolute; top: 6px; left: 6px; font-size: 11px; background: var(--mint); color: var(--ink); border-radius: 8px; padding: 2px 6px; }
.equip-row { margin: 14px 0 4px; }
.achievements { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.achievements li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: #f6f8fd; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.achievements li b { font-family: var(--display); font-weight: 600; }
.achievements li.done { background: #e6fbf2; }
.achievements .bar { grid-column: 1 / -1; }

/* ---------- how to / settings ---------- */
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.keys dt { font-weight: 800; white-space: nowrap; }
.keys dd { margin: 0; color: var(--ink2); }
.settings { display: grid; gap: 16px; }
.settings label { display: grid; grid-template-columns: 1fr 160px 44px; align-items: center; gap: 12px; font-weight: 700; }
.settings label.toggle { grid-template-columns: auto 1fr; }
.settings input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--blue); }
.settings input[type="range"] { accent-color: var(--blue); }
.settings output { font-weight: 800; color: var(--ink2); text-align: right; }

/* ---------- lobby ---------- */
.lobby-screen { padding: 16px; overflow: auto; background: linear-gradient(180deg, rgba(29, 60, 110, .15), rgba(29, 60, 110, .45)); }
.lobby { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.lobby-head { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 26px; align-items: center; }
.rules { margin: 4px 0 0; color: var(--ink2); font-size: 14px; font-weight: 700; }
.invite { display: grid; gap: 8px; justify-items: start; }
.code-box { display: flex; align-items: baseline; gap: 10px; }
.code-box span { font-size: 13px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .1em; }
.code-box b { font-family: var(--display); font-size: 34px; letter-spacing: .14em; font-weight: 600; user-select: text; -webkit-user-select: text; }
.invite-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.copied { margin: 0; min-height: 20px; color: #0f8a61; font-weight: 800; font-size: 14px; }
.count { display: grid; justify-items: center; background: #f3f6fd; border-radius: 16px; padding: 10px 18px; }
.count b { font-family: var(--display); font-size: 34px; font-weight: 600; }
.count span { font-size: 13px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .1em; }
.count small { font-size: 12px; font-weight: 700; color: var(--ink2); }
.lobby-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.roster { display: grid; gap: 14px; }
.team-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team { border-radius: 16px; padding: 12px; background: #f3f8ff; box-shadow: inset 0 0 0 3px var(--blue); }
.team.orange { background: #fff5ec; box-shadow: inset 0 0 0 3px var(--orange); }
.team h3 { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.slots { display: grid; gap: 8px; }
.pl { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--paper); box-shadow: 0 2px 0 rgba(29, 35, 64, .08), inset 0 0 0 1px var(--line); }
.pl img, .pl .ph { width: 52px; height: 52px; border-radius: 12px; background: #dfe9fb; object-fit: cover; }
.pl .nm { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.1; }
.pl .gear { font-size: 12px; font-weight: 700; color: var(--ink2); }
.pl .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag { font-size: 11px; font-weight: 800; border-radius: 8px; padding: 2px 7px; background: #eef2fb; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.tag.host { background: var(--go1); color: var(--ink); }
.tag.ready { background: var(--mint); color: var(--ink); }
.tag.bot { background: var(--grape); color: #fff; }
.tag.wait { background: #ffe9c7; color: #8a4a00; }
.tag.active { background: #d8ecff; color: #0b4a9a; }
.tag.warm { background: #e7ddff; color: #4a2aa0; }
.tag.dc { background: #ffe0e4; color: #a01a2e; }
.tag.you { background: var(--ink); color: #fff; }
.pl .acts { display: flex; gap: 6px; }
.pl .acts button { border: 0; background: #eef2fb; border-radius: 10px; padding: 6px 10px; font-weight: 800; cursor: pointer; font-size: 13px; }
.pl .acts .kick { background: #ffe0e4; color: #a01a2e; }
.slot-empty { border: 2px dashed rgba(29, 35, 64, .25); border-radius: 14px; padding: 16px; text-align: center; font-weight: 800; color: var(--ink2); font-size: 14px; }
.waiting-area { border-radius: 16px; padding: 12px; background: #fff8e8; box-shadow: inset 0 0 0 2px #ffd9a1; }
.waiting-area h3 { margin: 0 0 8px; font-size: 18px; }
.lobby-side { display: grid; gap: 12px; }
.status-line { font-weight: 800; color: var(--ink2); }
.host-panel { border-top: 2px dashed var(--line); padding-top: 10px; display: grid; gap: 10px; }
.host-panel h3 { margin: 0; }
.host-panel label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.host-panel label.toggle { justify-content: flex-start; }
.host-panel input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--blue); }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.reactions button { border: 0; border-radius: 12px; padding: 8px 12px; background: #f3f6fd; font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); }
.reactions button:disabled { opacity: .5; }
.say { position: absolute; right: 8px; top: -12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 3px 10px; font-weight: 800; font-size: 13px; animation: bubble 2.8s forwards; pointer-events: none; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(6px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- results ---------- */
.winner { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.team-score { display: flex; gap: 12px; margin-bottom: 12px; font-family: var(--display); font-size: 28px; }
.team-score .b { color: var(--blue); } .team-score .o { color: var(--orange); }
.scores { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 16px; }
.scores th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); padding: 6px 8px; }
.scores td { padding: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.scores tr.me td { background: #fff7d6; }
.scores .t-blue { color: var(--blue); } .scores .t-orange { color: var(--orange); }
.progress { display: grid; gap: 8px; margin-bottom: 14px; }
.progress .unlock { background: #e6fbf2; border-radius: 12px; padding: 10px 14px; font-weight: 800; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font-family: var(--display); }
.hud-top { position: absolute; top: 12px; left: 14px; right: 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.scorebar { display: grid; justify-items: center; gap: 6px; }
.timer { background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 4px 18px; font-size: 30px; font-weight: 600; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.timer.warn { color: var(--orange); } .timer.crit { color: var(--red); }
.scores-line { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.scores-line .chip { background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 4px 12px; font-size: 18px; font-weight: 600; box-shadow: var(--shadow); }
.scores-line .chip.me { outline: 3px solid var(--yellow, #ffd23f); }
.scores-line .chip.blue { color: #fff; background: var(--blue); } .scores-line .chip.orange { color: #fff; background: var(--orange); }
.modechip { justify-self: end; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 6px 12px; font-size: 15px; box-shadow: var(--shadow); font-family: var(--ui); font-weight: 800; }
.feed { display: grid; gap: 6px; justify-items: start; }
.feed div { background: rgba(255, 255, 255, .9); border-radius: 12px; padding: 4px 10px; font-size: 15px; font-family: var(--ui); font-weight: 800; animation: bubble 5s forwards; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .8); border-radius: 2px; }
.crosshair i:nth-child(1) { left: 14px; top: 0; width: 3px; height: 9px; } .crosshair i:nth-child(2) { left: 14px; bottom: 0; width: 3px; height: 9px; }
.crosshair i:nth-child(3) { top: 14px; left: 0; height: 3px; width: 9px; } .crosshair i:nth-child(4) { top: 14px; right: 0; height: 3px; width: 9px; }
.crosshair.ads { width: 18px; height: 18px; } .crosshair.ads i:nth-child(1), .crosshair.ads i:nth-child(2) { left: 8px; height: 5px; } .crosshair.ads i:nth-child(3), .crosshair.ads i:nth-child(4) { top: 8px; width: 5px; }
.hitmark { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%) rotate(45deg); opacity: 0; }
.hitmark::before, .hitmark::after { content: ""; position: absolute; background: var(--pink); left: 18px; top: 0; width: 4px; height: 40px; border-radius: 3px; box-shadow: 0 0 0 1px #fff; }
.hitmark::after { transform: rotate(90deg); }
.hitmark.on { animation: hit .25s ease-out; }
@keyframes hit { from { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(.7); } to { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(1.1); } }
.scope { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0 30vmin, rgba(20, 30, 60, .82) calc(30vmin + 3px)); }
.center-msg { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: clamp(40px, 7vw, 84px); font-weight: 700; color: #fff; text-shadow: 0 5px 0 var(--blue), 0 10px 26px rgba(0, 30, 90, .45); text-align: center; white-space: nowrap; }
.center-msg small { display: block; font-size: 22px; text-shadow: 0 2px 6px rgba(0, 30, 90, .6); }
.popups { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; }
.popups div { font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 3px 0 var(--pink), 0 6px 14px rgba(0, 0, 0, .35); animation: rise 1.1s forwards; white-space: nowrap; }
@keyframes rise { from { opacity: 1; transform: translateY(0) scale(.9); } 20% { transform: translateY(-6px) scale(1.08); } to { opacity: 0; transform: translateY(-40px) scale(1); } }
.hud-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.hits-box, .ammo-box { background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); display: grid; gap: 4px; justify-self: start; }
.ammo-box { justify-self: end; justify-items: end; }
.lbl { font-family: var(--ui); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.pips { display: flex; gap: 8px; }
.pip { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.pip.gone { background: var(--pink); box-shadow: inset 0 0 0 3px #fff; opacity: .9; }
.status { font-family: var(--ui); font-weight: 800; font-size: 14px; color: var(--blue); min-height: 18px; }
.guns { display: flex; gap: 8px; }
.gslot { background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 6px 12px; min-width: 150px; box-shadow: var(--shadow); font-size: 16px; font-weight: 600; }
.gslot kbd { font-size: 12px; }
.gslot small { display: block; font-family: var(--ui); font-size: 12px; font-weight: 800; color: var(--ink2); }
.gslot.on { background: #fff7d6; box-shadow: inset 0 0 0 3px var(--go2), var(--shadow); }
.ammo b { font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ammo span { font-size: 18px; color: var(--ink2); margin-left: 4px; }
.ammo.low b { color: var(--orange); } .ammo.empty b { color: var(--red); }
.util { display: flex; gap: 8px; align-items: center; font-family: var(--ui); font-weight: 800; font-size: 14px; }
.util .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.util .dot.used { background: #d8deea; }
.click-to-play { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); background: var(--paper); border-radius: 16px; padding: 12px 22px; font-size: 22px; font-weight: 600; box-shadow: var(--shadow); }
.warmup-tag { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); background: #efe7ff; border-radius: 14px; padding: 6px 14px; font-family: var(--ui); font-weight: 800; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.splatted { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); text-align: center; color: #fff; text-shadow: 0 4px 0 var(--pink), 0 8px 20px rgba(0, 0, 0, .35); }
.splatted h2 { font-size: 64px; }
.splatted p { margin: 4px 0; font-size: 22px; }
.splatted .big { font-size: 54px; }
.scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); font-family: var(--ui); }
.react-wheel { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: flex; gap: 8px; pointer-events: auto; font-family: var(--ui); }
.react-wheel button { border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 800; background: #f3f6fd; cursor: pointer; }
.react-float { position: absolute; transform: translate(-50%, -100%); background: var(--paper); border-radius: 14px; padding: 4px 10px; font-family: var(--ui); font-weight: 800; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.tutorial { position: absolute; top: 90px; left: 14px; width: min(360px, 90vw); pointer-events: auto; font-family: var(--ui); }
.tutorial h3 { margin: 0 0 4px; font-family: var(--display); }
.tutorial p { margin: 4px 0 10px; }

/* ---------- overlays ---------- */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toasts div { background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 800; box-shadow: var(--shadow); animation: bubble 3.2s forwards; }
.toasts div.good { background: #0f8a61; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20, 30, 60, .45); padding: 16px; }
.modal .card { width: min(480px, 100%); }
.conn { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 65; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 14px; font-weight: 800; }

@media (max-width: 900px) {
  .lobby-head { grid-template-columns: 1fr; }
  .lobby-body { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .team-cols { grid-template-columns: 1fr; }
  .settings label { grid-template-columns: 1fr; }
}
@media (max-height: 640px) {
  .btn-play { min-height: 72px; font-size: 36px; }
  .home-actions { bottom: 3vh; gap: 10px; }
  .drag-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}
