/* Artwork supplies its own edge; controls add no surrounding frame. */
#stage.stage{--button-font:"Scene Fangsong",FangSong,STFangsong,serif;--button-type-size:clamp(14px,1.15cqw,18px)}
#stage.stage button{font-family:var(--button-font)!important;box-sizing:border-box;border:0!important;outline:0!important;box-shadow:none!important}
#stage.stage button:focus-visible{filter:drop-shadow(0 0 3px #a36237)}
#stage.stage :is(.scene-prev,.scene-next,.peach-memory-back,.inspection-return,.spring-garden-link,.opening-enter,.empty-chapter>button,.fi-skip,.fi-continue){font:400 var(--button-type-size)/1.2 var(--button-font)!important;max-width:calc(100% - 20px);white-space:nowrap}
#stage.stage .scene-nav{border:0!important;outline:0!important;box-shadow:none!important;background:none!important}
#stage.stage .scene-nav>.scene-next{border:0!important;outline:0!important;box-shadow:none!important;border-radius:0;background:transparent!important;max-width:100%}
#stage.stage .fi-continue::after{display:none}
#stage.stage .fi-skip{left:var(--corner-gap);right:auto;top:var(--corner-gap)}
#stage.stage .fi-continue{right:var(--corner-gap);top:var(--corner-gap);bottom:auto}
#stage.stage .peach-memory-back{max-width:calc(100% - 20px)}
#stage.stage .spring-garden-link{width:clamp(176px,24cqw,220px)}
#stage.stage .empty-chapter .quiz-launch{position:relative;inset:auto;transform:none;display:grid!important;visibility:visible!important;opacity:1;margin:12px 0 0;animation:emptyFade 1s 1.5s both;z-index:1}
#stage.stage:not(.empty-active) .quiz-launch,#stage.stage.quiz-open .quiz-launch{display:none!important}
#stage.stage .ending-actions{display:flex;align-items:center;justify-content:center;gap:16px;max-width:90%;width:calc(var(--art-button-width)*2 + 16px);margin-top:32px}
#stage.stage .ending-actions>button{position:relative;inset:auto;isolation:isolate;flex:1 1 0;width:var(--art-button-width);min-width:0;max-width:calc(50% - 8px);min-height:44px;height:44px;margin:0!important;padding:0 18px;transform:none;display:grid;place-items:center;background:transparent!important;color:#fff0bf!important;font:400 var(--button-type-size)/1.2 var(--button-font)!important;letter-spacing:.08em;text-shadow:0 1px 2px #6e170d;white-space:nowrap;animation:emptyFade 1s 1.5s both}
#stage.stage .ending-actions>button::before{content:"";position:absolute;z-index:-1;left:0;top:50%;width:100%;aspect-ratio:1080/230;transform:translateY(-50%);background-image:url('assets/button-red-gold.png');background-size:111.111% 521.739%;background-position:50% 50%;background-repeat:no-repeat;pointer-events:none}
/* Increase literary type, with a height cap for long vertical clauses. */
#stage.stage{--literary-size:clamp(20px,2.5cqw,44px)}
#stage.stage[data-view="first"]{--literary-size:min(clamp(20px,2.3cqw,40px),5cqh)}
#stage.stage[data-view="west"]{--literary-size:min(clamp(20px,2.4cqw,42px),5cqh)}
#stage.stage[data-view="burial"]{--literary-size:min(clamp(21px,2.5cqw,42px),6cqh)}
#stage.stage[data-view="wither"]{--literary-size:clamp(21px,2.6cqw,44px)}
#stage.stage .west-dialogue{top:19%;height:76%;left:30%;gap:1.25em}
#stage.stage .burial-poem{top:27%;height:64%;width:32%}
#stage.stage .single-flower-poem .poem-text{height:100%}
#stage.stage .term-animated-poem{left:36%;top:17%;width:28%;height:65%;font-size:min(clamp(18px,2.3cqw,40px),5.1cqh)}
#stage.stage .term-poem-group{gap:1.3em}
#stage.stage .wedding-vows p{font-size:clamp(21px,2.5cqw,42px)}
#stage.stage .first-preamble{font-size:min(clamp(18px,2cqw,36px),4.7cqh)}
#stage.stage .empty-chapter p,#stage.stage .ending-copy p{font-size:clamp(21px,2.5cqw,42px)}
#stage.stage .fate-verse blockquote{font-family:var(--literary-font);font-size:clamp(21px,2.5cqw,42px)}
#stage.stage .inspection-quote blockquote{font-size:clamp(19px,2cqw,30px)}
#stage.stage .garden-building{border:1.5px solid rgba(157,92,46,.8)!important;border-radius:14%;background:rgba(255,244,194,.06);box-shadow:inset 0 0 10px rgba(255,247,215,.32)!important;animation:gardenBoundary 2.6s ease-in-out infinite}
#stage.stage .garden-building>i{display:none!important}
#stage.stage .garden-building:hover,#stage.stage .garden-building:focus-visible,#stage.stage .garden-building.selected{border-color:#a33d2b!important;background:rgba(255,237,186,.2);box-shadow:inset 0 0 14px #fff7dc99!important;animation:none}
@keyframes gardenBoundary{50%{border-color:rgba(157,92,46,.4);box-shadow:inset 0 0 5px rgba(255,247,215,.1)}}
#stage.stage .west-two{transition:opacity 1.4s ease,clip-path 1.4s ease}
#stage.stage .west-three{transition:opacity 1.25s ease}
#stage.stage .petal-flight i{animation-duration:1.65s;animation-delay:calc(var(--delay) / 3)}
#stage.stage[data-west="2"] .petal-flight{opacity:1}
@media(max-height:500px){#stage.stage .empty-chapter h1{font-size:clamp(40px,11cqh,56px)}#stage.stage .empty-chapter p{margin-top:10px}#stage.stage .ending-actions{margin-top:20px}}
@media(prefers-reduced-motion:reduce){#stage.stage .west-two,#stage.stage .west-three{transition-duration:.01ms}#stage.stage .petal-flight i{animation-duration:.01ms;animation-delay:0s}}
