/* V52: paper first, one main action, secondary help below the answer. */
/* V53: plain-language help and first-visit instructions. */
#settingsBtn{font-size:14px;line-height:1.25;min-height:44px;padding:8px 10px;border:1px solid #58e8ff;border-radius:10px;color:#fff;white-space:normal}
.quick-start{background:#edf6ff;color:#081e46;border-left:5px solid #ff7828;border-radius:14px;padding:18px 22px;margin:18px 0}
.quick-start h2{font-size:23px;line-height:1.25;margin:0 0 12px}.quick-start ol{font-size:17px;line-height:1.6;padding-left:23px;margin:0}.quick-start p{font-size:16px;line-height:1.5;margin:12px 0 0;color:#17365f}
.book-needed-note{font-size:16px;line-height:1.5;color:#e4f7ff;margin:18px 0}
.consumer-help h2{padding-right:32px}.consumer-help .how-to-use ol{font-size:16px;line-height:1.6;padding-left:23px}.consumer-help .how-to-use p{font-size:16px;line-height:1.5}
.help-recovery{display:grid;gap:10px;margin:18px 0}.consumer-help .help-recovery .btn{width:100%;margin:0;min-height:52px;font-size:16px;line-height:1.4;white-space:normal;text-align:left;padding:12px 14px;background:#edf4ff;color:#081e46;border:1px solid #91b5e1;box-shadow:none}
.consumer-help .help-recovery #resetProgress{background:#fff1e6;border-color:#e28b48}.consumer-help .help-recovery .note{margin:0}
.consumer-help .field select{font-size:16px;min-height:48px;max-width:100%}.consumer-help #familyBack{width:100%;font-size:17px;min-height:52px}
.story-control-dock #dockPages{font-size:14px;line-height:1.3;white-space:normal;max-width:155px;padding:10px}
.book-map-root .map-reset-tools button{display:block;width:100%;font-size:14px;line-height:1.4;min-height:48px;text-align:left;margin:8px 0;padding:10px}
@media(max-width:520px){.topbar .edition-tag{display:none}.topbar .top-actions{gap:8px}#settingsBtn{max-width:105px;font-size:14px}.quick-start{padding:16px}.quick-start h2{font-size:21px}.quick-start ol{font-size:16px}.reader-v5 .reader-replay{font-size:14px;line-height:1.3;min-height:44px}.reader-v5 .reader-session-nav .reading-chapter-meta{display:none}.story-control-dock #dockPages{max-width:125px}}
#dialog:has(.reading-turn){background:#f8fbff;border:2px solid #58e8ff;max-width:640px;padding:26px;max-height:calc(100dvh - 32px)}
#dialogBody .reading-turn{border:0;padding-top:0}
.printed-page-cue{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px;padding:12px 44px 12px 14px;border-left:6px solid #ff7828;border-radius:10px;background:#e8f4ff;color:#081e46;font-size:17px;line-height:1.4}
.printed-page-cue strong{font-size:28px;line-height:1.2;white-space:nowrap}
#dialogBody .reading-turn>.eyebrow{display:block;background:transparent!important;color:#2455ef!important;padding:0;margin:17px 0 6px;font-size:14px!important;letter-spacing:.04em}
#dialogBody .reading-turn h2{max-width:none;margin:6px 0 12px;font-size:clamp(28px,4.5vw,36px)!important;line-height:1.15}
#dialogBody .reading-turn>p:not(.note):not(.clue-replay-status){font-size:18px!important;line-height:1.5;margin:8px 0 16px;color:#17365f}
#dialogBody .reading-turn .choices{gap:10px;margin:16px 0}
#dialogBody .reading-turn .choice{min-height:54px;padding:13px 16px;box-shadow:none;background:#fff;border-color:#7099d4;font-size:17px;text-align:left}
#dialogBody .reading-turn .choice:hover{background:#eaf6ff;border-color:#2455ef}
#dialogBody .reading-turn .choice:disabled{background:#e2ffc2;border-color:#447e16;color:#081e46}
#dialogBody .reading-turn .field>span{font-size:14px;line-height:1.4}
#dialogBody .reading-turn .field input{font-size:18px!important;min-height:54px}
#dialogBody .reading-turn form>.btn,#dialogBody .reading-turn>#beatPoint,#dialogBody .reading-turn>#checkLetters{width:100%;min-height:54px;font-size:18px;margin:10px 0}
#dialogBody .reading-turn .reading-turn-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:1px solid #c7d8ed;padding-top:12px;margin-top:18px}
#dialogBody .reading-turn .reading-turn-help .hint,#dialogBody .reading-turn .reading-turn-help #beatHint{font-size:14px!important;line-height:1.4;min-height:44px;background:#edf4fc;border:1px solid #b4cbe7;color:#17365f;font-weight:600;margin:0;padding:9px}
#dialogBody .reading-turn .reading-turn-help #beatReset{grid-column:1/-1;border:0;background:transparent;text-decoration:underline;font-weight:400}
#dialogBody .reading-turn .note{font-size:14px!important;line-height:1.4!important;color:#365579;margin:8px 0 0}
#dialogBody .reading-turn .pass-back-label{font-size:14px;margin:8px 0}
#dialogBody .reading-turn .turn-word-help{font-size:14px;margin:10px 0}
.turn-word-help summary{min-height:44px;padding:10px 0;cursor:pointer}
#dialog:has(.reading-turn) .dialog-close{width:44px;height:44px;min-height:44px;background:#e8f4ff;color:#081e46;border-radius:10px}
/* Keep the payoff animation; remove duplicate explanatory prose. */
.book-return:has(.answer-connection) .magic-link{display:none}
#dialogBody .book-return .reading-magic .eyebrow{color:#58e8ff;font-size:14px}
#dialogBody .book-return .reading-magic h2{font-size:clamp(26px,4vw,34px)!important;line-height:1.15;margin:12px 0 8px}
#dialogBody .book-return .paper-return-line{font-size:17px!important;line-height:1.4!important;margin:14px 0 8px}
#dialogBody .book-return #passItBack{background:#b9ff38;color:#081e46;font-size:18px;min-height:54px}
.reader-v5 .page-ticket{border:2px solid #58e8ff;background:#fff04a;color:#081e46;box-shadow:0 3px 0 #081e46}
.reader-v5 .page-ticket small{font-size:12px;line-height:1.2;max-width:65px}
.reader-v5 .page-ticket b{font-size:42px}
.story-control-dock #dockAction{background:#b9ff38;color:#081e46;border-color:#b9ff38;font-size:18px;min-height:54px}
.story-control-dock #dockPages,.story-control-dock #dockReplay{min-width:44px;min-height:44px}
.story-control-dock button:focus-visible,#dialog button:focus-visible,#dialog input:focus-visible{outline:3px solid #2455ef;outline-offset:3px}
@media(max-width:520px){#dialog:has(.reading-turn){padding:18px;max-height:calc(100dvh - 20px)}.printed-page-cue{font-size:16px;padding-left:10px}.printed-page-cue strong{font-size:26px}#dialogBody .reading-turn .choice{font-size:16px;padding:12px}.reader-v5 .page-ticket small{font-size:11px}.reader-v5 .page-ticket b{font-size:36px}}
@media(max-height:650px){#dialog:has(.reading-turn){padding:18px;max-height:calc(100dvh - 16px)}.printed-page-cue{padding-top:8px;padding-bottom:8px}#dialogBody .reading-turn>.eyebrow{margin-top:10px}#dialogBody .reading-turn .reading-turn-help{margin-top:10px;padding-top:8px}#dialogBody .reading-turn .choices{margin:10px 0}.book-return .magic-payoff{height:90px}}

/* V56: a steady book / reader / book rhythm and controls in the same place. */
.hero-first-step{border-left:4px solid #fff04a;padding:10px 14px!important;margin:16px 0!important;font-size:17px!important;line-height:1.45!important;background:#081e46cc;border-radius:0 10px 10px 0}
.hero-first-step b,.hero-first-step span{display:block}.hero-first-step span{font-size:16px;color:#e0f8ff;margin-top:4px}
.story-control-dock{border-top-color:#58e8ff}.story-control-dock #dockReplay,.story-control-dock #dockPages{background:#153a67;color:#fff;border:1px solid #58e8ff;border-radius:10px;font-size:15px;line-height:1.3;padding:10px;white-space:normal;max-width:130px}
.story-control-dock #dockReplay{min-width:90px}.story-control-dock #dockAction{min-width:170px}
.story-control-dock button:active,#dialog button:active{transform:translateY(2px);filter:brightness(.93)}
#dialogBody .reading-turn .feedback:not(:empty){padding:12px 14px;border-left:4px solid #ff7828;background:#fff4df;color:#081e46;border-radius:8px;font-size:16px;line-height:1.5;margin:12px 0}
#dialogBody .book-return .answer-connection{font-size:19px;line-height:1.5;color:#fff;margin:14px 0}
@media(max-width:700px){.story-control-dock{display:grid;grid-template-columns:1fr 1fr;gap:8px}.story-control-dock .dock-place{grid-column:1/-1}.story-control-dock #dockReplay,.story-control-dock #dockPages{max-width:none;width:100%;min-height:44px}.story-control-dock #dockAction{grid-column:1/-1;width:100%;min-width:0;margin:0;min-height:52px}.has-story-dock{padding-bottom:225px}}
@media(min-width:701px) and (max-width:900px){.story-control-dock{gap:8px;padding-left:14px;padding-right:14px}.story-control-dock .dock-place{min-width:180px}.story-control-dock #dockAction{min-width:155px}}
/* V57 proof: keep decorative rings clear of closing-page captions. */
.closing-orbit{top:0;left:50%;transform:translateX(-50%) rotate(-15deg)}
.closing-emblem>span{margin-top:35px;font-size:14px}
@media(max-height:650px) and (min-width:700px){.closing-orbit{width:185px;height:185px}}
