 *{box-sizing:border-box}body{margin:0;min-height:100vh;background:#071724;color:#e9f6ff;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background-size:cover;background-position:center;background-attachment:fixed}body:before{content:'';position:fixed;inset:0;background:linear-gradient(180deg,#061521aa,#061521ed);z-index:-1}main{max-width:840px;margin:auto;padding:30px 16px}header{display:flex;justify-content:space-between;align-items:center;gap:12px}.eyebrow{letter-spacing:.23em;color:#5bc2e7;font-size:12px}h1{font-size:clamp(30px,6vw,48px);font-weight:400;letter-spacing:.05em;margin:8px 0}button,select{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,select:focus-visible{outline:3px solid white;outline-offset:3px}.badge{border:1px solid #ba9752;color:#ffe0a1;padding:6px 10px;border-radius:6px;font-size:12px;white-space:nowrap}#story{line-height:1.8;min-height:110px;margin:24px 0 18px;font-size:17px}#story em{display:block;color:#9ab5c7;font-size:14px;margin-top:8px}.panel{border:1px solid #345265;background:#0b2031ed;padding:clamp(12px,3vw,24px);border-radius:16px;box-shadow:0 24px 80px #0005}.row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}#steps{font-variant-numeric:tabular-nums;color:#80dafa}button.action,select{border:1px solid #476477;background:#122f43;color:#e9f6ff;padding:9px 14px;border-radius:8px}button:disabled{opacity:.4;cursor:default}.hint{color:#a2bacb;font-size:13px;line-height:1.7}#palette{display:flex;gap:12px;justify-content:center;margin:22px 0}.swatch{width:36px;height:36px;border:2px solid #ffffff44;border-radius:8px;position:relative}.swatch[aria-pressed=true]{outline:2px solid white;outline-offset:4px}.swatch[aria-pressed=true]:after{content:'✓';color:#08202c;font-weight:bold;font-size:22px}#grid{display:grid;gap:clamp(2px,.6vw,4px);width:100%;max-width:660px;margin:0 auto}.cell{border:0;border-radius:clamp(2px,.8vw,6px);width:100%;aspect-ratio:1;padding:0;transition:background-color .16s,transform .16s}.cell.active{transform:scale(.86)}.cell:disabled{opacity:1}#status{min-height:24px;color:#b9d9ec;margin:16px 0 0;font-size:14px}.test{margin-top:18px;border:1px dashed #726549;padding:16px;border-radius:12px;background:#24271e88}.test label{font-size:13px;color:#ddc99f}#skip{background:#5bc2e7;color:#092235;border:0;font-weight:600}.record{margin:20px 0;color:#b9d9ec;font-size:14px;line-height:1.7}dialog{max-width:520px;width:calc(100% - 32px);background:#102b3e;color:#e9f6ff;border:1px solid #52748a;border-radius:16px;padding:26px}dialog::backdrop{background:#000b}#piece{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}#resultTitle{color:#79d8f7}a{color:#79d8f7}footer{margin-top:20px;font-size:12px;color:#7b9aad} body{background:#171e22;isolation:isolate}body:before{display:none}main{max-width:none;padding:24px 4vw 30px;position:relative}header{max-width:1440px;margin:auto}h1{font-size:24px;letter-spacing:.22em}.eyebrow{font-size:9px;color:#c0b8a2}.badge{border-color:#ffffff30;color:#ddd6c5;font-size:10px}#story{max-width:650px;margin:14px auto 16px;min-height:0;text-align:center;font-size:14px;color:#e8e2d2;text-shadow:0 2px 8px #000}#story em{font-size:11px;color:#bebdb2;margin-top:4px}.panel{background:none;border:0;border-radius:0;box-shadow:none;padding:0;position:relative;max-width:1400px;margin:auto}.panel>.row{max-width:600px;margin:auto;font-size:12px}button.action,select{font-size:12px;background:#12202bc9;border:1px solid #ffffff30;border-radius:3px;padding:7px 12px}.panel>.hint{max-width:600px;margin:8px auto;font-size:11px;text-align:center;color:#c8c8bd}.scene{position:relative;min-height:460px;display:flex;align-items:center;justify-content:center;margin:8px auto 0;padding:30px 0 80px;isolation:isolate}.artwork{position:relative;z-index:2;width:min(440px,75vw);padding:20px;background:#eee7d4;box-shadow:0 8px 30px #0008, inset 0 0 12px #6a59452b}#grid{gap:2px;max-width:none}.cell{border-radius:0;box-shadow:inset 0 0 0 1px #ffffff16;background-image:linear-gradient(120deg,#ffffff16,#00000012)!important}.scene:before,.scene:after{content:'';position:absolute;pointer-events:none}.scene-label{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.2em;color:#c5bfae;white-space:nowrap}.chapter{text-align:center;font-family:Georgia,'Songti SC',serif;font-size:25px;letter-spacing:.18em;font-weight:400;margin:10px 0 18px;color:#eee5d2}.chapter small{display:block;font:9px system-ui;letter-spacing:.32em;margin-top:7px;color:#b4b7ac}#palette{position:relative;z-index:3;width:fit-content;margin:8px auto 0;padding:12px 26px;border-radius:55% 40% 50% 40%;background:linear-gradient(120deg,#8b6848,#3c2b1e);box-shadow:0 6px 14px #0008;border:1px solid #94714c}.swatch{border-radius:50%;width:30px;height:30px;box-shadow:inset 2px 3px 7px #fff5,2px 3px 4px #0006;border:0}.swatch[aria-pressed=true]{outline-offset:3px}#status{text-align:center;margin:12px 0;color:#d2d5c9;font-size:12px}.test{max-width:640px;margin:22px auto 0;background:#0a1627b8;border:1px solid #ffffff20;padding:12px 16px;border-radius:6px}.test .hint{font-size:11px;margin-bottom:0}.test label{color:#a8bfcc}.record{max-width:640px;margin:18px auto;font-size:12px}footer{text-align:center;font-size:10px;color:#a1aaa9}.environment{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background-position:center;background-size:cover}.environment:after{content:'';position:absolute;inset:0;background:linear-gradient(#0005,transparent 35%,#030c16aa)} body[data-scene="0"] .environment{background-image:url('assets/studio.svg')} body[data-scene="0"] .scene:before{width:58%;max-width:380px;height:100%;top:0;background:linear-gradient(90deg,#342519,#7c5939 30%,#3a291c);clip-path:polygon(46% 0,54% 0,54% 58%,96% 100%,87% 100%,50% 65%,13% 100%,4% 100%,46% 58%);z-index:0} body[data-scene="0"] .scene:after{width:min(490px,84vw);height:18px;background:linear-gradient(#b38b5e,#705033 40%,#322419);top:calc(50% + 151px);z-index:3;box-shadow:0 8px 12px #0006;border-radius:2px} body[data-scene="0"] .artwork:before{content:'';position:absolute;width:64px;height:17px;background:linear-gradient(#b99569,#60462d);top:-15px;left:calc(50% - 32px);box-shadow:0 4px 4px #0007} body[data-scene="1"] .environment{background-image:url('assets/gallery.svg')} body[data-scene="1"] .scene{margin-top:16px;padding:34px 0 65px;min-height:490px;background:linear-gradient(90deg,#33495755,transparent,#33495755)} body[data-scene="1"] .scene:before{inset:0 0 45px;background:url('assets/mural.svg') center/cover;border:9px solid #292f32;outline:1px solid #95938566;box-shadow:0 16px 24px #0008} body[data-scene="1"] .scene:after{bottom:24px;right:12%;height:80px;width:20px;background:#101923;clip-path:polygon(30% 0,70% 0,80% 12%,66% 22%,92% 65%,75% 70%,62% 44%,67% 100%,45% 100%,40% 68%,28% 100%,7% 100%,25% 42%,8% 67%,0 62%,20% 24%,32% 20%,20% 12%);filter:drop-shadow(5px 5px 3px #000);z-index:4} body[data-scene="1"] .artwork{width:min(460px,68vw);padding:8px;background:#30393b;box-shadow:0 0 0 2px #827f64,0 0 35px #142932aa} body[data-scene="1"] .cell{filter:saturate(.8);box-shadow:inset 0 0 6px #0002}body[data-scene="1"] #grid{gap:1px}body[data-scene="1"] #palette{border-radius:3px;background:#383e3c;border-color:#9d998055} body[data-scene="2"] .environment{background-image:url('assets/cosmos.svg')} body[data-scene="2"] .scene{padding:30px 0 45px;min-height:460px}body[data-scene="2"] .artwork{width:min(620px,86vw);padding:0;background:transparent;box-shadow:0 0 80px #258dd42b;transform:perspective(1200px) rotateX(5deg) rotateZ(-2deg)}body[data-scene="2"] #grid{gap:4px}body[data-scene="2"] .cell{border-radius:1px;box-shadow:0 0 7px #50aee855,inset 0 0 5px #fff3}body[data-scene="2"] #palette{background:#0c1e34b0;border:1px solid #66d5ff55;border-radius:60px;box-shadow:0 0 30px #279bd433}body[data-scene="2"] .chapter{color:#cef4ff}body[data-scene="2"] .scene-label{color:#99cfe6} @media(min-width:1100px){body[data-scene="1"] .scene{width:90%}} @media(max-width:600px){main{padding:16px 12px}h1{font-size:19px}.badge{font-size:8px;padding:5px}.eyebrow{font-size:7px}#story{font-size:12px;margin-top:16px}#story em{font-size:10px}.chapter{font-size:21px;margin:12px 0}.scene{min-height:350px;padding:30px 0 65px}.artwork{padding:12px;width:76vw}body[data-scene="0"] .scene:after{top:calc(50% + 22vw)}body[data-scene="1"] .scene{min-height:350px;padding:36px 0 65px}body[data-scene="1"] .scene:before{border-width:5px}body[data-scene="1"] .artwork{width:76vw;padding:5px}body[data-scene="1"] .scene:after{right:4%;height:54px}body[data-scene="2"] .scene{min-height:320px;padding:30px 0 50px}body[data-scene="2"] #grid{gap:2px}.panel>.row{gap:8px}.scene-label{font-size:8px}.test{margin-top:16px}.swatch{width:32px;height:32px}} h1{color:#5BC2E7} h1{font-family:Impact,'Arial Narrow','Helvetica Neue',sans-serif;font-stretch:condensed;font-weight:900;font-size:32px;letter-spacing:.075em;line-height:1.02;color:#5bc2e7;text-transform:uppercase}.eyebrow,.code{font-weight:700;letter-spacing:.24em}.badge{border-radius:0;letter-spacing:.12em}.chapter{font-family:'Arial Narrow',system-ui,sans-serif;font-weight:750;letter-spacing:.15em}.chapter small{font-weight:500;letter-spacing:.35em}.test,button.action,select,dialog{border-radius:0}.environment:after{background:linear-gradient(#04121c66,transparent 40%,#030b17bb)}.artwork{box-shadow:12px 15px 0 #07162266}.cell{background-image:none!important;box-shadow:none!important}.swatch{border-radius:2px;box-shadow:none;border:1px solid #ffffff44}#palette{border-radius:0;background:#142c38;border:1px solid #6a8894;box-shadow:5px 5px 0 #06101980}.panel>.hint{color:#c0c9c9}body[data-scene="0"] #palette{background:#283c43;border-color:#718d96}body[data-scene="0"] .artwork{background:#d6d9c6}body[data-scene="0"] .scene:before{background:#556568}body[data-scene="0"] .scene:after{background:linear-gradient(#a5b2aa 0 30%,#344951 30%);box-shadow:6px 8px 0 #04131b66}body[data-scene="0"] .artwork:before{background:#879d9b;box-shadow:4px 4px 0 #152b34}body[data-scene="1"] .scene:before{border-color:#122a38;box-shadow:12px 18px 0 #04121e88}body[data-scene="1"] .artwork{box-shadow:0 0 0 2px #163949;background:#163949}body[data-scene="1"] .cell{filter:none}body[data-scene="2"] .artwork{box-shadow:none;transform:perspective(1200px) rotateX(4deg) rotateZ(-2deg)}body[data-scene="2"] #grid{gap:2px}body[data-scene="2"] .cell{border-radius:0}body[data-scene="2"] #palette{box-shadow:none;border-radius:0;background:#0b2033}body.started h1{color:#11435b}@media(max-width:600px){h1{font-size:27px}} body[data-scene="2"] .artwork{transform:none} .header-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.scene-label{max-width:95%;white-space:normal;text-align:center;line-height:1.5}html[lang="en"] .chapter{letter-spacing:.06em}@media(max-width:600px){.header-actions{gap:6px}.badge{display:none}} .cell{position:relative;isolation:isolate;overflow:hidden}.cell:before,.cell:after{content:"";position:absolute;pointer-events:none} body[data-scene="0"] #grid{gap:1px;background:#bfb8a4;padding:1px} body[data-scene="0"] .cell{border-radius:1px;background-image:repeating-linear-gradient(0deg,transparent 0 2px,#fbf7db25 2px 3px,transparent 3px 5px),repeating-linear-gradient(90deg,#25332310 0 1px,transparent 1px 4px)!important;box-shadow:inset 0 0 3px #37453030!important} body[data-scene="0"] .cell:before{inset:7% 3%;background:repeating-linear-gradient(174deg,transparent 0 6px,#fff7da24 6px 7px,transparent 7px 12px);clip-path:polygon(4% 5%,98% 0,90% 35%,100% 67%,89% 100%,2% 88%,10% 50%);opacity:.8} body[data-scene="0"] .cell:nth-child(3n):before{transform:rotate(90deg);opacity:.5}body[data-scene="0"] .cell:nth-child(4n):before{transform:rotate(-12deg)} body[data-scene="0"] .cell:after{inset:0;border:1px solid #f7f1d21c} body[data-scene="1"] #grid{gap:1px;padding:1px;background:#72736b;box-shadow:none} body[data-scene="1"] .artwork{padding:5px;background:#717970;box-shadow:0 0 0 1px #8b9782} body[data-scene="1"] .cell{border-radius:0;background-image:linear-gradient(118deg,#e9ddba12,transparent 55%,#263b2b14)!important;box-shadow:inset 0 0 7px #403d3020!important} body[data-scene="1"] .cell:before{inset:0;clip-path:none;background:url('assets/plaster.svg') center/95px 95px;opacity:.38;transform:none} body[data-scene="1"] .cell:nth-child(3n):before{background-position:23px 37px;transform:rotate(90deg)} body[data-scene="1"] .cell:after{inset:0;border:0;border-radius:0;background:linear-gradient(154deg,transparent 47%,#ddd3b733 48%,transparent 50%);opacity:.25} body[data-scene="1"] .cell:disabled{background-image:none!important;box-shadow:inset 0 0 5px #000!important} .cell:disabled:before,.cell:disabled:after{display:none} body[data-scene="2"] .artwork{transform:none} body[data-scene="2"] #grid{gap:5px;padding:4px;background:transparent;box-shadow:none} body[data-scene="2"] .cell{border-radius:clamp(4px,1vw,8px);background-image:none!important;box-shadow:inset 2px 3px 4px #ffffff65,inset -2px -3px 5px #08243d40,0 2px 4px #020c1840!important} body[data-scene="2"] .cell:before,body[data-scene="2"] .cell:after{display:none!important;content:none!important} @media(hover:hover){body[data-scene="0"] .cell:not(:disabled):hover{filter:brightness(1.08)}body[data-scene="1"] .cell:not(:disabled):hover{filter:brightness(1.1)}body[data-scene="2"] .cell:not(:disabled):hover{filter:brightness(1.14)}} @media(max-width:600px){body[data-scene="1"] #grid{gap:1px;padding:1px}body[data-scene="2"] #grid{gap:3px;padding:2px}body[data-scene="2"] .cell:before{inset:3px}body[data-scene="2"] .cell:after{inset:auto 4px 4px auto;width:2px;height:2px}body[data-scene="1"] .cell:after{inset:0}} .chapter,html[lang="en"] .chapter{font-family:Georgia,serif;font-size:18px;font-weight:400;letter-spacing:.14em;margin:14px 0 16px} #stage4{position:fixed;inset:0;width:100%;height:100%;border:0;background:white;z-index:50}main[hidden],.environment[hidden]{display:none!important} 