/* Paper, ink and a small invitation, in the same world as the rooms. */
.letter-light-scene.window-puzzle{aspect-ratio:1.25;border:0;border-radius:3px;perspective:1000px;min-height:350px;background-position:center;box-shadow:inset 0 0 55px #14233388}
.letter-light-scene.window-puzzle .folded-letter{position:relative;width:55%;aspect-ratio:4/5;padding:26px 20px 22px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;color:#59412d;opacity:1;overflow:visible;transform:rotate(-5deg) rotateY(var(--tilt,-18deg));background:linear-gradient(90deg,transparent 49%,#94764e25 49.8%,#fff7dd80 50.3%,transparent 51%),linear-gradient(0deg,transparent 49%,#8b724c28 49.8%,#fff8e6 50.5%,transparent 51%),repeating-linear-gradient(80deg,#b88e4610 0 1px,transparent 1px 4px),linear-gradient(120deg,#f0ddae,#fff3d0 55%,#e0c78f);border:1px solid #bd9b61;border-radius:2px 5px 2px 3px;box-shadow:10px 18px 25px #0c172b77,inset 0 0 20px #b1884d33;transition:box-shadow .2s}
.folded-letter:after{content:'';position:absolute;right:-1px;top:-1px;width:28px;height:28px;background:linear-gradient(45deg,#e2c997 48%,#af8e5c 50%,#fff2d3 52%);clip-path:polygon(0 0,100% 100%,0 100%);transform:rotate(180deg)}
.folded-letter .letter-date{font:italic 14px Georgia;align-self:flex-end}.folded-letter .letter-watermark{font:44px Georgia;color:#a17d425c}.folded-letter .letter-inscription{font:italic clamp(18px,2vw,25px)/1.65 Georgia;white-space:pre-line;margin:0}.folded-letter .letter-whisper{font:italic 12px Georgia;color:#8b714e}.folded-letter .hidden-ink{font:700 clamp(28px,4vw,45px) Georgia;color:#493a33;filter:drop-shadow(0 1px #fff5)}
.letter-light-scene .folded-letter.aligned{box-shadow:0 0 40px #ffefb5a0,10px 18px 25px #0c172b77}
.rabbit-note-paper{position:relative;padding:30px 25px 22px;background:repeating-linear-gradient(#fff4d8 0 37px,#c9ac7345 38px,#fff4d8 39px);border:1px solid #c4a367;box-shadow:5px 9px 16px #59442e33;transform:rotate(-2deg);transition:transform .6s}
.rabbit-note-paper label{font:italic 23px Georgia;color:#62492d}.rabbit-note-paper textarea{background:transparent!important;border:0!important;box-shadow:none!important;font:italic 21px/1.85 Georgia!important;resize:vertical;color:#443221!important;min-height:150px}
.note-sprig{position:absolute;right:24px;top:12px;color:#7c8d58;font-size:35px}.note-signature{font:italic 16px Georgia;display:block;text-align:right;color:#806540}.rabbit-note-paper.note-delivered{transform:rotate(2deg) scale(.95)}
.game-stage[data-puzzle=rabbit-note] .choice-row{gap:8px}.game-stage[data-puzzle=rabbit-note] .choice-row button{font:15px/1.5 Georgia;text-align:left;justify-content:flex-start}
.door{perspective:1000px}.door .door-leaf{position:absolute;inset:0 0 auto;height:auto;aspect-ratio:1.6;transform-origin:left center;z-index:2;background:repeating-linear-gradient(90deg,#ffffff03 0 3px,#00000007 4px 7px),linear-gradient(120deg,#213d30,#14291f);border:5px ridge #87662f;box-shadow:inset 0 0 0 3px #142b21,inset 0 0 0 4px #b39352;backface-visibility:hidden;transition:transform .72s cubic-bezier(.23,.75,.28,1),filter .7s;display:grid;place-items:center;overflow:hidden}
.door-leaf:before{content:'❦';position:absolute;top:4px;left:50%;transform:translateX(-50%);font:36px Georgia;color:#c4a365}.door-leaf:after{content:'';position:absolute;right:10%;top:55%;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe8a5,#ad823c 70%);box-shadow:1px 2px 3px #0009}.door .door-leaf img{width:74%;height:auto;aspect-ratio:auto;object-fit:contain;opacity:.9}.door .number{z-index:3;transition:opacity .3s}.door.opening .door-leaf{transform:rotateY(-112deg);filter:brightness(.6)}.door.opening .number{opacity:0}.door.opening{transform:none;box-shadow:0 0 32px #e7c57888}.door .copy{position:relative;z-index:3;background:#152a22}.door.locked .door-leaf{filter:saturate(.8)}
@media(max-width:600px){.letter-light-scene.window-puzzle{min-height:300px}.letter-light-scene.window-puzzle .folded-letter{width:63%;padding:21px 15px}.folded-letter .letter-watermark{font-size:30px}.door-leaf:before{font-size:24px}}
@media(prefers-reduced-motion:reduce){.door .door-leaf,.rabbit-note-paper{transition:none}.door.opening .door-leaf{transform:none;opacity:0}}

/* One rectangular wooden doorway for every calendar day. */
.doors .door{border-radius:0;border:2px solid #9b814a;overflow:hidden;background:#152a22}
.doors .door-visual{position:relative;aspect-ratio:4/5;overflow:hidden;background:#12231c;border:5px ridge #87662f}
.doors .door-visual>img,.doors .door-visual>.closed-door{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;margin:0;border:0;border-radius:0}
.doors .door .door-leaf{inset:0;height:100%;aspect-ratio:auto;border:0;border-radius:0;box-shadow:inset 0 0 0 8px #173024,inset 0 0 0 9px #aa8c50,inset 0 0 28px #0005}
.doors .door .door-leaf:before{content:'';inset:15% 13% 17%;width:auto;height:auto;transform:none;border:2px ridge #9d8145;border-radius:0;background:linear-gradient(90deg,#0002,transparent 10%,transparent 90%,#0002);box-shadow:inset 0 0 0 4px #183327}
.doors .door .door-leaf img{position:relative;width:72%;border-radius:0;z-index:1}
.doors .door .door-leaf:after{right:7%;top:58%;width:13px;height:13px;box-shadow:0 0 0 3px #8e6d35,2px 3px 5px #0008}
.doors .door .number{border-radius:0;top:17px;left:17px;box-shadow:0 2px 5px #0006;background:#172d22}
.doors .door .copy{border-radius:0}

/* Carved chalet doors: one square-cornered silhouette, real wood and brass detail. */
.doors .door{border:0;background:#13281f;box-shadow:0 8px 20px #0006;border-radius:0}
.doors .door-visual{border:0;aspect-ratio:4/5;isolation:isolate;background:radial-gradient(ellipse at 50% 80%,#ffe8a6,#af6b28 45%,#1a2419 80%)}
.doors .door .door-leaf{background:url('assets/winter-v47/calendar-door.webp') center/100% 100% no-repeat;border:0;box-shadow:none;display:block}
.doors .door .door-leaf:before,.doors .door .door-leaf:after{content:none}
.doors .door .door-leaf img{position:absolute;top:71.5%;left:50%;transform:translate(-50%,-50%);width:52%;height:auto;aspect-ratio:auto;filter:drop-shadow(0 2px 2px #000);opacity:1}
.doors .door .door-leaf .number{position:absolute;inset:32.5% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:60%;height:23%;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;color:#ebc879;font:600 clamp(48px,6vw,88px)/1 "Palatino Linotype","Book Antiqua",Palatino,serif;font-variant-numeric:lining-nums;letter-spacing:-.025em;text-shadow:0 1px 0 #fff2bf,0 2px 1px #82501e,1px 3px 3px #29150688;opacity:1}
.doors .door.locked .door-leaf{filter:none}
.doors .door .copy{border:0;border-top:1px solid #a47b3966;background:#13281f;padding:14px 16px 18px;text-align:center}
.doors .door:hover{transform:none;box-shadow:0 7px 24px #bb8e3d44}
.doors .door:hover .door-leaf{filter:brightness(1.06)}
.doors .door.opening .door-leaf{filter:brightness(.8)}
@media(max-width:640px){.doors .door .door-leaf .number{font-size:clamp(38px,11vw,65px)}.doors .door .copy{padding:10px 8px 13px}}

/* The light alarm is a brass-and-crystal optical instrument. */
#extra-dialog.prism-dialog .light-instrument,.storybook-spread .light-instrument,.task-card .light-instrument{padding:0;border:1px solid #b28d50;border-radius:12px;background:radial-gradient(ellipse at 60% 35%,#435b4b,#162b26 65%,#0b1a18);box-shadow:inset 0 0 0 5px #14251e,inset 0 0 0 6px #b28d5044,0 12px 24px #35261626;overflow:hidden}
#extra-dialog.prism-dialog .light-instrument svg,.light-instrument svg{display:block;width:100%;height:auto;max-height:none;filter:none}
.light-instrument .beam{transition:opacity .25s}.light-instrument [class$="spectrum"],.light-instrument [class$="target-glow"]{transition:opacity .6s}
#extra-dialog.prism-dialog:has(.light-instrument){background:linear-gradient(115deg,#f7ecd4,#ead8b4);border:1px solid #a78147;box-shadow:0 20px 80px #0008,inset 0 0 0 6px #d6bd8c;border-radius:14px}
#extra-dialog.prism-dialog .range-label{font-size:1rem;color:#654927}
#extra-dialog.prism-dialog input[type=range]{min-height:44px;cursor:ew-resize;accent-color:#b88b40}

/* Released doors show their scene on every device, without a 3D cover hiding it. */
.doors .door.opened .door-leaf{visibility:hidden;pointer-events:none;transition:none}
