:root {
    --hole-black: #1a1a1a;
    --hole-blue: #0984e3;
    --hole-yellow: #fdcb6e;
    --hud-bg: rgba(0, 0, 0, 0.4);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #2d3436;
    font-family: 'Fredoka', sans-serif;
    user-select: none;
}

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

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
}

#score-container,
#timer-container {
    background: var(--hud-bg);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 20px;
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-label {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--hole-yellow);
}

#score-value,
#timer-value {
    font-size: 2.5rem;
    font-weight: 900;
}

/* 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;
    backdrop-filter: blur(10px);
}

.menu-box {
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 40px;
    border: 6px solid var(--hole-blue);
    box-shadow: 0 20px 60px rgba(0, 132, 227, 0.3);
    max-width: 500px;
    width: 90%;
}

.logo-text {
    font-family: 'Titan One', cursive;
    font-size: 4rem;
    color: var(--hole-black);
    margin-bottom: 20px;
}

.logo-text span {
    color: var(--hole-blue);
}

p {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 40px;
}

button {
    background: var(--hole-blue);
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 25px;
    box-shadow: 0 8px 0 #076ad8;
}

button:hover {
    transform: translateY(-5px);
    background: #00a8ff;
    box-shadow: 0 12px 0 #076ad8;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #076ad8;
}

.final-stats {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--hole-black);
}

.hidden {
    display: none !important;
}