body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(270deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb);
    background-size: 800% 800%;
    animation: bgmove 12s ease infinite;
}

@keyframes bgmove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.game-container {
    background: #ffffffee;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 460px;
    animation: pop 0.6s ease;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #444;
}

#result {
    margin-top: 20px;
    font-size: 1.4em;
    font-weight: bold;
    color: #222;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#userInput,
#computer {
    padding: 10px;
    border: 2px solid #bbb;
    border-radius: 12px;
    outline: none;
    margin: 10px 0;
    width: 85%;
    font-size: 1em;
    text-align: center;
    font-weight: bold;
    background: #fdfdfd;
}

#userInput:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px #4a90e2;
}

.btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.play-btn {
    background: #28a745;
}

.play-btn:hover {
    background: #218838;
}

.reset-btn {
    background: #e94e77;
}

.reset-btn:hover {
    background: #c73a5a;
}

.scoreboard {
    margin-top: 20px;
    padding: 12px;
    border-radius: 15px;
    background: #f5f5f5;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-around;
    color: #333;
}