/* Touch layouts, kept separate from the desktop book composition. */
@media(max-width:620px) {
 html { scroll-padding-top:86px; -webkit-text-size-adjust:100%; }
 body { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
 .masthead { margin:0 18px; padding:13px 0; padding-top:max(13px,env(safe-area-inset-top)); }
 .page { padding:0 18px max(22px,env(safe-area-inset-bottom)); }
 .brand-title { font-size:13px; }.brand-sub { font-size:8px; }
 .masthead .quiet-button { min-height:44px; padding:8px 2px; font-size:11px; }
 .reading-tabs { position:sticky; top:0; z-index:4; margin-top:8px; padding:4px 0 0; gap:23px; background:#f7f9f7f5; backdrop-filter:blur(12px); box-shadow:0 7px 10px -10px #123e5280; }
 .reading-tabs button { min-height:62px; padding:8px 2px 12px; }.reading-tabs strong { font-size:18px; }.reading-tabs small { font-size:9px; }
 .minute-intro { margin-top:22px; }.minute-heading { padding-bottom:15px; }.minute-heading strong { font-size:25px; margin-top:8px; }
 .minute-layout { padding-top:18px; gap:25px; }
 .minute-cover { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; padding:17px 18px 0; gap:12px 10px; }
 .book-stage { height:191px; width:100%; grid-column:1; }
 .book-volume { width:126px; max-width:88%; }
 .book-plinth { height:25px; bottom:6px; width:96%; box-shadow:0 6px 0 -1px #bcced1,0 15px 13px -7px #193f5133; }
 .book-plinth:before { height:17px; filter:blur(7px); }
 .book-volume:before { width:10px; transform:translateX(5px) skewY(-8deg); }
 .cover-edition { grid-column:2; width:100%; padding:0 0 6px; text-align:left; font-size:17px; letter-spacing:2px; line-height:1.7; }
 .cover-edition>span { display:block; }.cover-edition small { margin-top:10px; font-size:10px; line-height:1.9; letter-spacing:.4px; }
 .narration-player { grid-column:1/-1; align-self:auto; margin:0 -18px; padding:15px 18px; gap:11px; }
 .narration-player .primary { min-height:46px; min-width:123px; font-size:13px; }
 .narration-restart { min-height:44px; min-width:62px; font-size:12px; }.narration-meta { font-size:10px; }
 .narration-player input[type=range] { min-height:32px; height:32px; margin:0; }
 .narration-player input[type=range]::-webkit-slider-thumb { width:17px; height:17px; margin-top:-7px; }
 .narration-player input[type=range]::-moz-range-thumb { width:17px; height:17px; }
 .minute-story { padding:24px 21px; }.minute-story h2 { font-size:21px; }.minute-script p { font-size:15px; line-height:2; }
 .minute-credit { font-size:10px; }.minute-next .secondary { min-height:48px; font-size:13px; }
 .after-hero { padding-top:24px; }.hero h1 { font-size:74px; }.hero h2 { font-size:22px; }.hero-description { font-size:12px; }.hero-actions .primary { min-height:44px; font-size:12px; }
 .hero-visual { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:23px; }
 .ink-diorama { grid-column:1/-1; padding-bottom:22px; }
 .world-spot { position:static; min-height:44px; font-size:11px; padding:9px 8px; justify-content:center; box-shadow:0 2px 0 #cad9dd,0 4px 9px #0b334612; }
 .world-spot.letter { grid-column:1/-1; }.world-spot:before { flex-shrink:0; }
 .scene-caption { grid-column:1/-1; margin-top:4px; padding-top:13px; font-size:9px; letter-spacing:2px; }
 .bookmark-invitation>.primary { min-height:46px; font-size:12px; }.bookmark-invitation p { font-size:11px; }
 .module { padding:21px 34px 20px 16px; min-height:112px; }.module h3 { font-size:18px; }.module p { font-size:12px; line-height:1.8; }
 .letter-strip { flex-wrap:wrap; }.letter-strip .letter-left { flex-basis:100%; }.letter-strip .quiet-button { min-height:44px; margin-left:auto; font-size:12px; }
 .letter-strip h3 { font-size:18px; }.letter-strip p { font-size:11px; }.footer { font-size:9px; }.footer .quiet-button { font-size:11px; min-height:44px; }.footer-end { gap:18px; }
 dialog,dialog.bookmark-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:100%; max-height:calc(100dvh - max(12px,env(safe-area-inset-top))); margin:0; border:0; border-radius:17px 17px 0 0; box-shadow:0 -12px 45px #122f4130; overscroll-behavior:contain; scroll-padding-top:96px; }
 html:has(dialog[open]) { overflow:hidden; }
 .dialog-top { padding:14px 18px; gap:10px; background:#f8faf9; }.dialog-top h2,.bookmark-dialog .dialog-top h2 { font-size:19px; line-height:1.5; }.dialog-top p { font-size:10px; }
 .close { width:44px; height:44px; min-width:44px; background:#fff; }.dialog-body { padding:23px 18px; }.dialog-foot { padding:14px 18px calc(18px + env(safe-area-inset-bottom)); font-size:11px; }
 .field,.qa-answer { font-size:16px; line-height:1.8; scroll-margin-top:100px; }.field { min-height:48px; }textarea.field { min-height:108px; }
 .choice,.actions .primary,.actions .secondary { min-height:46px; font-size:13px; }.actions { gap:10px; }.actions .primary { flex-grow:1; }
 .person-node { min-height:80px; }.person-node small { line-height:1.65; }
 .bookmark-workshop { gap:26px; }.questionnaire>h3 { font-size:25px; }.questionnaire>p { font-size:13px; }.questionnaire .form-label { font-size:14px; }.word-count { font-size:10px; }
 .generate-bookmark { min-height:50px; font-size:14px; }.questionnaire #bookmark-status { font-size:12px; }
 .bookmark-preview-panel { display:flex; flex-direction:column; padding:19px 16px; scroll-margin-top:98px; }
 .preview-label { order:0; font-size:12px; margin-bottom:0; }.bookmark-downloads { order:1; display:grid; grid-template-columns:1fr; width:100%; gap:10px; margin:16px 0 22px; }
 .bookmark-downloads .primary { min-height:48px; font-size:14px; }.bookmark-downloads .secondary { min-height:44px; font-size:12px; }
 .qa-bookmark-preview { order:2; width:min(100%,230px); max-width:230px; }.preview-caption { order:3; }.bookmark-preview-panel>.hint { order:4; font-size:11px!important; }
}
@media(max-width:360px) {
 .masthead { margin:0 16px; }.page { padding-left:16px; padding-right:16px; }.brand-title { font-size:12px; }.brand-sub { font-size:7px; }
 .minute-intro { margin-top:18px; }.minute-heading strong { font-size:23px; }.minute-heading .eyebrow { font-size:8px; }.minute-layout { padding-top:15px; }
 .minute-cover { padding:14px 15px 0; gap:10px 7px; }.book-stage { height:169px; }.book-volume { width:111px; }.cover-edition { font-size:15px; letter-spacing:1px; }.cover-edition small { font-size:9px; }
 .narration-player { margin:0 -15px; padding:13px 15px; }.minute-story { padding:22px 18px; }.minute-story h2 { font-size:20px; }.minute-script p { font-size:15px; }
 .world-spot { font-size:10px; padding:8px 6px; }.module h3 { font-size:17px; }.module p { font-size:12px; }.bookmark-invitation h3 { font-size:18px; }
 .dialog-top { padding:12px 14px; }.dialog-body { padding:21px 16px; }.dialog-top h2,.bookmark-dialog .dialog-top h2 { font-size:18px; }.dialog-foot { padding-left:16px; padding-right:16px; }
}
@media(hover:none) {
 .module:hover { transform:none; }.world-spot:hover { transform:none; }
 .primary:active,.secondary:active,.module:active,.world-spot:active { transform:translateY(2px); }
}
@media(pointer:coarse) {
 .field,.qa-answer { font-size:16px; }
 .close { width:44px; height:44px; }
 .primary,.secondary,.choice { min-height:44px; }
}
@media(pointer:coarse) and (max-height:500px) and (min-width:621px) {
 dialog,dialog.bookmark-dialog { max-height:94dvh; width:calc(100% - 2 * max(16px,env(safe-area-inset-left))); }
 .dialog-top { padding:10px 18px; }.dialog-body { padding:18px; }.dialog-foot { padding-bottom:max(14px,env(safe-area-inset-bottom)); }
 .bookmark-workshop { grid-template-columns:1fr; }.bookmark-preview-panel { max-width:480px; width:100%; margin:auto; }
}
