:root {
    --primary: #FFD700;
    --secondary: #4A90E2;
    --background: #1a1a1a;
    --text: #ffffff;
    --accent: #FF5733;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 400px;
    height: 600px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F7FA 100%);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#ui-overlay>div {
    display: none;
    pointer-events: auto;
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

#ui-overlay>div.active {
    display: block;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 165, 0, 0.4);
}

button:active {
    transform: translateY(1px);
}

#ui-overlay #score-display {
    display: block;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 100;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.score-container {
    margin-bottom: 2rem;
}

.score-container p {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}