body {
    margin: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    background-image: url('background.png');
    background-color: #aedff7;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: #3f3f3f;
}

.hidden {
    display: none !important;
}

#game-container {
    position: relative;
    width: 90vmin;
    height: 90vmin;
    max-width: 700px;
    max-height: 700px;
}

#tshirt {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.2));
}

#splashes-container, #fruits-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fruit {
    position: absolute;
    width: 12%;
    height: 12%;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: all;
    transition: transform 0.1s ease-out;
}

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

.splash {
    position: absolute;
    width: 20%;
    height: 20%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#game-over-screen, #title-screen {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 5px solid white;
}

#game-over-screen h2 {
    margin-top: 0;
    font-size: 3em;
    color: #8B4513; /* SaddleBrown */
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 #ddd;
}

#final-score {
    font-size: 1.8em;
    color: #3f3f3f;
    font-weight: bold;
    margin: 20px 0 0 0;
}

#title-screen h1 {
    margin-top: 0;
    font-size: 3em;
    color: #ff6347; /* Tomato */
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 #ddd;
}

#restart-button, #start-button {
    padding: 15px 30px;
    font-size: 1.5em;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background-color: #ff8c00; /* DarkOrange */
    color: white;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 0 #c66d00;
    margin-top: 20px;
}

#restart-button:hover, #start-button:hover {
    background-color: #ff6347; /* Tomato */
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c66d00;
}

#restart-button:active, #start-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c66d00;
}

#game-ui {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#timer {
    font-size: 2em;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#progress-bar-container {
    width: 100%;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffa500); /* Gold to Orange */
    border-radius: 20px 0 0 20px;
    transition: width 0.5s ease-in-out;
}