/*
 * Fideograph Theological Quiz — Stylesheet
 * Plugin Version: 1.0.0
 * 
 * This CSS is scoped to operate within WordPress using the
 * page-logical-pathway.php full-viewport template.
 * The WordPress theme provides the site header and footer.
 * The quiz renders inside .fideograph-quiz-wrap.
 */

/* Ensure the quiz fills available viewport height on the pathway template */
.fideograph-quiz-wrap {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}


  :root {
    --parchment: #f5efe0;
    --parchment-deep: #ede3cc;
    --parchment-dark: #d6c9a8;
    --ink: #1a1209;
    --ink-soft: #3b2f1e;
    --ink-muted: #6b5740;
    --gold: #b8933a;
    --gold-light: #d4aa55;
    --gold-dark: #8a6b22;
    --crimson: #8b1a1a;
    --crimson-soft: #a83232;
    --forest: #1e4a2e;
    --forest-soft: #2d6642;
    --sky: #1a3a5c;
    --correct-bg: #e8f5ec;
    --correct-border: #2d6642;
    --wrong-bg: #fdf0ee;
    --wrong-border: #a83232;
    --shadow: 0 4px 24px rgba(26,18,9,0.13);
    --shadow-lg: 0 12px 48px rgba(26,18,9,0.18);
    --disabled-opacity: 0.42;
  }

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

  body {
    background: var(--parchment);
    color: var(--ink);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    min-height: 100vh;
    background-image:
      radial-gradient(ellipse at 20% 0%, rgba(184,147,58,0.10) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 100%, rgba(139,26,26,0.07) 0%, transparent 60%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  }

  /* ── HEADER ── */
  .site-header {
    text-align: center;
    padding: 2.75rem 2rem 2rem;
    border-bottom: 1px solid var(--parchment-dark);
    position: relative;
  }
  .header-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
  }
  .header-rule-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
  .header-rule-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
  .quiz-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    max-width: 680px;
    margin: 0 auto 0.5rem;
  }
  .quiz-subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  /* Stats strip */
  .header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .meta-pill {
    font-family: 'Source Serif 4', serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: var(--parchment-deep);
    border: 1px solid var(--parchment-dark);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
  }

  /* ── MAIN CONTAINER ── */
  .quiz-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
  }

  /* ── LANDING SECTION LABELS ── */
  .section-label {
    font-family: 'Source Serif 4', serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .section-label::after { content: ''; flex: 1; height: 1px; background: var(--parchment-dark); }

  /* ── MODE SELECTOR ── */
  .mode-screen {
    padding: 2rem 0;
    animation: fadeUp 0.5s ease both;
  }
  .landing-intro {
    font-size: 1.02rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    font-style: italic;
    text-align: center;
    line-height: 1.75;
  }

  /* ── MODE CARDS ── */
  .mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.25rem;
  }
  .mode-card {
    background: white;
    border: 1.5px solid var(--parchment-dark);
    border-radius: 3px;
    padding: 1.5rem 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  .mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: left;
  }
  .mode-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .mode-card:hover::before { transform: scaleX(1); }
  .mode-card.selected { border-color: var(--gold); background: #fffbf2; }
  .mode-card.selected::before { transform: scaleX(1); }

  /* SVG icons inside cards */
  .mode-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mode-icon-wrap svg { width: 100%; height: 100%; }
  .mode-card .mode-icon-wrap svg path,
  .mode-card .mode-icon-wrap svg rect,
  .mode-card .mode-icon-wrap svg circle,
  .mode-card .mode-icon-wrap svg line,
  .mode-card .mode-icon-wrap svg polyline { stroke: var(--gold-dark); }

  .mode-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
  }
  .mode-desc { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }

  /* ── CATEGORY GRID ── */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.25rem;
  }
  .cat-card {
    background: white;
    border: 1.5px solid var(--parchment-dark);
    border-radius: 3px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    text-align: left;
  }
  .cat-card:hover:not(.cat-disabled) { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
  .cat-card.cat-selected { border-color: var(--gold); background: #fffbf2; }
  .cat-card.cat-selected::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 3px 0 0 3px;
  }
  .cat-card.cat-disabled {
    opacity: var(--disabled-opacity);
    cursor: not-allowed;
    filter: grayscale(0.3);
  }
  .cat-icon-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .cat-icon-wrap svg { width: 100%; height: 100%; }
  .cat-icon-wrap svg path, .cat-icon-wrap svg rect, .cat-icon-wrap svg circle,
  .cat-icon-wrap svg line, .cat-icon-wrap svg polyline, .cat-icon-wrap svg ellipse { stroke: var(--gold-dark); }
  .cat-card.cat-disabled .cat-icon-wrap svg path,
  .cat-card.cat-disabled .cat-icon-wrap svg rect,
  .cat-card.cat-disabled .cat-icon-wrap svg circle,
  .cat-card.cat-disabled .cat-icon-wrap svg line { stroke: var(--ink-muted); }

  .cat-info {}
  .cat-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 0.15rem;
  }
  .cat-count {
    font-family: 'Source Serif 4', serif;
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
  }
  .cat-coming {
    font-family: 'Source Serif 4', serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: inline-block;
    border: 1px solid var(--parchment-dark);
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    margin-top: 0.2rem;
  }

  /* ── DIFFICULTY ── */
  .difficulty-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
  }
  .diff-btn {
    flex: 1;
    min-width: 120px;
    background: white;
    border: 1.5px solid var(--parchment-dark);
    border-radius: 3px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--ink-soft);
    transition: all 0.18s ease;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
  }
  .diff-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--ink); }
  .diff-btn.diff-selected { border-color: var(--gold); background: #fffbf2; color: var(--gold-dark); font-weight: 600; }
  .diff-btn:disabled { opacity: var(--disabled-opacity); cursor: not-allowed; }
  .diff-label-sub {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-muted);
    font-style: italic;
    margin-top: 0.1rem;
  }
  .diff-btn.diff-selected .diff-label-sub { color: var(--gold-dark); opacity: 0.75; }

  /* ── START BUTTON ── */
  .start-area { text-align: center; }
  .start-btn {
    background: var(--gold-dark);
    color: white;
    border: none;
    padding: 0.9rem 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 16px rgba(138,107,34,0.32);
  }
  .start-btn:hover { background: var(--gold); box-shadow: 0 4px 24px rgba(138,107,34,0.4); transform: translateY(-1px); }
  .start-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; box-shadow: none; }
  .start-hint {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-style: italic;
  }

  /* ── EXIT BUTTON (mid-quiz) ── */
  .exit-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Source Serif 4', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: none;
    border: 1px solid var(--parchment-dark);
    border-radius: 2px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 1.25rem;
  }
  .exit-quiz-btn:hover { border-color: var(--crimson-soft); color: var(--crimson); }

  /* Exit confirmation modal */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,18,9,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s ease;
  }
  .modal-box {
    background: var(--parchment);
    border: 1.5px solid var(--parchment-dark);
    border-radius: 4px;
    padding: 2rem 2.25rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
  }
  .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
  }
  .modal-body { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; font-style: italic; }
  .modal-actions { display: flex; gap: 0.75rem; justify-content: center; }
  .modal-btn {
    padding: 0.6rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.18s;
  }
  .modal-btn-exit { background: var(--crimson); color: white; border: none; }
  .modal-btn-exit:hover { background: var(--crimson-soft); }
  .modal-btn-stay { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--parchment-dark); }
  .modal-btn-stay:hover { border-color: var(--gold); }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* ── PROGRESS BAR ── */
  .quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .progress-info { font-size: 0.85rem; color: var(--ink-muted); font-family: 'Source Serif 4', serif; }
  .progress-bar-track {
    width: 100%;
    height: 4px;
    background: var(--parchment-dark);
    border-radius: 2px;
    margin-bottom: 1.75rem;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 2px;
    transition: width 0.4s ease;
  }
  .timer-badge {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--crimson);
    background: var(--wrong-bg);
    border: 1px solid var(--wrong-border);
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s;
  }
  .timer-badge.urgent { animation: pulse 0.6s ease infinite; }
  .mode-badge {
    font-family: 'Source Serif 4', serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
  }

  /* ── QUESTION CARD ── */
  .question-card {
    background: white;
    border: 1px solid var(--parchment-dark);
    border-radius: 4px;
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow);
    animation: fadeUp 0.35s ease both;
    position: relative;
  }
  .question-card::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    border-radius: 0 2px 2px 0;
  }
  .claim-label {
    font-family: 'Source Serif 4', serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .claim-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--parchment-dark);
  }
  .question-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 1.75rem;
  }
  .claim-block {
    background: var(--parchment);
    border-left: 3px solid var(--gold);
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.75rem;
    font-style: italic;
    color: var(--ink-soft);
    border-radius: 0 2px 2px 0;
    font-size: 1rem;
  }

  /* ── ANSWER OPTIONS ── */
  .options-grid {
    display: grid;
    gap: 0.75rem;
  }
  .option-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: var(--parchment);
    border: 1.5px solid var(--parchment-dark);
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.5;
    transition: all 0.18s ease;
    width: 100%;
  }
  .option-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: #fffbf2;
    color: var(--ink);
  }
  .option-btn:disabled { cursor: default; }
  .option-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-dark);
    min-width: 20px;
    margin-top: 1px;
  }
  .option-btn.correct {
    border-color: var(--correct-border);
    background: var(--correct-bg);
    color: var(--forest);
  }
  .option-btn.correct .option-letter { color: var(--forest-soft); }
  .option-btn.wrong {
    border-color: var(--wrong-border);
    background: var(--wrong-bg);
    color: var(--crimson);
    opacity: 0.75;
  }
  .option-btn.wrong .option-letter { color: var(--crimson-soft); }
  .option-btn.selected-wrong { opacity: 1; }

  /* ── EXPLANATION PANEL ── */
  .explanation-panel {
    margin-top: 1.5rem;
    border: 1px solid var(--parchment-dark);
    border-radius: 3px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
  }
  .explanation-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.15rem;
    background: var(--forest);
    color: white;
    font-family: 'Source Serif 4', serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .explanation-header.wrong-header { background: var(--crimson); }
  .exp-layer {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--parchment-dark);
  }
  .exp-layer:last-child { border-bottom: none; }
  .exp-layer-title {
    font-family: 'Source Serif 4', serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .exp-layer-title::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--gold);
  }
  .exp-text { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.65; }
  .exp-text em { color: var(--gold-dark); font-style: italic; }
  .scripture-ref {
    display: inline-block;
    font-family: 'Source Serif 4', serif;
    font-size: 0.78rem;
    color: var(--sky);
    background: rgba(26,58,92,0.07);
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
    margin: 0 0.2rem;
  }

  .next-btn {
    margin-top: 1.25rem;
    width: 100%;
    background: var(--gold-dark);
    color: white;
    border: none;
    padding: 0.85rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 2px;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
  }
  .next-btn:hover { background: var(--gold); }

  /* ── RESULTS SCREEN ── */
  .results-screen {
    animation: fadeUp 0.5s ease both;
    text-align: center;
  }
  .results-emblem {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 4px 24px rgba(184,147,58,0.35);
  }
  .score-display {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  .score-label {
    font-family: 'Source Serif 4', serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
  }
  .tier-banner {
    display: inline-block;
    background: var(--parchment-deep);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    padding: 0.6rem 1.75rem;
    margin-bottom: 1.75rem;
  }
  .tier-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
  }
  .tier-desc {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-style: italic;
  }
  .results-breakdown {
    background: white;
    border: 1px solid var(--parchment-dark);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    box-shadow: var(--shadow);
  }
  .breakdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ink);
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--parchment-dark);
  }
  .breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--parchment);
    font-size: 0.93rem;
  }
  .breakdown-item:last-child { border-bottom: none; }
  .breakdown-topic { color: var(--ink-soft); }
  .breakdown-result { font-weight: 600; }
  .breakdown-result.correct-r { color: var(--forest-soft); }
  .breakdown-result.wrong-r { color: var(--crimson-soft); }
  .results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }
  .action-btn {
    padding: 0.75rem 1.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
  }
  .action-btn-primary {
    background: var(--gold-dark);
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(138,107,34,0.3);
  }
  .action-btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
  .action-btn-secondary {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
  }
  .action-btn-secondary:hover { background: var(--parchment-deep); }
  .share-text {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-style: italic;
    margin-top: 0.75rem;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* ── DECORATIVE DIVIDER ── */
  .ornament {
    text-align: center;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    margin: 2rem 0 1.5rem;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 540px) {
    .question-card { padding: 1.5rem 1.15rem; }
    .mode-cards { grid-template-columns: 1fr; }
  }

  .hidden { display: none !important; }

  /* Feedback flash */
  .feedback-flash {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 3px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 1.8s both;
    z-index: 100;
  }
  .feedback-correct { background: var(--forest); color: white; }
  .feedback-wrong { background: var(--crimson); color: white; }
  @keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

  .question-number-large {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-style: italic;
    margin-bottom: 0.5rem;
  }
