[hidden] { display: none !important; }
.eden-reader { max-width: 59rem; }
.eden-reader h1 { color: #fff1ca; }
.slide-deck { display: block; }
.scene {
  --scene-accent: #bde5b9;
  --scene-ink: #163729;
  --scene-background: #193b35;
  padding: clamp(.65rem, 2.4vw, 1.3rem);
  border-radius: 1.25rem;
  border: 1px solid var(--scene-accent);
  background: var(--scene-background);
}
.comic:not(.slide-deck) .scene { margin-bottom: 1rem; }
.scene[data-color="gold"] { --scene-accent:#ffe4a2; --scene-ink:#3e2a14; --scene-background:#4c3527; }
.scene[data-color="plum"] { --scene-accent:#e6d3ff; --scene-ink:#312343; --scene-background:#382a4c; }
.scene[data-color="rose"] { --scene-accent:#ffd3d2; --scene-ink:#4c2832; --scene-background:#502f3d; }
.scene h2 { color: var(--scene-accent); margin: .12rem 0 .7rem; }
.scene figure { border-color: var(--scene-accent); }
.scene img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; object-position: center; max-height: 52svh; background: #142b25; }
.scene figcaption { background: var(--scene-accent); color: var(--scene-ink); font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 650; }
.scene-source { margin: .55rem .1rem 0; font-size: .9rem; color: #fff4e6; }
.reader-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: 1rem; }
.reader-controls button {
  min-height: 48px; padding: .55rem .95rem; border: 1px solid #dfc18c;
  border-radius: 1.5rem; color: #fff2cf; background: #153b32; font: 750 1rem system-ui; cursor: pointer;
}
.reader-controls button:focus-visible, .reader-sources summary:focus-visible { outline: 3px solid #ffe3a5; outline-offset: 3px; }
#eden-voice { color: #182c47; background: #c4dfff; border-color: #c4dfff; }
#eden-next { color: #3d2b16; background: #ffdc87; }
.reader-controls button:disabled { opacity: .5; cursor: default; }
#eden-progress, #eden-audio-status { margin: .65rem 0; color: #e8e5d2; }
#eden-audio-status:empty { display: none; }
.reader-sources { margin-top: .7rem; }
.reader-sources summary { cursor: pointer; font-weight: 700; }
.reader-chapters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.reader-chapters button {
  min-height: 44px; padding: .45rem .8rem; border: 1px solid #b4c7a9;
  border-radius: 1.3rem; background: #164738; color: #ffefcc; font: 700 .93rem system-ui; cursor: pointer;
}
.reader-chapters button[aria-current="true"] { background: #bde5b9; color: #163729; }
.reader-chapters button:focus-visible { outline: 3px solid #ffe3a5; outline-offset: 2px; }

/* Portrait cards keep the whole illustrated cell visible. */
.family-explorer { margin-top: 1.2rem; }
.family-explorer h3 { margin: 0; font: 700 1.65rem Georgia, serif; color: #ffe4a2; }
.family-explorer > p { font-size: 1rem; }
.family-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.family-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 0 .65rem; border: 2px solid #edcc85; border-radius: 1rem; overflow: hidden; background: #fff0ca; color: #352618; cursor: pointer; box-shadow: 0 4px 0 #7b5736; font: inherit; }
.family-portrait { display: block; width: 100%; aspect-ratio: 4/5; background: #315d3e url('family-portraits.png') var(--portrait-x) var(--portrait-y) / 500% 200% no-repeat; flex-shrink: 0; }
.family-card-name { font: 700 clamp(1rem, 2.2vw, 1.3rem) Georgia, serif; margin: .6rem .15rem .2rem; overflow-wrap: anywhere; }
.family-card-years { font-size: .9rem; padding: 0 .3rem; }
.family-card-hint { margin-top: .35rem; font-size: .88rem; color: #5a4229; }
.family-card:hover { border-color: #fff4bc; filter: brightness(1.05); }
.family-card:focus-visible, #family-dialog button:focus-visible { outline: 3px solid #97e2ff; outline-offset: 4px; }
.family-note { font-size: .9rem !important; opacity: .85; }
#family-dialog { box-sizing: border-box; width: min(48rem, calc(100% - 1.5rem)); max-height: 90svh; overflow-y: auto; padding: 1.2rem; border: 2px solid #e9c47b; border-radius: 1.4rem; background: #173f35; color: #fff2cf; box-shadow: 0 18px 80px #0008; }
#family-dialog::backdrop { background: #041b18cc; }
.family-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-weight: 700; }
#family-dialog button { min-height: 44px; border: 1px solid #e9c47b; border-radius: 1.5rem; background: #ffdc87; color: #3d2b16; padding: .55rem .85rem; font: 700 1rem system-ui; cursor: pointer; }
#family-dialog button:disabled { opacity: .45; cursor: default; }
.family-profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 1.3rem; align-items: start; }
.family-profile .family-portrait { border-radius: 1rem; }
.family-profile h2 { font-size: 2.5rem; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.family-profile p { margin: .7rem 0; font-size: 1.05rem; }
.family-profile .family-age { color: #ffdf91; font-size: 1.3rem; font-weight: 800; }
.family-connection { padding: .7rem; background: #2d594b; border-radius: .7rem; }
.family-source { color: #cce5ce; font-size: .9rem !important; }
.family-dialog-controls { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
#family-listen { background: #c4dfff !important; color: #182c47 !important; }
#family-status:empty { display: none; }
@media (max-width: 620px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .family-profile { grid-template-columns: minmax(0, 1fr); } .family-profile .family-portrait { width: min(60%, 12rem); margin: auto; } .family-profile h2 { font-size: 2rem; } }

.scene .naming-panel { margin-bottom: .8rem; }

.comic-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #10352f;
}
#eden-fullscreen {
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid #d6b77c;
  border-radius: 1rem;
  color: #fff2cf;
  background: #214d43;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#eden-fullscreen:focus-visible { outline: 3px solid #ffe3a5; outline-offset: 3px; }
.comic-expanded body { position: fixed; inset: 0; overflow: auto; background-color: #10352f; }
:root:fullscreen .eden-reader, .comic-expanded .eden-reader { max-width: 76rem; }
:root:fullscreen .scene img, .comic-expanded .scene img { max-height: 66svh; }

.bible-scripture{margin:1rem 0;padding:1rem 1.3rem;border-left:4px solid #edce87;border-radius:0 14px 14px 0;background:#244e43;color:#fff4d0;font-size:1.1rem;line-height:1.7}.bible-scripture p{margin:0 0 .5rem}.bible-scripture cite{font:700 .95rem system-ui;color:#f4d58e}html[data-bible-experience="little"] .bible-scripture{display:none}

.scripture-listen{display:block;min-height:44px;margin-top:.8rem;padding:.7rem 1rem;border:2px solid #e8cb82;border-radius:24px;background:#ffe29c;color:#173d32;font:700 1rem system-ui;cursor:pointer}.scripture-listen:focus-visible{outline:3px solid #9ee9ff;outline-offset:3px}

/* Returning readers can keep their place or begin again. */
.reader-resume-choice { color: #fff9e8; background: #123e36; border: 2px solid #e9c878; border-radius: 24px; padding: clamp(24px, 5vw, 40px); width: min(480px, calc(100vw - 40px)); box-sizing: border-box; box-shadow: 0 20px 80px #0008; }
.reader-resume-choice::backdrop { background: #051e1bd9; }
.reader-resume-choice h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 12px 0; }
.reader-resume-choice p { font-size: 1.05rem; line-height: 1.6; }
.reader-resume-choice .reader-resume-eyebrow { color: #e9c878; font-weight: bold; letter-spacing: .12em; font-size: .9rem; }
.reader-resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.reader-resume-actions button { flex: 1; min-width: 140px; min-height: 52px; border-radius: 30px; font: bold 1.1rem system-ui, sans-serif; padding: 12px 20px; cursor: pointer; border: 2px solid #e9c878; background: #f4d485; color: #24372b; }
.reader-resume-actions [data-restart] { background: transparent; color: #fff9e8; }
.reader-resume-actions button:focus-visible, .reader-start-over:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
