@font-face{font-family:system-fallback;src:local("PingFang SC")}
.motion-layer:not(.sprite) canvas{transform:translateY(-18%)}
:root{color-scheme:dark;--bg:#101210;--panel:#171a17;--text:#f1efdf;--muted:#a6aa98;--line:#353b30;--accent:#ebad8b;--green:#b8cc97;--red:#ed9789;--sans:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;--mono:"SFMono-Regular",Consolas,monospace}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{touch-action:manipulation}a{color:inherit}.app-shell{max-width:1500px;margin:auto;padding:0 5.4vw;min-height:100svh;display:flex;flex-direction:column}.header{height:105px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:16px}.brand{text-decoration:none;display:flex;align-items:center;gap:14px;font:600 16px var(--mono);letter-spacing:2px}.brand-mark{font:bold 42px var(--mono);color:var(--accent);letter-spacing:-8px;line-height:1;width:49px}.brand-mark span{font-size:30px}.brand-sub{display:block;font:11px var(--sans);letter-spacing:3px;margin-top:7px;color:var(--muted)}.header-actions{display:flex;gap:15px;align-items:center}.quiet,.text-button{background:none;border:0;padding:12px 3px;font-size:12px;color:var(--muted)}.quiet:hover,.text-button:hover{color:var(--accent)}.icon-button{height:40px;min-width:40px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font:20px var(--mono)}.game-layout{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:7%;flex:1;padding:46px 0 36px;min-height:660px}.stage-column{min-width:0}.stage-meta{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.day-chip{font:12px var(--mono);letter-spacing:2px}.day-chip b{font-size:22px;font-weight:400;color:var(--text);margin-left:6px}.stage{height:400px;position:relative;isolation:isolate;overflow:hidden}.halo{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 60%,#b47f4821,transparent 65%);z-index:-2}.orbit{position:absolute;border:1px solid #d3b58712;border-radius:50%;width:330px;height:330px;left:50%;top:43%;transform:translate(-50%,-50%);z-index:-1}.orbit-two{width:440px;height:440px}.terminal{position:absolute;top:36px;left:50%;transform:translateX(-50%);font:11px var(--mono);color:#7b8574;letter-spacing:.2px;display:flex;gap:8px;align-items:center;white-space:nowrap}.status-dot{height:5px;width:5px;border-radius:50%;background:var(--green);box-shadow:0 0 9px #bdd9a755}.character{display:block;position:absolute;inset:43px -10% 45px;width:120%;height:calc(100% - 88px);padding:0;border:0;background:transparent;z-index:1}.character:active{transform:translateY(3px)}#motion-host{position:absolute;inset:0;display:block}.motion-layer{position:absolute;inset:0;opacity:0;transition:opacity .16s;display:flex;justify-content:center;align-items:center}.motion-layer.active{opacity:1}.motion-layer canvas{display:block;width:100%!important;height:100%!important;object-fit:contain}.motion-layer.sprite canvas{width:235px!important;height:auto!important;image-rendering:pixelated}.floor{position:absolute;left:25%;right:25%;bottom:80px;height:13px;border-radius:50%;background:#03050366;filter:blur(5px);z-index:-1}.stage-flair{position:absolute;right:15%;top:90px;font:26px var(--mono);color:var(--accent);transform:rotate(9deg);opacity:.75}.speech{position:absolute;bottom:10px;left:1%;width:98%;text-align:center;color:var(--accent);font-size:17px;line-height:1.65;min-height:56px;display:flex;align-items:center;justify-content:center;padding:0 15px}.speech.pop{animation:pop .32s ease-out}.hud{border-top:1px solid var(--line);padding-top:21px;display:grid;grid-template-columns:1.15fr .8fr 1fr;gap:10px}.hud div>span{display:block;font-size:10px;color:var(--muted);letter-spacing:1px}.hud strong{font-size:15px;display:block;margin-top:9px;font-weight:500}.hud em{font-size:11px;color:var(--muted);font-style:normal}.play-column{min-width:0}#panel{animation:appear .3s ease-out}.eyebrow{font:11px var(--mono);color:var(--accent);letter-spacing:2px;display:flex;align-items:center;gap:10px;margin:0 0 19px}.eyebrow:before{content:"";width:25px;height:1px;background:var(--accent)}h1{font-size:clamp(38px,4vw,64px);letter-spacing:-2px;line-height:1.24;font-weight:560;margin:0 0 22px}h1 .soft{color:var(--accent)}.intro{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 31px}.primary{background:var(--accent);color:#24251d;border:1px solid var(--accent);border-radius:9px;min-height:53px;padding:14px 22px;font-weight:650;display:flex;justify-content:space-between;align-items:center;gap:24px;transition:background .18s,transform .18s}.primary:hover{background:#f6c4a8;transform:translateY(-1px)}.primary span{font-size:21px;font-weight:400}.home-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.micro{font-size:11px;color:#858e7c;line-height:1.7;margin-top:23px}.progress{display:flex;gap:7px;margin:0 0 24px}.progress span{height:3px;flex:1;border-radius:2px;background:#33392e}.progress span.current{background:var(--accent)}.progress span.safe{background:var(--green)}.progress span.risky{background:var(--red)}.question-number{margin-left:auto;color:var(--muted);letter-spacing:1px;white-space:nowrap}.question-title{font-size:clamp(24px,2.5vw,35px);line-height:1.4;letter-spacing:-.6px;margin:0 0 13px;font-weight:550}.context{font-size:14px;line-height:1.85;color:var(--muted);margin:0 0 22px}.choices{display:grid;gap:12px}.choice{display:flex;align-items:center;gap:15px;width:100%;text-align:left;background:#1a1e18;border:1px solid #3b4235;border-radius:11px;padding:16px;min-height:76px;font-size:14px;line-height:1.55;transition:border .2s,background .2s,transform .2s}.choice:not(:disabled):hover{background:#252b20;border-color:#7b866b;transform:translateX(3px)}.choice-key{border:1px solid #4c5643;width:29px;height:29px;border-radius:6px;flex-shrink:0;display:grid;place-items:center;font:12px var(--mono);color:var(--muted)}.choice.chosen.safe{border-color:#b8cc97;background:#283423}.choice.chosen.risky{border-color:var(--red);background:#38231f}.choice.dim{opacity:.6}.choice.chosen .choice-key{color:var(--text);border-color:currentColor}.feedback{margin-top:19px;animation:appear .2s ease-out}.feedback-title{font-size:13px;font-weight:600;color:var(--green);margin:0 0 6px}.feedback.risky .feedback-title{color:var(--red)}.explanation{font-size:12px;line-height:1.85;color:#bec4b2;margin:0 0 15px}.next{width:100%;min-height:46px;padding:10px 18px;font-size:13px}.ending-word{font:11px var(--mono);letter-spacing:3px;color:var(--green);margin-bottom:13px}.ending-word.bad{color:var(--red)}.ending-title{font-size:44px;line-height:1.22;margin:0 0 14px;letter-spacing:-1px;font-weight:550}.report-line{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:15px 0;color:var(--muted);font-size:12px}.report-line b{font-weight:500;color:var(--text)}.end-actions{display:flex;gap:10px;margin-top:15px;flex-wrap:wrap}.secondary{border:1px solid #48513e;background:none;border-radius:9px;min-height:48px;padding:12px 16px;font-size:12px}.secondary:hover{border-color:var(--accent)}.footer{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);font-size:10px;color:#858f7d}.text-button span{margin-left:6px;opacity:.65}.credit{font-size:9px}.storage-notice{font-size:11px;color:var(--accent);margin:0 0 10px;line-height:1.5}.storage-notice:empty{display:none}dialog{max-width:650px;width:calc(100% - 30px);max-height:85svh;overflow:auto;background:#1a1e18;color:var(--text);border:1px solid #59624f;border-radius:17px;padding:25px}dialog::backdrop{background:#040604c9;backdrop-filter:blur(6px)}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.modal-top h2{font-size:20px;font-weight:500;margin:0}.modal-copy{font-size:13px;line-height:1.9;color:#bcc3af}.modal-copy p{margin:0 0 16px}.modal-copy a{color:var(--accent)}.motion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.motion-grid button{min-height:45px;border:1px solid #3b4434;border-radius:6px;background:#23291e;font-size:12px}.motion-grid button:hover{border-color:var(--accent)}.motion-grid button span{color:#7e8b72;margin-right:6px;font:10px var(--mono)}.toast{position:fixed;bottom:23px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.25s;background:#e7e8d9;color:#20261d;font-size:12px;border-radius:9px;padding:13px 20px;z-index:10;max-width:90%;width:max-content}.toast.show{opacity:1;transform:translate(-50%,0)}.report-preview{display:block;width:100%;border-radius:8px;margin-bottom:14px}.report-hint{font-size:12px;color:var(--muted);line-height:1.8}.shake{animation:shake .4s ease-out}.sparkle{animation:sparkle 1.8s ease-in-out infinite}body[data-ending="bad"] .halo{background:radial-gradient(ellipse at 50% 60%,#a95b4023,transparent 65%)}body[data-ending="good"] .halo{background:radial-gradient(ellipse at 50% 60%,#97ad5725,transparent 65%)}
@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes pop{0%{transform:translateY(5px);opacity:.3}100%{transform:none;opacity:1}}@keyframes shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}@keyframes sparkle{50%{opacity:.35;transform:rotate(-8deg)}}
@media(min-width:1600px){.game-layout{min-height:780px;gap:8%}.stage{height:490px}.character{inset:50px -15% 50px;width:130%;height:calc(100% - 100px)}.speech{font-size:21px;bottom:17px}.stage-flair{top:115px}.stage-meta{font-size:14px}.hud strong{font-size:18px}.hud div>span{font-size:12px}.context,.intro{font-size:17px}.choice{font-size:17px;min-height:89px}.explanation{font-size:15px}.feedback-title{font-size:16px}.footer{font-size:12px}.credit{font-size:11px}.micro{font-size:12px}.question-title{font-size:38px}.primary{font-size:17px}.ending-title{font-size:55px}.report-line{font-size:15px}}
@media(max-width:760px){.app-shell{padding:0 22px}.header{height:79px}.brand{font-size:13px;gap:8px}.brand-mark{font-size:35px;width:39px}.brand-sub{font-size:9px;letter-spacing:2px}.header-actions{gap:8px}.quiet{font-size:10px;padding:10px 0}.icon-button{height:32px;min-width:32px;font-size:17px}.game-layout{display:flex;flex-direction:column;gap:24px;padding:22px 0 30px;min-height:0;flex:1;align-items:stretch}.stage-meta{font-size:10px}.day-chip{font-size:10px}.day-chip b{font-size:17px}.stage{height:245px}.terminal{top:14px;font-size:9px}.character{inset:21px -5% 35px;width:110%;height:calc(100% - 56px)}.motion-layer.sprite canvas{width:159px!important}.speech{font-size:13px;bottom:0;min-height:40px;padding:0 5px}.orbit{width:220px;height:220px;top:43%}.orbit-two{width:300px;height:300px}.floor{bottom:47px}.stage-flair{top:58px;right:13%;font-size:21px}.hud{padding-top:14px;gap:8px}.hud div>span{font-size:9px;letter-spacing:0}.hud strong{font-size:12px;margin-top:5px}.eyebrow{font-size:10px;margin:0 0 13px;letter-spacing:1px}h1{font-size:37px;line-height:1.2;letter-spacing:-1px;margin-bottom:17px}.intro{font-size:12px;line-height:1.8;margin-bottom:19px}.primary{min-height:48px;font-size:13px;padding:11px 17px}.micro{margin-top:14px;font-size:10px}.progress{margin-bottom:15px}.question-title{font-size:23px;line-height:1.35;margin-bottom:9px}.context{font-size:12px;line-height:1.75;margin-bottom:14px}.choice{font-size:12px;padding:12px;gap:11px;min-height:65px}.choice-key{height:25px;width:25px;font-size:11px}.choices{gap:9px}.feedback{margin-top:15px}.explanation{font-size:11px;margin-bottom:12px}.next{min-height:45px}.footer{gap:8px;min-height:70px;flex-wrap:wrap;padding:13px 0;font-size:9px}.footer .credit{width:100%;font-size:8px}.footer .text-button{font-size:10px;padding:0}.ending-title{font-size:35px}.report-line{font-size:11px;padding:12px 0}.end-actions .primary{font-size:12px}.end-actions .secondary{font-size:11px}.motion-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:360px){.app-shell{padding:0 15px}.header-actions{gap:6px}.brand-sub{letter-spacing:1px}.stage{height:225px}h1{font-size:33px}.hud strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
