* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #000; font-family: 'Segoe UI', system-ui, sans-serif; }
canvas { display: block; position: fixed; inset: 0; }

#blocker {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; cursor: pointer;
    user-select: none;
}
#blocker .inner {
    text-align: center; color: #ccc;
}
#blocker h1 { font-size: 48px; color: #fff; margin-bottom: 8px; letter-spacing: 2px; }
#blocker .sub { font-size: 18px; margin-bottom: 24px; color: #999; }
#blocker .start { background: #f5a623; color: #111; border: none; padding: 14px 48px; font-size: 20px; font-weight: 700; border-radius: 4px; cursor: pointer; letter-spacing: 1px; }
#blocker .start:hover { background: #ffb83a; }
#blocker .settings { background: transparent; color: #ccc; border: 1px solid #555; padding: 8px 24px; font-size: 12px; font-weight: 600; border-radius: 3px; cursor: pointer; letter-spacing: 2px; margin-top: 14px; text-transform: uppercase; transition: border-color 0.15s, color 0.15s; }
#blocker .settings:hover { border-color: #f5a623; color: #f5a623; }
#blocker .controls { margin-top: 32px; font-size: 14px; color: #888; line-height: 2; }
#blocker .controls kbd { background: #333; color: #ddd; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
#blocker .version { margin-top: 18px; font-size: 12px; color: #555; letter-spacing: 1px; }

.map-select-row {
    margin: 20px 0 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.map-select-row label {
    font-size: 11px; color: #888; letter-spacing: 2px; text-transform: uppercase;
}
.map-select-row select {
    background: #11111e; color: #ccc; border: 1px solid #333; border-radius: 3px;
    padding: 6px 10px; font-size: 13px; font-weight: 600;
    outline: none; cursor: pointer;
}
.map-select-row select:focus { border-color: #f5a623; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

#crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#crosshair .line { position: absolute; background: rgba(0,255,0,0.85); }
#crosshair .dot { position: absolute; background: rgba(0,255,0,0.9); width: 2px; height: 2px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }

#health-wrap { position: absolute; bottom: 48px; left: 48px; display: flex; align-items: center; gap: 14px; }
#health-icon { font-size: 28px; color: #e53935; font-weight: 700; }
#health-bar { width: 160px; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
#health-bar-fill { height: 100%; background: #4caf50; border-radius: 3px; transition: width 0.1s, background 0.2s; }
#health-text { font-size: 22px; color: #fff; font-weight: 700; min-width: 36px; }

#ammo-wrap { position: absolute; bottom: 48px; right: 48px; text-align: right; }
#ammo-wrap .ammo { font-size: 38px; color: #fff; font-weight: 700; letter-spacing: 1px; }
#ammo-wrap .ammo .sep { color: #888; margin: 0 4px; }
#ammo-wrap .ammo .total { color: #888; font-size: 28px; }

#weapon-name { position: absolute; bottom: 88px; right: 48px; text-align: right; font-size: 14px; font-weight: 600; color: #aaa; letter-spacing: 2px; text-shadow: 0 0 6px rgba(0,0,0,0.8); text-transform: uppercase; }

#kill-wrap { position: absolute; top: 24px; right: 48px; text-align: right; }
#kill-wrap .label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
#kill-wrap .count { font-size: 32px; color: #f5a623; font-weight: 700; }

#hitmarker { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.05s; pointer-events: none; }
#hitmarker .x { position: absolute; width: 2px; height: 12px; background: #fff; }
#hitmarker .x:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
#hitmarker .x:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
#hitmarker.kill .x { background: #f5a623; height: 16px; width: 3px; }

#dmg-indicator { position: absolute; inset: 0; border: 8px solid transparent; transition: border-color 0.15s; pointer-events: none; }
#dmg-indicator.hit { border-color: rgba(255,0,0,0.35); }

#kill-feed { position: absolute; top: 80px; left: 48px; font-size: 14px; color: #fff; }
#kill-feed .entry { opacity: 1; transition: opacity 0.5s; margin-bottom: 4px; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
#kill-feed .entry .hl { color: #f5a623; font-weight: 700; }
#kill-feed .entry.fade { opacity: 0; }

#bot-warning { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #f5a623; font-size: 64px; font-weight: 700; opacity: 0; transition: opacity 0.3s; text-shadow: 0 0 20px rgba(245,166,35,0.5); pointer-events: none; letter-spacing: 2px; }

#round-timer { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; }
#round-timer #round-num { font-size: 12px; color: #888; letter-spacing: 2px; text-transform: uppercase; }
#round-timer #round-time { font-size: 34px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 0 10px rgba(0,0,0,0.7); }
#round-timer #round-label { font-size: 11px; color: #f5a623; letter-spacing: 2px; text-transform: uppercase; min-height: 14px; }

#debug-overlay { position: absolute; top: 16px; left: 16px; font-size: 11px; line-height: 1.5; color: #8cffb0; background: rgba(0,0,0,0.4); padding: 8px 10px; border-radius: 3px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; pointer-events: none; text-shadow: 0 0 4px rgba(0,0,0,0.9); white-space: pre; display: none; }

/* Stacked under #kill-wrap (top-right), same right margin as other right HUD */
#fps-counter { position: absolute; top: 88px; right: 48px; font-size: 13px; font-weight: 700; color: #8cffb0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: right; text-shadow: 0 0 6px rgba(0,0,0,0.8); letter-spacing: 1px; }

/* ─── SETTINGS MENU ───────────────────────────────────────────────────────── */
#menu-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    cursor: default;
}
.menu-panel {
    background: #1a1a2e; border: 1px solid #333; border-radius: 4px;
    padding: 32px 40px; min-width: 420px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.menu-header {
    font-size: 20px; font-weight: 700; color: #f5a623; letter-spacing: 2px;
    text-align: center; margin-bottom: 28px; text-transform: uppercase;
}
.menu-row {
    margin-bottom: 20px;
}
.menu-row label {
    display: block; font-size: 11px; color: #888; letter-spacing: 1px;
    margin-bottom: 6px; text-transform: uppercase;
}
.slider-wrap {
    display: flex; align-items: center; gap: 12px;
}
.slider-wrap input[type="range"] {
    flex: 1; -webkit-appearance: none; appearance: none;
    height: 4px; background: #333; border-radius: 2px; outline: none;
    cursor: pointer;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f5a623; border: 2px solid #1a1a2e; cursor: pointer;
}
.slider-wrap input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #f5a623; border: 2px solid #1a1a2e; cursor: pointer;
}
.slider-val {
    font-size: 14px; color: #ccc; font-weight: 600; min-width: 36px; text-align: right;
}
.menu-select {
    width: 100%; background: #11111e; color: #ccc;
    border: 1px solid #333; border-radius: 3px;
    padding: 8px 10px; font-size: 14px; font-weight: 600;
    outline: none; cursor: pointer;
}
.menu-select:focus { border-color: #f5a623; }
.toggle-wrap { display: flex; align-items: center; }
.toggle-wrap input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: #f5a623; cursor: pointer;
}
.color-picker {
    display: flex; gap: 8px;
}
.color-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; transition: border-color 0.15s; outline: none;
}
.color-btn:hover { border-color: #888; }
.color-btn.active { border-color: #f5a623; box-shadow: 0 0 8px rgba(245,166,35,0.4); }
.menu-resume {
    display: block; width: 100%; margin-top: 24px;
    background: #f5a623; color: #111; border: none;
    padding: 12px 0; font-size: 16px; font-weight: 700;
    border-radius: 3px; cursor: pointer; letter-spacing: 2px; text-transform: uppercase;
    transition: background 0.15s;
}
.menu-resume:hover { background: #ffb83a; }