/* ═══════════════════════════════════════════════════
   ANTIFA HUNTERS — v4.6.0 HUD & BUILDER STYLES
   ═══════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */
:root {
    --bg-primary: #0a0e17;
    --bg-glass: rgba(10, 14, 23, 0.88);
    --bg-glass-light: rgba(20, 28, 45, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.35);
    --accent-primary: #00d4ff;
    --accent-secondary: #0066ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #0066ff);
    --accent-gradient-wide: linear-gradient(135deg, #00d4ff 0%, #0066ff 50%, #00d4ff 100%);
    --text-primary: #e8edf5;
    --text-secondary: #6a7a96;
    --text-dim: #3d4a5e;
    --danger: #ff4444;
    --danger-gradient: linear-gradient(135deg, #ff4444, #cc0000);
    --success: #00ff88;
    --success-gradient: linear-gradient(135deg, #00ff88, #00cc44);
    --warning: #ffaa00;
    --glass-blur: blur(12px);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* === BASE RESET === */
body {
    margin: 0;
    overflow: hidden;
    background: var(--bg-primary);
    user-select: none;
    font-family: 'Orbitron', sans-serif;
    touch-action: none;
    color: var(--text-primary);
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

.ui-layer {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* === TYPOGRAPHY & FORM BASE === */
select,
button,
input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 20, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    outline: none;
}

select:hover,
input:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

select:focus,
input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%236a7a96'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

button.start-btn {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: bold;
    border: none;
    margin-top: 20px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

label {
    display: block;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.control-group {
    margin: 14px 0;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    position: relative;
    color: var(--accent-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* === BUILDER UI === */
#builder-layer {
    display: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 55;
}

.builder-layout {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
    pointer-events: none;
}

.builder-panel {
    width: 360px;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-glow);
    padding: 20px;
    overflow-y: auto;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: default;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar for builder panel */
.builder-panel::-webkit-scrollbar {
    width: 4px;
}

.builder-panel::-webkit-scrollbar-track {
    background: transparent;
}

.builder-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
}

.builder-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 6px;
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary), #fff, var(--accent-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headerShimmer 6s ease-in-out infinite;
}

.builder-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

@keyframes headerShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.builder-view {
    flex-grow: 1;
    pointer-events: auto;
    cursor: grab;
    position: relative;
}

/* === SLIDERS === */
.slider-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.slider-label span:last-child {
    color: var(--accent-primary);
    font-weight: 700;
}

input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    margin-top: 6px;
    border: none;
    padding: 0;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* === PALETTE / COLORS === */
.palette-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.palette-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.palette-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.palette-btn.selected {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.custom-picker-wrap {
    position: relative;
    width: 30px;
    height: 30px;
}

.custom-picker-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(30, 40, 60, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 20px;
    line-height: 0;
    transition: var(--transition-fast);
}

.custom-picker-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hidden-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.color-swatch:hover {
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* === HUD === */
#hud-layer {
    display: none;
    z-index: 40;
}

.hud-stat {
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--success);
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 136, 0.15);
    z-index: 20000;
}

/* === HEALTH BARS === */
.bar-container {
    position: absolute;
    width: 280px;
    height: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    pointer-events: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.health-fill {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    transition: width 0.15s ease;
}

#player-bar {
    top: 48px;
    left: 14px;
}

#player-health {
    background: var(--success-gradient);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

#boss-bar {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 350px;
}

#boss-health {
    background: var(--danger-gradient);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* === CROSSHAIR === */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

#crosshair::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* === MINIMAP === */
#minimap-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 170, 0, 0.5);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

canvas#minimap {
    width: 100%;
    height: 100%;
}

/* === MOBILE CONTROLS === */
#mobile-controls {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.joystick-zone {
    width: 140px;
    height: 140px;
    position: absolute;
    bottom: 50px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

#stick-left {
    left: 40px;
}

#stick-right {
    right: 40px;
}

/* === HUD BUTTONS === */
.hud-btn-icon,
.action-btn,
#ctl-toggle-btn,
#help-btn,
#btn-toggle-debug,
#btn-respawn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-size: 55% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    color: transparent !important;
    position: relative;
    overflow: hidden !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition-fast);
}

.hud-btn-icon:hover,
.action-btn:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn svg {
    display: none !important;
}

/* === JOYSTICK NUBS === */
.joystick-nub {
    width: 48px;
    height: 48px;
    background: rgba(120, 130, 150, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === MOBILE ACTION GRID === */
#mobile-actions {
    position: absolute;
    bottom: 220px;
    right: 20px;
    display: grid !important;
    grid-template-columns: 56px 56px 56px;
    grid-template-rows: 56px 56px 56px;
    gap: 12px;
    pointer-events: auto;
    z-index: 100;
}

/* === BUTTON SPECIFIC STYLES === */

/* JUMP — upward arrow */
#btn-jump {
    background-color: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M5 12l7-7 7 7'/%3E%3C/svg%3E") !important;
    grid-column: 2;
    grid-row: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 255, 136, 0.15) !important;
}

#btn-jump:active {
    background-color: rgba(0, 255, 136, 0.35) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 255, 136, 0.4) !important;
}

/* PREV */
#btn-prev {
    background-color: rgba(0, 212, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") !important;
    grid-column: 1;
    grid-row: 2;
}

/* ATTACK — crosshair target */
#btn-attack {
    background-color: rgba(255, 68, 68, 0.18);
    border-color: rgba(255, 68, 68, 0.35) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2' x2='12' y2='5'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='22' y2='12'/%3E%3C/svg%3E") !important;
    grid-column: 2;
    grid-row: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 68, 68, 0.15) !important;
}

#btn-attack:active {
    background-color: rgba(255, 68, 68, 0.4) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 68, 68, 0.45) !important;
}

/* NEXT */
#btn-next {
    background-color: rgba(0, 212, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") !important;
    grid-column: 3;
    grid-row: 2;
}

/* SPRINT BUTTON — running figure (solid silhouette) */
#btn-sprint {
    background-color: rgba(138, 92, 246, 0.18);
    border-color: rgba(138, 92, 246, 0.35) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1L6 8.3V13h2V9.6l1.8-.7'/%3E%3C/svg%3E") !important;
    grid-column: 2;
    grid-row: 3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(138, 92, 246, 0.15) !important;
}

#btn-sprint:active {
    background-color: rgba(138, 92, 246, 0.4) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(138, 92, 246, 0.4) !important;
}

/* === SPRINT INDICATOR === */
#sprint-indicator {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: rgba(138, 92, 246, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    border: 2px solid rgba(138, 92, 246, 0.6);
    display: none;
    z-index: 1000;
    box-shadow: 0 0 16px rgba(138, 92, 246, 0.35), inset 0 0 8px rgba(138, 92, 246, 0.15);
    animation: sprintPulse 1s ease-in-out infinite;
}

#sprint-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(138, 92, 246, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(138, 92, 246, 0.6);
}

@keyframes sprintPulse {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(138, 92, 246, 0.35), inset 0 0 8px rgba(138, 92, 246, 0.15);
        border-color: rgba(138, 92, 246, 0.6);
    }

    50% {
        box-shadow: 0 0 28px rgba(138, 92, 246, 0.55), inset 0 0 12px rgba(138, 92, 246, 0.25);
        border-color: rgba(138, 92, 246, 0.8);
    }
}

/* === TOP/SIDE BUTTONS === */

#help-btn {
    position: absolute;
    top: 20px;
    right: 175px;
    background-color: rgba(0, 212, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E") !important;
    z-index: 20005 !important;
}

#ctl-toggle-btn {
    position: absolute;
    top: 20px;
    right: 240px;
    background-color: rgba(100, 100, 100, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h18v8zM6 15h2v-2h2v-2H8V9H6v2H4v2h2z'/%3E%3Ccircle cx='14.5' cy='12' r='1.5'/%3E%3Ccircle cx='18.5' cy='12' r='1.5'/%3E%3C/svg%3E") !important;
    z-index: 20005 !important;
}

#btn-toggle-debug {
    position: absolute;
    top: 180px;
    right: 60px;
    background-color: rgba(68, 68, 68, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z'/%3E%3C/svg%3E") !important;
    z-index: 20005 !important;
    display: flex !important;
}

#btn-respawn {
    position: absolute;
    top: 250px;
    right: 65px;
    background-color: rgba(255, 69, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 7h-4C8.9 7 8 7.9 8 9v6h2v7h4v-7h2V9c0-1.1-.9-2-2-2zm-2-5.999c1.66 0 2.99 1.34 2.99 3S13.66 7.001 12 7.001 9.01 5.661 9.01 4.001 10.34 1.001 12 1.001z'/%3E%3C/svg%3E") !important;
    z-index: 20005 !important;
    display: flex !important;
}

/* === WEAPON CAROUSEL === */
#weapon-carousel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.weapon-slot {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

.weapon-slot.active {
    width: 120px;
    height: 120px;
    border-color: var(--accent-primary);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.05);
    z-index: 101;
}

/* === WIN/LOSS SCREENS === */
#win-layer,
#loose-layer {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30000 !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: auto;
}

#win-layer h1 {
    color: var(--success);
    font-size: 3.5rem;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    letter-spacing: 6px;
    animation: winPulse 2s ease-in-out infinite;
}

@keyframes winPulse {

    0%,
    100% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    }

    50% {
        text-shadow: 0 0 80px rgba(0, 255, 136, 0.8), 0 0 120px rgba(0, 255, 136, 0.3);
    }
}

#loose-layer h1 {
    color: var(--danger);
    font-size: 4rem;
    text-shadow: 0 0 40px rgba(255, 68, 68, 0.5);
    letter-spacing: 8px;
    animation: losePulse 1.5s ease-in-out infinite;
}

@keyframes losePulse {

    0%,
    100% {
        text-shadow: 0 0 40px rgba(255, 68, 68, 0.5);
    }

    50% {
        text-shadow: 0 0 60px rgba(255, 68, 68, 0.8);
        transform: scale(1.02);
    }
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
    #mobile-controls {
        display: block;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* === DEBUG OVERLAY (consolidated from debug.css) === */
#debug-overlay {
    position: fixed;
    top: 20%;
    left: 5%;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    padding: 15px;
    z-index: 10000;
    pointer-events: none;
    text-align: left;
    border: 2px solid red;
    display: none;
    white-space: pre-wrap;
}