html,body{background:#000;height:100%;margin:0;overflow:hidden}#app{position:fixed;inset:0}canvas{display:block}:root{--serif:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;--sans:"Avenir Next", "Segoe UI", system-ui, sans-serif;--ink:#e7ecf7;--mist:#8f9ab3;--gold:#f2d7a6}#intro{z-index:10;color:var(--ink);cursor:pointer;font-family:var(--serif);-webkit-user-select:none;user-select:none;background:radial-gradient(at 50% 60%,#0b1020 0%,#030409 55%,#000 100%);justify-content:center;align-items:center;transition:opacity 2.4s;display:flex;position:fixed;inset:0}#intro.hidden{opacity:0;pointer-events:none}#intro.gone{display:none}#intro canvas.motes{width:100%;height:100%;position:absolute;inset:0}#intro .intro-inner{text-align:center;padding:0 16px;position:relative}#intro .presents{font:500 11px/1 var(--sans);letter-spacing:.55em;text-transform:uppercase;color:var(--mist);opacity:0;margin:0 0 22px;animation:1.6s .3s forwards rise}#intro h1{letter-spacing:.42em;color:#eef2fb;text-shadow:0 0 30px #8cb4ff59,0 0 80px #78a0ff26;margin:0 0 0 .42em;font-size:clamp(34px,7.5vw,92px);font-weight:300}#intro h1 span{opacity:0;filter:blur(10px);animation:1.6s forwards letter;display:inline-block}#intro .rule{opacity:0;background:linear-gradient(90deg,#0000,#7d8fb8,#0000);width:160px;height:1px;margin:28px auto;animation:1.4s 2.2s forwards rise;position:relative}#intro .rule i,#endcard .rule i{border:1px solid var(--gold);background:#05060c;width:7px;height:7px;margin:-4px 0 0 -4px;position:absolute;top:50%;left:50%;transform:rotate(45deg);box-shadow:0 0 10px #f2d7a699}#intro .tagline{letter-spacing:.08em;color:#aeb8cf;opacity:0;margin:0 0 40px;font-size:clamp(14px,1.6vw,18px);font-style:italic;animation:1.6s 2.6s forwards rise}#intro .tagline b{color:var(--gold);letter-spacing:.14em;font-style:normal;font-weight:400}#intro .cta{font:400 12px/1 var(--sans);letter-spacing:.32em;text-transform:uppercase;color:#c6cfe3;opacity:0;margin:0;animation:1.4s 3.2s forwards rise,3.2s ease-in-out 4.6s infinite pulse}#intro .cta.loading{color:#4b5466;animation:1.4s .2s forwards rise}#intro .controls{text-align:center;font:11px/1.8 var(--sans);letter-spacing:.14em;color:#4f5a70;opacity:0;margin:0;padding:0 16px;animation:1.4s 3.6s forwards rise;position:absolute;bottom:30px;left:0;right:0}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes letter{0%{opacity:0;filter:blur(12px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:none}}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}#resume{z-index:9;color:#9aa6bd;font:11px var(--sans);letter-spacing:.3em;text-transform:uppercase;opacity:0;pointer-events:none;transition:opacity .6s;position:fixed;bottom:40px;left:50%;transform:translate(-50%)}#resume.visible{opacity:.8}#hud{z-index:6;pointer-events:none;color:var(--ink);font-family:var(--serif);opacity:0;transition:opacity 1.5s;position:fixed;inset:0}#hud.shown{opacity:1}#hud .letterbox{background:#000;height:0;transition:height 1.6s cubic-bezier(.6,0,.2,1);position:absolute;left:0;right:0}#hud .letterbox.top{top:0}#hud .letterbox.bottom{bottom:0}#hud.cinema .letterbox{height:9vh}#hud.cinema .objective,#hud.cinema .counter{opacity:0!important}#hud .objective{left:calc(28px + env(safe-area-inset-left));top:calc(26px + env(safe-area-inset-top));opacity:0;font:500 11px/1 var(--sans);letter-spacing:.24em;text-transform:uppercase;color:#c9d2e6;text-shadow:0 0 12px #000000e6;align-items:center;gap:12px;transition:opacity 1s,transform 1s;display:flex;position:absolute;transform:translate(-8px)}#hud .objective.on{opacity:.9;transform:none}#hud .objective .diamond{border:1px solid var(--gold);width:7px;height:7px;transform:rotate(45deg);box-shadow:0 0 8px #f2d7a680}#hud .objective.fresh .label{animation:2.6s freshObj}#hud .objective.fresh .diamond{animation:2.6s freshGem}@keyframes freshObj{0%{color:#fff;text-shadow:0 0 14px #f2d7a6e6;letter-spacing:.34em}to{letter-spacing:.24em}}@keyframes freshGem{0%{background:var(--gold);box-shadow:0 0 20px #f2d7a6}to{background:0 0}}#hud .counter{right:calc(28px + env(safe-area-inset-right));top:calc(22px + env(safe-area-inset-top));opacity:0;text-shadow:0 0 12px #000000e6;grid-template-columns:auto auto auto;align-items:baseline;column-gap:8px;transition:opacity 1s;display:grid;position:absolute}#hud .counter.on{opacity:.85}#hud .counter .gem{background:radial-gradient(circle,#fff6df,#f2c784 55%,#0000 72%);border-radius:50%;align-self:center;width:9px;height:9px;box-shadow:0 0 12px 2px #ffc8788c}#hud .counter .num{color:#f6e7c8;font-size:22px}#hud .counter .of{color:var(--mist);font-size:13px}#hud .counter .cap{font:9px var(--sans);letter-spacing:.3em;text-transform:uppercase;color:#6d7790;grid-column:1/4;justify-self:end;margin-top:4px}#hud .counter.bump .num{animation:1.2s bump}#hud .counter.bump .gem{animation:1.2s gemBump}#hud .counter.complete .num,#hud .counter.complete .cap{color:var(--gold)}@keyframes bump{0%{color:#fff;text-shadow:0 0 18px #ffd28a;transform:scale(1.7)}to{transform:scale(1)}}@keyframes gemBump{0%{transform:scale(2.4);box-shadow:0 0 30px 8px #ffd28ce6}to{transform:scale(1)}}#hud .chapter{text-align:center;opacity:0;position:absolute;top:30%;left:0;right:0}#hud .chapter.in{opacity:1}#hud .chapter.out{opacity:0;transition:opacity 2.2s}#hud .chapter .numeral{letter-spacing:.5em;color:var(--gold);opacity:0;margin-left:.5em;font-size:15px}#hud .chapter.in .numeral{animation:1.2s forwards rise}#hud .chapter .title{letter-spacing:.36em;text-transform:uppercase;color:#f1f4fb;text-shadow:0 0 28px #96b9ff59,0 2px 18px #000c;margin:14px 0 0 .36em;font-size:clamp(28px,5vw,60px);font-weight:300}#hud .chapter .title .w{white-space:nowrap;display:inline-block}#hud .chapter .title .l{opacity:0;display:inline-block}#hud .chapter.in .title .l{animation:1.4s forwards letter}#hud .chapter .line{background:linear-gradient(90deg,#0000,#f2d7a6cc,#0000);width:0;height:1px;margin:22px auto 16px}#hud .chapter.in .line{animation:1.6s .8s forwards grow}#hud .chapter .sub{letter-spacing:.12em;color:#b5bed3;opacity:0;text-shadow:0 1px 12px #000000e6;font-size:clamp(13px,1.5vw,17px);font-style:italic}#hud .chapter.in .sub{animation:1.4s 1.4s forwards rise}@keyframes grow{to{width:220px}}#hud .whisper{text-align:center;letter-spacing:.04em;color:#dde4f2;text-shadow:0 0 18px #000000f2,0 0 30px #7896dc40;opacity:0;width:min(760px,86vw);font-size:clamp(16px,1.9vw,23px);font-style:italic;line-height:1.5;position:absolute;bottom:17%;left:50%;transform:translate(-50%)}#hud .whisper.in{opacity:1}#hud .whisper.out{opacity:0;transition:opacity 1.2s}#hud .whisper .w{white-space:nowrap;display:inline-block}#hud .whisper .l{opacity:0;display:inline-block}#hud .whisper.in .l{animation:.9s forwards letter}#hud .whisper.lore{color:#f6e3bd;text-shadow:0 0 18px #000000f2,0 0 26px #ffbe6e73}#endcard{z-index:8;text-align:center;pointer-events:none;color:#f4ead2;font-family:var(--serif);opacity:0;flex-direction:column;justify-content:center;align-items:center;padding:0 16px;transition:opacity 4s;display:flex;position:fixed;inset:0}#endcard.visible{opacity:1}#endcard .kicker{font:500 11px var(--sans);letter-spacing:.55em;text-transform:uppercase;color:#9c927c;margin:0 0 18px}#endcard h2{letter-spacing:.42em;text-transform:uppercase;text-shadow:0 0 30px #ffd29659;margin:0 0 0 .42em;font-size:clamp(30px,5.5vw,66px);font-weight:300}#endcard .rule{background:linear-gradient(90deg,#0000,#b9a27a,#0000);width:160px;height:1px;margin:26px auto;position:relative}#endcard .tag{letter-spacing:.08em;color:#d8c9a6;margin:0 0 30px;font-style:italic}#endcard .score{letter-spacing:.1em;color:#f2d7a6;margin:0 0 34px;font-size:15px}#endcard .again{font:11px var(--sans);letter-spacing:.32em;text-transform:uppercase;color:#a39880;margin:0;animation:3.2s ease-in-out infinite pulse}#endcard .made{font:10px var(--sans);letter-spacing:.2em;color:#5a5446;margin:0;position:absolute;bottom:28px}@media (max-width:760px),(max-height:460px){#hud .whisper{bottom:24%}#hud .chapter{top:22%}#hud .objective{font-size:9px;top:16px;left:18px}#hud .counter{top:12px;right:18px}#hud .counter .num{font-size:18px}}html,body{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#touch{z-index:5;touch-action:none;-webkit-tap-highlight-color:transparent;display:none;position:fixed;inset:0}#touch.visible{display:block}#touch .stick-base{opacity:.45;pointer-events:none;background:radial-gradient(circle,#7896dc1a,#7896dc05 70%);border:1px solid #bed2ff38;border-radius:50%;width:120px;height:120px;margin:-60px 0 0 -60px;transition:opacity .3s;position:absolute}#touch .stick-base.active{opacity:1;transition:none}#touch .stick-knob{background:radial-gradient(circle,#dce8ff8c,#a0b9f02e 70%);border-radius:50%;width:52px;height:52px;margin:-26px 0 0 -26px;position:absolute;top:50%;left:50%;box-shadow:0 0 18px #96beff59}#touch .jump-btn{right:calc(28px + env(safe-area-inset-right));bottom:calc(34px + env(safe-area-inset-bottom));background:radial-gradient(circle,#8caaf029,#8caaf00a 70%);border:1px solid #bed2ff4d;border-radius:50%;width:74px;height:74px;position:absolute}#touch .jump-btn:after{content:"";border-top:2px solid #dce8ffb3;border-left:2px solid #dce8ffb3;width:16px;height:16px;margin:-5px 0 0 -8px;position:absolute;top:50%;left:50%;transform:rotate(45deg)}#touch .jump-btn.pressed{background:#aac3ff4d}@media (pointer:coarse){#intro .controls{font-size:10px;line-height:1.7}}
