:root {
  --navy: #14213d;
  --navy-2: #1d2d52;
  --gold: #c9a24a;
  --gold-soft: #f3e7c8;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1b1f2a;
  --muted: #6b7080;
  --line: #e6e0d4;
  --shadow: 0 6px 20px rgba(20, 33, 61, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1526;
    --surface: #182240;
    --text: #eef0f6;
    --muted: #9aa3b8;
    --line: #26325a;
    --gold-soft: #3a3320;
    --shadow: 0 6px 20px rgba(0, 0, 0, .3);
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: calc(150px + var(--safe-b));
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: var(--navy); color: #fff;
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: .3px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: #c8cfe0; }
.icon-btn { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.view { display: none; animation: fade .2s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.verse {
  margin: 16px 0; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
}
.verse p { margin: 0 0 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; line-height: 1.35; }
.verse span { color: var(--gold); font-size: 13px; font-weight: 600; }

.search-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
input[type=search] {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .chip.active { background: var(--gold); color: #1b1f2a; border-color: var(--gold); } }

/* Station grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.station {
  position: relative; text-align: left; padding: 12px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.station.playing { border-color: var(--gold); }
.station .logo {
  width: 100%; aspect-ratio: 4/3; border-radius: 10px; background: #fff;
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
}
.station .logo img { width: 86%; height: 86%; object-fit: contain; }
.station .logo .fallback { font-family: "Cormorant Garamond", serif; font-size: 34px; color: var(--navy); font-weight: 700; }
.station .name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.station .tag { font-size: 12px; color: var(--muted); }
.station .fav {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #b9b9b9; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.station .fav.on { color: #c0392b; }
.station .eq { position: absolute; left: 18px; top: 18px; display: none; gap: 2px; align-items: flex-end; height: 16px; }
.station.playing:not(.paused) .eq { display: flex; }
.eq i { width: 3px; background: var(--gold); animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }
.paused .eq i { animation-play-state: paused; }

.empty, .muted { color: var(--muted); }
.center { text-align: center; }
.h { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; margin: 18px 0 12px; }
.lead { font-size: 16px; }

/* Reflections */
.list { display: flex; flex-direction: column; gap: 12px; }
.ref {
  display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); text-align: left; width: 100%;
}
.ref img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--gold-soft); }
.ref b { display: block; font-size: 15px; line-height: 1.3; }
.ref span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skeleton { height: 100px; border-radius: 14px; background: linear-gradient(90deg, var(--surface), var(--line), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.back { color: var(--gold); font-weight: 600; padding: 14px 0 4px; }
.reader { font-size: 17px; line-height: 1.7; padding-bottom: 20px; }
.reader h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; line-height: 1.2; }
.reader img { max-width: 100%; height: auto; border-radius: 12px; }
.reader blockquote { margin: 0; padding: 4px 16px; border-left: 3px solid var(--gold); color: var(--muted); }

/* Media / about cards */
.video { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pcard { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.pcard b { display: block; }
.pcard span { color: var(--muted); font-size: 13px; }
.fine { background: var(--surface); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.fine summary { font-weight: 600; cursor: pointer; }
.fine p { font-size: 13px; }
.fine .chips { margin-top: 12px; }

/* Now-playing bar */
.player {
  position: fixed; left: 10px; right: 10px; bottom: calc(68px + var(--safe-b)); z-index: 20;
  max-width: 740px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--navy); color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.player img { width: 44px; height: 44px; border-radius: 9px; background: #fff; object-fit: contain; padding: 3px; }
.np-text { flex: 1; min-width: 0; }
.np-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-status { font-size: 12px; color: #c8cfe0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.play svg { width: 22px; height: 22px; fill: var(--navy); }
.play .i-pause, .play .spinner { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-loading .i-play, .player.is-loading .i-pause { display: none; }
.player.is-loading .spinner { display: block; width: 22px; height: 22px; border: 3px solid rgba(20,33,61,.3); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--navy); font-weight: 600; }
@media (prefers-color-scheme: dark) { .player { background: #0a1020; border: 1px solid rgba(201,162,74,.45); } }
@media (prefers-color-scheme: dark) { .tab.active { color: var(--gold); } }

.toast {
  position: fixed; left: 50%; bottom: calc(140px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 30; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ios-hint {
  position: fixed; left: 12px; right: 12px; top: calc(70px + var(--safe-t)); z-index: 30;
  background: var(--surface); padding: 14px 40px 14px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px;
  border: 1px solid var(--gold);
}
.ios-hint button { position: absolute; right: 8px; top: 6px; font-size: 22px; color: var(--muted); }
.ref .ref-verse { color: var(--gold); font-weight: 600; -webkit-line-clamp: 1; }
.ref small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Reflection content from rsp.php */
.reader .verse-box { margin: 8px 0 18px; }
.reader .reflection-verse { margin: 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; line-height: 1.45; }
.reader .reflection-verse p { margin: 0 0 8px; }
.reader .reflection-verse cite { display: block; font: 600 13px/1.4 Inter, system-ui, sans-serif; font-style: normal; color: var(--gold); }
/* Reflection body as on the website: white card, blue edge, picture beside the text */
.reader .reflection-content {
  display: flow-root;                     /* keeps the floated picture inside the card */
  background: var(--surface); border-radius: 16px; padding: 18px 18px 18px 20px;
  border-left: 4px solid #4a9fe0; box-shadow: var(--shadow);
  font-size: 15.5px; line-height: 1.8;
}
.reader .reflection-content p { margin: 0 0 14px; }
.reader .reflection-content p:last-child { margin-bottom: 0; }
.reader .reflection-inline-image {
  float: left; width: 42%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; margin: 6px 16px 8px 0;
}
@media (max-width: 340px) {               /* very small phones: picture on top instead */
  .reader .reflection-inline-image { float: none; width: 100%; max-width: none; aspect-ratio: 16 / 10; margin: 0 0 14px; }
}
.reader .dropcap {
  float: left; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: 3.3em; line-height: .8; padding: 5px 8px 0 1px; color: #2f3138;
}
@media (prefers-color-scheme: dark) {
  .reader .dropcap { color: var(--gold); }
  .reader .reflection-content { border-left-color: #5aa9e8; }
}
.reader .ref_verse { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--gold); font-style: italic; color: var(--muted); }
input[type=search]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
/* Media list from rsp.php */
.media-card {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent;
}
.media-card.now { border-color: var(--gold); }
.media-thumb { position: relative; flex-shrink: 0; width: 132px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb i {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 13px; padding-left: 2px;
  background: rgba(20, 33, 61, .8); color: #fff;
}
.media-card.now .media-thumb i { background: var(--gold); color: var(--navy); }
.media-text { min-width: 0; }
.media-text b { display: block; font-size: 15px; line-height: 1.3; }
.media-text span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
/* SermonAudio items */
.video.sa-audio { aspect-ratio: auto; height: 160px; background: var(--surface); box-shadow: var(--shadow); }
.sa-thumb { display: grid; place-items: center; background: linear-gradient(135deg, #1d2d52, #14213d); }
.sa-thumb .sa-label { position: absolute; left: 8px; bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: .4px; color: #e9d8a6; }
/* Station name links to the station's website */
.station .name-link { color: inherit; text-decoration: none; display: inline; }
.station .name-link:hover, .station .name-link:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); }
.ext { color: var(--gold); font-size: .8em; margin-left: 3px; }
.np-name a { color: #fff; text-decoration: none; }
.np-name a:hover { text-decoration: underline; }
/* Media: video files and type tiles */
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.media-thumb.type-pdf, .media-thumb.type-ebook, .media-thumb.type-link { background: linear-gradient(135deg, #f3e7c8, #e6d3a3); }
.media-thumb.type-pdf i, .media-thumb.type-ebook i, .media-thumb.type-link i { background: transparent; font-size: 30px; color: var(--navy); width: auto; height: auto; padding: 0; }
.media-thumb.type-pdf .sa-label, .media-thumb.type-ebook .sa-label, .media-thumb.type-link .sa-label { color: var(--navy); }
.media-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-date { display: block; font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.privacy-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--gold); }
/* Loading screen */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #14213d; transition: opacity .5s ease;
}
#splash img {
  width: min(100vw, 680px); height: auto;   /* the image has soft edges built in */
}
#splash.hide { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #splash { transition: none; } }

/* ---------- Bible Memory Game ---------- */
.game-intro { margin-top: -4px; }
#gameLevels { margin: 10px 0 12px; }
.game-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.game-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.game-new { margin-left: auto; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text); }
.game-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; max-width: 560px; margin: 0 auto; }
.gcard { aspect-ratio: 3 / 4; padding: 0; perspective: 700px; border-radius: 12px; }
.gcard-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.gcard.up .gcard-inner { transform: rotateY(180deg); }
.gcard-back, .gcard-front {
  position: absolute; inset: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: var(--shadow);
}
.gcard-back { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border: 2px solid rgba(201, 162, 74, .55); }
.gcard-back img { width: 46%; max-width: 54px; border-radius: 50%; opacity: .95; }
.gcard-front { background: var(--surface); border: 2px solid var(--line); transform: rotateY(180deg); padding: 4px; text-align: center; }
.gicon { font-size: clamp(26px, 9vw, 40px); line-height: 1.1; }
.gname { font-size: 11px; font-weight: 600; margin-top: 4px; line-height: 1.2; color: var(--text); }
.gcard.matched .gcard-front { border-color: var(--gold); background: var(--gold-soft); }
.gcard.matched { animation: gmatch .5s ease; }
@keyframes gmatch { 50% { transform: scale(1.06); } }
.game-verse {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 auto 12px; max-width: 560px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border-left: 4px solid var(--gold); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5;
}
.game-verse .gv-icon { font-size: 26px; line-height: 1; }
.game-verse em { color: var(--gold); font-style: normal; font-weight: 600; white-space: nowrap; }
.game-verse.pop { animation: gpop .35s ease; }
@keyframes gpop { from { opacity: 0; transform: translateY(6px); } }
.game-win { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10, 16, 32, .6); padding: 16px; }
.game-win-card { background: var(--surface); border-radius: 18px; padding: 24px 20px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.game-win-icon { font-size: 44px; }
.game-win-card h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; margin: 6px 0; }
.game-win-card blockquote { margin: 14px 0; padding: 10px 12px; border-left: 3px solid var(--gold); text-align: left; font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; background: var(--gold-soft); border-radius: 0 10px 10px 0; }
.game-win-card blockquote span { display: block; font: 600 12px Inter, system-ui, sans-serif; color: var(--gold); margin-top: 4px; }
.game-win-actions { display: flex; gap: 8px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .gcard-inner, .gcard.matched, .game-verse.pop { transition: none; animation: none; } }

/* ---------- Games tab switcher ---------- */
.game-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 16px; }
.gs-btn { padding: 8px 4px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; line-height: 1.2; }
.gs-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gs-btn .new-badge { position: absolute; top: 3px; right: 4px; margin: 0; }
.gs-btn.active { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .gs-btn.active { background: var(--gold); color: #1b1f2a; } }
.new-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; vertical-align: 2px; }
.tab { position: relative; }
.tab-dot { position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Memory Verse ---------- */
.mv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.mv-kicker { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.mv-ref { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
.mv-speak { flex-shrink: 0; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 13px; }
.mv-steps { display: flex; gap: 4px; margin: 12px 0 6px; }
.mv-steps span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 6px 2px; border-radius: 8px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.mv-steps span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mv-steps span.past { background: var(--gold-soft); color: var(--text); border-color: var(--gold); }
@media (prefers-color-scheme: dark) { .mv-steps span.on { background: var(--gold); color: #1b1f2a; border-color: var(--gold); } }
.mv-help { font-size: 14px; color: var(--muted); margin: 6px 0 8px; min-height: 1.4em; }
.mv-text {
  padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; line-height: 1.75; word-spacing: 2px;
}
.mv-w.filled { color: var(--gold); font-weight: 700; }
.mv-blank { display: inline-block; width: calc(var(--len) * .55em + .6em); max-width: 9em; height: 1em; vertical-align: -2px; border-bottom: 2px solid var(--muted); margin: 0 1px; }
.mv-blank.next { border-bottom-color: var(--gold); background: var(--gold-soft); border-radius: 4px 4px 0 0; animation: mvpulse 1.4s ease-in-out infinite; }
@keyframes mvpulse { 50% { opacity: .55; } }
.mv-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; min-height: 44px; }
.mv-chip { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; }
.mv-chip:active { transform: scale(.96); }
.mv-chip.wrong { animation: mvshake .35s; border-color: #c0392b; }
@keyframes mvshake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mv-good { color: var(--gold); font-weight: 700; margin: 8px 0; }
.mv-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mv-done { text-align: center; margin: 16px 0; padding: 18px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold); }
.mv-done-icon { font-size: 40px; }
.mv-done h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; margin: 4px 0; }
.mv-list-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; margin: 26px 0 10px; }
.mv-list { display: flex; flex-direction: column; gap: 10px; }
.mv-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; }
.mv-item.current { border-color: var(--gold); }
.mv-item-ref { font-weight: 700; }
.mv-item-ref small { font-weight: 600; color: #c0392b; font-size: 11px; margin-left: 4px; }
.mv-item-text { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-item-state { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mv-blank.next, .mv-chip.wrong { animation: none; } }

/* Matching game: card sets from the site */
.gm-sets { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-top: 8px; scrollbar-width: none; }
.gm-sets::-webkit-scrollbar { display: none; }
.gm-sets .chip { white-space: nowrap; flex: none; }
.gm-set-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); min-height: 0; }
.gm-set-note:empty { display: none; }
#gameLevels .chip:disabled { opacity: .35; }
.gimg { width: 72%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gv-img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }

/* Bible Quiz */
.qz-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.qz-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.qz-score { margin-left: auto; }
.qz-streak { padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--text); font-size: 12px; font-weight: 600; }
.qz-bar { height: 6px; border-radius: 6px; background: var(--line); margin: 8px 0 18px; overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .3s ease; }
.qz-q { font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; line-height: 1.25; margin: 0 0 16px; text-wrap: balance; }
.qz-answers { display: grid; gap: 10px; }
.qz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.3; transition: border-color .15s, background .15s, transform .1s; }
.qz-opt:not(:disabled):hover { border-color: var(--gold); }
.qz-opt:not(:disabled):active { transform: scale(.98); }
.qz-opt .qz-key { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); font-size: 13px; font-weight: 700; color: var(--text); }
.qz-opt.right { border-color: #2e8b57; background: rgba(46, 139, 87, .12); }
.qz-opt.right .qz-key { background: #2e8b57; color: #fff; }
.qz-opt.wrong { border-color: #c0392b; background: rgba(192, 57, 43, .10); }
.qz-opt.wrong .qz-key { background: #c0392b; color: #fff; }
.qz-opt:disabled { cursor: default; }
.qz-opt:disabled:not(.right):not(.wrong) { opacity: .6; }
.qz-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-size: 15px; line-height: 1.45; }
.qz-feedback b { display: block; margin-bottom: 2px; }
.qz-feedback .qz-ref { color: var(--gold); font-weight: 600; font-size: 13px; }
@media (prefers-color-scheme: dark) { .qz-feedback .qz-ref { color: var(--gold); } }
.qz-actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 16px; }
.qz-end { text-align: center; padding: 8px 0 4px; }
.qz-end-icon { font-size: 48px; }
.qz-end h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; margin: 4px 0; }
.qz-end p { color: var(--muted); margin: 0 0 14px; }
.qz-end .qz-actions { justify-content: center; }
.qz-review { text-align: left; display: grid; gap: 8px; }
.qz-review h3 { font-size: 14px; margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.qz-miss { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; line-height: 1.4; }
.qz-miss span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.qz-miss em { color: var(--gold); font-style: normal; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .qz-bar i, .qz-opt { transition: none; } }
