/* ============================
   Move To Learn English Styles
   IBCB brand: black-white minimalist
   Kid-friendly accents
   ============================ */

/* ---- CSS Variables ---- */
:root {
    --mtl-gold: #d4a843;
    --mtl-gold-light: #f0d78c;
    --mtl-green: #2d8a4e;
    --mtl-green-light: #e8f5e0;
    --mtl-red: #c0392b;
    --mtl-red-light: #fdecea;
    --mtl-blue: #2c3e50;
    --mtl-blue-light: #eaf2f8;
    --mtl-locked: #bbb;
    --mtl-card-bg: #fafafa;
    --mtl-radius: 12px;
    --mtl-shadow: 0 2px 16px rgba(0,0,0,0.06);
    --mtl-transition: 0.25s ease;
}

/* ---- View System ---- */
.mtl-view { display: none; }
.mtl-view.active { display: block; }

/* ---- Hero ---- */
.mtl-hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}
.mtl-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 12px 0;
}
.mtl-hero .hero-lead {
    max-width: 640px;
    margin: 16px auto 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---- Stats Bar ---- */
.mtl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 20px;
    text-align: center;
    transition: var(--mtl-transition);
}
.stat-card:hover { border-color: var(--mtl-gold); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--mtl-gold); }
.stat-label { font-size: 0.8rem; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Levels Grid ---- */
.mtl-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}
.mtl-level-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--mtl-transition);
    position: relative;
    overflow: hidden;
}
.mtl-level-card:hover:not(.locked) {
    border-color: var(--mtl-gold);
    box-shadow: var(--mtl-shadow);
    transform: translateY(-2px);
}
.mtl-level-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}
.mtl-level-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--mtl-blue);
    line-height: 1;
}
.mtl-level-card.locked .mtl-level-number { color: var(--mtl-locked); }
.mtl-level-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 8px 0 4px;
}
.mtl-level-age {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}
.mtl-level-progress {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}
.mtl-level-progress-bar {
    height: 100%;
    background: var(--mtl-green);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.mtl-level-card.locked .mtl-level-progress-bar { background: var(--mtl-locked); }
.mtl-level-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}
.mtl-level-trophy {
    font-size: 1.6rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mtl-level-trophy.earned { opacity: 1; transform: scale(1); }
.mtl-level-lock-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.2rem;
    color: var(--mtl-locked);
    display: none;
}
.mtl-level-card.locked .mtl-level-lock-icon { display: block; }

/* ---- Back Button ---- */
.mtl-back-btn {
    display: inline-block;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    margin: 20px 0;
    transition: var(--mtl-transition);
}
.mtl-back-btn:hover { border-color: #888; color: #222; }

/* ---- Level Detail Header ---- */
.mtl-level-header-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.mtl-level-header-left h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.mtl-level-header-left .age { color: #888; font-size: 0.95rem; }
.mtl-level-header-left .desc { color: #666; margin-top: 8px; max-width: 480px; line-height: 1.5; }
.mtl-level-header-right {
    text-align: center;
}
.mtl-big-trophy {
    font-size: 3rem;
    opacity: 0.2;
    transition: all 0.5s ease;
}
.mtl-big-trophy.earned {
    opacity: 1;
    animation: trophyBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mtl-progress-text { font-size: 0.85rem; color: #888; margin-top: 4px; }

/* ---- Games Grid ---- */
.mtl-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
}
.mtl-game-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--mtl-transition);
    position: relative;
}
.mtl-game-card:hover:not(.completed) { border-color: var(--mtl-blue); }
.mtl-game-card.completed {
    border-color: var(--mtl-green);
    background: var(--mtl-green-light);
}
.mtl-game-card.locked-game {
    opacity: 0.4;
    cursor: not-allowed;
}
.mtl-game-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mtl-game-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.badge-comprehension { background: var(--mtl-blue-light); color: var(--mtl-blue); }
.badge-spelling { background: #fef3e2; color: #e67e22; }
.badge-vocabulary { background: #e8f8f5; color: #1abc9c; }
.badge-grammar { background: #f5eef8; color: #8e44ad; }
.badge-wordsearch { background: #fdebd0; color: #d35400; }
.badge-matching { background: #d5f5e3; color: #27ae60; }
.badge-fillblank { background: #d6eaf8; color: #2980b9; }
.badge-ordering { background: #fadbd8; color: #c0392b; }
.badge-word { background: #d6eaf8; color: #2980b9; }
.badge-speed { background: #fdebd0; color: #d35400; }
.badge-eq { background: #d5f5e3; color: #27ae60; }
.badge-match { background: #f5eef8; color: #8e44ad; }
.badge-olym { background: #fef9e7; color: #d4a843; }
.badge-boss { background: #fadbd8; color: #c0392b; }
.badge-clock { background: #fce4ec; color: #e84393; }

/* Answer input — centered */
.mtl-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    margin: 12px auto;
    display: block;
}
.mtl-input:focus { border-color: var(--mtl-blue); outline: none; }

.mtl-game-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0;
    line-height: 1.3;
}
.mtl-game-check {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.3rem;
    opacity: 0;
    transition: var(--mtl-transition);
}
.mtl-game-card.completed .mtl-game-check { opacity: 1; }

/* ---- Game Play Area ---- */
.mtl-game-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.mtl-game-header {
    text-align: center;
    margin-bottom: 32px;
}
.mtl-game-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.mtl-game-header .game-type-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

/* Passage (comprehension) */
.mtl-passage {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.mtl-speak-btn {
    float: right;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    color: #555;
    transition: var(--mtl-transition);
    margin-left: 12px;
    margin-bottom: 8px;
}
.mtl-speak-btn:hover { border-color: var(--mtl-blue); color: var(--mtl-blue); }
.mtl-speak-btn:disabled { opacity: 0.5; cursor: default; }
.mtl-passage-text { clear: both; }

/* Question block */
.mtl-question-block {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.mtl-question-block:last-child { border-bottom: none; }
.mtl-question-text {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.mtl-options { display: flex; flex-direction: column; gap: 8px; }
.mtl-option {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--mtl-transition);
    font-size: 0.95rem;
    background: #fff;
    text-align: left;
}
.mtl-option:hover:not(.selected):not(.correct):not(.wrong) {
    border-color: var(--mtl-blue);
    background: #f8fafd;
}
.mtl-option.selected { border-color: var(--mtl-blue); background: var(--mtl-blue-light); }
.mtl-option.correct { border-color: var(--mtl-green); background: var(--mtl-green-light); }
.mtl-option.wrong { border-color: var(--mtl-red); background: var(--mtl-red-light); }
.mtl-option:disabled { cursor: default; opacity: 0.85; }

/* Feedback */
.mtl-feedback {
    text-align: center;
    padding: 16px;
    margin: 16px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    display: none;
}
.mtl-feedback.show { display: block; }
.mtl-feedback.correct { background: var(--mtl-green-light); color: var(--mtl-green); }
.mtl-feedback.wrong { background: var(--mtl-red-light); color: var(--mtl-red); }

/* Trophy animation */
.mtl-trophy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    border: 3px solid var(--mtl-gold);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mtl-trophy-popup.show { transform: translate(-50%, -50%) scale(1); }
.mtl-trophy-popup .trophy-icon { font-size: 5rem; display: block; }
.mtl-trophy-popup .trophy-text { font-size: 1.4rem; font-weight: 700; margin: 12px 0 4px; }
.mtl-trophy-popup .trophy-sub { font-size: 0.9rem; color: #888; }
.mtl-trophy-popup .trophy-close {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    background: var(--mtl-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-trophy-popup .trophy-close:hover { background: #b8942e; }
.mtl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
}
.mtl-overlay.show { display: block; }

/* Stars earned during game */
.mtl-stars-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
    font-size: 1.6rem;
}
.mtl-stars-bar .star { opacity: 0.2; transition: opacity 0.3s ease; }
.mtl-stars-bar .star.earned { opacity: 1; }

/* Spelling input */
.mtl-spelling-input {
    width: 100%;
    max-width: 320px;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    margin: 16px auto;
    display: block;
    transition: var(--mtl-transition);
}
.mtl-spelling-input:focus { border-color: var(--mtl-blue); outline: none; }

/* Word search grid */
.mtl-wordsearch-grid {
    display: inline-grid;
    gap: 2px;
    margin: 20px 0;
}
.mtl-wordsearch-cell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #eee;
    cursor: pointer;
    user-select: none;
    transition: var(--mtl-transition);
}
.mtl-wordsearch-cell:hover { background: #f0f0f0; }
.mtl-wordsearch-cell.selected { background: var(--mtl-gold-light); border-color: var(--mtl-gold); }
.mtl-wordsearch-cell.found { background: var(--mtl-green-light); border-color: var(--mtl-green); }
.mtl-wordsearch-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}
.mtl-wordsearch-word {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f5f5f5;
}
.mtl-wordsearch-word.found { background: var(--mtl-green-light); text-decoration: line-through; color: var(--mtl-green); }

/* Matching pairs */
.mtl-matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.mtl-match-item {
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--mtl-transition);
    text-align: center;
    font-weight: 500;
    background: #fff;
}
.mtl-match-item:hover:not(.matched):not(.selected-match) { border-color: #aaa; }
.mtl-match-item.selected-match { border-color: var(--mtl-blue); background: var(--mtl-blue-light); }
.mtl-match-item.matched { border-color: var(--mtl-green); background: var(--mtl-green-light); opacity: 0.7; }

/* Fill blank */
.mtl-fillblank-text {
    font-size: 1.1rem;
    line-height: 2;
    margin: 20px 0;
}
.mtl-fillblank-select {
    padding: 6px 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin: 0 4px;
    background: #fff;
    cursor: pointer;
}

/* Sentence ordering */
.mtl-ordering-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    justify-content: center;
}
.mtl-ordering-word {
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--mtl-transition);
}
.mtl-ordering-word:hover { border-color: var(--mtl-blue); }
.mtl-ordering-word.placed { background: var(--mtl-blue-light); border-color: var(--mtl-blue); }
.mtl-ordering-sentence {
    min-height: 50px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 12px;
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Check/Next button */
.mtl-check-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
    padding: 14px 0;
    background: var(--mtl-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-check-btn:hover { background: #1a252f; }
.mtl-check-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Submit spelling button */
.mtl-submit-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 8px auto 0;
    padding: 12px 0;
    background: var(--mtl-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.mtl-submit-btn:hover { background: #1a252f; }

/* Next game button */
.mtl-next-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
    padding: 14px 0;
    background: var(--mtl-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-next-btn:hover { background: #b8942e; }

/* Responsive */
@media (max-width: 768px) {
    .mtl-stats { grid-template-columns: repeat(2, 1fr); }
    .mtl-levels-grid { grid-template-columns: 1fr; }
    .mtl-games-grid { grid-template-columns: 1fr; }
    .mtl-matching-grid { grid-template-columns: 1fr; }
    .mtl-level-header-card { flex-direction: column; text-align: center; }
    .mtl-hero h1 { font-size: 1.8rem; }
    .mtl-trophy-popup { width: 90%; padding: 30px 20px; }
}

@keyframes trophyBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes starPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---- Login / Create Student ---- */
.mtl-login-box {
    max-width: 480px;
    margin: 0 auto 60px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 36px 32px;
    text-align: center;
}
.mtl-login-box h2 { font-size: 1.5rem; margin-bottom: 8px; }
.mtl-login-box > p { color: #666; margin-bottom: 24px; font-size: 0.95rem; line-height: 1.5; }
.mtl-login-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
}
.mtl-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--mtl-transition);
}
.mtl-tab.active { color: var(--mtl-blue); border-bottom-color: var(--mtl-blue); }
.mtl-login-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.05rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.mtl-login-form input[type="text"]:focus { border-color: var(--mtl-blue); outline: none; }
.mtl-login-form .mtl-check-btn { width: 100%; max-width: none; }

/* ---- Student Bar ---- */
.mtl-student-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.mtl-savecode { color: #666; }
.mtl-savecode strong { color: var(--mtl-gold); letter-spacing: 1px; }
.mtl-logout-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-logout-btn:hover { border-color: var(--mtl-red); color: var(--mtl-red); }

/* ---- Action Buttons Row (Complete Game + Next Game) ---- */
.mtl-action-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.mtl-action-btns .mtl-next-btn,
.mtl-action-btns .mtl-check-btn {
    margin: 0;
    flex: 1;
    max-width: 220px;
}
.mtl-next-game-btn {
    display: block;
    flex: 1;
    max-width: 220px;
    padding: 14px 0;
    background: var(--mtl-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-next-game-btn:hover { background: #1a252f; }

@media (max-width: 768px) {
    .mtl-login-box { padding: 24px 20px; }
    .mtl-student-bar { flex-direction: column; text-align: center; }
    .mtl-action-btns { flex-direction: column; align-items: center; }
    .mtl-action-btns .mtl-next-btn,
    .mtl-action-btns .mtl-check-btn,
    .mtl-next-game-btn { max-width: 100%; width: 100%; }
}

/* ---- Placement Quiz ---- */
.mtl-quiz-box {
    max-width: 640px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 32px;
}
.mtl-quiz-box h2 { margin: 0 0 4px; font-size: 1.3rem; }
.mtl-quiz-box #quizProgress { color: #888; font-size: 0.85rem; margin-bottom: 20px; }
.mtl-quiz-passage { margin-bottom: 16px; }
.mtl-quiz-question { font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.mtl-quiz-box .mtl-options { display: flex; flex-direction: column; gap: 8px; }
.mtl-quiz-box .mtl-feedback { margin-top: 12px; }
.mtl-quiz-box .mtl-check-btn { margin-top: 16px; }

.mtl-quiz-result {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    background: #fff;
    border: 2px solid var(--mtl-gold);
    border-radius: var(--mtl-radius);
    padding: 40px 32px;
}
.mtl-quiz-result h2 { margin: 0 0 20px; }
.mtl-quiz-level { margin-bottom: 16px; font-size: 1.1rem; font-weight: 700; }
.mtl-quiz-result p { color: #666; margin-bottom: 24px; }

.mtl-quiz-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    background: none;
    border: 1px dashed #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-quiz-link:hover { border-color: var(--mtl-gold); color: var(--mtl-gold); }

/* ---- Review Badge ---- */
.mtl-review-badge {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: #fff8e1;
    border: 2px solid var(--mtl-gold);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8b6914;
    cursor: pointer;
    transition: var(--mtl-transition);
}
.mtl-review-badge:hover { background: #fff3cd; }

.mtl-review-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: var(--mtl-radius);
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}
.mtl-review-card p { margin: 4px 0; }

/* ---- Skills Learning Center ---- */
.mtl-skills-bar {
    margin-bottom: 20px;
}
.mtl-skills-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.mtl-skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.mtl-skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    text-align: center;
}
.mtl-skill-card:hover {
    border-color: var(--mtl-gold);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.mtl-skill-card .skill-icon { font-size: 1.5rem; }
.mtl-skill-card .skill-name { font-weight: 700; font-size: 0.9rem; }
.mtl-skill-card .skill-desc { font-size: 0.75rem; color: #888; }
.mtl-skill-card .skill-badge {
    font-size: 0.7rem;
    color: var(--mtl-gold);
    font-weight: 600;
    margin-top: 2px;
}
.mtl-skill-card.locked-skill {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
@media (max-width: 768px) {
    .mtl-skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Accessibility Toolbar ---- */
.mtl-a11y-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.a11y-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.78rem;
    cursor: pointer;
    color: #555;
    transition: all .15s;
}
.a11y-btn:hover { border-color: var(--mtl-blue); }
.a11y-label { font-size: 0.7rem; color: #ccc; margin-left: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Dyslexia-Friendly Font ---- */
.mtl-dyslexia, .mtl-dyslexia * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Arial', sans-serif !important;
    letter-spacing: 0.05em;
    word-spacing: 0.15em;
    line-height: 1.8;
}

/* ---- High Contrast Mode ---- */
.mtl-high-contrast { background: #000 !important; color: #fff !important; }
.mtl-high-contrast .mtl-passage,
.mtl-high-contrast .mtl-level-card,
.mtl-high-contrast .mtl-game-card,
.mtl-high-contrast .mtl-option,
.mtl-high-contrast .mtl-passage { background: #111 !important; border-color: #444 !important; color: #ff0 !important; }
.mtl-high-contrast .mtl-option:hover { border-color: #ff0 !important; }
.mtl-high-contrast .mtl-option.correct { background: #050 !important; border-color: #0f0 !important; color: #0f0 !important; }
.mtl-high-contrast .mtl-option.wrong { background: #500 !important; border-color: #f00 !important; color: #f00 !important; }
.mtl-high-contrast .mtl-check-btn,
.mtl-high-contrast .mtl-next-btn,
.mtl-high-contrast .mtl-next-game-btn { background: #ff0 !important; color: #000 !important; font-weight: 800 !important; }
.mtl-high-contrast button { border-color: #fff !important; }
.mtl-high-contrast .mtl-game-header h2 { color: #ff0 !important; }
.mtl-high-contrast .mtl-level-number { color: #ff0 !important; }
.mtl-high-contrast .mtl-student-bar { background: #111 !important; border-color: #444 !important; }

/* Plan gating badge */
.mtl-plan-badge {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 4px 0;
    padding: 4px 0;
}
