* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease-out;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.score-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.score-item:hover {
    transform: translateY(-5px);
}

.score-item h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.player-score .score {
    color: #10b981;
}

.bot-score .score {
    color: #ef4444;
}

.tie-score .score {
    color: #f59e0b;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.8s ease-out;
}

.player-area, .bot-area {
    text-align: center;
}

.player-area h3, .bot-area h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #667eea;
}

.choice-display {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.choice-display.active {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.choice-display svg {
    width: 80px;
    height: 80px;
}

.waiting {
    font-size: 4rem;
    color: #d1d5db;
}

.vs-section {
    text-align: center;
}

.vs-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.result-message {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 30px;
    background: #f3f4f6;
    color: #666;
    min-width: 200px;
    transition: all 0.3s ease;
}

.result-message.win {
    background: #10b981;
    color: white;
    animation: pulse 0.5s ease;
}

.result-message.lose {
    background: #ef4444;
    color: white;
    animation: shake 0.5s ease;
}

.result-message.tie {
    background: #f59e0b;
    color: white;
    animation: bounce 0.5s ease;
}

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.choice-btn {
    background: white;
    border: 3px solid #e5e7eb;
    padding: 30px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.choice-btn:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.choice-btn:active {
    transform: translateY(-5px);
}

.choice-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.choice-btn svg {
    width: 80px;
    height: 80px;
    color: #667eea;
    transition: all 0.3s ease;
}

.choice-btn:hover svg {
    transform: scale(1.2) rotate(10deg);
}

.choice-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.stats {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out;
}

.stats h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.reset-btn {
    width: 100%;
    padding: 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.reset-btn:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

.history {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease-out;
}

.history h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.history-item {
    padding: 15px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.history-item:hover {
    background: #e5e7eb;
    transform: translateX(5px);
}

.history-item.win {
    border-left: 4px solid #10b981;
}

.history-item.lose {
    border-left: 4px solid #ef4444;
}

.history-item.tie {
    border-left: 4px solid #f59e0b;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-choices {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.history-result {
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.history-result.win {
    background: #10b981;
    color: white;
}

.history-result.lose {
    background: #ef4444;
    color: white;
}

.history-result.tie {
    background: #f59e0b;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .game-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vs-section {
        order: 2;
    }

    .bot-area {
        order: 3;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scoreboard {
        grid-template-columns: 1fr;
    }
}