:root{--apple: #e1352f;--apple-dark: #b52620;--bucket: #2f9fb8;--bucket-dark: #1d7a8f;--glass: rgba(255, 255, 255, .08);--glass-strong: rgba(255, 255, 255, .16);--ink: #f4f6f8;--muted: rgba(244, 246, 248, .55);--brutal-ink: #111111;--brutal-shadow: #000000}*{box-sizing:border-box}html,body{height:100%;margin:0;background:#000;color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden;touch-action:none;-webkit-font-smoothing:antialiased}body{-webkit-user-select:none;user-select:none}body.guide-open{touch-action:auto}#stage{position:fixed;inset:0}#stage canvas{display:block}.counter{position:fixed;top:clamp(1rem,3vh,2.5rem);left:50%;transform:translate(-50%);width:max-content;max-width:calc(100vw - 2rem);display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(.4rem,1vw,.9rem);padding:clamp(.5rem,1vw,.9rem);border-radius:1.5rem;background:#0a0c10b8;border:1px solid var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);animation:rise .25s ease-out}.counter[hidden]{display:none}.counter__item{min-width:clamp(5.5rem,9vw,9rem);padding:clamp(.4rem,1vh,.9rem) clamp(.7rem,1.3vw,1.3rem);border-radius:1.1rem;background:#11151b;box-shadow:0 .55rem 1.4rem #0000007a;text-align:center}.counter__item--total{background:color-mix(in srgb,var(--apple) 68%,#050708)}.counter__label{display:block;font-size:clamp(.75rem,1vw,1rem);font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#fff}.counter__value{display:block;font-size:clamp(2.75rem,6vw,5rem);font-weight:800;line-height:1.05;color:#fff;font-variant-numeric:tabular-nums}@keyframes rise{0%{opacity:0;transform:translate(-50%,-.5rem)}to{opacity:1;transform:translate(-50%)}}.hint{position:fixed;left:clamp(1rem,2vw,2rem);bottom:clamp(1rem,2vh,1.75rem);margin:0;max-width:18rem;font-size:clamp(.75rem,.9vw,.95rem);line-height:1.5;color:#f4f6f852;pointer-events:none}.toolbar{position:fixed;left:50%;bottom:clamp(1rem,3vh,2.25rem);transform:translate(-50%);width:max-content;max-width:calc(100vw - 2rem);display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(.65rem,1vw,.95rem);padding:clamp(.65rem,1vw,.9rem)}.btn{padding:clamp(.6rem,1.4vh,1rem) clamp(1rem,1.8vw,1.9rem);border:3px solid var(--brutal-ink);border-radius:.55rem;background:#fff;box-shadow:.28rem .28rem 0 var(--brutal-shadow);color:var(--brutal-ink);font:inherit;font-size:clamp(.95rem,1.25vw,1.4rem);font-weight:850;letter-spacing:.01em;cursor:pointer;transform:translate(0);transition:transform .1s ease,box-shadow .1s ease,background .12s ease}.btn:hover{background:#d9ff65;box-shadow:.42rem .42rem 0 var(--brutal-shadow);transform:translate(-.14rem,-.14rem)}.btn:active{box-shadow:0 0 0 var(--brutal-shadow);transform:translate(.28rem,.28rem)}.btn:focus-visible{outline:4px solid #ffffff;outline-offset:4px}.btn--primary{background:#ff645b}.btn--primary:hover{background:#ff8b84}.btn--reveal{background:#58d9ef}.btn--reveal:hover{background:#8beaff}.btn--guide{background:#d9ff65}.btn--guide:hover{background:#e7ff9f}.btn--buckets{background:#ffd84d;font-variant-numeric:tabular-nums}.btn--buckets:hover{background:#ffe77f}.btn--icon{min-width:3.25rem;padding-inline:clamp(.7rem,1vw,1rem);background:#c7b7ff;font-size:clamp(1.1rem,1.4vw,1.5rem);line-height:1}.btn--icon:hover{background:#ddd4ff}.guide-dialog{width:min(62rem,calc(100vw - 2rem));height:min(50rem,calc(100dvh - 2rem));max-width:none;max-height:none;padding:0;border:3px solid var(--brutal-ink);border-radius:1rem;background:#fffdf5;box-shadow:.65rem .65rem 0 var(--brutal-shadow);color:var(--brutal-ink);overflow:hidden;-webkit-user-select:text;user-select:text}.guide-dialog::backdrop{background:#000000b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.guide-dialog__panel{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%}.guide-dialog__header{position:relative;display:flex;justify-content:space-between;gap:2rem;padding:clamp(1.25rem,3vw,2rem);border-bottom:3px solid var(--brutal-ink);background:#d9ff65}.guide-dialog__eyebrow{margin:0 0 .25rem;font-size:.75rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.guide-dialog__header h1{margin:0;font-size:clamp(2rem,4vw,3.5rem);line-height:1;letter-spacing:-.045em}.guide-dialog__header p:last-child{max-width:42rem;margin:.65rem 0 0;font-size:clamp(.9rem,1.4vw,1.05rem);line-height:1.5}.guide-dialog__close{flex:0 0 auto;width:3rem;height:3rem;padding:0 0 .2rem;border:3px solid var(--brutal-ink);border-radius:50%;background:#fff;box-shadow:.2rem .2rem 0 var(--brutal-shadow);color:var(--brutal-ink);font:inherit;font-size:2rem;font-weight:850;line-height:1;cursor:pointer}.guide-dialog__close:hover{background:#ff645b}.guide-dialog__close:focus-visible{outline:4px solid #2f63ff;outline-offset:3px}.guide-dialog__body{padding:clamp(1.25rem,3vw,2rem);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.guide-section+.guide-section{margin-top:clamp(2rem,4vw,3.25rem);padding-top:clamp(2rem,4vw,3.25rem);border-top:2px solid var(--brutal-ink)}.guide-section__heading{display:flex;align-items:flex-start;gap:.9rem;margin-bottom:1.2rem}.guide-section__number{display:grid;flex:0 0 auto;place-items:center;width:2.5rem;height:2.5rem;border:2px solid var(--brutal-ink);border-radius:.45rem;background:#ffd84d;box-shadow:.16rem .16rem 0 var(--brutal-shadow);font-size:.8rem;font-weight:900}.guide-section__heading h2{margin:0;font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.1}.guide-section__heading p{margin:.35rem 0 0;color:#555;line-height:1.45}.guide-steps,.lesson-flow,.activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.guide-steps{padding:0;list-style:none;counter-reset:guide-step}.guide-steps li,.lesson-flow article,.activity-grid article{padding:1rem;border:2px solid var(--brutal-ink);border-radius:.65rem;background:#fff;box-shadow:.2rem .2rem 0 var(--brutal-shadow)}.guide-steps li{display:flex;flex-direction:column;gap:.35rem}.guide-steps strong,.activity-grid strong{font-size:1.05rem}.guide-steps span,.lesson-flow p,.activity-grid p{color:#555;font-size:.9rem;line-height:1.45}.lesson-flow article>span{display:grid;place-items:center;width:2rem;height:2rem;margin-bottom:.7rem;border-radius:50%;background:#ff645b;font-weight:900}.lesson-flow h3,.lesson-flow p,.activity-grid p{margin:0}.lesson-flow p,.activity-grid p{margin-top:.35rem}.guide-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;border:2px solid var(--brutal-ink);border-radius:.65rem;overflow:hidden}.guide-controls>div{display:grid;grid-template-columns:minmax(8rem,.7fr) minmax(0,1fr);gap:1rem;padding:.8rem 1rem;border-bottom:1px solid #c8c8c8;background:#fff}.guide-controls>div:nth-child(odd){border-right:1px solid #c8c8c8}.guide-controls>div:nth-last-child(-n+2){border-bottom:0}.guide-controls dt{font-weight:800}.guide-controls dd{margin:0;color:#555}.guide-dialog kbd{display:inline-block;min-width:1.65rem;padding:.12rem .35rem;border:1px solid #777;border-bottom-width:3px;border-radius:.3rem;background:#f3f3f3;font:inherit;font-size:.78em;font-weight:850;text-align:center}.activity-grid article:nth-child(1){background:#ffe5e3}.activity-grid article:nth-child(2){background:#dff9ff}.activity-grid article:nth-child(3){background:#fff3bf}.activity-grid article:nth-child(4){background:#eee9ff}.guide-tip{margin-top:clamp(2rem,4vw,3.25rem);padding:1.1rem 1.25rem;border:3px solid var(--brutal-ink);border-radius:.65rem;background:#58d9ef;box-shadow:.28rem .28rem 0 var(--brutal-shadow)}.guide-tip strong{font-size:1.1rem}.guide-tip p{margin:.35rem 0 0;line-height:1.5}@media(max-width:760px){.hint{display:none}.guide-dialog{width:calc(100vw - 1rem);height:calc(100dvh - 1rem);box-shadow:.3rem .3rem 0 var(--brutal-shadow)}.guide-dialog__header{gap:1rem}.guide-steps,.lesson-flow,.activity-grid,.guide-controls{grid-template-columns:1fr}.guide-controls>div:nth-child(odd){border-right:0}.guide-controls>div:nth-last-child(2){border-bottom:1px solid #c8c8c8}}
