:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f9f8ee;background:#eae9e2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffcd6d;outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}.shell{width:min(100%,600px);height:100dvh;margin:auto;background:#121419;position:relative;box-shadow:0 0 90px #32312915}header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid #ffffff12;background:#121419}.logo{font-size:25px;font-weight:850;letter-spacing:-1.3px}.logo span{color:#c6f4ad;margin-left:4px}header button{background:none;border:0;font-size:12px;color:#d0d2cb}header button span{margin-left:12px;font-size:22px}#feed{height:calc(100dvh - 66px);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior-y:contain}#feed::-webkit-scrollbar{display:none}.card{height:calc(100dvh - 66px);min-height:580px;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;padding:27px 55px 20px 27px;position:relative;overflow:hidden;background:var(--bg);--accent:#c6f4ad;--bg:#181f25}.card-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:9px;letter-spacing:1.5px;color:#c0c6c7}.pill{border:1px solid #ffffff24;border-radius:30px;padding:6px 8px;letter-spacing:0;font-size:10px;white-space:nowrap}.title{padding-top:25px}.title h2{font-size:clamp(34px,5.4vh,53px);line-height:1.04;letter-spacing:-2px;margin:0 0 13px;font-weight:750}.title p{font-size:12px;line-height:1.5;color:#c0c7cc;margin:0}.play{flex:1;min-height:130px;position:relative;margin:12px 0;display:flex;align-items:center;justify-content:center}.canvas-wrap{flex-direction:column}canvas{display:block;width:100%;height:100%;max-height:430px;object-fit:contain;touch-action:none}.canvas-note{position:absolute;bottom:12px;color:#b8c3cd;font-size:10px;letter-spacing:1px;pointer-events:none}.tools{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.tools button,footer button{background:#ffffff0c;border:1px solid #ffffff22;padding:11px 14px;border-radius:30px;font-size:11px}.tools button:first-child{background:var(--accent);color:#19221c;border-color:transparent;font-weight:650}footer{border-top:1px solid #ffffff20;margin-top:22px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}footer b{display:block;font-size:13px}footer div span{display:block;font-size:10px;color:#aeb9bb;margin-top:4px}footer>span{font-size:8px;letter-spacing:1px;color:#c0c7c5;max-width:90px;text-align:right;line-height:1.7}.rail{touch-action:none;position:absolute;right:9px;top:48%;display:flex;flex-direction:column;align-items:center;gap:17px;width:30px}.rail button{border:1px solid #ffffff25;background:#ffffff0b;border-radius:50%;width:30px;height:30px;font-size:15px}.rail button:disabled{opacity:.25;cursor:default}#position{font-size:12px;font-weight:700;display:flex;flex-direction:column;text-align:center;line-height:1.5}#position span{font-size:9px;color:#939da2}#dots{display:grid;gap:9px}#dots button{width:5px;height:5px;padding:0;background:#ffffff35;border:0}#dots button.active{background:#cbf2ae;height:17px;border-radius:5px}.desktop-note,.desktop-right{position:fixed;color:#29332f;top:24%;width:calc((100% - 680px)/2);max-width:340px}.desktop-note{left:5%}.desktop-note>a{font-size:12px;font-weight:800;letter-spacing:2px}.desktop-note h1{font-size:clamp(24px,3vw,46px);letter-spacing:-2px;line-height:1.1;margin:45px 0 25px}.desktop-note em{font-style:normal;color:#677b53}.desktop-note p,.desktop-right p{font-size:14px;line-height:1.8}.desktop-note>span{display:block;font-size:9px;line-height:1.8;letter-spacing:2px;margin-top:65px}.desktop-right{right:2%;padding-left:55px;top:34%}.desktop-right>span:first-child{font-size:9px;letter-spacing:2px}.desktop-right p{font-size:19px}.desktop-right .small{font-size:11px;color:#6b776e;margin-top:28px}.asterisk{display:block;color:#80956b;font-size:100px;margin-top:70px}.sokoban{--bg:#232c27;--accent:#d4efa4}.soko-play{flex-direction:column;gap:6px}#board{display:grid;gap:4px;width:min(100%,280px);aspect-ratio:1.16}.cell{border-radius:5px;background:#313e34;display:grid;place-items:center;font-size:20px}.cell.wall{background:#465449;border-top:2px solid #647260}.cell.goal{background:#59653c;color:#e5f4b1}.cell.box{background:#d9ad69;color:#6f4a27;border:3px solid #a47b44;font-size:24px}.cell.box.goal{background:#b6df83;border-color:#759f57}.cell.player{color:#efffcf;background:#6b8b5a}.dpad{text-align:center}.dpad button{width:40px;height:34px;border-radius:8px;border:1px solid #ffffff26;background:#ffffff10;margin:2px;font-size:20px}#soko-status,#pipe-status,#rocket-status{font-size:11px;color:var(--accent);text-align:center;margin:7px 0}#rocket-status{position:absolute;bottom:3px}.synth{--bg:#292136;--accent:#e6bcff}.beat-play{gap:9px}.beat-labels{display:flex;flex-direction:column;justify-content:space-around;align-self:stretch;max-height:270px;margin:auto 0;font-size:8px;color:#bfaacb;gap:36px}#sequencer{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;width:100%;max-width:400px}#sequencer button{aspect-ratio:.85;border:1px solid #ffffff15;border-radius:7px;background:#44354f;padding:0}#sequencer button.on{background:#dca5ee;box-shadow:0 0 16px #dca5ee22}#sequencer button.current{outline:2px solid #fff;outline-offset:1px}.tools label{font-size:9px;display:flex;align-items:center;gap:6px}.tools input{width:65px;accent-color:var(--accent)}.hint{text-align:center;font-size:10px;color:#c6adce}.rocket{--bg:#202b39;--accent:#ffd199}#thrust{touch-action:none;user-select:none}#thrust:active{background:#d1a064}.silk{--bg:#261e2a;--accent:#f4a8c6}.silk canvas{border:1px solid #ffffff10;border-radius:20px;background:#1d1825}.circuit{--bg:#1b3032;--accent:#9ce8d8}.pipe-play{flex-direction:column;align-items:stretch;width:min(100%,270px);align-self:center}#pipes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#pipes button{aspect-ratio:1;border-radius:12px;border:1px solid #ffffff20;background:#2d4748;padding:0;position:relative}#pipes svg{width:100%;height:100%;display:block;stroke:#8ba9a4;stroke-width:12;fill:none}#pipes button.lit svg{stroke:#bdf5b2;filter:drop-shadow(0 0 3px #bdf5b277)}.terminal{font-size:10px;color:#bdf5b2;padding:3px 11%}.terminal.out{text-align:right}.story{--bg:#29252e;--accent:#efc991}.story-play{flex-direction:column;text-align:center;padding:4px 8px}.signal{color:#edc98d;font-size:55px;text-shadow:0 0 50px #efc99188}.frequency{font-size:8px;color:#d1bca2;letter-spacing:2px}#story-text{font-family:Georgia,serif;font-size:21px;line-height:1.5;max-width:370px}#choices{display:grid;gap:9px;width:100%;max-width:330px}#choices button{border:1px solid #d6bf9d44;background:#ffffff08;border-radius:12px;padding:14px;font-size:12px;text-align:left}dialog{background:#20262a;color:#f7f7eb;border:1px solid #ffffff30;border-radius:22px;padding:25px;width:min(92%,440px);max-height:90dvh}dialog::backdrop{background:#000a;backdrop-filter:blur(8px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:22px}.dialog-heading button{background:none;border:0;font-size:28px}#picker-list{display:grid;gap:7px}#picker-list button{background:#ffffff08;border:1px solid #ffffff15;padding:13px;border-radius:10px;text-align:left;font-size:13px}dialog p{font-size:11px;color:#a4b3ae}@media(max-width:1100px){.desktop-note,.desktop-right{display:none}}@media(max-width:380px){header{padding:0 18px}.card{padding:20px 43px 15px 18px}.card-top{font-size:8px;letter-spacing:.7px}.pill{font-size:8px;padding:5px}.title{padding-top:20px}.title h2{font-size:34px}.title p{font-size:11px}.tools button{padding:10px;font-size:10px}footer{margin-top:15px}footer>span{font-size:7px;max-width:70px}.rail{right:5px;width:27px}.rail button{width:26px;height:26px}#story-text{font-size:18px}.cell{font-size:17px}}@media(max-height:740px){.card{min-height:560px}.title{padding-top:14px}.title h2{font-size:33px}.card-top .pill{padding:4px}.play{margin:8px 0}footer{margin-top:12px;padding-top:12px}#board{max-width:205px}.dpad button{height:28px;width:36px;font-size:17px}.signal{font-size:34px}#story-text{font-size:18px;margin:10px 0}.tools button{padding:9px 12px}.beat-labels{gap:25px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
