* {
    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;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

.game-setup {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.player-section {
    margin-bottom: 20px;
}

.player-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.player-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.player-section input:focus {
    outline: none;
    border-color: #667eea;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-weight: 500;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-secondary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.game-area {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.player-info {
    font-weight: 600;
    color: #667eea;
}

.score {
    font-size: 1.1rem;
    font-weight: 600;
}

.waiting-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.waiting-message p {
    font-size: 1.2rem;
}

.game-choices h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.choices {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.choice-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 3px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 100px;
}

.choice-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.choice-btn.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.choice-btn .emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.choice-btn span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.result-area {
    text-align: center;
}

.round-result h3 {
    margin-bottom: 20px;
    color: #333;
}

.choices-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
}

.player-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-choice .emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.player-choice span:last-child {
    font-weight: 600;
    color: #667eea;
}

.vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
}

#roundResult {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

#roundResult.win {
    color: #28a745;
    background: #d4edda;
}

#roundResult.lose {
    color: #dc3545;
    background: #f8d7da;
}

#roundResult.tie {
    color: #6c757d;
    background: #e2e3e5;
}

.game-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.rules {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.rules h3 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.rules ul {
    list-style: none;
}

.rules li {
    padding: 8px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.rules li:last-child {
    border-bottom: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .choices {
        flex-direction: column;
    }
    
    .choice-btn {
        min-height: 80px;
    }
    
    .choices-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs {
        transform: rotate(90deg);
    }
}
