body {
    background-color: var(--bg-color); /* Use main site background color */
    font-family: var(--body-font); /* Use main site body font */
    display: flex;
    justify-content: center; /* Keep center alignment */
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#game-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-family: var(--heading-font); /* Use main site heading font */
    color: var(--pink-deep); /* Use main site deep pink color */
    margin: 10px 0;
    font-size: 3em;
}

#score {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#restart {
    /* Style button to match main site buttons */
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-deep));
    color: var(--white);
    border: none; /* Remove border */
    border-radius: 50px; /* More rounded corners */
    padding: 10px 20px;
    font-size: 1.1em; /* Slightly larger font */
    cursor: pointer;
    transition: all .3s ease; /* Smooth transition */
    box-shadow: 0 4px 15px rgba(233, 81, 113, 0.3); /* Add box shadow */
}

#restart:hover {
    transform: translateY(-2px); /* Lift on hover */
}

#restart:active {
    transform: scale(0.95);
}

#board {
    position: relative;
    width: 90vmin;
    height: 90vmin;
    max-width: 500px;
    max-height: 500px;
    margin: auto;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    border: 2px solid var(--border-light); /* Use main site border color */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fruit {
    position: absolute;
    text-align: center;
    animation: zoomPulse 2s infinite ease-in-out;
    transition: left 0.3s, top 0.3s, transform 0.2s;
    user-select: none;
}

.fruit:hover {
    transform: scale(1.1);
}

.trail {
    pointer-events: none;
    z-index: 10;
}

@keyframes zoomPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes popAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes rise {
    0% {
        top: 100%;
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

@keyframes flow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes flowVertical {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 -200%;
    }
}