* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: white;
}

.game {
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 380px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.vs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.player {
    width: 40%;
}

.display {
    font-size: 60px;
    margin-top: 10px;
    animation: pop 0.3s ease;
}

.vs {
    font-size: 20px;
    font-weight: bold;
}

.choices {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.choice {
    font-size: 40px;
    padding: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.choice:hover {
    transform: scale(1.2);
}

.choice:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#message {
    min-height: 30px;
    font-size: 18px;
}

.reset {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ff4b5c;
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background: white;
    color: black;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    animation: pop 0.4s ease;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 10px;
}

@keyframes pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.slide-left {
    animation: slideFromLeft 0.4s ease;
}

.slide-right {
    animation: slideFromRight 0.4s ease;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#thumbsDown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    opacity: 0;
    pointer-events: none;
}

.show-thumbs {
    animation: thumbsDown 5s ease forwards;
}

@keyframes thumbsDown {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    50%  { transform: scale(0.95); }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}