body {
    margin: 0;
    padding: 32px 16px;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #eef1f7;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #2d3142;
}

.container-3 {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 49, 66, 0.08);
}

h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.subtitle {
    margin: 0 0 20px;
    color: #6b7084;
}

/* Score display */
.scoreboard {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.scoreboard div {
    flex: 1;
    max-width: 120px;
    padding: 8px;
    background-color: #f5f7fb;
    border-radius: 10px;
}

.scoreboard span {
    display: block;
    font-size: 13px;
    color: #6b7084;
}

.scoreboard strong {
    font-size: 24px;
}

/* Choice cards */
.flex-box-rps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 150px;
    padding: 12px;
    background-color: #fff;
    border: 2px solid #dfe3ec;
    border-radius: 14px;
    font: inherit;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.choice img {
    width: 110px;
    height: 110px;
}

.choice:hover {
    transform: translateY(-4px);
    border-color: #6fa3ef;
    box-shadow: 0 8px 20px rgba(111, 163, 239, 0.3);
}

.choice:focus-visible {
    outline: 3px solid #6fa3ef;
    outline-offset: 2px;
}

.choice.selected {
    border-color: #4a7fd6;
    background-color: #f0f5ff;
}

/* Result area */
.result {
    margin: 24px 0 16px;
    min-height: 150px;
}

#result-message {
    margin: 0 0 12px;
    font-size: 32px;
}

.matchup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.matchup[hidden] {
    display: none;
}

.matchup figure {
    margin: 0;
}

.matchup img {
    width: 70px;
    height: 70px;
}

.matchup figcaption {
    font-size: 14px;
    color: #6b7084;
}

.vs {
    font-weight: 700;
    color: #9aa0b3;
}

.reset-btn {
    padding: 8px 18px;
    background: none;
    border: 1px solid #c9cedb;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: #6b7084;
    cursor: pointer;
}

.reset-btn:hover {
    background-color: #f5f7fb;
}

@media (max-width: 500px) {
    .container-3 {
        padding: 20px 12px;
    }

    .flex-box-rps {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .choice {
        flex: 1;
        width: auto;
        padding: 8px 4px;
    }

    .choice img {
        width: 72px;
        height: 72px;
    }

    #result-message {
        font-size: 26px;
    }
}
