:root{--paper:#faf9f6;--ink:#252623;--muted:#82827b;--line:#deded6;font-family:"KaiTi","STKaiti","Kaiti SC","Segoe Print",cursive;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #7f9681;outline-offset:6px}button:disabled{cursor:default}button[hidden],[hidden]{display:none!important}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;max-width:1800px;margin:auto}.brand{font-size:23px;font-weight:bold;color:inherit;text-decoration:none;transform:rotate(-3deg);white-space:nowrap}.brand-tram{border-bottom:2px solid;padding-bottom:3px}.brand-dot{font-size:31px}.tools{display:flex;gap:15px}.icon-button{border:0;background:none;padding:8px;width:40px;height:40px;transition:transform .2s}.icon-button:hover{transform:rotate(-9deg)}.icon-button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}.sound-waves{display:none}.sound-enabled .sound-waves{display:block}.sound-enabled .sound-off{display:none}main{max-width:1100px;margin:0 auto;padding:0 28px}.heading{text-align:center}.eyebrow{font-family:"Segoe Print","Comic Sans MS",cursive;font-size:11px;letter-spacing:3px;color:var(--muted);margin:5px 0 12px}h1{font-size:42px;font-weight:bold;letter-spacing:5px;margin:0;line-height:1.3;transform:rotate(-1.5deg)}.level{display:flex;justify-content:center;gap:15px;font-size:19px;margin:21px 0 0}.level-divider{color:#b8b8ae;font-family:serif}.scene-wrap{margin:4px auto 0;width:100%;max-width:1040px}#scene{display:block;width:100%;overflow:visible;color:var(--ink)}.annotation{font-size:24px;font-weight:bold;fill:currentColor}.decision{max-width:790px;margin:6px auto 0;text-align:center;min-height:190px}.question{font-size:23px;line-height:1.9;text-align:left;margin:0;min-height:87px}.question strong{font-weight:bold;border-bottom:2px solid #a3afa0;padding-bottom:2px}.question .prompt{white-space:nowrap}.actions{display:flex;justify-content:center;gap:22px;margin-top:26px}.choice{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-height:53px;padding:10px 24px;border:2px solid var(--ink);border-radius:5px 3px 6px 4px;background:var(--paper);font-size:22px;box-shadow:2px 3px 0 var(--ink);transition:transform .15s,box-shadow .15s,background .15s}.choice:hover:not(:disabled){transform:translate(-1px,-2px) rotate(-1deg);background:#efeee7;box-shadow:3px 5px 0 var(--ink)}.choice:active:not(:disabled){transform:translate(2px,3px);box-shadow:0 0 0}.choice svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.key{font-family:Georgia,serif;font-size:13px;border:1px solid #b7b7ae;border-radius:3px;min-width:23px;height:23px;display:grid;place-items:center;color:#73746c}.choice:disabled{opacity:.38}.choice.selected{opacity:1;background:#e5e9df}.next{background:var(--ink);color:var(--paper);box-shadow:2px 3px 0 #aaa99f}.next:hover:not(:disabled){background:#45473f;color:white;box-shadow:3px 5px 0 #aaa99f}#outcome-text{margin:15px 0 21px;font-size:19px;color:#65675e;line-height:1.8}.progress{display:flex;gap:14px;justify-content:center;align-items:center;margin:27px 0 13px}.step{width:29px;height:29px;display:grid;place-items:center;font-family:Georgia,serif;font-size:12px;border:1px solid #d4d5cc;border-radius:50%;background:none;color:#96978d;position:relative}.step:not(:last-child):after{content:"";height:1px;background:#d4d5cc;width:14px;position:absolute;left:28px;top:13px}.step.current{color:var(--ink);border:2px solid var(--ink);transform:rotate(-7deg)}.step.done{background:var(--ink);color:var(--paper);border-color:var(--ink)}.small-note{text-align:center;font-size:14px;letter-spacing:2px;color:var(--muted);margin:0 0 20px}footer{display:flex;justify-content:space-between;max-width:1220px;margin:48px auto 0;padding:18px 28px 25px;font-size:12px;color:#898b82;font-family:system-ui,sans-serif;letter-spacing:.5px}footer a{color:inherit;text-underline-offset:3px}#lever-arm{transform-origin:578px 145px;transition:transform .25s ease}.pulled #lever-arm{transform:rotate(-48deg)}.waiting #tram{animation:idle 2.2s ease-in-out infinite}@keyframes idle{0%,100%{transform:translate(70px,16px)}50%{transform:translate(70px,14px)}}.summary{text-align:center;padding-top:23px}.summary h1{font-size:37px}.end-tram{width:225px;display:block;margin:10px auto -5px;stroke:var(--ink);color:var(--ink)}.summary-intro{font-size:21px}.stats{display:flex;justify-content:center;gap:65px;margin:30px 0 34px}.stats div{display:flex;flex-direction:column;gap:8px}.stats strong{font:36px Georgia,serif}.stats span{font-size:15px;color:#777b70}.review{max-width:590px;margin:0 auto 28px;border-top:1px solid var(--line)}.review-row{display:flex;justify-content:space-between;gap:20px;text-align:left;align-items:center;padding:13px 5px;border-bottom:1px solid var(--line);font-size:18px}.review-row small{display:block;font-size:13px;color:#808578;margin-top:4px}.review-choice{font-size:16px;white-space:nowrap}.review-number{font:13px Georgia,serif;color:#989d91;margin-right:15px}dialog{border:2px solid var(--ink);border-radius:5px;background:var(--paper);padding:26px 30px;max-width:calc(100% - 30px);box-shadow:6px 7px 0 #2223}dialog::backdrop{background:#faf9f6cc;backdrop-filter:blur(3px)}dialog h2{font-size:26px;margin:0 0 15px}dialog p{color:#73766b}.dialog-actions{display:flex;gap:15px;margin-top:25px}.dialog-actions .choice{font-size:17px;padding:8px 15px;min-height:44px}@media(min-width:1450px){.topbar{height:104px}main{max-width:1180px}.scene-wrap{max-width:1100px}.heading .eyebrow{margin-top:10px}h1{font-size:46px}.decision{margin-top:8px}.question{font-size:25px}footer{margin-top:40px}}@media(max-width:700px){.topbar{height:74px;padding:0 22px}.brand{font-size:18px}.brand-dot{font-size:24px}.tools{gap:5px}.icon-button{padding:7px;width:35px}.icon-button svg{width:23px}main{padding:0 18px}.eyebrow{font-size:8px;letter-spacing:2.2px;margin:9px 0 14px}h1{font-size:34px;letter-spacing:3px}.level{font-size:17px;margin-top:17px}.scene-wrap{width:calc(100% + 16px);margin-left:-8px;margin-top:31px;margin-bottom:25px}.decision{min-height:230px;max-width:520px}.question{font-size:21px;line-height:1.85;min-height:110px}.actions{gap:13px;margin-top:24px}.choice{font-size:20px;min-height:52px;padding:10px 18px;gap:11px}.key{display:none}.progress{margin-top:23px}.small-note{font-size:12px}footer{margin-top:34px;padding:18px 20px;font-size:10px}.summary{padding-top:24px}.summary h1{font-size:29px;letter-spacing:2px}.summary-intro{font-size:18px}.stats{gap:28px}.stats span{font-size:12px}.stats strong{font-size:30px}.review-row{font-size:16px}.review-number{margin-right:9px}.review-choice{font-size:14px}.end-tram{width:210px}.dialog-actions{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:701px){.topbar{height:72px}.heading .eyebrow{margin:3px 0 9px}h1{font-size:38px}.level{margin-top:15px}.scene-wrap{max-width:1040px}#scene{height:clamp(260px,calc(100svh - 510px),390px)}.decision{margin-top:5px}.question{font-size:23px;line-height:1.85}.progress{margin-top:22px}footer{margin-top:20px}}
.music-enabled .music-off{display:none}
#scene.moving{overflow:hidden}.actions{flex-wrap:wrap;transition:opacity .9s linear .15s}.actions.departing{opacity:0;pointer-events:none}
#sleep-hint{margin:16px 0 0;font-size:19px;line-height:1.8;color:#65675e}#wake .key{border-color:#96998c;color:inherit}
.package-letter{max-width:780px;margin:0 auto;padding:20px 0 48px;text-align:left}.package-letter p{font-size:22px;line-height:1.95;margin:0 0 25px}.package-letter h1{font-size:32px;letter-spacing:1px;line-height:1.6;margin:30px 0 24px;transform:none}.package-letter .letter-opening{color:#65675e}.package-letter .letter-ending{font-size:29px;font-weight:bold;margin-top:38px}.package-letter #play-again{display:flex;margin:35px auto 0}@media(max-width:700px){.package-letter{padding-top:12px}.package-letter p{font-size:19px;margin-bottom:24px}.package-letter h1{font-size:25px}.package-letter .letter-ending{font-size:25px}}
.mission{max-width:790px;margin:24px auto 8px}
.sleeping #sleep-sign text{animation:sleep-breathe 1.8s ease-in-out infinite}
.sleeping #sleep-sign text:nth-child(2){animation-delay:.3s}
.sleeping #sleep-sign text:nth-child(3){animation-delay:.6s}
@keyframes sleep-breathe{0%,100%{opacity:.35}50%{opacity:1}}
.celebrating #escape-person>use{animation:happy-cheer .65s ease-in-out infinite}
.celebrating .confetti-piece{animation:confetti-float 2.6s ease-in-out infinite}
.end-gift{display:block;width:190px;height:160px;margin:30px auto 14px;color:var(--ink)}
@keyframes happy-cheer{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes confetti-float{0%,100%{transform:translateY(-7px) rotate(-2deg);opacity:.5}50%{transform:translateY(8px) rotate(2deg);opacity:1}}
@media(max-width:700px){.end-gift{width:160px;height:140px}.summary h1{font-size:27px;letter-spacing:1px}.summary-intro{line-height:1.7}.stats{gap:30px}}
.intro{min-height:calc(100svh - 125px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:15px 0 42px}.intro h1{font-size:clamp(29px,4.8vw,46px);letter-spacing:2px;line-height:1.5}.intro h1 span{border-bottom:3px solid #a3afa0;padding-bottom:3px}.intro-gift{width:190px;height:155px;color:var(--ink);margin:20px 0 5px}.intro-copy{font-size:22px;line-height:1.8;margin-bottom:22px}.intro-copy p{margin:6px 0}.intro-encouragement{margin-top:18px!important;font-weight:bold}.intro #start{min-width:180px}@media(max-width:700px){.intro{min-height:calc(100svh - 95px);padding:14px 0 35px}.intro-copy{font-size:18px;line-height:1.95;margin-bottom:24px}.intro-copy p{margin:7px 0}.intro-gift{width:175px;height:145px;margin:24px 0 9px}}
