/* One continuous paper mechanism, staggered quarter-turns with identical seam poses. */
.book-object{isolation:isolate}.book-leaf{animation:book-continuous 4.8s linear infinite;background:#f8e8cc;box-shadow:inset 2px 0 5px #36241a20;backface-visibility:hidden}
.book-leaf:nth-last-child(4){animation-delay:-3.6s}.book-leaf:nth-last-child(3){animation-delay:-2.4s}.book-leaf:nth-last-child(2){animation-delay:-1.2s}.book-leaf:last-child{animation-delay:0s}
@keyframes book-continuous{from{transform:rotateY(0deg) skewY(6deg)}to{transform:rotateY(-180deg) skewY(6deg)}}
.portal-focus .book-leaf{animation-duration:4.8s}
.door-object.dora-ready img{visibility:hidden}.door-object.dora-ready .door-panel{animation:none;transform:rotateY(-72deg)}
.dora-actor{position:absolute;bottom:-11px;left:0;width:132px;height:132px;background:url('/shared/doraemon-poses-v2.webp') 66.6667% 0/400% 200% no-repeat;z-index:3;transform:translate(17px,9px);filter:drop-shadow(0 5px 4px #1b071a22);pointer-events:none}
.door-stowed .door-interior,.door-stowed .door-panel{opacity:0}
.door-object.is-offstage .dora-actor{animation-play-state:paused}
.midi-object .midi-roll{left:18px;right:auto;top:16px;height:calc(100% - 20px);width:420px;animation:midi-flow 9s linear infinite}
.midi-object .midi-roll i{height:4px;border-radius:1px;background:#f7c0a4}.midi-object .midi-roll i:nth-child(3n){background:#e990a3}
.midi-mini-keys{position:absolute;inset:16px auto 0 0;width:16px;display:grid;grid-template-rows:repeat(12,1fr);z-index:2;background:#f2e5cb}
.midi-mini-keys i{border-bottom:1px solid #bca294}.midi-mini-keys i:nth-child(3n){background:#3c2330;width:70%}
.midi-chrome{position:absolute;left:0;right:0;top:0;height:14px;text-align:left;padding-left:4px;background:#411329;color:#f3c9ba;font:7px/14px ui-monospace,monospace;white-space:nowrap;z-index:3}
.portal-focus .midi-object{border-radius:7px;box-shadow:0 22px 40px #16091640;outline:1px solid #e3b7a044}
.portal-focus .midi-chrome{background:#2b202a}.portal-focus .midi-needle{background:#ffe9b7}
.is-routing .midi-roll{animation-play-state:paused!important}
html[data-motion="reduced"] .book-leaf,html[data-motion="reduced"] .midi-roll{animation-play-state:paused!important}
html[data-motion="reduced"] .door-object img{animation:none}
.door-interior{z-index:1}.door-panel{z-index:4}.door-actor-window{position:absolute;inset:0;z-index:2;clip-path:inset(7px 7px 4px)}.door-object .dora-actor{width:148px;height:148px;background:var(--dora-atlas) 0 0/400% 400% no-repeat}.dora-main-actor{z-index:5}.dora-pocket-front{z-index:6;clip-path:polygon(34% 69%,68% 69%,68% 91%,34% 91%)}
@media(max-width:600px){.door-object .dora-actor{width:100px;height:100px}.door-actor-window{clip-path:inset(5px 5px 2px)}}
@media(max-width:600px){.dora-actor{width:88px;height:88px;bottom:-7px;left:-3px;transform:translate(13px,7px)}.midi-chrome{font-size:5px;height:12px;line-height:12px}.midi-object .midi-roll{top:13px;height:calc(100% - 16px)}.midi-mini-keys{top:13px;width:12px}.midi-object .midi-roll{left:13px}.midi-object .midi-roll i{height:3px}}

/* The focus camera may extend beyond the screen; the dialog remains vertically accessible. */
.portal-dialog{overflow-x:hidden;overflow-y:auto}.portal-dialog.paper-arrival{overflow:hidden}
