:root {
    --primary: #54a0ff;
    --secondary: #2f3542;
    --accent: #ff9f43;
    --bg: #1e272e;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
    user-select: none;
}

body {
    background: var(--bg);
    color: white;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.top-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-box {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.title-box {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

#instruction {
    margin-top: 20px;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(0.98); }
}

/* OVERLAYS */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 5px;
    letter-spacing: 5px;
    text-shadow: 0 5px 15px rgba(84, 160, 255, 0.4);
}

.mini-game-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.game-btn.active {
    background: rgba(84, 160, 255, 0.2);
    border-color: var(--primary);
}

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

.game-btn .icon { font-size: 2.5rem; }
.game-btn .info { text-align: left; }
.game-btn .info strong { display: block; font-size: 1.2rem; }
.game-btn .info p { font-size: 0.8rem; opacity: 0.7; }

#start-btn {
    width: 100%;
    padding: 20px;
    background: var(--primary);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
}

#start-btn:active { transform: scale(0.95); }

.hidden { display: none !important; }
