:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #bb86fc;
    --secondary-color: #03dac6;
    --canvas-bg: #1e1e1e;
    --font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

.game-container {
    position: relative;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

canvas {
    background-color: var(--canvas-bg);
    display: block;
}

#score-board {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.hidden {
    display: none !important;
}

#game-over-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#game-over-modal h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 2rem;
}

#game-over-modal p {
    font-size: 1.2rem;
    margin: 0;
}

button {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    border: none;
    padding: 12px 24px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.4);
}

button:active {
    transform: translateY(0);
}

.instructions {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.instructions strong {
    color: var(--secondary-color);
}