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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #ffbe0b;
    --bg-dark: #0a0e27;
    --bg-darker: #050713;
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --success-color: #00ff88;
    --danger-color: #ff006e;
}

body {
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
    background: var(--bg-darker);
    color: var(--text-light);
    cursor: default;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hidden {
    display: none !important;
}

/* ==================== 3D BACKGROUND ==================== */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ==================== MAIN MENU ==================== */
#mainMenu {
    z-index: 100;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
    backdrop-filter: blur(10px);
}

.menu-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.logo {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
}

.game-title {
    font-size: 5em;
    font-weight: 700;
    letter-spacing: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.game-subtitle {
    font-size: 1.5em;
    color: var(--text-muted);
    letter-spacing: 5px;
    font-weight: 300;
}

.player-name-input {
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease;
}

.player-name-input input {
    width: 400px;
    padding: 20px 30px;
    font-size: 1.3em;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.player-name-input input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.player-name-input input::placeholder {
    color: var(--text-muted);
}

.main-actions {
    margin-bottom: 60px;
    animation: fadeInUp 1.4s ease;
}

.btn-play {
    position: relative;
    padding: 25px 80px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

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

.btn-play:hover::before {
    left: 100%;
}

.btn-play:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.btn-play:active {
    transform: translateY(-2px);
}

.btn-play .btn-text {
    display: block;
}

.btn-play .btn-subtext {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.8;
}

.player-count {
    display: flex;
    gap: 60px;
    animation: fadeIn 1.6s ease;
}

.count-item {
    text-align: center;
}

.count-value {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.count-label {
    display: block;
    font-size: 1em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.version {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* ==================== GAME SCREEN ==================== */
#gameCanvas {
    width: 100%;
    height: 100%;
}

.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.hud-corner {
    position: absolute;
    pointer-events: all;
}

.hud-top-left {
    top: 20px;
    left: 20px;
}

.hud-top-right {
    top: 20px;
    right: 20px;
}

.hud-bottom-left {
    bottom: 20px;
    left: 20px;
}

.hud-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Health & Ammo */
.health-container, .ammo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 15px;
    min-width: 250px;
}

.stat-icon {
    font-size: 2em;
    color: var(--primary-color);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-light);
}

.health-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}

.health-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color), var(--accent-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Crosshair */
.crosshair-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.crosshair {
    position: relative;
    width: 40px;
    height: 40px;
}

.crosshair-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.crosshair-line {
    position: absolute;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.crosshair-top, .crosshair-bottom {
    width: 2px;
    height: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.crosshair-top {
    top: 0;
}

.crosshair-bottom {
    bottom: 0;
}

.crosshair-left, .crosshair-right {
    width: 10px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.crosshair-left {
    left: 0;
}

.crosshair-right {
    right: 0;
}

.hitmarker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.hitmarker::before,
.hitmarker::after {
    content: '';
    position: absolute;
    background: var(--danger-color);
    box-shadow: 0 0 10px var(--danger-color);
}

.hitmarker::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.hitmarker::after {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

/* Leaderboard */
.leaderboard {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    min-width: 300px;
}

.leaderboard-title {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.leaderboard-list {
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-item.rank-1 {
    border-left-color: var(--accent-color);
    background: rgba(255, 190, 11, 0.1);
}

.leaderboard-item.rank-2 {
    border-left-color: rgba(192, 192, 192, 0.8);
}

.leaderboard-item.rank-3 {
    border-left-color: rgba(205, 127, 50, 0.8);
}

.player-name {
    font-weight: 600;
    color: var(--text-light);
}

.player-stats {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Chat */
.chat-container {
    width: 400px;
}

.chat-messages {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.chat-message {
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    animation: slideInLeft 0.3s ease;
}

.chat-message .name {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 8px;
}

.chat-input-wrapper input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Controls Hint */
.controls-hint {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.control-item {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.95em;
}

.control-item .key {
    display: inline-block;
    min-width: 60px;
    padding: 5px 10px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-right: 10px;
}

/* Kill Feed */
.kill-feed {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 350px;
    max-height: 300px;
    overflow: hidden;
}

.kill-message {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 3px solid var(--danger-color);
    animation: slideInRight 0.4s ease, fadeOutKill 0.5s ease 4.5s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.kill-message .killer {
    color: var(--danger-color);
    font-weight: 700;
}

.kill-message .victim {
    color: var(--primary-color);
    font-weight: 700;
}

/* Pause Menu */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-menu {
    text-align: center;
    animation: fadeInScale 0.3s ease;
}

.pause-title {
    font-size: 4em;
    font-weight: 700;
    letter-spacing: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-pause {
    padding: 20px 60px;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 3px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pause:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-pause.btn-danger {
    border-color: var(--danger-color);
    background: rgba(255, 0, 110, 0.2);
}

.btn-pause.btn-danger:hover {
    background: var(--danger-color);
}

/* ==================== PAUSE MENU STATS ==================== */
.pause-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 20px 0;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    font-size: 1.2em;
}

.stat-box .stat-icon {
    font-size: 1.5em;
}

.stat-box .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.stat-box .stat-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

/* ==================== SHOP MENU ==================== */
.shop-menu {
    max-width: 600px;
    width: 90%;
}

.shop-balance {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(136, 146, 176, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.shop-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.shop-item.owned {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    opacity: 0.7;
}

.item-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

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

.item-name {
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.btn-buy {
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 136, 255, 0.3));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-buy:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3);
    border-color: rgba(136, 146, 176, 0.3);
}

.buy-cost {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.buy-text {
    display: block;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.shop-item.owned .btn-buy {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    pointer-events: none;
}

.shop-item.equipped .btn-buy {
    background: rgba(0, 212, 255, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.shop-item.owned .buy-cost {
    display: none;
}

/* Weapon stats in shop */
.item-stats {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.item-stats span {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(136, 146, 176, 0.2);
}

/* Loading Screen */
#loading {
    background: var(--bg-darker);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
}

.loading-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.loading-text {
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 1.2em;
    color: var(--text-muted);
    letter-spacing: 3px;
    animation: pulse 2s ease infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

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

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==================== SETTINGS MENU ==================== */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-container {
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInScale 0.3s ease;
}

.settings-title {
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-light);
    background: rgba(0, 212, 255, 0.1);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.settings-content {
    min-height: 400px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.setting-group {
    margin: 20px 0;
}

.setting-group h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.slider-setting {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.slider-setting label {
    min-width: 150px;
    font-weight: 600;
    color: var(--text-light);
}

.slider-setting input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider-setting input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    border: none;
}

.slider-setting span {
    min-width: 50px;
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
}

.toggle-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.toggle-setting label {
    font-weight: 600;
    color: var(--text-light);
}

.toggle-setting input[type="checkbox"] {
    width: 50px;
    height: 26px;
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    outline: none;
    transition: background 0.3s;
}

.toggle-setting input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.toggle-setting input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-setting input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.keybind-list {
    margin: 20px 0;
}

.keybind-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.3s;
}

.keybind-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.keybind-item label {
    font-weight: 600;
    color: var(--text-light);
    text-transform: capitalize;
}

.keybind-item button {
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s;
}

.keybind-item button:hover {
    background: var(--primary-color);
    color: white;
}

.keybind-item button.listening {
    background: var(--accent-color);
    color: black;
    animation: pulse 1s infinite;
}

.skin-list, .map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.skin-item, .map-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.skin-item:hover, .map-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

.skin-item.selected, .map-item.selected {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.skin-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.skin-name, .map-name {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.map-desc {
    font-size: 0.85em;
    color: var(--text-muted);
}

.settings-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.btn-setting {
    flex: 1;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-setting:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.btn-setting.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-setting.btn-primary:hover {
    background: #00b8d4;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* ==================== KILL STREAK NOTIFICATIONS ==================== */
.streak-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 30px 50px;
    border-radius: 15px;
    text-align: center;
    z-index: 4000;
    box-shadow: 0 0 50px rgba(255, 190, 11, 0.8);
    animation: streakPop 3s ease forwards;
    pointer-events: none;
}

.streak-name {
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 5px;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.streak-bonus {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

@keyframes streakPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .game-title {
        font-size: 3em;
    }

    .player-name-input input {
        width: 300px;
    }

    .btn-play {
        font-size: 1.5em;
        padding: 20px 50px;
    }

    .leaderboard,
    .chat-container,
    .controls-hint {
        font-size: 0.85em;
    }
}

/* ==================== MINIMAP ==================== */
.minimap-container {
    position: fixed;
    bottom: 340px;
    left: 20px;
    width: 180px;
    height: 180px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
}

.minimap-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.minimap-label {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* ==================== PING INDICATOR ==================== */
.ping-indicator {
    position: fixed;
    bottom: 290px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.ping-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.ping-icon {
    font-size: 18px;
    animation: pingPulse 2s ease-in-out infinite;
}

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

.ping-value {
    font-size: 20px;
    font-weight: 700;
    color: #00ff00;
    min-width: 35px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    transition: color 0.3s ease;
}

/* Color coding based on ping quality */
.ping-indicator.good .ping-value {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.ping-indicator.ok .ping-value {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.ping-indicator.bad .ping-value {
    color: #ff0044;
    text-shadow: 0 0 10px rgba(255, 0, 68, 0.8);
}

.ping-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* ==================== DEATH SCREEN ==================== */
.death-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: deathFadeIn 0.5s ease;
}

@keyframes deathFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.death-content {
    text-align: center;
    padding: 40px;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4);
    max-width: 600px;
    animation: deathPulse 2s ease infinite;
}

@keyframes deathPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(255, 0, 110, 0.6);
    }
}

.death-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4em;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
    animation: deathGlitch 1s ease infinite;
}

@keyframes deathGlitch {
    0%, 90%, 100% {
        transform: translateX(0);
    }
    92% {
        transform: translateX(-3px);
    }
    94% {
        transform: translateX(3px);
    }
    96% {
        transform: translateX(-2px);
    }
}

.death-killer {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 500;
}

.death-killer span {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

.death-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.respawn-timer {
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 20px;
    animation: timerPulse 1s ease infinite;
}

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

.respawn-timer span {
    font-size: 1.5em;
    color: #ffffff;
    text-shadow: 0 0 15px var(--accent-color);
}

/* ==================== GOLD DISPLAY ==================== */
.gold-display {
    background: rgba(255, 170, 0, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 190, 11, 0.3);
}

.gold-display .stat-icon {
    font-size: 2em;
}

.gold-display .stat-label {
    font-size: 0.75em;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.gold-display .stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 190, 11, 0.8);
}

/* ==================== DAMAGE INDICATOR ==================== */
.damage-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2500;
}

.damage-direction {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.damage-direction.active {
    opacity: 0.6;
}

.damage-direction svg {
    width: 100%;
    height: 100%;
    fill: #ff0000;
    filter: drop-shadow(0 0 10px #ff0000);
}

.damage-direction.from-front {
    top: 10%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.damage-direction.from-back {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.damage-direction.from-left {
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(90deg);
}

.damage-direction.from-right {
    top: 50%;
    right: 10%;
    transform: translateY(-50%) rotate(-90deg);
}

/* ==================== AMMO PICKUP NOTIFICATION ==================== */
.pickup-notification {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 170, 0, 0.9);
    color: #000;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    z-index: 3500;
    animation: pickupPop 2s ease forwards;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.6);
}

@keyframes pickupPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
}

/* ==================== WEAPON SYSTEM ==================== */
.weapon-name {
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weapon-selector {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(10, 14, 39, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.weapon-slot {
    position: relative;
    width: 60px;
    height: 70px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(136, 146, 176, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weapon-slot:hover:not(.locked) {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.weapon-slot.active {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.weapon-slot.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

.weapon-slot.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.weapon-key {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 5px;
    border-radius: 3px;
}

.weapon-icon {
    font-size: 24px;
    margin-bottom: 4px;
    filter: grayscale(1);
}

.weapon-slot.active .weapon-icon,
.weapon-slot:hover:not(.locked) .weapon-icon {
    filter: grayscale(0);
}

.weapon-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.weapon-slot.active .weapon-label {
    color: var(--primary-color);
}

.weapon-price {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}

.weapon-slot:not(.locked) .weapon-price {
    display: none;
}

/* Scope overlay for sniper */
.scope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.95) 20.5%);
    pointer-events: none;
    z-index: 1000;
}

.scope-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.scope-overlay::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}
