/* ============================================
   ZOMBIE STRIKE - MODERN HORROR UI STYLESHEET
   AAA Horror Game Aesthetic
   ============================================ */

/* ===== MATERIAL SYMBOLS ICONS ===== */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #221010;
}

::-webkit-scrollbar-thumb {
    background: #d41111;
    border-radius: 4px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #221010;
    font-family: 'Space Grotesk', 'Special Elite', 'Courier New', monospace;
    color: #ccc;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 3D CANVAS CONTAINER ===== */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#game-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== DAMAGE OVERLAY ===== */
#damage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(180, 0, 0, 0.7) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 50;
}

/* ===== SNIPER SCOPE ===== */
#sniper-scope {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.97) 30%);
    pointer-events: none;
    z-index: 80;
}

#sniper-scope.hidden {
    display: none;
}

/* ============================================
   UI LAYER - CRITICAL CLICK FIX
   ============================================ */
#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

/* Ensure menu screens capture clicks */
.menu-screen {
    pointer-events: auto !important;
}

/* Ensure interactive elements are always clickable */
button,
.horror-btn,
input,
.shop-item {
    pointer-events: auto !important;
    position: relative;
    /* Fix z-index stacking */
    z-index: 10001;
}

/* Modals - hidden by default */
#shop-modal,
#game-over-modal,
#settings-modal,
#leaderboard-modal,
#shop-menu,
#leaderboard-menu,
#settings-menu {
    display: none !important;
    z-index: 2000;
}

/* Modals - show when active */
#shop-modal.active,
#game-over-modal.active,
#settings-modal.active,
#leaderboard-modal.active,
#shop-menu.active,
#leaderboard-menu.active,
#settings-menu.active {
    display: flex !important;
    pointer-events: auto !important;
}

/* Ensure menu buttons are always clickable */
button,
.horror-btn,
.shop-item,
.dpad,
.mobile-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ===== MENU SCREENS ===== */
.menu-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #221010;
    z-index: 99999 !important;
    pointer-events: auto !important;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Main menu ZOMBIE STRIKE styling */
#main-menu {
    background: #221010 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* Hero background image for menu */
.menu-hero-bg {
    background-image: url('assets/menu_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background texture overlay */
#main-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url('https://www.transparenttextures.com/patterns/black-felt.png');
    z-index: 0;
    mix-blend-mode: overlay;
}

.menu-screen.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* If a menu screen is NOT hidden, it must catch clicks */
.menu-screen:not(.hidden) {
    pointer-events: auto !important;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    pointer-events: auto !important;
}

/* ============================================
   TYPOGRAPHY - BLOOD EFFECT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

.blood-title {
    font-family: 'Creepster', 'Impact', cursive;
    font-size: clamp(48px, 12vw, 80px);
    color: #cc0000;
    text-align: center;
    line-height: 0.9;
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #aa0000,
        0 4px 0 #660000,
        0 6px 0 #440000,
        0 8px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    animation: bloodPulse 3s ease-in-out infinite, textGlitch 5s infinite;
    position: relative;
}

.blood-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: linear-gradient(to bottom,
            rgba(180, 0, 0, 0.5) 0%,
            transparent 100%);
    filter: blur(3px);
}

.blood-title.gameover {
    font-size: clamp(36px, 10vw, 60px);
    animation: bloodPulse 1s ease-in-out infinite, shake 0.5s ease-in-out infinite;
}

@keyframes bloodPulse {

    0%,
    100% {
        text-shadow:
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 40px #aa0000,
            0 4px 0 #660000;
        color: #cc0000;
    }

    50% {
        text-shadow:
            0 0 20px #ff0000,
            0 0 40px #ff0000,
            0 0 60px #cc0000,
            0 4px 0 #880000;
        color: #ff2222;
    }
}

@keyframes textGlitch {

    0%,
    95%,
    100% {
        transform: translate(0);
    }

    96% {
        transform: translate(-2px, 1px);
    }

    97% {
        transform: translate(2px, -1px);
    }

    98% {
        transform: translate(-1px, -1px);
    }

    99% {
        transform: translate(1px, 1px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.subtitle {
    font-family: 'Special Elite', monospace;
    font-size: clamp(14px, 3vw, 18px);
    color: #888;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: -10px;
}

.menu-title {
    font-family: 'Creepster', cursive;
    font-size: clamp(28px, 6vw, 42px);
    color: #ff4444;
    text-shadow: 0 0 15px #ff0000;
    margin-bottom: 20px;
}

/* ============================================
   HORROR BUTTONS - GUARANTEED CLICKABLE
   ============================================ */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.horror-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #cc0000;
    background: rgba(80, 0, 0, 0.3);
    border: 2px solid #880000;
    border-radius: 4px;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
}

.horror-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.4s ease;
}

.horror-btn:hover {
    background: rgba(150, 0, 0, 0.5);
    border-color: #cc0000;
    color: #ff4444;
    transform: scale(1.03);
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.horror-btn:hover::before {
    left: 100%;
}

.horror-btn:active {
    transform: scale(0.98);
    background: rgba(180, 0, 0, 0.6);
}

.horror-btn.danger {
    border-color: #ff0000;
    color: #ff0000;
}

.horror-btn.danger:hover {
    background: rgba(255, 0, 0, 0.4);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    flex: 1;
    text-align: center;
}

/* ===== DEV HINT ===== */
.dev-hint {
    font-size: 11px;
    color: #444;
    margin-top: 30px;
    text-align: center;
}

/* ============================================
   SETTINGS
   ============================================ */
.settings-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(50, 0, 0, 0.3);
    border: 1px solid #440000;
    border-radius: 4px;
}

.setting-label {
    flex: 1;
    font-size: 14px;
    color: #aaa;
}

.horror-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #330000;
    border-radius: 3px;
    outline: none;
}

.horror-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #cc0000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #ff0000;
}

.toggle-btn,
.lang-btn {
    padding: 6px 12px;
    background: rgba(80, 0, 0, 0.4);
    border: 1px solid #660000;
    color: #cc0000;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    pointer-events: auto;
}

.toggle-btn:hover,
.lang-btn:hover {
    background: rgba(150, 0, 0, 0.5);
}

.lang-btn.active {
    background: #880000;
    color: #fff;
}

.lang-buttons {
    display: flex;
    gap: 5px;
}

/* ============================================
   SHOP
   ============================================ */
.shop-coins {
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc0088;
    margin-bottom: 15px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(40, 0, 0, 0.5);
    border: 2px solid #440000;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
}

.shop-item:hover {
    border-color: #880000;
    background: rgba(80, 0, 0, 0.5);
}

.shop-item.owned {
    border-color: #006600;
}

.shop-item .icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.shop-item .name {
    font-size: 12px;
    color: #aaa;
}

.shop-item .price {
    font-size: 14px;
    color: #ffcc00;
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #440000;
}

.leaderboard-table th {
    color: #ff4444;
    font-family: 'Creepster', cursive;
    font-size: 16px;
}

.leaderboard-table td {
    color: #aaa;
    font-size: 14px;
}

.leaderboard-table tr:nth-child(1) td {
    color: #ffd700;
}

.leaderboard-table tr:nth-child(2) td {
    color: #c0c0c0;
}

.leaderboard-table tr:nth-child(3) td {
    color: #cd7f32;
}

/* ============================================
   GAME OVER STATS
   ============================================ */
.stats-display {
    font-size: 18px;
    color: #888;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

/* ============================================
   HUD (In-Game)
   ============================================ */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

#hud.hidden {
    display: none;
}

.hud-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.health-bar {
    width: 200px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #660000;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #880000 0%, #cc0000 100%);
    transition: width 0.3s ease;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 4px #000;
}

.stats-bar {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #ccc;
    text-shadow: 0 0 5px #000;
}

.hud-bottom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.weapon-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #440000;
    border-radius: 6px;
}

.weapon-icon {
    font-size: 32px;
}

.ammo-count {
    font-family: 'Creepster', cursive;
    font-size: 28px;
    color: #ff4444;
    text-shadow: 0 0 10px #ff0000;
}

.hud-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #660000;
    color: #cc0000;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 3px #000;
    pointer-events: none;
}

/* ===== KILL FEED ===== */
#kill-feed {
    position: absolute;
    top: 60px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 200px;
}

.kill-message {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-left: 3px solid #cc0000;
    font-size: 12px;
    color: #ccc;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   WEAPON WHEEL
   ============================================ */
#weapon-wheel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border: 2px solid #440000;
    border-radius: 10px;
    z-index: 95;
}

#weapon-wheel.hidden {
    display: none;
}

.weapon-slot {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(40, 0, 0, 0.5);
    border: 2px solid #440000;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 24px;
}

.weapon-slot:hover {
    border-color: #880000;
    background: rgba(80, 0, 0, 0.6);
}

.weapon-slot.active {
    border-color: #cc0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.weapon-slot.locked {
    opacity: 0.4;
}

/* ============================================
   MOBILE CONTROLS
   ============================================ */
#mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 85;
}

#mobile-controls.hidden {
    display: none;
}

.dpad {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(150, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: auto;
}

.dpad.left {
    left: 20px;
    bottom: 20px;
}

.dpad.right {
    right: 20px;
    bottom: 20px;
}

.dpad-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(150, 0, 0, 0.6);
    border: 2px solid #cc0000;
    border-radius: 50%;
}

.mobile-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #660000;
    border-radius: 50%;
    font-size: 20px;
    color: #cc0000;
    cursor: pointer;
    pointer-events: auto;
}

.mobile-btn:nth-child(3) {
    right: 160px;
    bottom: 100px;
}

.mobile-btn:nth-child(4) {
    right: 160px;
    bottom: 40px;
}

.mobile-btn:nth-child(5) {
    right: 160px;
    bottom: 160px;
}

/* ============================================
   NOTIFICATION
   ============================================ */
#notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #880000;
    border-radius: 8px;
    font-size: 18px;
    color: #ff4444;
    text-shadow: 0 0 10px #ff0000;
    z-index: 9999;
    animation: notifyPop 0.3s ease;
}

#notification.hidden {
    display: none;
}

@keyframes notifyPop {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .menu-content {
        padding: 20px;
    }

    .blood-title {
        font-size: clamp(36px, 10vw, 50px);
    }

    .horror-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }

    .health-bar {
        width: 150px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes drip {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* ============================================
   WEAPON OVERLAY (FPS Viewmodel - BLEND MODE FIX)
   ============================================ */
#weapon-overlay {
    /* Position */
    position: fixed !important;
    bottom: -5% !important;
    right: 15% !important;
    width: 45vw !important;
    height: auto !important;
    max-width: 550px !important;
    min-width: 220px !important;
    z-index: 100 !important;
    pointer-events: none !important;

    /* CLIP - Trim 2px from edges to hide borders */
    clip-path: inset(2px 2px 2px 2px) !important;

    /* BLEND MODE - helps with box backgrounds */
    mix-blend-mode: normal !important;

    /* BOX REMOVAL */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;

    /* Transform */
    transform-origin: bottom right !important;
    transition: transform 0.08s ease-out !important;

    /* Weapon shadow */
    filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, 0.4)) !important;

    /* Hidden by default */
    display: none !important;
}

#weapon-overlay.recoil {
    transform: translateY(15px) rotate(2deg);
}

#weapon-overlay.hidden {
    display: none;
}

/* ADS (Aim Down Sights) States */
#weapon-overlay.aiming {
    right: 50% !important;
    transform: translateX(50%) scale(1.1) !important;
    transition: right 0.15s ease, transform 0.15s ease !important;
}

#weapon-overlay.aiming-scoped {
    display: none !important;
}

/* Scope Overlay */
#scope-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.95) 50%);
}

#scope-overlay.active {
    display: block !important;
}

@keyframes recoilAnim {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(15px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* ============================================
   GOLD HUD DISPLAY
   ============================================ */
#gold-display {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
    z-index: 100;
    pointer-events: none;
}

/* ============================================
   SHOP MODAL
   ============================================ */
#shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

#shop-modal.hidden {
    display: none !important;
}

.shop-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 4px solid #444;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: white;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.shop-content h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #FFD700;
    text-shadow: 2px 2px 4px #000;
}

#player-gold-shop {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 20px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
}

.shop-item {
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px 10px;
    background: linear-gradient(180deg, #222 0%, #111 100%);
    transition: all 0.2s ease;
    cursor: pointer;
}

.shop-item:hover {
    border-color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.shop-item.locked {
    opacity: 0.7;
    border-color: #666;
}

.shop-item.owned {
    border-color: #0f0;
}

.shop-item .item-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 5px;
}

.shop-item .item-name {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
}

.shop-item .item-price {
    font-size: 12px;
    color: #FFD700;
}

.buy-btn {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    width: 100%;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: linear-gradient(180deg, #FFF 0%, #FFD700 100%);
    transform: scale(1.05);
}

.buy-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

.close-btn {
    background: linear-gradient(180deg, #c00 0%, #800 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 40px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
}

.close-btn:hover {
    background: linear-gradient(180deg, #f00 0%, #c00 100%);
    transform: scale(1.05);
}

/* ============================================
   VERSION LABEL
   ============================================ */
#version-label {
    position: fixed;
    bottom: 5px;
    right: 5px;
    color: grey;
    font-size: 10px;
    z-index: 999999;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
}

/* ============================================
   VISUAL OVERHAUL - TRANSITIONS & EFFECTS
   ============================================ */

/* Boss Alert Pulse Animation */
@keyframes bossAlertPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px #ff0000, 0 0 60px #880000, 4px 4px 0 #000;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 50px #ff0000, 0 0 100px #ff0000, 4px 4px 0 #000;
    }
}

/* Screen Shake Animation */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -3px); }
    20% { transform: translate(5px, 3px); }
    30% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    50% { transform: translate(-3px, -4px); }
    60% { transform: translate(3px, 4px); }
    70% { transform: translate(-2px, 1px); }
    80% { transform: translate(2px, -1px); }
    90% { transform: translate(-1px, 2px); }
}

.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Smooth Environment Transition */
.env-transition {
    transition: background-color 3s ease-in-out, 
                color 3s ease-in-out;
}

/* Boss Alert Container Styling */
#boss-alert.visible {
    opacity: 1 !important;
}

/* Transition Overlay Active */
#transition-overlay.active {
    opacity: 1 !important;
}