#restart-btn {
    background: linear-gradient(90deg, #4caf50 40%, #81c784 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px 32px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#restart-btn:active {
    background: linear-gradient(90deg, #388e3c 40%, #66bb6a 100%);
    transform: scale(0.97);
}

html,
body {
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .game-area {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
    }

    #play-area {
        width: 100vw;
        height: calc(100vh - 63px);
        max-width: 100vw;
        max-height: calc(100vh - 63px);
        margin: 0;
        border-radius: 0;
    }
}

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: sans-serif;
}

.game-area {
    background-color: rgb(135, 215, 166);
    width: 500px;
    height: 500px;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    position: relative;
}

.game-area h3 {
    margin: 5px;
}

#play-area {
    background-color: rgb(167, 224, 189);
    border: 3px solid black;
    width: 100%;
    height: calc(100% - 63px);
    position: relative;
    overflow: hidden;
}

#catcher {
    background-color: black;
    width: 100px;
    height: 25px;
    position: absolute;
    bottom: 75px;
    z-index: 2;
}

.obj {
    background-color: rgb(37, 219, 167);
    width: 50px;
    height: 50px;
    animation: objMove 2s linear forwards;
    position: absolute;
}

@keyframes objMove {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: 0;
    }
}

.hide {
    display: none;
}

#game-over {
    display: none;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#game-over h2 {
    margin-bottom: 5px;
}

@media (max-width:991px) {
    .game-area {
        height: 90vh;
    }
}