:root{color-scheme:dark;--bg:#0d2531;--cream:#f3e5bd;--mint:#a8d2b2;--gold:#d7b875;--line:#c0d8bb29;font:16px/1.5 system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif;color:var(--cream);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 65% 10%,#31546070,transparent 50%),#0d2531;min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.44}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #bfe7d0;outline-offset:4px}[hidden]{display:none!important}p,h1,h2{margin:0}a{color:inherit}button{border:1px solid var(--line);color:var(--cream)}.topbar{max-width:1180px;margin:auto;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;font:25px/1.1 Georgia,serif;letter-spacing:.04em}.wordmark img{width:47px;height:47px}.wordmark small{display:block;font:9px/1.6 system-ui;letter-spacing:.16em;color:#92b6aa;margin-top:5px}.top-actions{display:flex;align-items:center;gap:14px}.quiet{background:#122f3a;border-radius:30px;padding:10px 17px;min-height:43px;font-size:12px}.quiet:hover{background:#285059}.locale-controls{display:flex;gap:2px;background:#0b202a;border:1px solid #b1c7b942;border-radius:30px;padding:4px}.locale-controls button{background:transparent;border:0;border-radius:20px;min-width:43px;min-height:35px;font-size:12px;font-weight:650}.locale-controls button[aria-pressed=true]{background:#c7b781;color:#1a373c}main{max-width:1180px;margin:auto;padding:0 30px}.hero{min-height:390px;position:relative;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid var(--line);isolation:isolate}.hero-art{position:absolute;width:69%;height:100%;right:-20px;object-fit:contain;z-index:-1;opacity:.95}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#102c39 5%,#102c39e0 29%,#102c3900 65%);z-index:-1}.hero-copy{max-width:440px;padding:50px 0}.eyebrow{font-size:10px;letter-spacing:.18em;color:#a7c6b4;text-transform:uppercase}.hero h1{font:48px/1.25 Georgia,Songti SC,serif;font-weight:400;letter-spacing:.02em;margin:15px 0 20px}.hero-copy>p:not(.eyebrow):not(.save-copy){font-size:13px;line-height:1.85;color:#aac8be;max-width:345px}.primary{display:block;width:100%;padding:14px 20px;min-height:50px;background:linear-gradient(130deg,#ead19a,#bca06c);border:1px solid #e4d49f;border-radius:7px;color:#193540;font-size:14px;font-weight:680;letter-spacing:.04em;box-shadow:0 6px 23px #07192235;transition:filter .2s,transform .2s}.primary:hover{filter:brightness(1.1);transform:translateY(-1px)}.hero .primary{width:auto;min-width:240px;margin-top:27px}.save-copy{font-size:10px;line-height:1.6;color:#9bb7a8;margin-top:12px}.map-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin:34px 0 21px}.map-heading h2{font:29px/1.5 Georgia,Songti SC,serif;margin-top:5px;font-weight:400}.map-heading>p{font-size:12px;color:#a5c3b3}.chapter-map{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.chapter{position:relative;min-height:185px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:linear-gradient(140deg,#1d404a,#112e3a);border:1px solid #a8bda245;border-radius:12px;padding:23px;overflow:hidden;transition:transform .2s,border .2s}.chapter:not(:disabled):hover{transform:translateY(-3px);border-color:#d2c38c}.chapter-number{font:11px Georgia,serif;color:#a8c2b5;border:1px solid #a8c2b541;width:27px;height:27px;border-radius:50%;display:grid;place-items:center}.chapter strong{font:23px/1.35 Georgia,Songti SC,serif;margin-top:13px;z-index:1}.chapter-tea{font-size:11px;color:#a8c6ba;margin-top:5px;z-index:1}.chapter-seal{font-size:10px;color:#deca90;margin-top:17px;z-index:1}.chapter-planet{position:absolute;width:116px;height:116px;right:-20px;top:12px;border:1px solid #aad5b125;border-radius:50%;background:radial-gradient(circle at 30% 25%,#dbe6b99f,#559689 40%,#24444b 72%);box-shadow:0 0 30px #8dc5ae1c,inset -13px -14px 17px #09223088;opacity:.7}.chapter-planet:before,.chapter-planet:after{content:"";position:absolute;border:1px solid #d6c68e66;inset:44px -19px;border-radius:50%;transform:rotate(-25deg)}.chapter-planet:after{inset:39px -30px;border-color:#a7c5ad27}.chapter[data-biome=ember] .chapter-planet{background:radial-gradient(circle at 30% 25%,#eec697,#b67452 40%,#402e47 72%)}.chapter[data-biome=mirror] .chapter-planet{background:radial-gradient(circle at 30% 25%,#c3e3e9,#83a8c0 40%,#253c69 72%)}.chapter[data-biome=amber] .chapter-planet{background:radial-gradient(circle at 30% 25%,#f5dda8,#bca875 40%,#415b54 72%)}.chapter[data-biome=twin] .chapter-planet{background:radial-gradient(circle at 30% 25%,#e1c4e7,#9179ae 40%,#3d3c72 72%)}.chapter[data-biome=home] .chapter-planet{background:radial-gradient(circle at 30% 25%,#f0dba5,#a4bc8e 40%,#365854 72%)}.legacy{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:25px 0;color:#7fa394;font-size:11px}.legacy p{max-width:560px}.legacy a{color:#c6c49b;white-space:nowrap;text-underline-offset:4px}footer{max-width:1120px;margin:12px auto 0;padding:18px 0 23px;border-top:1px solid var(--line);font-size:10px;color:#789b91;display:flex;justify-content:space-between;gap:15px}footer a{text-underline-offset:3px}.flight{max-width:850px;margin:auto}.flight-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:center;margin-top:17px}.flight-heading .eyebrow{font-size:8px}.flight-heading h1{font:25px/1.5 Georgia,Songti SC,serif;margin-top:3px}.arena{position:relative;height:min(62svh,630px);min-height:410px;margin-top:12px;overflow:hidden;border:1px solid #adbea133;border-radius:18px;background:radial-gradient(ellipse at 50% 70%,#36565b22,#0a202a55)}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;top:19px;left:24px;right:24px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.hud>div{display:flex;flex-direction:column}.hud small{font-size:8px;letter-spacing:.13em;color:#9fbcad}.hud strong{font:29px/1.2 Georgia,serif;margin-top:4px}.hud #goal{font-size:14px;color:#9cb0a4}.hud .shield{text-align:right}.hud .shield strong{font-size:17px;letter-spacing:4px;margin-top:10px;color:#e4c98f}.hud .recipe{text-align:center}.recipe span{font-size:12px;line-height:1.3;margin-top:9px;color:#d8dfb9}.stage-progress{height:2px;position:absolute;top:0;width:100%;background:#a0b8a519}.stage-progress span{height:100%;display:block;background:#dfc993;box-shadow:0 0 10px #ecd89b;transition:width .3s}.tip-panel{position:absolute;bottom:16px;left:20px;right:20px;text-align:center;pointer-events:none}.tip-panel #event{font-size:12px;color:#d5dab4;line-height:1.5}.tip-panel #objective{font-size:10px;color:#88ae9e;line-height:1.5;margin-top:5px}.controls{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:11px;max-width:530px;margin:17px auto 0}.controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:8px;background:#1d3e46;min-height:62px}.controls b{font-size:14px;font-weight:600;letter-spacing:.04em}.controls small{font-size:9px;color:#a5bdad;letter-spacing:.1em}.controls #reverse{background:#c9b786;border-color:#e7d69b;color:#193941}.controls #reverse small{color:#4b645c}.controls button[aria-pressed=true]{border-color:#ebd79d;background:#49665d;box-shadow:inset 0 0 0 1px #ebd79d}.under-controls{max-width:530px;display:flex;justify-content:space-between;gap:16px;margin:10px auto 0;font-size:10px;color:#97b5a4}dialog{width:min(480px,calc(100% - 28px));padding:30px;background:linear-gradient(150deg,#234854,#122c3c);color:var(--cream);border:1px solid #abbd9d80;border-radius:15px;text-align:center;box-shadow:0 30px 100px #020c19;max-height:calc(100svh - 28px);overflow:auto}dialog::backdrop{background:#061821d9;backdrop-filter:blur(7px)}#dialogArt{height:80px;width:100px;margin:0 auto 19px;position:relative;border-bottom:1px solid #c9c99455;border-radius:50%;background:radial-gradient(ellipse at 50% 60%,#a3d5b31f,transparent 70%)}#dialogArt img{height:72px;width:72px}dialog h2{font:29px/1.3 Georgia,Songti SC,serif;font-weight:400;margin:14px 0}.menu-story{font-size:13px;line-height:1.85;color:#b5cdbf}.menu-rule{font-size:12px;line-height:1.8;text-align:left;background:#0c243c55;border-left:2px solid #c9bd84;border-radius:3px;padding:14px;margin-top:20px;color:#dfdcb6}#instruction{font-size:10px;line-height:1.8;margin-top:17px;color:#a2c0b0;white-space:pre-line}dialog .primary{margin-top:23px}.secondary{width:100%;min-height:43px;margin-top:9px;border-radius:7px;background:transparent;color:#aec6b8;font-size:12px}.result{font-size:16px;color:#e2cb8e;padding-top:18px;line-height:1.7}.flight+footer{margin-top:16px}@media(min-width:1250px){.arena{height:min(64svh,680px)}}@media(max-width:760px){.topbar{padding:16px 20px}.wordmark{font-size:22px}.wordmark img{width:39px;height:39px}.top-actions{gap:8px}.quiet{padding:9px 13px}.hero{min-height:380px}.hero-art{width:100%;right:-95px;opacity:.62}.hero:after{background:linear-gradient(90deg,#102c39,#102c39b0 48%,#102c3900)}.hero h1{font-size:39px}.hero-copy{padding:40px 0;max-width:370px}.hero-copy>p:not(.eyebrow):not(.save-copy){max-width:275px;font-size:12px}.chapter-map{grid-template-columns:repeat(2,1fr)}.chapter{padding:20px;min-height:170px}.chapter strong{font-size:21px}.chapter-planet{width:95px;height:95px;right:-25px}.legacy{align-items:flex-start}.legacy p{max-width:60%}footer{margin-left:20px;margin-right:20px;font-size:9px}.arena{min-height:380px}.hud .recipe{max-width:47%}}@media(max-width:480px){main{padding:0 16px}.topbar{padding:12px 16px}.wordmark{font-size:20px;gap:8px}.wordmark small{font-size:7px}.top-actions{gap:5px}.top-actions .quiet{font-size:10px;padding:8px 10px;min-height:38px}.locale-controls{padding:2px}.locale-controls button{min-width:39px;min-height:34px;font-size:11px}.hero{min-height:370px}.hero-art{width:115%;right:-115px;opacity:.57}.hero-copy{padding:32px 0}.hero .eyebrow{font-size:8px}.hero h1{font-size:35px;margin:16px 0}.hero-copy>p:not(.eyebrow):not(.save-copy){max-width:240px}.hero .primary{min-width:215px;font-size:12px}.map-heading{margin:25px 0 16px}.map-heading .eyebrow{font-size:8px}.map-heading h2{font-size:25px}.map-heading>p{font-size:10px;max-width:105px;text-align:right}.chapter-map{gap:10px}.chapter{padding:16px;min-height:173px}.chapter strong{font-size:20px;max-width:140px}.chapter-tea{font-size:10px}.chapter-seal{font-size:9px}.chapter-planet{right:-40px;top:14px;opacity:.5}.legacy{display:block;font-size:10px;line-height:1.8}.legacy p{max-width:none;margin-bottom:9px}footer{font-size:8px;line-height:1.7;align-items:flex-start}footer span{max-width:66%}.flight-heading{gap:9px}.flight-heading h1{font-size:22px}.flight-heading .eyebrow{font-size:6px;letter-spacing:.08em}.flight-heading .quiet{font-size:10px;padding:9px 11px}.arena{height:calc(100svh - 260px);min-height:365px;border-radius:12px}.hud{top:15px;left:15px;right:15px;gap:7px}.hud small{font-size:6px}.hud strong{font-size:26px}.hud #goal{font-size:12px}.hud .shield strong{font-size:13px;letter-spacing:2px}.recipe span{font-size:10px}.hud .recipe{max-width:45%}.tip-panel{bottom:13px;left:12px;right:12px}.tip-panel #event{font-size:10px}.tip-panel #objective{font-size:9px}.controls{margin-top:12px;gap:8px}.controls button{min-height:56px}.controls b{font-size:13px}.under-controls{font-size:8px;margin-top:8px;gap:8px}.under-controls span:last-child{text-align:right}dialog{padding:24px}dialog h2{font-size:26px}.menu-story{font-size:12px}.menu-rule{font-size:11px;padding:12px}#dialogArt{height:63px;margin-bottom:15px}#dialogArt img{width:60px;height:60px}}@media(max-height:650px)and (min-width:700px){.topbar{padding-top:10px;padding-bottom:10px}.arena{height:calc(100svh - 240px);min-height:285px}.controls button{min-height:47px}.flight-heading{margin-top:10px}.flight-heading h1{font-size:21px}.hud{top:11px}.tip-panel{bottom:10px}.tip-panel #objective{display:none}dialog{padding:22px}#dialogArt{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}dialog>.locale-controls{position:absolute;top:12px;right:14px}dialog{padding-top:62px}@media(max-width:480px){dialog{padding-top:59px}}
