/* Базовые стили контейнера */
.mtt-container {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mtt-game-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Заголовки */
.mtt-title {
    text-align: center;
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
}

/* Сетка уровней */
.mtt-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mtt-level-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mtt-level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.mtt-level-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.mtt-level-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.mtt-level-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Заголовок игры */
.mtt-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.mtt-timer {
    font-size: 1.2em;
    font-weight: bold;
    color: #e53e3e;
}

.mtt-progress {
    color: #4a5568;
}

/* Контейнер вопроса */
.mtt-question-container {
    text-align: center;
    margin: 40px 0;
}

.mtt-question {
    font-size: 3em;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.mtt-answer-input {
    width: 200px;
    height: 60px;
    font-size: 2em;
    text-align: center;
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    margin: 0 15px 20px 15px;
    transition: all 0.3s ease;
}

.mtt-answer-input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.mtt-submit-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.mtt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

/* Обратная связь */
.mtt-feedback {
    min-height: 60px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
}

.mtt-feedback.correct {
    color: #48bb78;
}

.mtt-feedback.incorrect {
    color: #e53e3e;
}

/* Кнопки */
.mtt-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.mtt-btn.mtt-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.mtt-btn.mtt-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.mtt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mtt-game-controls {
    text-align: center;
    margin-top: 30px;
}

/* Экран результатов */
.mtt-results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mtt-stat-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #4299e1;
}

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

.mtt-stat-label {
    color: #718096;
    margin-top: 5px;
}

/* Шкала производительности */
.mtt-performance {
    margin: 30px 0;
}

.mtt-performance-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.mtt-performance-text {
    text-align: center;
    font-weight: bold;
    color: #4a5568;
}

.mtt-results-actions {
    text-align: center;
    margin: 30px 0;
}

/* Кнопки поделиться */
.mtt-share-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.mtt-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mtt-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mtt-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mtt-vk { background: #4a76a8; }
.mtt-tg { background: #0088cc; }
.mtt-wa { background: #25d366; }
.mtt-copy { background: #718096; }

/* Уведомления */
.mtt-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #48bb78;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: mtt-notification-fade 3s ease-in-out;
}

@keyframes mtt-notification-fade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .mtt-container {
        padding: 20px;
    }
    
    .mtt-game-wrapper {
        padding: 20px;
    }
    
    .mtt-question {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .mtt-levels-grid {
        grid-template-columns: 1fr;
    }
    
    .mtt-game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .mtt-question {
        font-size: 2em;
    }
    
    .mtt-answer-input {
        width: 150px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .mtt-share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .mtt-container {
        padding: 15px;
    }
    
    .mtt-game-wrapper {
        padding: 15px;
    }
    
    .mtt-title {
        font-size: 1.8em;
    }
    
    .mtt-question {
        font-size: 1.8em;
    }
    
    .mtt-answer-input {
        width: 120px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .mtt-results-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .mtt-question {
        font-size: 1.5em;
    }
    
    .mtt-answer-input {
        width: 100px;
        font-size: 1.2em;
    }
    
    .mtt-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}