body.story-mode{padding-top:0;background:var(--bg);overflow-x:hidden}
body.story-dialog-open{overflow:hidden}
.story-shell{--story-ease:cubic-bezier(.16,1,.3,1);max-width:1600px;margin:auto;color:var(--ink);position:relative}
.story-shell [hidden]{display:none!important}
.story-shell button,.story-shell a{-webkit-tap-highlight-color:transparent}
.story-shell button:focus-visible,.story-shell a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.story-shell button:disabled{cursor:default}
.story-shell .button{min-height:50px;font-size:15px;line-height:1.4}
.story-shell .eyebrow{font-size:13px!important;line-height:1.5;letter-spacing:.085em!important}
.story-topbar{position:sticky;top:0;z-index:45;min-height:80px;padding:15px clamp(20px,3.6vw,56px);display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 95%,transparent);backdrop-filter:blur(14px)}
.story-back{display:flex;align-items:center;gap:11px;min-height:44px;font-size:14px;line-height:1.4;color:var(--muted)}
.story-back>svg{width:34px;height:34px;color:var(--ink);flex-shrink:0}.story-back:hover{color:var(--accent)}
.story-edition{font:24px/1.2 var(--serif);letter-spacing:-.015em;white-space:nowrap}.story-edition i{font:13px/1.5 var(--sans);color:var(--muted);letter-spacing:0;margin-left:9px}
.story-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.story-memories-button{display:flex;gap:9px;align-items:center;padding:10px 14px;min-height:46px;background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:7px;font-size:14px;white-space:nowrap}
.story-memory-count{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;height:24px;min-width:24px;font-size:13px;font-weight:600;line-height:1}
.story-memories-button:hover{border-color:var(--accent)}
.story-topbar .story-motion{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:transparent;flex-shrink:0}
.story-motion>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.story-motion[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.story-workspace{padding:0 clamp(20px,3.6vw,56px);min-height:600px}.story-workspace[aria-busy="true"]{pointer-events:none}
.story-title{font:clamp(46px,4.5vw,68px)/1.01 var(--serif);letter-spacing:-.025em;font-weight:400;margin:16px 0 22px;text-wrap:balance}
.story-title:focus,.story-dialog h2:focus{outline:none}.story-title em{display:block;font-weight:400;color:var(--accent)}
.story-lead{font-size:18px;line-height:1.8;color:var(--muted)}.story-handwritten{font:italic 28px/1.08 var(--serif);color:var(--accent)}
.story-media{display:block;position:relative;overflow:hidden;background:var(--tint)}
.story-media>img{display:block;width:100%;height:100%;object-fit:cover}
.story-media.has-art-error>img{opacity:0}
.story-art-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;text-align:center;background:var(--tint);color:var(--muted);font:14px/1.55 var(--sans);z-index:5}
.story-art-fallback>span+span{font-size:13px}.story-art-retry{border:1px solid var(--line);border-radius:5px;min-height:44px;padding:10px 13px;background:var(--paper);color:var(--ink);font-size:14px}.story-art-retry:hover{border-color:var(--accent)}

/* A cover, with the artwork leading the small-screen composition. */
.story-opening{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(48px,6vw,90px);align-items:center;max-width:1340px;margin:auto;padding:78px 22px 70px;min-height:min(810px,calc(100svh - 120px))}
.story-opening-art{position:relative;padding:32px 0 60px;margin-right:12px}.story-cover-painting{position:relative;margin:0;border:10px solid var(--paper);border-radius:88px 88px 4px 4px;overflow:hidden;box-shadow:0 18px 48px rgba(var(--shadow-rgb),.14);transform:rotate(-1deg);z-index:1}
.story-cover-painting .story-media{aspect-ratio:1.35}.story-cover-painting img{animation:story-cover-breathe 19s ease-in-out infinite alternate}
.story-cover-small{position:absolute;margin:0;background:var(--paper);padding:7px 7px 12px;width:35%;box-shadow:0 10px 26px rgba(var(--shadow-rgb),.15);z-index:3;border:1px solid var(--line);transform:rotate(var(--paper-angle,-7deg));animation:story-paper-drift 11s ease-in-out infinite}
.story-cover-small .story-media{aspect-ratio:1.5}.story-cover-small figcaption{font:italic 21px/1.15 var(--serif);text-align:center;margin:11px 0 0}
.story-cover-small-left{left:-22px;bottom:22px;--paper-angle:-7deg}.story-cover-small-right{right:-24px;bottom:0;--paper-angle:6deg;animation-delay:-4s}
.story-cover-small .story-art-fallback{padding:6px;font-size:13px;gap:0}.story-cover-small .story-art-fallback>span+span{display:none}
.story-opening-note{position:absolute;top:-22px;left:28px;z-index:4;transform:rotate(-4deg)}
.story-book-spine{position:absolute;width:77%;height:87%;top:20px;left:14%;border:1px solid var(--line);border-radius:48% 48% 5px 5px;transform:rotate(8deg)}
.story-opening-copy{padding-bottom:18px}.story-opening-copy .story-title{font-size:clamp(58px,5.5vw,85px);margin:16px 0 26px}.story-opening-copy .story-lead{max-width:410px}
.story-intro-meta{display:flex;flex-wrap:wrap;gap:24px;align-items:center;font-size:14px;color:var(--muted);margin:26px 0 30px}.story-intro-meta span{display:flex;align-items:center;gap:8px}
.story-open-button{gap:16px!important;min-width:230px}.story-intro-note{font-size:14px;line-height:1.8;color:var(--muted);margin:20px 0}
.story-opening-signature{display:flex;align-items:center;gap:13px;margin-top:31px;font:italic 21px var(--serif);color:var(--muted)}.story-signature-line{width:33px;height:1px;background:var(--line)}

/* Quiet, readable journey navigation. */
.story-chapter-shell{max-width:1380px;margin:auto;padding-top:28px}.story-progress{max-width:890px;margin:0 auto 30px}
.story-progress ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) .8fr;align-items:center;padding:0;margin:0;list-style:none;gap:28px}
.story-progress li{position:relative;min-width:0}.story-progress li:not(:last-child):after{content:'';position:absolute;right:-18px;top:50%;height:1px;width:17px;background:var(--line)}
.story-progress button{min-height:50px;width:100%;padding:3px 0;border:0;background:none;display:flex;gap:11px;align-items:center;color:var(--muted);font-size:14px;line-height:1.4;text-align:left}
.story-progress button:disabled{opacity:.74}.story-progress button>span:last-child{display:flex;flex-direction:column;gap:2px}.story-progress small{font-size:13px;letter-spacing:.025em}
.story-progress-mark{display:grid;place-items:center;height:30px;width:30px;border:1px solid var(--line);border-radius:50%;flex-shrink:0}
.story-progress .is-current button{color:var(--accent);opacity:1}.story-progress .is-current .story-progress-mark{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.story-progress .is-collected .story-progress-mark{background:var(--accent);border-color:var(--accent);color:var(--paper)}
.story-progress-finish{display:flex;align-items:center;gap:10px;min-height:50px;font-size:14px;line-height:1.4;color:var(--muted)}.story-progress-finish>svg{flex-shrink:0}.story-progress .is-current .story-progress-finish{color:var(--accent)}

/* Unobstructed paintings; the caption and controls sit on their paper frame. */
.story-chapter{display:grid;grid-template-columns:1.08fr 1fr;gap:clamp(32px,4vw,62px);align-items:start;padding:4px 0 36px}
.story-scene-column{min-width:0;padding-top:4px}.story-scene{position:relative;isolation:isolate;margin:0;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:7px;box-shadow:0 14px 36px rgba(var(--shadow-rgb),.105)}
.story-scene-images{position:relative;overflow:hidden;aspect-ratio:1.5;background:var(--tint);border-radius:2px}.story-scene-art{height:100%}
.story-scene-image,.story-preview-image{transform:translate(var(--scene-x,0),var(--scene-y,0)) scale(1.018);transition:transform 1.2s ease,opacity .55s ease}
.story-scene-image{animation:story-scene-breathe 24s ease-in-out infinite alternate}.story-preview-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;z-index:1;pointer-events:none}.story-preview-image.is-shown{opacity:1}
.story-scene figcaption{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 13px 11px;min-height:79px;color:var(--ink)}
.story-scene-caption{display:flex;flex-direction:column;gap:5px;min-width:0;font:italic 23px/1.2 var(--serif)}.story-scene-caption small{font:13px/1.4 var(--sans);color:var(--muted)}
.story-look{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:10px 12px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--muted);font-size:14px;line-height:1.3;flex-shrink:0}.story-look:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.story-detail-toggle{border:0;background:none;color:var(--muted);display:flex;gap:10px;align-items:center;padding:15px 3px 10px;min-height:49px;font-size:14px;width:100%;text-align:left}.story-detail-toggle:hover{color:var(--accent)}.story-detail-plus{margin-left:auto;color:var(--accent);font-size:23px;line-height:1}
.story-detail{font-size:15px;line-height:1.85;color:var(--muted);margin:6px 0 0;padding:17px 21px;background:var(--tint);border-left:2px solid var(--accent);border-radius:2px}
.story-chapter-copy{padding:5px 0 0;min-width:0}.story-chapter-copy>.eyebrow{margin:0 0 17px}.story-chapter-copy>.story-title{font-size:clamp(44px,4vw,60px);margin:0 0 24px;max-width:510px}
.story-chapter-text{font-size:17px;line-height:1.8;color:var(--muted);max-width:550px;margin:0 0 26px}
.story-choice-prompt{display:flex;justify-content:space-between;align-items:center;font-size:15px;color:var(--ink);margin:0 0 14px;gap:14px}.story-choice-hint{font-size:13px;color:var(--muted)}
.story-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.story-choice{display:flex;flex-direction:column;padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:7px;color:var(--ink);text-align:left;box-shadow:0 3px 10px rgba(var(--shadow-rgb),.025);transition:translate .3s var(--story-ease),box-shadow .3s,border-color .25s,opacity .2s}
.story-choice-image{position:relative;display:block;overflow:hidden;width:100%;aspect-ratio:1.5;border-radius:3px;background:var(--tint)}.story-choice-image>.story-media{height:100%}.story-choice-image img{transition:transform .7s var(--story-ease)}
.story-choice-copy{display:block;padding:15px 9px 13px}.story-choice-copy strong{display:block;font-size:16px;font-weight:600;line-height:1.45;margin-bottom:8px}.story-choice-copy>span{display:block;font-size:14px;line-height:1.65;color:var(--muted)}
.story-choice-seal{position:absolute;right:9px;bottom:9px;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--paper);display:grid;place-items:center;opacity:0;transform:scale(.75);transition:opacity .18s,transform .25s var(--story-ease)}
.story-choice.is-selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft),0 8px 22px rgba(var(--shadow-rgb),.1)}.story-choice.is-selected .story-choice-seal{opacity:1;transform:scale(1)}.story-choice.is-not-selected{opacity:.58}
.story-choice:focus-visible{border-color:var(--accent);box-shadow:0 7px 22px rgba(var(--shadow-rgb),.1)}
@media(hover:hover){.story-choice:not(:disabled):hover{translate:0 -4px;border-color:var(--accent);box-shadow:0 10px 26px rgba(var(--shadow-rgb),.1)}.story-choice:not(:disabled):hover img{transform:scale(1.035)}}
.story-subtle-button{border:0;background:transparent;min-height:44px;padding:10px 0;color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--line);line-height:1.5}.story-subtle-button:hover{color:var(--accent);text-decoration-color:var(--accent)}.story-subtle-button:disabled{opacity:.48;text-decoration:none}.story-back-moment{margin-top:15px}
.story-collected-label{display:flex;align-items:center;gap:9px;color:var(--accent);font-size:14px;line-height:1.5;margin:0 0 24px}.story-collected-label>svg{flex-shrink:0}.story-outcome .story-title em{margin-top:5px}
.story-response{font-size:19px;line-height:1.85;color:var(--muted);margin:20px 0 28px;max-width:510px}
.story-saved-piece{display:flex;align-items:center;gap:17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:21px 0;margin:0 0 28px}.story-saved-stamp{width:48px;height:48px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--accent);flex-shrink:0}.story-saved-piece>div>span{display:block;font-size:14px;color:var(--muted);margin-bottom:5px}.story-saved-piece strong{font-size:16px;line-height:1.5;font-weight:500}
.story-outcome-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.story-outcome-actions .button{min-width:190px}
.story-load-notice{display:flex;align-items:center;gap:12px;padding:15px 17px;margin:17px 0 6px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted);font-size:14px;line-height:1.6}.story-load-notice[data-state="error"]{align-items:flex-start;flex-wrap:wrap;border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.story-load-notice[data-state="error"]>span{flex:1 1 220px}.story-load-notice .story-subtle-button{padding-block:0;min-height:32px;color:var(--accent)}
.story-loading-mark{width:17px;height:17px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:story-loading 1s linear infinite;flex-shrink:0}

/* The small shelf stays useful without competing with the scene. */
.story-shelf{border-top:1px solid var(--line);padding:27px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:34px}.story-shelf-label .eyebrow{display:block;margin:0 0 7px}.story-shelf-label>span:last-child{font:italic 24px/1.25 var(--serif);color:var(--muted)}
.story-shelf-slots{display:flex;gap:15px;align-items:stretch}.story-pocket{border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;gap:12px;width:202px;min-height:80px;padding:7px;color:var(--ink);border-radius:4px;min-width:0}.story-pocket-image{width:70px;aspect-ratio:1.35;flex-shrink:0;border-radius:2px}.story-pocket>span:last-child{font:italic 21px/1.12 var(--serif);text-align:left}.story-pocket.is-filled{transform:rotate(-1.1deg);box-shadow:0 3px 9px rgba(var(--shadow-rgb),.05);transition:transform .25s,box-shadow .25s}.story-pocket.is-filled:nth-child(2){transform:rotate(.8deg)}.story-pocket.is-filled:nth-child(3){transform:rotate(-.5deg)}.story-pocket.is-new{animation:story-memory-arrive .65s var(--story-ease) both}.story-pocket.is-filled:hover{transform:rotate(0deg) translateY(-3px);box-shadow:0 7px 20px rgba(var(--shadow-rgb),.1)}
.story-pocket.is-empty{border-style:dashed;background:transparent;color:var(--muted)}.story-pocket.is-empty>span:last-child{font:14px/1.5 var(--sans)}.story-pocket.is-empty small{display:block;font-size:13px}.story-pocket-stamp{width:48px;display:grid;place-items:center;opacity:.7;flex-shrink:0}
.story-footnote{max-width:840px;margin:13px auto 0;padding:16px 24px 30px;text-align:center;font-size:13px;color:var(--muted);line-height:1.75}

/* The ending becomes a small illustrated album. */
.story-ending{max-width:1220px;margin:auto;padding:54px 15px 24px}.story-ending-top{display:grid;grid-template-columns:1fr 1.05fr;grid-template-areas:'heading artwork' 'copy artwork';column-gap:66px;row-gap:0;align-items:center}.story-ending-heading{grid-area:heading;align-self:end}.story-ending-heading .eyebrow{margin:0 0 16px}.story-ending-heading .story-title{font-size:clamp(49px,5vw,72px);margin:0 0 20px}.story-ending-copy{grid-area:copy;align-self:start}.story-ending-copy .story-lead{margin:0;font-size:18px}
.story-values{display:flex;flex-wrap:wrap;gap:0;margin:25px 0;color:var(--accent);font-size:14px;line-height:1.6}.story-values span+span:before{content:'·';margin:0 13px;color:var(--muted)}
.story-ending-note{font:italic 25px/1.45 var(--serif);color:var(--muted);max-width:430px;margin:0}
.story-epilogue{grid-area:artwork;position:relative;background:var(--paper);padding:9px 9px 0;border:1px solid var(--line);box-shadow:0 12px 32px rgba(var(--shadow-rgb),.115);transform:rotate(1.25deg);margin:0 6px;border-radius:3px}.story-epilogue-art{aspect-ratio:1.5}.story-epilogue>figcaption{display:flex;align-items:center;justify-content:space-between;gap:14px;font:italic 26px/1.2 var(--serif);padding:16px 10px}.story-epilogue .story-look{font-style:normal}
.story-album{margin:58px 0 28px}.story-album-heading{display:flex;justify-content:space-between;align-items:baseline;gap:25px;margin-bottom:24px}.story-album-heading h2{font:36px/1.15 var(--serif);letter-spacing:-.015em;margin:0}.story-album-heading p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.story-ending-memories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.story-memory-print{display:block;width:100%;padding:8px 8px 18px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);text-align:center;box-shadow:0 5px 20px rgba(var(--shadow-rgb),.065);transform:rotate(-1.3deg);transition:transform .35s var(--story-ease),box-shadow .35s;min-width:0}.story-memory-print:nth-child(2){transform:rotate(1deg)}.story-memory-print:nth-child(3){transform:rotate(-.45deg)}.story-memory-print:hover,.story-memory-print:focus-visible{transform:rotate(0deg) translateY(-4px);box-shadow:0 12px 28px rgba(var(--shadow-rgb),.12)}
.story-print-image{width:100%;aspect-ratio:1.5}.story-print-copy{display:block;padding:16px 9px 0}.story-memory-print small{font-size:13px;line-height:1.5;letter-spacing:.025em;color:var(--muted);display:block;margin-bottom:7px}.story-memory-print strong{font:italic 29px/1.13 var(--serif);display:block}.story-print-copy>span{display:block;font-size:14px;color:var(--accent);margin-top:9px}
.story-ending-actions{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 0 10px}.story-ending-actions .button{min-width:190px}.story-export-note{font-size:13px;color:var(--muted);text-align:center;line-height:1.75;max-width:640px;margin:8px auto 42px}
.story-app-invitation{border-top:1px solid var(--line);padding-top:40px;display:flex;align-items:center;justify-content:space-between;gap:50px}.story-app-invitation .eyebrow{margin-bottom:14px}.story-app-invitation h2{font:46px/1.08 var(--serif);margin:0 0 16px;letter-spacing:-.02em}.story-app-invitation p:last-child{font-size:16px;line-height:1.8;color:var(--muted);max-width:540px;margin:0}.story-app-invitation>.button{flex-shrink:0}

/* Native dialog keeps focus, scrolling and Escape behaviour. */
.story-dialog{border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);width:min(1030px,calc(100vw - 40px));max-height:calc(100svh - 40px);padding:0;box-shadow:0 24px 100px rgba(var(--shadow-rgb),.3);overscroll-behavior:contain;scrollbar-gutter:stable}
.story-dialog::backdrop{background:rgba(var(--shadow-rgb),.62);backdrop-filter:blur(8px)}.story-dialog[open]{animation:story-dialog-enter .32s var(--story-ease)}
.story-dialog-toolbar{position:sticky;top:0;z-index:6;padding:13px 22px 13px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:color-mix(in srgb,var(--bg) 96%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);font:italic 21px var(--serif);color:var(--muted)}
.story-dialog-close{width:44px;height:44px;background:var(--paper);border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--ink);flex-shrink:0}.story-dialog-close:hover{background:var(--accent-soft);border-color:var(--accent)}
.story-dialog-content{padding:35px 38px 39px}.story-memory-gallery>.eyebrow{margin:0 0 13px}.story-memory-gallery>h2{font:54px/1.05 var(--serif);letter-spacing:-.02em;margin:0 0 18px}.story-memory-gallery>p{font-size:17px;line-height:1.8;color:var(--muted);max-width:620px;margin:0}
.story-gallery-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin:34px 0 8px}.story-gallery-grid .story-memory-print{flex:1 1 220px;max-width:350px}.story-gallery-grid .story-memory-print strong{font-size:28px}
.story-empty-collection{padding:38px 24px;margin-top:30px;border:1px dashed var(--line);border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted);font:italic 29px/1.2 var(--serif);text-align:center}.story-empty-collection small{font:15px/1.7 var(--sans)}
.story-memory-detail{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center}.story-memory-detail figure{margin:0;padding:7px;background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 18px rgba(var(--shadow-rgb),.1);transform:rotate(-1.2deg)}.story-memory-detail figure .story-media{aspect-ratio:1.5}.story-memory-detail h2{font:48px/1.05 var(--serif);letter-spacing:-.02em;margin:15px 0 20px}.story-memory-detail p{font-size:17px;line-height:1.8;color:var(--muted)}
.story-dialog-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:23px}.story-dialog-note{font-size:14px!important;line-height:1.75!important;margin-bottom:0}
.story-memory-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);margin-top:31px;padding-top:16px}.story-memory-pagination>span{font-size:13px;white-space:nowrap;color:var(--muted)}.story-memory-pagination .story-subtle-button{font-size:14px}
.story-art-lightbox{margin:0}.story-art-lightbox .story-media{width:100%;aspect-ratio:1.5;max-height:65svh;background:var(--paper);border-radius:3px}.story-art-lightbox img{object-fit:contain}.story-art-lightbox figcaption{font:26px/1.3 var(--serif);margin:24px 0 0;text-align:center}.story-art-lightbox figcaption span{display:block;font:14px/1.7 var(--sans);color:var(--muted);margin-top:10px}
.story-toast{position:fixed;z-index:500;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:16px 22px;border-radius:7px;background:var(--ink);color:var(--paper);box-shadow:0 5px 25px #0002;font-size:14px;max-width:calc(100vw - 32px);width:max-content;line-height:1.6}

@keyframes story-cover-breathe{from{transform:scale(1)}to{transform:scale(1.025)}}
@keyframes story-paper-drift{0%,100%{transform:rotate(var(--paper-angle,-7deg)) translateY(0)}50%{transform:rotate(calc(var(--paper-angle,-7deg) + .7deg)) translateY(-4px)}}
@keyframes story-scene-breathe{from{transform:translate(var(--scene-x,0),var(--scene-y,0)) scale(1.018)}to{transform:translate(var(--scene-x,0),var(--scene-y,0)) scale(1.038)}}
@keyframes story-memory-arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes story-dialog-enter{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@keyframes story-loading{to{rotate:360deg}}

@media(max-width:1150px){
 .story-edition i{display:none}.story-opening{gap:46px;padding-inline:5px}.story-opening-copy .story-title{font-size:66px}.story-cover-small figcaption{font-size:18px}.story-choice-hint{display:none}.story-chapter{gap:34px}.story-chapter-copy>.story-title{font-size:49px}.story-chapter-text{font-size:16px}.story-choice-copy{padding:13px 6px}.story-shelf{gap:24px}.story-pocket{width:173px;gap:9px}.story-pocket-image{width:56px}.story-pocket>span:last-child{font-size:20px}.story-ending-top{column-gap:40px}.story-ending{padding-inline:0}.story-scene-caption{font-size:21px}.story-scene .story-look>span{display:none}
}
@media(max-width:1020px){
 .story-edition{display:none}.story-workspace{min-height:0}.story-chapter{grid-template-columns:1fr;max-width:720px;margin:auto;gap:29px}.story-scene-column{padding-top:0}.story-scene-images{aspect-ratio:1.5}.story-chapter-copy{padding:0}.story-chapter-copy>.story-title{font-size:54px;max-width:650px}.story-chapter-text{font-size:17px;max-width:none}.story-choice-copy{padding:17px 13px}.story-choice-copy strong{font-size:17px}.story-choice-copy>span{font-size:15px}.story-choice-hint{display:block}.story-response{max-width:640px}.story-outcome .story-title em{display:inline;margin-left:8px}.story-shelf{max-width:720px;margin:auto;flex-direction:column;align-items:stretch;gap:21px}.story-shelf-label{display:flex;align-items:center;justify-content:space-between;gap:20px}.story-shelf-label .eyebrow{margin:0}.story-shelf-slots{width:100%}.story-pocket{flex:1;width:auto}.story-pocket-image{width:65px}.story-ending-top{column-gap:32px}.story-ending-heading .story-title{font-size:54px}.story-ending-copy .story-lead{font-size:17px}.story-ending-note{font-size:23px}.story-epilogue>figcaption{font-size:23px}.story-epilogue .story-look>span{display:none}.story-memory-print strong{font-size:25px}.story-app-invitation{gap:30px}.story-app-invitation h2{font-size:41px}
}
@media(max-width:820px){
 .story-topbar{min-height:74px;padding-block:12px}.story-opening{display:flex;flex-direction:column;max-width:620px;gap:20px;padding:37px 25px 35px;min-height:0}.story-opening-art{order:0;width:100%;max-width:445px;margin:0 auto 0;padding:23px 0 51px}.story-opening-copy{order:1;text-align:center;padding:0}.story-opening-copy .story-title{font-size:70px;margin:12px 0 21px}.story-opening-copy .story-lead{max-width:440px;margin-inline:auto;font-size:17px}.story-intro-meta{justify-content:center;margin:21px 0 25px}.story-opening-signature{display:none}.story-intro-note{margin-bottom:0}.story-opening-note{font-size:23px;left:20px;top:-10px}.story-cover-painting{border-width:8px;border-radius:74px 74px 4px 4px}.story-cover-painting .story-media{aspect-ratio:1.6}.story-cover-small{width:31%;padding:5px 5px 9px}.story-cover-small figcaption{font-size:17px;margin-top:8px}.story-cover-small-left{left:-16px;bottom:20px}.story-cover-small-right{right:-16px;bottom:2px}.story-progress ol{gap:18px}.story-progress li:not(:last-child):after{display:none}.story-progress button{gap:9px}.story-progress-mark{width:27px;height:27px}.story-shelf-label>span:last-child{font-size:22px}.story-ending{padding-top:37px}.story-ending-top{grid-template-columns:1fr;grid-template-areas:'heading' 'artwork' 'copy';gap:26px;max-width:630px;margin:auto}.story-ending-heading{text-align:center}.story-ending-heading .story-title{font-size:63px;max-width:550px;margin:0 auto}.story-ending-heading .eyebrow{margin-bottom:14px}.story-epilogue{max-width:540px;width:100%;margin:0 auto;box-sizing:border-box;transform:rotate(.7deg)}.story-ending-copy{text-align:center;max-width:540px;margin:auto}.story-ending-copy .story-lead{font-size:18px}.story-values{justify-content:center;margin:22px 0}.story-ending-note{max-width:480px;margin:auto;font-size:25px}.story-album{margin-top:44px}.story-album-heading h2{font-size:32px}.story-ending-memories{gap:17px}.story-memory-print strong{font-size:24px}.story-app-invitation{flex-direction:column;text-align:center;gap:25px}.story-app-invitation p:last-child{max-width:580px}.story-memory-detail{grid-template-columns:1fr;max-width:600px;margin:auto;gap:28px}.story-memory-detail figure{max-width:520px;width:100%;box-sizing:border-box;margin:auto}.story-memory-detail h2{font-size:47px}.story-dialog-content{padding:29px}.story-gallery-grid{gap:21px}.story-gallery-grid .story-memory-print{flex-basis:200px;max-width:320px}
}
@media(max-width:600px){
 .story-topbar{padding-inline:17px;gap:12px;min-height:72px}.story-back{min-width:44px}.story-back>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.story-tools{gap:9px}.story-memories-button{padding:9px 11px;gap:8px;font-size:14px;min-height:44px}.story-memory-count{width:22px;height:22px;min-width:22px;font-size:13px}.story-workspace{padding-inline:19px}.story-opening{padding:31px 6px 29px;gap:16px}.story-opening-art{max-width:350px;width:calc(100% - 20px);padding:21px 0 43px}.story-opening-note{font-size:20px;top:-10px;left:13px}.story-cover-painting{border-width:6px;border-radius:56px 56px 3px 3px}.story-cover-painting .story-media{aspect-ratio:1.58}.story-cover-small{width:34%;padding:4px 4px 8px}.story-cover-small figcaption{font-size:16px;line-height:1.12;margin-top:7px}.story-cover-small-left{left:-13px;bottom:14px}.story-cover-small-right{right:-13px;bottom:0}.story-opening-copy .story-title{font-size:60px;line-height:1.01;margin:12px 0 19px}.story-opening-copy .story-lead{font-size:16px;line-height:1.8;max-width:360px}.story-intro-meta{font-size:14px;gap:22px;margin:21px 0 24px}.story-intro-note{font-size:14px;line-height:1.7;margin-top:19px}.story-open-button{min-width:225px;min-height:52px!important}
 .story-chapter-shell{padding-top:21px}.story-progress{margin-bottom:23px}.story-progress ol{grid-template-columns:repeat(3,minmax(0,1fr)) .66fr;gap:10px;align-items:start}.story-progress button{flex-direction:column;align-items:flex-start;gap:9px;font-size:13px;line-height:1.35;min-height:85px}.story-progress button>span:last-child{gap:3px}.story-progress small{font-size:13px}.story-progress-mark{width:27px;height:27px}.story-progress-finish{flex-direction:column;align-items:flex-start;gap:10px;min-height:85px;font-size:13px;line-height:1.35;padding-top:4px}.story-progress-finish>svg{height:24px}.story-chapter{gap:24px;padding-bottom:28px}.story-scene{padding:6px;border-radius:5px}.story-scene figcaption{gap:12px;padding:14px 9px 9px;min-height:76px}.story-scene-caption{font-size:21px;line-height:1.2;gap:5px}.story-scene-caption small{font-size:13px}.story-look{padding:10px;width:44px;height:44px}.story-look>span{display:none}.story-detail-toggle{padding-top:13px;font-size:14px;min-height:48px}.story-detail{font-size:15px;line-height:1.8;padding:16px 18px}.story-chapter-copy>.eyebrow{margin-bottom:14px}.story-chapter-copy>.story-title{font-size:46px;margin-bottom:21px}.story-chapter-text{font-size:16px;line-height:1.8;margin-bottom:25px}.story-choice-prompt{font-size:15px;margin-bottom:14px}.story-choice-hint{display:none}.story-choices{grid-template-columns:1fr;gap:14px}.story-choice{display:grid;grid-template-columns:.84fr 1.16fr;padding:6px;align-items:stretch}.story-choice-image{aspect-ratio:auto;min-height:139px;height:100%}.story-choice-copy{padding:15px 12px 15px 16px;align-self:center}.story-choice-copy strong{font-size:16px;line-height:1.45;margin-bottom:8px}.story-choice-copy>span{font-size:14px;line-height:1.65}.story-choice-seal{width:30px;height:30px;right:8px;bottom:8px}.story-back-moment{font-size:14px;margin-top:13px}.story-collected-label{font-size:14px;line-height:1.5;margin-bottom:22px}.story-outcome .story-title em{display:block;margin-left:0;margin-top:6px;font-size:43px}.story-response{font-size:18px;line-height:1.85;margin:18px 0 25px}.story-saved-piece{padding:19px 0;gap:14px;margin-bottom:25px}.story-saved-piece>div>span{font-size:14px}.story-saved-piece strong{font-size:15px}.story-saved-stamp{width:44px;height:44px}.story-outcome-actions{gap:15px}.story-outcome-actions .button{min-width:175px;padding-inline:20px}.story-load-notice{padding:14px;font-size:14px}
 .story-shelf{gap:17px;padding:25px 0 15px}.story-shelf-label{align-items:flex-start;flex-direction:column;gap:5px}.story-shelf-label>span:last-child{font-size:23px}.story-shelf-slots{gap:11px}.story-pocket{display:block;padding:6px;min-height:132px;border-radius:3px;max-width:calc((100% - 22px)/3)}.story-pocket-image{width:100%;aspect-ratio:1.4}.story-pocket>span:last-child{display:block;text-align:center;font-size:20px;line-height:1.1;margin:10px 1px 5px}.story-pocket.is-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px}.story-pocket.is-empty>span:last-child{font-size:14px;margin:0}.story-pocket.is-empty small{font-size:13px;line-height:1.4;margin-top:5px}.story-pocket-stamp{height:29px;width:35px}.story-footnote{font-size:13px;line-height:1.75;padding:18px 23px 25px;margin:0 auto}
 .story-ending{padding:30px 0 18px}.story-ending-top{gap:25px}.story-ending-heading .story-title{font-size:54px;max-width:360px}.story-ending-heading .eyebrow{margin-bottom:13px}.story-epilogue{width:calc(100% - 8px);padding:7px 7px 0;transform:rotate(.45deg)}.story-epilogue>figcaption{font-size:24px;padding:13px 8px}.story-ending-copy .story-lead{font-size:17px;line-height:1.85}.story-values{font-size:14px;margin:20px 0;row-gap:6px}.story-values span+span:before{margin:0 10px}.story-ending-note{font-size:24px;line-height:1.45;max-width:350px}.story-album{margin:36px 0 23px}.story-album-heading{display:block;margin-bottom:22px}.story-album-heading h2{font-size:33px;margin-bottom:8px}.story-album-heading p{font-size:14px}.story-ending-memories{grid-template-columns:1fr;gap:16px}.story-memory-print,.story-memory-print:nth-child(2),.story-memory-print:nth-child(3){display:grid;grid-template-columns:1fr 1.1fr;align-items:center;padding:7px;text-align:left;transform:none;border-radius:5px;gap:0}.story-print-image{height:100%;min-height:130px;aspect-ratio:1.3}.story-print-copy{padding:15px 12px 15px 19px}.story-memory-print small{font-size:13px;margin-bottom:6px}.story-memory-print strong{font-size:27px;line-height:1.12}.story-print-copy>span{font-size:14px;margin-top:9px}.story-ending-actions{display:grid;grid-template-columns:1fr;gap:11px;padding-top:9px}.story-ending-actions .button{min-height:52px;font-size:15px;width:100%}.story-ending-actions .story-subtle-button{justify-self:center;font-size:14px}.story-export-note{font-size:13px;line-height:1.75;margin:6px auto 31px}.story-app-invitation{padding-top:30px;gap:24px}.story-app-invitation h2{font-size:41px}.story-app-invitation p:last-child{font-size:16px;line-height:1.8}.story-app-invitation>.button{font-size:15px}
 .story-dialog{width:calc(100vw - 24px);max-height:calc(100svh - 24px);border-radius:8px;scrollbar-gutter:auto}.story-dialog-toolbar{padding:10px 13px 10px 22px;font-size:21px}.story-dialog-content{padding:26px 21px 28px}.story-memory-gallery>h2{font-size:45px;margin-bottom:17px}.story-memory-gallery>p{font-size:16px;line-height:1.8}.story-gallery-grid{display:grid;grid-template-columns:1fr;gap:17px;margin:27px 0 0}.story-gallery-grid .story-memory-print{width:100%;max-width:none;flex-basis:auto}.story-gallery-grid .story-memory-print strong{font-size:26px}.story-empty-collection{padding:30px 18px;font-size:27px;margin-top:24px}.story-memory-detail{gap:25px}.story-memory-detail figure{padding:6px;transform:rotate(-.65deg)}.story-memory-detail h2{font-size:43px;margin:13px 0 18px}.story-memory-detail p{font-size:16px;line-height:1.85}.story-dialog-actions{margin-top:23px;gap:8px}.story-dialog-actions .button{font-size:15px}.story-dialog-note{font-size:14px!important}.story-memory-pagination{gap:12px;margin-top:25px;padding-top:13px}.story-memory-pagination .story-subtle-button{font-size:14px;max-width:110px;text-align:left}.story-memory-pagination .story-subtle-button:last-child{text-align:right}.story-art-lightbox figcaption{font-size:24px;line-height:1.3;margin-top:21px}.story-art-lightbox figcaption span{font-size:14px;line-height:1.75}.story-toast{font-size:14px;padding:15px 18px;bottom:max(18px,env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}
}
@media(max-width:360px){.story-workspace{padding-inline:16px}.story-topbar{padding-inline:14px;gap:8px}.story-memories-button{gap:6px;padding-inline:9px}.story-tools{gap:7px}.story-opening-copy .story-title{font-size:55px}.story-intro-meta{gap:16px;font-size:13px}.story-progress ol{gap:8px}.story-progress button,.story-progress-finish{font-size:13px}.story-choice{grid-template-columns:.8fr 1.2fr}.story-choice-copy{padding-left:13px}.story-choice-copy strong{font-size:15px}.story-choice-copy>span{font-size:14px}.story-outcome-actions{gap:10px}.story-outcome-actions .button{min-width:160px;padding-inline:16px}.story-ending-heading .story-title{font-size:49px}.story-print-copy{padding-left:14px}.story-memory-print strong{font-size:25px}}

.motion-paused .story-cover-painting img,.motion-paused .story-cover-small,.motion-paused .story-scene-image,.motion-paused .story-pocket,.motion-paused .story-dialog,.motion-paused .story-loading-mark{animation:none!important}
.motion-paused .story-scene-image,.motion-paused .story-preview-image{transform:none!important;transition:none!important}.motion-paused .story-choice,.motion-paused .story-memory-print,.motion-paused .story-choice-image img{transition:none!important}.motion-paused .story-pocket,.motion-paused .story-dialog[open]{opacity:1!important;translate:none!important}
@media(prefers-reduced-motion:reduce){.story-cover-painting img,.story-cover-small,.story-scene-image,.story-pocket,.story-dialog,.story-loading-mark{animation:none!important}.story-preview-image,.story-choice,.story-memory-print,.story-scene-image,.story-choice-image img,.story-choice-seal{transition:none!important}.story-scene-image,.story-preview-image{transform:none!important}.story-pocket,.story-dialog[open]{opacity:1!important;translate:none!important}.story-choice:hover,.story-memory-print:hover{translate:none;transform:none}}
