/* ============================================
   ORBIT SURVIVOR - Main Stylesheet
   Modern dark theme with neon accents
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-primary: #00f0ff;
    --accent-secondary: #ff00aa;
    --accent-gold: #ffd700;
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-bg: rgba(20, 20, 35, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
}

body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 0, 170, 0.08) 0%, transparent 40%),
        var(--bg-primary);
}

/* Game Container */
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    display: block;
    background: transparent;
}

/* ============================================
   HUD STYLES
   ============================================ */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    z-index: 100;
}

#hud-left,
#hud-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

#hud-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.game-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hud-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Icon buttons for HUD */
.hud-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-icon-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.hud-mode-btn {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-mode-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.hud-mode-btn #hud-mode-icon {
    font-size: 1.2rem;
}

/* Large currency display */
.currency-large {
    flex-direction: row !important;
    gap: 8px;
    padding: 8px 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.currency-icon {
    font-size: 1.5rem;
}

.hud-value-large {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================================
   BUTTONS
   ============================================ */
.neon-btn {
    position: relative;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 170, 0.2));
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.neon-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(255, 0, 170, 0.4));
    box-shadow: var(--shadow-glow), inset 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.neon-btn:active {
    transform: translateY(0);
}

.neon-btn.large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.neon-btn.secondary {
    background: transparent;
    border-color: var(--text-secondary);
}

.neon-btn.secondary:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.neon-btn .btn-icon {
    margin-right: 8px;
}

.neon-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.6), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.neon-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ============================================
   SPAWN TUBE
   ============================================ */
#spawn-tube {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
}

.tube-container {
    position: relative;
    width: 60px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tube-glass {
    width: 50px;
    height: 120px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 25px 25px 0 0;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

#tube-queue {
    position: absolute;
    top: 10px;
    width: 40px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.tube-ball {
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
    animation: tubeBallPulse 0.5s ease-in-out infinite alternate;
}

@keyframes tubeBallPulse {
    from {
        transform: scale(0.9);
        opacity: 0.7;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tube-exit {
    width: 30px;
    height: 10px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-top: none;
    border-radius: 0 0 5px 5px;
}

/* ============================================
   LEADERBOARD
   ============================================ */
#leaderboard {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 250px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    z-index: 90;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-header .trophy {
    font-size: 1.5rem;
}

.leaderboard-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

#leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

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

.leaderboard-entry.top-1 {
    border-left: 3px solid #ffd700;
}

.leaderboard-entry.top-2 {
    border-left: 3px solid #c0c0c0;
}

.leaderboard-entry.top-3 {
    border-left: 3px solid #cd7f32;
}

.rank {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    width: 25px;
    color: var(--text-secondary);
}

.rank.gold {
    color: #ffd700;
}

.rank.silver {
    color: #c0c0c0;
}

.rank.bronze {
    color: #cd7f32;
}

.entry-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.entry-score {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    max-width: 90%;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.modal-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.modal-glow.red {
    background: radial-gradient(circle, rgba(255, 51, 102, 0.3), transparent 70%);
}

.modal-glow.gold {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
}

/* Start Modal */
.start-content {
    min-width: 400px;
}

.game-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-logo span {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 10px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(0, 240, 255, 0.3);
}

.input-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.instructions p {
    color: var(--text-secondary);
    font-size: 1.8rem;
    margin: 12px 0;
}

/* Game Over Modal */
.gameover-content {
    min-width: 400px;
}

.gameover-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 51, 102, 0.5);
}

.final-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.stat-item.earned {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-item.earned .stat-value {
    color: var(--accent-green);
}

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

/* Shop Modal */
.shop-content {
    min-width: 600px;
    max-width: 700px;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.shop-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.shop-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
}

.currency-icon {
    font-size: 1.3rem;
}

#shop-currency-display {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

#skin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skin-card {
    position: relative;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skin-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skin-card.owned {
    border-color: var(--accent-green);
}

.skin-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.skin-card.selected::before {
    content: '✓ EQUIPPED';
    position: absolute;
    top: -12px;
    right: 15px;
    padding: 4px 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent-gold);
    border-radius: 20px;
}

.skin-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    box-shadow: 0 0 30px currentColor;
}

.skin-preview.default {
    background: #00aaff;
    color: rgba(0, 170, 255, 0.5);
}

.skin-preview.fire {
    background: radial-gradient(circle at 30% 30%, #ff6600, #ff0000);
    color: rgba(255, 51, 0, 0.5);
    animation: firePulse 0.5s ease-in-out infinite alternate;
}

.skin-preview.golden {
    background: radial-gradient(circle at 30% 30%, #fff7cc, #ffd700);
    color: rgba(255, 215, 0, 0.5);
    animation: goldenPulse 1s ease-in-out infinite;
}

.skin-preview.matrix {
    background: radial-gradient(circle at 30% 30%, #00ff88, #004422);
    color: rgba(0, 255, 136, 0.5);
}

@keyframes firePulse {
    from {
        box-shadow: 0 0 20px rgba(255, 51, 0, 0.5);
    }

    to {
        box-shadow: 0 0 40px rgba(255, 102, 0, 0.8);
    }
}

@keyframes goldenPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.skin-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.skin-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skin-price.free {
    color: var(--accent-green);
}

.skin-card .buy-btn,
.skin-card .select-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-gold);
}

.buy-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.2);
}

.buy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.select-btn {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-green);
}

.select-btn:hover {
    background: rgba(0, 255, 136, 0.2);
}

.select-btn.selected {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--accent-gold);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    #leaderboard {
        display: none;
    }

    .shop-content {
        min-width: auto;
        max-width: 95%;
    }

    #skin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #hud {
        padding: 0 15px;
    }

    #hud-center {
        display: none;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .game-logo {
        font-size: 2rem;
    }

    .game-logo span {
        font-size: 1rem;
    }
}

/* ============================================
   MODE SELECTION
   ============================================ */
.mode-selection {
    margin-bottom: 25px;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.mode-btn.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.mode-btn .mode-icon {
    font-size: 1.5rem;
}

.mode-btn .mode-name {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Mode-specific colors */
.mode-btn[data-mode="classic"].selected {
    border-color: #00f0ff;
}

.mode-btn[data-mode="breaker"].selected {
    border-color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
}

.mode-btn[data-mode="quarantine"].selected {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.mode-btn[data-mode="gravitywell"].selected {
    border-color: #9933ff;
    background: rgba(153, 51, 255, 0.1);
}

.mode-btn[data-mode="kinetic"].selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* ============================================
   MODE INDICATOR (HUD)
   ============================================ */
#hud-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mode-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
}

.mode-badge.breaker {
    color: #ff3366;
    border-color: rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.1);
}

.mode-badge.quarantine {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
}

.mode-badge.gravitywell {
    color: #9933ff;
    border-color: rgba(153, 51, 255, 0.3);
    background: rgba(153, 51, 255, 0.1);
}

.mode-badge.kinetic {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

/* ============================================
   ENERGY BAR (Quarantine Mode)
   ============================================ */
.energy-container {
    width: 120px;
}

.energy-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.energy-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    border-radius: 6px;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ============================================
   ENEMY COUNT (Quarantine Mode)
   ============================================ */
.hud-value.danger {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.hud-value.warning {
    color: #ff9900;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.hud-value.safe {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ============================================
   LEADERBOARD MODE INDICATOR
   ============================================ */
.leaderboard-mode {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-primary);
    margin-left: auto;
}

/* ============================================
   SCORE PULSE ANIMATION (Kinetic Mode)
   ============================================ */
.hud-value.pulse {
    animation: scorePulse 0.3s ease-in-out;
}

@keyframes scorePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.hud-value.scoring {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* ============================================
   GAME OVER REASON
   ============================================ */
.gameover-reason {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* ============================================
   RESPONSIVE MODE GRID
   ============================================ */
@media (max-width: 700px) {
    .mode-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .start-content {
        min-width: auto;
        max-width: 95%;
    }
}

@media (max-width: 500px) {
    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mode-btn .mode-name {
        font-size: 0.55rem;
    }
}

/* ============================================
   HOTBAR (Bottom of Screen)
   ============================================ */
#hotbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

#hotbar-slots {
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.hotbar-slot {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hotbar-slot:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hotbar-slot.empty {
    opacity: 0.5;
}

.hotbar-slot .slot-key {
    position: absolute;
    top: 2px;
    left: 5px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.hotbar-slot .slot-icon {
    font-size: 1.5rem;
}

.hotbar-slot.tier-1 {
    border-color: #cd7f32;
}

.hotbar-slot.tier-2 {
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.hotbar-slot.tier-3 {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.hotbar-slot .cooldown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent-red);
}

.hotbar-hint {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ============================================
   INVENTORY MODAL
   ============================================ */
.inventory-content {
    min-width: 500px;
    max-width: 600px;
}

.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.inventory-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.inventory-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.inventory-slot {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inventory-slot:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.inventory-slot.empty {
    opacity: 0.4;
}

.inventory-slot.tier-1 {
    border-color: #cd7f32;
}

.inventory-slot.tier-2 {
    border-color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.inventory-slot.tier-3 {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.inventory-slot .slot-number {
    position: absolute;
    top: 4px;
    left: 8px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.inventory-slot .item-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.inventory-slot .item-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-slot.selected {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.4);
}

.inventory-slot.dragging {
    opacity: 0.5;
    transform: scale(0.9);
}

.inventory-slot.drag-over {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.tier-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tier-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tier-dot.bronze {
    background: #cd7f32;
}

.tier-dot.silver {
    background: #c0c0c0;
}

.tier-dot.gold {
    background: #ffd700;
}

/* ============================================
   SHOP TABS
   ============================================ */
.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-tab {
    flex: 1;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.shop-tab.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
}

/* ============================================
   CONSUMABLES GRID
   ============================================ */
#consumable-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.consumable-card {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consumable-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.consumable-card .item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.consumable-card .item-icon {
    font-size: 2rem;
}

.consumable-card .item-info {
    flex: 1;
}

.consumable-card .item-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.consumable-card .item-tier {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.consumable-card .item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.consumable-card .buy-consumable-btn {
    width: 100%;
    padding: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consumable-card .buy-consumable-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.2);
}

.consumable-card .buy-consumable-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   START BUTTONS (Updated Layout)
   ============================================ */
.start-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.start-buttons .neon-btn.large.primary {
    padding: 18px 60px;
    font-size: 1.3rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 170, 0.2));
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.start-buttons .neon-btn.large.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.6);
}

.secondary-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.secondary-buttons .neon-btn.secondary {
    padding: 10px 20px;
    font-size: 0.8rem;
    opacity: 0.85;
}

.secondary-buttons .neon-btn.secondary:hover {
    opacity: 1;
}

/* ============================================
   POWER-UP EFFECT INDICATORS
   ============================================ */
#active-effects {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 90;
}

.active-effect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    min-width: 60px;
}

.effect-icon {
    font-size: 1.5rem;
}

.effect-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.effect-timer {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.effect-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.effect-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.1s linear;
}

/* Shield specific - show hits remaining */
.active-effect.shield .effect-timer {
    color: var(--accent-secondary);
}

.active-effect.shield .effect-bar-fill {
    background: var(--accent-secondary);
}

/* ============================================
   PAUSE BUTTON
   ============================================ */
.pause-btn {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.pause-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ============================================
   PAUSE MODAL
   ============================================ */
.pause-content {
    min-width: 350px;
    text-align: center;
}

.pause-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

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

.pause-buttons .neon-btn {
    width: 100%;
    justify-content: center;
}

.pause-buttons .neon-btn.large.primary {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 136, 255, 0.2));
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.pause-buttons .neon-btn.large.primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.neon-btn.danger {
    margin-top: 10px;
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.neon-btn.danger:hover {
    background: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

/* ============================================
   ITEM TOOLTIPS
   ============================================ */
.item-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    padding: 12px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 200;
}

.hotbar-slot:hover .item-tooltip,
.inventory-slot:hover .item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.tooltip-icon {
    font-size: 1.2rem;
}

.tooltip-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tooltip-tier {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-effect {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   LEADERBOARD HEADER
   ============================================ */
.leaderboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.leaderboard-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-title-row .trophy {
    font-size: 1.2rem;
}

.leaderboard-title-row h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 2px;
}

.leaderboard-mode {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    padding: 3px 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 5px;
    margin: 8px 0;
}

.leaderboard-tab {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboard-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.leaderboard-tab.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.leaderboard-list .loading,
.leaderboard-list .no-entries,
#leaderboard-list .loading,
#leaderboard-list .no-entries {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-style: italic;
}

/* ============================================
   LEADERBOARD ENTRIES
   ============================================ */
.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

.leaderboard-entry .rank {
    width: 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.leaderboard-entry .name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.leaderboard-entry .score {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-align: right;
}

/* Top 3 styling */
.leaderboard-entry.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border-left: 3px solid #ffd700;
}

.leaderboard-entry.top-1 .rank {
    color: #ffd700;
}

.leaderboard-entry.top-1 .name {
    color: #ffd700;
    font-weight: 700;
}

.leaderboard-entry.top-2 {
    border-left: 3px solid #c0c0c0;
}

.leaderboard-entry.top-2 .rank {
    color: #c0c0c0;
}

.leaderboard-entry.top-3 {
    border-left: 3px solid #cd7f32;
}

.leaderboard-entry.top-3 .rank {
    color: #cd7f32;
}

/* Mode Selection Modal Styles */
#mode-select-modal .mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mode-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    background: rgba(0, 240, 255, 0.1);
}

.mode-card.selected {
    border-color: var(--accent-secondary);
    background: rgba(255, 0, 170, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.3);
}

.mode-card .mode-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.mode-card .mode-name {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.mode-card .mode-desc {
    color: #aaa;
    font-size: 0.8em;
    text-align: center;
}

/* Leaderboard Modal Styles */
.leaderboard-content {
    max-width: 900px;
    width: 95%;
}

.leaderboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.leaderboard-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.lb-mode-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lb-mode-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lb-mode-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.lb-mode-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.lb-mode-tab .tab-icon {
    font-size: 1.1rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.leaderboard-table th {
    padding: 15px;
    text-align: center;
    color: var(--accent-primary);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
    color: #ddd;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table .rank-cell {
    font-family: 'Orbitron';
    font-weight: bold;
    width: 60px;
}

.leaderboard-table .name-cell {
    font-weight: bold;
    color: #fff;
}

.leaderboard-table .score-cell {
    font-family: 'Orbitron';
    color: var(--accent-secondary);
    font-size: 1.1em;
}

.leaderboard-table .date-cell {
    color: #888;
    font-size: 0.8em;
}

.leaderboard-table .mode-badge {
    color: var(--accent-primary);
    font-size: 0.7em;
    text-transform: uppercase;
    background: rgba(0, 240, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Top Ranks */
.leaderboard-table tr.top-1 td {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.leaderboard-table tr.top-2 td {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.leaderboard-table tr.top-3 td {
    color: #cd7f32;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.2);
}

/* Mode Select Specific Styles */
.mode-select-content {
    max-width: 800px;
    width: 90%;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.mode-select-content h2 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ============================================
   MULTIPLAYER / ONLINE STYLES
   ============================================ */

/* Inventory Lock Overlay */
.inventory-lock {
    position: absolute;
    top: 60px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.inventory-lock.hidden {
    display: none;
}

.inventory-lock .lock-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 50, 50, 0.8);
    animation: pulse-lock 2s infinite ease-in-out;
}

.inventory-lock h3 {
    font-size: 2rem;
    color: #ff4444;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.inventory-lock p {
    font-size: 1.2rem;
    color: #ccc;
    font-family: 'Rajdhani', sans-serif;
}

@keyframes pulse-lock {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 30px rgba(255, 50, 50, 1);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Multiplayer button on main menu */
.neon-btn.multiplayer {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.3));
    border-color: #9945ff;
    animation: multiplayerPulse 2s ease-in-out infinite;
}

.neon-btn.multiplayer:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.5));
    box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
    border-color: #b366ff;
}

@keyframes multiplayerPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(153, 69, 255, 0.5);
    }
}

/* Online Modal */
.online-content {
    min-width: 450px;
    max-width: 550px;
}

.modal-glow.purple {
    background: radial-gradient(circle, rgba(153, 69, 255, 0.4), transparent 70%);
}

.modal-glow.green {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.4), transparent 70%);
}

.online-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: #b366ff;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(153, 69, 255, 0.5);
}

.online-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
}

.online-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.online-actions .neon-btn.primary {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.3), rgba(255, 0, 170, 0.2));
    border-color: #9945ff;
}

.online-actions .neon-btn.primary:hover {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.5), rgba(255, 0, 170, 0.4));
    box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
}

/* Lobby Section */
.lobby-section {
    text-align: left;
}

.lobby-section h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.lobby-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.lobby-item:hover {
    background: rgba(153, 69, 255, 0.1);
    border-color: rgba(153, 69, 255, 0.4);
}

.lobby-host {
    display: flex;
    flex-direction: column;
}

.host-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.host-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.join-btn {
    padding: 8px 20px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #9945ff, #7b2cbf);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.join-btn:hover {
    background: linear-gradient(135deg, #b366ff, #9945ff);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
}

.no-lobbies {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-style: italic;
}

/* Waiting Modal */
.waiting-content {
    min-width: 350px;
    padding: 50px;
}

.queue-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(153, 69, 255, 0.2);
    border-top-color: #9945ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.waiting-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.waiting-time {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #9945ff;
    margin-bottom: 30px;
}

/* Match Found Modal */
.match-found-content {
    min-width: 400px;
    padding: 50px 60px;
    animation: matchFoundPop 0.5s ease;
}

@keyframes matchFoundPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.match-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-green);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: matchTitleGlow 1s ease-in-out infinite alternate;
}

@keyframes matchTitleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }

    to {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
}

.versus-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.player-name,
.opponent-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.player-name {
    color: var(--accent-primary);
    border: 2px solid rgba(0, 240, 255, 0.3);
}

.opponent-name {
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.vs-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.match-starting {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.match-starting span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* Multiplayer HUD Indicator */
.multiplayer-hud {
    position: fixed;
    top: 80px;
    left: 20px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 10px;
    z-index: 90;
}

.opponent-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opponent-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: opponentPulse 1s ease-in-out infinite;
}

@keyframes opponentPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.opponent-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.opponent-name-hud {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #ff6b6b;
}

/* Remote player ball indicator */
.remote-player-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    pointer-events: none;
}

/* Victory/Defeat styles for multiplayer game over */
.gameover-title.victory {
    color: var(--accent-green) !important;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5) !important;
}

.gameover-title.defeat {
    color: var(--accent-red) !important;
}

/* ============================================
   ONLINE MODE SELECTOR (TABS)
   ============================================ */

.online-mode-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0 10px;
}

.mode-tab {
    padding: 10px 25px;
    border: 2px solid var(--glass-border);
    background: rgba(20, 20, 35, 0.6);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.1);
}

.mode-tab.active {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* ============================================
   DUAL SCORE HUD (KINETIC MULTIPLAYER)
   ============================================ */

.dual-score-hud {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 30px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.dual-score-hud.hidden {
    display: none;
}

.score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.score-panel .score-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.score-panel .score-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.score-panel .score-status {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
    min-height: 16px;
}

.score-panel.winning .score-value {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.score-panel.winning .score-status {
    color: var(--accent-green);
}

.score-panel.losing .score-value {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.score-panel.losing .score-status {
    color: var(--accent-red);
}

.vs-divider {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.6;
}