@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700;900&display=swap');
:root{color-scheme:dark;--ink:#10181d;--paper:#dddcd0;--muted:#96a8a6;--line:#415153;--accent:#c77678;--gold:#cec399}*{box-sizing:border-box;letter-spacing:0}html,body{margin:0;color:var(--paper);background:var(--ink);font-family:"Noto Serif JP",serif}button,input,textarea{font:inherit}a{color:inherit}button,a,input,textarea{touch-action:manipulation}button{color:var(--paper);cursor:pointer;border:1px solid #677373;background:#1b292d;border-radius:3px;padding:10px 18px}button:hover{background:#334348;border-color:#d4c7a3}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #e4c783;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button.primary,.start-button{background:#d8d0b8;color:#172027;border:1px solid #e7ddc0}button.primary:hover{background:#eee4c8}[hidden]{display:none!important}.title-page{min-height:100svh;isolation:isolate}.title-art{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% center;z-index:-3}.title-page:after{content:"";position:fixed;inset:0;background:linear-gradient(90deg,#071119ed 0%,#0b161dad 36%,#0b161d00 70%),linear-gradient(0deg,#09121e 0%,transparent 35%);z-index:-2}.title-content{min-height:calc(100svh - 65px);padding:70px 8% 25px;max-width:900px}.overline{font:10px/1.8 Georgia,serif;color:#a7bcb8;max-width:300px}h1{font-size:96px;font-weight:500;line-height:1.25;margin:34px 0 6px;text-shadow:0 4px 35px #030b11}.title-content h1 span{color:#ba707b}.roman{font:12px Georgia,serif;margin:0 0 30px;color:#a4b7b3}.tagline{font-size:21px;line-height:2;margin-bottom:38px}.title-menu{display:flex;flex-direction:column;gap:18px;align-items:flex-start}.title-menu a{text-decoration:none;font-size:13px}.title-menu .start-button{display:flex;justify-content:space-between;width:280px;padding:16px 22px;font-size:17px}.content-note{font-family:system-ui,sans-serif;color:#a9b6b4;font-size:11px;line-height:1.9;margin-top:30px}.title-footer{min-height:65px;display:flex;align-items:center;gap:26px;padding:16px 8%;font:11px/1.5 system-ui,sans-serif;color:#9fb0ad}.title-footer a{text-decoration:none}.rain{position:fixed;pointer-events:none;inset:-100px;z-index:-1;background:repeating-linear-gradient(108deg,transparent 0 40px,#b7d8cc0a 41px,transparent 42px 110px);animation:rain 2s linear infinite}@keyframes rain{to{transform:translate(-30px,90px)}}
.play-page{height:100svh;overflow:hidden;display:flex;flex-direction:column}.game-header{height:68px;flex-shrink:0;padding:0 25px;display:flex;align-items:center;gap:24px;background:#121c23;border-bottom:1px solid #39464a}.brand{font-size:23px;text-decoration:none;white-space:nowrap}.chapter-label{border-left:1px solid #526064;padding-left:22px;display:flex;flex-direction:column;gap:3px}.chapter-label small{font:10px system-ui;color:#9cb1ad}.chapter-label strong{font-size:15px;font-weight:500}.game-header nav{margin-left:auto;display:flex;gap:9px}.game-header button{width:40px;height:40px;padding:0;font-family:system-ui;font-size:23px;background:transparent;border-color:#394b50}.game-header button.unread{color:#f4d291;border-color:#d5a66d}.game-footer{height:28px;flex-shrink:0;display:flex;justify-content:space-between;padding:5px 23px;font:10px system-ui;color:#92a5a4}.game-footer a{text-decoration:none}#game-shell{position:relative;flex:1;min-height:0;isolation:isolate;background:#09121a}#game{position:absolute;inset:0}#game canvas{display:block}.scene-top{position:absolute;top:17px;left:22px;right:22px;display:flex;justify-content:space-between;pointer-events:none;font:11px system-ui;color:#c6d0c6;text-shadow:0 1px 4px #000}.objective{position:absolute;top:47px;left:22px;display:flex;align-items:flex-start;gap:10px;max-width:calc(100% - 44px);background:#0b151be8;border-left:2px solid var(--accent);padding:11px 14px;font:12px/1.7 system-ui}.objective-mark{width:5px;height:5px;transform:rotate(45deg);background:var(--accent);margin-top:7px;flex-shrink:0}#clue-count{color:#decc9d;white-space:nowrap}.game-controls{position:absolute;bottom:20px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.game-controls button{pointer-events:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;background:#14242bd9;backdrop-filter:blur(6px)}.dpad{display:grid;grid-template:repeat(2,44px)/repeat(3,44px);gap:4px}.dpad button{width:44px;height:44px;padding:0;font:22px system-ui;border-color:#788c8780}.up{grid-area:1/2}.left{grid-area:2/1}.down{grid-area:2/2}.right{grid-area:2/3}.action-row{display:flex;gap:7px}.action-row button{height:49px;font:13px system-ui;padding:0 18px}#light{font-size:24px;width:49px;padding:0}#light.off{color:#758589}#run[aria-pressed=true]{background:#705041}.action-row .interact{min-width:108px;background:#d8d1b9e8;color:#11212a;font-weight:600}.stamina-track{height:3px;background:#364348;margin:0 0 12px auto;width:130px}.stamina-track span{display:block;height:100%;background:#b4c8ab;transition:width .2s}.danger-indicator{position:absolute;top:104px;right:22px;font:12px system-ui;color:#efadb0;border:1px solid #a65060;padding:8px 14px;background:#301a26d9;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.6}}#toast{position:absolute;left:50%;bottom:135px;transform:translateX(-50%);max-width:550px;width:max-content;max-width:calc(100% - 30px);padding:12px 20px;background:#101d26ed;border:1px solid #69766a;color:#e2dcc2;font:13px/1.8 system-ui;text-align:center;pointer-events:none;opacity:0;transition:opacity .3s}#toast.visible{opacity:1}.overlay{position:fixed;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;padding:22px;background:#020a11ba;backdrop-filter:blur(5px)}.panel{position:relative;width:min(760px,100%);max-height:calc(100svh - 44px);overflow:auto;padding:32px;background:#17242bed;border:1px solid #65736d;box-shadow:0 20px 80px #0008}.panel h2{font-size:25px;font-weight:500;line-height:1.6;margin:0 40px 18px 0}.panel p{font-size:15px;line-height:2}.panel .close{position:absolute;right:14px;top:14px;width:34px;height:34px;padding:0;background:transparent;font:22px system-ui}.panel .eyebrow{font:11px system-ui;color:#b7ad8f;margin-bottom:12px}.panel .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.panel .actions button{flex:1;min-width:120px;font-size:13px}.dialogue-panel{width:min(920px,100%);padding:0;overflow:hidden;display:grid;grid-template-columns:260px 1fr;min-height:365px}.dialogue-art{width:100%;height:100%;object-fit:cover;object-position:top;align-self:stretch}.dialogue-copy{padding:35px 32px 25px;display:flex;flex-direction:column}.dialogue-copy h2{font-size:23px}.dialogue-copy .spoken{flex:1;min-height:130px;font-size:16px;line-height:2.15;white-space:pre-wrap}.dialogue-copy .next{align-self:flex-end;min-width:115px}.dialogue-copy .count{font:10px system-ui;color:#98aaa6}.note-body{white-space:pre-wrap}.choice-options{display:flex;flex-direction:column;gap:12px}.choice-options button{text-align:left;padding:16px;font-size:14px}.puzzle-slots{display:flex;gap:9px;justify-content:center;margin:25px 0}.puzzle-slots span{height:66px;min-width:65px;flex:1;max-width:130px;border:1px solid #a29773;display:grid;place-items:center;background:#0d1a23;font-size:19px}.puzzle-options{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.puzzle-options button{font-size:17px}.notebook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.notebook-grid button{text-align:left;font-size:13px;line-height:1.8}.notebook-grid small{display:block;color:#a9b6a6;font:10px/2 system-ui}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:18px 0;font:14px system-ui}.setting-row input[type=range]{width:45%;accent-color:#b9caae}.setting-row input[type=checkbox]{width:20px;height:20px;accent-color:#b9caae}.panel a{color:#d8ceb0}.support-message{padding:14px;border-left:2px solid #7d9193;margin:14px 0;font:13px/1.8 system-ui;white-space:pre-wrap;overflow-wrap:anywhere}.panel label{display:block;font:13px/1.8 system-ui;margin:15px 0}.panel textarea,.panel input[type=text]{width:100%;padding:12px;background:#0d1b24;color:#dddcd0;border:1px solid #53646a;margin-top:7px}.ending-art{width:100%;height:170px;object-fit:cover;object-position:center 55%;margin-bottom:20px}.ending-text p{font-size:14px;line-height:2.2}.ending-hint{color:#afbbad;font:12px/1.8 system-ui!important}#chapter-flash{position:fixed;inset:0;background:#101921;z-index:25;display:grid;place-content:center;text-align:center;pointer-events:none;animation:chapter 2.5s both}#chapter-flash small{color:#a9b7ac;font-size:13px}#chapter-flash strong{font-size:38px;font-weight:400;margin:20px}@keyframes chapter{0%,100%{opacity:0}20%,75%{opacity:1}}.guide-page{max-width:850px;margin:auto;padding:45px 25px}.guide-page h1{font-size:36px}.guide-page h2{font-size:22px;margin-top:36px}.guide-page p,.guide-page li{font-size:15px;line-height:2}.guide-page img{width:100%}.guide-page dl{display:grid;grid-template-columns:120px 1fr;gap:15px;font-size:14px;line-height:1.8}.guide-page dd{margin:0}
@media(max-width:650px){.title-content{padding:55px 28px 20px;min-height:calc(100svh - 100px)}.title-content h1{font-size:65px;margin-top:35px}.title-page:after{background:linear-gradient(90deg,#071119e8,#0b161d77 65%,#0b161d11),linear-gradient(0deg,#09121e,transparent 45%)}.title-art{object-position:67% center}.tagline{font-size:18px;margin-bottom:24px}.title-menu .start-button{width:250px}.title-footer{flex-wrap:wrap;gap:13px 20px;padding:18px 28px;min-height:90px}.title-footer span{width:100%}.game-header{height:59px;padding:0 13px;gap:13px}.brand{font-size:19px}.chapter-label{padding-left:13px}.chapter-label strong{font-size:13px}.game-header nav{gap:6px}.game-header button{width:35px;height:35px;font-size:21px}.scene-top{top:12px;left:14px;right:14px;font-size:10px}.objective{top:35px;left:14px;max-width:calc(100% - 28px);font-size:11px;padding:8px 10px;gap:7px}.objective-mark{display:none}.game-controls{left:13px;right:13px;bottom:18px}.dpad{grid-template:repeat(2,39px)/repeat(3,39px);gap:3px}.dpad button{width:39px;height:39px;font-size:22px}.action-row{gap:4px}.action-row button{height:44px;padding:0 10px;font-size:12px}.action-row .interact{min-width:73px}#light{width:38px}.stamina-track{width:100px;margin-bottom:10px}.game-footer{font-size:9px;padding:6px 13px;height:27px}.overlay{padding:12px}.panel{padding:25px 20px;max-height:calc(100svh - 24px)}.panel h2{font-size:21px}.panel p{font-size:14px}.dialogue-panel{padding:0;display:block;min-height:0;max-height:calc(100svh - 30px);overflow:auto}.dialogue-art{width:100%;height:230px;object-fit:contain;background:#101c23;object-position:center top}.dialogue-copy{padding:20px 23px}.dialogue-copy h2{font-size:21px;margin-bottom:8px}.dialogue-copy .spoken{font-size:14px;line-height:2;min-height:95px;margin:8px 0 18px}.notebook-grid{grid-template-columns:1fr}.danger-indicator{top:100px;right:14px;font-size:11px}.puzzle-slots span{font-size:17px}.content-note{font-size:10px}.setting-row{font-size:12px}.panel .actions{gap:8px}.panel .actions button{min-width:90px;padding:11px}.guide-page dl{grid-template-columns:85px 1fr}}
@media(max-height:550px) and (min-width:650px){.title-content{padding-top:20px}.title-content h1{font-size:60px;margin-top:10px}.tagline{font-size:16px;margin:12px 0}.title-menu{gap:10px}.content-note{margin-top:12px}.game-header{height:48px}.dialogue-panel{min-height:300px;grid-template-columns:200px 1fr}.dialogue-copy{padding:20px}.dialogue-copy .spoken{min-height:80px}.game-controls{bottom:10px}}
.control-icon{width:21px;height:21px;filter:invert(88%) sepia(9%) saturate(351%) hue-rotate(2deg);vertical-align:middle;pointer-events:none}
.overlay,#chapter-flash{background-size:cover;background-position:center}.dialogue-panel{background:#142128ee}.dialogue-art{object-position:center top}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
