@import url('news-reel.css');

body {
    margin: 0;
    overflow: hidden;
    background-color: #050510;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Splash Screen */
.splash-screen-visible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    visibility: visible;
}

.splash-screen-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    max-width: 600px;
    padding: 40px;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.splash-header h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    background: linear-gradient(to bottom, #fff 40%, #cceeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 0.9rem;
    color: #aaddff;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    opacity: 0.8;
}

.splash-message {
    line-height: 1.8;
    margin: 30px 0;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.splash-greeting {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.splash-message p {
    margin: 15px 0;
}

.splash-message strong {
    color: #cceeff;
    font-weight: 600;
}

.splash-signature {
    margin-top: 30px !important;
    font-style: italic;
    color: #aaddff;
    font-size: 1.05rem;
}

.splash-button {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.2) 0%, rgba(150, 200, 255, 0.3) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.splash-button:hover {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3) 0%, rgba(150, 200, 255, 0.4) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.3);
}

.splash-button:active {
    transform: translateY(0);
}

.splash-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* World Loading Screen */
#world-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 5, 16, 1) 0%, rgba(20, 30, 50, 1) 100%);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.world-loading-screen-hidden {
    display: none;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.world-loading-screen-visible {
    display: flex;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loading-content {
    max-width: 500px;
    width: 90%;
    padding: 50px 40px;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease;
}

.loading-header h2 {
    font-size: 2rem;
    margin: 0 0 40px 0;
    background: linear-gradient(to bottom, #fff 40%, #cceeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
}

.loading-progress-container {
    margin: 30px 0;
    position: relative;
}

.loading-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(150, 200, 255, 0.8) 0%, rgba(200, 220, 255, 1) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(150, 200, 255, 0.6);
    position: relative;
}

.loading-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loading-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #aaddff;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(170, 221, 255, 0.5);
}

.loading-status {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 20px;
    min-height: 24px;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(150, 200, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.audio-warning {
    position: relative;
    color: #aaddff;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
    margin-top: 30px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

canvas {
    display: block;
    position: relative;
    z-index: 1;
}

/* UI LAYOUT */
#title-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    transition: opacity 0.5s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Ensure it centers correctly on mobile */
}

#title-screen h1 {
    font-size: 4.5rem;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, #fff 40%, #cceeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

#title-screen p {
    font-size: 1.2rem;
    color: #aaddff;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* Mobile adjustment for title */
@media (max-width: 600px) {
    #title-screen h1 {
        font-size: 2.5rem;
    }

    #title-screen p {
        font-size: 1rem;
    }
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 220px;
}

.menu-btn {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid #444;
    color: #666;
    padding: 15px 0;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    cursor: not-allowed;
    border-radius: 4px;
    pointer-events: auto;
    transition: all 0.3s;
}

.menu-btn:hover {
    border-color: #444;
}

/* Disable hover effects when UI is hidden */
.ui-hidden,
.ui-hidden * {
    pointer-events: none !important;
    cursor: default !important;
}

.menu-btn.ui-hidden,
.menu-btn.ui-hidden:hover,
.menu-btn.ui-hidden:active {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0 !important;
}

.menu-container.ui-hidden .menu-btn,
.menu-container.ui-hidden .menu-btn:hover,
.menu-container.ui-hidden .menu-btn:active {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0 !important;
}

#title-screen.ui-hidden,
#title-screen.ui-hidden * {
    pointer-events: none !important;
    cursor: default !important;
}

/* Play Button - Glowy Snowy Appearance */
#play-btn {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3), rgba(150, 200, 255, 0.2)) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        0 0 60px rgba(200, 220, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(200, 220, 255, 0.6) !important;
    animation: snowGlow 3s ease-in-out infinite !important;
}

#play-btn::before {
    content: '❄';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite;
}

#play-btn::after {
    content: '❄';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite 0.5s;
}

#play-btn:hover {
    background: linear-gradient(135deg, rgba(220, 240, 255, 0.4), rgba(170, 220, 255, 0.3)) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(200, 220, 255, 0.8),
        0 0 50px rgba(150, 200, 255, 0.6),
        0 0 70px rgba(200, 220, 255, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(200, 220, 255, 0.8) !important;
}

/* Disable play button hover when UI is hidden */
#play-btn.ui-hidden:hover,
#play-btn.ui-hidden:active,
.menu-container.ui-hidden #play-btn:hover,
.menu-container.ui-hidden #play-btn:active {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3), rgba(150, 200, 255, 0.2)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: none !important;
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        0 0 60px rgba(200, 220, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(200, 220, 255, 0.6) !important;
    pointer-events: none !important;
    cursor: default !important;
}

#play-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

@keyframes snowGlow {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(200, 220, 255, 0.6),
            0 0 40px rgba(150, 200, 255, 0.4),
            0 0 60px rgba(200, 220, 255, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 25px rgba(200, 220, 255, 0.8),
            0 0 50px rgba(150, 200, 255, 0.6),
            0 0 75px rgba(200, 220, 255, 0.4),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

@keyframes snowFloat {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-60%) translateX(2px);
        opacity: 1;
    }
}

/* Gallery Button - Glowy Christmas Artsy Appearance */
#gallery-btn {
    background: linear-gradient(135deg, rgba(255, 220, 220, 0.3), rgba(255, 180, 180, 0.2)) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(255, 200, 200, 0.6),
        0 0 40px rgba(255, 150, 150, 0.4),
        0 0 60px rgba(255, 200, 200, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 220, 220, 0.6) !important;
    animation: galleryGlow 3s ease-in-out infinite !important;
}

#gallery-btn::before {
    content: '🖼️';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite;
}

#gallery-btn::after {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite 0.5s;
}

#gallery-btn:hover {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.4), rgba(255, 200, 200, 0.3)) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(255, 200, 200, 0.8),
        0 0 50px rgba(255, 150, 150, 0.6),
        0 0 70px rgba(255, 200, 200, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 220, 220, 0.8) !important;
}

/* Disable gallery button hover when UI is hidden */
#gallery-btn.ui-hidden:hover,
#gallery-btn.ui-hidden:active,
.menu-container.ui-hidden #gallery-btn:hover,
.menu-container.ui-hidden #gallery-btn:active {
    background: linear-gradient(135deg, rgba(255, 220, 220, 0.3), rgba(255, 180, 180, 0.2)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: none !important;
    box-shadow:
        0 0 20px rgba(255, 200, 200, 0.6),
        0 0 40px rgba(255, 150, 150, 0.4),
        0 0 60px rgba(255, 200, 200, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 220, 220, 0.6) !important;
    pointer-events: none !important;
    cursor: default !important;
}

#gallery-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0 20px rgba(255, 200, 200, 0.6),
        0 0 40px rgba(255, 150, 150, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

@keyframes galleryGlow {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 200, 200, 0.6),
            0 0 40px rgba(255, 150, 150, 0.4),
            0 0 60px rgba(255, 200, 200, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 25px rgba(255, 200, 200, 0.8),
            0 0 50px rgba(255, 150, 150, 0.6),
            0 0 75px rgba(255, 200, 200, 0.4),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

/* Settings Button - Glowy Snowy Appearance */
#settings-btn {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3), rgba(150, 200, 255, 0.2)) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        0 0 60px rgba(200, 220, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(200, 220, 255, 0.6) !important;
    animation: snowGlow 3s ease-in-out infinite !important;
}

#settings-btn::before {
    content: '⚙';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite;
}

#settings-btn::after {
    content: '⚙';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowFloat 2s ease-in-out infinite 0.5s;
}

#settings-btn:hover {
    background: linear-gradient(135deg, rgba(220, 240, 255, 0.4), rgba(170, 220, 255, 0.3)) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(200, 220, 255, 0.8),
        0 0 50px rgba(150, 200, 255, 0.6),
        0 0 70px rgba(200, 220, 255, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(200, 220, 255, 0.8) !important;
}

/* Disable settings button hover when UI is hidden */
#settings-btn.ui-hidden:hover,
#settings-btn.ui-hidden:active,
.menu-container.ui-hidden #settings-btn:hover,
.menu-container.ui-hidden #settings-btn:active {
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3), rgba(150, 200, 255, 0.2)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: none !important;
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        0 0 60px rgba(200, 220, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(200, 220, 255, 0.6) !important;
    pointer-events: none !important;
    cursor: default !important;
}

#settings-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

/* Shared Button Styles */
.ui-btn {
    position: absolute;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.ui-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ui-btn.ui-disabled,
.ui-btn.ui-disabled:hover {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0 !important;
}

#ui-toggle {
    left: 20px;
}

#fullscreen-btn {
    right: 20px;
}

#quit-btn {
    right: 20px;
    bottom: 70px;
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

#quit-btn:hover {
    background: rgba(255, 50, 50, 0.4);
    border-color: rgba(255, 100, 100, 0.6);
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    pointer-events: none;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: opacity 0.5s;
    z-index: 20;
}

/* Countdown Timer */
.countdown-timer {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 100;
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.countdown-timer.warning {
    border-color: rgba(255, 200, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.4);
    animation: pulse 0.5s ease-in-out infinite;
}

.countdown-timer.critical {
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
    animation: pulse 0.3s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* Tech Info Panel */
.tech-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    z-index: 100;
    user-select: none;
}

.tech-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tech-toggle-btn.ui-disabled,
.tech-toggle-btn.ui-disabled:hover {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0 !important;
}

#tech-info-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.tech-panel-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
}

.tech-panel-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.tech-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, border-color 0.2s;
}

.tech-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.tech-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tech-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.tech-desc {
    font-size: 0.75rem;
    color: #aaa;
}

/* Mobile adjustments for tech panel */
@media (max-width: 600px) {
    .tech-toggle-btn {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #tech-info-panel {
        top: 50px;
        right: 15px;
        min-width: 180px;
        padding: 6px;
    }

    .tech-box {
        padding: 6px 10px;
    }

    .tech-name {
        font-size: 0.8rem;
    }

    .tech-desc {
        font-size: 0.7rem;
    }
}

/* World Generation Panel */
#world-gen-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    user-select: none;
}

.world-gen-panel-hidden {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.world-gen-panel-visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

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

.world-gen-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.world-gen-content {
    padding: 25px;
}

.world-gen-status {
    margin-bottom: 25px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-label {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.world-gen-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: rgba(200, 220, 255, 0.6);
    box-shadow: 0 0 10px rgba(200, 220, 255, 0.4);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 1px rgba(200, 220, 255, 0.6);
}

.generate-world-btn {
    width: 100%;
    padding: 15px 20px;
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3), rgba(150, 200, 255, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        0 0 60px rgba(200, 220, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(200, 220, 255, 0.6);
    animation: snowGlow 3s ease-in-out infinite;
}

.generate-world-btn:hover {
    background: linear-gradient(135deg, rgba(220, 240, 255, 0.4), rgba(170, 220, 255, 0.3));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(200, 220, 255, 0.8),
        0 0 50px rgba(150, 200, 255, 0.6),
        0 0 70px rgba(200, 220, 255, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(200, 220, 255, 0.8);
}

.generate-world-btn:active {
    transform: translateY(0);
    box-shadow:
        0 0 20px rgba(200, 220, 255, 0.6),
        0 0 40px rgba(150, 200, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.generate-world-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Gallery Panel */
#gallery-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.gallery-panel-hidden {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.gallery-panel-visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

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

.gallery-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 25px;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-tab {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 15px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
}

.gallery-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-tab.active {
    color: #fff;
    border-bottom-color: rgba(255, 220, 220, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.gallery-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 220, 0.6), transparent);
    opacity: 0.5;
}

/* Gallery Content */
.gallery-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.gallery-tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Gallery Item */
.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.gallery-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 220, 220, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 220, 220, 0.2);
}

.gallery-item-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.gallery-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.gallery-item-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    #gallery-panel {
        width: 95vw;
        max-height: 85vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        padding: 15px;
    }

    .gallery-item-icon {
        font-size: 2.5rem;
    }

    .gallery-tab {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Settings Panel */
#settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    max-width: 90vw;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    user-select: none;
}

.settings-panel-hidden {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.settings-panel-visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

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

.settings-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 25px;
    background: rgba(0, 0, 0, 0.2);
}

.settings-tab {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
}

.settings-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab.active {
    color: #fff;
    border-bottom-color: rgba(200, 220, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 220, 255, 0.6), transparent);
    opacity: 0.5;
}

/* Settings Content */
.settings-content {
    padding: 25px;
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.settings-content::-webkit-scrollbar,
.gallery-content::-webkit-scrollbar {
    width: 8px;
}

.settings-content::-webkit-scrollbar-track,
.gallery-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb,
.gallery-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-content::-webkit-scrollbar-thumb:hover,
.gallery-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Settings Tab Content */
.settings-tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.audio-control-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-control-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Volume Slider */
.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-slider {
    flex: 1;
    height: 8px;
    position: relative;
    cursor: pointer;
}

.volume-slider-track {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.volume-slider-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(200, 220, 255, 0.6), rgba(150, 200, 255, 0.8));
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(200, 220, 255, 0.4);
}

.volume-slider.dragging .volume-slider-fill {
    transition: none !important;
}

.volume-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid rgba(200, 220, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(200, 220, 255, 0.6);
}

.volume-slider.dragging .volume-slider-handle {
    transition: none !important;
}

.volume-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(200, 220, 255, 0.8);
}

.volume-slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.volume-percentage {
    font-size: 0.9rem;
    color: #aaddff;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.audio-control-item.disabled .volume-slider {
    opacity: 0.5;
    pointer-events: none;
}

.audio-control-item.disabled .volume-slider-fill {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.audio-control-item.disabled .volume-slider-handle {
    opacity: 0.6;
    cursor: not-allowed;
}

.audio-control-item.disabled .volume-percentage {
    color: #666;
}

/* Keybind Panel */
.keybind-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keybind-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.keybind-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.keybind-label {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.keybind-key {
    font-size: 0.85rem;
    color: #aaddff;
    background: rgba(200, 220, 255, 0.1);
    border: 1px solid rgba(200, 220, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.keybind-key:hover {
    background: rgba(200, 220, 255, 0.15);
    border-color: rgba(200, 220, 255, 0.3);
    transform: translateY(-1px);
}

.keybind-key.listening {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.2);
    border-color: rgba(255, 170, 0, 0.5);
    animation: keybindPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5), 0 0 30px rgba(255, 170, 0, 0.3);
    transform: scale(1.05);
}

@keyframes keybindPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 170, 0, 0.5), 0 0 30px rgba(255, 170, 0, 0.3);
        border-color: rgba(255, 170, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 170, 0, 0.8), 0 0 50px rgba(255, 170, 0, 0.5);
        border-color: rgba(255, 170, 0, 0.8);
    }
}

/* Video Controls */
.video-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-control-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-control-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.video-control-desc {
    font-size: 0.85rem;
    color: #aaddff;
    opacity: 0.7;
    font-style: italic;
    margin-top: -5px;
}

.video-control-item.disabled .volume-slider {
    opacity: 0.5;
    pointer-events: none;
}

.video-control-item.disabled .volume-slider-fill {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.video-control-item.disabled .volume-slider-handle {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-control-item.disabled .volume-percentage {
    color: #666;
}

.preset-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaddff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.preset-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.preset-select:focus {
    outline: none;
    border-color: rgba(200, 220, 255, 0.4);
    box-shadow: 0 0 10px rgba(200, 220, 255, 0.2);
}

.preset-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

/* Crosshair */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.crosshair-hidden {
    opacity: 0;
    visibility: hidden;
}

.crosshair-visible {
    opacity: 1;
    visibility: visible;
}

.crosshair-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.crosshair-horizontal {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-vertical {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Pause Menu */
#pause-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none; /* Default to hidden */
    justify-content: center;
    align-items: center;
    z-index: 150; /* Below settings panel (200) but above most UI */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    flex-direction: column; /* Ensure content stacks properly */
}

.pause-menu-hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pause-menu-visible {
    display: flex !important; /* Force flex when visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pause-menu-content {
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    min-width: 300px;
}

.pause-menu-content h2 {
    margin: 0 0 30px 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

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

.pause-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
}

.pause-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pause-menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
