* {
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

h1 {
    text-align: center;
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.explanation {
    background: #edf2f7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #4299e1;
}

.explanation p {
    color: #2d3748;
    line-height: 1.6;
}

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

.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.score-card.ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
}

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

.strategy-btn {
    background: white;
    border: 3px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.strategy-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.strategy-btn:active {
    transform: translateY(-2px);
}

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

.strategy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

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

.result-area {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    min-height: 200px;
    display: none;
    animation: slideIn 0.5s ease-out;
}

.result-area.show {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.result-title {
    text-align: center;
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.choice {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.choice-label {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.choice-value {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: bold;
}

.round-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.profit-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.profit-item {
    padding: 10px;
    border-radius: 6px;
    background: #edf2f7;
}

.profit-label {
    color: #718096;
    font-size: 0.85rem;
}

.profit-value {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: bold;
}

.result-message {
    color: #4a5568;
    line-height: 1.6;
    margin-top: 15px;
}

.next-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

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

.next-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.final-result {
    text-align: center;
    display: none;
}

.final-result.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.final-score {
    font-size: 3rem;
    color: #667eea;
    font-weight: bold;
    margin: 20px 0;
}

.educational-message {
    background: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.educational-message h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.educational-message p {
    color: #4a5568;
    line-height: 1.8;
}

.restart-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.4);
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .strategy-buttons {
        grid-template-columns: 1fr;
    }

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