/* English Focus Daily — feature styles (Word of Day, Quiz, Streak banner)
   Mobile-first. Modern, colorful, Duolingo-inspired. */

:root {
    --efd-primary: #C8553D;
    --efd-primary-dark: #A8432F;
    --efd-secondary: #1E3A5F;
    --efd-bg: #FFFCF7;
    --efd-surface: #FFFFFF;
    --efd-soft: #F4E5D9;
    --efd-soft2: #FAF0E6;
    --efd-text: #1A1A1A;
    --efd-text-muted: #5C5C5C;
    --efd-text-light: #8A8A8A;
    --efd-border: #E8E0D4;
    --efd-success: #4A7C59;
    --efd-danger: #C8553D;
    --efd-warn: #E1A33B;
    --efd-radius: 16px;
    --efd-radius-sm: 8px;
    --efd-shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --efd-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --efd-shadow-lg: 0 20px 50px rgba(0,0,0,0.10);
}

.efd-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    color: var(--efd-text);
}

/* ============================================================
   WORD OF THE DAY — single page
   ============================================================ */
.word-breadcrumb {
    font-size: 0.8125rem;
    color: var(--efd-text-light);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.word-breadcrumb a { color: var(--efd-secondary); }
.word-breadcrumb a:hover { color: var(--efd-primary); }

.word-hero {
    background: linear-gradient(135deg, var(--efd-soft) 0%, var(--efd-soft2) 100%);
    border-radius: var(--efd-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.word-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--efd-primary) 0%, transparent 70%);
    opacity: 0.12;
    border-radius: 50%;
}

.word-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--efd-primary);
    margin-bottom: 1rem;
}
.word-emoji { font-size: 1.25rem; }
.word-dot {
    display: inline-block;
    width: 3px; height: 3px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

.word-level {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
}
.word-level-beginner    { background: #E0EDDB; color: #2E5C2E; }
.word-level-intermediate{ background: #FBF1D6; color: #7A5D1F; }
.word-level-advanced    { background: #F3E0E7; color: #7A3D5B; }

.word-big {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--efd-text);
}
.word-ipa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: -apple-system, monospace;
    font-size: 1rem;
    color: var(--efd-text-muted);
    box-shadow: var(--efd-shadow-sm);
}
.word-pos { color: var(--efd-text-light); font-size: 0.875rem; }

/* Word body */
.word-body { padding: 0 0 1rem; }
.word-meaning h2,
.word-examples h2,
.word-related h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--efd-text);
}
.word-meaning p { line-height: 1.7; color: var(--efd-text-muted); }

.example-card {
    display: flex;
    gap: 1rem;
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: var(--efd-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--efd-shadow-sm);
}
.example-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: var(--efd-primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
}
.example-en {
    font-size: 1.0625rem;
    color: var(--efd-text);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.word-callout {
    background: var(--efd-soft2);
    border-left: 4px solid var(--efd-primary);
    border-radius: 0 var(--efd-radius) var(--efd-radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.word-callout-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--efd-primary);
    margin-bottom: 0.5rem;
}
.word-callout p { margin: 0; line-height: 1.65; }

.word-actions {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.btn-save-word, .btn-share-word {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
}
.btn-save-word {
    background: var(--efd-primary);
    color: white;
    border: none;
}
.btn-save-word:hover { background: var(--efd-primary-dark); transform: translateY(-2px); }
.btn-save-word.saved { background: var(--efd-success); }
.btn-save-word.saved::after { content: ' ✓'; }
.btn-share-word {
    background: #25D366;
    color: white;
}
.btn-share-word:hover { background: #1FAE54; color: white; transform: translateY(-2px); }

/* Word related */
.word-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .word-related-grid { grid-template-columns: repeat(4, 1fr); }
}
.word-related-card {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: var(--efd-radius);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
    color: var(--efd-text);
}
.word-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efd-shadow-md);
    color: var(--efd-text);
}
.word-related-emoji { font-size: 1.75rem; }
.word-related-title { font-weight: 600; font-size: 0.9375rem; }
.word-related-hi {
    font-size: 0.8125rem;
    color: var(--efd-text-light);
}

/* ============================================================
   QUIZ PLAYER
   ============================================================ */
.quiz-hero { padding: 1.5rem 0; text-align: center; }
.quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--efd-primary);
    margin-bottom: 0.75rem;
}
.quiz-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}
.quiz-lead {
    color: var(--efd-text-muted);
    font-size: 1.0625rem;
    max-width: 32em;
    margin: 0 auto 1rem;
}
.quiz-meta {
    color: var(--efd-text-light);
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-player {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: var(--efd-radius);
    box-shadow: var(--efd-shadow-md);
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    min-height: 380px;
    position: relative;
}
.quiz-screen { display: none; }
.quiz-screen.active { display: block; }

.quiz-start { text-align: center; padding: 2rem 0; }
.quiz-start-icon { font-size: 4rem; margin-bottom: 1rem; }
.quiz-start h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}
.quiz-start p { color: var(--efd-text-muted); margin: 0 0 1.5rem; }

.btn-quiz-start, .btn-quiz-next, .btn-quiz-retry {
    background: var(--efd-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 12px rgba(200, 85, 61, 0.25);
}
.btn-quiz-start:hover, .btn-quiz-next:hover, .btn-quiz-retry:hover {
    background: var(--efd-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 85, 61, 0.35);
}
.btn-quiz-start:active, .btn-quiz-next:active, .btn-quiz-retry:active {
    transform: translateY(0);
}

.quiz-progress {
    margin-bottom: 1.5rem;
}
.quiz-progress-bar {
    height: 8px;
    background: var(--efd-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.quiz-progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--efd-primary) 0%, var(--efd-warn) 100%);
    transition: width 400ms ease;
}
.quiz-progress-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--efd-text-light);
    font-weight: 600;
}

.quiz-question-text {
    font-family: 'Lora', serif;
    font-size: 1.375rem;
    line-height: 1.35;
    margin: 0 0 1.5rem;
}
.quiz-options { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.quiz-option {
    background: white;
    border: 2px solid var(--efd-border);
    border-radius: var(--efd-radius);
    padding: 0.875rem 1.125rem;
    text-align: left;
    font-size: 1rem;
    color: var(--efd-text);
    cursor: pointer;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}
.quiz-option:hover:not(:disabled) {
    border-color: var(--efd-primary);
    transform: translateY(-1px);
}
.quiz-option:disabled { cursor: default; opacity: 0.85; }
.quiz-option.correct {
    background: #E8F5E9;
    border-color: var(--efd-success);
    color: #1B5E20;
}
.quiz-option.wrong {
    background: #FFEBEE;
    border-color: var(--efd-danger);
    color: #B71C1C;
}
.quiz-option-letter {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--efd-border);
    color: var(--efd-text);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.quiz-option.correct .quiz-option-letter { background: var(--efd-success); color: white; }
.quiz-option.wrong .quiz-option-letter { background: var(--efd-danger); color: white; }

.quiz-explanation {
    background: var(--efd-soft2);
    border-left: 4px solid var(--efd-primary);
    border-radius: 0 var(--efd-radius-sm) var(--efd-radius-sm) 0;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}
.quiz-explanation.show { display: block; }
.quiz-explanation strong { color: var(--efd-primary); }

.quiz-result { text-align: center; padding: 1.5rem 0; }
.quiz-result-emoji { font-size: 5rem; margin-bottom: 0.5rem; }
.quiz-result-headline {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    margin: 0 0 1rem;
}
.quiz-result-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: 'Lora', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
.quiz-correct-count { font-size: 3.5rem; color: var(--efd-primary); }
.quiz-total-count { font-size: 1.5rem; color: var(--efd-text-light); }
.quiz-result-message { color: var(--efd-text-muted); margin-bottom: 1.5rem; }
.quiz-result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-quiz-share {
    background: #25D366;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}
.btn-quiz-share:hover { background: #1FAE54; color: white; transform: translateY(-2px); }

.quiz-related { margin-top: 3rem; }
.quiz-related h2 { font-family: 'Lora', serif; font-size: 1.5rem; margin-bottom: 1rem; }
.quiz-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .quiz-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.quiz-related-card {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: var(--efd-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--efd-text);
    transition: all 200ms ease;
}
.quiz-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efd-shadow-md);
    color: var(--efd-text);
}
.quiz-related-emoji { font-size: 2rem; }
.quiz-related-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }

.quiz-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--efd-soft2);
    border-radius: var(--efd-radius);
    color: var(--efd-text-muted);
}

/* ============================================================
   ARCHIVE PAGES (Words / Quizzes / Corrections list)
   ============================================================ */
.efd-archive-main { max-width: 1100px; }

.archive-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--efd-border);
    margin-bottom: 2rem;
}
.archive-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--efd-primary);
    margin-bottom: 0.75rem;
}
.archive-hero h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.archive-hero p {
    color: var(--efd-text-muted);
    max-width: 38em;
    margin: 0 auto;
    font-size: 1.0625rem;
}

/* Word archive grid */
.word-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.word-archive-card {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--efd-text);
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--efd-shadow-sm);
}
.word-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--efd-shadow-md);
    color: var(--efd-text);
    border-color: transparent;
}
.word-archive-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.word-archive-emoji {
    font-size: 1.75rem;
    line-height: 1;
}
.word-archive-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
}
.word-archive-ipa {
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--efd-text-muted);
}
.word-archive-excerpt {
    font-size: 0.875rem;
    color: var(--efd-text-muted);
    line-height: 1.5;
    flex: 1;
    margin-top: 0.25rem;
}
.word-archive-cta {
    color: var(--efd-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Quiz / Correction archive grid (uses same .word-archive-* base + extras) */
.quiz-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.quiz-archive-card {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--efd-text);
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--efd-shadow-sm);
}
.quiz-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--efd-shadow-md);
    color: var(--efd-text);
    border-color: transparent;
}
.quiz-archive-emoji {
    font-size: 1.75rem;
    line-height: 1;
}
.quiz-archive-title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.quiz-archive-excerpt {
    font-size: 0.875rem;
    color: var(--efd-text-muted);
    line-height: 1.5;
    flex: 1;
}
.quiz-archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--efd-text-light);
    font-weight: 600;
}

/* Pagination */
.archive-pagination {
    text-align: center;
    margin: 2rem 0 1rem;
}
.archive-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    margin: 0 0.15rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--efd-border);
    color: var(--efd-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}
.archive-pagination .page-numbers.current {
    background: var(--efd-primary);
    color: white;
    border-color: var(--efd-primary);
}
.archive-pagination .page-numbers:hover:not(.current) {
    border-color: var(--efd-primary);
    color: var(--efd-primary);
}

.archive-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--efd-soft2);
    border-radius: 16px;
    color: var(--efd-text-muted);
}

/* ============================================================
   CORRECTION single page (wrong vs correct pairs)
   ============================================================ */
.correction-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.correction-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin: 0.5rem 0 0.75rem;
}
.correction-lead {
    color: var(--efd-text-muted);
    font-size: 1.0625rem;
    max-width: 32em;
    margin: 0 auto;
}

.correction-pairs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.correction-pair {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    box-shadow: var(--efd-shadow-sm);
}
.correction-pair-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--efd-primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.correction-pair-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.correction-wrong, .correction-correct {
    border-radius: 12px;
    padding: 0.75rem 1rem;
}
.correction-wrong {
    background: #FFEBEE;
    border-left: 4px solid var(--efd-danger);
}
.correction-correct {
    background: #E8F5E9;
    border-left: 4px solid var(--efd-success);
}
.correction-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.correction-wrong .correction-label { color: var(--efd-danger); }
.correction-correct .correction-label { color: var(--efd-success); }
.correction-wrong p {
    color: #B71C1C;
    margin: 0;
    text-decoration: line-through;
    font-size: 1rem;
}
.correction-correct p {
    color: #1B5E20;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}
.correction-why {
    background: var(--efd-soft2);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}
.correction-label-small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--efd-primary);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.correction-why p { margin: 0; color: var(--efd-text-muted); font-size: 0.9375rem; line-height: 1.5; }

/* ============================================================
   HOMEPAGE FEATURE STRIP (Word + Quiz + Correction cards)
   ============================================================ */
.efd-features-strip {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}
.efd-features-header { text-align: center; margin-bottom: 1.5rem; }
.efd-features-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--efd-primary);
    margin-bottom: 0.5rem;
}
.efd-features-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    line-height: 1.15;
}
.efd-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 900px) {
    .efd-features-grid { grid-template-columns: repeat(3, 1fr); }
}

.efd-feature-card {
    background: white;
    border: 1px solid var(--efd-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--efd-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
    position: relative;
    overflow: hidden;
}
.efd-feature-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}
.efd-feature-word::before    { background: radial-gradient(circle, #C8553D, transparent 70%); }
.efd-feature-quiz::before    { background: radial-gradient(circle, #E1A33B, transparent 70%); }
.efd-feature-correction::before { background: radial-gradient(circle, #4A7C59, transparent 70%); }

.efd-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--efd-shadow-md);
}

.efd-feature-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-text-muted);
}
.efd-feature-eyebrow > span:first-child { font-size: 1.125rem; }
.efd-feature-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0.25rem 0 0.5rem;
    color: var(--efd-text);
}
.efd-feature-ipa {
    font-family: monospace;
    color: var(--efd-text-muted);
    font-size: 0.9375rem;
}
.efd-feature-hint {
    font-size: 0.95rem;
    color: var(--efd-text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
    font-style: italic;
}
.efd-feature-excerpt {
    color: var(--efd-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0.25rem 0 0.5rem;
    flex: 1;
}
.efd-feature-meta {
    display: flex;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--efd-text-light);
    font-weight: 600;
}

.efd-feature-correction-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem 0;
}
.efd-feature-wrong, .efd-feature-correct {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-weight: 500;
}
.efd-feature-wrong   { background: #FFEBEE; color: #B71C1C; text-decoration: line-through; }
.efd-feature-correct { background: #E8F5E9; color: #1B5E20; font-weight: 600; }

.efd-feature-cta {
    margin-top: auto;
    color: var(--efd-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding-top: 0.5rem;
    text-decoration: none;
    display: inline-block;
}
.efd-feature-cta:hover { color: var(--efd-primary-dark); }
.efd-feature-cta-primary {
    background: var(--efd-primary);
    color: white !important;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    text-align: center;
    margin-top: 0.5rem;
}
.efd-feature-cta-primary:hover { background: var(--efd-primary-dark); color: white; }

/* ============================================================
   MOBILE-FIRST OVERRIDES
   Target: ~95% of audience on mobile devices (≤720px).
   Fixes: site title wrap, hero size, touch targets, section padding.
   ============================================================ */
@media (max-width: 720px) {
    /* Body — minimum 16px to prevent iOS auto-zoom on input focus */
    html { font-size: 16px; }
    body { font-size: 16px; }

    /* Site title — prevent ugly 3-line wrap of "English Focus Daily" */
    .hostinger-ai-site-title,
    .wp-block-site-title,
    h1.wp-block-site-title,
    .hostinger-ai-site-title a,
    .wp-block-site-title a {
        font-size: 1.0625rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        font-weight: 700;
    }
    /* Tighten header bar padding */
    .hostinger-ai-menu .hostinger-ai-menu-wrapper {
        padding-top: var(--wp--preset--spacing--30) !important;
        padding-bottom: var(--wp--preset--spacing--30) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.6rem !important;
        grid-template-columns: none !important;
    }

    /* Mobile header order: [hamburger] [title], left-aligned */
    .hostinger-ai-menu-wrapper > .wp-block-group:first-child {
        order: 2;
        flex: 1 1 auto;
    }
    .hostinger-ai-menu-wrapper > .hostinger-ai-site-navigation-wrapper,
    .hostinger-ai-menu-wrapper .hostinger-ai-site-navigation-wrapper {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start !important;
    }
    .hostinger-ai-site-navigation-wrapper > .wp-block-navigation {
        justify-content: flex-start !important;
    }

    /* Replace the default hamburger SVG with 3-line CSS hamburger */
    .wp-block-navigation__responsive-container-open {
        position: relative;
        width: 32px;
        height: 32px;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        color: var(--efd-text, #1A1A1A) !important;
    }
    .wp-block-navigation__responsive-container-open svg { display: none !important; }
    .wp-block-navigation__responsive-container-open::before {
        content: '';
        position: absolute;
        top: 9px;
        left: 6px;
        right: 6px;
        height: 2.5px;
        background: currentColor;
        border-radius: 2px;
        box-shadow:
            0 6px 0 currentColor,
            0 12px 0 currentColor;
    }

    /* Hero h1 across Elementor + word/quiz/correction templates */
    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 1.875rem !important;
        line-height: 1.15 !important;
    }
    .word-big {
        font-size: clamp(2rem, 9vw, 2.5rem) !important;
    }
    .quiz-title,
    .correction-title,
    .article-title,
    .archive-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    .archive-hero p,
    .quiz-lead,
    .correction-lead {
        font-size: 0.9375rem !important;
    }

    /* Word hero box - tighter on mobile */
    .word-hero {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .word-ipa {
        font-size: 0.875rem !important;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.4rem 0.75rem !important;
    }

    /* Touch targets — minimum 44px tall for all clickable elements */
    .btn-primary, .btn-secondary, .btn-ghost,
    .btn-save-word, .btn-share-word,
    .btn-quiz-start, .btn-quiz-next, .btn-quiz-retry, .btn-quiz-share,
    .efd-feature-cta-primary,
    .filter-chip,
    a.elementor-button-link,
    .archive-pagination .page-numbers {
        min-height: 44px;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Quiz options — bigger tap area on mobile */
    .quiz-option {
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        min-height: 56px;
    }
    .quiz-question-text {
        font-size: 1.125rem !important;
    }
    .quiz-player {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }

    /* Archive grids — single column on mobile, tighter gap */
    .word-archive-grid,
    .quiz-archive-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .word-archive-card,
    .quiz-archive-card {
        padding: 1rem !important;
    }
    .word-archive-title { font-size: 1.25rem !important; }
    .quiz-archive-title { font-size: 1.0625rem !important; }

    /* Example cards — readable on small screens */
    .example-card {
        padding: 0.875rem 1rem !important;
        gap: 0.75rem !important;
    }
    .example-num {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    .example-en {
        font-size: 0.9375rem !important;
        line-height: 1.45;
    }
    .example-hi {
        font-size: 0.875rem !important;
    }

    /* Word callout */
    .word-callout {
        padding: 1rem !important;
        margin: 1.25rem 0 !important;
    }

    /* Word actions buttons - stacked on mobile */
    .word-actions {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    .btn-save-word, .btn-share-word {
        width: 100%;
        justify-content: center;
    }

    /* Related words — tighter grid */
    .word-related-grid {
        gap: 0.5rem !important;
    }
    .word-related-card {
        padding: 0.75rem !important;
    }

    /* Correction pairs — more breathing room */
    .correction-pair {
        padding: 1rem !important;
        flex-direction: column;
        gap: 0.75rem !important;
    }
    .correction-pair-num {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    .correction-wrong p,
    .correction-correct p {
        font-size: 0.9375rem;
    }

    /* Section padding overall — tighter on mobile */
    .efd-main {
        padding: 1rem !important;
    }
    .archive-hero {
        padding: 1.5rem 0 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Features strip header */
    .efd-features-strip {
        margin: 1.5rem auto !important;
        padding: 0 1rem !important;
    }
    .efd-features-title {
        font-size: 1.5rem !important;
    }
    .efd-feature-card {
        padding: 1.25rem !important;
    }
    .efd-feature-title {
        font-size: 1.25rem !important;
    }

    /* Breadcrumb — keep on one line */
    .word-breadcrumb {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    .word-breadcrumb span:last-child {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 50vw;
    }
}

/* Tiny phones (≤380px — older devices, smaller iPhones) */
@media (max-width: 380px) {
    .hostinger-ai-site-title,
    .wp-block-site-title,
    h1.wp-block-site-title,
    .hostinger-ai-site-title a,
    .wp-block-site-title a {
        font-size: 1rem !important;
    }
    .word-big {
        font-size: 2rem !important;
    }
}

/* Confetti effect (subtle, no dependencies) */
@keyframes pop-in {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.quiz-result.active .quiz-result-emoji,
.quiz-result.active .quiz-result-headline {
    animation: pop-in 500ms ease-out both;
}
.quiz-result.active .quiz-result-headline { animation-delay: 100ms; }
