:root {
  --bg: #06080d; --ink: #eef1f6; --ink2: #b7bfcc; --mute: #7e8899; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --glass: rgba(10,13,21,.62); --glass2: rgba(16,20,31,.78);
  --red: #ff2e4d; --red2: #ff5a72; --blue: #3b82ff; --blue2: #7aa8ff; --amber: #ffb547; --pink: #ff3ea5; --cyan: #2de2ff; --gold: #fbbf24; --green: #4ade80;
  --disp: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
kbd { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-bottom-width: 2px; color: #fff; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(0,0,0,.55) 100%); }
#hurt { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255,20,50,.55) 100%); transition: opacity .5s var(--ease); }

/* ---------------- screens ---------------- */
.screen { position: fixed; inset: 0; z-index: 10; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease), visibility 0s .45s; }
.screen.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease); }
.screen.show .panel, .screen.show .menu-list .mi, .screen.show .player-card { animation: rise .6s var(--ease) both; }
.screen.show .menu-list .mi:nth-child(2) { animation-delay: .04s; } .screen.show .menu-list .mi:nth-child(3) { animation-delay: .08s; }
.screen.show .menu-list .mi:nth-child(4) { animation-delay: .12s; } .screen.show .menu-list .mi:nth-child(5) { animation-delay: .16s; } .screen.show .menu-list .mi:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.panel-screen { display: flex; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(180deg, rgba(6,8,13,.35), rgba(6,8,13,.7)); }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.panel.wide { width: min(1080px, 100%); max-height: calc(100vh - 64px); overflow: auto; padding: 28px 32px 32px; scrollbar-width: thin; }
.ph { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h2 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 40px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.ph.small { margin-bottom: 14px; } .ph h3 { font-family: var(--disp); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.ph h3 span { color: var(--mute); font-weight: 600; margin-left: 6px; }
.back-btn { height: 38px; padding: 0 16px 0 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, transform .2s var(--ease); }
.back-btn::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.back-btn:hover { background: rgba(255,255,255,.12); transform: translateX(-2px); }

.btn { height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn.red { background: linear-gradient(180deg, #ff3d59, #e0213f); box-shadow: 0 8px 26px rgba(255,46,77,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.red:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,46,77,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.ghost { background: rgba(255,255,255,.07); border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255,255,255,.13); }
.btn.big { height: 56px; font-size: 18px; font-family: var(--disp); font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; width: 100%; }

/* ---------------- logo ---------------- */
.logo { position: relative; display: inline-block; }
.logo .word { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 92px; line-height: .84; letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.logo .tagline { margin-top: 14px; font-size: 15px; color: var(--ink2); font-weight: 500; }
.logo .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.logo .bar i { width: 58px; height: 10px; border-radius: 4px; background: var(--red); box-shadow: 0 0 22px var(--red); animation: siren 1.1s steps(1) infinite; }
.logo .bar i:last-child { background: var(--blue); box-shadow: 0 0 22px var(--blue); animation-delay: -.55s; }
@keyframes siren { 0% { opacity: 1; } 50% { opacity: .22; box-shadow: none; } }
.logo.big .word { font-size: 120px; } .logo.small .word { font-size: 34px; } .logo.small .bar i { width: 28px; height: 6px; }

/* ---------------- loading ---------------- */
#loading { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 120%, #2a0d18 0%, #06080d 55%); z-index: 50; }
.load-wrap { width: min(560px, 90vw); }
.load-bar { margin-top: 44px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--pink), var(--blue)); transition: width .35s var(--ease); }
.load-status { margin-top: 14px; font-family: var(--disp); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.load-tip { margin-top: 26px; font-size: 14px; color: var(--mute); line-height: 1.5; min-height: 42px; }

/* ---------------- menu ---------------- */
#menu { background: linear-gradient(90deg, rgba(4,6,10,.82) 0%, rgba(4,6,10,.45) 38%, rgba(4,6,10,0) 62%); }
.party-link { position: absolute; top: 24px; left: 32px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-weight: 600; font-size: 13px; letter-spacing: .02em; transition: background .2s, transform .2s var(--ease); }
.party-link:hover { background: rgba(255,255,255,.14); transform: translateX(-2px); }
.menu-left { position: absolute; left: 64px; top: 50%; transform: translateY(-52%); }
.menu-list { margin-top: 44px; display: flex; flex-direction: column; gap: 4px; width: 440px; }
.mi { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; text-align: left; padding: 10px 18px 10px 14px; border-radius: 12px; transition: background .25s var(--ease), transform .25s var(--ease); }
.mi .idx { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--mute); letter-spacing: .06em; }
.mi .lbl { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 34px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; transition: color .2s; }
.mi .hint { grid-column: 2; font-size: 13px; color: var(--mute); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s var(--ease), opacity .3s; }
.mi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--red); transform: scaleY(0); transition: transform .25s var(--ease); box-shadow: 0 0 14px var(--red); }
.mi:hover, .mi:focus-visible { background: linear-gradient(90deg, rgba(255,46,77,.16), rgba(255,46,77,0)); transform: translateX(6px); outline: none; }
.mi:hover::before, .mi:focus-visible::before { transform: scaleY(1); }
.mi:hover .hint, .mi:focus-visible .hint { max-height: 20px; opacity: 1; }
.mi.primary .lbl { color: #fff; font-size: 44px; }
.mi.back .lbl { color: var(--ink2); font-size: 26px; }
.player-card { position: absolute; right: 40px; bottom: 40px; width: 360px; padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-avatar { width: 52px; height: 52px; border-radius: 14px; flex: none; background: #222; position: relative; overflow: hidden; }
.pc-id { flex: 1; min-width: 0; }
.pc-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
#nameInput { width: 100%; margin-top: 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line2); padding: 4px 0; font-size: 20px; font-weight: 700; outline: none; transition: border-color .2s; }
#nameInput:focus { border-color: var(--red); }
#nameInput.need { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pc-level { text-align: center; } .pc-level span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--mute); }
.pc-level b { font-family: var(--disp); font-weight: 800; font-size: 32px; line-height: 1; }
.xp { margin-top: 14px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--pink)); transition: width 1s var(--ease); }
.pc-stats { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-stats div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.pc-stats b { display: block; font-family: var(--disp); font-weight: 700; font-size: 20px; }
.pc-stats span { font-size: 11px; color: var(--mute); }
.menu-foot { position: absolute; left: 64px; bottom: 28px; font-size: 12px; color: var(--mute); }

/* ---------------- play ---------------- */
.play-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; }
.play-card { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-height: 250px; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.play-card h3 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 30px; text-transform: uppercase; }
.play-card p { color: var(--ink2); font-size: 14px; line-height: 1.5; }
button.play-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: var(--line2); }
.play-card.host { background: linear-gradient(160deg, rgba(255,46,77,.22), rgba(255,46,77,.04)); border-color: rgba(255,46,77,.35); }
.play-card.host:hover { background: linear-gradient(160deg, rgba(255,46,77,.32), rgba(255,46,77,.06)); }
.pc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.pc-icon svg { width: 24px; height: 24px; }
.host .pc-icon { background: var(--red); box-shadow: 0 6px 20px rgba(255,46,77,.5); }
.code-in { display: flex; gap: 8px; margin: 6px 0 8px; }
.code-in input { width: 56px; height: 64px; text-align: center; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); font-family: var(--disp); font-weight: 800; font-size: 34px; text-transform: uppercase; outline: none; transition: border-color .2s, background .2s; }
.code-in input:focus { border-color: var(--red); background: rgba(255,46,77,.08); }
.err { min-height: 18px; font-size: 13px; color: var(--red2); }

/* ---------------- lobby ---------------- */
#lobby { background: linear-gradient(180deg, rgba(4,6,10,.7) 0%, rgba(4,6,10,0) 30%, rgba(4,6,10,0) 55%, rgba(4,6,10,.85) 100%); }
.lobby-top { position: absolute; top: 24px; left: 32px; right: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.room { text-align: center; }
.room-label { font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--ink2); }
.room-code { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 84px; letter-spacing: .12em; line-height: 1; margin: 4px 0 10px; text-shadow: 0 0 40px rgba(255,46,77,.5); }
.net-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); }
.net-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.net-pill.ok i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.net-pill.bad i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.lobby-body { position: absolute; left: 32px; right: 32px; bottom: 32px; display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: end; }
.lobby-players { padding: 18px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); animation: rise .4s var(--ease) both; }
.pl.me { border-color: rgba(255,46,77,.45); background: rgba(255,46,77,.08); }
.pl .av { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.pl .nm { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.pl .nm em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .sub { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.pl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pl .dot.off { background: var(--amber); }
.pl .crown { color: var(--gold); width: 16px; height: 16px; flex: none; }
.pl .kick { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; opacity: 0; transition: opacity .2s, background .2s; color: var(--mute); }
.pl:hover .kick { opacity: 1; } .pl .kick:hover { background: rgba(255,46,77,.2); color: #fff; }
.pl.empty { border-style: dashed; color: var(--mute); justify-content: center; font-size: 13px; min-height: 60px; background: transparent; }
.lobby-note { margin-top: 12px; font-size: 13px; color: var(--mute); }
.lobby-side { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lobby-side .ph { margin-bottom: 0; justify-content: space-between; }
.host-only-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.chips { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.3); }
.chips button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink2); transition: background .2s, color .2s; }
.chips button.on { background: rgba(255,255,255,.14); color: #fff; }
.chips.locked button:not(.on) { opacity: .4; }
.lobby-roles { display: grid; gap: 8px; }
.role-mini { padding: 10px 12px; border-radius: 10px; border-left: 3px solid; font-size: 13px; }
.role-mini b { display: block; font-family: var(--disp); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.role-mini span { color: var(--ink2); }
.role-mini.mw { border-color: var(--red); background: rgba(255,46,77,.08); } .role-mini.cop { border-color: var(--blue); background: rgba(59,130,255,.08); }
.start-note { text-align: center; font-size: 13px; color: var(--mute); min-height: 18px; }

/* ---------------- how to ---------------- */
.howto-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.role-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); }
.role-card.mw { background: linear-gradient(170deg, rgba(255,46,77,.18), rgba(255,46,77,.02)); border-color: rgba(255,46,77,.3); }
.role-card.cop { background: linear-gradient(170deg, rgba(59,130,255,.18), rgba(59,130,255,.02)); border-color: rgba(59,130,255,.3); }
.rc-badge { display: inline-block; font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: .14em; padding: 4px 10px; border-radius: 6px; background: var(--red); }
.cop .rc-badge { background: var(--blue); }
.role-card h3, .controls h3 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 30px; text-transform: uppercase; margin: 12px 0 10px; }
.role-card ul { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.controls { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.controls h3 { margin-top: 0; } .controls h3.mt { margin-top: 18px; font-size: 22px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.keys div { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink2); }
.keys span { margin-left: 6px; }
.events-list { font-size: 14px; color: var(--ink2); line-height: 1.5; }

/* ---------------- leaderboard ---------------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); margin-left: auto; flex-wrap: wrap; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink2); transition: background .2s, color .2s; }
.tabs button.on { background: rgba(255,255,255,.14); color: #fff; }
.board { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.035); animation: rise .4s var(--ease) both; }
.row.me { background: rgba(255,46,77,.1); border: 1px solid rgba(255,46,77,.3); }
.row .rk { font-family: var(--disp); font-weight: 800; font-size: 26px; color: var(--mute); }
.row:nth-child(1) .rk { color: var(--gold); } .row:nth-child(2) .rk { color: #d6dde6; } .row:nth-child(3) .rk { color: #e0905a; }
.row .n { font-weight: 700; font-size: 16px; } .row .n small { display: block; font-weight: 500; font-size: 12px; color: var(--mute); }
.row .v { font-family: var(--disp); font-weight: 800; font-size: 28px; }
.empty { padding: 40px; text-align: center; color: var(--mute); }
.mystats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mystats div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mystats b { display: block; font-family: var(--disp); font-weight: 800; font-size: 34px; }
.mystats span { font-size: 13px; color: var(--mute); }

/* ---------------- settings ---------------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.settings-grid h4 { grid-column: 1 / -1; font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-top: 10px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.srow small { display: block; font-weight: 500; color: var(--mute); font-size: 12px; margin-top: 2px; }
.srow input[type=range] { width: 160px; accent-color: var(--red); }
.toggle { width: 44px; height: 26px; border-radius: 26px; background: rgba(255,255,255,.14); position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.toggle.on { background: var(--red); } .toggle.on::after { transform: translateX(18px); }

/* ---------------- locker ---------------- */
#locker { background: linear-gradient(90deg, rgba(4,6,10,0) 0%, rgba(4,6,10,.12) 36%, rgba(4,6,10,.9) 60%); }
.locker-stage { position: absolute; left: 0; top: 0; bottom: 0; right: calc(min(600px, 50vw) + 40px); cursor: grab; touch-action: none; }
.locker-stage.drag { cursor: grabbing; }
.stage-tools { position: absolute; left: 32px; bottom: 32px; display: flex; gap: 8px; align-items: center; }
.stage-hint { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 10px; background: rgba(6,8,13,.5); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); pointer-events: none; }
.stage-hint::before { content: ""; width: 16px; height: 16px; opacity: .8; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 4 0 0 0 18 0'/%3E%3Cpath d='M17 15l4-3 1 5'/%3E%3Cpath d='M12 3v6'/%3E%3C/svg%3E"); }
.stage-btn { height: 36px; padding: 0 16px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; transition: background .2s, transform .2s var(--ease); }
.stage-btn:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.locker-wrap { position: absolute; right: 32px; top: 32px; bottom: 32px; width: min(600px, 50vw); display: flex; flex-direction: column; }
.locker-lvl { margin-left: auto; font-size: 14px; color: var(--ink2); font-weight: 600; }
.locker-groups { display: flex; gap: 26px; margin: -6px 0 14px; border-bottom: 1px solid var(--line); }
.locker-groups button { position: relative; padding: 0 0 10px; font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); transition: color .2s; }
.locker-groups button:hover { color: var(--ink2); }
.locker-groups button.on { color: #fff; }
.locker-groups button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--red); box-shadow: 0 0 12px rgba(255,46,77,.6); }
.locker-wrap .locker-tabs { margin: 0 0 14px; align-self: flex-start; }
.locker-items { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; padding: 2px 4px 2px 0; scrollbar-width: thin; }
.locker-items.k-dot { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.item { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 10px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; min-height: 96px; }
.item:hover:not(.locked) { transform: translateY(-2px); border-color: var(--line2); background: rgba(255,255,255,.075); }
.item.on { border-color: var(--red); background: rgba(255,46,77,.12); box-shadow: 0 0 0 1px rgba(255,46,77,.35), 0 10px 28px rgba(255,46,77,.14); }
.item .sw { flex: none; width: 100%; height: 44px; border-radius: 9px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.item .thumb { position: relative; flex: none; width: 100%; height: 118px; border-radius: 10px; margin-bottom: 9px; overflow: hidden; background: radial-gradient(110% 85% at 50% 18%, rgba(126,146,210,.26), rgba(30,36,54,.5) 62%, rgba(10,13,21,.6)); display: grid; place-items: center; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.locker-items.k-face .thumb { height: 100px; }
.item .thumb.face img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.item .thumb.wait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%) 0 0/220% 100%; animation: lockerShimmer 1.1s linear infinite; }
@keyframes lockerShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.item .dot { flex: none; width: 46px; height: 46px; border-radius: 50%; margin: 2px 0 12px; box-shadow: inset 0 -8px 14px rgba(0,0,0,.28), inset 0 4px 8px rgba(255,255,255,.18), 0 0 0 3px rgba(255,255,255,.07); transition: box-shadow .2s; }
.item.on .dot { box-shadow: inset 0 -8px 14px rgba(0,0,0,.28), inset 0 4px 8px rgba(255,255,255,.18), 0 0 0 3px var(--red); }
.item b { display: block; font-size: 14px; line-height: 1.25; } .item span { font-size: 12px; color: var(--mute); }
.item.on span { color: var(--red2); }
.item.locked { opacity: .55; cursor: default; }
.item.locked .thumb img { filter: saturate(.35) brightness(.8); }
.item.locked::after { content: ""; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 7px; background: rgba(6,8,13,.7) no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.locker-note { margin-top: 12px; font-size: 12px; color: var(--mute); }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .4s; }
#hud.show { opacity: 1; visibility: visible; }
.hud-top { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.timer-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.role-badge { font-family: var(--disp); font-weight: 800; font-size: 14px; letter-spacing: .18em; padding: 4px 12px; border-radius: 6px; background: var(--blue); box-shadow: 0 0 20px rgba(59,130,255,.5); }
.role-badge.mw { background: var(--red); box-shadow: 0 0 22px rgba(255,46,77,.6); }
.role-badge.roam { background: rgba(255,255,255,.14); box-shadow: none; }
.timer { font-family: var(--disp); font-weight: 800; font-size: 56px; line-height: .9; letter-spacing: .02em; text-shadow: 0 2px 20px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.timer.urgent { color: var(--red2); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.thp { display: none; flex-direction: column; align-items: center; gap: 4px; font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--red2); }
.thp.show { display: flex; }
.thp-bar { width: 220px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.thp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff2e4d, #ff8a5c); transition: width .3s var(--ease); }
.ping-next { position: absolute; left: calc(100% + 18px); top: 22px; display: grid; grid-template-columns: 36px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; white-space: nowrap; }
.ping-next svg { grid-row: 1 / 3; width: 36px; height: 36px; transform: rotate(-90deg); }
.ping-next .trk { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; }
.ping-next .arc { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear; }
.ping-next.target .arc { stroke: var(--amber); }
.ping-next span { font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--ink2); }
.ping-next b { font-family: var(--disp); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.ping-next.soon b { color: var(--red2); }
.warn-pill { display: none; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(255,46,77,.18); border: 1px solid rgba(255,46,77,.55); font-family: var(--disp); font-weight: 800; font-size: 16px; letter-spacing: .08em; color: #ffd0d8; animation: pulse 1.2s infinite; }
.warn-pill.show { display: inline-flex; }
.warn-pill svg { width: 18px; height: 18px; color: var(--red2); transition: transform .15s; }
.event-chips { display: flex; gap: 6px; }
.event-chips span { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.45); border: 1px solid; }
.feed { position: absolute; top: 20px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.feed div { padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.5); font-size: 13px; animation: slideIn .35s var(--ease) both; }
.feed b.cop { color: var(--blue2); } .feed b.mw { color: var(--red2); } .feed i { color: var(--mute); font-style: normal; margin: 0 4px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.points { position: absolute; top: 46%; left: 50%; transform: translate(80px, -50%); display: flex; flex-direction: column; gap: 4px; }
.points div { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 22px; color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,.7); animation: ptUp 1.6s var(--ease) forwards; white-space: nowrap; }
.points div.neg { color: var(--red2); }
.points div small { font-size: 15px; color: #fff; margin-left: 6px; font-style: normal; font-weight: 700; }
@keyframes ptUp { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
.banner { position: absolute; top: 150px; left: 50%; display: flex; align-items: center; gap: 16px; padding: 16px 26px 16px 18px; border-radius: 16px; background: rgba(8,10,16,.82); border: 1px solid var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translate(-50%, -20px) scale(.96); opacity: 0; transition: transform .5s var(--spring), opacity .35s; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.banner.show { transform: translate(-50%, 0); opacity: 1; }
.banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 16px 0 0 16px; background: var(--bc, var(--red)); box-shadow: 0 0 20px var(--bc, var(--red)); }
.bn-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc, var(--red)) 22%, transparent); color: var(--bc, var(--red)); }
.bn-icon svg { width: 26px; height: 26px; }
.bn-title { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: .02em; line-height: 1; color: var(--bc, #fff); }
.bn-sub { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.alert { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: .12em; padding: 8px 18px; border-radius: 8px; opacity: 0; white-space: nowrap; }
.alert.show { animation: alertIn 3.6s var(--ease) forwards; }
.alert.police { background: rgba(255,46,77,.9); color: #fff; box-shadow: 0 0 30px rgba(255,46,77,.6); }
.alert.target { background: rgba(255,181,71,.95); color: #1a0f00; box-shadow: 0 0 30px rgba(255,181,71,.6); }
@keyframes alertIn { 0% { opacity: 0; transform: translateX(-50%) scale(1.3); } 8%, 20%, 32% { opacity: 1; transform: translateX(-50%) scale(1); } 14%, 26% { opacity: .35; } 85% { opacity: 1; } 100% { opacity: 0; } }
.center-text { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 120px; letter-spacing: .02em; text-transform: uppercase; opacity: 0; text-shadow: 0 6px 40px rgba(0,0,0,.6); white-space: nowrap; }
.center-text.show { animation: ctIn var(--dur, 1.2s) var(--ease) forwards; }
.center-text.ko { color: var(--red2); } .center-text.go { color: #fff; } .center-text.info { font-size: 60px; color: var(--blue2); }
.center-text.count { font-size: 160px; }
.center-text small { display: block; font-size: 26px; font-style: normal; font-weight: 700; letter-spacing: .1em; color: var(--ink2); text-align: center; margin-top: 4px; }
@keyframes ctIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --s: 8px; transition: opacity .2s; }
.crosshair i { position: absolute; width: 2px; height: 9px; background: #fff; box-shadow: 0 0 3px rgba(0,0,0,.9); left: -1px; top: -4.5px; transition: transform .08s; }
.crosshair i:nth-child(1) { transform: translateY(calc(-1 * var(--s) - 4px)); } .crosshair i:nth-child(2) { transform: translateY(calc(var(--s) + 4px)); }
.crosshair i:nth-child(3) { transform: translateX(calc(-1 * var(--s) - 4px)) rotate(90deg); } .crosshair i:nth-child(4) { transform: translateX(calc(var(--s) + 4px)) rotate(90deg); }
.crosshair b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; left: -2px; top: -2px; box-shadow: 0 0 3px #000; }
.crosshair.hidden { opacity: 0; }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; opacity: 0; }
.hitmarker::before, .hitmarker::after { content: ""; position: absolute; left: 13px; top: -2px; width: 2.5px; height: 32px; background: linear-gradient(#fff 0 35%, transparent 35% 65%, #fff 65%); transform: rotate(45deg); }
.hitmarker::after { transform: rotate(-45deg); }
.hitmarker.show { animation: hm .22s ease-out; } .hitmarker.head::before, .hitmarker.head::after { background: linear-gradient(var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65%); }
.hitmarker.kill::before, .hitmarker.kill::after { background: linear-gradient(var(--red) 0 35%, transparent 35% 65%, var(--red) 65%); }
.hitmarker.kill.show { animation: hm .45s ease-out; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1); } }
.dmgdir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.dmgdir i { position: absolute; left: -60px; top: -170px; width: 120px; height: 28px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 6px solid rgba(255,40,60,.9); transform-origin: 60px 170px; animation: dd 1s ease-out forwards; filter: drop-shadow(0 0 8px rgba(255,40,60,.8)); }
@keyframes dd { 0% { opacity: 1; } 100% { opacity: 0; } }
.prompt { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); padding: 8px 16px; border-radius: 10px; background: rgba(0,0,0,.6); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.prompt.show { opacity: 1; }
.prompt b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-right: 6px; border-radius: 6px; background: #fff; color: #000; font-family: var(--disp); font-weight: 800; }
.tags { position: absolute; inset: 0; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; will-change: transform; }
.tag span { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.55); text-shadow: 0 1px 2px #000; }
.tag.cop span { color: #cfe0ff; border-bottom: 2px solid var(--blue); }
.tag.mw span { color: #ffd0d8; border-bottom: 2px solid var(--red); }
.tag.lobby span { font-size: 15px; }
.tag .hp { width: 46px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.5); overflow: hidden; }
.tag .hp i { display: block; height: 100%; background: var(--blue2); }
.tag em { font-style: normal; font-size: 11px; color: var(--mute); }
.dnums { position: absolute; inset: 0; }
.dnum { position: absolute; font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 26px; color: #fff; text-shadow: 0 2px 6px #000, 0 0 2px #000; animation: dn .8s var(--ease) forwards; transform: translate(-50%, -50%); }
.dnum.head { color: var(--gold); font-size: 32px; }
@keyframes dn { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.mini-wrap { position: absolute; left: 22px; bottom: 22px; width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 0 0 6px rgba(0,0,0,.35), 0 12px 40px rgba(0,0,0,.5); }
.mini-wrap.cop { box-shadow: 0 0 0 2px rgba(59,130,255,.75), 0 0 24px rgba(59,130,255,.35), 0 0 0 6px rgba(0,0,0,.35); }
.mini-wrap.mw { box-shadow: 0 0 0 2px rgba(255,46,77,.75), 0 0 24px rgba(255,46,77,.35), 0 0 0 6px rgba(0,0,0,.35); }
#minimap { width: 220px; height: 220px; border-radius: 50%; display: block; }
.mini-zone { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; text-shadow: 0 1px 4px #000; }
.hud-br { position: absolute; right: 26px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.speedo { display: none; align-items: baseline; gap: 6px; } .speedo.show { display: flex; }
.speedo b { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.speedo span { font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .14em; color: var(--ink2); }
.speedo .boost { width: 120px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; align-self: center; margin-left: 10px; }
.speedo .boost i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2de2ff, #7aa8ff); }
.weapon { text-align: right; }
.wname { font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.ammo b { font-family: var(--disp); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.ammo span { font-family: var(--disp); font-weight: 600; font-size: 18px; color: var(--mute); }
.reload { height: 3px; width: 120px; margin-left: auto; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; opacity: 0; }
.reload.show { opacity: 1; } .reload i { display: block; height: 100%; width: 0; background: var(--amber); }
.rockets { font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: #a8e07a; }
.health { width: 300px; }
.hp-bar { position: relative; height: 18px; border-radius: 6px; background: rgba(0,0,0,.45); border: 1px solid var(--line2); overflow: hidden; }
.hp-bar i { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #3ddc84, #8ef0b0); transition: width .25s var(--ease); }
.hp-bar.mid i { background: linear-gradient(90deg, #ffb547, #ffd28a); } .hp-bar.low i { background: linear-gradient(90deg, #ff2e4d, #ff7a8e); }
.hp-bar span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--disp); font-weight: 800; font-size: 14px; text-shadow: 0 1px 2px #000; }
.net-stats { position: absolute; right: 12px; top: 4px; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.hint-keys { position: absolute; left: 260px; bottom: 26px; font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.hint-keys kbd { min-width: 22px; height: 20px; font-size: 11px; margin-left: 6px; }
.scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.98); width: min(680px, 92vw); padding: 20px; border-radius: 16px; background: rgba(8,10,16,.88); border: 1px solid var(--line2); opacity: 0; transition: opacity .15s, transform .2s var(--ease); }
.scoreboard.show { opacity: 1; transform: translate(-50%, -50%); }
.sb-row { display: grid; grid-template-columns: 1fr 110px 80px 70px; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 14px; align-items: center; }
.sb-row.h { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.sb-row:not(.h):nth-child(even) { background: rgba(255,255,255,.04); }
.sb-row .r { font-family: var(--disp); font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.sb-row .r.cop { color: var(--blue2); } .sb-row .r.mw { color: var(--red2); }
.sb-row b { font-family: var(--disp); font-weight: 800; font-size: 18px; }
.sb-row.me { background: rgba(255,46,77,.1) !important; }
.lock-hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 8px 16px; border-radius: 10px; background: rgba(0,0,0,.6); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.lock-hint.show { opacity: 1; }

/* ---------------- map ---------------- */
#mapview { position: fixed; inset: 0; z-index: 20; background: rgba(4,6,10,.92); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
#mapview.show { opacity: 1; visibility: visible; transition: opacity .25s; }
#bigmap { width: 100%; height: 100%; display: block; cursor: grab; }
#bigmap:active { cursor: grabbing; }
.map-head { position: absolute; top: 22px; left: 28px; pointer-events: none; }
.map-head h2 { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 44px; text-transform: uppercase; }
.map-ping { margin-top: 6px; font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--red2); }
.map-legend { position: absolute; left: 28px; bottom: 26px; display: flex; gap: 16px; font-size: 13px; color: var(--ink2); flex-wrap: wrap; pointer-events: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.you { background: #fff; } .lg.cop { background: var(--blue); } .lg.ping { background: rgba(255,60,70,.35); border: 2px solid #ff3c46; } .lg.drop { background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
.lg.hw { background: #3a4358; border: 2px solid rgba(240,180,60,.8); border-radius: 3px; } .lg.tun { border: 2px dashed rgba(255,180,90,.8); border-radius: 3px; }
.map-hint { position: absolute; right: 28px; bottom: 26px; font-size: 13px; color: var(--mute); pointer-events: none; }

/* ---------------- pause / results / misc ---------------- */
#pause { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(4,6,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
#pause.show { opacity: 1; visibility: visible; transition: opacity .25s; }
.pause-box { width: 360px; display: flex; flex-direction: column; gap: 2px; }
.pause-box .logo { margin-bottom: 18px; }
.pause-box .mi { grid-template-columns: 1fr; } .pause-box .mi .lbl { font-size: 30px; }
.pause-box .mi.danger .lbl { color: var(--red2); }
#results { position: fixed; inset: 0; z-index: 22; display: flex; align-items: flex-start; justify-content: center; padding: 32px; overflow-y: auto; scrollbar-width: thin; background: linear-gradient(180deg, rgba(4,6,10,.4), rgba(4,6,10,.85)); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
#results.show { opacity: 1; visibility: visible; transition: opacity .5s; }
.res-wrap { width: min(1080px, 100%); margin: auto 0; }
.res-kicker { font-family: var(--disp); font-weight: 800; font-size: 16px; letter-spacing: .3em; color: var(--ink2); }
.res-title { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 104px; line-height: .9; text-transform: uppercase; margin: 6px 0 8px; }
.res-title.mw { color: var(--red2); text-shadow: 0 0 60px rgba(255,46,77,.45); } .res-title.cop { color: var(--blue2); text-shadow: 0 0 60px rgba(59,130,255,.45); }
#results.show .res-title { animation: slam .7s var(--spring) both; }
@keyframes slam { from { opacity: 0; transform: scale(1.4) translateY(-10px); } }
.res-sub { font-size: 18px; color: var(--ink2); margin-bottom: 24px; }
.res-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.res-table { padding: 14px; }
.rt-row { display: grid; grid-template-columns: 1.4fr 70px 70px 70px 80px; gap: 6px; padding: 9px 10px; border-radius: 9px; font-size: 14px; align-items: center; animation: rise .4s var(--ease) both; }
.rt-row.h { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mute); text-transform: uppercase; animation: none; }
.rt-row:not(.h):nth-child(even) { background: rgba(255,255,255,.04); }
.rt-row.me { background: rgba(255,46,77,.1) !important; }
.rt-row .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.rt-row .nm em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-row .badge { font-family: var(--disp); font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; background: var(--blue); flex: none; }
.rt-row .badge.mw { background: var(--red); }
.rt-row b { font-family: var(--disp); font-weight: 800; font-size: 18px; }
.res-side { display: grid; gap: 16px; align-content: start; }
.res-xp, .res-fun { padding: 18px; }
.res-xp h4, .res-fun h4 { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; }
.xp-gain { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 44px; color: var(--gold); line-height: 1; }
.xp-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); margin: 10px 0 6px; }
.unl { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4); font-size: 14px; animation: rise .5s var(--ease) both; }
.unl b { color: var(--gold); }
.fun-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fun-row b { font-family: var(--disp); font-weight: 800; font-size: 17px; }
.res-actions { margin-top: 22px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.res-next { margin-right: auto; font-size: 15px; color: var(--ink2); }
.res-next b { color: #fff; font-family: var(--disp); font-size: 20px; }
#toasts { position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 12px; background: rgba(10,13,21,.9); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; animation: toast 3s var(--ease) forwards; white-space: nowrap; }
.toast.warn { border-color: rgba(255,181,71,.5); color: #ffe2b0; } .toast.gold { border-color: rgba(251,191,36,.6); color: var(--gold); } .toast.err { border-color: rgba(255,46,77,.6); color: #ffd0d8; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
#reconnect { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -260%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px; background: rgba(40,10,16,.92); border: 1px solid rgba(255,46,77,.5); transition: transform .4s var(--spring); font-size: 14px; }
#reconnect.show { transform: translate(-50%, 0); }
#reconnect b { font-weight: 700; } #reconnect span { color: var(--ink2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.modal.show { opacity: 1; visibility: visible; transition: opacity .2s; }
.modal-box { width: min(440px, 90vw); padding: 24px; border-radius: 18px; background: #11151f; border: 1px solid var(--line2); }
.modal-box h3 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 30px; text-transform: uppercase; }
.modal-box p { margin-top: 8px; color: var(--ink2); line-height: 1.5; font-size: 15px; }
.modal-actions { margin-top: 18px; display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 1100px) {
  .play-grid, .howto-grid { grid-template-columns: 1fr; }
  .lobby-body { grid-template-columns: 1fr; }
  .menu-left { left: 32px; } .menu-list { width: 380px; }
  .player-card { right: 24px; bottom: 24px; width: 300px; }
  .settings-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-height: 760px) {
  .logo .word { font-size: 70px; } .menu-list { margin-top: 26px; } .mi .lbl { font-size: 28px; } .mi.primary .lbl { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------- v2 HUD: weapon slots, recall, scope, spawn menu, face picker ---------------- */
.wslots { display: flex; gap: 6px; }
.wslots .ws { position: relative; width: 46px; height: 34px; border-radius: 8px; background: rgba(10,13,21,.55); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; transition: transform .18s var(--spring), background .2s, border-color .2s, opacity .2s; opacity: .62; }
.wslots .ws svg { width: 34px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wslots .ws em { position: absolute; left: 4px; top: 1px; font-family: var(--disp); font-style: normal; font-weight: 700; font-size: 10px; color: var(--mute); }
.wslots .ws.on { opacity: 1; background: rgba(255,62,165,.18); border-color: rgba(255,62,165,.7); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(255,62,165,.25); }
.wslots .ws.off { opacity: .22; }
.speedo .alt { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--cyan); margin-left: 8px; }
.recall { position: absolute; left: 262px; bottom: 58px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 9px; background: rgba(10,13,21,.55); border: 1px solid rgba(255,255,255,.1); font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; }
.recall kbd { min-width: 22px; height: 20px; font-size: 11px; }
.recall i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--cyan); width: 100%; transform-origin: left; transition: transform .25s linear; }
.recall.cool { color: var(--mute); }
.recall.ready span { color: #bff6ff; }
.scope { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .12s; background: radial-gradient(circle at 50% 50%, transparent 0 31vmin, rgba(0,0,0,.92) 31.4vmin); }
.scope.show { opacity: 1; }
.scope i { position: absolute; left: 50%; top: 50%; width: 62vmin; height: 62vmin; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.8), inset 0 0 60px rgba(0,0,0,.6);
  background: linear-gradient(#0008, #0008) 50% 0/1.5px 100% no-repeat, linear-gradient(#0008, #0008) 0 50%/100% 1.5px no-repeat; }
.scope i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #ff3e5a; box-shadow: 0 0 8px #ff3e5a; }
.spawn-menu, .face-picker { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-46%) scale(.96); opacity: 0; pointer-events: none; padding: 20px 22px 16px; border-radius: 18px; background: var(--glass2); border: 1px solid var(--line2); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 24px 80px rgba(0,0,0,.5); transition: opacity .2s var(--ease), transform .25s var(--spring); z-index: 5; }
.spawn-menu.show, .face-picker.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.spawn-menu h3, .face-picker h3 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 28px; text-transform: uppercase; margin-bottom: 14px; }
.spawn-menu p, .face-picker p { margin-top: 12px; font-size: 12px; color: var(--mute); }
.sp-grid { display: grid; grid-template-columns: repeat(4, 132px); gap: 10px; }
.sp-grid button { position: relative; height: 132px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: transform .2s var(--spring), background .2s, border-color .2s; }
.sp-grid button:hover { transform: translateY(-3px); background: rgba(45,226,255,.1); border-color: rgba(45,226,255,.55); }
.sp-grid button kbd { position: absolute; left: 8px; top: 8px; }
.sp-grid svg { width: 64px; height: 44px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-grid b { font-family: var(--disp); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.sp-grid small { position: absolute; bottom: 8px; font-size: 11px; color: var(--amber); font-weight: 700; }
.fp-grid { display: grid; grid-template-columns: repeat(6, 68px); gap: 8px; }
.fp-grid button { width: 68px; height: 68px; border-radius: 12px; border: 2px solid transparent; background-color: rgba(255,255,255,.06); background-repeat: no-repeat; transition: transform .18s var(--spring), border-color .2s; }
.fp-grid button:hover { transform: scale(1.08); }
.fp-grid button.locked { opacity: .3; filter: grayscale(1); }
.fp-grid button.on { border-color: var(--pink); box-shadow: 0 0 18px rgba(255,62,165,.45); }
.hint-keys { left: 262px; }
