/**
 * Стили для тренажёра "Мегаструп"
 */

.megastrup-game .game-title { color: #8EDC50; }

/* Settings */
.megastrup-settings {
    display: block !important;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow: hidden;
}

.megastrup-settings.collapsed {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
}

.megastrup-settings .settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.megastrup-settings .setting-item {
    flex: 1;
    min-width: 120px;
}

.megastrup-settings .setting-item.wide {
    min-width: 200px;
    flex: 2;
}

/* Player container */
.megastrup-player {
    background: white;
    border: 3px solid #8EDC50;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.megastrup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #8EDC50, #4DC247);
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.megastrup-content {
    padding: 25px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Countdown */
.megastrup-countdown {
    font-size: 5rem;
    font-weight: 900;
    color: #8EDC50;
    animation: megastrupPulse 0.8s ease-in-out;
}

@keyframes megastrupPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Stats */
.megastrup-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.megastrup-stats span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.megastrup-timer {
    color: #e74c3c;
    font-weight: 600;
}

/* Instruction */
.megastrup-instruction {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Word */
.megastrup-word {
    font-size: 2.5rem;
    font-weight: 700;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Options */
.megastrup-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.megastrup-option {
    width: 90px;
    height: 90px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 4px solid transparent;
}

.megastrup-option:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.megastrup-option.correct {
    border-color: #27ae60;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.5);
}

.megastrup-option.incorrect {
    border-color: #e74c3c;
    animation: shake 0.3s;
}

.megastrup-option.show-correct {
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Results */
.megastrup-results {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.megastrup-results .res-icon { 
    font-size: 50px; 
    margin-bottom: 10px; 
}

.megastrup-results h2 { 
    font-size: 24px; 
    color: var(--text-primary); 
    margin-bottom: 20px; 
}

.megastrup-results .res-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.megastrup-results .res-stat {
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.megastrup-results .res-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.megastrup-results .res-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8EDC50;
}

.megastrup-results .res-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.megastrup-results .res-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.megastrup-results .res-btns button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.megastrup-results .res-btns button:first-child {
    background: linear-gradient(135deg, #8EDC50, #4DC247);
    color: white;
}

.megastrup-results .res-btns button:last-child {
    background: #f0f0f0;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .megastrup-word { font-size: 1.8rem; padding: 15px 25px; }
    .megastrup-option { width: 70px; height: 70px; }
    
    .megastrup-settings .setting-item {
        min-width: 100%;
    }
}