/* Christian Faith pack ("Bible Adventures") — set C: memoryverse.
 * Everything is scoped under .g-memoryverse. */

/* =========================================================== Memory Verses */
.g-memoryverse {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; min-height: 260px;
  padding: 10px 10px 16px; overflow: hidden;
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.65), transparent 55%),
    linear-gradient(180deg, #ffd9e2 0%, #e9d5ff 50%, #b9a2f0 100%);
}
.g-memoryverse .mv-glow { position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background: radial-gradient(rgba(255,255,255,.8) 1.2px, transparent 1.6px) 0 0 / 36px 36px,
    radial-gradient(rgba(255,182,206,.7) 1.4px, transparent 1.8px) 18px 18px / 36px 36px; }

/* --- My Verses strip */
.g-memoryverse .mv-strip { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.g-memoryverse .mv-chip, .g-memoryverse .mv-jbtn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.8); color: #3b2470; font-size: 15px; font-weight: 700; box-shadow: 0 2px 0 rgba(60,30,110,.15);
}
.g-memoryverse .mv-chip b { font-size: 16px; }
.g-memoryverse .mv-lbl { font-weight: 600; font-size: 14px; }
.g-memoryverse .mv-chip.streak { background: #fff1d6; }
.g-memoryverse .mv-jbtn { background: #6b3fd1; color: #fff; cursor: pointer; min-height: 40px; padding: 4px 14px; font-size: 16px; }
.g-memoryverse .mv-jbtn .mv-lbl { font-weight: 800; }

/* --- verse card (a little scroll) */
.g-memoryverse .mv-card {
  position: relative; z-index: 2; width: min(94%, 660px); padding: 26px 26px 14px; border-radius: 16px; text-align: center; color: #3d2b0c;
  background: linear-gradient(180deg, #fffdf4, #f6e7c6); box-shadow: 0 0 0 3px #e3c48a, 0 14px 28px rgba(70,30,110,.28);
}
.g-memoryverse .mv-card::before, .g-memoryverse .mv-card::after { content: ''; position: absolute; top: -7px; bottom: -7px; width: 16px; border-radius: 9px;
  background: linear-gradient(90deg, #a86b32, #e0a861, #a86b32); }
.g-memoryverse .mv-card::before { left: -8px; } .g-memoryverse .mv-card::after { right: -8px; }
.g-memoryverse .mv-card.drop-over { box-shadow: 0 0 0 4px #ffd93d, 0 14px 28px rgba(70,30,110,.3); }
.g-memoryverse .mv-card.built { animation: correctPop .6s; box-shadow: 0 0 0 4px #22c983, 0 0 30px rgba(126,240,180,.8); }
.a11y-calm .g-memoryverse .mv-card.built { animation: none; }
.g-memoryverse .mv-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  background: #6b3fd1; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.g-memoryverse .mv-words { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 4px;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.2; font-size: clamp(20px, 5vw, 30px); }
.g-memoryverse .mv-card.len-s .mv-words { font-size: clamp(28px, 8vw, 44px); gap: 10px 8px; }
.g-memoryverse .mv-card.len-l .mv-words { font-size: clamp(17px, 4.2vw, 24px); }
.g-memoryverse .mv-card.len-xl .mv-words { font-size: clamp(15px, 3.7vw, 21px); gap: 4px 3px; }
.g-memoryverse .mv-w { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 2px 4px; border-radius: 8px;
  border-bottom: 4px solid transparent; transition: background .2s, transform .2s; cursor: pointer; }
.g-memoryverse .mv-wp { font-style: normal; font-size: 1.15em; line-height: 1.1; }
/* lit = being read: highlight + thick underline + lift (never colour alone) */
.g-memoryverse .mv-w.lit { background: #ffe58a; border-bottom-color: #c2410c; transform: translateY(-3px) scale(1.08); box-shadow: 0 0 0 2px #fff3c4; }
.a11y-calm .g-memoryverse .mv-w.lit { transform: none; }
.g-memoryverse .mv-w.read { color: #3d2b0c; }
.g-memoryverse .mv-w.tapped { background: rgba(126,240,180,.35); }
.g-memoryverse .mv-w.nudge { animation: mvNudge .5s; }
@keyframes mvNudge { 30% { transform: translateY(-6px) scale(1.12); } 60% { transform: translateY(0) scale(1); } }
.g-memoryverse .mv-blank, .g-memoryverse .mv-slot {
  display: inline-flex; align-items: flex-end; justify-content: center; min-width: calc(var(--ch, 4) * .62em + 14px); min-height: 1.35em;
  border-radius: 8px; border-bottom: 4px dashed #c98a2b; background: rgba(255,255,255,.55); padding: 2px 4px; }
.g-memoryverse .mv-blank.next, .g-memoryverse .mv-slot.next { border-bottom-style: solid; border-bottom-color: #e8590c; background: rgba(255,214,120,.45);
  box-shadow: 0 0 0 3px #ffd166; animation: hintGlow 1.4s ease-in-out infinite; }
.a11y-calm .g-memoryverse .mv-blank.next, .a11y-calm .g-memoryverse .mv-slot.next { animation: none; }
.g-memoryverse .mv-w.filled { background: rgba(126,240,180,.35); border-bottom: 4px solid #22c983; }
.g-memoryverse .mv-cue { color: #a9824a; font-weight: 700; }
.g-memoryverse .mv-slot.full { border-bottom: 4px solid transparent; background: none; box-shadow: none; animation: correctPop .35s; flex-direction: column; align-items: center; }
.a11y-calm .g-memoryverse .mv-slot.full { animation: none; }
.g-memoryverse .mv-w.cue .mv-wt { color: #a9824a; }
.g-memoryverse .mv-w.heard { background: rgba(126,240,180,.4); }
.g-memoryverse .mv-ref { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
  background: #f1e6ff; color: #5a2fc0; font-weight: 800; font-size: clamp(15px, 3.8vw, 19px); transition: background .2s; }
.g-memoryverse .mv-ref.lit { background: #ffe58a; color: #7a2e00; box-shadow: 0 0 0 3px #fff3c4; }
.g-memoryverse .mv-ref.asking { background: #fff4d6; }
.g-memoryverse .mv-ref .mv-cite { display: inline-flex; gap: 6px; align-items: flex-end; }
.g-memoryverse .mv-ref .mv-slot { font-size: clamp(15px, 3.8vw, 19px); min-height: 1.6em; }
.g-memoryverse .mv-pic { font-size: 1.3em; }

/* --- below the card: controls, answer choices, tiles */
.g-memoryverse .mv-below { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 660px); }
.g-memoryverse .mv-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.g-memoryverse .mv-btn { min-height: 72px; min-width: 130px; padding: 10px 22px; border-radius: 22px; font-size: clamp(19px, 4.8vw, 24px); font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1ecff); color: #2c1f55; box-shadow: 0 5px 0 rgba(43,27,79,.25); }
.g-memoryverse .mv-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(43,27,79,.25); }
.g-memoryverse .mv-btn.go { background: linear-gradient(180deg, #7ef0b4, #22c983); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.g-memoryverse .mv-btn.mic.on { background: linear-gradient(180deg, #ffd1dc, #ff7eb6); animation: hintGlow 1s ease-in-out infinite; }
.a11y-calm .g-memoryverse .mv-btn.mic.on { animation: none; }
.g-memoryverse .mv-btn[hidden] { display: none; }
.g-memoryverse .mv-note { font-weight: 700; color: #3b2470; background: rgba(255,255,255,.75); padding: 6px 14px; border-radius: 14px; }
.g-memoryverse .mv-note:empty { display: none; }
.g-memoryverse .mv-opts { width: 100%; display: flex; justify-content: center; }
.choices.g-memoryverse-ch { max-width: 560px; }
.choices.g-memoryverse-ch .choice { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 5.2vw, 28px); overflow-wrap: anywhere; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; }
.choices.g-memoryverse-ch.young .choice { min-height: 108px; font-size: clamp(22px, 6vw, 30px); }
.choices.g-memoryverse-ch .mv-op-pic { font-size: 1.6em; line-height: 1.1; font-family: initial; }
.choices.g-memoryverse-ch.refs .choice { flex-direction: row; gap: 6px; font-family: inherit; font-size: clamp(17px, 4.4vw, 22px); }
.g-memoryverse .mv-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 80px; width: 100%; }
.g-memoryverse .mv-tile {
  display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 72px; padding: 6px 16px;
  border-radius: 18px; background: linear-gradient(180deg, #fff, #f1ecff); box-shadow: 0 5px 0 rgba(43,27,79,.25); cursor: grab; user-select: none;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700; color: #2c1f55; font-size: clamp(20px, 5vw, 27px);
}
.g-memoryverse .mv-tray.young .mv-tile { min-width: 96px; min-height: 96px; font-size: clamp(24px, 6.5vw, 32px); }
.g-memoryverse .mv-tile.picked { outline: 4px solid #ffd93d; transform: translateY(-4px); }
body.a11y-motor .g-memoryverse .mv-tile, body.a11y-lowvision .g-memoryverse .mv-tile { min-width: 96px; min-height: 92px; }
body.a11y-motor .g-memoryverse .mv-tray { gap: 18px; }
body.a11y-lowvision .g-memoryverse .mv-card { box-shadow: 0 0 0 4px #1b1040; }
body.a11y-lowvision .g-memoryverse .mv-tile, body.a11y-lowvision .g-memoryverse .mv-btn { outline: 3px solid #1b1040; }
body.a11y-lowvision .g-memoryverse .mv-cue { color: #6b4a14; }

/* --- young readers: bigger words and pictures */
.g-memoryverse.young .mv-words { gap: 12px 10px; }
.g-memoryverse.young .mv-w { padding: 4px 8px; }

/* --- celebration card */
.g-memoryverse .mv-party { position: absolute; z-index: 8; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; border-radius: 24px; background: rgba(255,250,236,.96); box-shadow: 0 0 0 4px #ffd166, 0 16px 36px rgba(60,20,100,.35); text-align: center; }
.g-memoryverse .mv-party-head { font-size: clamp(28px, 7.5vw, 42px); font-weight: 800; color: #5a2fc0; }
.g-memoryverse .mv-party-card { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 560px; padding: 14px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #fffdf4, #f6e7c6); box-shadow: 0 0 0 3px #e3c48a; color: #3d2b0c; max-height: 50%; overflow: auto; }
.g-memoryverse .mv-party-pic { font-size: 44px; }
.g-memoryverse .mv-party-txt { margin: 0; font-family: Georgia, serif; font-weight: 700; font-size: clamp(18px, 4.6vw, 25px); line-height: 1.3; }
.g-memoryverse .mv-party-cite { color: #5a2fc0; }
.g-memoryverse .mv-party-stars { font-size: clamp(20px, 5vw, 28px); font-weight: 800; color: #3b2470; }

/* --- journal (opens in a modal) */
.modal.g-memoryverse.mv-jmodal { width: min(620px, 100%); padding: 22px 16px 18px; background: #fffaf0; }
.mv-journal h2 { margin: 0 0 4px; color: #5a2fc0; text-align: center; }
.mv-journal .mv-jhelp { margin: 0 0 10px; text-align: center; color: #5b4a7a; font-size: 14px; }
.mv-journal .mv-jsec h3 { margin: 14px 0 8px; font-size: 18px; color: #3b2470; }
.mv-journal .mv-jcard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; break-inside: avoid;
  background: linear-gradient(180deg, #fffdf4, #f6e7c6); box-shadow: 0 0 0 2px #e3c48a; }
.mv-journal .mv-jpic { font-size: 30px; line-height: 1; }
.mv-journal .mv-jbody { flex: 1; min-width: 0; }
.mv-journal .mv-jtxt { margin: 0 0 4px; font-family: Georgia, serif; font-weight: 700; font-size: 17px; line-height: 1.3; color: #3d2b0c; }
.mv-journal .mv-jmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: #5a2fc0; }
.mv-journal .mv-jwhen { color: #6b5a3a; }
.mv-journal .mv-jempty { text-align: center; color: #5b4a7a; }
.mv-journal .mv-jbtns { display: flex; justify-content: center; margin-top: 12px; }

@media (max-width: 520px) {
  .g-memoryverse { padding: 8px 6px 12px; gap: 10px; }
  .g-memoryverse .mv-lbl { display: none; }
  .g-memoryverse .mv-card { padding: 24px 16px 12px; width: calc(100% - 18px); }
  .g-memoryverse .mv-tray { gap: 9px; }
  .g-memoryverse .mv-tile { min-width: 72px; padding: 6px 12px; }
  .g-memoryverse .mv-btn { min-width: 120px; }
}

/* Print only the verse cards from the journal. */
@media print {
  body.mv-printing { background: #fff !important; }
  body.mv-printing > *:not(.mv-journal-back) { display: none !important; }
  body.mv-printing .mv-journal-back { position: static; background: none; backdrop-filter: none; padding: 0; display: block; }
  body.mv-printing .modal.mv-jmodal { max-height: none; overflow: visible; box-shadow: none; width: 100%; animation: none; }
  body.mv-printing .modal-x, body.mv-printing .mv-jbtns { display: none; }
}
