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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

.game-area {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.scores {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.score-card {
    text-align: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.1);
}

.score-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 5px;
}

.score-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.round-info {
    text-align: center;
    padding: 15px;
}

.round-text {
    font-size: 1rem;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 5px;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.choices-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(74, 222, 128, 0.1);
}

.choice-display {
    text-align: center;
    padding: 20px;
}

.choice-title {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 500;
}

.choice-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
    animation: popIn 0.5s ease-out;
}

.choice-name {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: capitalize;
}

@keyframes popIn {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.result-message {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message.win {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.result-message.lose {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.result-message.tie {
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.game-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.choice-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2);
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.choice-btn:active {
    transform: translateY(-1px);
}

.choice-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.choice-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2) !important;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
}

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

.choice-text {
    font-size: 1rem;
}

.game-over {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.trophy {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.game-over-title {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: 15px;
    font-weight: 700;
}

.game-over-message {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.final-score {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 500;
}

.play-again-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.how-to-play {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.how-to-play-title {
    text-align: center;
    font-size: 1.3rem;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 20px;
}

.rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rule {
    text-align: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
}

.rule:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.3);
}

.rule-icons {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #4ade80;
}

.rule-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        gap: 20px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .game-area {
        padding: 20px;
    }

    .scores {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .choices-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .choice-btn {
        padding: 18px;
        flex-direction: row;
        justify-content: center;
    }

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

    .rules {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rule-icons {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .game-area {
        padding: 15px;
    }

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

    .result-message {
        font-size: 1.4rem;
    }
}