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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #764ba2;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.scene-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.scene-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.stats-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #764ba2;
}

.choices-section {
    margin-bottom: 30px;
}

.choices-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.choice-btn {
    padding: 18px 24px;
    font-size: 1.1em;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

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

.choice-btn:active:not(:disabled) {
    transform: translateY(0);
}

.choice-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.choice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

.status-message {
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #2e7d32;
    min-height: 60px;
}

.status-message:empty {
    display: none;
}

.final-stats {
    padding: 20px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    font-size: 1.1em;
    line-height: 1.6;
    color: #e65100;
    font-weight: 500;
}

.final-stats:empty {
    display: none;
}

/* Адаптивность */
@media (max-width: 600px) {
    .game-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .choice-btn {
        font-size: 1em;
        padding: 15px 20px;
    }
}

/* Улучшение видимости для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
