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

:root {
    --primary: #F7374F;
    --secondary: #88304E;
    --dark: #522546;
    --darker: #2C2C2C;
    --light: #ffffff;
    --gradient-1: linear-gradient(135deg, #F7374F 0%, #88304E 100%);
    --gradient-2: linear-gradient(135deg, #88304E 0%, #522546 100%);
}

.body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    background: var(--darker);
    color: var(--light);
}

/* Header */
.header {
    background: var(--gradient-1);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

/* Game Container */
.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--gradient-2);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.choice-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--light);
    border-radius: 20px;
    color: var(--light);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.choice-button:hover::before {
    width: 300px;
    height: 300px;
}

.choice-button:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(247, 55, 79, 0.5);
    border-color: var(--primary);
    background: rgba(247, 55, 79, 0.2);
}

.choice-button:active {
    transform: translateY(-5px) scale(1.02);
}

.choice-button .emoji {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.choice-button:hover .emoji {
    transform: scale(1.2) rotate(10deg);
}

.choice-button .label {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* Result Container */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--dark);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.result-message {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--light);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Choices Display */
.choices-display {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.player-choice-display,
.computer-choice-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.player-choice-display {
    border: 2px solid rgba(247, 55, 79, 0.5);
}

.computer-choice-display {
    border: 2px solid rgba(136, 48, 78, 0.5);
}

.choice-label {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.choice-emoji {
    font-size: 5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.choice-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.vs-divider {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(247, 55, 79, 0.8);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(247, 55, 79, 0.8);
    }

    50% {
        text-shadow: 0 0 40px rgba(247, 55, 79, 1), 0 0 60px rgba(247, 55, 79, 0.8);
    }
}

/* Score Container */
.score-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(247, 55, 79, 0.6);
    transition: all 0.3s ease;
}

.score-value.animate {
    animation: scorePopup 0.5s ease;
}

@keyframes scorePopup {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        color: #FFD700;
    }

    100% {
        transform: scale(1);
    }
}

.score-label {
    font-size: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-divider {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.5;
}

/* Game Info */
.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.rounds-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    opacity: 0.8;
}

.round-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.winner-announcement {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: winnerPulse 1s ease-in-out infinite;
    min-height: 4rem;
}

@keyframes winnerPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .button-container {
        gap: 1rem;
        padding: 1.5rem;
    }

    .choice-button {
        padding: 1.5rem 2rem;
        min-width: 120px;
    }

    .choice-button .emoji {
        font-size: 2.5rem;
    }

    .choice-button .label {
        font-size: 1rem;
    }

    .choices-display {
        gap: 1.5rem;
    }

    .choice-emoji {
        font-size: 3.5rem;
    }

    .score-container {
        gap: 2rem;
    }

    .score-value {
        font-size: 3rem;
    }

    .winner-announcement {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .button-container {
        flex-direction: column;
    }

    .choice-button {
        width: 100%;
    }

    .choices-display {
        flex-direction: column;
        gap: 1rem;
    }

    .vs-divider {
        font-size: 2rem;
        transform: rotate(90deg);
    }
}