/* General Setup */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #000010;
    font-family: 'Poppins', sans-serif;
    color: white;
}
#game-world {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Parallax Background */
#stars1, #stars2 {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
}
#stars1 { animation: moveStars 40s linear infinite; }
#stars2 { animation: moveStars 20s linear infinite; opacity: 0.5; }
@keyframes moveStars { from { background-position-x: 0; } to { background-position-x: -1000px; } }

/* Glassmorphism Container */
.container {
    background: rgba(14, 25, 60, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(15px, 4vw, 40px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    text-align: center;
    z-index: 2;
}

/* Header & Stats */
.header h1 {
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    font-size: clamp(1.5em, 5vw, 2.5em);
    color: #FEFF86;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.stats {
    display: flex; justify-content: space-between;
    font-size: clamp(1em, 3vw, 1.2em); font-weight: 600;
    margin-top: 20px; padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Game Area */
#word-counter { font-size: 1em; color: #ddd; margin-top: 20px; }
.word-display {
    font-size: clamp(2em, 8vw, 4em); letter-spacing: 10px;
    font-weight: 600; margin: 20px 0; text-transform: uppercase;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.3);
}
#feedback { min-height: 25px; font-size: 1.2em; font-weight: 600; }

/* Options & Buttons */
.options-container { display: flex; justify-content: center; gap: clamp(10px, 2vw, 15px); flex-wrap: wrap; margin: 20px 0; }
.option-btn {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5em, 5vw, 2em); font-weight: 600;
    width: clamp(60px, 15vw, 80px); height: clamp(60px, 15vw, 80px);
    border: none; border-radius: 15px; background-color: rgba(255, 255, 255, 0.9);
    color: #333; cursor: pointer; transition: all 0.2s ease;
}
.option-btn:hover { background-color: #fff; transform: scale(1.1); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.7; }

#next-word-btn {
    font-family: 'Poppins', sans-serif;
    padding: 15px 30px; font-size: 1.2em; border-radius: 10px; border: none;
    background-color: #28a745; color: white; cursor: pointer;
}

/* Popups */
.popup {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9); padding: clamp(20px, 5vw, 50px);
    border-radius: 10px; border: 3px solid white; z-index: 100; text-align: center;
}
.popup h2 { font-family: 'Press Start 2P', cursive; font-size: clamp(1.2em, 4vw, 2em); }
.popup button {
    font-family: 'Poppins', sans-serif; padding: 15px 30px;
    font-size: 1.2em; border-radius: 10px; border: none;
    background-color: #FEFF86; color: black; cursor: pointer;
}

.correct { background-color: #28a745 !important; color: white; }
.incorrect { background-color: #dc3545 !important; color: white; }
.hidden { display: none; }