/* Hobley Prop Hunt: shell + HUD. Dark glass, chunky rounded type, hunters orange, props teal. */
:root {
  --hunter: #ff7a1a;
  --prop: #21d4c4;
  --ghost: #a9b4c8;
  --gold: #ffd23f;
  --danger: #ff3b5c;
  --good: #7be36a;
  --ink: #0b0d14;
  --bg: #0b0d14;
  --panel: rgba(13, 15, 25, 0.72);
  --panel-2: rgba(20, 23, 38, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --team: #c9d3e3;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", "Nunito", "Segoe UI Black", system-ui, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r: 14px;
  --strip-top: 0px;
  --strip-bot: 0px;
  --cam-w: 112px;
  --cam-h: 84px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.4 var(--ui); -webkit-font-smoothing: antialiased; }
canvas#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
canvas#menubg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hidden { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--prop); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); border-bottom-width: 2px; font: 800 11px/1 var(--display); color: #fff; letter-spacing: 0.02em; }

/* ---------- buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255,255,255,0.07); border-radius: 12px; padding: 9px 14px; font-weight: 700; transition: transform .12s, background .15s, box-shadow .15s, filter .15s; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn.primary { background: linear-gradient(180deg, #ff9a45, var(--hunter)); border-color: rgba(255,255,255,0.25); color: #1d0c00; box-shadow: 0 4px 0 #b44c00, 0 8px 24px rgba(255,122,26,0.35); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); background: linear-gradient(180deg, #ffa95e, #ff8530); }
.btn.big { width: 100%; padding: 13px 16px; font: 900 17px/1 var(--display); letter-spacing: 0.02em; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: rgba(255,59,92,0.16); border-color: rgba(255,59,92,0.5); color: #ffb1bf; }
.btn.ghost-btn { background: transparent; }
input, select { background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; width: 100%; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--prop); outline-offset: 0; }
label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin: 0 0 12px; }
label input { margin-top: 5px; font-size: 15px; }
.err { color: #ff8fa2; min-height: 1.2em; margin: 4px 0 10px; font-weight: 600; }
.fine { color: var(--muted); font-size: 12px; margin: 10px 0 0; text-align: center; }
.row { display: flex; gap: 8px; align-items: center; }
/* toggle switch */
label.tog { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; cursor: pointer; user-select: none; }
label.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.tog i { width: 40px; height: 22px; border-radius: 99px; background: rgba(255,255,255,0.14); position: relative; flex: none; transition: background .2s; }
label.tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.5,1.8,.5,1); }
label.tog input:checked + i { background: var(--prop); }
label.tog input:checked + i::after { transform: translateX(18px); }

/* ---------- menu screens */
.screen.menu { position: fixed; inset: 0; z-index: 10; overflow: auto; display: grid; place-items: center; padding: 24px 16px; }
.screen.menu::before { content: ""; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,0) 0, rgba(5,6,12,0.55) 70%), linear-gradient(180deg, rgba(5,6,12,0.55), rgba(5,6,12,0.1) 40%, rgba(5,6,12,0.6)); pointer-events: none; z-index: -1; }
.menu-wrap { width: min(1100px, 100%); position: relative; }
.menu-wrap.narrow { width: min(420px, 100%); }
.card { background: rgba(12, 14, 24, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
.card h3 { margin: 2px 0 12px; font: 900 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 + * { margin-top: 0; }
.tabs2 { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(255,255,255,0.05); padding: 4px; border-radius: 14px; }
.tabs2 button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 9px; font-weight: 800; cursor: pointer; color: var(--muted); }
.tabs2 button.on { background: rgba(255,255,255,0.12); color: #fff; }
.reg-only { display: none; }
form.register .reg-only { display: block; }

/* logo with a googly eye for the O */
.logo { text-align: center; margin-bottom: 22px; user-select: none; }
.logo-k { font: 900 15px/1 var(--display); letter-spacing: 0.5em; color: var(--gold); margin-bottom: 4px; text-shadow: 0 2px 0 #000; padding-left: 0.5em; }
.logo-main { font: 900 72px/1 var(--display); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.02em; white-space: nowrap; filter: drop-shadow(0 6px 0 rgba(0,0,0,0.6)) drop-shadow(0 18px 30px rgba(0,0,0,0.5)); }
.logo-main .lp { color: var(--prop); -webkit-text-stroke: 2px #063b37; transform: rotate(-3deg); display: inline-block; }
.logo-main .lh { color: var(--hunter); -webkit-text-stroke: 2px #4d2100; transform: rotate(2deg) translateY(4px); display: inline-block; margin-left: 0.18em; }
.logo-main .eye { width: 0.74em; height: 0.74em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e8eef3 60%, #b8c3cc); border: 0.09em solid #063b37; display: inline-grid; place-items: center; margin: 0 0.02em; position: relative; top: 0.02em; box-shadow: inset 0 -0.05em 0.1em rgba(0,0,0,0.25); }
.logo-main .eye i { width: 46%; height: 46%; border-radius: 50%; background: #0b0d14; transition: transform .08s linear; box-shadow: inset 0.06em -0.04em 0 rgba(255,255,255,0.35); }
.logo-tag { font: 800 16px/1.2 var(--display); color: #e7ddff; margin-top: 10px; opacity: 0.85; }
.logo.small { margin: 0; text-align: left; }
.logo.small .logo-main { font-size: 40px; filter: drop-shadow(0 3px 0 rgba(0,0,0,0.6)); }
.mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.me-chip { background: rgba(12,14,24,0.8); border: 1px solid var(--line); padding: 8px 14px; border-radius: 99px; display: flex; gap: 12px; font-weight: 800; }
.me-chip a { color: var(--muted); font-weight: 600; }
.touch-note { background: rgba(255,59,92,0.18); border: 1px solid rgba(255,59,92,0.5); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 800; text-align: center; }

.lb-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.lb-side { display: grid; gap: 18px; }
@media (max-width: 860px) { .lb-grid { grid-template-columns: 1fr; } .logo-main { font-size: 54px; } }
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chars button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 8px 12px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255,255,255,0.03); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.chars button:hover { transform: translateY(-3px); border-color: var(--line-2); }
.chars button canvas { width: 100%; height: auto; aspect-ratio: 24 / 26; border-radius: 11px; background: radial-gradient(ellipse at 50% 30%, #2c3350, #121522 70%); display: block; }
.chars button b { font: 900 18px/1 var(--display); margin-top: 8px; }
.chars button span { color: var(--muted); font-size: 12px; text-align: center; min-height: 2.6em; }
.chars button.on { border-color: var(--hunter); background: rgba(255,122,26,0.1); box-shadow: 0 0 0 4px rgba(255,122,26,0.15), 0 12px 30px rgba(255,122,26,0.15); }
.chars button.on b::after { content: " ✓"; color: var(--hunter); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats .st { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stats .st b { display: block; font: 900 22px/1.1 var(--display); color: var(--gold); }
.stats .st span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stats .st.wide { grid-column: 1 / -1; }
.stats .st.wide b { font-size: 15px; color: var(--text); }
.lobby-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.lobby-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.035); }
.lobby-list li.empty { color: var(--muted); justify-content: center; padding: 22px; font-weight: 600; }
.lobby-list .ll-main { flex: 1; min-width: 0; }
.lobby-list .ll-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.lobby-list .meta { color: var(--muted); font-size: 12px; }
.lobby-list .meta em { font-style: normal; color: var(--prop); font-weight: 700; }
.lobby-list .meta em.live { color: var(--hunter); }
.lobby-list .ll-count { font: 800 13px/1 var(--display); color: var(--muted); }
.lobby-list .ll-count b { font-size: 20px; color: var(--text); }
.code-in { text-transform: uppercase; letter-spacing: 0.4em; font: 900 20px/1 var(--display); text-align: center; }
#codeForm .btn { flex: none; padding: 11px 18px; }
#createForm .btn { margin-top: 4px; }
.lb-side h3:not(:first-child) { margin-top: 20px; }
.howto-card { margin-top: 18px; padding: 0; }
.howto-card summary { cursor: pointer; padding: 16px 22px; font: 900 15px/1 var(--display); letter-spacing: 0.06em; list-style: none; }
.howto-card summary::after { content: " +"; color: var(--hunter); }
.howto-card[open] summary::after { content: " -"; }
.howto-card > div { padding: 0 22px 20px; }

/* how to play */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ht { border-radius: 14px; padding: 12px 12px 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.ht-prop { --c: var(--prop); } .ht-hunter { --c: var(--hunter); } .ht-ghost { --c: var(--ghost); }
.ht h4 { margin: 0; font: 900 20px/1 var(--display); color: var(--c); }
.ht p { margin: 3px 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.kr { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 7px; font-size: 12.5px; line-height: 1.3; }
.kr kbd { flex: none; min-width: 0; height: auto; padding: 3px 6px; white-space: nowrap; }
.ht-all { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 6px; font-size: 12.5px; color: var(--muted); }
.ht-all span { display: inline-flex; gap: 6px; align-items: center; }
.ht-score { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.ht-score b { color: var(--gold); }
@media (max-width: 860px) { .howto { grid-template-columns: 1fr; } }

/* ---------- in game */
#game { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#game > * { pointer-events: none; }
.click-play { position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%); pointer-events: auto !important; cursor: pointer; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 26px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: breathe 2s ease-in-out infinite; z-index: 30; }
.click-play b { display: block; font: 900 22px/1.1 var(--display); }
.click-play span { color: var(--muted); font-size: 12px; font-weight: 700; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.net-pill { position: absolute; top: calc(var(--strip-top) + 70px); left: 50%; transform: translateX(-50%); z-index: 60; background: rgba(140, 20, 40, 0.85); border: 1px solid rgba(255,59,92,0.7); border-radius: 99px; padding: 8px 18px; font-weight: 800; }

/* ---------- cam strip */
.camstrip { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 8px 12px; z-index: 20; transition: transform .3s cubic-bezier(.3,1.3,.5,1), opacity .25s; pointer-events: none; }
.camstrip-top { top: 0; }
.camstrip-bot { bottom: 0; }
.camstrip.off { opacity: 0; transform: translateY(-30px); }
.camstrip-bot.off { transform: translateY(30px); }
.cam-tile { position: relative; width: var(--cam-w); height: var(--cam-h); border-radius: 12px; overflow: hidden; flex: none; background: #11141f; --tc: #8d97ad; box-shadow: 0 0 0 2px var(--tc), 0 6px 16px rgba(0,0,0,0.45); transition: box-shadow .15s, filter .3s, opacity .3s, transform .15s; animation: tile-in .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes tile-in { from { transform: scale(0.4); opacity: 0; } }
.cam-tile.team-hunter { --tc: var(--hunter); }
.cam-tile.team-prop { --tc: var(--prop); }
.cam-tile.team-ghost { --tc: #5d6578; }
.cam-tile .cam-init { position: absolute; inset: 0; display: grid; place-items: center; font: 900 calc(var(--cam-h) * 0.48)/1 var(--display); color: rgba(255,255,255,0.92); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pc) 75%, #fff 10%), color-mix(in srgb, var(--pc) 55%, #000 45%)); text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.cam-tile .cam-vid { position: absolute; inset: 0; }
.cam-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.cam-tile.me video, video.mirror { transform: scaleX(-1); }
.cam-tile.live .cam-init { visibility: hidden; }
.cam-tile .cam-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 3px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); font: 800 11px/1.1 var(--display); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.cam-tile .cam-name b { overflow: hidden; text-overflow: ellipsis; font-weight: 900; }
.cam-tile .cam-crown { display: none; color: var(--gold); width: 12px; height: 12px; flex: none; }
.cam-tile.host .cam-crown { display: inline-block; }
.cam-tile .cam-crown .ic { width: 12px; height: 12px; }
.cam-tile .cam-mute { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(220, 30, 60, 0.92); display: none; place-items: center; }
.cam-tile .cam-mute .ic { width: 13px; height: 13px; color: #fff; }
.cam-tile.muted .cam-mute { display: grid; }
.cam-tile.novoice .cam-mute { display: grid; background: rgba(0,0,0,0.55); }
.cam-tile .cam-ghost { position: absolute; top: 3px; left: 4px; width: 22px; height: 22px; color: #fff; display: none; filter: drop-shadow(0 1px 2px #000); animation: floaty 1.6s ease-in-out infinite; }
.cam-tile.ghost .cam-ghost { display: block; }
.cam-tile.ghost .cam-vid, .cam-tile.ghost .cam-init { filter: grayscale(1) brightness(0.7) contrast(1.1); }
.cam-tile.ghost { opacity: 0.8; }
.cam-tile.away { opacity: 0.4; }
.cam-tile .cam-eq { position: absolute; top: 6px; left: 6px; display: none; gap: 2px; align-items: flex-end; height: 12px; }
.cam-tile .cam-eq i { width: 3px; background: #b6ff5c; border-radius: 2px; animation: eq .5s ease-in-out infinite alternate; }
.cam-tile .cam-eq i:nth-child(2) { animation-delay: -.2s; } .cam-tile .cam-eq i:nth-child(3) { animation-delay: -.35s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.cam-tile.speaking { box-shadow: 0 0 0 3px #b6ff5c, 0 0 18px 4px rgba(182, 255, 92, 0.55), 0 6px 16px rgba(0,0,0,0.45); transform: translateY(2px) scale(1.04); z-index: 1; }
.cam-tile.speaking .cam-eq { display: flex; }
.cam-tile.ghost.speaking .cam-eq { left: 26px; }
@keyframes floaty { 50% { transform: translateY(-3px); } }
.cam-dock { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 21; pointer-events: auto !important; }
.cam-dock button { width: 30px; height: 26px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cam-dock button .ic { width: 16px; height: 16px; }
.cam-dock button.on { color: #b6ff5c; border-color: rgba(182,255,92,0.5); }
.cam-dock button.muted { color: var(--danger); }
.cam-dock.collapsed button:not([data-ctl=hide]) { display: none; }
.cam-dock.collapsed [data-ctl=hide] { color: var(--hunter); }
body:not(.menu-open) .cam-dock { opacity: 0.55; }
body.in-game:not(.menu-open) .cam-dock:hover { opacity: 1; }

/* ---------- HUD root */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; --team: #c9d3e3; }
.hud.team-hunter { --team: var(--hunter); }
.hud.team-prop { --team: var(--prop); }
.hud.team-ghost { --team: var(--ghost); }
.hud.phase-none > :not(.ov):not(.banners):not(.toasts) { display: none; }

/* phase pill */
.hud-top { position: absolute; top: calc(var(--strip-top) + 8px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: top .3s; }
.phase-pill { display: flex; align-items: stretch; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.pp-round { padding: 6px 12px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border-right: 1px solid var(--line); }
.pp-round small { font: 800 9px/1 var(--display); letter-spacing: 0.14em; color: var(--muted); }
.pp-round b { font: 900 18px/1 var(--display); }
.pp-main { padding: 5px 16px 6px; text-align: center; min-width: 132px; }
.pp-phase { font: 900 11px/1 var(--display); letter-spacing: 0.18em; color: var(--team); margin-top: 3px; }
.pp-timer { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; text-shadow: 0 2px 0 rgba(0,0,0,0.4); }
.pp-timer.bump { animation: bump .35s cubic-bezier(.3,2,.5,1); }
@keyframes bump { 0% { transform: scale(1.35); } }
.hud.t-warn .pp-timer { color: var(--gold); }
.hud.t-crit .pp-timer { color: var(--danger); }
.pp-team { display: grid; place-items: center; padding: 0 12px; background: color-mix(in srgb, var(--team) 22%, transparent); border-left: 1px solid var(--line); }
.team-chip { font: 900 13px/1 var(--display); letter-spacing: 0.1em; color: var(--team); }
.hud-sub { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hud-sub > span { display: inline-flex; align-items: center; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 7px; font: 800 12px/1.3 var(--display); }
.hud-sub .ic { width: 14px; height: 14px; color: var(--team); }
.hud-sub .count b { color: var(--prop); font-size: 14px; }
.hud-sub .ev { letter-spacing: 0.08em; }
.hud-sub .ev-blackout { background: rgba(120, 30, 160, 0.6); border-color: rgba(200, 120, 255, 0.6); animation: flick 3s infinite; }
.hud-sub .ev-blackout .ic { color: #e8c0ff; }
.hud-sub .ev-last { background: rgba(200, 20, 60, 0.6); border-color: rgba(255, 80, 120, 0.7); animation: beat 1s infinite; }
.hud-sub .ev-last .ic { color: #fff; }
.hud-sub .zone.pop { animation: pop .4s cubic-bezier(.3,2,.5,1); }
@keyframes flick { 0%, 40%, 44%, 100% { opacity: 1; } 42% { opacity: 0.3; } 70% { opacity: 0.85; } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(1); } 45% { transform: scale(1.06); } }
@keyframes pop { 0% { transform: scale(0.6); } }
.warmup-pill { display: none; }
.hud.phase-lobby .warmup-pill:not(.hidden) { display: flex; gap: 10px; align-items: center; background: rgba(255, 210, 63, 0.14); border: 1px solid rgba(255, 210, 63, 0.4); border-radius: 99px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.warmup-pill b { font: 900 12px/1 var(--display); letter-spacing: 0.14em; color: var(--gold); }
.hud.phase-lobby .hud-top .phase-pill .pp-round { display: none; }

/* killfeed */
.killfeed { position: absolute; top: calc(var(--strip-top) + 10px); right: 50px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 40vw; }
.kf { display: flex; align-items: center; gap: 7px; background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font: 800 13px/1.2 var(--display); animation: kf-in .3s cubic-bezier(.3,1.5,.5,1); transition: opacity .5s, transform .5s; white-space: nowrap; }
.kf.mine { border-color: rgba(255,210,63,0.6); box-shadow: 0 0 0 1px rgba(255,210,63,0.25); }
.kf.out { opacity: 0; transform: translateX(20px); }
.kf b { color: var(--pc); }
.kf .hn { text-decoration: underline 2px var(--hunter); text-underline-offset: 3px; }
.kf .pn { text-decoration: underline 2px var(--prop); text-underline-offset: 3px; }
.kf i { width: 18px; height: 18px; color: var(--hunter); display: grid; }
.kf.how-self i { color: #ddd; }
.kf .ic { width: 18px; height: 18px; }
.kf .pr { color: var(--muted); font-weight: 700; font-size: 12px; }
@keyframes kf-in { from { transform: translateX(40px); opacity: 0; } }

/* crosshair + hits */
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.crosshair i { position: absolute; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.55); transition: transform .12s; }
.crosshair b { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.6); }
.crosshair.kind-none { display: none; }
.crosshair.kind-hunter i:nth-child(1) { left: -1px; top: -14px; width: 2px; height: 8px; }
.crosshair.kind-hunter i:nth-child(2) { left: -1px; top: 6px; width: 2px; height: 8px; }
.crosshair.kind-hunter i:nth-child(3) { top: -1px; left: -14px; height: 2px; width: 8px; }
.crosshair.kind-hunter i:nth-child(4) { top: -1px; left: 6px; height: 2px; width: 8px; }
.crosshair.kind-hunter b { background: var(--hunter); }
.crosshair.kind-prop i, .crosshair.kind-ghost i { display: none; }
.crosshair.kind-prop b { width: 6px; height: 6px; left: -3px; top: -3px; background: rgba(255,255,255,0.85); }
.crosshair.kind-prop.tgt-prop b { width: 34px; height: 34px; left: -17px; top: -17px; background: transparent; border: 3px solid var(--prop); box-shadow: 0 0 12px rgba(33,212,196,0.6), inset 0 0 0 1px rgba(0,0,0,0.4); animation: tgt .9s ease-in-out infinite; }
.crosshair.kind-ghost b { width: 22px; height: 22px; left: -11px; top: -11px; background: transparent; border: 2px dashed rgba(220, 230, 255, 0.8); box-shadow: none; animation: spin 6s linear infinite; }
.crosshair.kind-ghost.tgt-prop b { border-color: #c8a6ff; border-style: solid; box-shadow: 0 0 14px rgba(200,166,255,0.8); }
@keyframes tgt { 50% { transform: scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
.xh-hint { position: absolute; left: 26px; top: 14px; white-space: nowrap; font: 800 13px/1 var(--display); text-shadow: 0 1px 3px #000; display: flex; gap: 6px; align-items: center; }
.xh-hint:empty { display: none; }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.hitmarker i { position: absolute; width: 3px; height: 10px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.5); }
.hitmarker i:nth-child(1) { transform: translate(-12px, -14px) rotate(-45deg); } .hitmarker i:nth-child(2) { transform: translate(9px, -14px) rotate(45deg); }
.hitmarker i:nth-child(3) { transform: translate(-12px, 4px) rotate(45deg); } .hitmarker i:nth-child(4) { transform: translate(9px, 4px) rotate(-45deg); }
.hitmarker.show { animation: hm .35s ease-out; }
.hitmarker.kill i { background: var(--gold); height: 14px; }
.hitmarker.kill.show { animation: hm-kill .6s ease-out; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1); } }
@keyframes hm-kill { 0% { opacity: 1; transform: scale(2) rotate(0); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) rotate(45deg); } }

/* banners */
.banners { position: absolute; left: 0; right: 0; top: calc(var(--strip-top) + 13vh); display: grid; place-items: center; z-index: 25; }
.banners.held { opacity: 0; transition: opacity .15s; }
.banner { text-align: center; position: relative; padding: 6px 40px 10px; animation: bn-in .45s cubic-bezier(.2,1.6,.4,1); --bc: #fff; }
.banner.k-hunter { --bc: var(--hunter); } .banner.k-prop { --bc: var(--prop); } .banner.k-danger { --bc: var(--danger); }
.banner.k-event { --bc: var(--gold); } .banner.k-good { --bc: var(--good); }
.banner.k-blackout { --bc: #c58bff; } .banner.k-blackout .bn-title { animation: flick 2.2s infinite; }
.banner.k-lastprop { --bc: #ff4f6d; } .banner.k-lastprop .bn-title { animation: beat 1s infinite; }
.banner.k-released { --bc: var(--gold); }
.banner.out { animation: bn-out .38s ease-in forwards; }
.bn-title { font: 900 clamp(44px, 6.4vw, 92px)/0.95 var(--display); letter-spacing: 0.01em; color: var(--bc); -webkit-text-stroke: 3px rgba(0,0,0,0.75); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,0.55), 0 0 40px color-mix(in srgb, var(--bc) 50%, transparent); white-space: nowrap; }
.bn-title span { display: inline-block; animation: letter .5s cubic-bezier(.2,1.8,.4,1) backwards; animation-delay: calc(var(--i) * 28ms); }
.bn-sub { font: 800 17px/1.3 var(--display); margin-top: 6px; color: #fff; text-shadow: 0 2px 6px #000, 0 0 2px #000; display: inline-block; background: rgba(0,0,0,0.45); padding: 4px 14px; border-radius: 99px; }
.bn-streak { position: absolute; left: 50%; top: 45%; width: 120%; height: 64%; transform: translate(-50%, -50%) skewX(-12deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bc) 30%, transparent) 20%, color-mix(in srgb, var(--bc) 30%, transparent) 80%, transparent); z-index: -1; animation: streak .5s ease-out; }
@keyframes bn-in { from { transform: scale(2.2); opacity: 0; filter: blur(6px); } }
@keyframes bn-out { to { transform: scale(0.85) translateY(-20px); opacity: 0; } }
@keyframes letter { from { transform: translateY(-40px) scale(1.6); opacity: 0; } }
@keyframes streak { from { width: 0; } }

/* toasts + points */
.toasts { position: absolute; left: 0; right: 0; bottom: calc(var(--strip-bot) + 200px); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 24; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 16px; font: 800 14px/1.2 var(--display); box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: toast-in .3s cubic-bezier(.3,1.6,.5,1); transition: opacity .35s, transform .35s; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { transform: translateY(14px) scale(0.9); opacity: 0; } }
.pts { position: absolute; left: calc(50% + 46px); top: calc(50% + 10px); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pt { white-space: nowrap; animation: pt 1.9s cubic-bezier(.2,1,.3,1) forwards; display: flex; align-items: baseline; gap: 7px; }
.pt b { font: 900 26px/1 var(--display); -webkit-text-stroke: 2px rgba(0,0,0,0.7); paint-order: stroke fill; }
.pt.pos b { color: var(--gold); }
.pt.neg b { color: var(--danger); }
.pt.big b { font-size: 38px; }
.pt span { font: 800 14px/1 var(--display); text-shadow: 0 1px 3px #000, 0 0 2px #000; }
@keyframes pt { 0% { transform: translate(-10px, 10px) scale(0.4); opacity: 0; } 12% { transform: translate(0, 0) scale(1.15); opacity: 1; } 22% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: translate(14px, -50px); opacity: 0; } }

/* spectate */
.spectate { position: absolute; left: 50%; bottom: calc(var(--strip-bot) + 104px); transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.spectate .ic { width: 20px; height: 20px; color: var(--ghost); }
.spectate b { font-family: var(--display); font-size: 16px; }
.spectate small { color: var(--muted); }

/* vitals: bottom left */
.vitals { position: absolute; left: 16px; bottom: calc(var(--strip-bot) + 16px); display: flex; align-items: flex-end; gap: 10px; }
.vitals.shake { animation: shake .35s; }
.hp { display: flex; align-items: center; gap: 10px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; padding: 9px 14px 9px 10px; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hp-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--team) 25%, transparent); color: var(--team); }
.hp-ic .ic { width: 24px; height: 24px; }
.hud.low-hp .hp-ic { animation: beat .9s infinite; color: var(--danger); background: rgba(255,59,92,0.25); }
.hp-body { flex: 1; }
.hp-num { display: flex; align-items: baseline; gap: 2px; }
.hp-num b { font: 900 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.hp-num small { color: var(--muted); font-weight: 800; }
.hp .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; margin-top: 5px; }
.hp .bar .fill, .hp .bar .trail { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 100%; }
.hp .bar .fill { background: linear-gradient(90deg, color-mix(in srgb, var(--team) 70%, #fff 0%), var(--team)); transition: width .2s; }
.hp .bar .trail { background: #fff; opacity: 0.6; transition: width .6s ease-in; }
.hud.low-hp .hp .bar .fill { background: var(--danger); }
.hp.heal { animation: heal .6s; }
@keyframes heal { 30% { box-shadow: 0 0 0 3px var(--good), 0 0 30px rgba(123,227,106,0.6); } }
.stam { margin-top: 4px; height: 4px; transition: opacity .4s; }
.stam .bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.stam .fill { height: 100%; width: 100%; background: linear-gradient(90deg, #7de1ff, #c8f4ff); border-radius: 99px; }
.stam.low .fill { background: var(--gold); }
.stam.full { opacity: 0; }
.hud.team-ghost .stam, .hud.team-lobby .stam { display: none; }
.ammo { display: none; position: relative; background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px 14px; min-width: 134px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hud.team-hunter .ammo, .hud.role-hunter .ammo { display: block; }
.ammo-num { display: flex; align-items: baseline; gap: 2px; }
.ammo-num b { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--hunter); }
.ammo-num small { color: var(--muted); font-weight: 800; }
.ammo-num.kick { animation: kick .12s; }
@keyframes kick { 50% { transform: translateY(-3px) scale(1.06); } }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-top: 5px; width: 104px; }
.pips i { height: 5px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.pips i.on { background: var(--hunter); }
.ammo.low .ammo-num b { color: var(--gold); }
.ammo .reload, .ammo .ammo-empty { display: none; }
.ammo.reloading .reload { display: block; position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: rgba(10, 12, 20, 0.85); }
.ammo .reload .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,122,26,0.35); }
.ammo .reload .fill.go { animation: reload 1.6s linear forwards; }
.ammo .reload span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 13px/1 var(--display); letter-spacing: 0.14em; }
@keyframes reload { to { width: 100%; } }
.ammo.empty .ammo-empty { display: grid; place-items: center; position: absolute; inset: 0; border-radius: 16px; background: rgba(140, 20, 40, 0.8); font: 900 13px/1 var(--display); letter-spacing: 0.1em; animation: blink .7s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }
.bombs { display: none; gap: 4px; padding: 0 0 6px; }
.hud.team-hunter .bombs, .hud.role-hunter .bombs { display: flex; }
.bombs i { width: 30px; height: 30px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); display: grid; place-items: center; color: rgba(255,255,255,0.18); }
.bombs i.on { color: #ff4f8b; }
.bombs .ic { width: 20px; height: 20px; }
.bombs.kick { animation: kick .25s; }
.torch-ic { display: none; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line-2); place-items: center; color: rgba(255,255,255,0.25); }
.hud.team-hunter .torch-ic, .hud.role-hunter .torch-ic { display: grid; }
.torch-ic .ic { width: 20px; height: 20px; }
.torch-ic.on { color: #fff3b0; box-shadow: 0 0 18px rgba(255, 240, 160, 0.6); border-color: rgba(255,240,160,0.6); }

/* ability bar: bottom centre */
.abilities { position: absolute; left: 50%; bottom: calc(var(--strip-bot) + 14px); transform: translateX(-50%); display: flex; gap: 16px; }
.ab { position: relative; width: 66px; height: 70px; border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 7px; box-shadow: 0 8px 22px rgba(0,0,0,0.35); overflow: visible; }
.ab::before { content: ""; position: absolute; inset: 0; border-radius: 15px; background: conic-gradient(rgba(0,0,0,0.72) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; z-index: 1; }
.ab::after { content: ""; position: absolute; inset: -2px; border-radius: 17px; padding: 2px; background: conic-gradient(var(--team) calc((1 - var(--cd)) * 360deg), rgba(255,255,255,0.08) 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ab-ic { width: 30px; height: 30px; color: var(--team); }
.ab-ic .ic { width: 30px; height: 30px; }
.ab kbd { position: absolute; top: -8px; left: -6px; z-index: 2; background: #1b1f2e; border-color: var(--line-2); min-width: 24px; height: 21px; }
.ab span { font: 800 11.5px/1 var(--display); margin-top: 6px; color: #e9edf6; white-space: nowrap; position: relative; z-index: 2; }
.ab-cnt { position: absolute; top: -7px; right: -6px; z-index: 2; min-width: 20px; height: 20px; border-radius: 99px; background: var(--team); color: #111; font: 900 12px/20px var(--display); text-align: center; padding: 0 5px; }
.ab-cnt:empty { display: none; }
.ab.cooling .ab-ic, .ab.empty .ab-ic { opacity: 0.45; }
.ab.empty { opacity: 0.45; }
.ab.empty .ab-cnt { background: #444; color: #aaa; }
.ab.active { border-color: var(--team); box-shadow: 0 0 0 1px var(--team), 0 0 20px color-mix(in srgb, var(--team) 45%, transparent); }
.ab.pop { animation: abpop .45s cubic-bezier(.3,2,.5,1); }
.ab.used { animation: abused .3s; }
@keyframes abpop { 0% { transform: scale(1.25); box-shadow: 0 0 0 4px var(--team), 0 0 30px var(--team); } }
@keyframes abused { 40% { transform: scale(0.86); } }
.hud.role-lobby .abilities, .hud.phase-roundEnd .abilities, .hud.phase-matchEnd .abilities { display: none; }

/* disguise tag */
.disguise-tag { position: absolute; left: 50%; bottom: calc(var(--strip-bot) + 98px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid rgba(33,212,196,0.5); border-radius: 99px; padding: 5px 14px 5px 6px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.disguise-tag .lk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--muted); }
.disguise-tag .lk .ic { width: 15px; height: 15px; }
.disguise-tag.locked .lk { background: var(--gold); color: #2b2000; }
.disguise-tag .lk.pop { animation: pop .35s cubic-bezier(.3,2,.5,1); }
.dt-k { color: var(--muted); font-weight: 700; font-size: 12px; }
.disguise-tag b { font: 900 17px/1 var(--display); color: var(--prop); }
.disguise-tag.poof { animation: poof .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes poof { 0% { transform: translateX(-50%) scale(0.4); filter: blur(4px); } }
.hud.role-lobby .disguise-tag { bottom: calc(var(--strip-bot) + 18px); }

/* taunts: bottom right */
.taunts:has(ol:empty) { display: none; }
.taunts { position: absolute; right: 16px; bottom: calc(var(--strip-bot) + 16px); width: 196px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; padding: 9px 10px 7px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hud:not(.role-prop) .taunts { display: none; }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tl-head b { font: 900 12px/1 var(--display); letter-spacing: 0.14em; color: var(--prop); }
.tl-head span { font-size: 11px; color: var(--muted); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.taunts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.taunts li { display: flex; align-items: center; gap: 7px; font: 700 12.5px/1.25 var(--ui); padding: 2px 4px; border-radius: 7px; white-space: nowrap; overflow: hidden; }
.taunts li span { overflow: hidden; text-overflow: ellipsis; }
.taunts li kbd { min-width: 18px; height: 17px; font-size: 10px; }
.taunts li.hit { animation: thit .6s; }
@keyframes thit { 0% { background: var(--prop); color: #062; transform: scale(1.06); } }
.hud.phase-lobby .taunts { opacity: 0.85; }

/* damage + sniff edge */
.dmg { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 20, 50, 0.55) 100%); }
.dmg.go { animation: dmg .5s ease-out; }
@keyframes dmg { 0% { opacity: 1; } 100% { opacity: 0; } }
.hud.low-hp .dmg { opacity: 0.35; animation: lowhp 1.1s ease-in-out infinite; }
@keyframes lowhp { 50% { opacity: 0.6; } }
.sniff-edge { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(255, 170, 30, 0.85); }
.sniff-edge.go { animation: sniff 2.4s ease-out; }
@keyframes sniff { 0%, 20%, 40% { opacity: 1; } 10%, 30% { opacity: 0.4; } 100% { opacity: 0; } }
.hud.ev-blackout .phase-pill { box-shadow: 0 0 0 1px rgba(200,120,255,0.5), 0 10px 30px rgba(80,0,120,0.5); }

/* ---------- overlays */
.ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.face { position: relative; width: 120px; height: 90px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pc) 75%, #fff 10%), color-mix(in srgb, var(--pc) 50%, #000 50%)); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px var(--fc, #fff), 0 12px 30px rgba(0,0,0,0.5); }
.face.hunter { --fc: var(--hunter); } .face.prop { --fc: var(--prop); } .face.ghost { --fc: var(--ghost); }
.face > span { font: 900 48px/1 var(--display); color: rgba(255,255,255,0.92); text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.face video, .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face em { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); font: 900 12px/1 var(--display); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* intro: team reveal */
.intro { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--team) 28%, rgba(0,0,0,0.5)), rgba(4,5,10,0.88) 70%); }
.intro.go { animation: fadein .3s; }
.in-k { font: 900 26px/1 var(--display); letter-spacing: 0.3em; color: #fff; opacity: 0.85; animation: drop .5s .1s cubic-bezier(.2,1.6,.4,1) backwards; padding-left: 0.3em; }
.in-team { font: 900 clamp(90px, 14vw, 190px)/0.9 var(--display); color: var(--team); -webkit-text-stroke: 5px rgba(0,0,0,0.7); paint-order: stroke fill; text-shadow: 0 10px 0 rgba(0,0,0,0.5), 0 0 80px color-mix(in srgb, var(--team) 60%, transparent); animation: slam .6s .35s cubic-bezier(.2,1.8,.4,1) backwards; }
.in-sub { font: 800 19px/1.3 var(--display); margin-top: 10px; animation: drop .5s .7s backwards; max-width: 640px; }
.in-mates { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; max-width: 900px; }
.in-mates .face { animation: drop .45s cubic-bezier(.2,1.6,.4,1) backwards; animation-delay: calc(1s + var(--i) * 90ms); }
.in-round { margin-top: 22px; color: var(--muted); font: 800 14px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; animation: drop .4s 1.2s backwards; }
@keyframes slam { from { transform: scale(3) rotate(-6deg); opacity: 0; } }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* blindfold */
.blindfold { background: radial-gradient(ellipse at center, #0c0d14, #000 70%); pointer-events: auto; z-index: 18; animation: fadein .5s; }
.blindfold.out { animation: bf-out .45s ease-in forwards; }
@keyframes bf-out { to { opacity: 0; transform: scale(1.1); } }
.bf-band { position: absolute; left: -5%; right: -5%; top: 40%; height: 160px; transform: translateY(-50%) rotate(-3deg); background: repeating-linear-gradient(90deg, #1a1c2a 0 18px, #161826 18px 36px); box-shadow: 0 0 0 2px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.8); opacity: 0.9; }
.bf-k { position: relative; font: 900 24px/1 var(--display); letter-spacing: 0.4em; color: var(--hunter); padding-left: 0.4em; }
.bf-num { position: relative; font: 900 180px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 60px rgba(255,122,26,0.5); margin: 6px 0; }
.bf-num.tick { animation: bftick .5s cubic-bezier(.2,1.8,.4,1); }
.blindfold.final .bf-num { color: var(--hunter); }
@keyframes bftick { from { transform: scale(1.3); opacity: 0.4; } }
.bf-sub { position: relative; font: 800 17px/1.3 var(--display); color: #c9cfe0; }
.bf-cams-k { margin-top: 38px; font: 900 12px/1 var(--display); letter-spacing: 0.2em; color: var(--prop); text-transform: uppercase; }
.bf-cams { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; max-width: 900px; }
.bf-cams .face { width: 104px; height: 78px; }

/* jump scare */
.jumpscare { z-index: 40; background: radial-gradient(ellipse at center, rgba(90,0,10,0.75), rgba(0,0,0,0.95)); overflow: hidden; }
.jumpscare.go { animation: js-bg 1.7s forwards; }
.js-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.jumpscare.go .js-flash { animation: js-flash .35s; }
.js-face { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.js-face .face { width: 62vh; height: 46.5vh; border-radius: 28px; box-shadow: 0 0 0 6px var(--danger), 0 0 120px rgba(255,0,40,0.8); filter: contrast(1.4) saturate(1.3) sepia(0.3) hue-rotate(-20deg); }
.js-face .face > span { font-size: 30vh; }
.jumpscare.go .js-face { animation: js-zoom 1.6s cubic-bezier(.1,1.4,.3,1); }
.js-boo { position: relative; font: 900 min(34vw, 46vh)/0.9 var(--display); color: #fff; -webkit-text-stroke: 8px #000; paint-order: stroke fill; text-shadow: 0 0 60px rgba(255,0,40,0.9), 0 14px 0 #000; }
.jumpscare.go .js-boo { animation: js-boo 1.6s cubic-bezier(.1,1.8,.3,1); }
.js-sub { position: relative; font: 900 22px/1 var(--display); color: #ffd0d8; margin-top: 8px; text-shadow: 0 2px 8px #000; }
@keyframes js-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes js-zoom { 0% { transform: translate(-50%, -50%) scale(0.2) rotate(-8deg); } 15% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); } 100% { transform: translate(-50%, -50%) scale(1.3) rotate(-2deg); } }
@keyframes js-boo { 0% { transform: scale(0.1) rotate(-20deg); } 12% { transform: scale(1.25) rotate(4deg); } 20% { transform: scale(1) rotate(-3deg); } 30%, 50% { transform: scale(1.04) rotate(2deg) translateX(-6px); } 40%, 60% { transform: scale(1.04) rotate(-2deg) translateX(6px); } 100% { transform: scale(1.1); } }
@keyframes js-bg { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
body.shake-hard #scene { animation: shake-hard .6s; }
body.shake-hard .hud > :not(.jumpscare) { animation: shake-hard .6s; }
@keyframes shake-hard { 10%, 50%, 90% { transform: translate(-10px, 6px) rotate(-1deg); } 30%, 70% { transform: translate(10px, -6px) rotate(1deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* caught card */
.caught { position: absolute; left: 50%; top: calc(var(--strip-top) + 96px); transform: translateX(-50%); background: var(--panel-2); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 22px; padding: 12px 18px 14px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); z-index: 22; }
.caught.in { animation: cc-in .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes cc-in { from { transform: translateX(-50%) translateY(-40px) scale(0.6); opacity: 0; } }
.cc-head { font: 900 26px/1 var(--display); color: var(--hunter); letter-spacing: 0.08em; -webkit-text-stroke: 1px rgba(0,0,0,0.4); margin-bottom: 10px; }
.cc-row { display: flex; align-items: center; gap: 12px; justify-content: center; }
.cc-row .face { width: 132px; height: 99px; }
.cc-row .face.prop video, .cc-row .face.prop span { filter: grayscale(0.6); }
.cc-vs { width: 40px; height: 40px; color: var(--hunter); animation: spin 1.5s linear infinite; }
.cc-vs .ic { width: 40px; height: 40px; }
.splat-over { position: absolute; inset: 0; display: grid; place-items: center; animation: splat-in .3s .25s cubic-bezier(.2,1.8,.4,1) backwards; opacity: 0.85; }
.splat-over .ic { width: 110%; height: 110%; }
@keyframes splat-in { from { transform: scale(0); } }
.cc-line { margin-top: 10px; font: 800 16px/1.3 var(--display); }
.cc-line span { color: var(--muted); }
.cc-line.cc-ghost { margin-top: 4px; font-size: 14px; color: #c8d4ff; }

/* scoreboard */
.scoreboard { z-index: 30; background: rgba(4,5,10,0.45); }
.sb-card { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - var(--strip-top) - var(--strip-bot) - 40px); overflow: auto; background: var(--panel-2); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 22px; padding: 16px 18px; text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,0.6); margin-top: calc(var(--strip-top) - var(--strip-bot)); animation: drop .25s cubic-bezier(.2,1.5,.4,1); }
.sb-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sb-title b { font: 900 24px/1 var(--display); letter-spacing: 0.06em; }
.sb-title span { color: var(--muted); font-weight: 700; }
.sb-team { margin-top: 10px; }
.sb-h { display: flex; justify-content: space-between; padding: 4px 4px; border-bottom: 2px solid var(--c); }
.sb-h b { font: 900 14px/1 var(--display); letter-spacing: 0.14em; color: var(--c); }
.sb-h span { color: var(--muted); font-weight: 800; }
.sb-hunter { --c: var(--hunter); } .sb-prop { --c: var(--prop); } .sb-ghost { --c: var(--ghost); } .sb-none { --c: #c9d3e3; }
.sb-team table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sb-team th { text-align: left; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; padding: 6px; }
.sb-team td { padding: 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
.sb-team td.num, .sb-team th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.sb-team td.tot { font: 900 16px/1 var(--display); color: var(--gold); }
.sb-team td.st { color: var(--muted); }
.sb-team tr.me td { background: rgba(255,255,255,0.05); }
.sb-team tr.dead td:first-child { text-decoration: line-through; opacity: 0.6; }
.sb-team .dot, .re-p .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.sb-dis { margin-left: 8px; font-size: 11px; color: var(--prop); background: rgba(33,212,196,0.12); padding: 2px 7px; border-radius: 99px; }

/* round end */
.roundend { z-index: 26; background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(4,5,10,0.85)); }
.roundend.go { animation: fadein .4s; }
.re-card { width: min(980px, calc(100vw - 32px)); margin-top: calc(var(--strip-top) - var(--strip-bot)); }
.re-card.w-props { --w: var(--prop); } .re-card.w-hunters { --w: var(--hunter); }
.re-k { font: 900 15px/1 var(--display); letter-spacing: 0.24em; color: var(--muted); animation: drop .4s backwards; }
.re-title { font: 900 clamp(70px, 10vw, 140px)/0.95 var(--display); color: var(--w); -webkit-text-stroke: 4px rgba(0,0,0,0.7); paint-order: stroke fill; text-shadow: 0 10px 0 rgba(0,0,0,0.5), 0 0 80px color-mix(in srgb, var(--w) 55%, transparent); animation: slam .6s .15s cubic-bezier(.2,1.8,.4,1) backwards; margin: 6px 0 2px; }
.re-sub { font: 800 18px/1.3 var(--display); animation: drop .4s .5s backwards; }
.re-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 12px; margin-top: 22px; text-align: left; }
.re-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; animation: drop .45s .7s cubic-bezier(.2,1.5,.4,1) backwards; }
.re-col:nth-child(2) { animation-delay: .85s; } .re-col:nth-child(3) { animation-delay: 1s; }
.re-col h4 { margin: 0 0 8px; font: 900 13px/1 var(--display); letter-spacing: 0.16em; }
.re-p { display: flex; align-items: center; gap: 4px; padding: 5px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.re-p b { font-weight: 800; }
.re-dis { color: var(--prop); font-weight: 700; font-size: 12.5px; margin-left: 4px; }
.re-st { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.re-p.safe .re-st { color: var(--good); }
.re-p.dead .re-st { color: #ff8fa2; }
.re-pts .re-pt { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); animation: drop .35s backwards; animation-delay: calc(1.2s + var(--i) * 0.12s); }
.re-pt span { font: 900 16px/1 var(--display); color: var(--gold); }
.re-next { margin-top: 18px; color: var(--muted); font: 800 14px/1 var(--display); letter-spacing: 0.06em; }

/* match end: podium + awards */
.matchend { z-index: 27; background: radial-gradient(ellipse at 50% 30%, rgba(60, 30, 90, 0.75), rgba(4, 5, 10, 0.95) 70%); overflow: auto; justify-content: flex-start; padding-top: calc(var(--strip-top) + 18px); padding-bottom: calc(var(--strip-bot) + 18px); }
.matchend.go { animation: fadein .5s; }
.me-wrap { width: min(1100px, calc(100vw - 32px)); }
.me-k { font: 900 14px/1 var(--display); letter-spacing: 0.3em; color: var(--gold); }
.me-title { font: 900 clamp(48px, 6vw, 80px)/1 var(--display); -webkit-text-stroke: 3px rgba(0,0,0,0.6); paint-order: stroke fill; text-shadow: 0 8px 0 rgba(0,0,0,0.5); margin: 4px 0 6px; animation: slam .6s cubic-bezier(.2,1.8,.4,1) backwards; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 6px 0 16px; }
.pd { width: 170px; display: flex; flex-direction: column; align-items: center; animation: rise .7s cubic-bezier(.2,1.4,.4,1) backwards; animation-delay: var(--d); }
.pd.empty { visibility: hidden; }
.pd b { font: 900 18px/1.1 var(--display); margin-top: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd > span { color: var(--gold); font: 900 15px/1 var(--display); margin: 3px 0 6px; }
.pd-face .face { width: 132px; height: 99px; --fc: var(--gold); }
.pd-1 .pd-face .face { width: 168px; height: 126px; box-shadow: 0 0 0 4px var(--gold), 0 0 50px rgba(255,210,63,0.55); }
.pd-2 .pd-face .face { --fc: #d6dde8; } .pd-3 .pd-face .face { --fc: #d08a4a; }
.pd-1::before { content: "👑"; font-size: 42px; line-height: 1; margin-bottom: -10px; position: relative; z-index: 1; animation: crown 1.4s ease-in-out infinite; }
.pd-block { width: 100%; border-radius: 14px 14px 4px 4px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe27a, #d9a520); box-shadow: inset 0 -8px 0 rgba(0,0,0,0.18), 0 14px 30px rgba(0,0,0,0.5); }
.pd-block em { font: 900 44px/1 var(--display); font-style: normal; color: rgba(0,0,0,0.45); }
.pd-1 .pd-block { height: 120px; }
.pd-2 .pd-block { height: 84px; background: linear-gradient(180deg, #eef2f7, #a9b4c4); }
.pd-3 .pd-block { height: 60px; background: linear-gradient(180deg, #f0b27a, #b0652a); }
@keyframes rise { from { transform: translateY(120px); opacity: 0; } }
@keyframes crown { 50% { transform: translateY(-6px) rotate(-6deg); } }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; text-align: left; }
.aw { position: relative; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px 10px 82px; min-height: 76px; animation: flip .55s cubic-bezier(.2,1.5,.4,1) backwards; animation-delay: var(--d); }
.aw-em { position: absolute; left: 50px; top: -8px; font-size: 26px; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.6)); z-index: 1; }
.aw-face { position: absolute; left: 10px; top: 10px; }
.aw-face .face { width: 62px; height: 56px; border-radius: 11px; --fc: rgba(255,255,255,0.3); box-shadow: 0 0 0 2px var(--fc); }
.aw-face .face > span { font-size: 26px; }
.aw-t { font: 900 15px/1.1 var(--display); color: var(--gold); }
.aw-n { font: 900 17px/1.2 var(--display); margin-top: 2px; }
.aw-d { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
@keyframes flip { from { transform: perspective(600px) rotateX(80deg) translateY(20px); opacity: 0; } }
.me-foot { margin-top: 16px; color: var(--muted); font: 800 13px/1 var(--display); }
.confetti { position: absolute; width: 0; height: 0; z-index: 50; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: conf 2.4s cubic-bezier(.15,.7,.4,1) forwards; animation-delay: var(--d); opacity: 0; }
@keyframes conf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(calc(var(--x) * 46vw), calc(var(--y) * 70vh)) rotate(var(--r)); opacity: 0; } }

/* ---------- lobby panel */
.panel-ov { position: absolute; inset: 0; pointer-events: auto !important; z-index: 35; background: rgba(4, 5, 10, 0.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: calc(var(--strip-top) + 6px) 16px calc(var(--strip-bot) + 12px); }
.pn { width: min(1180px, 100%); max-height: 100%; display: flex; flex-direction: column; background: rgba(12, 14, 24, 0.92); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; animation: pn-in .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes pn-in { from { transform: translateY(20px) scale(0.97); opacity: 0; } }
.pn-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(33,212,196,0.08), rgba(255,122,26,0.08)); }
.pn-logo { font: 900 26px/1 var(--display); color: var(--prop); letter-spacing: -0.01em; text-shadow: 0 2px 0 #063b37; white-space: nowrap; }
.pn-logo span { color: var(--hunter); margin-left: 6px; text-shadow: 0 2px 0 #4d2100; }
.pn-lobby { display: flex; flex-direction: column; min-width: 0; }
.pn-lobby b { font: 900 17px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-lobby span { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,210,63,0.1); border: 1px dashed rgba(255,210,63,0.55); color: var(--gold); border-radius: 12px; padding: 6px 10px; cursor: pointer; }
.code-chip small { font-size: 9px; font-weight: 900; letter-spacing: 0.14em; opacity: 0.8; }
.code-chip b { font: 900 20px/1 var(--display); letter-spacing: 0.22em; }
.code-chip .ic { width: 16px; height: 16px; }
.code-chip.copied { background: rgba(123,227,106,0.2); border-color: var(--good); color: var(--good); }
.code-chip.copied b::after { content: " copied"; font-size: 11px; letter-spacing: 0.02em; }
.pn-head .sp { flex: 1; }
.btn.play { background: linear-gradient(180deg, #4ff0e0, var(--prop)); color: #032a26; border-color: rgba(255,255,255,0.25); padding: 11px 22px; font: 900 16px/1 var(--display); box-shadow: 0 4px 0 #0f8a7e, 0 8px 24px rgba(33,212,196,0.35); }
.pn-body { display: grid; grid-template-columns: 290px 1fr 290px; min-height: 0; flex: 1; }
.pn-col { padding: 14px 16px; min-height: 0; overflow: auto; }
.pn-col + .pn-col { border-left: 1px solid var(--line); }
.pn-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pn-h b { font: 900 12px/1 var(--display); letter-spacing: 0.16em; color: var(--muted); }
.pn-h span { font: 900 13px/1 var(--display); }
.pn-h.sm { margin-top: 14px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plist li { display: flex; align-items: center; gap: 9px; padding: 4px 7px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid transparent; }
.plist li.me { border-color: var(--line); }
.plist li.away { opacity: 0.5; }
.plist li.speaking .pdot { box-shadow: 0 0 0 3px #b6ff5c; }
.pdot { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font: 900 15px/1 var(--display); font-style: normal; color: #fff; flex: none; text-shadow: 0 1px 0 rgba(0,0,0,0.3); transition: box-shadow .15s; }
.pwho { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pwho b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwho b small { color: var(--muted); font-weight: 600; }
.pwho span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pwho em { font-style: normal; font-weight: 800; text-transform: uppercase; font-size: 10.5px; }
.pwho em.t-hunter { color: var(--hunter); } .pwho em.t-prop { color: var(--prop); } .pwho em.t-ghost { color: var(--ghost); }
.plist .crown { color: var(--gold); width: 18px; height: 18px; display: grid; }
.plist .crown .ic, .plist .pmic .ic, .plist .pcam .ic { width: 16px; height: 16px; }
.plist .pmic { width: 18px; display: grid; color: rgba(255,255,255,0.25); }
.plist .pmic.on { color: #b6ff5c; } .plist .pmic.muted { color: var(--danger); }
.plist .pcam { width: 18px; display: grid; color: var(--prop); }
.plist .kick { border: 0; background: rgba(255,59,92,0.15); color: #ff8fa2; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.plist .kick .ic { width: 12px; height: 12px; }
.pn-voice { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pn-voice .btn { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; }
.pn-voice .btn.primary { box-shadow: 0 3px 0 #b44c00; }
.charsw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.charsw button { border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); border-radius: 10px; padding: 8px 4px; font: 800 12.5px/1 var(--display); cursor: pointer; }
.charsw button.on { border-color: var(--hunter); background: rgba(255,122,26,0.16); color: #ffd2b0; }
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; padding: 9px; border-radius: 10px; font: 800 14px/1 var(--display); color: var(--muted); cursor: pointer; }
.tabs button .ic { width: 16px; height: 16px; }
.tabs button.on { background: rgba(255,255,255,0.12); color: #fff; }
.tab { display: none; }
.tab.on { display: block; animation: fadein .2s; }
.mform { display: grid; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; }
.mrow > span { width: 118px; flex: none; color: var(--muted); font-weight: 700; font-size: 13px; }
.seg { display: flex; flex: 1; gap: 3px; background: rgba(255,255,255,0.04); padding: 3px; border-radius: 11px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; font: 800 13px/1 var(--display); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--prop); color: #032a26; box-shadow: 0 2px 0 #0f8a7e; }
.seg.ro button { cursor: default; }
.seg.ro button:not(.on) { opacity: 0.5; }
.seg.ro button.on { background: rgba(33,212,196,0.35); color: #fff; box-shadow: none; }
.cta { margin-top: 18px; text-align: center; }
.btn.start { width: 100%; padding: 16px; font: 900 24px/1 var(--display); letter-spacing: 0.04em; background: linear-gradient(180deg, #ff9a45, var(--hunter)); color: #1d0c00; border-color: rgba(255,255,255,0.3); box-shadow: 0 5px 0 #b44c00, 0 12px 34px rgba(255,122,26,0.45); }
.btn.start .ic { width: 24px; height: 24px; }
.btn.start:not(:disabled) { animation: breathe2 2.2s ease-in-out infinite; }
@keyframes breathe2 { 50% { box-shadow: 0 5px 0 #b44c00, 0 12px 44px rgba(255,122,26,0.75); } }
.cta-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; font-weight: 600; }
.cta .wait { padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px dashed var(--line-2); font-weight: 700; }
.cta .wait small { color: var(--muted); }
.cta .btn.danger { margin-top: 10px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.set-grid h5 { margin: 0 0 8px; font: 900 12px/1 var(--display); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.set-grid h5:not(:first-child) { margin-top: 16px; }
label.rng { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 8px; color: var(--text); font-size: 13px; margin-bottom: 10px; }
label.rng b { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; margin: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,0.14); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--prop); border: 3px solid #0b0d14; box-shadow: 0 0 0 1px var(--prop); cursor: pointer; }
input[type=range]:focus { outline: none; }
.pn-chat { display: flex; flex-direction: column; }
.chatlog { flex: 1; min-height: 160px; overflow-y: auto; font-size: 13px; padding-right: 4px; }
.chatlog .m, .cf-log .m { margin: 3px 0; word-wrap: break-word; line-height: 1.35; }
.chatlog .m.sys, .cf-log .m.sys { color: var(--muted); font-style: italic; }
.chatform { display: flex; gap: 6px; margin-top: 8px; }
.chatform input { padding: 8px 10px; }
.pn-main .howto { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) {
  .pn-body { grid-template-columns: 250px 1fr; }
  .pn-chat { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); max-height: 200px; }
  .pn-main .howto { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) { .pn-body { grid-template-columns: 1fr; } .pn-col + .pn-col { border-left: 0; border-top: 1px solid var(--line); } .set-grid { grid-template-columns: 1fr; } }

/* ---------- in-game chat feed */
.chatfeed { position: absolute; left: 16px; bottom: calc(var(--strip-bot) + 104px); width: min(380px, 34vw); z-index: 23; }
.cf-log { max-height: 180px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 13.5px; text-shadow: 0 1px 2px #000, 0 0 3px rgba(0,0,0,0.9); font-weight: 600; }
.cf-log .m { transition: opacity 1s; background: rgba(0,0,0,0.25); padding: 1px 8px; border-radius: 8px; align-self: flex-start; }
.cf-log .m.old { opacity: 0; }
.chatfeed.typing .cf-log { overflow-y: auto; }
.chatfeed.typing .cf-log .m.old { opacity: 0.85; }
.cf-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; opacity: 0; transition: opacity .15s; pointer-events: auto; }
.chatfeed.typing .cf-form { opacity: 1; }
.cf-form input { background: rgba(10,12,20,0.85); padding: 8px 10px; }
body.menu-open .chatfeed { display: none; }

/* small screens */
@media (max-width: 1100px) {
  .ab { width: 58px; height: 64px; }
  .ab-ic, .ab-ic .ic { width: 26px; height: 26px; }
  .taunts { width: 170px; }
  .hp { min-width: 180px; }
}
@media (max-height: 760px) {
  .taunts li { padding: 0 4px; font-size: 11.5px; }
  .chatfeed { bottom: calc(var(--strip-bot) + 96px); }
  .cf-log { max-height: 120px; }
}

/* phases that own the whole screen: hide the play HUD under them */
.hud.phase-intro :is(.vitals, .abilities, .disguise-tag, .taunts, .crosshair, .pts),
.hud.phase-roundEnd :is(.vitals, .abilities, .disguise-tag, .taunts, .crosshair, .pts),
.hud.phase-matchEnd :is(.vitals, .abilities, .disguise-tag, .taunts, .crosshair, .pts, .hud-top, .killfeed) { display: none !important; }
.sb-team table { table-layout: fixed; }
.sb-team th:nth-child(1) { width: 40%; } .sb-team th:nth-child(2) { width: 30%; } .sb-team th:nth-child(3), .sb-team th:nth-child(4) { width: 15%; }
.sb-team td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-cams { max-width: 960px; }
.hud.team-ghost .vitals, .hud.phase-lobby .vitals .hp { display: none; }
.hud.phase-roundEnd .hud-top { display: none; }
.re-next b { color: var(--gold); font-size: 16px; }
.pn-voice .btn { flex: 1 1 0; min-width: 0; padding: 9px 6px; white-space: nowrap; font-size: 12.5px; gap: 5px; }
.pn-voice .btn .ic { width: 16px; height: 16px; }
@media (max-height: 820px) {
  .me-title { font-size: 44px; margin: 2px 0 2px; }
  .pd { width: 140px; }
  .pd-face .face { width: 100px; height: 75px; }
  .pd-1 .pd-face .face { width: 132px; height: 99px; }
  .pd-1 .pd-block { height: 78px; } .pd-2 .pd-block { height: 56px; } .pd-3 .pd-block { height: 40px; }
  .pd-block em { font-size: 30px; }
  .pd-1::before { font-size: 32px; }
  .podium { margin-bottom: 10px; }
  .awards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 7px; }
  .aw { min-height: 0; padding: 7px 10px 7px 64px; }
  .aw-face { left: 8px; top: 8px; }
  .aw-face .face { width: 48px; height: 42px; }
  .aw-em { left: 38px; font-size: 20px; }
  .aw-t { font-size: 13px; } .aw-n { font-size: 15px; } .aw-d { font-size: 11px; }
  .re-title { font-size: clamp(60px, 9vw, 110px); }
  .re-grid { margin-top: 14px; }
  .re-p, .re-pts .re-pt { padding: 3px 0; }
  .in-team { font-size: clamp(80px, 12vw, 150px); }
  .bf-num { font-size: 130px; }
  .bf-cams-k { margin-top: 22px; }
}
.stats .hof span { display: block; margin-bottom: 6px; }
.stats .hof ol { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 3px; }
.stats .hof li { display: flex; gap: 8px; align-items: baseline; counter-increment: h; font-size: 13px; }
.stats .hof li::before { content: counter(h); font: 900 13px/1 var(--display); color: var(--gold); width: 14px; }
.stats .hof li b { display: inline; font: 800 13px/1.2 var(--ui); color: var(--text); }
.stats .hof li em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.hud.phase-lobby .pp-team { display: none; }
.hud.phase-lobby .pp-main { min-width: 110px; }
/* warm-up: colour the HUD by the kit you're holding */
.hud.team-lobby.role-prop { --team: var(--prop); }
.hud.team-lobby.role-hunter { --team: var(--hunter); }
.hud.team-lobby.role-ghost { --team: var(--ghost); }
