/* Two play paths, retaining the original animated SVG artwork. */
.quiz-page { --quiz-ink:#344b3c; --quiz-gold:#b39560; --quiz-disc:#fffdf8; --quiz-border:#ddd8c9; --quiz-muted:#717467; }
:root[data-theme="dark"] .quiz-page { --quiz-ink:#dfc595; --quiz-disc:#1d201c; --quiz-border:#45493c; --quiz-muted:#b5b7ae; }
.quiz-page .social-header { position:relative; display:flex; align-items:center; gap:12px; min-height:72px; padding:22px clamp(18px,5vw,56px) 16px; border:0; background:transparent; }
.quiz-shortcuts { display:flex; gap:8px; margin-right:auto; }
.quiz-side-button { display:flex; align-items:center; gap:7px; min-height:34px; padding:6px 12px; border:1px solid var(--quiz-gold); border-radius:999px; color:var(--quiz-ink); background:var(--quiz-disc); font:500 12px var(--font-ui); cursor:default; }
.quiz-icon-disc { display:flex; }
.quiz-icon-disc svg { width:17px; height:17px; }
.quiz-page .social-header > .premium-button { position:static; margin:0; display:inline-flex; }
.quiz-page .quiz-shell { position:relative; isolation:isolate; display:flex; flex-direction:column; width:100%; max-width:none; padding:10px clamp(18px,4vw,56px) 0; overflow:hidden; }
.quiz-content { position:relative; z-index:1; width:min(100%,1080px); margin:0 auto; }
.quiz-title { width:270px; max-width:75%; margin:4px auto 15px; }
.quiz-title img { display:block; width:100%; height:auto; }
.quiz-paths { display:grid; gap:28px; }
.quiz-landing { display:flex; flex-direction:column; align-items:center; min-width:0; }
.quiz-illustration-row { position:relative; isolation:isolate; width:250px; max-width:80%; margin:-8px 0 -5px; display:flex; justify-content:center; }
.quiz-bible { position:relative; z-index:1; display:block; width:100%; height:auto; color:var(--quiz-ink); stroke:none; }
.quiz-sunbeam-art { position:absolute; z-index:-1; width:105%; height:auto; max-width:none; left:50%; top:34.7%; transform:translate(-50%,-50%); overflow:visible; stroke:none; pointer-events:none; }
.quiz-sunbeams { transform-origin:300px 300px; animation:quiz-sunbeam-spin 28s linear infinite; }
@keyframes quiz-sunbeam-spin { to { transform:rotate(360deg); } }
.quiz-beam-ray { transform-origin:300px 263px; animation:quiz-beam-length 2s ease-in-out infinite; }
.quiz-beam-spoke:nth-child(even) .quiz-beam-ray { animation-delay:-1s; }
@keyframes quiz-beam-length { 0%,100% { transform:scaleY(1); } 50% { transform:scaleY(.75); } }
.quiz-journey-copy { text-align:center; color:var(--quiz-ink); }
.quiz-eyebrow { margin:0 0 5px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.19em; }
.quiz-journey-copy h2 { margin:0; font:600 29px/1.2 Georgia,serif; letter-spacing:-.03em; }
.quiz-level-button { width:100%; max-width:350px; min-height:49px; margin:15px 0 0; padding:12px 20px; border:1px solid #344b3c; border-radius:16px; background:linear-gradient(120deg,#526d50,#2f4c3a); color:#fff9ed; font-size:17px; font-weight:600; cursor:default; box-shadow:0 4px 12px #344b3c12; }
.quiz-daily { min-width:0; padding-top:23px; border-top:1px solid var(--quiz-border); }
.quiz-daily header h2 { margin:0 0 7px; color:var(--quiz-ink); font:600 27px/1.15 Georgia,serif; letter-spacing:-.035em; }
.quiz-daily header p { margin:0 0 18px; color:var(--quiz-muted); font-size:14px; line-height:1.5; }
.quiz-topic-list { display:grid; gap:10px; }
.quiz-topic-card { display:flex; align-items:center; gap:13px; width:100%; min-height:78px; padding:7px 12px 7px 7px; border:1px solid var(--quiz-border); border-radius:12px; text-align:left; color:var(--quiz-ink); background:var(--quiz-disc); cursor:default; }
.quiz-topic-art { width:76px; height:66px; flex:none; border-radius:8px; stroke:none; }
.quiz-topic-copy { display:grid; gap:6px; min-width:0; }
.quiz-topic-copy strong { font-size:16px; font-weight:600; line-height:1.2; }
.quiz-topic-copy > span { color:var(--quiz-muted); font-size:11px; line-height:1.35; }
.quiz-chevron { width:18px; height:18px; margin-left:auto; flex:none; }
.quiz-more { margin-top:16px; }
.quiz-more summary { width:fit-content; margin:0 auto; padding:4px 0; color:var(--quiz-ink); font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:4px; cursor:pointer; list-style:none; }
.quiz-more summary::-webkit-details-marker { display:none; }
.quiz-more summary span { margin-left:9px; }
.quiz-more[open] .quiz-topic-list { margin-top:16px; }
.quiz-topic-number { display:grid; place-items:center; width:54px; height:54px; flex:none; color:var(--quiz-gold); font:600 24px Georgia,serif; background:rgba(179,149,96,.08); border-radius:8px; }
.quiz-sky { position:relative; flex:none; z-index:0; width:calc(100% + 112px); max-width:none; height:145px; margin:10px -56px 0; stroke:none; color:var(--quiz-gold); pointer-events:none; }
.quiz-pasture-distant { fill:#e5e8da; }.quiz-pasture-middle { fill:#d6dfc7; }.quiz-pasture-near { fill:#bdcdae; }.quiz-pasture-front { fill:#9fb58f; }
.quiz-lamb-left { transform:translate(270px,825px) scale(1.15); }.quiz-lamb-right { transform:translate(730px,850px) scale(-1.15,1.15); }
:root[data-theme="dark"] .quiz-pasture-distant { fill:#222b21; }:root[data-theme="dark"] .quiz-pasture-middle { fill:#2c3929; }:root[data-theme="dark"] .quiz-pasture-near { fill:#374731; }:root[data-theme="dark"] .quiz-pasture-front { fill:#43563b; }
:root[data-theme="dark"] .quiz-title img { filter:brightness(1.8) saturate(.6); }
.quiz-page button:focus-visible,.quiz-more summary:focus-visible { outline:3px solid var(--quiz-gold); outline-offset:4px; }
@media(min-width:680px) {
 .quiz-page .social-header { min-height:92px; padding-top:42px; justify-content:flex-end; }
 .quiz-shortcuts { margin:0; }
 .quiz-page .social-header > .premium-button { display:none; }
 .quiz-page .quiz-shell { min-height:calc(100svh - 92px); }
 .quiz-title { width:350px; max-width:70%; margin:0 0 34px; }
 .quiz-paths { grid-template-columns:minmax(250px,.85fr) minmax(310px,1.25fr); align-items:stretch; gap:24px; }
 .quiz-landing,.quiz-daily { padding:30px 24px; border:1px solid var(--quiz-border); border-radius:20px; background:rgba(255,253,248,.35); }
 .quiz-landing { justify-content:center; }
 .quiz-illustration-row { width:300px; max-width:100%; margin:-8px 0 5px; }
 .quiz-sunbeam-art { width:75%; }
 .quiz-journey-copy h2 { font-size:36px; }.quiz-eyebrow { font-size:12px; }
 .quiz-level-button { min-height:56px; margin-top:25px; font-size:19px; }
 .quiz-daily header h2 { font-size:32px; }.quiz-daily header p { font-size:15px; }
 .quiz-topic-card { min-height:88px; }.quiz-topic-art { width:90px; height:74px; }.quiz-topic-copy strong { font-size:18px; }.quiz-topic-copy > span { font-size:12px; }
 .quiz-sky { height:180px; margin-top:auto; }
 .quiz-lamb-left { transform:translate(220px,850px) scale(.85); }.quiz-lamb-right { transform:translate(850px,865px) scale(-.85,.85); }
 :root[data-theme="dark"] .quiz-landing,:root[data-theme="dark"] .quiz-daily { background:rgba(29,32,28,.4); }
}
@media(max-width:679px) {
 .quiz-page .quiz-shell { flex:1; min-height:0; overflow-y:auto; padding-bottom:64px; }
 .quiz-sky { margin-bottom:-1px; }
}
@media(max-width:390px) { .quiz-side-button { padding:6px 9px; gap:5px; font-size:11px; }.quiz-shortcuts { gap:5px; }.quiz-page .social-header { gap:8px; } }
/* Lightweight SVG motion: no additional downloads or animation runtime. */
@keyframes quiz-lamb-bob {
  0%, 30%, 100% { transform: translateY(0); }
  48% { transform: translateY(-4px); }
  65% { transform: translateY(0); }
  82% { transform: translateY(-2px); }
}
.quiz-lamb-bob { animation: quiz-lamb-bob 3.6s ease-in-out infinite, quiz-lamb-wander 5s ease-in-out infinite; }
.quiz-lamb-right .quiz-lamb-bob { animation-duration: 4.2s, 5.8s; animation-delay: -1.6s, -2.4s; }
@keyframes quiz-head-tilt {
  0%, 30%, 100% { transform: rotate(0deg); }
  50%, 65% { transform: rotate(-5deg); }
}
.quiz-lamb-head { transform-origin: 24px 9px; animation: quiz-head-tilt 4.6s ease-in-out infinite; }
@keyframes quiz-twinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.quiz-book-sparkles > * { animation: quiz-twinkle 2.2s ease-in-out infinite; }
.quiz-book-sparkles > :nth-child(2) { animation-delay: -1.5s; }
.quiz-book-sparkles > :nth-child(3) { animation-delay: -3s; }
.quiz-level-button { position: relative; isolation: isolate; overflow: hidden; }
.quiz-level-button::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(110deg, transparent 25%, rgba(255,246,229,.05) 39%, rgba(255,246,229,.2) 50%, rgba(255,246,229,.05) 61%, transparent 75%); transform: translateX(-130%); animation: quiz-level-shine 4.5s ease-in-out infinite; }
@keyframes quiz-level-shine {
  0%, 45% { transform: translateX(-130%); opacity: 0; }
  55% { opacity: 1; }
  94%, 100% { transform: translateX(130%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-lamb-bob, .quiz-lamb-head, .quiz-book-sparkles > *, .quiz-level-button::after { animation: none; }
  .quiz-level-button::after { display: none; }
}

/* Individual translate adds a small wander without replacing the bob transform. */
@keyframes quiz-lamb-wander {
  0%, 100% { translate: -6px 0; }
  50% { translate: 6px 0; }
}

.quiz-sunbeams { transform-origin: 210px 118px; animation: quiz-sunbeam-spin 28s linear infinite; }
@keyframes quiz-sunbeam-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .quiz-sunbeams { animation: none; }
}

.quiz-cross-motion { animation: quiz-cross-float 3.4s ease-in-out infinite; }
@keyframes quiz-cross-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-cross-motion { animation: none; }
}
@media(prefers-reduced-motion:reduce) { .quiz-sunbeams,.quiz-beam-ray { animation:none; }.quiz-beam-spoke:nth-child(even) .quiz-beam-ray { transform:scaleY(.75); } }
@media(max-width:679px) { .quiz-illustration-row { width:210px; }.quiz-paths { gap:24px; } }
/* Compensate character proportions for the panoramic pasture viewBox. */
@media(min-width:680px) { .quiz-lamb-left { transform:translate(220px,850px) scale(.85,1.77); }.quiz-lamb-right { transform:translate(850px,865px) scale(-.85,1.77); } }
@media(max-width:679px) { .quiz-lamb-left { transform:translate(270px,825px) scale(1.15,1.3); }.quiz-lamb-right { transform:translate(730px,850px) scale(-1.15,1.3); } }

/* Use the shared destination title on desktop; mobile goes straight to play. */
.quiz-title { font-family:var(--font-ui); font-size:var(--type-page); font-weight:var(--weight-heading); line-height:1.2; letter-spacing:-.025em; color:rgb(var(--theme-text-primary-rgb)); }
.quiz-sunbeams { animation:quiz-sunbeam-spin 28s linear infinite; transform-origin:300px 300px; }
@media(min-width:680px) {
  .quiz-title { width:auto; max-width:none; margin:0 0 34px; }
}
@media(max-width:679px) {
  .quiz-title { display:none; }
  .quiz-page .quiz-shell { padding-top:0; }
}

@media(prefers-reduced-motion:reduce) { .quiz-sunbeams { animation:none; } }

@media(min-width:680px) {
  .quiz-page .social-header { padding-top:58px; padding-bottom:16px; min-height:0; justify-content:space-between; }
  .quiz-page .social-header .quiz-title { margin:0; padding:0; color:inherit; font-family:var(--font-ui); font-size:var(--type-page); font-weight:var(--weight-heading); line-height:1.2; letter-spacing:-.025em; }
  .quiz-page .quiz-shell { padding-left:clamp(18px,5vw,56px); padding-right:clamp(18px,5vw,56px); }
  .quiz-content { width:100%; max-width:none; margin:0; }
}
@media(max-width:679px) {
  body.quiz-page[data-bible-page] .social-header > .quiz-title { display:none; }
}
@media(max-width:679px) {
  .quiz-level-button { width:100%; max-width:none; }
}
.quiz-story-picker { position:relative; display:inline-flex; align-items:center; gap:3px; min-height:36px; margin-top:6px; color:var(--quiz-ink); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.quiz-story-picker svg { width:18px; height:18px; }
.quiz-story-picker select { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; font-size:16px; }
.quiz-story-picker:focus-within { outline:2px solid var(--quiz-gold); outline-offset:3px; border-radius:4px; }
@media(max-width:679px) {
 .quiz-landing { display:grid; grid-template-columns:110px minmax(0,1fr); column-gap:20px; row-gap:10px; align-items:center; padding-top:14px; }
 .quiz-illustration-row { width:110px; max-width:100%; margin:0; }
 .quiz-journey-copy { text-align:left; }
 .quiz-eyebrow { font-size:10px; letter-spacing:.13em; margin-bottom:7px; }
 .quiz-journey-copy h2 { font-size:26px; overflow-wrap:break-word; }
 .quiz-level-button { grid-column:1/-1; margin-top:4px; }
 .quiz-sunbeam-art { width:100%; opacity:.7; }
}
@media(max-width:359px) {
 .quiz-landing { grid-template-columns:90px minmax(0,1fr); column-gap:14px; }
 .quiz-illustration-row { width:90px; }
 .quiz-journey-copy h2 { font-size:23px; }
}
/* Anchor scenery to the end of the scroll area on short and tall phones. */
@media(max-width:679px) {
  .quiz-page .quiz-shell { padding-bottom:0; }
  .quiz-sky { margin-top:auto; margin-bottom:0; }
  .quiz-page .bottom-nav { position:relative; flex:0 0 auto; bottom:auto; }
}
.quiz-change-story { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; margin-top:8px; padding:8px 12px; border:1px solid var(--quiz-border); border-radius:12px; color:var(--quiz-ink); background:rgba(179,149,96,.07); font-size:12px; font-weight:500; cursor:pointer; }
.quiz-change-story svg { width:18px; height:18px; flex:none; }
.quiz-story-dialog { box-sizing:border-box; width:min(440px,calc(100% - 32px)); max-height: min(680px,85svh); padding:22px; border:1px solid #ddd8c9; border-radius:22px; color:#344b3c; background:#fffdf8; box-shadow:0 20px 80px #0003; }
.quiz-story-dialog::backdrop { background:rgba(18,24,17,.38); }
.quiz-sheet-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; }
.quiz-sheet-header h2 { margin:0; font:600 23px/1.25 var(--font-ui); letter-spacing:-.03em; }
.quiz-sheet-close { display:grid; place-items:center; width:40px; height:40px; padding:9px; border:1px solid #ddd8c9; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }
.quiz-sheet-close svg { width:20px; height:20px; }
.quiz-sheet-handle { display:none; }
.quiz-story-options { overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:0 2px 4px; }
.quiz-story-options h3 { margin:16px 0 10px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#717467; }
.quiz-story-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:13px 14px; min-height:66px; margin-bottom:7px; text-align:left; border:1px solid #e5e1d5; border-radius:12px; background:transparent; color:inherit; cursor:pointer; }
.quiz-story-option > span { display:grid; gap:5px; }.quiz-story-option strong { font-size:15px; font-weight:500; }.quiz-story-option small { color:#717467; font-size:12px; }
.quiz-story-check { width:21px; height:21px; flex:none; visibility:hidden; }
.quiz-story-option[aria-pressed="true"] { background:#edf0e6; border-color:#9eae93; }.quiz-story-option[aria-pressed="true"] .quiz-story-check { visibility:visible; }
.quiz-story-dialog[open] { display:flex; flex-direction:column; }
:root[data-theme="dark"] .quiz-story-dialog { background:#1d201c; color:#dfc595; border-color:#45493c; }
:root[data-theme="dark"] .quiz-story-option,:root[data-theme="dark"] .quiz-sheet-close { border-color:#45493c; }
:root[data-theme="dark"] .quiz-story-option[aria-pressed="true"] { background:#2c3929; }
@media(max-width:679px) {
 .quiz-story-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:none; max-height:80svh; margin:0; padding:10px 20px max(20px,env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; border-bottom:0; }
 .quiz-sheet-handle { display:block; flex:none; width:38px; height:4px; margin:0 auto 12px; border-radius:4px; background:#c5c8bc; }
}

/* Mobile icon-only trial. Remove this block to restore the labeled pill above. */
@media(max-width:679px) {
 .quiz-journey-copy { display:grid; grid-template-columns:minmax(0,auto) 44px; align-items:center; justify-content:start; column-gap:4px; }
 .quiz-journey-copy .quiz-eyebrow { grid-column:1/-1; }
 .quiz-journey-copy h2 { grid-column:1; }
 .quiz-journey-copy .quiz-change-story { grid-column:2; width:44px; height:44px; min-height:44px; margin:0; padding:13px; border:0; border-radius:10px; background:transparent; }
 .quiz-change-story > span { display:none; }
 .quiz-change-story svg { width:18px; height:18px; }
}

/* Mobile story navigation: labeled action below title and a full-page picker. */
@media(max-width:679px) {
 .quiz-journey-copy { display:block; }
 .quiz-journey-copy .quiz-change-story { display:inline-flex; width:auto; height:44px; margin-top:4px; padding:6px 0; gap:7px; border:0; background:transparent; font-size:12px; }
 .quiz-change-story > span { display:inline; }
 .quiz-change-chevron { margin-left:3px; font-size:20px; line-height:1; }
 .quiz-story-dialog { inset:0; width:100%; height:100%; max-height:100%; max-width:none; margin:0; padding:max(16px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom)); border:0; border-radius:0; }
 .quiz-story-dialog[open] { animation:quiz-story-enter .24s ease-out; }
 .quiz-story-dialog .quiz-sheet-handle { display:none; }
 .quiz-sheet-header { flex-direction:row-reverse; justify-content:flex-end; padding-bottom:18px; border-bottom:1px solid var(--quiz-border,#ddd8c9); flex:none; }
 .quiz-sheet-header h2 { font-size:22px; }
 .quiz-sheet-close { border:0; width:44px; height:44px; border-radius:10px; }
 .quiz-story-options { padding-top:8px; }
 @keyframes quiz-story-enter { from { transform:translateX(100%); } to { transform:translateX(0); } }
}
@media(prefers-reduced-motion:reduce) { .quiz-story-dialog[open] { animation:none; } }
.quiz-story-dialog .quiz-sheet-header { border-bottom:0; }
.quiz-story-group { margin:12px 0 24px; }
.quiz-story-group h4 { margin:0 0 10px; font-size:17px; font-weight:600; letter-spacing:-.02em; }
.quiz-story-options .quiz-substory-option { min-height:50px; padding:12px 14px; margin-left:10px; width:calc(100% - 10px); font-size:14px; }
.quiz-substory-option:disabled { color:#8a8d80; background:transparent; cursor:default; border-color:transparent; }
.quiz-substory-lock { flex:none; width:17px; height:17px; color:#969b8b; stroke-width:1.7; }
:root[data-theme="dark"] .quiz-substory-option:disabled { color:#94998b; }

/* Borderless sub-story rows: chevron to choose, checkmark when selected. */
.quiz-story-options .quiz-substory-option { border:0; border-radius:10px; }
.quiz-substory-option:not(:disabled):hover { background:rgba(179,149,96,.08); }
.quiz-substory-option:not(:disabled):active { background:rgba(179,149,96,.16); }
.quiz-substory-option .quiz-story-check { display:none; }
.quiz-substory-option[aria-pressed="true"] .quiz-story-check { display:block; }
.quiz-substory-chevron { width:17px; height:17px; flex:none; color:var(--quiz-ink,#344b3c); opacity:.65; }
.quiz-substory-option[aria-pressed="true"] .quiz-substory-chevron { display:none; }
.quiz-substory-option:focus-visible { outline:2px solid #b39560; outline-offset:2px; }
/* Consistent back navigation and tighter mobile section spacing. */
@media(min-width:680px) {
  .quiz-story-dialog .quiz-sheet-header { flex-direction:row-reverse; justify-content:flex-end; }
}
@media(max-width:679px) {
  .quiz-story-dialog .quiz-sheet-header { padding-bottom:6px; }
  .quiz-story-options { padding-top:0; }
  .quiz-story-options > section:first-child > h3 { margin-top:6px; }
}
@media(max-width:679px) {
  .quiz-journey-copy { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
  .quiz-journey-copy .quiz-eyebrow,.quiz-journey-copy h2 { margin:0; }
  .quiz-journey-copy .quiz-change-story { margin:0; height:auto; min-height:28px; padding:0; line-height:20px; position:relative; }
  .quiz-journey-copy .quiz-change-story::before { content:""; position:absolute; inset:-8px 0; }
  .quiz-change-story .quiz-change-chevron { display:flex; align-items:center; justify-content:center; height:20px; font-size:20px; line-height:20px; transform:translateY(-1px); }
}
.quiz-all-challenges { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; margin:12px auto 0; padding:6px 0; border:0; background:transparent; color:var(--quiz-ink); font-size:12px; font-weight:500; line-height:20px; cursor:pointer; }
.quiz-all-challenges > svg { width:18px; height:18px; flex:none; }
.quiz-all-challenges .quiz-change-chevron { display:flex; align-items:center; justify-content:center; height:20px; font-size:20px; line-height:20px; transform:translateY(-1px); }
.quiz-challenges-intro { margin:4px 0 18px; font-size:14px; color:#717467; }
.quiz-challenges-dialog .quiz-topic-list { padding-bottom:6px; }

.quiz-chapter-number { display:grid; place-items:center; flex:none; width:25px; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--quiz-gold,#b39560); }
.quiz-substory-option .quiz-chapter-title { flex:1; }
