/* Reason for Hope — one stylesheet for site, presentation, Kids Zone, and print. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --ink: #1c2333;
  --muted: #5b6475;
  --line: #e2ded4;
  --brand: #1f2a44;
  --brand-ink: #ffffff;
  --accent: #8a5f12;
  --accent-soft: #f4ead3;
  --link: #2a4b8d;
  --focus: #2f6fde;
  --good: #1d7a46;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(20, 24, 33, .06), 0 4px 16px rgba(20, 24, 33, .06);
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --c-jesus: #7b4bb3; --c-resurrection: #b8572a; --c-bible: #2a6f97; --c-god: #3d7a3a;
  --c-suffering: #8f3b5e; --c-science: #2d7d7a; --c-culture: #6b5b2e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151d; --surface: #191f2b; --surface-2: #212836; --ink: #e9e7e2; --muted: #a5adbb;
    --line: #2d3545; --brand: #0c1018; --brand-ink: #f2efe8; --accent: #e3b964; --accent-soft: #2b2617;
    --link: #a3bdf2; --focus: #7aa7ff; --good: #5fcf8e; --danger: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --c-jesus: #b593e0; --c-resurrection: #ec9a74; --c-bible: #7cb8dc; --c-god: #8fcb8a;
    --c-suffering: #e08bb0; --c-science: #7bd0cc; --c-culture: #cfbf8a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.page { padding-block: 28px 56px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.spacer { flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.loading { padding: 3rem 1.5rem; color: var(--muted); }
.icon { display: inline-flex; vertical-align: -3px; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: #e0b65a; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; }
.brand-mark::before { left: 11px; top: 5px; width: 4px; height: 16px; }
.brand-mark::after { left: 6px; top: 9px; width: 14px; height: 4px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .94rem; opacity: .85; white-space: nowrap; }
.main-nav .nav-home, .main-nav .nav-mobile { display: none; }
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; font-size: .94rem; color: inherit; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; opacity: .85; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.nav-drop-btn:hover, .nav-drop-btn.active, .nav-drop-btn[aria-expanded=true] { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav-drop-btn[aria-expanded=true] .icon { transform: rotate(180deg); }
.nav-menu { position: absolute; left: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 250px; z-index: 40; }
.main-nav .nav-menu a { color: var(--ink); opacity: 1; display: flex; gap: 10px; align-items: center; padding: 9px 10px; }
.main-nav .nav-menu a:hover, .main-nav .nav-menu a.active { background: var(--surface-2); }
.nav-menu .step { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }
@media (prefers-color-scheme: dark) { .nav-menu .step { background: var(--accent); color: #1a1407; } }
.main-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.main-nav a.active { opacity: 1; background: rgba(255, 255, 255, .14); }
.main-nav .kids-link { background: #ffcf4a; color: #3a2a00; opacity: 1; font-weight: 700; margin-left: 6px; border-radius: 999px; }
.main-nav .kids-link:hover { background: #ffd966; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1100px) {
  .main-nav .nav-home, .main-nav .nav-mobile { display: block; }
  .nav-drop-btn { display: none; }
  .nav-menu { position: static; display: block !important; background: none; color: inherit; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav-menu::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; padding: 10px 12px 2px; }
  .main-nav .nav-menu a { color: inherit; padding: 10px 12px; }
  .main-nav .nav-menu a:hover, .main-nav .nav-menu a.active { background: rgba(255, 255, 255, .12); }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--brand); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav .kids-link { margin: 8px 0 0; text-align: center; }
}
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; margin-top: 24px; }
.site-footer blockquote { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 12px; max-width: 60ch; }
.site-footer cite { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- Buttons, inputs, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .95rem; font-weight: 600;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
@media (prefers-color-scheme: dark) { .btn { background: var(--accent); border-color: var(--accent); color: #1a1407; } }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.small { padding: 6px 11px; font-size: .86rem; }
.btn.big { padding: 13px 22px; font-size: 1.05rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.icon-btn { padding: 6px 8px; background: transparent; color: var(--muted); border-color: var(--line); }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); filter: none; }
.fav.on { color: #c98a00; border-color: #e6c46e; background: var(--accent-soft); }
.fav.on svg { fill: currentColor; }
input[type=text], input[type=search], textarea, select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; width: 100%;
}
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-decoration: none; letter-spacing: .02em; background: var(--surface-2); color: var(--muted); }
.badge.cat { color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 13%, transparent); }
.cat-jesus { --c: var(--c-jesus); } .cat-resurrection { --c: var(--c-resurrection); } .cat-bible { --c: var(--c-bible); }
.cat-god { --c: var(--c-god); } .cat-suffering { --c: var(--c-suffering); } .cat-science { --c: var(--c-science); } .cat-culture { --c: var(--c-culture); }
.badge.aud { text-transform: capitalize; font-weight: 600; border: 1px solid var(--line); background: transparent; }
.aud-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.qa-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }

#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: #1c2333; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none;
  transition: .2s; z-index: 200; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Home ---------- */
.hero { background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 85%, var(--bg))); color: var(--brand-ink); padding-block: 48px 64px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; }
.hero .eyebrow { color: #e0b65a; }
.hero .lead { color: rgba(255, 255, 255, .8); }
.search { position: relative; max-width: 680px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input { padding: 14px 16px 14px 44px !important; font-size: 1.05rem !important; border-radius: 12px !important; }
.hero .search-input { border: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: -36px; margin-bottom: 28px; position: relative; }
.ev-tools { margin-top: 20px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--accent); transition: transform .15s; }
.tool:hover { transform: translateY(-2px); }
.tool h2 { font-size: 1.15rem; margin-bottom: .3em; }
.tool p { color: var(--muted); font-size: .93rem; flex: 1; }
.tool-go { font-weight: 700; font-size: .9rem; color: var(--link); display: inline-flex; gap: 4px; align-items: center; }
.tool-kids { border-top-color: #ffb800; }
.tool-evidence { border-top-color: var(--c-resurrection); }
.tool-study { border-top-color: var(--c-science); }
.section { margin-block: 28px 36px; }
.section-heading { margin-bottom: 16px; }
.section-heading p { margin: 0; }
.result-status { margin-top: 8px; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .qa-grid { grid-template-columns: 1fr; } }
.qa-card, .obj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.qa-card h3 { margin-bottom: .4em; }
.qa-card h3 a, .obj-card h2 a { color: var(--ink); text-decoration: none; }
.qa-card h3 a:hover, .obj-card h2 a:hover { color: var(--link); text-decoration: underline; }
.qa-answer { flex: 1; font-size: .97rem; }
.qa-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.cat-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-left: 4px solid var(--c); }
.cat-block h3 { display: flex; justify-content: space-between; align-items: center; }
.cat-block h3 a { color: var(--ink); text-decoration: none; }
.count { font-family: var(--sans); font-size: .8rem; background: var(--surface-2); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
details.quick { border-top: 1px solid var(--line); padding: 8px 0; }
details.quick summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 20px; position: relative; }
details.quick summary::-webkit-details-marker { display: none; }
details.quick summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--muted); font-weight: 400; }
details.quick[open] summary::after { content: "–"; }
details.quick p { margin: 8px 0 6px; font-size: .95rem; }

/* ---------- Library ---------- */
.page-head { margin-bottom: 22px; }
.filters { display: grid; gap: 12px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters .search { max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-right: 4px; min-width: 70px; }
.chip { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .chip.on { background: var(--accent); color: #1a1407; border-color: var(--accent); } }
.card-list { display: grid; gap: 12px; }
.obj-card h2 { font-size: 1.25rem; margin-bottom: .35em; }
.popover-wrap { position: relative; }
.popover { position: absolute; right: 0; bottom: calc(100% + 6px); width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 12px; z-index: 30; }
.popover-title { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.popover .row { flex-wrap: nowrap; margin-top: 8px; }
.popover input { padding: 6px 9px; font-size: .9rem; }
label.check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-size: .95rem; }
label.check input { margin-top: 5px; }

/* ---------- Detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: .92rem; margin-bottom: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main section { margin-bottom: 28px; }
.detail-main p { max-width: 70ch; }
.short-answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.short-answer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); color: var(--accent); }
.short-answer p:first-of-type { font-size: 1.12rem; }
.short-answer .simple { font-size: .95rem; margin-bottom: 0; }
.evidence-list li { padding-left: 4px; }
.quote { margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid var(--line); background: var(--surface); border-radius: 0 10px 10px 0; }
.quote p { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 6px; }
.quote cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.side-box h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); color: var(--muted); }
.scripture-list, .link-list { list-style: none; padding: 0; margin: 0; }
.scripture-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.scripture-list li:first-child { border-top: 0; }
.scripture-list .muted { font-size: .9rem; }
.ref { font-weight: 700; }
.link-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }

/* ---------- Presentation ---------- */
body.theme-present { background: #10141c; color: #f1eee8; overflow: hidden; }
.present { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.present-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #aab2c2; font-size: .9rem; }
.present-bar .btn.ghost { color: #dfe3ea; border-color: #2f3747; }
.present-bar .btn.ghost:hover { background: #222a38; }
.present-name { font-family: var(--serif); }
.present-counter { font-variant-numeric: tabular-nums; margin-right: 8px; }
.slide { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3vh 7vw; overflow: auto; cursor: default; }
.slide > div { max-width: 1100px; width: 100%; }
.slide h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.1; }
.slide h2 { font-size: clamp(1rem, 1.6vw, 1.3rem); text-transform: uppercase; letter-spacing: .14em; color: #e0b65a; font-family: var(--sans); margin-bottom: 1em; }
.slide .eyebrow { color: #e0b65a; font-size: clamp(.8rem, 1.4vw, 1.1rem); }
.slide-big { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.35; }
.slide ul, .slide ol { font-size: clamp(1.15rem, 2.3vw, 1.8rem); line-height: 1.45; }
.slide li { margin-bottom: .55em; }
.slide a { color: #9fc0ff; }
.slide-refs { list-style: none; padding: 0; }
.slide-refs li { display: flex; flex-direction: column; }
.slide-refs span { color: #b8bfcc; font-size: .8em; }
.slide blockquote { margin: 0 0 1em; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; }
.slide cite { display: block; font-style: normal; color: #aab2c2; font-size: .55em; margin-top: .6em; font-family: var(--sans); }
.present-track { height: 4px; background: #222a38; }
.present-progress { height: 100%; background: #e0b65a; transition: width .25s; }
.present-hint { text-align: center; color: #6f7889; font-size: .8rem; margin: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .present-name, .present-hint { display: none; } }

/* ---------- Lists ---------- */
.new-list { max-width: 520px; flex-wrap: nowrap; margin-bottom: 16px; }
.list-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.list-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.list-name { font-family: var(--serif); font-size: 1.15rem !important; font-weight: 600; border-color: transparent !important; padding-left: 4px !important; }
.list-name:hover, .list-name:focus { border-color: var(--line) !important; }
.list-items { margin-bottom: 12px; }
.list-items li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.list-items li a { flex: 1; }
.list-item-actions { display: flex; gap: 4px; }
.confirm { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }

/* ---------- Evidence ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 600; font-size: .95rem; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.intro p { font-size: 1.1rem; max-width: 70ch; }
.section-intro { color: var(--muted); max-width: 70ch; }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; scroll-margin-top: 80px; }
.ev-card summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.ev-card summary::-webkit-details-marker { display: none; }
.ev-title { font-weight: 700; font-family: var(--serif); font-size: 1.1rem; flex: 1 1 260px; }
.ev-meta { color: var(--muted); font-size: .85rem; }
.ev-card summary .icon { transition: transform .2s; color: var(--muted); }
.ev-card[open] summary .icon { transform: rotate(180deg); }
.ev-body { padding: 0 18px 16px; }
.ev-body p { max-width: 72ch; }
.summary { font-weight: 600; }
.cite { font-size: .9rem; color: var(--muted); }
.significance { background: var(--accent-soft); padding: 10px 14px; border-radius: 8px; }
.related { font-size: .9rem; margin-top: 10px; }
.related-label { color: var(--muted); font-weight: 600; }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: none; } }
.fact-list { list-style: none; padding: 0; counter-reset: fact; }
.fact-list > li { counter-increment: fact; position: relative; padding-left: 46px; }
.fact-list > li::before { content: counter(fact); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
@media (prefers-color-scheme: dark) { .fact-list > li::before { background: var(--accent); color: #1a1407; } }
.timeline { list-style: none; padding: 0; position: relative; margin-top: 16px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 104px 1fr; gap: 28px; margin-bottom: 18px; position: relative; scroll-margin-top: 80px; }
.tl-item::before { content: ""; position: absolute; left: 112px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c, var(--accent)); }
.tl-event { --c: var(--c-resurrection); } .tl-writing { --c: var(--c-bible); } .tl-source { --c: var(--c-jesus); } .tl-manuscript { --c: var(--c-science); }
.tl-date { text-align: right; font-weight: 700; font-size: .9rem; color: var(--muted); padding-top: 2px; }
.tl-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tl-content h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-content p { margin-bottom: .4em; }
.tl-kind { font-family: var(--sans); color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.kind-event { --c: var(--c-resurrection); } .kind-writing { --c: var(--c-bible); } .kind-source { --c: var(--c-jesus); } .kind-manuscript { --c: var(--c-science); }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .tl-item::before { left: 0; }
  .tl-date { text-align: left; }
}
.map-layout { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .map-layout { grid-template-columns: 1fr; } .map-frame { max-width: 360px; margin: 0 auto; } }
.map-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.place-map { width: 100%; height: auto; display: block; }
.map-land { fill: #efe6cf; }
.map-sea { fill: #bfd8ea; }
.map-coast { fill: none; stroke: #8fb3cc; stroke-width: 1.5; }
.map-water { fill: #9cc4e2; }
.map-river { fill: none; stroke: #7fb0d6; stroke-width: 2.5; }
.map-region { font: 700 10px var(--sans); letter-spacing: .2em; fill: #a69468; }
.map-label-sm { font: italic 9px var(--sans); fill: #5e86a3; }
.map-arrow { stroke: #a69468; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
@media (prefers-color-scheme: dark) {
  .map-land { fill: #2a2e26; } .map-sea { fill: #1b2d3d; } .map-coast { stroke: #36536b; } .map-water { fill: #2a4c69; }
  .map-river { stroke: #3f6d92; } .map-region { fill: #7d7558; } .map-label-sm { fill: #7aa3c2; } .map-arrow { stroke: #7d7558; }
}
.pin { cursor: pointer; outline: none; }
.pin circle { fill: var(--c-resurrection); stroke: #fff; stroke-width: 2; transition: r .15s; }
.pin text { font: 600 11px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.pin:hover circle, .pin:focus circle, .pin.on circle { r: 9; fill: var(--accent); }
.pin:focus-visible text { text-decoration: underline; }
.place-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 200px; }
.place-index { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: .92rem; }
.table-scroll { overflow-x: auto; margin-bottom: 8px; position: relative; }
.theory-table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.theory-table caption { text-align: left; font-weight: 700; padding: 0 0 10px; font-family: var(--serif); font-size: 1.1rem; }
.theory-table th, .theory-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: .9rem; }
.theory-table th[scope=row] { text-align: left; font-weight: 600; }
.theory-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); vertical-align: bottom; }
.theory-table thead th:first-child { text-align: left; }
.theory-table td { font-size: 1.2rem; }
.m-yes { color: var(--good); } .m-partial { color: var(--accent); } .m-no { color: var(--muted); opacity: .6; }
.theory-table tr.highlight { background: var(--accent-soft); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; scroll-margin-top: 80px; }

/* ---------- Study Builder ---------- */
.study-form { display: grid; gap: 22px; }
.study-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.field label, .field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: block; padding: 8px 14px; font-size: .92rem; border-right: 1px solid var(--line); cursor: pointer; }
.seg-opt:last-child span { border-right: 0; }
.seg-opt input:checked + span { background: var(--brand); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .seg-opt input:checked + span { background: var(--accent); color: #1a1407; } }
.seg-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.topic-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.topic-picker fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 16px; margin: 0; }
.topic-picker legend { font-weight: 700; font-family: var(--serif); padding: 0 6px; }
.aud-hint { display: block; font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.topic-picker label.check { flex-wrap: wrap; }
.study-submit { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.study-submit p { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.toolbar .back { margin: 0; }
.outline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 44px); max-width: 860px; }
.outline header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; }
.goal { margin: 0; }
.outline-sec { margin-bottom: 26px; break-inside: avoid-page; }
.outline-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sec-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 700 .85rem var(--sans); flex: none; }
@media (prefers-color-scheme: dark) { .sec-num { background: var(--accent); color: #1a1407; } }
.sec-min { margin-left: auto; font: 600 .85rem var(--sans); color: var(--muted); }
.teach-topic { padding: 4px 0 8px 14px; border-left: 3px solid var(--accent-soft); margin-bottom: 14px; }
.teach-topic h4 { font-size: 1.05rem; }
.study-evidence ul { font-size: .92rem; }
.outline-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }

/* ================= Kids Zone ================= */
body.theme-kids {
  --k-ink: #2b2240; --k-sun: #ffcf4a; --k-sky: #d9f1ff; --k-btn: #6c4cf5; --k-btn-ink: #fff; --k-card: #ffffff;
  color-scheme: light;
  background: linear-gradient(180deg, #bfe7ff 0, #e6f6ff 280px, #fff9e8 700px) fixed, #fff9e8;
  color: var(--k-ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: 19px;
}
.theme-kids h1, .theme-kids h2, .theme-kids h3 { font-family: inherit; font-weight: 800; letter-spacing: 0; }
.theme-kids a { color: #4a2fd0; }
.kids-header { background: #6c4cf5; color: #fff; box-shadow: 0 4px 0 #5536d6; }
.kids-brand { color: #fff !important; text-decoration: none; font-weight: 900; font-size: 1.35rem; }
.kids-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.kids-nav a { color: #fff !important; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.kids-nav a:hover { background: rgba(255, 255, 255, .18); }
.kids-nav .grownups { background: rgba(0, 0, 0, .18); font-size: .82rem; }
@media (max-width: 520px) { .kids-header .header-inner { flex-wrap: wrap; padding-block: 8px; } .kids-nav { margin-left: 0; } }
.kids-page { padding-block: 22px 60px; }
.k-hero { text-align: center; padding: 18px 0 8px; }
.k-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: .2em; }
.k-hero > p { font-size: 1.15rem; }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; font-size: 1.05rem;
  background: var(--k-btn); color: var(--k-btn-ink) !important; border: 0; border-radius: 16px; padding: 13px 24px; cursor: pointer;
  box-shadow: 0 5px 0 #4a2fd0; text-decoration: none; transition: transform .08s;
}
.k-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #4a2fd0; }
.k-btn:disabled { background: #c9c2e8; box-shadow: 0 5px 0 #b0a8d8; cursor: not-allowed; }
.k-btn.soft { background: #fff; color: #4a2fd0 !important; box-shadow: 0 4px 0 #d6cff7; border: 2px solid #d6cff7; }
.k-btn.small { padding: 7px 14px; font-size: .9rem; border-radius: 12px; }
.k-profiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; margin: 14px 0; }
.k-who { font-weight: 800; width: 100%; }
.k-profile { font: inherit; font-weight: 800; background: #fff; border: 3px solid #e3dcff; border-radius: 999px; padding: 6px 16px 6px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--k-ink); }
.k-profile.on { border-color: #6c4cf5; background: #efeaff; }
.k-profile.add { padding: 8px 16px; color: #4a2fd0; border-style: dashed; }
.k-profile-emoji { font-size: 1.5rem; }
.k-add { width: 100%; max-width: 440px; margin: 8px auto 0; background: #fff; border-radius: 20px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 6px 0 #e3dcff; }
.k-add input { font: inherit; font-size: 1.1rem; border: 3px solid #e3dcff; border-radius: 14px; padding: 10px 14px; width: 100%; color: var(--k-ink); background: #fff; }
.k-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.k-avatar { font-size: 1.7rem; background: #f6f3ff; border: 3px solid transparent; border-radius: 14px; width: 52px; height: 52px; cursor: pointer; }
.k-avatar.on { border-color: #6c4cf5; background: #fff; }

/* story colors */
.k-green { --k-c: #3fb56a; --k-c2: #e2f7e8; } .k-blue { --k-c: #3b8fe5; --k-c2: #e0efff; } .k-orange { --k-c: #f08a24; --k-c2: #ffefdc; }
.k-purple { --k-c: #8b5cf6; --k-c2: #efe7ff; } .k-teal { --k-c: #14a6a0; --k-c2: #dcf6f4; } .k-yellow { --k-c: #e3a600; --k-c2: #fff5cf; }
.k-pink { --k-c: #e2589a; --k-c2: #ffe5f1; }
.k-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin-top: 18px; }
.k-story-card {
  background: #fff; border-radius: 24px; padding: 18px 16px 16px; text-decoration: none; color: var(--k-ink) !important; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 7px 0 var(--k-c); border: 3px solid var(--k-c); transition: transform .12s;
}
.k-story-card:hover { transform: translateY(-4px) rotate(-1deg); }
.k-cover { font-size: 4rem; line-height: 1.1; background: var(--k-c2); border-radius: 50%; width: 110px; height: 110px; display: grid; place-items: center; margin-bottom: 6px; }
.k-story-title { font-weight: 900; font-size: 1.15rem; line-height: 1.2; }
.k-ref { font-size: .82rem; opacity: .7; }
.stars { display: inline-flex; gap: 2px; font-size: 1.35rem; letter-spacing: 0; }
.star { color: #d9d3ea; }
.star.on { color: #ffb800; text-shadow: 0 1px 0 #d48f00; }
.k-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.k-title-sm { font-weight: 900; font-size: 1.05rem; flex: 1; }
.k-dots { display: inline-flex; gap: 6px; }
.k-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--k-c, #6c4cf5); }
.k-dots .dot.past { background: var(--k-c, #6c4cf5); opacity: .5; }
.k-dots .dot.on { background: var(--k-c, #6c4cf5); transform: scale(1.25); }
.k-scene { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--k-c, #6c4cf5); border: 3px solid var(--k-c, #6c4cf5); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .k-scene { grid-template-columns: 1fr; } }
.k-art { min-height: 300px; display: grid; place-items: center; font-size: clamp(3.5rem, 11vw, 6rem); text-align: center; padding: 20px; line-height: 1.2; word-break: break-word; }
.k-art span { animation: float 4s ease-in-out infinite; display: inline-block; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 760px) { .k-art { min-height: 200px; } }
.k-text { padding: 26px; }
.k-text h2 { font-size: 1.6rem; color: var(--k-c, #6c4cf5); }
.k-text p { font-size: 1.2rem; line-height: 1.6; }
.k-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.k-question { background: var(--k-c2, #efe7ff); border-radius: 20px; padding: 16px; margin-top: 16px; }
.k-q { font-weight: 900; font-size: 1.2rem; margin-bottom: 10px; }
.k-choices { display: grid; gap: 10px; }
.k-choice { font: inherit; font-weight: 800; font-size: 1.1rem; text-align: left; background: #fff; color: var(--k-ink); border: 3px solid #ddd5f5; border-radius: 16px; padding: 12px 16px; cursor: pointer; }
.k-choice:hover:not(:disabled) { border-color: var(--k-c, #6c4cf5); }
.k-choice.right { background: #dcf7e5; border-color: #2fb366; }
.k-choice.right::after { content: "  ✓"; color: #1e8d4c; }
.k-choice.wrong { background: #ffe3e3; border-color: #f2a3a3; opacity: .75; animation: shake .35s; }
.k-choice:disabled:not(.right) { cursor: default; }
.k-feedback { font-weight: 800; min-height: 1.6em; margin: 10px 0 0; }
.k-feedback.good { color: #1e8d4c; }
.k-feedback.try { color: #c2410c; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.shake { animation: shake .35s; }
.k-done { text-align: center; background: #fff; border-radius: 28px; padding: 28px 20px; box-shadow: 0 8px 0 var(--k-c, #6c4cf5); border: 3px solid var(--k-c, #6c4cf5); margin-top: 8px; }
.k-done.small-done { margin-top: 24px; }
.k-done .stars { font-size: 2.2rem; margin-bottom: 10px; }
.k-big-emoji { font-size: 5rem; line-height: 1.1; }
.k-takeaway { font-size: 1.2rem; font-weight: 700; max-width: 34ch; margin: 8px auto 16px; }
.k-verse { background: var(--k-c2, #fff5cf); border-radius: 20px; padding: 16px 20px; max-width: 520px; margin: 0 auto 20px; }
.k-verse-label { text-transform: uppercase; font-weight: 900; letter-spacing: .08em; font-size: .8rem; color: var(--k-c, #6c4cf5); margin: 0; }
.k-verse-text { font-size: 1.3rem; font-weight: 800; margin: 6px 0; }
.k-verse-ref { font-weight: 700; opacity: .75; }
.k-activities { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 18px; text-align: center; }
.k-activity { background: #fff; border: 3px solid #e3dcff; border-radius: 20px; padding: 14px 10px; text-decoration: none; color: var(--k-ink) !important; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 5px 0 #e3dcff; }
.k-activity:hover { border-color: #6c4cf5; }
.k-activity.done { border-color: #ffcf4a; box-shadow: 0 5px 0 #ffcf4a; }
.k-act-emoji { font-size: 2.3rem; }
.k-act-name { font-weight: 900; font-size: 1.1rem; }
.k-act-text { font-size: .85rem; opacity: .75; }
.k-act-star { font-weight: 900; color: #d48f00; }
.k-stage { display: grid; gap: 14px; }
.k-card { background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 6px 0 #e3dcff; }
.k-card.center { text-align: center; }
.k-card .k-question { margin-top: 0; background: none; padding: 0; }
.k-progress { font-weight: 800; margin: 0; opacity: .8; }
.k-score { font-size: 1.4rem; font-weight: 900; }
.k-placed { display: grid; gap: 8px; padding-left: 1.6em; margin: 0; font-weight: 800; }
.k-placed-item { background: #dcf7e5; border: 3px solid #2fb366; border-radius: 14px; padding: 10px 14px; animation: pop .25s; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.k-pool { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.k-order-card { font: inherit; font-weight: 800; font-size: 1.05rem; background: #fff; border: 3px dashed var(--k-c, #6c4cf5); border-radius: 16px; padding: 14px; cursor: pointer; color: var(--k-ink); min-height: 64px; }
.k-order-card:hover { background: var(--k-c2, #efe7ff); }
.k-memory { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); max-width: 560px; width: 100%; margin: 0 auto; }
.k-memory.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .k-memory.cols-4 { grid-template-columns: repeat(3, 1fr); } }
.k-mem { aspect-ratio: 1 / 1.1; border: 0; border-radius: 18px; cursor: pointer; font: inherit; position: relative; background: var(--k-c, #6c4cf5); box-shadow: 0 5px 0 rgba(0, 0, 0, .18); color: #fff; padding: 0; }
.k-mem-front { font-size: 2rem; font-weight: 900; }
.k-mem-back { display: none; flex-direction: column; align-items: center; justify-content: center; position: absolute; inset: 0; background: #fff; border-radius: 18px; border: 3px solid var(--k-c, #6c4cf5); color: var(--k-ink); }
.k-mem.flip .k-mem-front { display: none; }
.k-mem.flip .k-mem-back { display: flex; animation: pop .2s; }
.k-mem.matched .k-mem-back { background: #dcf7e5; border-color: #2fb366; }
.k-mem-emoji { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.k-mem-label { font-size: .8rem; font-weight: 800; }
.k-find { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 3px solid var(--k-c, #6c4cf5); box-shadow: 0 6px 0 var(--k-c, #6c4cf5); max-width: 760px; margin: 0 auto; }
.k-find-item { position: absolute; transform: translate(-50%, -50%); font-size: clamp(1.9rem, 6.5vw, 3.2rem); background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 50%; line-height: 1; }
.k-find-item:hover { transform: translate(-50%, -50%) scale(1.12); }
.k-find-item.got { background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 4px #2fb366; }
.k-find-item.got::after { content: "✓"; position: absolute; right: -4px; top: -6px; font-size: 1rem; background: #2fb366; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.k-find-item.shake { animation: shake-c .35s; }
@keyframes shake-c { 20%, 60% { transform: translate(calc(-50% - 6px), -50%); } 40%, 80% { transform: translate(calc(-50% + 6px), -50%); } }
.k-h2 { text-align: center; margin-top: 28px; }
.k-total { font-size: 1.4rem; font-weight: 900; }
.k-total .star { font-size: 1.8rem; }
.k-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.k-badge { background: #fff; border-radius: 20px; padding: 16px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; border: 3px solid #ece8f6; opacity: .75; }
.k-badge.earned { border-color: #ffcf4a; box-shadow: 0 5px 0 #ffcf4a; opacity: 1; }
.k-badge-emoji { font-size: 2.6rem; }
.k-badge:not(.earned) .k-badge-emoji { filter: grayscale(1); opacity: .6; }
.k-badge-name { font-weight: 900; }
.k-badge-text { font-size: .82rem; opacity: .8; }
.k-star-list { display: grid; gap: 8px; max-width: 620px; margin: 0 auto; }
.k-star-row { display: flex; gap: 12px; align-items: center; background: #fff; padding: 10px 16px; border-radius: 16px; text-decoration: none; color: var(--k-ink) !important; font-weight: 800; }
.k-star-row > span:first-child { font-size: 1.8rem; }
.grow { flex: 1; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti span { position: absolute; top: -40px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.theme-kids #toast { background: #6c4cf5; font-weight: 800; font-size: 1.05rem; }

/* scene backgrounds */
.bg-sky { background: linear-gradient(#8fd3ff, #d9f1ff); }
.bg-night { background: radial-gradient(circle at 70% 30%, #3c3f8f, #12133a); }
.bg-grass { background: linear-gradient(#bfe8ff 0 45%, #8ed16f 45%); }
.bg-garden { background: linear-gradient(#c9f0ff 0 40%, #7ecb6a 40%); }
.bg-sunset { background: linear-gradient(#ff9a76, #ffd36e 65%, #ffe9b0); }
.bg-storm { background: linear-gradient(#5d6b85, #8a9bb5 55%, #3b6ea8 55%); }
.bg-sea { background: linear-gradient(#a6dcff 0 30%, #3d9bdc 30%, #1f6fb0); }
.bg-desert { background: linear-gradient(#ffe4a8 0 50%, #e8b96a 50%); }
.bg-river { background: linear-gradient(#bde5ff 0 40%, #8ed16f 40% 62%, #59b3e8 62%); }
.bg-cave { background: radial-gradient(circle at 50% 30%, #8a7558, #3d3226); }
.bg-palace { background: linear-gradient(#f4d9a6, #c99b5a); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; --accent-soft: #f3f3f3; --link: #000; color-scheme: light; }
  body { font-size: 11.5pt; background: #fff; }
  .site-header, .site-footer, .no-print, .detail-actions, .back, .qa-actions, .toolbar, .tabs, .filters, .popover-wrap, #toast { display: none !important; }
  .page { padding: 0; }
  .outline { border: 0; padding: 0; max-width: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-box, .short-answer, .quote { border: 1px solid #bbb; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .sec-num { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details > *:not(summary) { display: block !important; }
}
.k-settings { margin: 36px auto 0; max-width: 620px; background: #fff; border-radius: 18px; padding: 12px 18px; font-size: .95rem; }
.k-settings summary { cursor: pointer; font-weight: 800; }
.k-settings p { margin: 8px 0; }
.k-select { font: inherit; font-size: .95rem; border: 2px solid #e3dcff; border-radius: 10px; padding: 6px 10px; max-width: 100%; background: #fff; color: var(--k-ink); }

/* ---------- Who Is Jesus? ---------- */
.tool-jesus { border-top-color: var(--c-deity); }
:root { --c-deity: #a0522d; }
@media (prefers-color-scheme: dark) { :root { --c-deity: #e3a37a; } }
.cat-deity { --c: var(--c-deity); }
.jesus .lead p { margin-bottom: .6em; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.core-card { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--accent); }
.core-card h3 { margin-bottom: .3em; }
.core-card p { margin-bottom: .5em; }
.jump { margin: 8px 0 18px; }
.jump .chip { text-decoration: none; }
.part-title { font-size: 1.7rem; margin: 30px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.claim-group { margin: 26px 0 34px; scroll-margin-top: 80px; }
.claim-group h2 { display: flex; align-items: center; gap: 10px; }
.claim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .claim-grid { grid-template-columns: 1fr; } }
.claim { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c-deity); border-radius: var(--radius); padding: 16px 18px; scroll-margin-top: 80px; }
.claim h3 { margin-bottom: .4em; }
.claim > p { font-size: .97rem; }
.claim-refs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.claim-refs li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.claim-refs li:last-child { border-bottom: 0; }
.claim-refs .muted { font-size: .88rem; }
#g-challenges { scroll-margin-top: 80px; }
@media print {
  .claim, .core-card { break-inside: avoid; border: 1px solid #bbb; }
  .claim-grid, .core-grid { display: block; }
  .claim { margin-bottom: 10px; }
}

/* ---------- Is There a God? ---------- */
:root { --c-god-page: #3d6f8f; }
@media (prefers-color-scheme: dark) { :root { --c-god-page: #8fbcd9; } }
.tool-god { border-top-color: var(--c-god-page); }
.anchor { scroll-margin-top: 80px; }
.arg-list { display: grid; gap: 18px; margin-top: 12px; }
.argument { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); border-top: 4px solid var(--c-god-page); scroll-margin-top: 80px; }
.argument h3 { font-size: 1.35rem; margin-bottom: .2em; }
.arg-short { font-weight: 600; margin-bottom: .3em; }
.syllogism { counter-reset: prem; list-style: none; padding: 14px 18px; margin: 14px 0; background: var(--surface-2); border-radius: 10px; font-family: var(--serif); font-size: 1.08rem; }
.syllogism li { counter-increment: prem; position: relative; padding-left: 2em; margin-bottom: .45em; }
.syllogism li::before { content: counter(prem) "."; position: absolute; left: 0; font-weight: 700; color: var(--c-god-page); }
.syllogism li.conclusion { border-top: 1px solid var(--line); padding-top: .5em; margin-top: .6em; font-weight: 700; }
.argument > p { max-width: 75ch; }
.arg-more { border-top: 1px solid var(--line); padding: 4px 0; }
.arg-more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 700; color: var(--link); }
.arg-more > summary::-webkit-details-marker { display: none; }
.arg-more[open] > summary .icon { transform: rotate(180deg); }
.arg-point { padding: 2px 0 10px 14px; border-left: 3px solid var(--line); margin-bottom: 10px; }
.arg-point h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 .3em; }
.arg-point p { margin-bottom: .5em; max-width: 72ch; }
.arg-foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.arg-foot p { margin-bottom: .4em; }
.sources summary { cursor: pointer; color: var(--muted); }
.sources ul { margin: 6px 0 0; color: var(--muted); }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
@media (max-width: 420px) { .design-grid { grid-template-columns: 1fr; } }
.design { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c-god-page); border-radius: var(--radius); padding: 16px 18px; scroll-margin-top: 80px; }
.design ul { padding-left: 1.1em; font-size: .96rem; }
.design-note { background: var(--accent-soft); padding: 8px 12px; border-radius: 8px; }
@media print {
  .argument, .design { break-inside: avoid; border: 1px solid #bbb; }
  .design-grid { display: block; }
  .design { margin-bottom: 10px; }
}
.sources-list a { font-size: .92rem; }

/* ---------- What We Believe ---------- */
.gospel-box { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 8px 0 28px; }
.gospel-box h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); color: var(--accent); }
.gospel-box p { font-size: 1.08rem; max-width: 75ch; }
.gospel-box p.small { font-size: .9rem; margin-bottom: 0; }
.home-gospel { margin-top: 0; }
.dividing { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); }
@media (prefers-color-scheme: dark) { .dividing { border-top-color: var(--accent); } }
.dividing p { max-width: 75ch; }
.belief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .belief-grid { grid-template-columns: 1fr; } }
.belief { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.belief p { font-size: .97rem; margin-bottom: .5em; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 760px; background: var(--surface); border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.compare-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare-table th[scope=row] { font-family: var(--serif); font-size: 1rem; width: 16%; }
.compare-table tr.highlight { background: var(--accent-soft); }
.compare-table { min-width: 940px; }
.compare-table th.test-col { color: var(--ink); }
.test-cell { width: 24%; }
.test-cell .test-badge { display: inline-block; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.test-cell.pass .test-badge { background: #e2f1e6; color: #1f6b3a; }
.test-cell.fail .test-badge { background: #f8e3e1; color: #8a2a22; }
.test-cell span:last-child { display: block; }
.test-intro { font-weight: 600; }
@media (prefers-color-scheme: dark) { .test-cell.pass .test-badge { background: #1d3b27; color: #9fdcb2; } .test-cell.fail .test-badge { background: #3e1f1d; color: #f2aaa3; } }
.closing { font-family: var(--serif); font-size: 1.08rem; }
.faith-line { max-width: 75ch; font-size: .95rem; }
@media print { .compare-table { min-width: 0; } }

/* ---------- Kids Zone games ---------- */
.g-hud { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: 0 4px 0 #e3dcff; font-weight: 800; }
.g-hud .g-bar { flex: 1; }
.g-bar { height: 14px; background: #ece8f6; border-radius: 999px; overflow: hidden; }
.g-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffb800, #ff7a59); border-radius: 999px; transition: width .4s; }
.g-streak.hot { color: #e85d04; animation: pop .3s; }
.g-quiz-card { background: #fff; border-radius: 28px; padding: 24px; box-shadow: 0 8px 0 var(--k-c, #6c4cf5); border: 3px solid var(--k-c, #6c4cf5); position: relative; }
.g-qnum { font-weight: 800; opacity: .7; margin: 0; }
.g-question { font-size: clamp(1.3rem, 4vw, 1.8rem); margin: .3em 0 .5em; padding-right: 64px; }
.g-choices { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .g-quiz-card .g-choices { grid-template-columns: 1fr 1fr; } }
.g-choice { font: inherit; font-weight: 800; font-size: 1.12rem; text-align: left; background: #fff; color: var(--k-ink); border: 3px solid #ddd5f5; border-radius: 18px; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 0 #ddd5f5; transition: transform .08s; }
.g-choice:hover:not(:disabled) { border-color: var(--k-c, #6c4cf5); transform: translateY(-2px); }
.g-choice:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #ddd5f5; }
.g-choice.right { background: #dcf7e5; border-color: #2fb366; box-shadow: 0 4px 0 #2fb366; animation: pop .3s; }
.g-choice.wrong { background: #ffe3e3; border-color: #f2a3a3; opacity: .7; }
.g-choice:disabled:not(.right) { cursor: default; }
.g-letter { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--k-c2, #efe7ff); color: var(--k-c, #6c4cf5); display: grid; place-items: center; font-weight: 900; }
.g-mascot { position: absolute; top: 14px; right: 18px; font-size: 3rem; line-height: 1; }
.g-adv .g-mascot { position: static; float: right; font-size: 2.6rem; margin-left: 10px; }
.g-mascot.happy { animation: g-jump .6s; }
.g-mascot.sad { animation: shake .4s; }
@keyframes g-jump { 30% { transform: translateY(-18px) rotate(-10deg) scale(1.15); } 60% { transform: translateY(0) rotate(8deg); } }
.g-float { position: fixed; transform: translate(-50%, 0); font-weight: 900; color: #e85d04; font-size: 1.4rem; pointer-events: none; animation: g-float .9s ease-out forwards; z-index: 300; text-shadow: 0 2px 0 #fff; }
@keyframes g-float { to { transform: translate(-50%, -60px); opacity: 0; } }
.g-end h2 { margin-bottom: .2em; }
.g-stars { font-size: 3rem; letter-spacing: 6px; margin: 4px 0 8px; }
.g-stars span { color: #d9d3ea; display: inline-block; }
.g-stars span.on { color: #ffb800; text-shadow: 0 2px 0 #d48f00; animation: g-starpop .5s both; }
@keyframes g-starpop { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }

.g-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: ord; }
.g-order-card { counter-increment: ord; display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid #ddd5f5; border-radius: 18px; padding: 12px 12px 12px 14px; font-weight: 800; font-size: 1.08rem; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 4px 0 #ddd5f5; position: relative; }
.g-order-card::before { content: counter(ord); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--k-c2, #efe7ff); color: var(--k-c, #6c4cf5); display: grid; place-items: center; font-weight: 900; }
.g-order-card.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 12px 24px rgba(60, 40, 140, .25); border-color: var(--k-c, #6c4cf5); transition: none; scale: 1.03; }
.g-order-card.ok { border-color: #2fb366; background: #dcf7e5; box-shadow: 0 4px 0 #2fb366; }
.g-order-card.no { border-color: #f2a3a3; background: #fff0f0; }
.g-grip { color: #b0a8d8; font-size: 1.3rem; }
.g-order-text { flex: 1; }
.g-order-btns { display: flex; flex-direction: column; gap: 2px; }
.g-mini { font: inherit; font-size: .8rem; border: 2px solid #e3dcff; background: #fff; color: #4a2fd0; border-radius: 8px; width: 34px; height: 24px; cursor: pointer; line-height: 1; }

.g-memory { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); max-width: 560px; width: 100%; margin: 0 auto; perspective: 900px; }
.g-memory.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .g-memory.cols-4 { grid-template-columns: repeat(3, 1fr); } }
.g-mem { aspect-ratio: 1 / 1.15; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.g-mem-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.g-mem.flip .g-mem-inner { transform: rotateY(180deg); }
.g-mem-face { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.g-mem-front { background: var(--k-c, #6c4cf5) repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 10px, transparent 10px 20px); color: #fff; font-size: 1.8rem; box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.g-mem-back { background: #fff; border: 3px solid var(--k-c, #6c4cf5); transform: rotateY(180deg); color: var(--k-ink); }
.g-mem.matched .g-mem-back { background: #dcf7e5; border-color: #2fb366; animation: pop .3s; }
.g-mem-emoji { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.g-mem-label { font-size: .8rem; font-weight: 800; }

.g-find-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.g-tray { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 6px 12px; flex: 1; min-height: 52px; align-items: center; box-shadow: 0 4px 0 #e3dcff; }
.g-tray-item { font-size: 2rem; filter: grayscale(1) brightness(.4) opacity(.35); transition: filter .3s, transform .3s; }
.g-tray-item.got { filter: none; transform: scale(1.15); animation: pop .3s; }
.k-find-item.hinted { animation: g-wiggle 1s 2; }
@keyframes g-wiggle { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-18deg) scale(1.25); } 75% { transform: translate(-50%, -50%) rotate(18deg) scale(1.25); } }
.g-sparkle { position: absolute; pointer-events: none; font-size: 1.2rem; animation: g-sparkle .7s ease-out forwards; }
@keyframes g-sparkle { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); opacity: 0; } }

.g-adv-progress { display: flex; gap: 6px; justify-content: center; }
.g-adv-progress span { width: 34px; height: 8px; border-radius: 999px; background: #fff; border: 2px solid var(--k-c, #6c4cf5); }
.g-adv-progress span.past { background: var(--k-c, #6c4cf5); opacity: .55; }
.g-adv-progress span.on { background: var(--k-c, #6c4cf5); }
.g-adv-text { font-size: 1.2rem; }
.g-adv .g-choices { margin-top: 8px; }
.g-adv-feedback .k-feedback { margin-top: 12px; }

.g-catch { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 3px solid var(--k-c, #6c4cf5); box-shadow: 0 6px 0 var(--k-c, #6c4cf5); touch-action: none; user-select: none; outline: none; }
@media (max-width: 600px) { .g-catch { aspect-ratio: 3 / 4; } }
.g-catch:focus-visible { outline: 4px solid #ffb800; }
.g-catch.hurt { animation: g-hurt .35s; }
@keyframes g-hurt { 30% { box-shadow: inset 0 0 0 999px rgba(255, 60, 60, .25), 0 6px 0 var(--k-c, #6c4cf5); } }
.g-catcher { position: absolute; bottom: 4%; transform: translateX(-50%); font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; transition: left .05s linear; filter: drop-shadow(0 4px 2px rgba(0,0,0,.2)); }
.g-catcher.bump { animation: g-bump .25s; }
@keyframes g-bump { 50% { transform: translateX(-50%) scale(1.2); } }
.g-fall { position: absolute; transform: translate(-50%, -50%); font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1; pointer-events: none; }
.g-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 6px; z-index: 2; }
.g-overlay h2 { font-size: 1.8rem; margin: 0; }
.g-legend { font-size: 1.6rem; }

/* ---------- static (search-engine) pages ---------- */
.static-app { float: right; margin: 0 0 12px 16px; }
.static-page h1 { margin-top: .2em; }
.static-page section, .static-page article { margin-bottom: 22px; }
.static-page .argument, .static-page .claim, .static-page .design { margin-bottom: 14px; }
.prerendered ul { columns: 2 320px; }
@media (max-width: 1100px) {
  .main-nav.static-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; background: none; box-shadow: none; padding: 0 0 8px; }
  .site-header:has(.static-nav) .header-inner { flex-wrap: wrap; }
  .main-nav.static-nav a { padding: 6px 8px; }
  .static-app { float: none; }
}

/* ---------- The Case ---------- */
.tool-bible { border-top-color: var(--c-bible); }
.case-start { margin-top: -36px; position: relative; margin-bottom: 18px; }
.case-start .tools { margin: 0; }
.case-start-title { color: var(--brand-ink); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); margin: 0 0 10px; position: relative; top: -10px; }
.case-tools .tool { position: relative; padding-left: 58px; }
.case-num { position: absolute; left: 16px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
@media (prefers-color-scheme: dark) { .case-num { background: var(--accent); color: #1a1407; } }
.more-tools { margin-top: 0; }
.hero { padding-bottom: 84px; }
.case-steps { margin: 40px 0 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case-steps ol { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.case-steps li { margin: 0; }
.case-steps li a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.case-steps li.on a { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.case-steps li.done .step { background: var(--good); }
.case-steps .step { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
@media (prefers-color-scheme: dark) { .case-steps .step { background: var(--accent); color: #1a1407; } }
.k-play-games { font-size: 1.2rem; padding: 14px 28px; background: #ff7a59; box-shadow: 0 5px 0 #d9532f; }
.k-card-games { font-size: 1.1rem; letter-spacing: 2px; opacity: .85; }
.k-game-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.k-strip-label { font-weight: 900; margin-right: 4px; }
.k-strip-game { background: #fff; border: 2px solid #e3dcff; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--k-ink) !important; }
.k-strip-game:hover { border-color: var(--k-c, #6c4cf5); }
.k-games-list { display: grid; gap: 16px; margin-top: 12px; }
.k-games-row { background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 6px 0 var(--k-c, #6c4cf5); border: 3px solid var(--k-c, #6c4cf5); }
.k-games-story { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--k-ink) !important; }
.k-cover.small { width: 64px; height: 64px; font-size: 2.4rem; margin: 0; flex: none; }
.k-games-row .k-activities { margin-bottom: 0; }

/* ---------- Voices ---------- */
.tool-voices { border-top-color: #c4302b; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .voice-grid { grid-template-columns: 1fr; } }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.voice h3 { margin-bottom: .1em; }
.voice > p:last-of-type { flex: 1; }
.voice-links { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.yt { background: #c4302b; border-color: #c4302b; color: #fff; }
.voice-inline { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 8px; font-size: .85rem; font-style: normal; }
.voice-inline a { white-space: nowrap; font-weight: 600; }
blockquote .voice-inline { margin: 6px 0 0; display: flex; }

/* ================= Heart pages ================= */
.wrap.narrow { max-width: 760px; }
.heart-hero { background: linear-gradient(180deg, #2b2440 0%, #3d3157 60%, color-mix(in srgb, #3d3157 30%, var(--bg)) 100%); color: #f6f1e7; padding-block: 64px 56px; text-align: center; }
.heart-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; }
.heart-hero .eyebrow { color: #f0c987; }
.heart-lead p { font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 34em; margin-inline: auto; }
.heart-page .page { padding-top: 36px; }
.heart-section { margin-bottom: 44px; }
.heart-section h2 { font-size: 1.7rem; }
.heart-section > p { font-size: 1.1rem; line-height: 1.75; }
.heart-verse { border: 0; margin: 18px 0 8px; padding: 22px 26px; background: var(--accent-soft); border-radius: 16px; font-family: var(--serif); }
.heart-verse p { font-size: 1.35rem; line-height: 1.5; margin-bottom: 8px; }
.heart-verse cite { font-style: normal; font-family: var(--sans); font-size: .95rem; }
.heart-section.running { border-top: 1px solid var(--line); padding-top: 32px; }
.heart-section.story p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; }
.heart-closing { font-family: var(--serif); font-size: 1.4rem; text-align: center; margin: 40px 0 24px; }
.heart-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gospel-steps { list-style: none; padding: 0; counter-reset: gs; display: grid; gap: 14px; }
.gospel-steps li { counter-increment: gs; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 12px 64px; position: relative; }
.gospel-steps li::before { content: counter(gs); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: #3d3157; color: #fff; display: grid; place-items: center; font-weight: 700; }
.gospel-steps h3 { margin-bottom: .3em; }
.gospel-steps p { margin-bottom: .4em; }
.prayer-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 32px); }
.heart-prayer { margin: 16px 0; padding: 20px 24px; border-left: 4px solid #c9a24d; background: var(--accent-soft); border-radius: 0 14px 14px 0; }
.heart-prayer p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; margin: 0; }
.next-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.next-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.next-step h3 { font-size: 1.05rem; }
.next-step p { font-size: .95rem; margin-bottom: .5em; }
.not-ready { background: var(--surface-2); border-radius: 14px; padding: 20px; }
.crisis { background: #fdecea; color: #7a1d16; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .crisis { background: #3a1c1a; color: #ffb4ab; } }
.pray-form { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 28px); margin-bottom: 30px; }
.pray-form label { font-weight: 700; margin-top: 6px; }
.pray-form .btn { justify-self: start; margin-top: 8px; }
.pray-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; margin: 0; }
.pray-thanks { text-align: center; padding: 20px 0; }
.pray-thanks p { font-family: var(--serif); font-size: 1.2rem; }
.big-emoji { font-size: 3rem; margin: 0; }

/* Be still */
.be-still { margin: 48px 0 24px; padding: clamp(22px, 4vw, 36px); border-radius: 20px; background: linear-gradient(160deg, #2b2440, #3d3157); color: #f6f1e7; text-align: center; }
.be-still .eyebrow { color: #f0c987; }
.be-still blockquote { margin: 0 0 12px; border: 0; padding: 0; }
.be-still blockquote p { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.45; margin-bottom: 6px; }
.be-still cite { font-style: normal; }
.be-still cite a, .be-still-links a { color: #f0c987; }
.be-still-prompt { font-size: 1.05rem; opacity: .9; max-width: 34em; margin: 0 auto 18px; }
.be-still .song { margin: 0 auto 16px; max-width: 520px; }
.be-still-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; margin: 0; }
.be-still-links .btn.ghost { color: #f6f1e7; border-color: rgba(255, 255, 255, .3); }

/* Song player */
.song { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin: 12px auto; }
.song-cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; display: block; width: 100%; }
.song-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; display: block; }
.song-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(196, 48, 43, .92); color: #fff; font-size: 1.8rem; display: grid; place-items: center; padding-left: 4px; }
.song-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; text-align: left; display: flex; flex-direction: column; }
.song-label span { font-size: .9rem; opacity: .85; }
.song-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Question behind the question */
.heart-note { background: color-mix(in srgb, #3d3157 8%, var(--surface)); border: 1px solid color-mix(in srgb, #3d3157 25%, var(--line)); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.heart-note-label { font-weight: 700; color: #7a5ea8; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .heart-note-label { color: #c7b2ef; } }
.heart-note p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; margin-bottom: 0; }
.share-row { margin: 10px 0 0; }
.heart-invite { text-align: center; color: var(--muted); }
.hero-heart { margin: 16px 0 0; color: rgba(255, 255, 255, .85); }
.hero-heart a { color: #f0c987; font-weight: 600; }
.main-nav .nav-loved { color: #f6d58f; opacity: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* My One */
.one-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.one-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.one-head h2 { margin: 0; }
.one-qs ul { margin: 4px 0 0; }
.one-results { list-style: none; padding: 0; margin: 0; }
.link-btn { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 2px 0; text-align: left; }
.link-btn.small { font-size: .85rem; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.story-headline { font-family: var(--serif); font-size: 1.2rem; font-style: italic; }

.main-nav.static-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
.site-header:has(.static-nav) .header-inner { flex-wrap: wrap; padding-block: 6px; }

/* The Cross */
.cross-hero { background: linear-gradient(180deg, #1c1626 0%, #3a1f2b 55%, color-mix(in srgb, #3a1f2b 30%, var(--bg)) 100%); }
.cross-hours { list-style: none; padding: 0 0 0 28px; margin: 0; border-left: 3px solid #8b2f3c; display: grid; gap: 26px; }
.cross-hours li { position: relative; }
.cross-hours li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #8b2f3c; border: 3px solid var(--bg); }
.cross-hours h3 { font-size: 1.3rem; margin-bottom: .35em; }
.cross-hours p { font-size: 1.05rem; line-height: 1.75; }
.cross-words { display: grid; gap: 14px; margin-top: 16px; }
.cross-word { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #8b2f3c; border-radius: 0 14px 14px 0; padding: 18px 20px 8px; }
.cross-saying { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.4; margin-bottom: 2px; }
.cross-word p:last-child { margin-bottom: .6em; }
.cross-page .prayer-box input { font: inherit; font-size: 1.1rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: inherit; width: 100%; max-width: 320px; }
.cross-page .heart-prayer cite { display: block; margin-top: 8px; font-style: normal; }
.cross-sources { margin: 24px 0 40px; color: var(--muted); }
.cross-sources summary { cursor: pointer; font-weight: 600; }
@media (prefers-color-scheme: dark) { .cross-hours { border-left-color: #c46a76; } .cross-hours li::before { background: #c46a76; } .cross-word { border-left-color: #c46a76; } }

/* ================= Kids arcade ================= */
.k-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.k-btn.k-arcade-btn { background: linear-gradient(135deg, #ff7a18, #ff3d77); box-shadow: 0 5px 0 #b3264f; }
.k-arcade-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 10px 0 20px; }
.k-arcade-card { display: grid; gap: 4px; padding: 20px; border-radius: 22px; color: #fff !important; text-decoration: none; background: linear-gradient(160deg, #3a7bd5, #1d3a8a); box-shadow: 0 6px 0 #142a63; transition: transform .12s; }
.k-arcade-card:hover { transform: translateY(-3px); }
.k-arcade-card.k-arcade-ark { background: linear-gradient(160deg, #39a0e0 0%, #1f5f9e 60%, #6b3d1c 100%); }
.k-arcade-emoji { font-size: 3rem; line-height: 1; }
.k-arcade-name { font-size: 1.4rem; font-weight: 900; }
.k-arcade-text { opacity: .92; }
.k-arcade-best { justify-self: start; margin-top: 6px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .9rem; }
.k-arcade-soon { text-align: center; color: #6b6290; font-weight: 700; }
.k-strip-game.k-strip-arcade { background: linear-gradient(135deg, #ff7a18, #ff3d77); color: #fff !important; }

.arcade-page { padding-top: 12px; }
.arcade-page .k-topbar { margin-bottom: 10px; }
.arcade-mount { display: flex; justify-content: center; }
.arcade-loading { padding: 3rem 1rem; text-align: center; font-weight: 700; }
.arcade-box { position: relative; width: min(100%, calc((100dvh - 150px) * 9 / 16)); min-width: 260px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(30, 20, 80, .25); background: #6ec6ff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.arcade-canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.arcade-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; pointer-events: none; }
.arcade-overlay:empty { display: none; }
.arcade-card { pointer-events: auto; width: 100%; max-width: 320px; background: rgba(255, 255, 255, .96); color: #2a2340; border-radius: 22px; padding: 22px 20px; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: arcade-pop .25s ease-out; }
.arcade-card p { margin: 0 0 10px; line-height: 1.45; }
.arcade-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.arcade-goal { font-weight: 800; color: #6b4f00; background: #fff4cc; border-radius: 12px; padding: 6px 8px; font-size: .92rem; }
.arcade-best { font-weight: 800; color: #4a2fd0; }
.arcade-best.new { color: #d1006b; font-size: 1.1rem; }
.arcade-medal { display: grid; justify-items: center; font-size: 3.4rem; line-height: 1.1; margin-bottom: 8px; }
.arcade-medal span { font-size: 1rem; font-weight: 900; }
.arcade-stats { font-size: 1.1rem; }
.arcade-verse { font-style: italic; color: #4a3f6b; }
.arcade-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
@keyframes arcade-pop { from { transform: scale(.85); opacity: 0; } }
@media (prefers-color-scheme: dark) { .arcade-card { background: rgba(28, 24, 48, .97); color: #f1edff; } .arcade-goal { background: #3d3315; color: #ffe08a; } .arcade-best { color: #b9a8ff; } .arcade-verse { color: #cfc6ee; } }
.k-arcade-card.k-arcade-sling { background: linear-gradient(160deg, #f0a53a 0%, #c0452f 55%, #6b3d1c 100%); box-shadow: 0 6px 0 #7a2a1c; }
.arcade-hud { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 2; }
.arcade-hud[hidden] { display: none; }
.arcade-hud-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .85); color: #2a2340; font-size: 1.2rem; font-weight: 900; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); cursor: pointer; }
.arcade-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 4px; }
.arcade-level { display: grid; gap: 2px; justify-items: center; padding: 8px 0 6px; border-radius: 12px; border: 0; background: #6b4fe0; color: #fff; font-weight: 900; box-shadow: 0 4px 0 #4a2fd0; cursor: pointer; }
.arcade-level.giant { background: #c0452f; box-shadow: 0 4px 0 #7a2a1c; }
.arcade-level:disabled { background: #cfc8ea; box-shadow: 0 4px 0 #b3abd6; cursor: not-allowed; }
.arcade-level .n { font-size: 1.15rem; }
.arcade-level .st { font-size: .7rem; color: #ffe066; letter-spacing: 1px; min-height: 1em; }
.arcade-stars { font-size: 2.6rem; letter-spacing: 6px; color: #d9d2f0; margin-bottom: 6px; }
.arcade-stars .on { color: #ffc61a; text-shadow: 0 2px 0 #c98a00; }
.k-arcade-card.k-arcade-jonah { background: linear-gradient(160deg, #3fb6e8 0%, #0d5c96 60%, #06182f 100%); box-shadow: 0 6px 0 #06304f; }
.k-arcade-card.k-arcade-jericho { background: linear-gradient(160deg, #ffb347 0%, #c9772a 50%, #3b2a5c 100%); box-shadow: 0 6px 0 #5b3a1a; }
.arcade-diff .k-btn { min-width: 84px; }
.arcade-grade { font-size: 4rem; font-weight: 900; line-height: 1; margin: 4px 0 8px; }
.arcade-grade.grade-S { color: #ffb800; text-shadow: 0 3px 0 #b37a00; }
.arcade-grade.grade-A { color: #3fbf5f; text-shadow: 0 3px 0 #237a3a; }
.arcade-grade.grade-B { color: #3a8fd9; text-shadow: 0 3px 0 #1f5b91; }
.arcade-grade.grade-C { color: #9a8fbf; text-shadow: 0 3px 0 #655b88; }
.arcade-letters { display: flex; justify-content: center; gap: 4px; font-weight: 900; font-size: 1.3rem; }
.arcade-letters span { width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #ece8f7; color: #b5adcf; }
.arcade-letters span.on { background: #ffe066; color: #5a3d00; box-shadow: 0 2px 0 #c99a00; }
.k-arcade-card.k-arcade-light { background: linear-gradient(160deg, #2a2f5c 0%, #1d4a2c 60%, #ffc27a 120%); box-shadow: 0 6px 0 #11182f; }
.k-arcade-card.k-arcade-redsea { background: linear-gradient(160deg, #46a0e0 0%, #1f4f9e 55%, #d9c38a 120%); box-shadow: 0 6px 0 #173a73; }
