body {
    font-family: Arial, sans-serif;
    background: #fff;
    text-align: center;
    padding: 40px 20px;
}

h1 {
    color: #333;
    font-size: 2.2em;
}

.buttons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

button {
    font-size: 20px;
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #484bf7;
    color: #fff;
    transition: background-color 0.3s;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -ms-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

button:hover {
    background-color: #3d79b9;
}

.scoreboard {
    margin-top: 30px;
    font-size: 20px;
    color: #444;
}

.hands {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 50px;
    font-size: 50px;
    height: 60px;
}

.hand {
    display: inline-block;
    animation-duration: 0.6s;
    animation-iteration-count: 3;
}

.shake {
    animation-name: shakeHand;
}

@keyframes shakeHand {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
}

    25% {
        transform: rotate(-20deg);
        -webkit-transform: rotate(-20deg);
        -moz-transform: rotate(-20deg);
        -ms-transform: rotate(-20deg);
        -o-transform: rotate(-20deg);
}

    50% {
        transform: rotate(20deg);
        -webkit-transform: rotate(20deg);
        -moz-transform: rotate(20deg);
        -ms-transform: rotate(20deg);
        -o-transform: rotate(20deg);
}

    75% {
        transform: rotate(-20deg);
        -webkit-transform: rotate(-20deg);
        -moz-transform: rotate(-20deg);
        -ms-transform: rotate(-20deg);
        -o-transform: rotate(-20deg);
}

    100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
}
}

.countdown {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #cc6600;
    min-height: 30px;
}

.result {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #222;
    min-height: 30px;
}

.restart-btn {
    margin-top: 30px;
    padding: 10px 30px;
    font-size: 18px;
    background-color: #ec51d3;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.restart-btn:hover {
    background-color: #f085d9;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }

    button {
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }

    .result,
    .countdown {
        font-size: 20px;
    }

    .scoreboard {
        font-size: 18px;
    }

    .restart-btn {
        width: 100%;
        max-width: 300px;
    }
}

.status-icon {
  font-size: 50px;
  margin-top: 20px;
  min-height: 60px;
  animation-duration: 0.6s;
  animation-fill-mode: both;
}

@keyframes bounce {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.bounce {
  animation-name: bounce;
}
