/* V6 is additive: original window geometry, media and corruption stay intact. */
.movable{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.scrap-object.movable{pointer-events:auto;border:0;padding:0;background:none;color:inherit;font:inherit}
.scrap-object.movable>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.movable:focus-visible{outline:2px dashed #9f5273;outline-offset:5px}
.movable.is-dragging{z-index:270!important;cursor:grabbing;will-change:translate;filter:drop-shadow(4px 7px 5px #63364b35)}
.movable.is-dragging *{cursor:grabbing}
.site-header{z-index:900}
.global-controls #erase-ink{font:10px/1.5 var(--mono);min-height:44px}
.rest-card.movable{touch-action:none;z-index:2}
.rest-card:focus-visible::after{content:'arrows to move · Home to restore';display:block;font:9px var(--mono)}
.marble-angel{left:18%;top:185px;width:104px;height:120px;transform:rotate(-3deg);z-index:2;filter:drop-shadow(5px 7px 3px #604c5730)}
.porcelain-heart{left:12%;top:755px;width:78px;height:71px;transform:rotate(-13deg);z-index:2;filter:drop-shadow(4px 5px 3px #604c5733)}
.glass-orb{right:1.5%;top:225px;width:85px;height:72px;transform:rotate(8deg);z-index:2;filter:drop-shadow(4px 7px 3px #604c5726)}
.ribbon-keepsake{left:61%;top:730px;width:78px;height:78px;transform:rotate(14deg);z-index:2}
.ribbon-keepsake span{display:block;position:absolute;top:62px;left:0;width:92px;font:italic 11px Georgia,serif;background:#fff2e9;transform:rotate(-8deg);padding:3px}
.little-relic-note{position:absolute;left:13%;top:827px;font:italic 11px/1.3 Georgia,serif;color:#87556b;transform:rotate(-6deg);pointer-events:none}
.quill-label{position:absolute;top:100%;right:0;width:120px;padding:4px;background:#fff1e7;font:italic 11px Georgia,serif;transform:rotate(-5deg)}
#quill[aria-pressed=true]{opacity:.35}
.tiny-receipt.attempt-pad{display:block;left:82%;top:710px;width:162px;height:166px;padding:0;border:0;text-align:left;background:#eed7e1;box-shadow:2px 3px 0 #f8e8ed,3px 4px 0 #ba8d9e,5px 6px 0 #f5dfe9,6px 7px 0 #c9a0b1;z-index:2;color:#73425b}
.attempt-sheet{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;padding:28px 14px 12px;background:linear-gradient(100deg,#fff0f3,#f2e4ef);border:1px solid #d0a9b8;overflow:hidden;line-height:1.5;color:#73425b;transform-origin:50% 0}
.attempt-binding{position:absolute;top:6px;left:7px;right:7px;height:8px;border-top:1px dashed #b4869c;background:repeating-linear-gradient(90deg,transparent 0 10px,#b88a9b66 10px 12px,transparent 12px 16px)}
.attempt-header{font:10px/1.4 var(--mono);display:block;margin-bottom:13px;letter-spacing:.1px}
.attempt-body{font:12px/1.5 'Jacy Typewriter',monospace;display:block;max-width:100%;overflow-wrap:break-word}
.attempt-date{display:block;margin-top:auto;text-align:right;padding-top:9px;font:9px/1.4 var(--mono)}
.pencil-trace{display:none;position:absolute;left:15px;bottom:30px;width:28px;border-top:1px solid #8d6c7b44;transform:rotate(-12deg)}
.paper-flight-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:280;contain:strict}
.flying-attempt{position:absolute;margin:0;pointer-events:none;transform-origin:50% 0;box-shadow:3px 7px 6px #63364b25;will-change:transform;clip-path:polygon(0 0,8% 3%,17% 0,25% 2%,34% 0,43% 3%,52% 0,61% 2%,70% 0,81% 3%,90% 0,100% 2%,100% 100%,0 100%)}
#drawing-surface{position:fixed;inset:0;z-index:700;touch-action:none;cursor:none}
#ink-art{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;pointer-events:none;overflow:hidden;z-index:800}
#ink-art::backdrop{background:transparent;pointer-events:none}
#ink-art canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#quill-cursor{position:absolute;width:45px;height:105px;max-width:none;transform:translate(-4px,-101.5px) rotate(18deg);transform-origin:4px 101.5px;pointer-events:none;filter:drop-shadow(1px 2px 2px #8f567b55)}
.quill-tools{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:2600;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;width:max-content;max-width:calc(100% - 24px);padding:8px 12px;border:1px solid #c895aa;background:#fff1edf5;box-shadow:3px 4px 0 #94647822;color:#76475d}
.quill-tools[hidden],#drawing-surface[hidden],#quill-cursor[hidden]{display:none}
.quill-tools>span{font:italic 12px Georgia,serif;width:100%;text-align:center}
.quill-tools button{min-height:44px;padding:7px 10px;border:1px solid #d7b5c4;background:#f9e7ee;color:#714459;font:10px/1.4 var(--mono)}
.quill-tools button:focus-visible{outline:2px solid #9f5273;outline-offset:2px}
@media(min-width:761px) and (max-width:1050px){
 .marble-angel{left:17%;top:190px;width:83px;height:96px}
 .porcelain-heart{left:15%;top:1025px}
 .glass-orb{right:4%;top:185px;width:65px;height:55px}
 .ribbon-keepsake{left:40%;top:1020px}
 .little-relic-note{top:1100px;left:15%}
 .tiny-receipt.attempt-pad{left:77%;top:255px;width:150px}
}
@media(max-width:760px){
 .tiny-receipt.attempt-pad{position:relative;order:5;left:auto;top:auto;margin:30px 18px 15px auto;width:176px;height:172px;flex-shrink:0}
 .attempt-body{font-size:13px}
 .rest-card{order:6}
 .room-caption{order:8}
 .lost-feather.scrap-object{display:block;position:relative;order:7;right:auto;top:auto;align-self:flex-start;margin:8px 0 20px 25px;width:55px;height:128px}
 .quill-label{left:35px;right:auto;top:55%;width:135px;font-size:12px}
 .watch-stamp.scrap-object{display:block;position:relative;order:7;right:auto;top:auto;align-self:flex-end;margin:-100px 8px 28px 0;width:62px;height:76px}
 .marble-angel{left:auto;right:24px;top:12px;width:50px;height:58px}
 .porcelain-heart{position:relative;order:5;left:auto;top:auto;align-self:flex-start;width:66px;height:60px;margin:25px 18px -100px}
 .glass-orb{position:relative;order:7;right:auto;top:auto;align-self:center;width:65px;height:55px;margin:-35px 0 0}
 .ribbon-keepsake{display:none}
 .little-relic-note{display:none}
 .quill-tools{gap:5px;padding:7px;bottom:max(6px,env(safe-area-inset-bottom))}
 .quill-tools button{font-size:10px;padding:6px 9px}
}
@media(prefers-reduced-motion:reduce){.movable{scroll-behavior:auto}}
