/* Russo One font loaded via <link> in index.php */

/* ============================================
   !important USAGE STRATEGY
   ============================================

   1. MOBILE RESPONSIVENESS (media queries)
   2. ACCESSIBILITY (prefers-reduced-motion)
   3. VK IFRAME OVERRIDE
   4. JS STATE TOGGLES

   ============================================ */

/* CSS variables for performance */
:root {
    /* Blur effects - can be disabled for weak devices */
    --blur-enabled: 1;
    --backdrop-blur-light: blur(5px);
    --backdrop-blur-medium: blur(10px);
    --backdrop-blur-heavy: blur(15px);
    --backdrop-blur-extra: blur(20px);
}

/* Disable blur for prefers-reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    :root {
        --blur-enabled: 0;
        --backdrop-blur-light: none;
        --backdrop-blur-medium: none;
        --backdrop-blur-heavy: none;
        --backdrop-blur-extra: none;
    }
}

/* Class for programmatic blur disable */
.reduce-blur {
    --blur-enabled: 0;
    --backdrop-blur-light: none;
    --backdrop-blur-medium: none;
    --backdrop-blur-heavy: none;
    --backdrop-blur-extra: none;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    /* Disable infinite animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Exception: loading spinners */
    .fa-spin,
    .fa-spinner,
    [class*="loader"],
    [class*="spinner"] {
        animation-duration: 1s !important;
        animation-iteration-count: infinite !important;
    }
}

/* Class for programmatic animation disable */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
}

/* Spinners always work */
.reduce-motion .fa-spin,
.reduce-motion .fa-spinner,
.reduce-motion [class*="loader"],
.reduce-motion [class*="spinner"] {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffaa00, #ff8800);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffcc00, #ffaa00);
}

body {
    font-family: 'Russo One', sans-serif;
    overflow: hidden;
    background: #000;
    cursor: default;
    user-select: none;
    touch-action: pan-y;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--toast-bg, rgba(30, 30, 30, 0.95));
    border: 1px solid var(--toast-color, #60a5fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--toast-color) 30%, transparent);
    backdrop-filter: var(--backdrop-blur-medium);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 20px;
    color: var(--toast-color, #60a5fa);
}

.toast-notification span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    #toastContainer {
        top: 10px;
        width: calc(100% - 20px);
    }

    .toast-notification {
        padding: 12px 18px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .toast-notification i {
        font-size: 18px;
    }

    .toast-notification span {
        font-size: 14px;
    }
}

/* Tactical Toast Overrides */
.toast-notification {
    background: linear-gradient(145deg, rgba(10, 10, 20, 0.98), rgba(5, 5, 15, 0.98));
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-left: 3px solid var(--toast-color, #ffaa00);
    border-radius: 0;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px color-mix(in srgb, var(--toast-color, #ffaa00) 20%, transparent);
}

@media (max-width: 600px) {
    .toast-notification {
        clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    }
}

#gameLogo {
    display: none !important;
}

body.game-active {
    cursor: none;
}

#gameCanvas {
    display: block;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

#ui * {
    pointer-events: auto;
}

@media (max-width: 768px), (pointer: coarse) {
    #ui {
        z-index: 50;
    }

    #matchTopPlayers {
        display: none !important;
    }

    #pauseMenu {
        padding: 10px !important;
        gap: 8px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: 100vh !important;
    }

    #pauseMain {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    #pauseMenu h1 {
        font-size: 22px !important;
        margin: 5px 0 !important;
    }
    
    #pauseMenu .menu-profile {
        padding: 8px !important;
        margin: 5px 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    #pauseMenu .menu-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    #pauseMenu .menu-name {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 200px !important;
    }
    
    #pauseMenu .menu-stats {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }
    
    #pauseMenu .menu-btn {
        font-size: 13px !important;
        padding: 10px 15px !important;
        margin: 5px 0 !important;
    }
    
    #pauseMenu .settings-container {
        max-width: 95% !important;
        font-size: 11px !important;
        margin: 10px 0 !important;
    }
    
    #pauseMenu label {
        font-size: 11px !important;
    }
    
    #pauseMenu .time-toggle {
        gap: 5px !important;
    }
    
    #pauseMenu .time-btn {
        font-size: 10px !important;
        padding: 6px 10px !important;
    }

    #controls {
        display: none !important;
    }

    /* Settings panels mobile */
    .pause-settings-panel {
        padding: 10px !important;
        max-width: 100% !important;
    }

    .settings-back-btn {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }

    .settings-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    #pauseMenu .settings-container {
        padding: 15px !important;
    }

    .settings-group {
        margin-bottom: 18px !important;
    }

    .settings-group label {
        font-size: 12px !important;
    }

    .checkbox-label {
        padding: 8px !important;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
    }

    .checkbox-label span {
        font-size: 12px !important;
    }

    .time-btn {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    .pause-buttons {
        gap: 3px !important;
        margin: 10px 0 !important;
    }

    .settings-section {
        margin-top: 15px !important;
        padding-top: 15px !important;
    }

    .settings-section-title {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    #hudBottom {
        transform: scale(0.75) !important;
        transform-origin: bottom left !important;
        padding-left: 160px !important;
        padding-bottom: 20px !important;
        background: none !important;
    }

    #healthPanel {
        margin-left: 10px !important;
    }

    #ammoPanel {
        transform-origin: bottom right !important;
    }

    #closeScoreboardBtn {
        display: flex !important;
    }

    #multiplayerScoreboard {
        min-width: auto !important;
        width: 95vw !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
    }

    #multiplayerScoreboard h2 {
        font-size: 20px !important;
    }

    #multiplayerScoreboard table {
        font-size: 12px !important;
    }

    #multiplayerScoreboard th,
    #multiplayerScoreboard td {
        padding: 6px 4px !important;
    }

    #fpsCounter {
        font-size: 13px !important;
        background: none !important;
        border: none !important;
        padding: 5px !important;
        top: 15px !important;
        left: 90px !important;
        right: auto !important;
    }
    
    #multiplayerOnlineHUD {
        background: none !important;
        border: none !important;
        padding: 5px 10px !important;
        font-size: 14px !important;
    }
    
    .score-container {
        display: none !important;
    }
    
    #killFeed {
        top: 140px !important;
        right: 5px !important;
        font-size: 10px !important;
        max-width: 200px !important;
    }
    
    #killFeed > div {
        padding: 4px 8px !important;
        gap: 4px !important;
    }
    
    #killFeed span {
        max-width: 70px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    #killFeed i {
        font-size: 10px !important;
    }
}

body[data-multiplayer="true"] .score-container,
body[data-multiplayer="true"] #zombieCoinsPanel {
    display: none !important;
}

#multiplayerOnlineHUD {
    background: none;
    border: none;
    padding: 5px 15px;
}

#fpsCounter {
    background: none;
    border: none;
    padding: 5px;
    font-size: 14px;
}

/* Steam Profile UI */
#steamProfile {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto; /* Enable clicking */
}

/* TAB Scoreboard */
#scoreboard {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    backdrop-filter: var(--backdrop-blur-medium);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-radius: 15px;
    color: white;
    z-index: 900;
    font-family: 'Russo One', sans-serif;
    padding: 30px;
    pointer-events: auto;
}

.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

#scoreboard h2 {
    text-align: left;
    color: #ffaa00;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 32px;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 10px;
}

.close-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.score-table {
    width: 100%;
    border-collapse: collapse;
}

.score-table th, .score-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-table th {
    color: #888;
    text-transform: uppercase;
    font-size: 14px;
}

.score-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

/* ESC Menu */
#pauseMenu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--backdrop-blur-heavy);
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#pauseMain {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

#pauseSettings {
    display: none;
}

#chatSettingsSection {
    display: none;
}

#pauseMenu h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.menu-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    width: 300px;
}

.menu-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffaa00;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.menu-name {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.menu-stats {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    opacity: 0.7;
}

.menu-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    color: white;
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.5);
    border: none;
}

.menu-btn i {
    margin-right: 8px;
}

.menu-btn i.fa-chevron-right {
    margin-right: 0;
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.7;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
    width: 100%;
}

.pause-buttons .menu-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 12px 20px;
}

/* Settings Panels */
.pause-settings-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-back-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #aaa;
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
    border-radius: 8px;
}

.settings-back-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.settings-back-btn i {
    margin-right: 8px;
}

.settings-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.settings-title i {
    margin-right: 10px;
    color: #ffaa00;
}

#pauseMenu .settings-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    color: #aaa;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.settings-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ffaa00, #ff6600);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.settings-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ffaa00, #ff6600);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #ffaa00;
}

.checkbox-label span {
    color: #fff;
    font-size: 14px;
}

.time-toggle {
    display: flex;
    gap: 10px;
}

.time-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.time-btn.active {
    background: linear-gradient(135deg, #ffaa00, #ff6600);
    border-color: #ffaa00;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.time-btn i {
    margin-right: 8px;
}

.settings-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section-title {
    color: #ffaa00;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.settings-section-title i {
    margin-right: 8px;
}

.start-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.start-buttons-row {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

#startLeaderboardBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    padding: 15px 20px;
    min-width: auto;
    flex: 1;
}

#startLeaderboardBtn:hover {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transform: translateY(-3px);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 2px solid #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}
.profile-name {
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 0 #000;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
}
.login-btn {
    background: linear-gradient(to bottom, #6a9c34, #4a7c14);
    color: white;
    padding: 12px 24px;
    border: 1px solid #8abc44;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Russo One', sans-serif;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 0 #2d4d0c;
    transition: transform 0.1s, box-shadow 0.1s;
}
.login-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d4d0c;
    background: linear-gradient(to bottom, #7ab53d, #568c17);
}
.login-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

#gameLogo {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Russo One', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #ffaa00;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 100, 0, 0.8),
        2px 2px 0 #000;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.8), transparent);
    padding: 5px 40px;
    border-bottom: 2px solid #ff6600;
}

/* ============================================
   TACTICAL HUD - Modern FPS Style
   ============================================ */

/* Crosshair - Clean dot with subtle lines */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

#crosshair::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#crosshair::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Top HUD */
#hudTop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
    pointer-events: none;
}

#hudTop > * {
    pointer-events: auto;
}

#fpsCounter {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

#fpsCounter #fpsValue {
    color: rgba(255, 255, 255, 0.7);
}

.fps-label {
    font-size: 9px;
    opacity: 0.6;
}

#multiplayerOnlineHUD {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

#multiplayerOnlineHUD i {
    color: #00d4ff;
    font-size: 10px;
}

/* Zombie Coins Panel */
/* ============================================
   TACTICAL ZOMBIE COINS PANEL
   ============================================ */
#zombieCoinsPanel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 10, 20, 0.75));
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-left: 2px solid #ffc800;
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

#zombieCoinsPanel i {
    color: #ffc800;
    font-size: 14px;
    filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.6));
}

#zombieCoinsValue {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    min-width: 28px;
    text-shadow: 0 0 8px rgba(255, 200, 0, 0.4);
    letter-spacing: 1px;
}

.flying-coin {
    position: fixed;
    font-size: 16px;
    color: #ffc800;
    filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.9));
    pointer-events: none;
    z-index: 9999;
}

#zombieCoinsPanel.coin-pulse {
    animation: coinPulse 0.3s ease-out;
}

@keyframes coinPulse {
    50% {
        transform: scale(1.05);
        border-left-color: #ffd700;
        box-shadow: 0 3px 15px rgba(255, 200, 0, 0.4);
    }
}

/* ============================================
   TACTICAL WAVE PANEL
   ============================================ */
#wavePanel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 10, 20, 0.75));
    border: 1px solid rgba(255, 58, 58, 0.3);
    border-left: 3px solid #ff3a3a;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 58, 58, 0.1);
}

.wave-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wave-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 58, 58, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#waveNumber {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 58, 58, 0.6);
}

.enemies-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 58, 58, 0.15);
    border-radius: 4px;
}

.enemies-info i {
    font-size: 14px;
    color: #ff3a3a;
    animation: skullPulse 1.5s ease infinite;
}

#enemiesLeft {
    color: #ff3a3a;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 58, 58, 0.5);
}

@keyframes skullPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ============================================
   BOTTOM HUD
   ============================================ */

#hudBottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 16px 20px;
    pointer-events: none;
}

#hudBottom > * {
    pointer-events: auto;
}

/* Health Panel */
#healthPanel {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5));
    border-left: 3px solid #00d4ff;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.health-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 4px;
}

.health-icon i {
    color: #00d4ff;
    font-size: 16px;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
}

.health-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#healthText {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

#healthContainer {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

#healthFill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00d4ff, #00f0ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: width 0.2s ease-out;
}

/* Health states */
#healthPanel.low-health {
    border-left-color: #ff3a3a;
}

#healthPanel.low-health .health-icon {
    background: rgba(255, 58, 58, 0.15);
}

#healthPanel.low-health .health-icon i {
    color: #ff3a3a;
    filter: drop-shadow(0 0 6px rgba(255, 58, 58, 0.6));
    animation: healthPulse 0.8s ease-in-out infinite;
}

#healthPanel.low-health #healthFill {
    background: linear-gradient(90deg, #ff3a3a, #ff6060);
    box-shadow: 0 0 10px rgba(255, 58, 58, 0.5);
}

#healthPanel.low-health #healthText {
    color: #ff3a3a;
    text-shadow: 0 0 20px rgba(255, 58, 58, 0.4);
}

@keyframes healthPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Ammo Panel */
#ammoPanel {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 10px 12px 10px 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75));
    border-right: 3px solid #ff9500;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.ammo-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#fireMode {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 149, 0, 0.7);
    letter-spacing: 2px;
}

#ammo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

#ammoCurrent {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.ammo-separator {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

#ammoReserve {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

#ammoBar {
    display: flex;
    gap: 1px;
    justify-content: flex-end;
}

.bullet {
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #ff9500, #ff7b00);
    border-radius: 1px;
    transition: opacity 0.1s;
}

.bullet.empty {
    background: rgba(255, 149, 0, 0.15);
}

/* Ammo states */
#ammoPanel.low-ammo {
    border-right-color: #ff3a3a;
}

#ammoPanel.low-ammo #ammoCurrent {
    color: #ff3a3a;
    text-shadow: 0 0 20px rgba(255, 58, 58, 0.4);
    animation: ammoPulse 0.6s ease-in-out infinite;
}

#ammoPanel.low-ammo .bullet:not(.empty) {
    background: linear-gradient(180deg, #ff3a3a, #ff6060);
}

#ammoPanel.reloading #ammoCurrent {
    animation: reloadFlash 0.4s ease-in-out infinite;
}

@keyframes ammoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes reloadFlash {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Grenade Counter */
#grenadeCounter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 6px;
    transition: transform 0.1s;
}

#grenadeCounter:active {
    transform: scale(0.95);
}

#grenadeCounter i {
    font-size: 18px;
    color: #ff6b35;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.6));
}

.grenade-pips {
    display: flex;
    gap: 3px;
}

.grenade-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    transition: all 0.2s;
}

.grenade-pip.active {
    background: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.8);
}

#controls {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: var(--backdrop-blur-light);
    max-width: 200px;
}

#controls div {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#controls .key {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
}

#hitMarker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    color: #ffff00;
    text-shadow: 0 0 20px rgba(255,255,0,1);
    transition: all 0.3s ease;
}

#hitMarker.show {
    font-size: 60px;
    opacity: 1;
}

#damageOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 0, 0, 0.4) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#damageOverlay.show {
    opacity: 1;
}

@keyframes headshotPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) translateY(-30px);
        opacity: 0;
    }
}

@keyframes damageFlash {
    0% {
        transform: rotate(var(--angle)) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) scale(1);
        opacity: 0;
    }
}

.float-score {
    position: absolute;
    color: #00ff00;
    font-size: 36px;
    font-weight: bold;
    pointer-events: none;
    text-shadow:
        0 0 10px rgba(0,255,0,0.8),
        0 0 20px rgba(0,255,0,0.6),
        2px 2px 4px rgba(0,0,0,0.8);
    animation: floatUp 1.5s ease-out forwards;
}

.float-score.mobile {
    font-size: 20px;
    text-shadow:
        0 0 6px rgba(0,255,0,0.8),
        0 0 12px rgba(0,255,0,0.6),
        1px 1px 2px rgba(0,0,0,0.8);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

@keyframes coinsFloatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    70% {
        opacity: 1;
        transform: translateY(-25px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-35px) scale(0.9);
    }
}

/* Start Screen / Main Menu - Redesigned */
#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
}

#startScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/arena/assets/_arena.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -2;
}

#startScreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgb(10 14 26) 0%,
        rgba(26, 26, 46, 0.85) 50%,
        rgba(22, 33, 62, 0.85) 100%);
    z-index: -1;
}

#startScreen h1 {
    font-size: 84px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 8px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0,114,255,0.5));
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Layout for Option 1: Horizontal Cinematic */
.menu-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: var(--backdrop-blur-extra);
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-width: 900px;
    max-width: 1200px;
    width: 80%;
    max-height: 90vh;
}

/* Left Side: UI & Controls */
.menu-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
    position: relative;
    z-index: 2;
}

/* Right Side: Weapon Preview */
.menu-right {
    position: relative;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menuCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Weapon Controls (Overlay on right side) */
.weapon-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.menu-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.5;
    max-width: 400px;
}

#startScreen h1 {
    margin-bottom: 15px;
    text-align: left;
}

.start-profile-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-left: 4px solid #ffaa00;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
    gap: 15px;
}

.start-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.start-buttons-row {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.menu-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    min-width: 0;
}

#startButton, .login-btn-main {
    min-width: 200px;
    font-size: 20px;
    padding: 15px 30px;
}

/* Scrollbar styles removal since we don't scroll anymore */
.menu-card::-webkit-scrollbar { display: none; }

.skin-btn {
    background: rgba(0,0,0,0.5);
    backdrop-filter: var(--backdrop-blur-light);
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
}

#skinName {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
    letter-spacing: 2px;
    font-style: italic;
}

.skin-btn:hover {
    background: #ffaa00;
    border-color: #ffaa00;
    transform: scale(1.1);
}

#startButton, .login-btn-main {
    padding: 18px 50px;
    font-size: 24px;
    font-family: 'Russo One', sans-serif;
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 100, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

#startButton::before, .login-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

#startButton:hover::before, .login-btn-main:hover::before {
    left: 100%;
}

#startButton:hover, .login-btn-main:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 100, 0, 0.5);
}

.login-btn-main {
    background: linear-gradient(90deg, #1b2838, #2a475e); /* Steam colors */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.login-btn-main:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.reloading {
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #0b0e14;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

.preloader-logo {
    width: 280px;
    max-width: 80vw;
    height: auto;
    min-height: 80px;
    margin-bottom: 40px;
    display: block;
    object-fit: contain;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 170, 0, 0.1);
    border-left-color: #ffaa00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.loader-text {
    color: #fff;
    font-family: 'Russo One', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Arsenal Modal */
#arsenalModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.arsenal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: var(--backdrop-blur-medium) saturate(180%);
}

.arsenal-container {
    position: relative;
    width: 92%;
    max-width: 1500px;
    height: 88%;
    margin: 2.5% auto;
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 50px;
    overflow-y: auto;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.arsenal-container::-webkit-scrollbar {
    width: 8px;
}

.arsenal-container::-webkit-scrollbar-track {
    background: rgba(255, 170, 0, 0.05);
    border-radius: 10px;
}

.arsenal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 170, 0, 0.6), 
        rgba(255, 102, 0, 0.6));
    border-radius: 10px;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.arsenal-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 170, 0, 0.9), 
        rgba(255, 102, 0, 0.9));
}

.arsenal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,170,0,0.4) 50%, 
        transparent 100%) bottom / 100% 2px no-repeat;
}

.arsenal-header h2 {
    background: linear-gradient(135deg, #ffaa00 0%, #ffdd00 50%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 42px;
    text-shadow: none;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 30px rgba(255,170,0,0.6));
}

.arsenal-header h2 i {
    margin-right: 20px;
    animation: pulse 2s ease infinite;
    filter: drop-shadow(0 0 10px rgba(255,170,0,0.8));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.arsenal-loader {
    text-align: center;
    padding: 50px;
    color: #ffaa00;
    font-size: 24px;
}

.arsenal-loader i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* ========== ARSENAL GRID - Modern Cards ========== */
.arsenal-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

/* ============================================
   ARSENAL CARDS - 3 Column Grid Design
   ============================================ */

.weapon-card {
    background: linear-gradient(180deg, rgba(30, 35, 45, 0.95) 0%, rgba(20, 22, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.weapon-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 0, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.weapon-card.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.weapon-card.locked:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}


/* Выбранное оружие - зелёная рамка */
.weapon-card.equipped {
    border-color: #00ff88;
    border-width: 2px;
    background: linear-gradient(180deg, rgba(0, 50, 30, 0.4) 0%, rgba(20, 22, 28, 0.95) 100%);
}

.weapon-card.equipped:hover {
    transform: none;
    cursor: default;
    border-color: #00ff88;
    box-shadow: none;
}

/* Purchasable weapon */
.weapon-card.purchasable {
    border-color: rgba(255, 215, 0, 0.4);
}

.weapon-card.purchasable:hover {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.weapon-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    position: relative;
    z-index: 1;
}


.weapon-name {
    font-size: 9px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    order: -1;
}


/* Превью - правильные пропорции 16:9 */
.weapon-preview-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-preview-canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.weapon-lock-overlay {
    display: none;
}

.weapon-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.weapon-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.weapon-ammo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
    font-family: 'Rajdhani', monospace;
    font-weight: 600;
    font-size: 9px;
}

.weapon-ammo i {
    font-size: 8px;
    color: rgba(255, 170, 0, 0.8);
}

.weapon-ammo-current {
    color: #fff;
}

.weapon-ammo-separator {
    color: rgba(255, 255, 255, 0.3);
}

.weapon-ammo-reserve {
    color: rgba(255, 255, 255, 0.5);
}


.weapon-status {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 0;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.weapon-status.equipped {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.weapon-status.equip {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.weapon-status.equip:hover {
    background: rgba(255, 170, 0, 0.25);
    border-color: rgba(255, 170, 0, 0.7);
}


.weapon-requirement {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    margin-top: auto;
}

.weapon-requirement i {
    font-size: 8px;
    color: rgba(255, 170, 0, 0.7);
}

/* Purchasable skins */
.weapon-lock-overlay.premium {
    color: rgba(186, 85, 211, 0.5);
}

/* Цена - компактный стиль */
.weapon-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #ffd700;
}

.weapon-price i {
    font-size: 9px;
    color: #ffd700;
}

.weapon-buy-btn {
    font-size: 8px;
    color: #ffd700;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.weapon-buy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.7);
}

/* NEW badge */
.weapon-new-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 8px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #ffdd00, #ffaa00);
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
}

/* ========== Weapon Preview Modal (Mobile) ========== */
.weapon-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25000;
}

.weapon-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: var(--backdrop-blur-medium);
}

.weapon-preview-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    z-index: 1;
    padding: 16px 24px;
}

#weaponPreviewCanvas {
    width: min(200px, 55vh);
    height: min(200px, 55vh);
    border-radius: 10px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    flex-shrink: 0;
}

.weapon-preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.weapon-preview-name {
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.weapon-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-preview-ammo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Rajdhani', monospace;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 6px;
}

.weapon-preview-ammo i {
    color: rgba(255, 170, 0, 0.8);
    font-size: 12px;
}

.weapon-preview-lock {
    display: none;
    align-items: center;
    gap: 6px;
    font-family: 'Russo One', sans-serif;
    font-size: 12px;
    color: rgba(255, 100, 100, 0.9);
    background: rgba(255, 100, 100, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.weapon-preview-lock.visible {
    display: flex;
}

.weapon-preview-lock i {
    font-size: 11px;
}

.weapon-preview-equip {
    padding: 10px 28px;
    font-family: 'Russo One', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.weapon-preview-equip:active {
    transform: scale(0.95);
}

.weapon-preview-equip.hidden {
    display: none;
}

.weapon-preview-buy {
    padding: 10px 28px;
    font-family: 'Russo One', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #00aa44, #008833);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(0, 170, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.weapon-preview-buy:hover {
    background: linear-gradient(135deg, #00cc55, #00aa44);
}

.weapon-preview-buy:active {
    transform: scale(0.95);
}

.weapon-preview-buy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.weapon-preview-buy.hidden {
    display: none;
}

/* Time Toggle */
.time-toggle {
    display: flex;
    gap: 10px;
    width: 100%;
}

.time-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(50, 50, 50, 0.8);
    border: 2px solid #444;
    border-radius: 10px;
    color: #aaa;
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-btn:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: #ffaa00;
    color: #ffaa00;
    transform: translateY(-2px);
}

.time-btn.active {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    border-color: #ffaa00;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    font-weight: bold;
}

.time-btn i {
    font-size: 16px;
}
/* Report Context Menu */
.report-context-menu {
    position: fixed;
    display: none;
    background: linear-gradient(145deg, #1a1a2e, #0d0d1a);
    border: 2px solid rgba(255, 170, 0, 0.5);
    border-radius: 12px;
    padding: 0;
    min-width: 220px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
}

.report-menu-header {
    background: rgba(255, 170, 0, 0.15);
    padding: 12px 15px;
    color: #ffaa00;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 170, 0, 0.3);
}

.report-menu-header i {
    margin-right: 8px;
}

#reportPlayerName {
    color: #fff;
    font-weight: 700;
}

.report-menu-options {
    padding: 8px 0;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #ccc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.report-option:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.report-option i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Report Notification */
.report-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #1a3a1a, #0d1a0d);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: translateX(150%);
    opacity: 0;
    transition: all 0.4s ease;
}

.report-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.report-notification i {
    font-size: 28px;
    color: #00ff00;
}

.report-notif-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.report-notif-subtitle {
    color: #aaa;
    font-size: 12px;
    margin-top: 2px;
}

/* Scoreboard row hover for non-local players */
#mpScoreboardBody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

#mpScoreboardBody tr[data-is-local="false"]:hover {
    background: rgba(255, 170, 0, 0.1) !important;
}

/* =============================================
   TACTICAL MAP LOADER
   ============================================= */

.map-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    font-family: 'Rajdhani', sans-serif;
}

.map-loader-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3) saturate(0.8);
    transform: scale(1.15);
}

.map-loader-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(10, 10, 20, 0.8) 100%);
}

.map-loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
}

/* Превью карты */
.map-loader-preview {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 170, 0, 0.15);
}

.map-loader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mapPreviewPulse 3s ease-in-out infinite;
}

@keyframes mapPreviewPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.map-loader-preview-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 170, 0, 0.4);
    border-left: 3px solid #ffaa00;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    pointer-events: none;
}

.map-loader-preview-frame::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 170, 0, 0.5) 50%);
}

.map-loader-preview-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(315deg, transparent 50%, rgba(255, 170, 0, 0.5) 50%);
}

/* Информация о карте */
.map-loader-info {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.map-loader-title {
    font-family: 'Russo One', sans-serif;
    font-size: 42px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 170, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 25px;
    letter-spacing: 6px;
}

/* Прогресс бар */
.map-loader-progress {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
    margin-bottom: 25px;
    overflow: hidden;
}

.map-loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6600, #ffaa00, #ffcc00);
    transition: width 0.3s ease;
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.map-loader-progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.5), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* Совет/подсказка */
.map-loader-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-left: 3px solid #ffaa00;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-align: left;
    max-width: 100%;
}

.map-loader-tip i {
    font-size: 16px;
    color: #ffaa00;
    flex-shrink: 0;
}

.map-loader-tip span {
    flex: 1;
}

/* Mobile Adaptation */
@media (max-width: 600px) {
    .map-loader-content {
        gap: 20px;
        padding: 15px;
    }

    .map-loader-preview {
        max-width: 100%;
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    }

    .map-loader-preview-frame {
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    }

    .map-loader-preview-frame::before,
    .map-loader-preview-frame::after {
        width: 14px;
        height: 14px;
    }

    .map-loader-title {
        font-size: 28px;
        letter-spacing: 4px;
        margin-bottom: 18px;
    }

    .map-loader-progress {
        height: 5px;
        margin-bottom: 18px;
    }

    .map-loader-tip {
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
        clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    }

    .map-loader-tip i {
        font-size: 14px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .map-loader-content {
        flex-direction: row;
        gap: 25px;
        max-width: 90%;
    }

    .map-loader-preview {
        width: 45%;
        max-width: 350px;
    }

    .map-loader-info {
        flex: 1;
        text-align: left;
    }

    .map-loader-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .map-loader-label {
        font-size: 9px;
    }

    .map-loader-tip {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ==================== iOS PWA PROMPT ==================== */
.ios-pwa-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.98), rgba(10, 15, 25, 0.98));
    border: 1px solid rgba(255, 170, 0, 0.4);
    border-radius: 16px;
    padding: 20px 25px;
    z-index: 99998;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 170, 0, 0.2);
    max-width: 320px;
    animation: iosPromptSlide 0.4s ease;
}

@keyframes iosPromptSlide {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.ios-pwa-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.ios-pwa-close:hover {
    color: #fff;
}

.ios-pwa-icon {
    font-size: 36px;
    color: #ffaa00;
    margin-bottom: 10px;
}

.ios-pwa-title {
    font-family: 'Russo One', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.ios-pwa-text {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.ios-pwa-text i {
    color: #ffaa00;
}

/* ==================== ANTI-CHEAT WARNING ==================== */
.anticheat-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 40px;
    background: linear-gradient(135deg, rgba(30, 10, 10, 0.98), rgba(50, 15, 15, 0.98));
    border-radius: 15px;
    box-shadow:
        0 0 60px rgba(255, 50, 50, 0.4),
        0 0 100px rgba(255, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.anticheat-warning.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.anticheat-warning-icon {
    font-size: 50px;
    color: #ff3333;
    animation: warningPulse 1s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 50, 50, 0.8);
}

.anticheat-warning-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anticheat-warning-level {
    font-size: 14px;
    font-weight: bold;
    color: #ff6666;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.anticheat-warning-text {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 350px;
}

.anticheat-warning-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    border: 3px solid #ff3333;
    animation: borderPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Warning levels */
.anticheat-warning.level-medium .anticheat-warning-icon { color: #ffaa00; }
.anticheat-warning.level-medium .anticheat-warning-level { color: #ffcc00; }
.anticheat-warning.level-medium .anticheat-warning-border { border-color: #ffaa00; }
.anticheat-warning.level-medium {
    background: linear-gradient(135deg, rgba(40, 30, 10, 0.98), rgba(50, 40, 15, 0.98));
    box-shadow:
        0 0 60px rgba(255, 170, 0, 0.4),
        0 0 100px rgba(255, 140, 0, 0.2),
        inset 0 0 30px rgba(255, 170, 0, 0.1);
}

.anticheat-warning.level-high .anticheat-warning-icon { color: #ff6633; }
.anticheat-warning.level-high .anticheat-warning-level { color: #ff8844; }
.anticheat-warning.level-high .anticheat-warning-border { border-color: #ff6633; }
.anticheat-warning.level-high {
    background: linear-gradient(135deg, rgba(40, 15, 10, 0.98), rgba(60, 20, 15, 0.98));
    box-shadow:
        0 0 60px rgba(255, 100, 50, 0.4),
        0 0 100px rgba(255, 50, 0, 0.2),
        inset 0 0 30px rgba(255, 100, 50, 0.1);
}

.anticheat-warning.level-critical .anticheat-warning-icon { color: #ff0000; }
.anticheat-warning.level-critical .anticheat-warning-level { color: #ff3333; }
.anticheat-warning.level-critical .anticheat-warning-border {
    border-color: #ff0000;
    animation: criticalBorder 0.5s ease-in-out infinite;
}
.anticheat-warning.level-critical {
    background: linear-gradient(135deg, rgba(50, 5, 5, 0.98), rgba(70, 10, 10, 0.98));
    box-shadow:
        0 0 80px rgba(255, 0, 0, 0.5),
        0 0 120px rgba(255, 0, 0, 0.3),
        inset 0 0 40px rgba(255, 0, 0, 0.15);
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes borderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes criticalBorder {
    0%, 100% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
    50% { border-color: #ff3333; box-shadow: 0 0 30px #ff3333; }
}

@media (max-width: 600px) {
    .anticheat-warning {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    .anticheat-warning-icon {
        font-size: 40px;
    }

    .anticheat-warning-text {
        font-size: 16px;
    }
}

/* ============================================================
   INLINE STYLES EXTRACTED TO CSS - Performance Optimization
   ============================================================ */

/* ============================================
   TACTICAL MULTIPLAYER SCOREBOARD (TAB)
   ============================================ */
#multiplayerScoreboard {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.97), rgba(10, 15, 30, 0.95));
    border: 1px solid rgba(0, 212, 255, 0.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    padding: 24px 28px;
    z-index: 1000;
    min-width: 800px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.1);
    pointer-events: auto;
    font-family: 'Rajdhani', sans-serif;
}

/* Corner accent */
#multiplayerScoreboard::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 212, 255, 0.3) 50%);
    pointer-events: none;
}

#closeScoreboardBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 58, 58, 0.2);
    border: 1px solid rgba(255, 58, 58, 0.4);
    border-radius: 4px;
    color: #ff5555;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

#closeScoreboardBtn:hover {
    background: rgba(255, 58, 58, 0.4);
}

.mp-scoreboard-hints {
    margin-bottom: 16px;
}

.mp-scoreboard-title {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-scoreboard-title i {
    font-size: 20px;
    opacity: 0.8;
}

.mp-scoreboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    color: #fff;
}

.mp-scoreboard-header-row {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
}

.mp-scoreboard-header-row th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.mp-scoreboard-th {
    text-align: center;
}

.mp-scoreboard-th-left {
    text-align: left;
}

#mpScoreboardBody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

#mpScoreboardBody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

#mpScoreboardBody tr.is-me {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05));
    border-left: 2px solid #00ff88;
}

#mpScoreboardBody tr.is-me:hover {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.08));
}

#mpScoreboardBody td {
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mpScoreboardBody td:first-child {
    text-align: center;
    font-weight: 600;
    color: #00d4ff;
}

#mpScoreboardBody td:nth-child(2) {
    text-align: left;
}

/* Player cell with avatar */
.mp-player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mp-player-name {
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stat colors */
.mp-stat-kills { color: #4ade80; }
.mp-stat-deaths { color: #f87171; }
.mp-stat-kd { color: #fbbf24; font-weight: 600; }
.mp-stat-xp { color: #a78bfa; }
.mp-stat-ping { color: #888; }
.mp-stat-ping.good { color: #4ade80; }
.mp-stat-ping.medium { color: #fbbf24; }
.mp-stat-ping.bad { color: #f87171; }

.mp-scoreboard-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 12px;
}

.mp-scoreboard-footer i {
    margin-right: 5px;
    opacity: 0.7;
}

.mp-scoreboard-hint-item {
    display: flex;
    align-items: center;
}

/* Mobile scoreboard */
@media (max-width: 768px) {
    #multiplayerScoreboard {
        min-width: auto;
        width: 95vw;
        max-height: 80vh;
        overflow-y: auto;
        padding: 16px;
        clip-path: none;
        border-radius: 8px;
    }

    #closeScoreboardBtn {
        display: flex;
    }

    .mp-scoreboard-title {
        font-size: 18px;
    }

    .mp-scoreboard-header-row th {
        font-size: 10px;
        padding: 8px 6px;
    }

    #mpScoreboardBody td {
        font-size: 12px;
        padding: 8px 6px;
    }

    .mp-player-avatar {
        width: 24px;
        height: 24px;
    }

    .mp-player-name {
        max-width: 80px;
    }

    .mp-scoreboard-footer {
        flex-direction: column;
        gap: 8px;
        font-size: 10px;
    }
}

/* HUD Elements */
#fpsCounter {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 18px;
    color: #00ff00;
}

#multiplayerOnlineHUD {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 18px;
    color: #0f0;
}

/* ============================================
   TACTICAL MULTIPLAYER HUD - Top Center
   ============================================ */
#matchTopHUD {
    display: none;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    font-family: 'Rajdhani', sans-serif;
}

#matchTimer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 10, 20, 0.75));
    padding: 8px 20px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-bottom: 2px solid #00d4ff;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.15);
}

#matchTimer i {
    color: #00d4ff;
    font-size: 14px;
    opacity: 0.9;
}

#matchTimerText {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Low time warning */
#matchTimer.low-time {
    border-color: rgba(255, 58, 58, 0.5);
    border-bottom-color: #ff3a3a;
    animation: timerPulse 1s ease-in-out infinite;
}

#matchTimer.low-time i,
#matchTimer.low-time #matchTimerText {
    color: #ff3a3a;
    text-shadow: 0 0 10px rgba(255, 58, 58, 0.5);
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Top Players Container */
#matchTopPlayers {
    display: flex;
    gap: 6px;
}

/* Top Player Card */
.top-player-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(15, 15, 25, 0.7));
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: all 0.2s ease;
    pointer-events: auto;
}

.top-player-card.place-1 {
    border-color: rgba(255, 215, 0, 0.5);
    border-left: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0.8));
}

.top-player-card.place-2 {
    border-color: rgba(192, 192, 192, 0.4);
    border-left: 2px solid #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0.8));
}

.top-player-card.place-3 {
    border-color: rgba(205, 127, 50, 0.4);
    border-left: 2px solid #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.8));
}

.top-player-rank {
    font-weight: 700;
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.place-1 .top-player-rank { color: #ffd700; }
.place-2 .top-player-rank { color: #c0c0c0; }
.place-3 .top-player-rank { color: #cd7f32; }

.top-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-player-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-player-kills {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #aaa;
}

.top-player-kills i {
    color: #ff5555;
    font-size: 9px;
}

/* Mobile Top Players */
.top-player-card.mobile {
    padding: 4px 8px;
    flex-direction: column;
    gap: 3px;
}

.top-player-card.mobile .top-player-rank {
    font-size: 10px;
}

.top-player-card.mobile .top-player-avatar {
    width: 28px;
    height: 28px;
}

.top-player-card.mobile .top-player-info {
    display: none;
}

/* ============================================
   TACTICAL KILL FEED
   ============================================ */
#killFeed {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    font-family: 'Rajdhani', sans-serif;
}

.kill-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 10, 20, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 6px 100%);
    font-size: 13px;
    animation: killSlideIn 0.3s ease-out;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kill-entry.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

/* Kill type variants */
.kill-entry.kill-normal {
    border-left: 2px solid #ff9500;
}

.kill-entry.kill-headshot {
    border-left: 2px solid #ff3a3a;
    background: linear-gradient(135deg, rgba(255, 58, 58, 0.15), rgba(0, 0, 0, 0.85));
}

.kill-entry.kill-grenade {
    border-left: 2px solid #ff6600;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(0, 0, 0, 0.85));
}

.kill-entry.kill-suicide {
    border-left: 2px solid #666;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.15), rgba(0, 0, 0, 0.85));
}

/* Player names */
.kill-killer {
    color: #fff;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kill-killer.is-me {
    color: #00ff88;
}

.kill-victim {
    color: #aaa;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kill-victim.is-me {
    color: #ff5555;
    font-weight: 600;
}

/* Kill icon */
.kill-icon {
    font-size: 11px;
    opacity: 0.9;
}

.kill-normal .kill-icon { color: #ff9500; }
.kill-headshot .kill-icon { color: #ff3a3a; }
.kill-grenade .kill-icon { color: #ff6600; }
.kill-suicide .kill-icon { color: #666; }

/* Headshot badge */
.kill-entry.kill-headshot::after {
    content: 'HS';
    font-size: 9px;
    font-weight: 700;
    color: #ff3a3a;
    background: rgba(255, 58, 58, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
}

@keyframes killSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile kill feed */
@media (max-width: 768px) {
    #killFeed {
        top: 100px;
        right: 8px;
    }

    .kill-entry {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .kill-killer,
    .kill-victim {
        max-width: 60px;
    }

    .kill-icon {
        font-size: 9px;
    }

    .kill-entry.kill-headshot::after {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Custom Alert Dialog */
.custom-alert-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.custom-alert-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.98));
    border: 2px solid rgba(255, 170, 0, 0.4);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 170, 0, 0.2);
}

.custom-alert-text {
    color: #fff;
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.custom-alert-btn {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    border: none;
    color: #000;
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    padding: 12px 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-alert-btn:hover {
    background: linear-gradient(135deg, #ffcc00, #ffaa00);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.4);
}

#fireMode {
    font-size: 14px;
    color: #ffaa00;
    margin-top: 5px;
    text-align: center;
}

#serverOnlineIndicator {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    font-size: 12px;
    color: #0f0;
}

/* Arsenal weapon details */
#arsenalWeaponName {
    margin-top: 20px;
    font-size: 24px;
    color: #ffaa00;
    font-weight: bold;
    text-transform: uppercase;
}

#arsenalWeaponDesc {
    margin-top: 10px;
    color: #aaa;
    text-align: center;
    font-size: 14px;
}

.arsenal-loading {
    text-align: center;
    padding: 100px;
    color: #aaa;
    font-size: 24px;
}

.arsenal-loading-icon {
    font-size: 64px;
    margin-bottom: 30px;
    color: #ffaa00;
}

/* Menu Settings Modal - теперь использует .tac-modal-overlay */
/* Старые стили закомментированы, модалка управляется через tac-* классы в menu-pro.css */

.settings-modal-content {
    position: relative;
    width: 500px;
    max-width: 95%;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
    border: 2px solid rgba(255, 170, 0, 0.4);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.settings-option-row {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px;
    background: rgba(255, 170, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.settings-option-block {
    padding: 15px;
    background: rgba(255, 170, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.settings-option-label {
    color: #aaa;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

#graphicsPresetMenu {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

#mobileUISettingsBtn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 100, 200, 0.2));
    border: 1px solid rgba(0, 170, 255, 0.4);
    border-radius: 10px;
    color: #00aaff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

/* Mobile UI Editor */
#mobileUIEditor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30000;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#mobileUIEditorHeader {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffaa00;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
}

.mobile-ui-editor-title {
    color: #ffaa00;
    font-size: 11px;
    font-weight: bold;
}

.mobile-ui-editor-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 170, 0, 0.5);
}

.mobile-ui-editor-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.mobile-ui-editor-btn-reset {
    background: rgba(255, 85, 85, 0.5);
}

.mobile-ui-editor-btn-save {
    background: rgba(0, 255, 100, 0.5);
}

.mobile-ui-editor-btn-close {
    background: rgba(255, 70, 70, 0.5);
}

#mobileUIPreview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Custom Confirm Dialog */
#customConfirmDialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.confirm-dialog-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border: 2px solid #ffaa00;
    border-radius: 15px;
    padding: 30px;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#customConfirmIcon {
    font-size: 40px;
    color: #ffaa00;
    margin-bottom: 15px;
}

#customConfirmText {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

#customConfirmYes {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#customConfirmNo {
    padding: 12px 30px;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

/* Guest Modal */
#guestModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30000;
}

.guest-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

/* Arsenal Layout - Full Width Grid */
.arsenal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Arsenal Loading */
.arsenal-loading {
    text-align: center;
    padding: 100px;
    color: #aaa;
    font-size: 24px;
}

.arsenal-loading-icon {
    font-size: 64px;
    margin-bottom: 30px;
    color: #ffaa00;
}

/* Mobile UI Editor Controls */
#mobileUISizeSlider {
    width: 80px;
    cursor: pointer;
    height: 4px;
}

#mobileUISizeValue {
    color: #fff;
    font-size: 11px;
    min-width: 30px;
}

/* Scoreboard Hints */
.mp-scoreboard-hints {
    text-align: center;
    margin-bottom: 25px;
}

.mp-scoreboard-hint-item {
    margin-right: 20px;
}

.mp-scoreboard-hint-item:last-child {
    margin-right: 0;
}

/* Rules Link */
#rulesLink {
    cursor: pointer;
}

/* Texture Hint Lock */
.texture-hint-lock {
    color: #ffaa00;
}

/* Help Keys Weapons List */
#helpWeaponsList {
    margin-top: 8px;
}

/* Coins Icon in Weapon List */
.weapon-coins-icon {
    color: #ffd700;
    margin-right: 3px;
}

/* Scoreboard Report Icon */
.mp-scoreboard-report-icon {
    color: #ff5555;
}
