:root {
    --bg-dark: #000000;
    --neon-pink: #ff00ff;
    --neon-blue: #00d4ff;
    --neon-green: #39ff14;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: #000000;
    color: white;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Background Stars Effect */
body::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle, #ffffff 1px, transparent 1px),
        radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 100px 100px, 200px 200px;
    background-position: 0 0, 50px 50px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* --- HUD --- */
#hud {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
    z-index: 10;
    position: relative;
    text-transform: uppercase;
}

.hud-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 900;
    box-shadow: 0 0 15px var(--neon-pink);
}

.hud-item.timer {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* --- Game Area --- */
#game-area {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 5;
}

.word {
    position: absolute;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    cursor: pointer;
    user-select: none;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 3s linear, opacity 0.5s ease-in 2.5s;
    will-change: transform;
}

/* Random Word Color Classes */
.word-pink {
    background: linear-gradient(135deg, #ff00ff 0%, #a100a1 100%);
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

.word-blue {
    background: linear-gradient(135deg, #00d4ff 0%, #0081a7 100%);
    border-color: #00d4ff;
    box-shadow: 0 0 20px #00d4ff;
}

.word-green {
    background: linear-gradient(135deg, #39ff14 0%, #1b8a00 100%);
    border-color: #39ff14;
    box-shadow: 0 0 20px #39ff14;
}

.word-orange {
    background: linear-gradient(135deg, #ff8800 0%, #cc5500 100%);
    border-color: #ff8800;
    box-shadow: 0 0 20px #ff8800;
}

.word-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
    border-color: #f0f;
    box-shadow: 0 0 20px #9c27b0;
}

/* --- Screens --- */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    z-index: 100;
    text-align: center;
}

.hidden { display: none !important; }

.title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #fff 20%, #ff00ff 50%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,0,255,0.8));
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Buttons */
.main-btn {
    background: linear-gradient(to right, #0055ff, #00d4ff);
    border: 2px solid white;
    border-radius: 50px;
    padding: 15px 45px;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 25px var(--neon-blue);
    transition: transform 0.1s;
    text-decoration: none;
    margin: 10px;
}

.main-btn:active { transform: scale(0.95); }

/* Feedback */
.feedback-popup {
    position: absolute;
    pointer-events: none;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    animation: popupMove 0.8s ease-out forwards;
    z-index: 200;
    white-space: nowrap;
}

@keyframes popupMove {
    0% { transform: scale(0.5); opacity: 0; }
    20% { transform: scale(1.2); opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
