*{box-sizing:border-box}html{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{color:#edf0e8;-webkit-font-smoothing:antialiased;background:#111a24;margin:0;font-family:Avenir Next,Avenir,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,a,input{outline-offset:5px}button:focus-visible,a:focus-visible{outline:3px solid #d5b96e}button{font:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{max-width:1540px;margin:auto;padding:0 42px}.skip{color:#17212b;z-index:100;background:#f0d58d;padding:14px;position:absolute;top:-80px;left:20px}.skip:focus{top:12px}.topbar{border-bottom:1px solid #ffffff15;justify-content:space-between;align-items:center;gap:20px;height:86px;display:flex}.brand{letter-spacing:-.5px;align-items:center;gap:12px;font-size:17px;font-weight:600;display:flex}.brand strong{color:#d7c184}.top-note,.eyebrow,.card-label,footer{letter-spacing:1.8px;font-size:9px;font-weight:750}.top-note{color:#819298}.quiet{color:#b6c5c9;background:0 0;border:1px solid #ffffff18;border-radius:8px;justify-content:center;align-items:center;gap:10px;padding:10px 12px;font-size:11px;font-weight:650;display:inline-flex}.quiet:hover:not(:disabled){color:#fff;background:#ffffff08}.quiet.small{white-space:nowrap;padding:7px 9px;font-size:10px}.intro{justify-content:space-between;align-items:center;gap:24px;padding:38px 0 30px;display:flex}.eyebrow{color:#c9b77b;align-items:center;gap:8px;display:flex}.eyebrow>span{background:#c9b77b;width:19px;height:2px}.intro .eyebrow{margin:0 0 12px}h1{letter-spacing:-3.5px;margin:0;font-size:clamp(38px,4.5vw,66px);font-weight:820;line-height:1.04}h1 em{color:#ebd18e;font-style:normal}.intro>p{color:#91a5ab;text-align:right;margin:0;font-size:12px;line-height:1.8}.game-layout{grid-template-columns:minmax(0,1fr) 278px;align-items:start;gap:24px;display:grid}.game-column,.guide-column{min-width:0}.game-toolbar{background:#1a2632;border:1px solid #ffffff14;border-bottom:0;border-radius:14px 14px 0 0;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.game-toolbar>div:first-child{letter-spacing:1.2px;color:#c1cfce;align-items:center;gap:8px;min-width:0;font-size:9px;font-weight:700;line-height:1.3;display:flex}.live-dot{background:#b9d591;border-radius:50%;flex:none;width:5px;height:5px}.toolbar-actions{gap:6px;display:flex}.stage{aspect-ratio:16/9;isolation:isolate;background:#111925;border:1px solid #ffffff14;border-radius:0 0 12px 12px;width:100%;position:relative;overflow:hidden}.engine{place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.engine canvas{object-fit:contain;touch-action:none;outline-offset:-5px;min-width:0;min-height:0;display:block;position:absolute;inset:0;width:100%!important;height:100%!important}.stage.panel-open{min-height:470px}.stage.panel-open .engine{visibility:hidden}.screen{text-align:center;z-index:3;background:#132130;flex-direction:column;justify-content:center;align-items:center;padding:30px;display:flex;position:absolute;inset:0}.welcome{text-align:left;background:linear-gradient(90deg,#172434f2 0%,#172434d9 47%,#17243405 100%),url(/images/wizard-quest.svg) 50%/cover;align-items:flex-start}.welcome-content{z-index:1;max-width:420px;position:relative}.welcome h2{letter-spacing:-1.5px;margin:18px 0 12px;font-size:clamp(24px,2.8vw,43px);line-height:1.12}.welcome h2 em{color:#edcf86;font-style:normal}.welcome p{color:#b0c1c3;margin:0 0 24px;font-size:12px;line-height:1.8}.welcome small{color:#95a9ad;margin-top:15px;font-size:8px;display:block}.poster-credit{letter-spacing:1.4px;color:#d5dccc8c;font:700 7px/1.5 monospace;position:absolute;bottom:14px;right:18px}.primary,.secondary{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:20px;min-height:43px;padding:13px 18px;font-size:11px;font-weight:750;line-height:1.3;display:inline-flex}.primary{color:#253029;background:#ead08c;box-shadow:0 3px #0002}.primary:hover:not(:disabled){background:#f8e2a5}.secondary{color:#dde6de;background:#ffffff07;border-color:#ffffff28}.secondary:hover{background:#fff1}.text-button{color:#ccb878;text-align:left;background:0 0;border:0;align-items:center;gap:20px;padding:13px 0;font-size:11px;font-weight:700;line-height:1.5;display:inline-flex}.text-button:hover{text-decoration:underline}.welcome .text-button{color:#d8e3c9;padding-bottom:0;font-size:10px;display:block}.loading h2,.pause-screen h2,.error-screen h2,.ending h2{letter-spacing:-1.5px;margin:20px 0 10px;font-size:clamp(26px,3vw,40px);line-height:1.15}.loading p,.pause-screen p,.error-screen p,.ending p{color:#a3b6bd;max-width:390px;margin:0 0 25px;font-size:12px;line-height:1.8}.loading-orb{border:2px solid #d7c08333;border-top-color:#ead08c;border-radius:50%;width:34px;height:34px;animation:1.3s linear infinite orb-spin}@keyframes orb-spin{to{transform:rotate(360deg)}}progress{accent-color:#d8bd78;border:0;border-radius:10px;width:min(250px,80%);height:5px;overflow:hidden}progress::-webkit-progress-bar{background:#34414d}progress::-webkit-progress-value{background:#d8bd78}.pause-screen{z-index:6;background:#14202bf2}.ending{z-index:4}.ending-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.error-screen{z-index:8}.run-strip{background:#172330;border:1px solid #ffffff10;border-radius:10px;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin-top:12px;padding:20px 18px;display:grid}.run-strip>div{gap:8px;display:grid}.run-strip>div+div{border-left:1px solid #ffffff0d;padding-left:18px}.run-strip span:first-child{letter-spacing:1.25px;color:#81999e;font-size:7px;font-weight:700}.run-strip strong{letter-spacing:-.4px;font-size:17px;font-weight:650;line-height:1.2}.run-strip>div:first-child strong{color:#d7dcbd;letter-spacing:0;font-size:12px}.run-strip strong small{letter-spacing:.5px;color:#899fa3;font-size:9px}.run-strip #hud-score{color:#ead08c;letter-spacing:-.5px;font-size:19px}.keyboard-tip{color:#7d9399;flex-wrap:wrap;justify-content:center;gap:15px;padding:5px 0 12px;font-size:8px;line-height:1.5;display:flex}.keyboard-tip span{align-items:center;gap:4px;display:flex}kbd{text-align:center;background:#ffffff05;border:1px solid #ffffff17;border-radius:3px;min-width:15px;padding:1px 4px;font:9px monospace}.guide-column{gap:18px;display:grid}.card{background:#192531;border:1px solid #ffffff15;border-radius:12px;padding:23px}.card-label{color:#8fa1a6;letter-spacing:1.3px;justify-content:space-between;font-size:7px;display:flex}.card-label>span:last-child{color:#c1ac76}.guide h2{letter-spacing:-.8px;margin:20px 0 25px;font-size:25px;line-height:1.16}.guide ol{gap:21px;margin:0;padding:0;list-style:none;display:grid}.guide li{gap:13px;display:flex}.guide li>span{color:#c3ad6d;padding-top:3px;font:10px monospace}.guide h3{margin:0 0 7px;font-size:12px;font-weight:700}.guide p{color:#92a6ad;margin:0;font-size:10px;line-height:1.9}.guide>.text-button{color:#d5c185;border-top:1px solid #ffffff0e;justify-content:space-between;width:100%;margin-top:22px;padding-top:17px}.records{padding:22px}.records .eyebrow{letter-spacing:1.4px;margin-bottom:17px;font-size:7px}.records>div{border-bottom:1px solid #ffffff0c;justify-content:space-between;align-items:center;padding:9px 0;display:flex}.records>div span{letter-spacing:1.1px;color:#90a5aa;font-size:7px}.records strong{letter-spacing:-.6px;color:#e3cf97;font-size:20px;font-weight:650}.records p{color:#7e959c;margin:15px 0 0;font-size:8px;line-height:1.9}.records.celebrating{border-color:#d7b87777}.origin-note{align-items:center;gap:16px;padding:0 10px;display:flex}.origin-note .moon{color:#7f9ca6;font-size:35px;line-height:1}.origin-note p{color:#7b929a;font-size:9px;line-height:1.9}.origin-note a{color:#b9cabc;text-underline-offset:3px;text-decoration:underline}footer{color:#607a82;letter-spacing:1.1px;border-top:1px solid #ffffff0c;justify-content:space-between;align-items:center;gap:20px;margin-top:35px;padding:25px 0;font-size:7px;display:flex}footer a{color:#b7bda2}.touch-controls{-webkit-user-select:none;user-select:none;touch-action:none;justify-content:space-between;gap:16px;padding:14px 2px 0;display:flex}.direction-pad,.action-pad{gap:7px;display:flex}.touch-controls button{touch-action:none;-webkit-user-select:none;user-select:none;color:#d1dfde;background:#233342;border:1px solid #a9bfbd22;border-bottom:3px solid #0b1720;border-radius:10px;min-width:48px;min-height:48px;padding:10px 13px;font-size:10px;font-weight:750}.direction-pad button{min-width:58px;font-size:23px}.touch-controls button:active{background:#3c5260;transform:translateY(1px)}.touch-controls .magic-key{color:#ecdffb;background:#55446c}.touch-controls .jump-key{color:#273330;background:#c9b77e}.puzzle-panel{z-index:4;background:#172431;flex-direction:column;justify-content:center;align-items:flex-start;padding:30px 40px;display:flex;position:absolute;inset:0;overflow:auto}.puzzle-panel>.eyebrow{margin-bottom:16px;font-size:8px}.puzzle-heading{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.puzzle-heading h2{letter-spacing:-.8px;margin:0;font-size:28px;line-height:1.1}.tag{color:#c6b581;white-space:nowrap;border:1px solid #d8c68d30;border-radius:5px;padding:6px 9px;font-size:9px}.puzzle-prompt{margin:17px 0 7px;font-size:15px;font-weight:650;line-height:1.5}.puzzle-detail{color:#a8b9be;margin:0 0 15px;font-size:11px;line-height:1.7}.puzzle-panel pre{white-space:pre-wrap;color:#b9d6e5;background:#101b28;border:1px solid #ffffff10;border-radius:8px;width:100%;margin:0 0 15px;padding:15px 18px;font:13px/1.65 monospace}.puzzle-options{flex-wrap:wrap;gap:8px;width:100%;display:flex}.puzzle-options button{color:#edf3e9;background:#25384c;border:1px solid #ffffff24;border-radius:7px;flex:1;min-width:65px;min-height:47px;padding:11px;font-size:13px;font-weight:600}.puzzle-options button:hover:not(:disabled){background:#38546b;border-color:#c2b77d}.puzzle-options.binary{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;display:grid}.puzzle-options.binary button{gap:7px;min-width:0;padding:8px 4px;display:grid}.binary button small{color:#b5c3bd;font-size:8px}.binary button strong{font-size:20px;font-weight:700}.binary button[aria-pressed=true]{background:#526f4a;border-color:#a4bf82}.binary-value{color:#cfdeb0;margin:13px 0;font-size:13px}.puzzle-panel>.primary{align-self:flex-start}.puzzle-message{color:#e0c88b;min-height:20px;margin:14px 0 0;font-size:11px;line-height:1.6}.stage:fullscreen{aspect-ratio:auto;background:#101923;border:0;border-radius:0;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.stage:fullscreen .engine{width:min(100vw,177.778vh);height:min(100vh,56.25vw);inset:auto}.stage:fullscreen .puzzle-panel{max-width:900px;max-height:700px;margin:auto}.stage:fullscreen .screen{width:100%;height:100%;inset:auto}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}dialog{color:#e5ebdf;background:#1b2936;border:1px solid #b8b78044;border-radius:16px;max-width:min(720px,100% - 32px);max-height:calc(100% - 40px);padding:30px;box-shadow:0 30px 100px #0006}dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#070f17b8}.dialog-top{justify-content:space-between;align-items:center;gap:20px;display:flex}dialog h2{letter-spacing:-1.2px;margin:18px 0 23px;font-size:36px}dialog p{color:#a9bcc0;font-size:12px;line-height:1.8}.help-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.help-grid h3{color:#d2c38b;margin:0 0 7px;font-size:13px}.help-grid p{margin:0;font-size:11px}.credits{border-top:1px solid #ffffff15;padding-top:15px;font-size:9px!important}.credits a{text-decoration:underline}.dialog-actions{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.noscript{z-index:99;color:#203025;background:#ead08c;border-radius:10px;padding:20px;position:fixed;inset:auto 20px 20px}@media (width>=1051px) and (pointer:fine){.touch-controls:not([hidden]){display:none}}@media (width<=1150px){.shell{padding:0 25px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.card{padding:20px}.guide h2{font-size:23px}.welcome{padding:25px}.welcome h2{font-size:32px}.welcome p{margin-bottom:18px;font-size:11px}.welcome .eyebrow{font-size:8px}.welcome small{font-size:7px}.game-toolbar{padding:9px}.game-toolbar>div:first-child{letter-spacing:.8px;font-size:8px}.quiet.small{padding:7px;font-size:9px}.keyboard-tip{gap:10px}.puzzle-panel{padding:24px}.puzzle-heading h2{font-size:24px}}@media (width<=1050px){.game-layout{grid-template-columns:minmax(0,1fr)}.guide-column{grid-template-columns:1fr 1fr;gap:20px}.guide{grid-row:span 2}.origin-note{padding:5px 20px}.stage{min-height:0}.stage.panel-open{min-height:480px}.intro{padding:30px 0 25px}.welcome{padding:40px}.welcome h2{font-size:clamp(32px,5vw,44px)}.game-toolbar{padding:10px 15px}.keyboard-tip{padding-bottom:0}.run-strip{margin-top:14px}.top-note{letter-spacing:1.1px;font-size:7px}}@media (width<=600px){.shell{padding:0 16px}.topbar{gap:12px;height:68px}.brand{font-size:15px}.top-note{display:none}.intro{align-items:flex-end;gap:10px;padding:26px 0 22px}.intro .eyebrow{letter-spacing:1.2px;margin-bottom:12px;font-size:6px}h1{letter-spacing:-2.4px;font-size:39px}.intro>p{text-align:right;max-width:110px;font-size:8px;line-height:1.7}.game-toolbar{gap:7px;padding:8px}.game-toolbar>div:first-child{letter-spacing:.7px;max-width:105px;font-size:6px;line-height:1.5}.toolbar-actions{gap:4px}.quiet.small{padding:7px 6px;font-size:8px}.quiet.small kbd{display:none}.welcome{background-position:50%;min-height:310px;padding:22px 21px}.stage:not(.panel-open):has(.welcome:not([hidden])){min-height:310px}.welcome h2{margin:13px 0 10px;font-size:29px}.welcome .eyebrow{letter-spacing:1.4px;font-size:6px}.welcome p{margin-bottom:17px;font-size:10px}.welcome small{max-width:200px;font-size:6px;line-height:1.6}.welcome .primary{min-height:42px;padding:12px 14px;font-size:10px}.poster-credit{text-align:right;max-width:105px;font-size:5px;bottom:10px;right:10px}.screen{padding:20px}.loading h2,.pause-screen h2,.ending h2,.error-screen h2{margin:13px 0 10px;font-size:26px}.screen p{margin-bottom:18px;font-size:10px;line-height:1.7}.screen>.eyebrow{letter-spacing:1.2px;font-size:6px}:is(.stage:has(.pause-screen:not([hidden])),.stage:has(.error-screen:not([hidden])),.stage:has(.loading:not([hidden]))){min-height:270px}.stage.panel-open{min-height:450px}.touch-controls{gap:10px;padding-top:12px}.direction-pad,.action-pad{gap:5px}.touch-controls button{border-radius:8px;min-width:38px;min-height:46px;padding:10px 7px;font-size:8px}.direction-pad button{min-width:43px;font-size:21px}.touch-controls .jump-key{min-width:51px}.run-strip{grid-template-columns:1.25fr 1fr .85fr .85fr;gap:8px;padding:15px 10px}.run-strip>div+div{padding-left:9px}.run-strip span:first-child{letter-spacing:.75px;font-size:5px}.run-strip strong{font-size:13px}.run-strip>div:first-child strong{font-size:9px;line-height:1.5}.run-strip #hud-score{font-size:16px}.run-strip strong small{font-size:6px}.keyboard-tip{gap:7px;margin-bottom:3px;font-size:6px}.keyboard-tip kbd{min-width:12px;padding:1px 3px;font-size:7px}.guide-column{grid-template-columns:1fr;gap:15px}.guide{grid-row:auto}.guide h2{margin:18px 0 23px;font-size:27px}.guide li{gap:15px}.guide p{font-size:11px}.guide h3{font-size:13px}.guide ol{gap:20px}.card{padding:24px}.records>div{padding:11px 0}.records>div span{font-size:8px}.origin-note{justify-content:center;padding:0 10px}.origin-note p{font-size:9px}.puzzle-panel{justify-content:flex-start;padding:23px 18px}.puzzle-panel>.eyebrow{letter-spacing:1.15px;margin-bottom:15px;font-size:6px}.puzzle-heading{gap:8px}.puzzle-heading h2{letter-spacing:-.7px;font-size:23px}.tag{padding:5px 7px;font-size:7px}.puzzle-prompt{margin-top:16px;font-size:13px}.puzzle-detail{font-size:10px}.puzzle-panel pre{padding:12px;font-size:11px;line-height:1.6}.puzzle-options{gap:7px}.puzzle-options button{min-width:110px;min-height:44px;font-size:11px}.puzzle-options.binary{grid-template-columns:repeat(4,minmax(0,1fr))}.puzzle-options.binary button{gap:4px;min-width:0;min-height:52px;padding:7px 4px}.puzzle-message{margin-bottom:0;font-size:10px}.binary-value{margin:12px 0;font-size:12px}.ending-actions{gap:8px}.ending-actions button{min-height:42px;padding:12px;font-size:10px}footer{letter-spacing:.65px;gap:12px;margin-top:24px;padding:20px 0;font-size:5px;line-height:1.7}footer>span:last-child{display:none}dialog{max-width:calc(100% - 24px);max-height:calc(100% - 24px);padding:22px}dialog h2{font-size:29px}.help-grid{grid-template-columns:1fr;gap:18px}.help-grid p{font-size:12px}.dialog-top>.eyebrow{letter-spacing:1px;font-size:7px}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
