* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #eef;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
  touch-action: none;
}

#game.dragging { cursor: grabbing; }

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(10, 20, 60, 0.35), rgba(0, 0, 10, 0.75));
}

.overlay[hidden], #hud[hidden] { display: none; }

.panel {
  width: min(760px, calc(100vw - 32px));
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(30, 50, 120, 0.85), rgba(8, 14, 40, 0.92));
  border: 2px solid rgba(160, 190, 255, 0.6);
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(60, 100, 255, 0.35), inset 0 0 30px rgba(120, 160, 255, 0.15);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 56px;
  font-style: italic;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 3px 3px 0 #c0302a, 0 0 18px rgba(255, 255, 255, 0.4);
}

.sub { margin: 4px 0 20px; opacity: 0.8; }

.field { display: block; margin-bottom: 18px; font-weight: bold; }

.field input, #chat-input {
  font: inherit;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(160, 190, 255, 0.6);
  background: rgba(0, 0, 20, 0.6);
  color: #fff;
}

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.role {
  font: inherit;
  color: #fff;
  cursor: pointer;
  padding: 14px 10px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.1s, border-color 0.1s;
}

.role b { font-size: 20px; color: var(--c); }
.role span { font-size: 13px; opacity: 0.8; }
.role em { font-size: 12px; opacity: 0.6; }
.role:hover { transform: translateY(-2px); border-color: var(--c); }
.role.selected { border-color: var(--c); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 16px var(--c); }

#play {
  font: inherit;
  font-size: 20px;
  font-weight: bold;
  padding: 12px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #e8503a, #9a2416);
}

#play:disabled { opacity: 0.4; cursor: default; }

#server-status { font-size: 13px; opacity: 0.75; margin: 14px 0 6px; }
.help { font-size: 12px; opacity: 0.6; margin: 0; line-height: 1.6; }

#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 1px 1px 0 #000; }

#stats {
  position: absolute;
  top: 300px;
  right: 24px;
  font: 12px/1.5 ui-monospace, Menlo, monospace;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
}

#counts {
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: right;
  font-size: 14px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
}

#role-badge {
  position: absolute;
  bottom: 54px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
}

#cooldown { position: absolute; bottom: 24px; right: 16px; font-size: 15px; }

#chat {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 20px));
  pointer-events: auto;
}

#chat-log {
  max-height: 200px;
  overflow-y: auto;
  font-size: 14px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#chat-log .sys { opacity: 0.7; font-style: italic; }
#chat-log .err { color: #ff8a7a; }
#chat-input { width: 100%; margin-top: 6px; }

#gas-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(230, 235, 210, 0.3), rgba(220, 225, 190, 0.9));
}

#flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}

#flash-overlay.on { animation: flash 0.25s ease-out; }

@keyframes flash {
  from { opacity: 0.85; }
  to { opacity: 0; }
}

/* ---------- HUD ---------- */
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url('/fonts/rajdhani-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('/fonts/rajdhani-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url('/fonts/rajdhani-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('/fonts/rajdhani-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }

#hud {
  --accent: #ff5a3c; --glass: rgba(8, 10, 14, 0.5); --glass-2: rgba(8, 10, 14, 0.38); --line: rgba(255, 255, 255, 0.14);
  --muted: #c8cdd8; --num: 'Rajdhani', 'Arial Narrow', sans-serif;
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, sans-serif; color: #f2f4f8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
#hud[data-role="manif"] { --accent: #ff5a3c; }
#hud[data-role="medic"] { --accent: #3ccf7a; }
#hud[data-role="casseur"] { --accent: #d9d9d9; }
#hud[data-role="crs"] { --accent: #4f8cff; }
#hud[data-role="bac"] { --accent: #7aa8ff; }
#hud[data-role="presse"] { --accent: #ffd23c; }
#hud [hidden] { display: none !important; }
#hud kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 6px; background: rgba(255, 255, 255, 0.16); color: #fff; font: 700 13px var(--num); text-shadow: none; }

.hud-topleft { position: absolute; left: 24px; top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 300px; }
.hud-map { width: 300px; height: 190px; display: block; border-radius: 10px; }
.hud-mapwrap { display: flex; flex-direction: column; gap: 4px; }
.hud-maplegend { display: flex; flex-direction: column; gap: 2px; width: 300px; padding: 5px 8px; border-radius: 8px; background: rgba(8, 10, 14, 0.55); font-size: 11.5px; color: #dfe3ea; }
.hud-maplegend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hud-maplegend i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.hud-maplegend b { color: var(--c); font-weight: 700; }
.hud-maplegend em { margin-left: auto; font-style: normal; font: 600 11px var(--num); opacity: 0.85; }
.hud-phase { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; background: var(--glass-2); border-radius: 14px; box-sizing: border-box; width: 300px; }
.hud-phase .phase-name { font: 700 13px var(--num); letter-spacing: 3px; color: #ff7a7a; }
.hud-phase .phase-timer { font: 600 40px/1 var(--num); }
.hud-phase .phase-order { font-size: 12px; line-height: 1.4; color: var(--muted); }
.hud-phase .phase-goal { margin-top: 6px; font-size: 12px; line-height: 1.4; }
.hud-phase .phase-goal b { color: var(--accent); }
.hud-phase[data-phase="rassemblement"] .phase-name { color: #8fe3a0; }
.hud-phase[data-phase="sommations"] .phase-timer, .hud-phase[data-phase="dispersion"] .phase-name { color: #ff4a3a; animation: pulse 0.8s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.45; } }

.hud-banner {
  position: absolute; top: 150px; left: 50%; transform: translateX(-50%) scale(0.92); opacity: 0; transition: opacity 0.25s, transform 0.25s;
  padding: 10px 26px; font: 700 26px/1.15 var(--num); letter-spacing: 1px; text-align: center; background: var(--glass); border: 1px solid var(--line); border-bottom: 3px solid var(--accent); border-radius: 16px;
}
.hud-banner small { font: 500 13px system-ui, sans-serif; letter-spacing: 0; color: var(--muted); }
.hud-banner.on { opacity: 1; transform: translateX(-50%) scale(1); }
.hud-banner.sommation { border-bottom-color: #ff3a2a; color: #ffdede; }
.hud-banner.chant { border-bottom-color: #ff5a3c; }

.hud-poll { position: absolute; right: 24px; top: 22px; width: 260px; box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; }
.poll-head { display: flex; justify-content: space-between; align-items: baseline; }
.poll-head b { font: 700 14px var(--num); letter-spacing: 2px; }
.poll-head span { font-size: 11px; color: var(--muted); }
.poll-bar { display: flex; gap: 2px; height: 12px; }
.poll-bar i { display: block; height: 100%; transition: width 0.6s; }
.poll-bar .ordre { background: #4f8cff; }
.poll-bar .manifs { background: #ff5a3c; }
.poll-legend { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.poll-legend b { font: 700 15px var(--num); }
.poll-scores { display: flex; flex-direction: column; gap: 2px; }
.poll-scores .sc { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 3px 8px; border-radius: 8px; font-size: 13px; }
.poll-scores .sc.mine { background: rgba(255, 255, 255, 0.08); }
.poll-scores .sc i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.poll-scores .sc b { font: 700 17px var(--num); }

.hud-feed { position: absolute; left: 24px; bottom: 205px; width: 360px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.feed-line { display: flex; align-items: flex-start; gap: 8px; transition: opacity 1s; }
.feed-line i { flex: none; width: 4px; height: 14px; margin-top: 2px; border-radius: 2px; }
.feed-line.fade { opacity: 0; }
.feed-line.faute, .feed-line.phase { font-weight: 700; }

.hud-vitals { position: absolute; left: 24px; bottom: 24px; width: 280px; display: flex; flex-direction: column; gap: 6px; }
.vt-main { display: flex; align-items: flex-end; gap: 12px; }
.hp-num { font: 700 44px/0.9 var(--num); min-width: 54px; }
.vt-side { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-bottom: 3px; }
.hp-seg { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.hp-seg span { height: 8px; background: rgba(255, 255, 255, 0.15); }
.hp-seg i { display: block; height: 100%; background: #5bd46b; }
.hud-vitals.low .hp-seg i { background: #e2412f; }
.hud-vitals.low .hp-num { color: #ff6a5a; animation: pulse 0.5s infinite alternate; }
.vrow { display: grid; grid-template-columns: 50px 1fr 36px; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.vrow .track { height: 3px; background: rgba(255, 255, 255, 0.15); }
.vrow .track i { display: block; height: 100%; }
.vrow.irr .track i { background: #e6d36a; }
.vrow.mask .track i { background: #9fd0ff; }
.vrow em { font-style: normal; text-align: right; }
.status-line { font-size: 12px; color: var(--muted); }
.vt-butin { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; border-radius: 10px; background: var(--glass-2); border-left: 3px solid #ffb020; font-size: 12px; }
.vt-butin .bt-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.vt-butin .bt-bag { display: inline-flex; gap: 2px; }
.vt-butin .bt-bag i { width: 9px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.vt-butin .bt-bag i.on { background: #ffb020; box-shadow: 0 0 5px rgba(255, 176, 32, 0.6); }
.vt-butin b { font: 700 16px var(--num); color: #ffcf6a; }
.vt-butin em { font-style: normal; color: var(--muted); }
.vt-butin .bt-wanted { margin-left: auto; font: 700 12px var(--num); letter-spacing: 1px; color: #ffb020; }
.vt-butin .bt-wanted.lvl2 { color: #ff7a3a; }
.vt-butin .bt-wanted.lvl3 { color: #ff3a2a; animation: pulse 0.5s infinite alternate; }
.vt-butin .bt-banked { color: var(--muted); }

.hud-voice { position: absolute; left: 24px; bottom: 96px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.hud-voice .vh-mic { color: var(--muted); }
.hud-voice.live .vh-mic { color: #ff9aa2; font-weight: 600; }
.hud-voice .vh-talk { color: #8fe3a0; }
.hud-voice .vh-vol { display: grid; gap: 4px; margin-top: 4px; padding: 8px 10px; background: var(--glass); border-radius: 12px; pointer-events: auto; }
.hud-voice .vh-vol label { display: grid; grid-template-columns: 72px 110px 44px; align-items: center; gap: 6px; font-size: 12px; }
.hud-voice .vh-vol input { width: 110px; accent-color: var(--accent); }
.hud-voice .vh-vol output { text-align: right; color: var(--muted); }
body.locked .hud-voice .vh-vol { display: none; }

.hud-item { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; white-space: nowrap; }
.hud-item .it-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 14px; background: var(--accent); }
.hud-item b { font-weight: 600; }
.hud-item em { font: 700 15px var(--num); font-style: normal; color: var(--accent); }
.hud-item .it-hint { color: var(--muted); display: flex; align-items: center; gap: 5px; }
.hud-item .it-reload { position: absolute; left: 16px; right: 16px; bottom: -6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.hud-item .it-reload div { height: 100%; border-radius: 2px; background: var(--accent); }

.hud-prompt { position: absolute; left: calc(50% + 26px); top: calc(50% - 15px); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hud-prompt > span { display: flex; align-items: center; gap: 8px; width: max-content; padding: 4px 12px 4px 4px; background: var(--glass-2); border-radius: 16px; }
.hud-prompt kbd { width: 24px; height: 24px; min-width: 24px; padding: 0; border-radius: 12px; background: #fff; color: #0b0d12; font-size: 14px; }

.hud-channel { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); width: 240px; padding: 8px 12px; text-align: center; font-size: 13px; background: var(--glass-2); border-radius: 12px; }
.hud-channel .ch-bar { margin-top: 6px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.hud-channel .ch-bar div { height: 100%; background: var(--accent); }

.hud-crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; }
.hud-crosshair::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; }
.hud-crosshair[data-kind="throw"] { border-style: dashed; }
.hud-crosshair[data-kind="melee"] { width: 34px; height: 34px; border-radius: 8px; border-width: 0 2px; }
.hud-crosshair[data-kind="photo"] { border-radius: 8px; width: 60px; height: 40px; }

.hud-viewfinder { position: absolute; inset: 12% 18%; pointer-events: none; }
.hud-viewfinder i { position: absolute; width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, 0.7); }
.hud-viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.hud-viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.hud-viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.hud-viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.hud-viewfinder .rec { position: absolute; top: 8px; left: 52px; color: #ff3a2a; font: 700 14px var(--num); animation: pulse 1s infinite alternate; }
.hud-viewfinder .film { position: absolute; top: 8px; right: 52px; font: 700 14px var(--num); }

.hud-hurt { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 0, 0.65)); }
.hud-hurt.on { animation: hurt 0.6s ease-out; }
@keyframes hurt { from { opacity: 1; } to { opacity: 0; } }
#hud.blurred ~ #gas-overlay { backdrop-filter: blur(2px); }

.hud-status { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: rgba(60, 0, 0, 0.35); }
.hud-status b { font: 700 56px var(--num); letter-spacing: 6px; color: #fff; text-shadow: 0 0 20px #f00; }
.hud-status span { font-size: 17px; }

.hud-wheel { position: absolute; inset: 0; display: grid; place-items: center; }
.hud-wheel .wh-tab { position: absolute; left: 50%; top: calc(50% - 268px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--glass-2); border-radius: 16px; font-size: 12px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.hud-wheel .wh-tab b { padding: 4px 14px; border-radius: 12px; background: #fff; color: #0b0d12; text-shadow: none; }
.hud-wheel .wh-tab span { padding: 4px 10px; color: var(--muted); }
.hud-wheel .wh-ring { position: relative; width: 420px; height: 420px; }
.hud-wheel .wh-ring > svg { position: absolute; inset: 0; overflow: visible; }
body.wheel-open .hud-lockhint, body.wheel-open .hud-prompt, body.wheel-open .hud-crosshair, body.wheel-open .hud-squad, body.wheel-open .hud-points { display: none !important; }
.hud-wheel svg path[data-i] { fill: rgba(255, 255, 255, 0.13); stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; transition: fill 0.12s; }
.hud-wheel svg path[data-i].hover { fill: url(#wh-sel); stroke: #fff; stroke-width: 2.5; }
.hud-wheel .wh-core { fill: rgba(8, 10, 14, 0.38); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.hud-wheel .wh-arrow { fill: #fff; transition: transform 0.06s; }
.hud-wheel .wh-item { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; opacity: 0.8; }
.hud-wheel .wh-item.hover { opacity: 1; font-weight: 700; }
.hud-wheel .wh-item b { font: 700 13px var(--num); color: #ffd23c; }
.hud-wheel .wh-item em { padding: 1px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: 1px; }
.hud-wheel .wh-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hud-wheel .wh-center b { font: 700 26px/1 var(--num); letter-spacing: 2px; }
.hud-wheel .wh-center span { font-size: 12px; line-height: 1.35; color: #dfe3ea; }
.hud-wheel .wh-center em { font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.hud-wheel .wh-hint { position: absolute; left: 50%; top: calc(50% + 240px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--glass); border-radius: 16px; font-size: 13px; color: #dfe3ea; white-space: nowrap; }
body.wheel-open #game { filter: blur(7px) brightness(0.6); }

/* ---------- Une du journal ---------- */
.hud-end { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); overflow: auto; padding: 16px; }
.hud-end[hidden] { display: none; }
.paper { width: min(900px, 100%); background: #f3eee2; color: #1a1a1a; padding: 22px 28px; font-family: Georgia, 'Times New Roman', serif; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); text-shadow: none; }
.paper header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px double #1a1a1a; padding-bottom: 6px; }
.paper header h1 { margin: 0; font-size: 34px; font-family: 'Old English Text MT', 'UnifrakturCook', Georgia, serif; }
.paper h2 { font-size: 38px; margin: 14px 0; line-height: 1.05; border-left: 10px solid var(--c); padding-left: 12px; }
.paper .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.paper article .photo { height: 120px; background: linear-gradient(135deg, #3a3a3a, #8a8a8a); display: flex; flex-wrap: wrap; align-content: flex-end; gap: 4px; padding: 6px; }
.paper article.lead .photo { height: 180px; }
.paper article .photo span { background: #fff; font: bold 10px sans-serif; padding: 1px 5px; text-transform: uppercase; }
.paper article h3 { margin: 6px 0 4px; font-size: 17px; }
.paper article.lead h3 { font-size: 22px; }
.paper article p { margin: 0; font-size: 12px; font-style: italic; }
.paper table { width: 100%; margin-top: 14px; border-collapse: collapse; font-family: sans-serif; font-size: 14px; }
.paper th, .paper td { border-bottom: 1px solid #aaa; padding: 4px 6px; text-align: left; }
.paper td i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.paper tr.win { font-weight: bold; background: #fff6cc; }
.paper .op { font-family: sans-serif; font-size: 13px; }
.paper .next { font-family: sans-serif; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid #1a1a1a; padding-top: 10px; }
.paper .pick { display: flex; flex-wrap: wrap; gap: 6px; }
.paper .pick button { font: bold 13px sans-serif; padding: 6px 10px; border: 2px solid var(--c); background: #fff; cursor: pointer; border-radius: 3px; }
.paper .pick button.sel { background: var(--c); color: #fff; }
@media (max-width: 700px) { .paper .cols { grid-template-columns: 1fr; } }

.roles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }
.role b { font-size: 17px !important; }
.paper header h1 { color: #111; font-style: normal; letter-spacing: 0; text-shadow: none; font-size: 32px; }

.hud-crosshair[data-kind="dot"] { width: 6px; height: 6px; border-width: 0; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 3px #000; }
.hud-crosshair[data-kind="dot"]::after { display: none; }
.hud-hitmark { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%) rotate(45deg); opacity: 0;
  background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 100% no-repeat; }
.hud-hitmark.on { animation: hitmark 0.3s ease-out; }
@keyframes hitmark { from { opacity: 1; } to { opacity: 0; } }
.hud-lockhint { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); padding: 8px 16px; background: var(--glass); border-radius: 16px; font-size: 14px; }
.hud-lockhint[hidden] { display: none; }
body.locked #game { cursor: none; }

.panel.loading .field, .panel.loading .roles, .panel.loading #play { display: none; }
.panel:not(.loading) #loader { display: none; }
#loader { margin: 22px 0 8px; }
.loader-bar { position: relative; height: 14px; overflow: hidden; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(160, 190, 255, 0.6); border-radius: 3px; }
.loader-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff5a3c, #ffd23c); }
.loader-bar.indeterminate i { width: 35% !important; animation: loader-slide 1.2s ease-in-out infinite; }
.loader-bar.failed i { background: #c0392b; animation: none; width: 100% !important; }
@keyframes loader-slide { from { left: -35%; } to { left: 100%; } }
#loader-text { margin: 8px 0 0; font-size: 14px; opacity: 0.85; }
#loader-retry { margin-top: 10px; padding: 8px 18px; font: inherit; color: #fff; background: #c0392b; border: 0; border-radius: 3px; cursor: pointer; }

#scoreboard { position: fixed; left: 50%; top: 12%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; padding: 16px 20px; background: rgba(8, 10, 14, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: #f2f4f8; font-size: 14px; pointer-events: none; text-shadow: none; z-index: 5; }
#scoreboard[hidden] { display: none; }
#scoreboard h2 { margin: 0 0 10px; font: 700 18px 'Rajdhani', sans-serif; letter-spacing: 2px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; }
#scoreboard h2 small { font-size: 12px; opacity: 0.7; letter-spacing: 0; text-transform: none; }
#scoreboard .camp { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 2px; }
#scoreboard .row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 4px 8px; border-radius: 8px; }
#scoreboard .goals { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #dfe3ea; }
#scoreboard .row.me { background: rgba(255, 255, 255, 0.1); }
#scoreboard .row .sb-role { opacity: 0.85; }
#scoreboard .row .mic { width: 1.4em; text-align: center; }
#scoreboard .bots { padding: 2px 6px; font-size: 12px; opacity: 0.6; }

#net-overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 10, 0.6); z-index: 10; }
#net-overlay[hidden] { display: none; }
#net-overlay div { padding: 18px 28px; background: rgba(6, 10, 24, 0.92); border: 1px solid rgba(160, 190, 255, 0.5); border-radius: 6px; text-align: center; }
#net-overlay b { display: block; font-size: 18px; margin-bottom: 6px; }


.hud-voice .vh-line { display: flex; align-items: center; gap: 6px; }

.hud-mission { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 300px; box-sizing: border-box; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--glass); border: 1px solid var(--line); border-top: 3px solid #ffd23c; border-radius: 16px; }
.hud-mission .ms-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.hud-mission .ms-tag { display: inline-flex; align-items: center; gap: 4px; color: #ffd23c; }
.hud-mission .ms-time { margin-left: auto; font: 700 14px var(--num); }
.hud-mission .ms-reward { padding: 1px 7px; border-radius: 8px; background: rgba(255, 210, 60, 0.18); color: #ffd23c; font: 700 13px var(--num); }
.hud-mission > b { font: 700 18px/1.1 var(--num); letter-spacing: 0.5px; }
.hud-mission .ms-desc { font-size: 12px; color: var(--muted); line-height: 1.35; }
.hud-mission .ms-bar { height: 5px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hud-mission .ms-bar i { display: block; height: 100%; background: #ffd23c; border-radius: 3px; transition: width 0.4s; }
.hud-mission .ms-label { font: 700 12px var(--num); color: var(--muted); text-align: right; }
.hud-banner.mission { border-bottom-color: #ffd23c; }

.hud-squad { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 14px; background: var(--glass-2); border-radius: 16px; font-size: 13px; white-space: nowrap; }
.hud-squad b { font-weight: 700; color: var(--accent); }
.hud-squad b.hot { color: #ff4a3a; animation: pulse 0.4s infinite alternate; }
.hud-squad .sq-morale { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hud-squad .sq-morale > i { display: inline-block; width: 70px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hud-squad .sq-morale > i > i { display: block; height: 100%; background: var(--accent); }
.hud-squad .sq-keys { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }

.hud-points { position: absolute; left: 50%; top: calc(50% + 40px); transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.pt-line { display: flex; align-items: baseline; gap: 6px; animation: pt-float 2.2s cubic-bezier(.2,.9,.3,1.2) forwards; white-space: nowrap; }
.pt-line b { font: 700 24px var(--num); color: #8fe3a0; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.pt-line.mid b { font-size: 34px; color: #b6f27a; text-shadow: 0 0 14px rgba(140, 240, 120, 0.55), 0 2px 6px rgba(0, 0, 0, 0.6); }
.pt-line.big b { font-size: 52px; color: #ffd23c; text-shadow: 0 0 22px rgba(255, 200, 40, 0.8), 0 3px 8px rgba(0, 0, 0, 0.7); }
.pt-line.big span, .pt-line.mid span { font-size: 15px; font-weight: 700; }
.pt-line.neg b { color: #ff6a5a; }
.pt-line span { font-size: 12px; color: #dfe3ea; }
@keyframes pt-float { 0% { opacity: 0; transform: translateY(14px) scale(0.5); } 10% { opacity: 1; transform: translateY(0) scale(1.25); } 18% { transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(0.95); } }

.hud-marks { position: absolute; inset: 0; overflow: hidden; }
.hud-marks .mark { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -16px 0 0 -16px; width: 32px; pointer-events: none; }
.hud-marks .mk-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 15px; background: rgba(8, 10, 14, 0.6); border: 2px solid var(--mc); box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); }
.hud-marks .mk-text { display: flex; flex-direction: column; align-items: center; font-size: 11px; white-space: nowrap; }
.hud-marks .mk-text b { color: var(--mc); font-weight: 700; }
.hud-marks .mk-text em { font-style: normal; font: 700 12px var(--num); color: #fff; }
.hud-marks .mark.edge .mk-text b { display: none; }
.hud-marks .mark.near { opacity: 0.45; }
.hud-marks .mark-mission .mk-icon { width: 34px; height: 34px; border-radius: 17px; animation: pulse 1.2s infinite alternate; }
.hud-marks .mark-mission .mk-text b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

.paper .heroes { margin-top: 14px; font-family: sans-serif; }
.paper .heroes h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 20px; border-bottom: 1px solid #1a1a1a; padding-bottom: 4px; }
.paper .hero-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.paper .hero-col h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-left: 6px solid var(--c); padding-left: 6px; }
.paper .hero-col ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.paper .hero-col li b { font-weight: 700; }
.paper .hero-col li em { display: block; font-style: normal; font-size: 11px; color: #555; }
.paper .hero-col .human { font-size: 10px; padding: 0 5px; border-radius: 6px; background: #1a1a1a; color: #fff; text-transform: uppercase; letter-spacing: 1px; }

.hud-needs { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); padding: 6px 12px; border-radius: 8px; background: rgba(10, 30, 18, 0.75); border: 1px solid #3ccf7a; color: #dff7e6; font-size: 13px; }
.hud-needs b { color: #3ccf7a; font: 700 15px var(--num); }
.hud-prompt .sing { color: #ffb35a; font-weight: 700; animation: pulse 0.6s infinite alternate; }

.oculaire { position: fixed; inset: 0; z-index: 6; pointer-events: none; font-family: var(--num); }
.oculaire[hidden] { display: none; }
.oc-frame { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); height: 76vh; aspect-ratio: 3 / 2; max-width: 94vw; border-radius: 14px; box-shadow: 0 0 0 200vmax #040405, inset 0 0 90px 18px rgba(0, 0, 0, 0.55); outline: 2px solid #000; }
.oc-frame::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: #000; opacity: 0; }
.oculaire.shot .oc-frame::after { animation: oc-blink 0.16s linear; }
@keyframes oc-blink { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.oc-af { position: absolute; width: 14px; height: 10px; margin: -5px 0 0 -7px; border: 1.5px solid rgba(10, 10, 10, 0.75); border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.oc-af.c { width: 22px; height: 16px; margin: -8px 0 0 -11px; }
.oculaire.locked-on .oc-af.c { border-color: #ff3a2a; box-shadow: 0 0 8px rgba(255, 58, 42, 0.9); }
.oc-circle { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid rgba(10, 10, 10, 0.5); border-radius: 50%; }
.oc-subject { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); color: #e9ecf0; font: 600 13px system-ui, sans-serif; white-space: nowrap; }
.oculaire.full .oc-subject { color: #ff8a7a; }
.oc-bar { position: absolute; left: 50%; top: calc(46% + 38vh + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 26px; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #8dff7a; text-shadow: 0 0 8px rgba(120, 255, 100, 0.55); white-space: nowrap; }
.oc-bar .oc-scale { font-size: 15px; letter-spacing: 1px; opacity: 0.85; }
.oc-bar .oc-scale b { color: #fff; }
.oc-bar .oc-led { width: 10px; height: 10px; border-radius: 50%; background: #2a3a26; }
.oculaire.locked-on .oc-led { background: #8dff7a; box-shadow: 0 0 10px #8dff7a; }
.oculaire.full .oc-film { color: #ff5a4a; text-shadow: 0 0 8px rgba(255, 80, 60, 0.7); animation: pulse 0.5s infinite alternate; }
.oc-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: #6a6f78; font: 500 12px system-ui, sans-serif; white-space: nowrap; }
body.oculaire-on #hud, body.oculaire-on #chat-log { visibility: hidden; }
.oc-result { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 4px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); color: #ffd23c; font: 600 14px system-ui, sans-serif; white-space: nowrap; opacity: 0; transition: opacity 0.25s; }
.oc-result.on { opacity: 1; }

.hud-aiminfo { position: absolute; right: calc(50% + 28px); top: calc(50% - 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 4px 10px; border-radius: 10px; background: var(--glass-2); font-size: 12px; white-space: nowrap; }
.hud-aiminfo b { font: 700 15px var(--num); letter-spacing: 0.5px; }
.hud-aiminfo span { color: var(--muted); }
.hud-aiminfo em { font-style: normal; font-weight: 700; color: #ff5a4a; }
.hud-crosshair[data-kind="point"] { width: 26px; height: 26px; border-style: dotted; border-color: #ffb35a; }
.hud-crosshair[data-kind="care"] { width: 18px; height: 18px; border: 0; border-radius: 0; background: linear-gradient(#7dffb0, #7dffb0) center / 100% 2px no-repeat, linear-gradient(#7dffb0, #7dffb0) center / 2px 100% no-repeat; }
.hud-crosshair[data-kind="care"]::after { display: none; }
.hud-crosshair.aim[data-kind="throw"], .hud-crosshair.aim[data-kind="melee"] { border-color: #ffd23c; }
body.wheel-open .hud-aiminfo, body.paused .hud-aiminfo { display: none !important; }

.hud-xp { position: absolute; left: 24px; bottom: 74px; width: 230px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; font-size: 12px; color: #dfe3ea; }
.hud-xp b { font: 700 14px var(--num); color: #ffd23c; }
.hud-xp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-xp i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hud-xp u { display: block; height: 100%; background: linear-gradient(90deg, #ffb020, #ffe066); transition: width 0.4s; }
.hud-tuto { position: absolute; right: 24px; top: 250px; width: 330px; padding: 10px 14px 12px; border-radius: 12px; background: rgba(12, 16, 26, 0.82); border: 1px solid rgba(255, 210, 60, 0.6); color: #eef1f6; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.hud-tuto.pop { animation: tuto-pop 0.45s ease-out; }
.hud-tuto .tuto-head { font: 700 12px var(--num); letter-spacing: 1.5px; color: #ffd23c; margin-bottom: 4px; }
.hud-tuto kbd, .help-overlay kbd { display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 1px; border-radius: 4px; background: #eef1f6; color: #12151c; font: 700 12px var(--num); text-align: center; }
.hud-tuto .tuto-dots { display: flex; gap: 5px; margin-top: 8px; }
.hud-tuto .tuto-dots i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.hud-tuto .tuto-dots i.done { background: #3ccf7a; }
.hud-tuto .tuto-dots i.now { background: #ffd23c; }
@keyframes tuto-pop { 0% { transform: translateX(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.help-overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 10, 0.6); }
.help-card { width: min(1100px, 94vw); max-height: 88vh; overflow: auto; padding: 18px 22px; border-radius: 16px; background: #141a26; border: 1px solid rgba(255, 255, 255, 0.12); color: #e6e9ef; }
.help-card h2 { margin: 0 0 10px; font-size: 22px; }
.help-card h2 small { color: #ffd23c; font-size: 14px; margin-left: 8px; }
.help-card h3 { margin: 12px 0 6px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #9fb0cc; }
.help-card h3 small { text-transform: none; letter-spacing: 0; color: #ffd23c; }
.help-cols { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 22px; }
.help-card ul { margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.5; }
.help-card ul.daily, .help-card ul.ach { list-style: none; padding: 0; }
.help-card ul.daily li { display: grid; grid-template-columns: 1fr 80px 44px; gap: 8px; align-items: center; }
.help-card ul.daily i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.help-card ul.daily u { display: block; height: 100%; background: #3ccf7a; }
.help-card ul.daily li.done span { color: #3ccf7a; }
.help-card ul.ach li { color: #7d879a; }
.help-card ul.ach li.done { color: #ffd23c; }
.help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 13px; }
.help-card dt { font: 700 12.5px var(--num); color: #fff; white-space: nowrap; }
.help-card dd { margin: 0; color: #c8cdd8; }
.help-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: #9aa3b5; }
.help-foot button { padding: 7px 14px; border-radius: 8px; border: 0; background: #ffd23c; color: #1a1a1a; font-weight: 700; cursor: pointer; }
#join .role .lvl { display: block; margin-top: 4px; font-size: 11px; color: #ffd23c; }
#profile-strip { margin: 8px 0 2px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); font-size: 12.5px; color: #dfe3ea; }
#profile-strip b { color: #ffb35a; }
#profile-strip .daily { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
#profile-strip .daily span.done { color: #3ccf7a; }
#profile-strip em { font-style: normal; opacity: 0.7; }

.help-overlay[hidden], .hud-tuto[hidden], .hud-needs[hidden] { display: none; }

@media (max-width: 1100px) {
  .hud-topleft, .hud-phase, .hud-maplegend { width: 230px; }
  .hud-map { width: 230px; height: 146px; }
  .hud-maplegend em { display: none; }
  .hud-mission { left: auto; right: 24px; transform: none; top: 205px; width: 260px; }
  .hud-tuto { top: 360px; width: 260px; font-size: 13px; }
}

@media (max-width: 640px) {
  .hud-poll { width: 170px; right: 10px; top: 10px; padding: 8px 10px; }
  .hud-poll .poll-scores { display: none; }
  .hud-topleft { left: 10px; top: 10px; }
  .hud-topleft, .hud-phase, .hud-maplegend { width: 190px; }
  .hud-map { width: 190px; height: 120px; }
  .hud-mission { right: 10px; top: 120px; width: 170px; }
  .hud-tuto { top: auto; bottom: 230px; right: 10px; width: 220px; }
}

.hud-tension { display: flex; flex-direction: column; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hud-tension.alone { position: absolute; right: 24px; top: 22px; width: 232px; padding: 10px 14px; background: var(--glass); border-radius: 14px; border-bottom: 0; }
.hud-tension .tn-head { display: flex; justify-content: space-between; align-items: baseline; }
.hud-tension .tn-head b { font: 700 14px var(--num); letter-spacing: 2px; }
.hud-tension .tn-level { font: 700 15px var(--num); letter-spacing: 1px; text-transform: uppercase; }
.hud-tension .tn-bar { position: relative; display: flex; gap: 2px; height: 6px; }
.hud-tension .tn-bar > i { display: block; height: 100%; opacity: 0.35; border-radius: 2px; }
.hud-tension .tn-needle { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.6); transition: left 0.9s ease-out; }
.hud-tension[data-level="ebullition"] .tn-needle { box-shadow: 0 0 8px #ffb020; }
.hud-tension[data-level="explosion"] .tn-needle { box-shadow: 0 0 10px #ff3a2a; animation: pulse 0.4s infinite alternate; }
.hud-tension[data-level="explosion"] .tn-level { animation: pulse 0.5s infinite alternate; }
.hud-tension .tn-role { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hud-tension .tn-role:empty { display: none; }
.hud-tension .tn-role b { color: var(--accent); font-weight: 700; }
.hud-tension .tn-role b.hot { color: #ff4a3a; animation: pulse 0.5s infinite alternate; }
.hud-tension .tn-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hud-tension .tn-track i { display: block; height: 100%; border-radius: 3px; transition: width 0.4s; }
.hud-tension .tn-keys { font-size: 11px; line-height: 1.5; color: var(--muted); }
.hud-tension .tn-keys:empty { display: none; }
.hud-tension .tn-keys kbd { display: inline-block; min-width: 14px; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); color: #0b0d12; font: 700 11px/15px var(--num); text-align: center; }

.hud-phase .phase-goal { display: none; }
.poll-scores .sc:not(.mine):not(.you) { display: none; }
.hud-feed .feed-line:nth-last-child(n+5) { display: none; }
body.paused .hud-lockhint, body.paused .hud-crosshair, body.paused .hud-prompt { display: none; }

.pause-menu { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 8, 12, 0.55); backdrop-filter: blur(3px); font-family: system-ui, sans-serif; color: #fff; }
.pause-menu[hidden] { display: none; }
.pm-panel { width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 18px 22px 20px; background: rgba(12, 15, 22, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; }
.pm-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pm-panel header b { display: block; font: 700 26px 'Rajdhani', 'Arial Narrow', sans-serif; letter-spacing: 4px; }
.pm-panel header span { font-size: 12px; color: #c8cdd8; }
.pm-panel button { font: 600 13px system-ui, sans-serif; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.pm-panel button:hover { background: rgba(255, 255, 255, 0.16); }
.pm-panel button.on { background: #fff; color: #0b0d12; }
.pm-resume { background: #ff5a3c !important; border-color: #ff5a3c !important; font-size: 14px !important; padding: 9px 18px !important; }
.pm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .pm-cols { grid-template-columns: 1fr; } }
.pm-panel h3 { margin: 12px 0 8px; font: 700 13px 'Rajdhani', 'Arial Narrow', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #c8cdd8; }
.pm-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pm-roles button { text-align: left; border-left: 4px solid var(--c); }
.pm-roles button.on { background: rgba(255, 255, 255, 0.92); }
.pm-note { margin: 6px 0 0; font-size: 11px; color: #9aa3b5; }
.pm-goals { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55; color: #dfe3ea; }
.pm-vol .vh-vol { display: grid !important; gap: 6px; padding: 0; background: none; }
.pm-vol .vh-vol label { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 8px; font-size: 13px; }
.pm-vol .vh-vol input { width: 100%; accent-color: #ff5a3c; }
.pm-vol .vh-vol output { text-align: right; color: #c8cdd8; }
.pm-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.pm-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.pm-keys { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 12px; }
.pm-keys dt { font: 700 12px 'Rajdhani', 'Arial Narrow', sans-serif; color: #fff; }
.pm-keys dd { margin: 0; color: #c8cdd8; }

.hud-eye { position: absolute; left: 50%; top: calc(50% - 92px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.hud-eye svg { width: 46px; height: 27px; overflow: visible; transform: scaleY(0.08); transition: transform 0.25s ease-out; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
.hud-eye .ey-white { fill: rgba(255, 255, 255, 0.92); }
.hud-eye .ey-iris { fill: #ffb020; }
.hud-eye .ey-pupil { fill: #10131a; }
.hud-eye .ey-outline { fill: none; stroke: #10131a; stroke-width: 2.5; }
.hud-eye span { font: 700 12px 'Rajdhani', 'Arial Narrow', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ffd27a; text-shadow: 0 1px 3px #000; }
.hud-eye[data-lvl="1"] { opacity: 0.9; }
.hud-eye[data-lvl="1"] svg { transform: scaleY(0.45); }
.hud-eye[data-lvl="2"] { opacity: 1; }
.hud-eye[data-lvl="2"] svg { transform: scaleY(1); }
.hud-eye[data-lvl="2"] .ey-iris { fill: #ff3a2a; }
.hud-eye[data-lvl="2"] span { color: #ff6a5a; animation: pulse 0.5s infinite alternate; }
body.paused .hud-eye { display: none; }

.poll-scores .sc.you { border-top: 1px solid var(--line); border-radius: 0; margin-top: 2px; padding-top: 6px; }
.poll-scores .sc.you i { background: #ffffff; }
.poll-scores .sc.you em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.hud-hurtring { position: fixed; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.hud-hurtring i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; box-sizing: border-box; border: 9px solid transparent; border-top-color: #ff3a2a; border-radius: 50%; filter: drop-shadow(0 0 6px rgba(255, 40, 20, 0.9)); will-change: transform, opacity; }
.hud-hurtlabel { position: fixed; left: 50%; top: calc(50% + 172px); transform: translateX(-50%); padding: 4px 12px; border-radius: 12px; background: rgba(60, 6, 4, 0.78); color: #ffd9d2; font: 600 14px var(--num); letter-spacing: 0.5px; white-space: nowrap; pointer-events: none; }
.hud-status em { display: block; font-style: normal; font-size: 17px; color: #ffb8ad; margin: 2px 0 4px; }
.help-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.role[hidden], #profile-strip[hidden] { display: none !important; }
