* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgb(34, 34, 34);
    font-family: Arial, sans-serif;
}

#game-container {
    position: relative;
    width: 700px;
    height: 800px;
    background: rgb(143, 235, 135);
    overflow: hidden;
    border: 4px solid rgb(51, 51, 51);
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    gap: 15px;

    z-index: 20;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: rgb(51, 51, 51);
    z-index: 10;
}

#basket {
    position: absolute;
    bottom: 10px;
    left: 380px;
    width: 150px;
    height: auto;
    object-fit: contain;
    z-index: 5;
}

#worm {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: contain;
    z-index: 6;
}

#score {
    font-size: 30px;
    font-weight: bold;
    transition: all 0.2s ease;
}

#score.worm-penalty {
    color: red;
    font-size: 40px;
    transform: scale(1.1);
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 20;
}

.falling-object {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    object-fit: contain;
    will-change: transform;
    z-index: 4;
}

.hidden {
    display: none !important;
}
