/* Reap433 Bible Trivia — matches client artifact */
.biblical-trivia-page { background: #f7f1e3; }
.biblical-trivia-section { padding: 0; }
.biblical-trivia-container { max-width: 100%; padding: 0; }
#reap433-decks * { box-sizing: border-box; }
  #reap433-decks {
    --bg1: #f7f1e3;
    --bg2: #efe6d2;
    --card: #fffdf8;
    --border: #e2d6bf;
    --ink: #3a2f25;
    --muted: #6b5d4f;
    --faint: #a89a89;
    --good-bg: #eef3e8;
    --good-border: #5b7c4f;
    --good-text: #3f5536;
    --bad-bg: #f7e9e3;
    --bad-border: #a8552c;
    --bad-text: #7a3a1e;
    --note-bg: #f4ecda;

    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
    font-family: Georgia, 'Iowan Old Style', serif;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 56px;
  }

  /* ---------- shared header ---------- */
  #reap433-decks .eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a8552c;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
  }
  #reap433-decks .title {
    font-size: clamp(28px, 6vw, 44px);
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
  }
  #reap433-decks .sub {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    text-align: center;
    max-width: 640px;
  }
  #reap433-decks .header {
    text-align: center;
    margin-bottom: 28px;
    max-width: 640px;
  }

  /* ---------- menu screen ---------- */
  #reap433-decks .deck-grid {
    width: 100%;
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  @media (min-width: 560px) {
    #reap433-decks .deck-grid { grid-template-columns: 1fr 1fr; }
  }
  #reap433-decks .deck-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(58,47,37,0.07);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    padding: 0;
    width: 100%;
    font-family: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  #reap433-decks .deck-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(58,47,37,0.12);
  }
  #reap433-decks .deck-bar {
    height: 6px;
    width: 100%;
  }
  #reap433-decks .deck-body {
    padding: 18px 20px 20px;
  }
  #reap433-decks .deck-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
  }
  #reap433-decks .deck-verse {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 10px;
    font-style: italic;
  }
  #reap433-decks .deck-meta {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--faint);
  }

  /* ---------- gameplay ---------- */
  #reap433-decks .back-link {
    align-self: flex-start;
    width: 100%;
    max-width: 520px;
    margin: 0 0 14px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
  }
  #reap433-decks .back-link:hover { color: var(--ink); }

  #reap433-decks .stats {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: var(--muted);
  }
  #reap433-decks .stats strong { color: var(--ink); }
  #reap433-decks .progress {
    width: 100%;
    max-width: 520px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
  }
  #reap433-decks .progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
  }
  #reap433-decks .card {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(58,47,37,0.07);
    overflow: hidden;
    animation: flipIn 0.35s ease-out;
  }
  @keyframes flipIn {
    from { transform: translateY(6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  #reap433-decks .band {
    color: #fffdf8;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Helvetica Neue', Arial, sans-serif;
  }
  #reap433-decks .band-label {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
  }
  #reap433-decks .band-desc { font-size: 11px; opacity: 0.85; }
  #reap433-decks .body { padding: 24px 24px 20px; }
  #reap433-decks .question {
    font-size: 19px;
    line-height: 1.5;
    margin: 0 0 20px;
    font-weight: 600;
  }
  #reap433-decks .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #reap433-decks .opt {
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--ink);
    font-size: 15px;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }
  #reap433-decks .opt:hover:not(.locked) {
    transform: translateY(-1px);
    border-color: #a8552c;
  }
  #reap433-decks .opt.locked { cursor: default; }
  #reap433-decks .opt.correct {
    background: var(--good-bg);
    border-color: var(--good-border);
    color: var(--good-text);
  }
  #reap433-decks .opt.incorrect {
    background: var(--bad-bg);
    border-color: var(--bad-border);
    color: var(--bad-text);
  }
  #reap433-decks .opt.dim { color: var(--faint); }
  #reap433-decks .opt-letter {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    min-width: 16px;
  }
  #reap433-decks .mark { margin-left: auto; font-size: 12px; }
  #reap433-decks .note {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--note-bg);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5c4d3c;
    display: none;
  }
  #reap433-decks .note.show { display: block; }
  #reap433-decks .note-ref {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  #reap433-decks .next-btn {
    margin-top: 20px;
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: var(--border);
    color: var(--faint);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: default;
    transition: background 0.15s ease, transform 0.08s ease;
  }
  #reap433-decks .next-btn.active {
    background: var(--ink);
    color: #fffdf8;
    cursor: pointer;
  }
  #reap433-decks .next-btn:active.active { transform: scale(0.98); }

  #reap433-decks .final {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(58,47,37,0.07);
    padding: 36px 28px;
    text-align: center;
    animation: flipIn 0.35s ease-out;
  }
  #reap433-decks .final-eyebrow {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a8552c;
    font-weight: 700;
    margin-bottom: 10px;
  }
  #reap433-decks .final-score {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 6px;
  }
  #reap433-decks .final-msg {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.6;
  }
  #reap433-decks .final-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  #reap433-decks .btn-solid,
  #reap433-decks .btn-outline {
    padding: 13px 24px;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.08s ease;
  }
  #reap433-decks .btn-solid {
    border: none;
    background: var(--ink);
    color: #fffdf8;
  }
  #reap433-decks .btn-outline {
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--ink);
  }
  #reap433-decks .btn-solid:active,
  #reap433-decks .btn-outline:active { transform: scale(0.98); }

  @media (prefers-reduced-motion: reduce) {
    #reap433-decks .card, #reap433-decks .final { animation: none; }
    #reap433-decks .opt, #reap433-decks .next-btn,
    #reap433-decks .btn-solid, #reap433-decks .btn-outline,
    #reap433-decks .deck-tile { transition: none; }
  }
