@charset "UTF-8";
:root{color-scheme:light;--ink:#454b32;--muted:#7b7d64;--accent:#b49b63;--accent-soft:#ead9b0;--glass:rgba(255,253,246,.77);--line:rgba(91,94,60,.16);--serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;--sans:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-family:var(--sans);color:var(--ink);background:#f5f0e5}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:transparent}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:focus:not(:focus-visible){outline:none}a{color:inherit;text-underline-offset:4px}svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon{width:22px;height:22px}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.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}[hidden]{display:none!important}
#experience{position:relative;width:100%;height:100svh;min-height:460px;isolation:isolate;overflow:hidden}.sky{position:absolute;inset:0;z-index:-3;background:linear-gradient(180deg,#f0f0e8 0%,#f8f0df 38%,#f6e9cc 57%,#eddbb3 100%);transition:background 1.4s}.sun-haze{position:absolute;width:80vw;height:75vh;right:-22vw;top:-3vh;background:radial-gradient(ellipse,rgba(255,247,212,.88),rgba(255,245,218,.3) 42%,transparent 70%);pointer-events:none}.cloud{position:absolute;height:10vh;width:75vw;opacity:.4;filter:blur(24px);background:radial-gradient(ellipse at center,rgba(255,255,250,.9),transparent 67%);transform:rotate(-7deg)}.cloud-one{top:13vh;left:-30vw}.cloud-two{top:32vh;right:-25vw;width:95vw;opacity:.28}.vignette{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,rgba(35,37,23,.08),transparent 22%,transparent 85%,rgba(250,248,238,.16))}#scene-host{position:absolute;inset:0;z-index:-1}#scene-host canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}body[data-scene=rain]{--ink:#384b41;--muted:#687e72;--accent:#7e9683;--accent-soft:#dce5d7;--line:rgba(65,97,80,.18);--glass:rgba(246,250,244,.79)}body[data-scene=rain] .sky{background:linear-gradient(180deg,#dce6e4 0%,#e9eeea 35%,#e0e8df 59%,#bbcfc1 100%)}body[data-scene=rain] .sun-haze{opacity:.45}body[data-scene=snow]{--ink:#4c5360;--muted:#78808c;--accent:#91a7b7;--accent-soft:#dbe4e9;--line:rgba(85,100,118,.17);--glass:rgba(254,252,248,.8)}body[data-scene=snow] .sky{background:linear-gradient(180deg,#e3e9ee 0%,#f1eeea 32%,#f6eddd 54%,#edf1f2 100%)}body[data-scene=snow] .sun-haze{opacity:.8}
.glass{background:var(--glass);border:1px solid rgba(255,255,255,.82);box-shadow:0 8px 32px rgba(55,49,31,.06),inset 0 0 0 1px rgba(255,255,255,.24);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.topbar{position:absolute;z-index:5;inset:30px 4% auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{text-decoration:none;display:flex;align-items:center;gap:13px;white-space:nowrap;font-family:var(--serif);font-size:26px;letter-spacing:.1em}.brand-mark{width:34px;height:34px;stroke-width:1.2}.brand-en{font-size:16px;letter-spacing:.025em;margin-left:1px}.scene-tabs{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:5px;border-radius:999px;white-space:nowrap}.scene-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 22px;border-radius:999px;font-size:13px;transition:background .35s,color .35s,box-shadow .35s}.scene-tabs button .icon{width:19px;height:19px}.scene-tabs button[aria-pressed=true]{background:var(--accent-soft);box-shadow:0 1px 5px rgba(82,72,43,.045)}.scene-tabs button:hover{background:color-mix(in srgb,var(--accent-soft) 65%,transparent)}.top-actions{display:flex;gap:12px}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,251,.32);transition:background .2s,transform .2s}.icon-button:hover{background:rgba(255,255,252,.85);transform:translateY(-1px)}.icon-button .icon{width:20px;height:20px}.scene-copy{position:absolute;z-index:2;top:25%;left:5%;width:90%;text-align:center;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--muted);font-weight:400}.scene-copy .eyebrow{display:flex;align-items:center;justify-content:center;gap:13px;margin:0 0 22px;font-size:11px}.scene-copy .eyebrow>span:empty{width:22px;height:1px;background:currentColor;opacity:.35}h1{font-family:var(--serif);font-weight:400;font-size:clamp(26px,2.65vw,46px);letter-spacing:.2em;margin:0 0 23px;text-wrap:balance;line-height:1.5;text-shadow:0 1px 18px rgba(255,255,255,.5)}#scene-description{font-family:var(--serif);font-size:clamp(12px,1.05vw,17px);letter-spacing:.18em;margin:0;color:var(--muted);line-height:1.8}.scene-copy.entering{animation:copy-arrive .9s ease both}@keyframes copy-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.bottom-area{position:absolute;z-index:5;bottom:23px;left:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:15px}.interaction-note{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.1em;color:var(--ink);text-shadow:0 1px 10px #fff9;background:rgba(255,251,240,.55);padding:9px 14px;border-radius:999px;backdrop-filter:blur(8px)}.small-dot{width:4px;height:4px;background:currentColor;border-radius:50%;opacity:.6}.text-button{display:flex;align-items:center;gap:5px;font-size:11px;border-left:1px solid var(--line);padding:0 0 0 10px}.text-button .icon{width:13px;height:13px}.control-bar{display:flex;align-items:center;gap:23px;padding:10px 22px 10px 11px;border-radius:999px;max-width:calc(100% - 48px)}.play-button{width:48px;height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:#fffdf5;transition:background .5s,transform .2s}.play-button:hover{transform:scale(1.045)}.play-button .icon{width:21px;height:21px;stroke-width:2.5}.play-button use[href="#i-play"]{fill:currentColor;stroke-width:0}.control-group{display:flex;align-items:center;gap:17px}.control-group label,.sound-button,.timer-button{display:flex;align-items:center;gap:11px;font-size:12px;white-space:nowrap;letter-spacing:.06em}.sound-button{min-width:99px;padding:7px 0}.sound-button .icon{width:22px;height:22px}.divider{width:1px;height:28px;background:var(--line)}input[type=range]{--fill:40%;appearance:none;-webkit-appearance:none;cursor:pointer;height:5px;width:118px;border-radius:6px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--fill),rgba(141,137,108,.22) var(--fill),rgba(141,137,108,.22) 100%);margin:0;touch-action:pan-y}input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px transparent;transition:box-shadow .2s}input[type=range]::-moz-range-thumb{border:0;width:15px;height:15px;border-radius:50%;background:var(--accent)}input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 13%,transparent)}input[type=range]:focus-visible{outline-offset:8px}output{font-size:11px;font-variant-numeric:tabular-nums;min-width:19px;color:var(--muted)}.timer-button{gap:10px;padding:11px 0}.timer-button #timer-value{font-size:11px;color:var(--muted);min-width:76px;text-align:center;font-variant-numeric:tabular-nums}.chevron{width:15px;height:15px}.quiet-footer{display:flex;justify-content:space-between;width:92%;font-size:10px;letter-spacing:.08em;color:var(--ink);opacity:.68;text-shadow:0 1px 10px #fffc;pointer-events:none}.chrome{transition:opacity .4s,filter .4s}.ui-hidden .chrome{opacity:0;pointer-events:none;filter:blur(4px)}.ui-hidden .chrome *{pointer-events:none}.restore-button{position:absolute;z-index:7;right:4%;top:30px}.toast{position:fixed;z-index:40;bottom:150px;left:50%;transform:translate(-50%,12px);padding:12px 20px;border-radius:999px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}
.panel{color:var(--ink);border-radius:26px;width:min(460px,calc(100vw - 36px));max-height:85svh;overflow:auto;padding:24px 30px 27px;border:1px solid rgba(255,255,255,.9);background:rgba(251,251,245,.95);box-shadow:0 30px 100px rgba(38,47,37,.17)}.panel::backdrop{background:rgba(37,47,36,.16);backdrop-filter:blur(7px)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.panel-heading .icon-button{border:0;width:30px;height:30px}.panel h2{font-family:var(--serif);font-weight:400;font-size:25px;letter-spacing:.1em;margin:0 0 13px}.panel p{font-size:12px;color:var(--muted);line-height:1.9;margin:0 0 20px}.timer-options{display:flex;gap:12px;margin:26px 0 15px}.timer-options button{flex:1;background:rgba(255,255,255,.55);border:1px solid var(--line);border-radius:16px;padding:20px 8px;font-family:var(--serif);font-size:26px;transition:background .2s}.timer-options button:hover,.timer-options button[aria-pressed=true]{background:var(--accent-soft)}.timer-options button span{display:block;font-size:11px;font-family:var(--sans);margin-top:7px;color:var(--muted)}.wide-button{padding:14px;background:var(--accent-soft);width:100%;border-radius:12px;font-size:12px}.panel .panel-footnote{font-size:10px;line-height:1.9;margin:20px 0 0}.settings-panel{width:min(500px,calc(100vw - 36px))}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding:18px 0}.settings-row strong{font-size:12px;font-weight:400}.settings-row small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px}select{background:rgba(255,255,255,.6);border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:7px 24px 7px 9px;font-size:11px;cursor:pointer}.switch{appearance:none;width:36px;height:21px;border:1px solid var(--line);border-radius:20px;background:#d5d8cd;position:relative;cursor:pointer;flex-shrink:0}.switch::after{content:"";position:absolute;width:15px;height:15px;border-radius:50%;background:white;left:2px;top:2px;transition:transform .2s;box-shadow:0 1px 3px #0001}.switch:checked{background:var(--accent)}.switch:checked::after{transform:translateX(15px)}.keyboard-hints{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;color:var(--muted);padding:14px 0 20px}kbd{font:9px var(--sans);display:inline-block;border:1px solid var(--line);padding:3px 5px;border-radius:4px;margin-right:3px;background:#fff7}.credits{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:15px}.credits summary{cursor:pointer;margin-bottom:12px;color:var(--ink)}.credits p,.credits li{font-size:10px;line-height:1.9}.credits ul{padding-left:17px}.credits li{margin:8px 0}.loading{position:absolute;z-index:3;inset:55% 0 auto;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-family:var(--serif);font-size:13px;letter-spacing:.12em;pointer-events:none}.loading-dot{width:5px;height:5px;border-radius:50%;background:currentColor;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.2;transform:scale(.6)}}.no-script{position:absolute;top:50%;width:100%;text-align:center;padding:20px;color:var(--muted)}
/* Scene art remains visible during GPU startup or recovery. All text stays in HTML. */
.sky::after{content:"";position:absolute;inset:0;background:none}
body[data-scene=rain] .sky::after{background-image:url("./assets/scenery/pond-banks.png")}
body[data-scene=snow] .sky::after{background-image:url("./assets/scenery/snow-landscape.png")}
.sky .cloud,.sky .sun-haze{display:none}
#scene-host .landscape-canvas{position:absolute;inset:0;z-index:0}
#scene-host .weather-canvas{position:absolute;inset:0;z-index:1;pointer-events:none}
.vignette{background:linear-gradient(0deg,rgba(35,37,23,.025),transparent 19%)}
.scene-copy .eyebrow{display:none}
.scene-copy{top:26.2%}
.interaction-note{background:rgba(255,251,240,.62);box-shadow:0 1px 12px rgba(80,75,53,.04)}
.bottom-area{pointer-events:none}.bottom-area .control-bar,.bottom-area .interaction-note{pointer-events:auto}
@media(min-width:1800px){.control-bar{gap:30px;padding-right:28px}input[type=range]{width:145px}.topbar{top:36px}.scene-tabs button{padding:14px 26px}.bottom-area{bottom:30px;gap:20px}.scene-copy{top:26%}}
@media(max-width:1100px){.brand-en{display:none}.topbar{inset:24px 3% auto}.top-actions{gap:7px}.icon-button{width:35px;height:35px}.scene-tabs button{padding:11px 16px;font-size:12px}.control-bar{gap:17px}.control-group{gap:12px}input[type=range]{width:92px}.sound-button{min-width:88px;font-size:11px}.timer-button{font-size:11px;gap:7px}.timer-button #timer-value{min-width:65px}.quiet-footer{width:94%;font-size:9px}}
@media(max-width:760px){#experience{min-height:560px}.topbar{inset:20px 22px auto;align-items:flex-start}.brand{font-size:23px;gap:9px}.brand-mark{width:29px;height:29px}.top-actions{gap:8px}.scene-tabs{top:64px;width:max-content;max-width:calc(100vw - 32px);padding:4px}.scene-tabs button{padding:11px 17px;gap:7px;font-size:11px}.scene-tabs button .icon{width:17px;height:17px}.scene-copy{top:27%;left:6%;width:88%}h1{font-size:clamp(23px,4.6vw,33px);letter-spacing:.12em;margin-bottom:16px}.scene-copy .eyebrow{font-size:9px;letter-spacing:.13em;margin-bottom:18px}#scene-description{font-size:11px;letter-spacing:.08em}.bottom-area{bottom:17px;gap:13px}.control-bar{display:grid;grid-template-columns:42px 1fr 1fr;gap:15px 16px;max-width:calc(100% - 32px);width:420px;padding:14px 18px;border-radius:25px}.play-button{width:42px;height:42px;grid-row:1/3;align-self:center}.control-bar>.divider{display:none}.sound-group{grid-column:2/4;justify-content:space-between}.sound-button{font-size:11px}.sound-group input{width:calc(100% - 112px)}.intensity-group{grid-column:2/4;gap:11px}.intensity-group label{font-size:11px;gap:10px;min-width:85px}.intensity-group input{width:100%;flex:1;min-width:25px}.timer-button{grid-column:1/4;justify-content:center;border-top:1px solid var(--line);padding:11px 0 0}.timer-button .icon{width:17px;height:17px}.timer-button #timer-value{min-width:auto;margin:0 6px}.quiet-footer{width:100%;justify-content:center;font-size:9px}.quiet-footer>span:first-child{display:none}.interaction-note{font-size:10px;max-width:calc(100% - 36px);padding:8px 13px}.restore-button{right:22px;top:20px}.toast{bottom:240px;border-radius:16px;font-size:11px}.panel{padding:20px 24px}.settings-row small{max-width:240px}}
@media(max-height:650px) and (min-width:761px){.scene-copy{top:24%}.scene-copy .eyebrow{margin-bottom:10px}h1{font-size:28px;margin-bottom:10px}.bottom-area{bottom:12px;gap:9px}.interaction-note{padding:6px 12px}.control-bar{padding-top:7px;padding-bottom:7px}.play-button{width:39px;height:39px}.quiet-footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Eight scenes share one navigation row; the row scrolls without shrinking targets. */
.scene-tabs{max-width:calc(100% - 510px);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--accent-soft) transparent;scroll-padding-inline:8px}
.scene-tabs button{flex:0 0 auto;padding:12px 14px;gap:7px}
#scene-host .ambient-canvas{position:absolute;inset:0;z-index:1;pointer-events:none}
body[data-scene=fire]{--ink:#f3e4c9;--muted:#d0c2ac;--accent:#d8a05d;--accent-soft:#665343;--glass:rgba(37,42,46,.84);--line:rgba(240,217,175,.2)}
body[data-scene=night]{--ink:#e6eddc;--muted:#bdc9bf;--accent:#a1b99b;--accent-soft:#3e554e;--glass:rgba(22,36,48,.84);--line:rgba(206,226,210,.2)}
body[data-scene=birds]{--ink:#374c39;--muted:#67785b;--accent:#8b9b67;--accent-soft:#dce5c5;--glass:rgba(250,251,237,.82)}
body[data-scene=ocean]{--ink:#34565a;--muted:#607f80;--accent:#7fa9a5;--accent-soft:#d2e5df;--glass:rgba(247,252,247,.83)}
body[data-scene=chimes]{--ink:#57573d;--muted:#7b8064;--accent:#a5a373;--accent-soft:#e7e6cc;--glass:rgba(252,249,235,.83)}
body[data-scene=fire] .sky::after{background-image:url("./assets/scenery/fire-landscape.png")}
body[data-scene=birds] .sky::after{background-image:url("./assets/scenery/birds-landscape.png")}
body[data-scene=ocean] .sky::after{background-image:url("./assets/scenery/ocean-landscape.png")}
body[data-scene=chimes] .sky::after{background-image:url("./assets/scenery/chimes-landscape.png")}
body[data-scene=night] .sky::after{background-image:url("./assets/scenery/night-pond-landscape.png")}
body:is([data-scene=fire],[data-scene=night]) h1{text-shadow:0 2px 18px #10222d99}
body:is([data-scene=fire],[data-scene=night]) .glass{border-color:rgba(238,242,220,.25);box-shadow:0 10px 35px #08152122,inset 0 0 0 1px #fff1}
body:is([data-scene=fire],[data-scene=night]) .interaction-note{background:var(--glass);text-shadow:none}
body:is([data-scene=fire],[data-scene=night]) .quiet-footer{text-shadow:0 1px 8px #07151e;opacity:.85}
body:is([data-scene=fire],[data-scene=night]) .icon-button{background:rgba(31,43,49,.55)}
body:is([data-scene=fire],[data-scene=night]) .panel{background:var(--glass)}
body:is([data-scene=fire],[data-scene=night]) select{background:#293e43}
body:is([data-scene=fire],[data-scene=night]) kbd,body:is([data-scene=fire],[data-scene=night]) .timer-options button{background:#ffffff10}
@media(min-width:1800px){.scene-tabs button{padding:13px 17px}}
@media(max-width:1500px){.scene-tabs{top:62px;max-width:calc(100vw - 100px);width:max-content}.scene-tabs button{padding:11px 16px}}
@media(max-width:760px){.scene-tabs{top:64px;max-width:calc(100vw - 32px)}.scene-tabs button{padding:11px 14px;min-height:42px}.scene-tabs button .icon{width:17px;height:17px}.interaction-note{line-height:1.6;text-align:center}}
/* Recompute inherited text color after a scene changes its custom properties. */
body{color:var(--ink)}
body:is([data-scene=fire],[data-scene=night]){color-scheme:dark;--ink:#fff5e4;--muted:#e2e7df;--line:rgba(239,239,217,.3);--glass:rgba(13,25,35,.93)}
body:is([data-scene=fire],[data-scene=night]) .brand{color:#fff7e5;text-shadow:0 2px 8px #09141f}
body:is([data-scene=fire],[data-scene=night]) .scene-copy{color:#fff9ec;filter:drop-shadow(0 2px 3px #06121be6)}
body:is([data-scene=fire],[data-scene=night]) .scene-copy::before{content:"";position:absolute;z-index:-1;inset:-32px 12% -30px;background:radial-gradient(ellipse,rgba(8,20,33,.58),rgba(8,20,33,.3) 50%,transparent 74%);pointer-events:none}
body:is([data-scene=fire],[data-scene=night]) h1{color:#fff9ec;text-shadow:0 2px 4px #06121f,0 0 20px #06121fcc}
body:is([data-scene=fire],[data-scene=night]) #scene-description{color:#eef1e8;text-shadow:0 1px 4px #06121f}
body:is([data-scene=fire],[data-scene=night]) :is(.scene-tabs,.control-bar,.panel,.toast){color:var(--ink);background:var(--glass)}
body:is([data-scene=fire],[data-scene=night]) .scene-tabs button[aria-pressed=true]{color:#fffbe8;background:#56634d;box-shadow:inset 0 0 0 1px #e3e5bb55}
body[data-scene=fire] .scene-tabs button[aria-pressed=true]{background:#796044}
body:is([data-scene=fire],[data-scene=night]) :is(.control-group label,.sound-button,.timer-button,.interaction-note,output,.timer-button #timer-value){color:#fff4de}
body:is([data-scene=fire],[data-scene=night]) .play-button{color:#14212b}
body:is([data-scene=fire],[data-scene=night]) .icon-button{color:#fff4de;background:#142632d9}
body:is([data-scene=fire],[data-scene=night]) .icon-button:hover{background:#344c56}
body:is([data-scene=fire],[data-scene=night]) .quiet-footer{color:#f5f2e4;opacity:1;text-shadow:0 1px 3px #04111c,0 0 8px #04111c}
body:is([data-scene=fire],[data-scene=night]) :is(.panel p,.credits,.credits li,.settings-row small){color:#e2e7df}
body:is([data-scene=fire],[data-scene=night]) .panel a{color:#eff4c8}
body:is([data-scene=fire],[data-scene=night]) input[type=range]{background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--fill),#71838a var(--fill),#71838a 100%)}
body:is([data-scene=fire],[data-scene=night]) .timer-options button[aria-pressed=true]{background:var(--accent-soft);color:#fffbe8;border-color:var(--accent)}
/* Android installation is an opt-in dialog, alongside the existing header actions. */
.app-install-button{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border-radius:999px;font-size:12px;white-space:nowrap;color:var(--ink);flex-shrink:0;transition:background .2s,transform .2s}
.app-install-button .icon{width:18px;height:18px}.app-install-button:hover{background:var(--accent-soft);transform:translateY(-1px)}.install-label-short{display:none}
.install-panel{width:min(560px,calc(100vw - 36px))}.install-intro{display:flex;align-items:center;gap:15px;margin-bottom:23px}.install-intro>img{flex-shrink:0;border-radius:14px}.install-intro h2{margin:0;font-size:24px}.install-intro p{margin:8px 0 0;font-size:11px;line-height:1.8}
.install-options{display:grid;grid-template-columns:1fr 1fr;gap:15px}.install-option{padding:17px 15px 15px;border:1px solid var(--line);border-radius:18px;text-align:center;background:rgba(255,255,255,.28)}.install-option-primary{background:color-mix(in srgb,var(--accent-soft) 36%,transparent)}.install-channel-note{font-size:9px;letter-spacing:.12em;color:var(--muted)}.install-option h3{font-family:var(--serif);font-size:19px;font-weight:400;letter-spacing:.035em;margin:6px 0 14px}.install-qr{display:block;width:148px;height:148px;max-width:100%;margin:0 auto;padding:6px;border-radius:12px;background:#fff}.install-option .install-scan-hint{font-size:10px;line-height:1.6;margin:8px 0 15px}
.install-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;padding:10px 8px;border:1px solid var(--line);border-radius:11px;font-size:11px;text-decoration:none;color:var(--ink);background:rgba(255,255,255,.25);transition:background .2s}.install-link .icon{width:15px;height:15px}.install-option-primary .install-link{background:var(--accent-soft)}.install-link:hover{background:var(--accent-soft)}.install-help{border-top:1px solid var(--line);padding-top:17px;margin-top:21px;font-size:11px;color:var(--muted)}.install-help summary{cursor:pointer;color:var(--ink)}.install-help ol{padding-left:20px;margin:12px 0 0;line-height:1.9}.install-help li+li{margin-top:7px}.install-help strong{font-weight:500;color:var(--ink)}
body:is([data-scene=fire],[data-scene=night]) .app-install-button{color:#fff4de}body:is([data-scene=fire],[data-scene=night]) .app-install-button:hover{background:var(--accent-soft)}body:is([data-scene=fire],[data-scene=night]) .install-option{background:#ffffff06}body:is([data-scene=fire],[data-scene=night]) .install-option-primary{background:#b9c89b0c}body:is([data-scene=fire],[data-scene=night]) .install-link{background:#ffffff08}body:is([data-scene=fire],[data-scene=night]) .install-option-primary .install-link,body:is([data-scene=fire],[data-scene=night]) .install-link:hover{background:var(--accent-soft)}
@media(min-width:1501px){.scene-tabs{max-width:calc(100% - 640px)}}
@media(max-width:1100px){.app-install-button{height:35px;padding:0 11px;font-size:11px;gap:6px}}
@media(max-width:760px){.topbar{gap:10px}.top-actions{gap:6px}.app-install-button{padding:0 10px}.app-install-button .icon{width:16px;height:16px}}
@media(max-width:600px){.install-options{grid-template-columns:1fr;gap:12px}.install-qr,.install-option .install-scan-hint{display:none}.install-option{padding:13px 15px}.install-option h3{margin:4px 0 11px;font-size:18px}.install-intro{gap:12px;margin-bottom:18px}.install-intro h2{font-size:21px}.install-intro p{font-size:10px}.install-help{margin-top:17px;padding-top:14px}}
@media(max-width:420px){.install-label-full{display:none}.install-label-short{display:inline}.app-install-button{gap:4px;padding:0 8px}}
@media(max-height:650px) and (min-width:601px){.install-qr{width:112px;height:112px}.install-panel .install-intro{margin-bottom:16px}.install-option{padding-top:13px}.install-help{margin-top:15px;padding-top:12px}}
/* Two quiet families share the same page, controls, and opt-in audio. */
.scene-navigation{display:contents}
.family-switch{position:absolute;left:50%;top:0;transform:translateX(-50%);display:flex;padding:4px;border-radius:99px;gap:3px;white-space:nowrap}
.family-switch button,.tool-switch button{font-size:11px;padding:8px 17px;border-radius:99px;color:var(--muted)}
.family-switch button[aria-pressed=true],.tool-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--ink)}
.topbar .scene-tabs{top:58px;max-width:calc(100vw - 80px);width:max-content}
.topbar .scene-tabs button{padding:11px 16px}
#scene-host .touch-canvas{position:absolute;inset:0;z-index:3;pointer-events:none;display:none}
#scene-host[data-family=touch] .touch-canvas{display:block}
#scene-host[data-family=touch] .landscape-canvas{opacity:0}
#scene-host[data-family=touch] :is(.weather-canvas,.ambient-canvas){visibility:hidden}
body[data-family=touch] .sky::after{background:none}
body[data-family=touch]{--ink:#43544b;--muted:#6a7b71;--accent:#809b87;--accent-soft:#d5e1d2;--line:#536d5826;--glass:rgba(253,253,244,.84)}
body:is([data-scene=sand],[data-scene=hourglass]){--accent:#af9169;--accent-soft:#e9d9be;--ink:#605340}
body[data-family=touch] .scene-copy{top:24%}
body[data-family=touch] .scene-copy h1{font-size:clamp(25px,2.3vw,39px)}
.touch-options{display:flex;align-items:center;justify-content:center;gap:10px;pointer-events:auto}
.tool-switch{display:flex;border-radius:99px;padding:3px}
.touch-action{font-size:11px;padding:11px 22px;border-radius:99px}
body:is([data-scene=fire],[data-scene=night]) .family-switch{background:var(--glass);color:var(--ink)}
@media(max-width:1100px){.family-switch{top:51px}.topbar .scene-tabs{top:103px;max-width:calc(100vw - 36px)}.scene-copy,body[data-family=touch] .scene-copy{top:29%}.family-switch button{padding:7px 18px}}
@media(max-width:760px){body[data-family=touch] .scene-copy{top:29%}body[data-family=touch] .scene-copy h1{font-size:24px}body[data-family=touch] #scene-description{font-size:10px}.touch-options{gap:8px}.tool-switch button,.touch-action{padding:7px 16px;font-size:10px}body[data-family=touch] .bottom-area{gap:8px}.family-switch{top:45px}.topbar .scene-tabs{top:94px}.topbar .scene-tabs button{padding:10px 13px}}
@media(max-height:650px) and (min-width:1101px){body[data-family=touch] .scene-copy{top:27%}body[data-family=touch] .scene-copy h1{font-size:25px;margin-bottom:7px}.topbar .scene-tabs{top:45px}.topbar .scene-tabs button{padding:8px 13px}body[data-family=touch] .bottom-area{gap:7px}.touch-action,.tool-switch button{padding:6px 15px}}
@media(max-width:760px){
  body[data-family=touch] .control-bar{grid-template-columns:36px 1fr 38px;gap:10px 12px;padding:10px 14px;border-radius:20px}
  body[data-family=touch] .play-button{width:36px;height:36px;grid-row:1;grid-column:1}
  body[data-family=touch] .sound-group{grid-column:2;grid-row:1;gap:9px}
  body[data-family=touch] .sound-button{min-width:82px;font-size:10px}
  body[data-family=touch] .sound-group input{width:100%;min-width:30px}
  body[data-family=touch] .intensity-group{grid-column:1/4;grid-row:2}
  body[data-family=touch] .timer-button{grid-column:3;grid-row:1;border:0;padding:0;min-height:36px}
  body[data-family=touch] .timer-button :is(span,.chevron){display:none}
  body[data-family=touch] .interaction-note{font-size:9px;padding:5px 10px}
}
/* Water and sand extend beneath the floating chrome, with no tabletop frame. */
body:is([data-scene=water],[data-scene=sand]) .scene-copy{filter:drop-shadow(0 1px 8px #fff8)}
body:is([data-scene=water],[data-scene=sand]) .scene-copy h1{text-shadow:0 1px 16px #fff9}
body:is([data-scene=water],[data-scene=sand]) .interaction-note{background:rgba(255,252,242,.75)}
body:is([data-scene=water],[data-scene=sand]) .control-bar{background:rgba(255,253,246,.86)}
#reset-scene .icon{transform-origin:center}
.language-picker{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:0 9px;color:var(--ink);min-height:36px}
.language-picker>span{font-size:11px;white-space:nowrap}
.language-picker select{font:inherit;font-size:12px;color:inherit;background:transparent;border:0;max-width:110px;min-height:36px;cursor:pointer}
.language-picker select option{color:#29483f;background:#f5f0e5}
.language-picker:focus-within{outline:2px solid var(--accent);outline-offset:3px}
html:is([lang=en],[lang=ja],[lang=ko]) .brand-en{display:none}
html:is([lang=en],[lang=ko]) h1{letter-spacing:.035em}
html:is([lang=en],[lang=ko]) #scene-description{letter-spacing:.025em}
.scene-copy h1,.scene-copy p{overflow-wrap:anywhere}
.interaction-note{max-width:calc(100vw - 40px);flex-wrap:wrap;justify-content:center}
@media(max-width:760px){.language-picker{padding:0 5px;min-height:32px}.language-picker>span{display:none}.language-picker select{font-size:11px;max-width:83px;min-height:32px}.topbar .brand{gap:6px;font-size:20px}.topbar .brand-en{display:none}.topbar .top-actions{gap:4px}.topbar .icon-button{width:30px;height:32px;flex-shrink:0}.topbar .brand-mark{width:24px;height:24px}.quiet-footer{flex-wrap:wrap}.control-bar{max-width:calc(100vw - 24px)}}
@media(max-width:480px){.topbar .brand-mark{display:none}.topbar .brand{font-size:16px;letter-spacing:0}.language-picker select{max-width:76px}.topbar .app-install-button{padding:0 6px}.install-label-full{display:none}.install-label-short{display:inline}.keyboard-hints{flex-wrap:wrap}}
/* The water simulation reuses the nature renderer beneath a transparent overlay. */
body[data-scene=water] #scene-host[data-family=touch][data-water-gpu=true] .landscape-canvas{opacity:1}
body[data-scene=water]{--ink:#29483f;--muted:#3e6053;--accent:#638c79;--accent-soft:#d4e6d5}
body[data-scene=water] .scene-copy::before{content:"";position:absolute;z-index:-1;inset:-24px 10% -22px;background:radial-gradient(ellipse,rgba(243,253,228,.5),rgba(243,253,228,.2) 48%,transparent 73%);pointer-events:none}
body[data-scene=water] .scene-copy h1{text-shadow:0 1px 12px #f0ffe0c0}
/* Bubble material and endless controls stay light. */
.touch-options{flex-wrap:wrap;max-width:calc(100vw - 32px)}
.endless-button{display:inline-flex;align-items:center;gap:7px}
.endless-button .icon{width:14px;height:14px}
.endless-button[aria-pressed=true]{background:var(--accent-soft);box-shadow:inset 0 0 0 1px #829c7b55}
body[data-scene=bubbles] .interaction-note{max-width:calc(100% - 36px)}
@media(max-width:760px){.endless-button{gap:5px}body[data-scene=bubbles] .touch-options{gap:7px}.endless-button .icon{width:12px;height:12px}}
/* Full-page tactile scenes share quiet chrome rather than an inset play card. */
body[data-scene=fog]{--ink:#4c594a;--muted:#6c7764;--accent:#929a79;--accent-soft:#e1e5cf;--glass:rgba(250,250,237,.84)}
body[data-scene=ink]{--ink:#465954;--muted:#758177;--accent:#839f96;--accent-soft:#dce8de;--glass:rgba(254,252,242,.86)}
body[data-scene=petals]{--ink:#3e5c4b;--muted:#5f7865;--accent:#9c8e91;--accent-soft:#eddbdb;--glass:rgba(254,251,239,.87)}
body:is([data-scene=fog],[data-scene=ink],[data-scene=petals]) .scene-copy{filter:drop-shadow(0 1px 9px #fff9)}
body:is([data-scene=fog],[data-scene=ink],[data-scene=petals]) .scene-copy::before{content:"";position:absolute;z-index:-1;inset:-20px 10%;background:radial-gradient(ellipse,#ffffed66,transparent 72%);pointer-events:none}
body[data-scene=ink] #touch-tools button{display:inline-flex;align-items:center;gap:7px}
body[data-scene=ink] #touch-tools button::before{content:"";width:7px;height:7px;border-radius:50%;background:#698f91}
body[data-scene=ink] #touch-tools button[data-tool="1"]::before{background:#be859b}
body[data-scene=ink] #touch-tools button[data-tool="2"]::before{background:#c1a46a}
/* Ink and floating petals share the refractive height-field surface. */
body:is([data-scene=ink],[data-scene=petals]) #scene-host[data-family=touch][data-water-gpu=true] .landscape-canvas{opacity:1}
body[data-scene=ink] #touch-tools button[data-tool="3"]::before{background:#283234}
body[data-scene=ink]{--ink:#354d46;--muted:#527064;--glass:rgba(254,253,243,.89)}
@media(max-width:420px){body[data-scene=ink] #touch-tools button{padding:7px 12px;gap:5px}}
/* Keep the scene title as part of the hidden-controls atmosphere. The slider
   sets both its opacity and blur; cancelling its entry animation prevents a
   scene switch from briefly revealing the title sharply. */
.ui-hidden .scene-copy{opacity:var(--hidden-copy-reveal,.48)!important;filter:blur(calc((1 - var(--hidden-copy-reveal,.48))*12px))!important;transition:opacity .35s,filter .35s}
.ui-hidden .scene-copy.entering{animation:none!important}
.reveal-control{display:flex;align-items:center;gap:8px;white-space:nowrap}
.reveal-control input[type=range]{width:100px;flex:0 1 100px}
.reveal-control output{min-width:86px;text-align:right;font-size:10px}
@media(max-width:600px){.reveal-setting{align-items:flex-start;flex-wrap:wrap}.reveal-control{width:100%;justify-content:flex-end}.reveal-control input[type=range]{width:min(180px,45vw);flex-basis:min(180px,45vw)}}
.sound-spinner{display:none;width:15px;height:15px;flex:none;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sound-spinner-turn .75s linear infinite}
.sound-button[aria-busy=true] .icon{display:none}
.sound-button[aria-busy=true] .sound-spinner{display:inline-block}
@keyframes sound-spinner-turn{to{transform:rotate(360deg)}}
