:root{--paper:#f1eee5;--ink:#36463d;--muted:#899187;--line:#d6d8ca;--green:#577061}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--paper);color:var(--ink);font-family:Inter,'Apple SD Gothic Neo',sans-serif}button{font:inherit;color:inherit;cursor:pointer;background:transparent;border:0}button:disabled{opacity:.42;cursor:wait}button:focus-visible,input:focus-visible{outline:2px solid #6a8b76;outline-offset:4px}button:hover:not(:disabled){color:#182d24}button img{width:18px;height:18px}img{display:block}header{position:fixed;top:0;left:4%;right:4%;height:82px;display:flex;align-items:center;justify-content:space-between;z-index:3;pointer-events:none}header a,header button,header nav{pointer-events:auto}.eyebrow{font-size:11px;letter-spacing:2.4px}.eyebrow i{font-style:normal;margin:0 22px;color:#a5afa0}.live{font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:8px}.live i{width:6px;height:6px;background:#91a17b;border-radius:50%;box-shadow:0 0 0 4px #9caa8030}main{position:fixed;inset:82px 0 48px}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.intro{position:absolute;top:7%;left:4%;pointer-events:none}.intro p{font-size:9px;letter-spacing:1.6px;color:#929c87}h1{font:italic 700 clamp(36px,3.9vw,56px)/.98 Georgia,serif;letter-spacing:-3px;margin:24px 0}.intro span{font-family:'Gowun Batang',serif;line-height:1.8;font-size:13px;color:#8a9384}.intro em{font-style:inherit}.panel{position:absolute;right:4%;top:4%;width:258px;padding:24px 22px;background:#f6f4eddc;border:1px solid #fff9;border-radius:13px;backdrop-filter:blur(13px);box-shadow:0 10px 50px #5264570c;max-height:93%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c3cabb transparent}.panel-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.9px}.panel-heading button{padding:0}.panel-heading img{width:17px;height:17px;opacity:.7}.ship-status{font-size:14px;font-weight:500;margin:24px 0 12px}.activity{height:2px;background:#dbe0d3;margin-bottom:18px}.activity span{display:block;height:100%;background:#738975;width:0;transition:width .2s}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:5px;background:#5b715e;color:#fff;font-size:12px;padding:14px 12px}.primary img{filter:brightness(0) invert(1)}.primary:hover:not(:disabled){background:#466350;color:#fff}.actions{display:flex;gap:8px;margin-top:10px}.actions button{flex:1;border:1px solid var(--line);border-radius:4px;padding:11px 5px;font-size:10px}.actions kbd{display:block;font-family:inherit;font-size:7px;color:#9caa9a;margin-top:4px}.metrics{display:flex;justify-content:space-between;margin:22px 0;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.metrics div{display:flex;flex-direction:column;gap:6px}.metrics strong{font-family:Georgia,serif;font-size:23px;font-weight:400}.metrics span{font-size:8px;color:#8e9889}.label,.range-label{display:flex;justify-content:space-between;font-size:11px;margin:19px 0 12px}.label span,.range-label span{font-size:9px;color:#939d8b}.swatches{display:flex;gap:6px}.swatches button{flex:1;font-size:8px;border:1px solid transparent;padding:9px 1px;border-radius:6px}.swatches button:before{content:'';display:block;margin:0 auto 7px;width:19px;height:19px;border-radius:50%;background:#83bcb3;border:4px solid #acd4cb}.swatches button:nth-child(2):before{background:#748cab;border-color:#abbcd7}.swatches button:nth-child(3):before{background:#aab876;border-color:#cdda9b}.swatches button.active{border-color:#c3ccbc;background:#e7ecdf88}input[type=range]{accent-color:#829674;width:100%;height:4px;display:block;margin:14px 0 22px;cursor:pointer}.bottom-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.bottom-actions button{font-size:9px;padding:2px}.panel-toggle{display:none}.tips{position:absolute;left:4%;bottom:6%;display:flex;flex-direction:column;gap:10px;pointer-events:none;font-size:11px;color:#7b8b7c}.tips small{font-size:9px;color:#a1a997}.view-tools{position:absolute;bottom:6%;right:calc(4% + 286px);display:flex;gap:5px}.view-tools button{padding:9px 13px;border-radius:20px;background:#f9f8f0c9;border:1px solid #d9dfd2;font-size:9px}footer{position:fixed;height:48px;left:4%;right:4%;bottom:0;z-index:3;pointer-events:none;display:flex;align-items:center;justify-content:space-between;color:#94a08f;font-size:9px;letter-spacing:1px}footer button{font-size:10px;letter-spacing:0;pointer-events:auto}dialog{border:1px solid #d3d9c7;border-radius:16px;background:#f7f5ed;color:var(--ink);padding:38px;width:min(480px,90vw)}dialog::backdrop{background:#334a3b33;backdrop-filter:blur(8px)}dialog h2{font:italic 700 43px Georgia,serif;margin:25px 0}dialog>p:not(.eyebrow){font-family:'Gowun Batang',serif;font-size:15px;line-height:1.9}#closeAbout{position:absolute;right:18px;top:18px}.error{position:absolute;inset:0;background:var(--paper);display:grid;place-content:center;text-align:center;padding:30px}.error[hidden]{display:none}.error h2{font-size:20px}.error p{font-size:13px}
@media(max-width:900px){.panel{right:3%;width:230px;padding:20px 16px}.intro{left:3%}header,footer{left:3%;right:3%}.view-tools{right:calc(3% + 250px)}h1{font-size:44px;letter-spacing:-2.5px}.tips{left:3%}}
@media(max-width:650px){header{height:60px;left:6%;right:6%}.eyebrow{font-size:8px;letter-spacing:1.5px}.eyebrow i{margin:0 8px}.live{font-size:8px}main{top:60px;bottom:39px}.intro{top:3%;left:6%}.intro p{font-size:7px}h1{font-size:34px;letter-spacing:-2px;margin:14px 0}.intro span{display:none}.panel{top:auto;bottom:22px;right:6%;left:6%;width:auto;padding:0;border-radius:12px;max-height:57svh}.panel-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 19px;font-size:11px;position:sticky;top:0;background:#f4f3eaeF;z-index:2}.panel-toggle span{font-size:9px;color:#98a08f}.panel-body{display:none;padding:2px 21px 20px}.panel.open .panel-body{display:block}.panel.open .panel-toggle{border-bottom:1px solid var(--line)}.panel-heading{margin-top:14px}.ship-status{margin-top:17px}.actions button{font-size:11px}.bottom-actions button{font-size:11px;padding:4px}.tips{left:6%;bottom:86px;font-size:9px}.tips small{font-size:8px;max-width:210px;line-height:1.5}.view-tools{right:6%;bottom:86px;gap:3px}.view-tools button{font-size:8px;padding:7px 8px}footer{left:6%;right:6%;height:39px;font-size:7px}footer button{font-size:9px}.panel.open~.tips,.panel.open~.view-tools{visibility:hidden}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.moods{display:grid;grid-template-columns:1fr 1fr;gap:6px}.moods button{border:1px solid var(--line);border-radius:5px;padding:9px 4px;font-size:10px}.moods button[aria-pressed=true]{border-color:#c3ccbc;background:#e7ecdf88}.moods button[data-mood=halloween][aria-pressed=true]{background:#f6dfc8;border-color:#e2a46e;color:#7a3f12}body{transition:background-color .4s}.stats{position:fixed;left:12px;bottom:56px;z-index:9;margin:0;padding:8px 10px;font:10px/1.5 ui-monospace,Menlo,monospace;background:#1f2a24d9;color:#e9efe6;border-radius:6px;pointer-events:none}


/* Scroll story */
html{scrollbar-width:none}html::-webkit-scrollbar{display:none}
body:not(.explore){overflow-y:auto}
.story-track{height:300vh;pointer-events:none}
body.explore .story-track,body.explore .story,body.explore .scroll-cue{display:none}
.intro,.panel,.tips,.view-tools,.story-beat,.scroll-cue{transition:opacity .5s ease,transform .5s ease}
body:not(.explore) .view-tools{opacity:0;pointer-events:none}
body[data-beat="1"] .intro,body[data-beat="2"] .intro,body[data-beat="1"] .panel,body[data-beat="2"] .panel,body[data-beat="1"] .tips,body[data-beat="2"] .tips{opacity:0;pointer-events:none}
.story{position:absolute;top:7%;left:4%;pointer-events:none}
.story-beat{position:absolute;top:0;left:0;width:min(370px,80vw);box-sizing:border-box;padding:24px 26px;background:#f6f4ede6;border:1px solid #fff9;border-radius:13px;backdrop-filter:blur(13px);box-shadow:0 10px 50px #5264570c;opacity:0;transform:translateY(14px)}
body[data-beat="1"] .story-beat[data-step="1"],body[data-beat="2"] .story-beat[data-step="2"]{opacity:1;transform:none}
.story-beat p{font-size:9px;letter-spacing:1.6px;color:#929c87;margin:0}
.story-beat h2{font:italic 700 clamp(30px,3.3vw,48px)/1 Georgia,serif;letter-spacing:-2px;margin:14px 0;color:var(--ink)}
.story-beat h2 em{font-style:inherit}
.story-beat span{display:block;font-family:'Gowun Batang',serif;line-height:1.8;font-size:13px;color:#6f7a6c}
.story-cta{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
body[data-beat="2"] .story-beat[data-step="2"] .story-cta{pointer-events:auto}
.story-cta a,.story-cta button{padding:12px 17px;border-radius:8px;font-size:11px;text-decoration:none;cursor:pointer}
.story-cta a{background:var(--green);color:#fff}
.story-cta button{border:1px solid var(--line);background:#f9f8f0e0;color:var(--ink)}
.scroll-cue{position:absolute;left:50%;bottom:6%;transform:translateX(-50%);display:flex;gap:14px;align-items:center;font-size:10px;letter-spacing:1px;color:#7b8b7c;white-space:nowrap}
.scroll-cue button{pointer-events:auto;font-size:10px;letter-spacing:1px;text-decoration:underline;color:#7b8b7c;cursor:pointer}
body[data-beat="2"] .scroll-cue{opacity:0;pointer-events:none}body[data-beat="2"] .scroll-cue button{pointer-events:none}
@media(max-width:650px){.story{top:3%;left:6%;right:6%}.story-beat{width:auto;right:0}.story-beat h2{font-size:28px;margin:10px 0}.story-beat span{font-size:12px;line-height:1.7}.scroll-cue{bottom:calc(6% + 70px);flex-direction:column;gap:6px}}

/* Story UI: orbit hints are wrong while the story drives the camera, and on phones the panel waits for explore mode. */
body:not(.explore) .tips small{display:none}
/* The canvas is sized to the large viewport so iOS toolbar slides don't resize (and blank) the WebGL buffer mid-scroll. */
canvas{position:fixed;inset:0;height:100lvh}
@media(max-width:650px){body:not(.explore) .panel{display:none}body:not(.explore) .scroll-cue{bottom:18px}body:not(.explore) .tips{bottom:96px}}
