/* ===========================
   Root & Base Styles
   =========================== */

:root {
    /* Colors */
    --color-bg-dark: #000000;
    --color-bg-light: #0f172a;
    --color-text-primary: #ffffff;
    --color-accent-yellow: #ffff00;
    --color-accent-green: #00ff00;

    /* Effects */
    --gradient-bg: linear-gradient(to bottom, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
}

html {
    height: 100%;
    background: var(--gradient-bg);
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    position: relative;
    background: var(--gradient-bg);
    color: var(--color-text-primary);
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    -webkit-user-select: none;
    user-select: none;
}

/* ===========================
   Animations
   =========================== */

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--opacity);
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes pulse {
    from {
        text-shadow: 0 0 10px var(--color-accent-green);
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        text-shadow: 0 0 20px var(--color-accent-green), 0 0 40px var(--color-accent-green);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===========================
   Component Styles
   =========================== */

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-text-primary);
    border-radius: 50%;
    pointer-events: none;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: var(--opacity);
}

/* Game Container - Main interaction layer */
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
}

/* Particle - Individual effect elements */
.particle {
    position: absolute;
    pointer-events: none;
    font-weight: bold;
    will-change: transform, opacity;
}

/* UI Layer - HUD container */
#ui-layer {
    position: absolute;
    top: 20px;
    right: 20px;
    pointer-events: none;
}

/* Settings and UI controls container which needs pointer events enabled */
.ui-controls {
    pointer-events: auto;
    margin-top: 8px;
    color: var(--color-text-primary);
    font-size: 14px;
}

.ui-controls input[type='checkbox'] {
    transform: translateY(2px);
    margin-right: 6px;
}

/* Easter Egg Text - Special event notification with pulse effect */
.easter-egg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 5vw;
    font-weight: bold;
    color: var(--color-accent-green);
    text-shadow: 0 0 10px var(--color-accent-green);
    white-space: pre;
    text-align: center;
    z-index: 100;
    transform: translate(-50%, -50%);
    animation: pulse 0.5s infinite alternate;
}

/* Combo Counter - Score indicator with color emphasis */
#combo-counter {
    font-size: 24px;
    color: var(--color-accent-yellow);
    text-shadow: 0 0 5px var(--color-accent-yellow);
    font-weight: bold;
    transition: transform 0.1s ease-out;
}