/* The game's illustrated frame, separate from scene art and readable live text. */
:root{--ink:#f4ecda;--muted:#c8bea8;--accent:#e5b779;--paper:#182f34;--sage:#b6cec6;--gold:#c79b65;--window:#17343ae8;--dialogue-bottom:25px;--dialogue-height:196px;--stage-bottom:245px}
html,body{background:#10252a}a{color:inherit;text-decoration:none}#game-shell{width:100vw;max-width:none;background:#10252a;--film-matte:#132429}
#room{object-fit:cover;width:100%;height:100%;filter:saturate(.9);transform:none}
#scene{background:#132429}#curtain-light{opacity:.45}
#game-shell[data-visual="cg"] #room{opacity:0}#game-shell[data-visual="cg"] #curtain-light{opacity:0}
#game-shell[data-visual="stage"] #room{opacity:1}
#title-screen{background:linear-gradient(90deg,#10282ce8 0%,#132c30b8 30%,#10282c12 67%);border:0}
#title-screen::before{content:'';position:absolute;inset:20px;border:1px solid #f3d7a444;pointer-events:none;mask-image:linear-gradient(90deg,#000,transparent 75%)}
.title-content{left:9%;top:10%;width:40%;animation:titleIn 1s ease both}
.title-flower{width:102px;height:102px;object-fit:contain;margin:0 0 4px -10px;filter:drop-shadow(0 4px 10px #0003)}
h1{color:#fff1d6;font-size:clamp(46px,5.2vw,88px);letter-spacing:.055em;text-shadow:0 2px 0 #3b3228,0 0 35px #b77d4b35}
.chapter-name{color:#d8b98c;font-size:19px;margin:14px 0 0;letter-spacing:.35em}
.title-actions{margin-top:26px;width:300px;gap:8px}
.title-actions button{position:relative;padding:11px 25px;min-height:45px;background:linear-gradient(100deg,#f7ecdde6,#f7ecddad);color:#4d3e30;border:1px solid #e4c69b;box-shadow:inset 0 0 0 3px #17313718,0 4px 15px #0002;font-family:GalgameWenKai;font-size:20px;letter-spacing:.12em;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);transition:transform .25s,background .25s}
.title-actions button:hover{padding-left:25px;transform:translateX(8px);background:#fff4e2;color:#775039}
.title-actions #start,.title-actions #continue{background:linear-gradient(100deg,#c58d54,#8e5d3e);color:#fff4df;box-shadow:inset 0 0 0 3px #f9dcab30}
.title-actions button span{opacity:.65;font-size:15px}
.edition{left:38px;bottom:28px;color:#eed9b2;font-size:10px}.creator-link{position:absolute;right:34px;bottom:25px;display:flex;gap:14px;align-items:center;padding:10px 16px;color:#f9ecd3;font:13px GalgameUI;background:#132a31b8;border:1px solid #dec59b55;backdrop-filter:blur(8px)}.creator-link span{color:#d3af7f;font-size:11px}.creator-link:hover{background:#29454c}
#game-shell[data-completed="true"] #title-screen{background:linear-gradient(90deg,#102127e8,#132c3099 35%,#10282c08 70%)}
#game-shell[data-completed="true"][data-screen="title"] #room{filter:saturate(.75) brightness(.8);transform:none}
.reading-header{padding:22px 30px;background:none;color:#efe4cc;height:75px;align-items:flex-start}
.reading-header p{padding:9px 23px 9px 39px;background:linear-gradient(90deg,#f5ebdce8,#f5ebdcc4);color:#51422f;border-block:1px solid #d0ad77;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);position:relative;max-width:55%;font:17px GalgameWenKai;letter-spacing:.03em;text-shadow:none}
.reading-header p::before{content:'';position:absolute;left:3px;top:0;bottom:0;width:34px;background:url('assets/polish/ui-flower.webp') center/contain no-repeat}
.chapter-mark{display:none}.reading-header nav{gap:7px}.reading-header button{background:#18363bd9;border:1px solid #c3a37588;color:#f1dfbd;min-width:56px;font-size:12px;letter-spacing:.1em;padding:7px 14px;backdrop-filter:blur(12px)}.reading-header button:hover{background:#365257;color:#fff4db}
#dialogue{left:5%;right:5%;bottom:var(--dialogue-bottom);top:auto;height:var(--dialogue-height);min-height:0;padding:31px 38px 0;background:linear-gradient(100deg,#18373cec,#1b343be8 70%,#203a40e8);border:1px solid var(--gold);outline:1px solid #ddba7d66;outline-offset:5px;border-radius:22px 5px 22px 5px;box-shadow:0 10px 40px #07171e4d,inset 0 0 50px #060e171c;display:flex;flex-direction:column;backdrop-filter:blur(8px)}
#dialogue::before{left:18px;top:16px;width:calc(100% - 36px);height:calc(100% - 32px);background:none;border:1px solid #f5dda21c;border-radius:10px;pointer-events:none}
#dialogue::after{content:'';position:absolute;right:-22px;bottom:-12px;width:130px;height:130px;background:url('assets/polish/ui-flower.webp') center/contain no-repeat;opacity:.32;pointer-events:none;transform:rotate(-16deg);mask-image:linear-gradient(0deg,#000,transparent 95%)}
.dialogue-top{position:absolute;top:-23px;left:26px;right:25px;height:40px;margin:0;align-items:center}
.speaker-wrap{position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:14px;min-width:165px;max-width:calc(100% - 40px);height:40px;padding:0 28px 0 43px;background:linear-gradient(100deg,#fff4de,#ead3ae);border:1px solid #b78a58;box-shadow:0 3px 12px #07151c33;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%)}
.speaker-wrap::before{content:'';position:absolute;left:1px;top:-6px;width:48px;height:48px;background:url('assets/polish/ui-flower.webp') center/contain no-repeat}
#speaker{font:22px GalgameWenKai;color:#523b2a;letter-spacing:.04em;white-space:nowrap}#channel{font:12px GalgameUI;color:#79664e;border-left:1px solid #b99b76;padding-left:12px;white-space:nowrap}
#page-indicator{color:#d7bf98;background:#172f35d9;padding:4px 7px;font-size:10px}
#dialogue-advance{font-size:var(--text-size);line-height:1.7;flex:1;min-height:0;height:auto;padding:0 30px 0 0;color:#fff1dc;overflow:hidden}#dialogue-advance:hover{color:#fff1dc}#line{min-height:0}#dialogue[data-channel="thought"] #line{color:#d0ded8}#dialogue[data-channel="thought"]::before{background:none;border-color:#a6c2b94d}
#advance-mark{width:22px;height:22px;border:0;right:0;bottom:14px;transform:none;background:url('assets/polish/ui-flower.webp') center/contain;filter:brightness(1.35);animation:continueGlow 1.6s ease-in-out infinite}
@keyframes continueGlow{50%{opacity:.4;transform:translateY(3px)}}
.reading-controls{position:relative;z-index:1;flex-shrink:0;height:42px;margin:8px 0 0;border-top:1px solid #d6b98238;color:#e3d0ae;font-size:12px;gap:22px}.reading-controls button{min-height:35px;letter-spacing:.06em}.control-left{gap:18px}.reading-controls button:hover{color:#fff8e9}#rates button[aria-pressed="true"],button[aria-pressed="true"]#auto,button[aria-pressed="true"]#fast{color:#ffcc7d}#rates button[aria-pressed="true"]::after{background:#edbe78}
#choices{position:absolute;top:40%;bottom:auto;left:50%;right:auto;transform:translate(-50%,-50%);width:min(620px,62vw);z-index:10;display:flex;flex-direction:column;gap:19px;margin:0;pointer-events:auto}
#choices button{position:relative;flex:none;width:100%;min-height:62px;padding:14px 40px;text-align:center;color:#563d29;font:25px/1.4 GalgameWenKai;background:linear-gradient(100deg,#f8edda,#fff5e5 48%,#ead6b7);border:1px solid #bc8a4e;box-shadow:inset 0 0 0 4px #fff7e7,0 7px 30px #0717205c;clip-path:polygon(20px 0,calc(100% - 20px) 0,100% 50%,calc(100% - 20px) 100%,20px 100%,0 50%);transition:transform .22s,filter .22s;animation:choiceIn .4s both}
#choices button::before,#choices button::after{content:'';position:absolute;top:50%;width:9px;height:9px;border:1px solid #bb8b4a;transform:translateY(-50%) rotate(45deg)}#choices button::before{left:20px}#choices button::after{right:20px}#choices button:hover{transform:scale(1.035);filter:brightness(1.08);border-color:#e7ad65;background:#fff5dd}
#choices button:nth-child(2){animation-delay:.08s}#choices button:nth-child(3){animation-delay:.16s}@keyframes choiceIn{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
#game-shell[data-choosing="true"] #room{filter:brightness(.77) saturate(.85)}
#ending{position:absolute;left:0;right:0;bottom:calc(100% + 28px);margin:0;justify-content:center;flex-wrap:wrap;gap:12px;padding:16px;color:#f4e8ce;pointer-events:auto;background:linear-gradient(90deg,transparent,#16343cec 15%,#16343cec 85%,transparent)}#ending>span{color:#ecd5ad;margin-right:10px;font:21px GalgameWenKai}#ending button,#ending a{padding:9px 14px;border:1px solid #b89a6e66;background:#16343b;font-size:13px}#ending a{background:#bc8c5b;color:#162c31}#ending a:hover{background:#edc28c}
#sticker{width:clamp(260px,24vw,430px);height:clamp(260px,24vw,430px);left:9%;top:22%;background-size:200% 200%;background-repeat:no-repeat;filter:drop-shadow(0 6px 12px #11222e66);z-index:3;animation:reactionIn .48s cubic-bezier(.18,.88,.2,1.2) both}
@keyframes reactionIn{0%{opacity:0;transform:translateY(20px) rotate(-9deg) scale(.65)}65%{opacity:1;transform:translateY(-5px) rotate(2deg) scale(1.05)}100%{opacity:1;transform:translateY(0) rotate(-3deg) scale(1)}}
#cg-stage,.prop-stage{inset:0 0 var(--stage-bottom);border:0;box-shadow:none}#cg-stage{container-type:size;background:#132429}#cg-frame{position:relative;width:min(100cqw,calc(100cqh * var(--cg-aspect,1.7778)));height:min(100cqh,calc(100cqw / var(--cg-aspect,1.7778)));transform-origin:var(--focus,50%) 50%;isolation:isolate}
#cg-image{display:block;width:100%;height:100%;object-fit:contain;transform:none!important;animation:none!important}#cg-stage.arriving #cg-frame{animation:camera 7s cubic-bezier(.2,.5,.2,1) both}
#lens-streak{position:absolute;inset:0;width:100%;height:100%;background:none;box-shadow:none;opacity:0;pointer-events:none;z-index:3}#lens-streak i{position:absolute;left:56.6%;top:15.2%;width:2px;height:2px;border-radius:50%;background:#fff;box-shadow:0 0 4px 2px #fff,0 0 11px 5px #fd695c}
#lens-streak i:nth-child(2){left:60.4%;top:14.4%}#lens-streak i:first-child::after{content:'';position:absolute;left:-130cqw;top:0;width:260cqw;height:1px;background:linear-gradient(90deg,transparent,#d4e4ee88 25%,#fff 50%,#f5d8d8a3 75%,transparent);box-shadow:0 0 5px #fdf7ee;transform:rotate(-6.8deg);transform-origin:50% 50%}
#game-shell[data-effect="cold"] #lens-streak{animation:pupilLight 2.8s ease both}@keyframes pupilLight{0%{opacity:0}20%{opacity:1}70%{opacity:.7}100%{opacity:.4}}
.ui-hidden #cg-stage,.ui-hidden .prop-stage{inset:0}.ui-hidden #cg-frame{animation:none!important;transform:none!important}
#chapter-intro{position:absolute;inset:0;z-index:30;background:#10252b;overflow:hidden;width:100%;height:100%;color:#fff2d9;cursor:default;animation:introIn .5s both}
#chapter-intro>img{width:100%;height:100%;object-fit:cover;animation:chapterDrift 3s ease-out both}#chapter-intro::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#061b27d9,transparent 65%)}
.chapter-intro-copy{position:absolute;z-index:2;left:8%;bottom:16%;text-align:left;padding:22px 55px 26px 28px;border-left:2px solid #d6b67a;background:linear-gradient(90deg,#0e2b33ba,transparent)}.chapter-number{display:block;font:14px GalgameUI;letter-spacing:.25em;color:#e3c593;margin-bottom:14px}.chapter-intro-copy strong{display:block;font:clamp(32px,4.3vw,68px) GalgameWenKai;font-weight:400;letter-spacing:.12em;text-shadow:0 3px 14px #09141d}.chapter-flower{position:absolute;left:-33px;top:-21px;width:66px;height:66px;object-fit:contain}
@keyframes introIn{from{opacity:0}to{opacity:1}}@keyframes chapterDrift{from{transform:scale(1.045)}to{transform:scale(1)}}
.photo-print{position:relative;margin:0;width:auto;max-width:84%;height:90%;padding:12px 12px 18px;background:#fcf5e5;box-shadow:0 15px 60px #07151d80;transform:rotate(-2deg);display:flex;flex-direction:column;align-items:center;animation:photoLand .7s cubic-bezier(.14,.72,.2,1) both}.photo-print img{display:block;width:100%;height:calc(100% - 26px);object-fit:contain;min-height:0;flex:1}.photo-print figcaption{font:16px GalgameWenKai;color:#67523f;padding-top:8px;line-height:1.2;text-align:center}
@keyframes photoLand{from{opacity:0;transform:translateY(40px) rotate(8deg) scale(.84)}to{opacity:1;transform:rotate(-2deg)}}
dialog{color:#eadfc9;background:#18343bf5;border:1px solid #c7a572;outline:1px solid #dfc39066;outline-offset:5px;box-shadow:0 30px 100px #05141a99;border-radius:8px 0 8px 0;max-height:90dvh;max-width:min(680px,92vw);width:680px}dialog::backdrop{background:#071c23b8;backdrop-filter:blur(12px)}dialog>header{border-bottom:1px solid #d3b47e55;padding:23px 30px 18px;background:linear-gradient(90deg,#24464d,transparent)}dialog h2{font:30px GalgameWenKai;letter-spacing:.12em;color:#f1dfbc}dialog header button{border:1px solid #bca37966;color:#ebd8b6;font-size:23px;width:36px;height:36px}.panel-actions{gap:10px}.panel-actions button{padding:12px 20px;border:1px solid #a8906a66;background:linear-gradient(90deg,#31505988,#16353b33);font:22px GalgameWenKai;color:#f1dfc2}.panel-actions button:hover{background:#b8905c;color:#172e34}.panel-actions button.primary{background:#bd8c55;color:#fff1d4}
#panel-body{padding:22px 30px 28px;max-height:calc(90dvh - 85px)}#panel-body>p{color:#d0c7b5}.setting{border-color:#c2ad8738;color:#e4d6bb}.setting select{color:#e4d6bb;border-color:#b69b70}.setting select option{color:#e4d6bb;background:#203d43}.setting-options button[aria-pressed="true"]{background:#c1945a;color:#192f33}.setting input:checked{background:#c1945a;border-color:#c1945a}.credits{color:#e0d2b9}.credits a{color:#e8bc81}
dialog[data-kind="log"]{width:1000px;max-width:92vw}.log-entry{display:block;width:100%;text-align:left;padding:20px 18px;border-bottom:1px solid #ccb98e44;position:relative;color:#eee5d3}.log-entry:hover{background:#ffffff0d;color:#fff4df}.log-entry:hover::after{content:'跳转';position:absolute;right:14px;top:20px;font:12px GalgameUI;color:#e2b77e}.log-entry small{color:#dab77d;font-size:13px}.log-entry p{font:23px/1.65 GalgameWenKai;max-width:94%}.log-entry[data-thought="true"] p{color:#b9d0c9}
dialog[data-kind="chapters"]{width:1230px;max-width:94vw}.chapter-list{grid-template-columns:1fr 1fr;gap:22px}.chapter-list button{position:relative;min-height:0;height:190px;display:block;overflow:hidden;border:1px solid #b69c70;padding:0;text-align:left;isolation:isolate;background:#173039}.chapter-list button:hover{padding:0}.chapter-list img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s;z-index:-2}.chapter-list button::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0a252eef,transparent 80%);z-index:-1}.chapter-list button:hover img{transform:scale(1.05)}.chapter-list button:disabled{opacity:.4}.chapter-list button:disabled img{filter:grayscale(1) blur(4px)}.chapter-list button>span:nth-child(2){position:absolute;top:18px;left:19px;font:17px GalgameUI;color:#fff0cf}.chapter-list button>span:nth-child(3){position:absolute;bottom:23px;left:22px;font:29px GalgameWenKai;color:#fff1d7}.chapter-list i{position:absolute;right:24px;bottom:27px;color:#e9c58c}
dialog[data-kind="gallery"]{width:1250px;max-width:94vw}.gallery-grid{gap:25px}.gallery-grid button{background:#153039;border:1px solid #b49a6a77;box-shadow:0 5px 18px #0003}.gallery-grid span{color:#eee0c5;padding:12px 16px}.gallery-full{max-height:calc(90dvh - 180px)}.gallery-controls{color:#e8d8b7;margin-top:10px}
dialog[data-kind="routes"]{width:1360px;max-width:95vw;border-color:#bca372;background:#183840}.route-stage{height:min(780px,88dvh);background:linear-gradient(110deg,#132c31e8,#1e384166),url('assets/polish/home-living.webp') center/cover;color:#f6e6c8}.route-halo{background:linear-gradient(100deg,#0d2933d6 10%,#132e36aa 40%,transparent 80%),radial-gradient(ellipse at 70% 40%,var(--route-color),transparent 65%);backdrop-filter:blur(6px)}.route-halo::after{border:1px solid #ecd5a755;box-shadow:0 0 0 18px #e5ca9710,0 0 0 75px #fff1;width:450px;height:450px;left:48%;top:11%}.route-copy{left:10%;top:27%}.route-index{color:#d0ad7f}.route-copy h3{font-size:clamp(48px,6.5vw,88px);color:#fff0d3;text-shadow:0 3px 10px #08222b55}.route-enter{background:linear-gradient(100deg,#e9cfaa,#bd986b);color:#332b24;min-width:220px;padding:16px 22px;border:1px solid #f4dcb4;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%)}.route-enter:hover{background:#f9dfb7;color:#513521}.route-enter:disabled{color:#e0d5bd;background:#253f46;opacity:.65}.route-character{height:141%;right:0;top:2%;filter:drop-shadow(12px 8px 15px #07181c44)}.route-nav{background:#0f2b33e8;border-top:1px solid #b2986a66;gap:30px;padding:22px}.route-nav button{color:#b3bab8;font-size:16px}.route-nav button[aria-pressed="true"]{color:#ffdc9d;border-color:#e9b678}.route-nav button:hover{color:#ffe9c4}dialog[data-kind="routes"]>header{background:linear-gradient(#0b222bce,transparent)}
#toast{color:#f2e5c9;background:#18343af2;border:1px solid #d2ad79}
@media(min-width:1700px){:root{--dialogue-height:220px;--stage-bottom:273px}#dialogue{left:8%;right:8%;padding:37px 48px 0}.reading-controls{height:47px}.dialogue-top{left:37px}.title-actions{width:330px;gap:12px}.title-actions button{min-height:49px}}
@media(max-width:700px) and (orientation:portrait){
 :root{--dialogue-bottom:0px;--dialogue-height:33dvh;--stage-bottom:0px}
 #scene{top:0;left:0;width:100%;height:67dvh;min-height:0;border:0}#room{height:100%;object-fit:cover;object-position:58% 50%}
 #game-shell[data-screen="title"] #scene{height:100dvh}.actor{height:150%;left:calc(54% - 32dvh);top:6%}#game-shell[data-shot="portrait"] #actors{transform:translate(-10%,0) scale(1.04)}
 #game-shell[data-screen="title"] #actors{transform:translateX(15%)}#game-shell[data-screen="title"] .actor{height:96%;top:0%;left:calc(55% - 32dvh)}
 #title-screen{background:linear-gradient(0deg,#102b32f7 0%,#102b32e0 25%,#102b3220 68%)}#title-screen::before{inset:12px;mask-image:linear-gradient(0deg,#000,transparent 80%)}
 .title-content{left:9%;width:82%;top:auto;bottom:9%}.title-flower{width:65px;height:65px;margin-bottom:-3px}h1{font-size:clamp(35px,9.5vw,54px);white-space:nowrap}.chapter-name{font-size:14px;margin-top:8px}.title-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:none;gap:9px 12px;margin-top:24px}.title-actions button{font-size:17px;min-height:40px;padding:8px 14px}.title-actions button:hover{padding-left:14px;transform:none}.title-actions #start,.title-actions #continue{grid-column:1/-1}.creator-link{bottom:20px;left:9%;right:auto;font-size:11px;padding:6px 8px;gap:9px}.creator-link span{font-size:10px}.edition{left:auto;right:9%;bottom:28px;font-size:10px}
 .reading-header{padding:12px 11px;top:var(--safe-top);height:50px}.reading-header p{max-width:57%;font-size:12px;letter-spacing:0;padding:7px 15px 7px 26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reading-header p::before{width:25px;left:0}.reading-header nav{gap:4px}.reading-header nav button{min-height:30px;min-width:32px;padding:5px 7px;font-size:10px;background:#16343bca;border:1px solid #c4a87955}
 #dialogue{top:auto;bottom:0;left:0;right:0;height:var(--dialogue-height);min-height:192px;padding:30px 21px calc(6px + var(--safe-bottom));border-radius:18px 0 0 0;outline-offset:3px;outline:1px solid #c3a37077;background:linear-gradient(120deg,#173b41fa,#142f37fa);border-inline:0;border-bottom:0;box-shadow:0 -8px 40px #0b222a3b;display:flex}
 #dialogue::before{inset:12px;border-radius:9px;width:auto;height:auto}#dialogue::after{width:90px;height:90px;right:-12px;bottom:-10px;opacity:.23}.dialogue-top{top:-19px;left:17px;right:15px;height:36px;margin:0}.speaker-wrap{height:36px;padding:0 22px 0 35px;min-width:135px;gap:10px;max-width:90%}.speaker-wrap::before{width:40px;height:40px;top:-4px;left:0}#speaker{font-size:19px}#channel{font-size:10px;padding-left:9px}#page-indicator{font-size:9px}#dialogue-advance{font-size:clamp(18px,var(--text-size),24px);line-height:1.65;padding:0 17px 0 0;flex:1;min-height:0}#line{min-height:0}.reading-controls{height:37px;margin-top:5px;gap:6px;font-size:11px;flex-shrink:0}.control-left{gap:10px}.reading-controls button{min-width:29px;min-height:34px;padding:4px}#rates{gap:0}#advance-mark{width:18px;height:18px;right:0;bottom:7px}
 #choices{top:35%;left:50%;right:auto;bottom:auto;width:86%;gap:14px;transform:translate(-50%,-50%)}#choices button{min-height:54px;font-size:20px;padding:11px 29px}#choices button:hover{transform:none}
 #sticker{width:clamp(170px,50vw,240px);height:clamp(170px,50vw,240px);top:28%;left:3%;z-index:3}
 #cg-stage,.prop-stage{inset:0}#cg-stage.arriving #cg-frame{animation:camera 6s ease-out both}#cg-stage.arriving #cg-image{animation:none!important}#cg-image{object-fit:contain}
 #chapter-intro>img{object-fit:contain;height:75%;position:absolute;inset:0;top:6%;background:#122b32}.chapter-intro-copy{left:8%;right:5%;bottom:15%;padding:20px 17px 22px}.chapter-intro-copy strong{font-size:30px;letter-spacing:.06em;line-height:1.4}.chapter-number{font-size:11px;margin-bottom:10px}.chapter-flower{width:48px;height:48px;left:-25px;top:-17px}
 #ending{left:0;right:0;bottom:calc(100% + 28px);gap:8px;padding:12px;background:#142e36eb}#ending>span{font-size:18px;flex-basis:100%;text-align:center;margin:0 0 6px}#ending a{flex-basis:100%;text-align:center;font-size:13px}#ending button{font-size:12px;padding:8px 13px}
 .photo-print{max-width:91%;height:auto;max-height:84%;padding:8px 8px 12px}.photo-print img{width:auto;max-width:100%;height:auto;max-height:49dvh;object-fit:contain;flex:none}.photo-print figcaption{font-size:13px;padding-top:9px}
 dialog{max-width:92vw;width:92vw;max-height:90dvh}dialog>header{padding:17px 18px 14px}dialog h2{font-size:25px}#panel-body{padding:17px 18px 22px;max-height:calc(90dvh - 78px)}.log-entry{padding:17px 4px}.log-entry p{font-size:20px}.log-entry small{font-size:12px}.log-entry:hover::after{display:none}
 .chapter-list{grid-template-columns:1fr;gap:15px}.chapter-list button{height:165px}.chapter-list button>span:nth-child(2){font-size:13px;top:14px;left:16px}.chapter-list button>span:nth-child(3){font-size:24px;bottom:19px;left:17px}.chapter-list i{bottom:22px;right:19px}
 .gallery-grid{gap:12px}.gallery-grid span{font-size:16px;padding:9px 10px}.gallery-full{max-height:calc(90dvh - 160px)}
 .route-stage{height:87dvh}.route-character{height:104%;right:-47%;top:3%}.route-copy{top:auto;bottom:25%;left:8%;text-shadow:none}.route-copy h3{font-size:46px;margin:10px 0 17px}.route-index{font-size:12px}.route-enter{font-size:15px;min-width:190px;padding:14px 17px}.route-nav{padding:14px 18px;gap:12px 22px;justify-content:flex-start;flex-wrap:wrap}.route-nav button{font-size:13px;padding:9px 0}.route-halo{background:linear-gradient(0deg,#112f39 13%,#102b340a 70%),radial-gradient(ellipse at 75% 25%,var(--route-color),transparent 70%)}.route-halo::after{width:300px;height:300px;left:18%;top:10%}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:700px){:root{--dialogue-height:36dvh}#scene{height:64dvh}#dialogue{min-height:180px;padding-top:25px}#dialogue-advance{font-size:20px}.reading-controls{height:31px;margin-top:3px}.reading-controls button{min-height:29px}.title-content{bottom:11%}.title-flower{width:43px;height:43px}h1{font-size:34px}.title-actions{margin-top:15px;gap:7px 10px}.title-actions button{font-size:15px;min-height:33px;padding:6px 12px}.creator-link{bottom:14px}.route-nav{gap:7px 19px;padding:10px 15px}.route-copy{bottom:26%}#sticker{width:160px;height:160px;top:28%}}
@media(orientation:landscape) and (max-height:560px){
 :root{--dialogue-height:126px;--dialogue-bottom:12px;--stage-bottom:155px}#scene{inset:0;height:100dvh}#dialogue{left:4%;right:4%;padding:22px 25px 0;border-radius:14px 3px}#dialogue-advance{font-size:19px;line-height:1.5}.dialogue-top{top:-16px;left:18px;height:29px}.speaker-wrap{height:29px;min-width:120px;padding-left:32px;gap:8px}#speaker{font-size:18px}#channel{font-size:9px;padding-left:8px}.speaker-wrap::before{width:33px;height:33px;top:-3px}.reading-controls{height:29px;margin-top:3px;font-size:10px;gap:14px}.reading-controls button{min-height:27px}#dialogue::after{width:80px;height:80px}#dialogue::before{inset:10px;width:auto;height:auto}
 .reading-header{height:44px;padding:9px 18px}.reading-header p{font-size:12px;padding:6px 18px 6px 30px}.reading-header p::before{width:29px}.reading-header button{min-height:29px;font-size:10px;min-width:42px;padding:4px 10px}
 #choices{top:34%;width:min(520px,65vw);gap:11px}#choices button{font-size:19px;min-height:43px;padding:8px 28px}#sticker{width:185px;height:185px;top:17%;left:7%}
 .title-content{top:7%;left:9%;width:43%}.title-flower{width:43px;height:43px;margin-bottom:0}h1{font-size:40px}.chapter-name{font-size:12px;margin-top:5px}.title-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-top:13px;gap:7px 12px}.title-actions button{min-height:30px;padding:5px 11px;font-size:14px}.title-actions #start,.title-actions #continue{grid-column:1/-1}.creator-link{right:23px;bottom:15px;font-size:10px;padding:6px 10px}.edition{bottom:20px;left:25px}
 .chapter-intro-copy{bottom:15%;padding:15px 35px 17px 22px}.chapter-intro-copy strong{font-size:35px}.chapter-number{font-size:11px;margin-bottom:8px}.chapter-flower{width:50px;height:50px;left:-25px}
 .photo-print{padding:6px 6px 10px;height:93%;max-width:72%}.photo-print figcaption{font-size:11px;padding-top:4px}.photo-print img{height:calc(100% - 19px)}
 .route-stage{height:88dvh}.route-copy{top:23%;left:9%}.route-copy h3{font-size:38px;margin:8px 0 12px}.route-enter{font-size:13px;min-width:175px;padding:10px 16px}.route-nav{padding:8px 14px;gap:22px}.route-nav button{font-size:11px;padding:6px 0}.route-character{height:147%;right:2%}.chapter-list button{height:150px}.chapter-list button>span:nth-child(3){font-size:23px}
 #ending{bottom:calc(100% + 16px);padding:10px;gap:12px}#ending>span{font-size:18px}#ending button,#ending a{font-size:11px;padding:8px 10px}
}
@media(min-width:701px) and (min-height:561px) and (max-height:850px){.title-content{top:8%}.title-flower{width:min(11vh,84px);height:min(11vh,84px)}h1{font-size:min(7.7vh,66px);line-height:1.25}.title-actions{margin-top:24px;gap:8px}.title-actions button{font-size:18px;min-height:42px;padding:9px 25px}}
