@layer base,layout,components;@layer base{:root{font-family:Trebuchet MS,Segoe UI,sans-serif;color:#213e50;background:#213e50;font-synthesis:none;color-scheme:light;--ink: #213e50;--water: #58868d;--paper: #f6f8f5;--gold: #f3cd7d}*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.48}button,input,select{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #c77b27;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,Times New Roman,serif;font-weight:400}p{line-height:1.55}svg{flex-shrink:0}a{color:#285b75;text-underline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}@layer layout{#app{min-height:100dvh;display:grid;place-items:start center;background:radial-gradient(ellipse at 50% 10%,#54727d,#213e50 74%)}.game{width:min(100%,480px);min-height:100dvh;background:#e8f0f3;box-shadow:0 0 75px #10293255;position:relative;padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.game{-webkit-user-select:none;user-select:none}.game :is(input,textarea){-webkit-user-select:text;user-select:text}.game.end-screen .hud{display:none}.topbar{display:flex;align-items:center;justify-content:space-between;padding:17px 20px 9px;gap:10px}.brand{min-width:0}.brand h1{font-size:clamp(25px,7vw,34px);line-height:1.05;overflow-wrap:anywhere}.brand p{font-size:11px;color:#526b76;line-height:1.3;margin-bottom:4px;max-width:240px}.tools{display:flex;align-items:center;gap:1px}.hud{padding:4px 22px 14px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 18px;font-size:13px}.bond{display:flex;align-items:center;gap:7px;font-size:12px}.bond svg{width:15px;height:15px}.bond-track{grid-column:1 / -1;height:4px;background:#cadce0;border-radius:2px;overflow:hidden}.bond-fill{height:100%;background:#598b8d;width:0;transition:width .5s}.stage{position:relative;width:100%;aspect-ratio:390 / 520;overflow:hidden;background:#b8d8de}#scene{width:100%;height:100%;display:block;touch-action:none;object-fit:cover}.game:is([data-phase=care],[data-phase=diary],[data-phase=epilogue]) .stage{max-height:min(133.333vw,640px)}.game:is([data-phase=care],[data-phase=diary],[data-phase=epilogue]) #scene{position:absolute;top:75%;transform:translateY(-75%);height:auto;aspect-ratio:390 / 520}.stage-label{position:absolute;left:19px;top:17px;pointer-events:none;background:#f7f9f2df;padding:7px 12px;border-radius:16px;font-size:12px;max-width:calc(100% - 38px)}.stage-label{transition:background .65s,color .65s}.stage-label[data-mood=scared]{background:#e4eaf1ed;color:#4c6179}.stage-label[data-mood=calm]{background:#eef3d9ed;color:#44665d}.stage-label[data-mood=happy]{background:#ffedc6f5;color:#8b514d}.bond svg{color:#bc637b;transform-origin:center}.bond-hearts{display:flex;gap:5px}.bond-heart{position:relative;display:block;width:21px;height:23px}.bond-heart svg{width:21px;height:23px}.bond-heart>span{position:absolute;inset:0}.heart-fill{clip-path:inset(100% 0 0);transition:clip-path .6s}.heart-fill svg{fill:#bc637b}.night-hint{margin:6px 0;font-size:12px}.tap-continue{animation:tap-pulse 1.8s ease-in-out infinite}@keyframes tap-pulse{50%{opacity:.55;transform:translateY(2px)}}@media(prefers-reduced-motion:reduce){.tap-continue{animation:none}.heart-fill{transition:none}}.scene-caption{position:absolute;left:22px;right:22px;bottom:20px;padding:8px 12px;border-radius:10px;background:#213e50;text-align:center;font-family:Georgia,serif;font-size:20px;line-height:1.35;color:#fff;pointer-events:none}.scene-caption:empty{display:none}.scene-caption.moment{top:62px;bottom:auto;font-size:17px;background:#fff4ddeb;color:#5e5147}.game[data-phase=diary] .scene-caption{background:#fff5e7ed;color:#624c45;font-style:italic;bottom:16px}.panel{position:relative;padding:20px 23px calc(20px + env(safe-area-inset-bottom));background:var(--paper);min-height:163px}.panel h2{font-size:26px;line-height:1.15;margin-bottom:10px}.panel p{font-size:14px;margin-bottom:16px}.panel .intro-title{font-size:32px}.panel .actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}.panel .actions.inline{flex-direction:row;flex-wrap:wrap}.panel .actions.inline>*{flex:1}.quiet{color:#526b76}.end-screen .stage{aspect-ratio:390 / 345}.end-screen #scene{object-fit:cover}.end-screen .panel{padding-top:26px}@media(min-width:700px){#app{padding:22px 0}.game{min-height:0;border-radius:20px;overflow:hidden}}@media(max-width:600px){.game:not(.end-screen){height:100dvh;display:flex;flex-direction:column}.topbar,.hud,.panel{flex-shrink:0}.game:not(.end-screen) .stage{flex:1 0 230px;aspect-ratio:auto}.game[data-phase=postcard] .stage{min-height:360px}}@media(max-height:760px)and (max-width:600px){.stage{aspect-ratio:390 / 425}.topbar{padding-top:10px}.panel{padding-top:15px}}}@layer components{.story-options{display:grid;gap:12px;margin-top:18px}.language-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:10px}.language-options .button{min-height:54px;font-weight:400;padding:10px 7px}.language-options .selected{border:2px solid #bd8b3c;background:#fff0ca}.language-options .button:last-child:nth-child(odd){grid-column:1 / -1}.button[hidden]{display:none}.sleep-actions{min-height:48px}.panel .tomorrow{color:#6e6254;font-size:13px;line-height:1.4;margin-bottom:10px}.reaction-beat .care-copy{color:#8b514d}.reaction-beat .care-tools{opacity:.72;transition:opacity .25s}.icon-button{border:0;background:transparent;border-radius:50%;width:44px;height:44px;flex-shrink:0;padding:10px;display:inline-grid;place-items:center}.icon-button:hover{background:#cddfe4}.button{border:1px solid #8faab1;border-radius:10px;background:#f9fcfb;color:#213e50;padding:12px 17px;min-height:47px;font-weight:700;line-height:1.3;display:inline-flex;gap:9px;align-items:center;justify-content:center;text-align:center}.button:hover:not(:disabled){background:#e0ecec}.button.primary{background:#213e50;color:#fffaf0;border-color:#213e50}.button.primary:hover:not(:disabled){background:#365a6b}.button.soft{background:#f3cd7d;border-color:#e1ba6b}.text-button{border:0;background:none;min-height:44px;padding:10px;font-size:13px;text-decoration:underline;text-underline-offset:3px}.care-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0 10px}.care-button{border:1px solid #b8cdd0;background:#fff;border-radius:14px;padding:10px 3px 8px;min-height:76px;display:flex;align-items:center;flex-direction:column;gap:7px;font-size:12px;position:relative}.care-button.done{background:#e2eeea}.care-button.done:after{content:"✓";position:absolute;right:7px;top:5px;font-size:11px;color:#47766d}.care-button.active{box-shadow:inset 0 0 0 2px #bf9747;background:#fff3d3}.care-button.active svg{color:#986529;animation:care-invitation 1.8s ease-in-out infinite}@keyframes care-invitation{0%,to{transform:scale(1.1)}50%{transform:scale(1.3)}}[data-action=food]{touch-action:none}.care-copy{min-height:44px}.care-copy p{margin:0;font-family:Georgia,serif;font-size:18px;line-height:1.35}.beat-button{width:100%;min-height:44px;padding:9px 12px;background:#e6eef0;border:0;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px}.day-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.play-actions{display:flex;gap:6px}.play-actions>*{flex:1}.day-footer .button{min-width:125px}.day-progress{width:100%;height:3px;margin-top:13px;background:#e1e9e9;overflow:hidden}.day-progress span{display:block;height:100%;background:#bdad70;transition:width 1s linear}.name-form{display:flex;flex-direction:column;gap:12px}.name-form input{width:100%;border:1px solid #94afb5;border-radius:9px;padding:13px;background:#fff;color:var(--ink);font-family:Georgia,serif;font-size:23px}.diary-sheet{background:#fffdf4;padding:24px 20px;border-left:3px solid #c3ac75;margin-bottom:16px}.diary-sheet blockquote{margin:12px 0 0;font:italic 23px/1.5 Georgia,serif}.diary-sheet .date{font-size:12px;color:#526b76}.choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:21px}.choice .button{background:#f5faf9;border:1px solid #829fa8;min-height:65px;font-size:15px}.fact{padding:20px 0;margin-top:22px;border-top:1px solid #ccdcdf}.fact h3{font-size:20px;margin-bottom:10px}.fact p{margin-bottom:9px}.fact cite{display:block;font-size:11px;line-height:1.5;font-style:normal;color:#526b76;overflow-wrap:anywhere}.note{font-size:11px!important;color:#526b76}.ending-score{font-size:14px;margin:20px 0;display:flex;align-items:center;gap:9px}.status{font-size:12px;min-height:18px;margin-top:8px}dialog{border:0;border-radius:19px;padding:0;width:min(92vw,460px);max-height:85dvh;background:#f6f8f5;color:#213e50;box-shadow:0 20px 80px #123c5966}dialog::backdrop{background:#12324099;backdrop-filter:blur(4px)}.dialog-head{padding:14px 17px 12px 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#f6f8f5;z-index:1}.dialog-head h2{font-size:26px}.dialog-content{padding:4px 24px 26px}.privacy-link{color:inherit;text-decoration:underline;text-underline-offset:3px}.privacy-summary{line-height:1.55;overflow-wrap:anywhere}button.privacy-link{width:100%;background:none;text-align:left}.privacy-full h1{font-size:1.4rem;line-height:1.3}.privacy-full h2{font-size:1.15rem;line-height:1.3;margin-top:1.4em}.setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #d8e1e1}.setting select{padding:11px 5px;border:1px solid #b2c7ce;border-radius:7px;background:#fff;color:#213e50;max-width:170px}.setting input{width:23px;height:23px;accent-color:#426e79}.album-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 13px;padding-top:10px}.memory{padding:7px 7px 12px;background:#fffef7;box-shadow:0 2px 5px #213e5014;transform:rotate(-2deg)}.memory:nth-child(2n){transform:rotate(2deg)}.memory canvas{display:block;width:100%;aspect-ratio:390 / 260}.memory figcaption{font:14px/1.25 Georgia,serif;margin-top:10px}.memory time{display:block;font-size:10px;color:#526b76;margin-top:4px}figure{margin:0}.diary-entry{padding:17px 0;border-bottom:1px solid #d5dfdf}.diary-entry time{font-size:11px;color:#526b76}.diary-entry p{font:18px/1.5 Georgia,serif;margin-top:5px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}}@layer components{[hidden]{display:none!important}.opening-page{max-width:430px;margin:auto;padding:16px 0}.opening-page p{font-size:15px;line-height:1.6}.opening-page .opening-promise{font-family:Georgia,serif;font-size:22px;color:#87624a}.opening-page>.button{width:100%}.opening-demo{display:flex;align-items:center;justify-content:space-around;height:62px;margin:8px 0 12px;color:#9b773d;border-radius:18px;background:#eceadf;overflow:hidden}.opening-demo svg{width:27px;height:27px}.demo-food{animation:opening-drag 3s infinite ease-in-out}@keyframes opening-drag{0%,15%{transform:translate(0);opacity:1}65%,85%{transform:translate(55px);opacity:.3}to{transform:translate(0);opacity:1}}@media(prefers-reduced-motion:reduce){.demo-food{animation:none}}.game[data-phase=opening] .topbar,.game[data-phase=opening] .hud,.game[data-phase=opening] .stage{display:none}.game[data-phase=opening] .panel{flex:1;overflow:auto;background:#faf3e5}.story-buttons{display:flex;gap:8px;margin-top:8px}.story-buttons>button{flex:1}.umbrella{margin-top:20px;font-size:12px;color:#526b76}.dialog-content>[data-action=restart]{width:100%;margin-top:12px}.beat-button{min-height:52px;line-height:1.35}.postage{float:right;display:grid;place-items:center;padding:5px;margin-left:10px;border:1px dashed #998771;color:#657d78}@media(max-width:600px)and (max-height:760px){.care-tools{margin:8px 0}.care-button{min-height:57px;gap:3px;padding:7px 3px}.beat-button{min-height:44px}.day-footer,.day-progress{margin-top:6px}.panel .night-hint{margin:4px 0}}}
