
@font-face{font-family:Wuxia;src:url('../fonts/font_wuxia_title.woff2.ttf')}
:root{--paper:#f2eddf;--ink:#152b29;--jade:#355d4d;--gold:#c8b77f;--line:#d5d7c9;--muted:#6d7a6b}
[hidden]{display:none!important}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'PingFang TC','Noto Serif TC',serif}button,a,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #c39541;outline-offset:4px}button:disabled{cursor:default}a{color:var(--jade)}
.review{padding:18px 4vw 14px;border-bottom:1px solid #cdd2c1;display:flex;justify-content:space-between;gap:20px;align-items:center;background:#f7f3e8}.review strong{font-size:15px}.review small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.6}.review a{font-size:12px;white-space:nowrap}
.workspace{max-width:1320px;margin:0 auto;padding:24px 4vw 30px}.eyebrow{font-size:11px;letter-spacing:3px;color:#63765d;margin-bottom:10px}.workspace h1{font-family:Wuxia,serif;font-size:clamp(24px,3.2vw,38px);font-weight:400;letter-spacing:2px;margin:0 0 20px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.tabs button{border:1px solid #c5ccbc;border-radius:5px;padding:8px 14px;color:#55604f;background:transparent;font-size:12px}.tabs button[aria-selected=true]{background:var(--ink);border-color:var(--ink);color:#fff0c7}
.frame{position:relative;border:1px solid #355345;border-radius:12px;overflow:hidden;min-height:570px;background:#112e29;color:#e9ebd6;box-shadow:0 25px 55px #142b2920}.frame:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#081e21e8,#112e2990),url('../assets/backgrounds/battle_forest_pixel.jpg') center/cover;opacity:.85}.view{position:relative;display:none;min-height:570px}.view.active{display:flex}.topline{position:absolute;left:30px;right:30px;top:25px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bdcdb9}.wordmark{font-family:Wuxia,serif;color:#ecdcaa;font-size:20px;letter-spacing:2px}.quiet{background:transparent;border:1px solid #aec4a749;border-radius:5px;color:#d4dfc4;padding:7px 12px;font-size:12px}.primary{background:#d4deb0;border:1px solid #e7edc9;border-radius:6px;color:#183a2d;min-height:46px;padding:11px 24px;font-weight:600;letter-spacing:1px}.secondary{background:transparent;border:1px solid #bad4b94f;border-radius:6px;color:#dce7ce;min-height:44px;padding:10px 18px}.small{font-size:12px;color:#b1c5ac;line-height:1.7}.sample{position:absolute;right:18px;bottom:13px;color:#9ab39c;font-size:10px;letter-spacing:1px}
.home{align-items:center;justify-content:space-between;padding:95px 9% 60px;gap:30px}.home-copy{max-width:480px}.chapter{font-size:12px;color:#b6cba6;letter-spacing:3px}.headline{font-family:Wuxia,serif;font-size:clamp(30px,4vw,48px);letter-spacing:3px;line-height:1.4;color:#f2e6b9;font-weight:400;margin:16px 0}.home-copy p{font-size:15px;line-height:1.9;color:#c5d4bc;margin:0 0 25px}.mode-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.mode-links button{font-size:12px}.hero-figure{position:relative;width:250px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center}.hero-figure:before{content:'';position:absolute;bottom:73px;width:150px;height:25px;background:#051c20b0;border-radius:50%;filter:blur(8px)}.hero-figure img{position:relative;width:245px;image-rendering:pixelated;animation:breathe 3s ease-in-out infinite}.hero-figure figcaption{font-size:12px;letter-spacing:2px;color:#c6d4ba;margin-top:15px}.hero-figure small{font-size:10px;margin-top:8px;color:#87a18c;text-align:center}
.journey{padding:90px 8% 45px;flex-direction:column}.section-title{font-family:Wuxia,serif;font-size:29px;color:#efe4bb;margin:0 0 12px;font-weight:400}.route{display:flex;gap:22px;margin-top:50px;position:relative}.route:before{content:'';position:absolute;top:23px;left:22px;right:22px;height:1px;background:#afc49255}.node{flex:1;z-index:1}.circle{display:grid;place-items:center;width:48px;height:48px;border:1px solid #a8bf94;border-radius:50%;background:#214239;color:#c5d9b4;font-size:18px}.node.current .circle{background:#d8e1b6;color:#163b2f;box-shadow:0 0 0 7px #cfdfac12}.node.locked{opacity:.5}.node h3{font-size:14px;font-weight:400;margin:22px 0 10px}.node p{font-size:12px;line-height:1.8;color:#adc4aa;margin:0}.journey .primary{align-self:flex-start;margin-top:40px}.journey-footer{margin-top:22px;font-size:11px;color:#8fae94}
.dialogue{align-items:flex-end;padding:95px 8% 38px;gap:45px}.portrait-slot{flex:0 0 230px;align-self:stretch;min-height:280px;border:1px dashed #b9c9a94f;background:linear-gradient(160deg,#a5bd8d12,#234d3f22);border-radius:120px 120px 8px 8px;display:flex;align-items:center;justify-content:center;text-align:center;color:#a1b695;padding:25px;font-size:13px;line-height:2}.portrait-slot strong{color:#d6dfbf;font-weight:400}.dialogue-copy{flex:1;align-self:center;max-width:560px}.speaker{color:#d6cd99;font-size:13px;letter-spacing:3px;margin:0 0 16px}.speech{font-family:Wuxia,serif;font-size:clamp(24px,3vw,35px);line-height:1.8;min-height:130px;margin:0 0 25px;color:#f2edcf}.dialogue-actions{display:flex;align-items:center;gap:20px}.dialogue-actions span{font-size:11px;color:#8eaa91}
.battle{padding:22px;flex-direction:column;background:linear-gradient(180deg,#112b29aa,#06191988)}.battle-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:0;width:min(510px,70%);margin:auto}.metric{text-align:center;border-right:1px solid #cbd8af22;font-size:11px;color:#becdb5;letter-spacing:2px}.metric:last-child{border:0}.metric b{display:block;font-family:Georgia,serif;font-size:34px;font-weight:400;letter-spacing:0;margin-top:4px;color:#e7deb7}.metric:first-child b{color:#a4d5b7}.target-area{text-align:center;margin-top:25px;z-index:2}.target-area small{font-size:11px;letter-spacing:2px;color:#adc5a7}.key-target{width:88px;height:88px;border:1px solid #c5d8b666;border-radius:10px;display:grid;place-items:center;margin:12px auto;font-family:Georgia,serif;font-size:58px;background:#0a2426a0;color:#f4edd1;box-shadow:0 9px 25px #0002}.finger{font-size:12px;color:#bbccaf}.actors{display:flex;justify-content:space-between;align-items:flex-end;margin-top:auto;padding:0 8%;min-height:190px}.actors img{width:175px;height:175px;object-fit:contain;image-rendering:pixelated}.training-enemy{width:110px;height:150px;border:1px dashed #bbd3a466;border-radius:50px 50px 8px 8px;display:grid;place-items:center;color:#a9bc9a;font-size:12px;text-align:center;line-height:1.9;background:#80956b11}.battle-feedback{font-size:12px;letter-spacing:2px;text-align:center;min-height:20px;color:#b5d5b4;margin:8px 0 13px}.battle.wrong .battle-feedback{color:#ffd1c0}.battle.wrong .actors img{animation:recoil .4s ease-out;filter:drop-shadow(0 0 8px #d96f67)}.battle.good .actors img{animation:strike .36s ease-out}.keys{display:flex;gap:6px;justify-content:center;border-top:1px solid #bccea925;padding-top:15px}.keys span{border:1px solid #c1ceb049;padding:5px 11px;border-radius:4px;font-size:12px;color:#829e8b}.keys .lit{color:#172f23;background:#c5d9a4}.design-controls{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:13px}.design-controls button{font-size:11px;border:1px solid #9daa9166;border-radius:4px;background:#fff7e4;padding:6px 10px;color:#53654d}.state-note{font-size:11px;color:#75816e;text-align:center;margin:8px 0 0;line-height:1.7}
.wardrobe{padding:90px 7% 45px;align-items:center;gap:38px}.outfit-preview{width:230px;flex-shrink:0;text-align:center}.outfit-preview img{width:230px;image-rendering:pixelated}.outfit-placeholder{height:280px;display:none;border:1px dashed #d6dfbc5c;place-items:center;line-height:2;color:#adc4a5;background:#a5bd8d0b;border-radius:8px}.outfit-body{flex:1}.outfit-options{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:23px 0}.outfit-card{min-height:78px;border:1px solid #b1c59b44;border-radius:5px;background:#183c34;color:#a9c29f;padding:10px 5px;font-size:11px;line-height:1.8}.outfit-card.active{border-color:#d4dcb3;background:#3e5c42;color:#f0e8c3}.outfit-card small{display:block;font-size:9px;opacity:.7}.outfit-caption{color:#c8dbb5;font-size:14px}.account{flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px 25px 50px}.account p{max-width:390px;color:#bacdb4;line-height:1.9;font-size:14px}.account-actions{display:flex;gap:12px;margin:20px 0}.account .notice{font-size:11px;color:#8fac92}.annotation{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:24px}.annotation p{font-size:12px;color:#6c7967;line-height:1.9;margin:0}.annotation strong{font-weight:600;color:#3f5e47}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#183b30;color:#e3ead0;padding:12px 22px;border-radius:8px;box-shadow:0 8px 25px #0002;z-index:10;font-size:13px;display:none;max-width:90vw;text-align:center}
@keyframes breathe{50%{transform:translateY(-5px)}}@keyframes recoil{35%{transform:translateX(-15px) rotate(-5deg)}}@keyframes strike{45%{transform:translateX(22px) rotate(5deg)}}
@media(max-width:700px){.review{align-items:flex-start}.workspace{padding:18px 14px}.tabs{gap:5px}.tabs button{font-size:11px;padding:8px 10px}.frame,.view{min-height:650px}.topline{left:20px;right:20px;top:20px}.wordmark{font-size:17px}.home{padding:82px 25px 40px;flex-direction:column;gap:0;align-items:flex-start}.headline{margin:12px 0}.home-copy p{font-size:14px}.hero-figure{position:absolute;right:10px;bottom:30px;width:160px;height:200px;align-self:auto;opacity:.65;pointer-events:none}.hero-figure img{width:160px}.hero-figure:before,.hero-figure figcaption,.hero-figure small{display:none}.mode-links{position:relative;z-index:2;max-width:180px;flex-direction:column}.journey{padding:83px 25px 35px}.route{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:25px}.route:before{display:none}.node h3{margin-top:12px}.journey .primary{margin-top:25px}.dialogue{padding:83px 25px 40px;gap:18px;flex-direction:column;align-items:stretch}.portrait-slot{min-height:200px;flex:0 0 200px;border-radius:60px 60px 8px 8px}.dialogue-copy{align-self:stretch}.speech{font-size:25px;min-height:110px;margin-bottom:15px}.dialogue-actions{justify-content:space-between;gap:8px}.battle{padding:19px 14px}.metrics{width:80%}.metric{font-size:10px;letter-spacing:1px}.metric b{font-size:28px}.battle-top{gap:6px}.battle-top .quiet{font-size:10px;padding:5px 8px}.target-area{margin-top:40px}.actors{padding:0 10px;min-height:200px}.actors img{width:150px;height:150px}.training-enemy{width:95px;height:132px}.keys span{padding:5px 10px}.wardrobe{padding:80px 24px 35px;flex-direction:column;gap:16px}.outfit-preview{width:165px}.outfit-preview img{width:165px}.outfit-placeholder{height:200px}.outfit-options{gap:4px;margin:16px 0}.outfit-card{font-size:10px;padding:5px 3px}.section-title{font-size:25px}.annotation{grid-template-columns:1fr;gap:12px}.account-actions{flex-direction:column}.account .section-title{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Actual game surfaces. The design review controls are not part of the product. */
html,body{min-height:100%;height:100%;background:#0a201e;color:#e8ead9}body{background:radial-gradient(ellipse at 20% 0,#335e4345,transparent 60%),#0a201e}button{touch-action:manipulation}button:disabled{opacity:.5}#app-shell{max-width:1500px;margin:auto;min-height:100dvh;display:flex;flex-direction:column;padding:0 32px}.world-header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b7d0ac20}.world-header nav{display:flex;gap:12px;align-items:center}.brand-button{background:none;border:0;font-family:Wuxia,serif;font-size:26px;letter-spacing:3px;color:#e6d6a2;text-align:left;padding:0}.brand-button span{display:block;font:10px 'PingFang TC',serif;color:#90ac94;margin-top:5px;letter-spacing:5px}.header-button{border:1px solid #b8cdaa33;color:#c9d7be;background:none;border-radius:5px;padding:8px 12px;font-size:12px}#save-status{color:#8ca58f;font-size:11px}#screen{flex:1;outline:none;padding:22px 0;display:flex;flex-direction:column;justify-content:center}.world-footer{display:flex;justify-content:space-between;align-items:center;min-height:46px;font-size:10px;color:#76927e}.world-footer button{background:none;border:0;font-size:10px;color:#8eaa91}.loading-state{text-align:center;padding:100px 20px}.loading-state h1{font-family:Wuxia,serif;font-size:38px;color:#eaddab;font-weight:400}.loading-state p{font-size:14px;color:#a2b79f}.frame{width:100%;min-height:min(640px,calc(100dvh - 160px));flex:1;box-shadow:none}.view{min-height:min(640px,calc(100dvh - 160px))}.view.active{display:flex}.entry{padding:70px 7%;display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}.entry-copy{max-width:460px}.entry-copy h1{font-family:Wuxia,serif;font-weight:400;line-height:1.5;font-size:42px;letter-spacing:2px;color:#efe3b8;margin:14px 0}.entry-copy p{font-size:15px;line-height:1.9;color:#b8cdb4}.entry form{max-width:400px;margin-top:30px}.entry label{font-size:13px;letter-spacing:2px;color:#d4dcb6;display:block;margin-bottom:10px}.entry input{display:block;width:100%;font-size:16px;min-height:46px;background:#081e1c99;color:#f0e8c5;border:1px solid #b8c89c55;border-radius:5px;padding:12px 14px;margin-bottom:12px}.entry form button{width:100%}.entry .entry-secondary{display:flex;gap:12px;margin-top:15px}.entry-secondary .quiet{flex:1}.entry-portrait{width:100%;max-width:400px;justify-self:center}.portrait-art{aspect-ratio:1;width:100%;background-repeat:no-repeat;image-rendering:auto;filter:drop-shadow(0 15px 15px #0003)}.art-unavailable{min-height:260px;border:1px dashed #b4c89b44;display:grid;place-items:center;color:#9db38f;font-size:12px}.home .hero-figure{width:320px}.hero-figure .portrait-art{width:320px}.hero-figure:before{bottom:70px}.portrait-flag{font-size:11px;color:#9cb69c;text-align:center}.mode-links .is-locked{opacity:.55}.journey .chapter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:30px}.chapter-tabs button{border:1px solid #b9c9a944;color:#bdd0ad;background:transparent;border-radius:4px;padding:7px 12px;font-size:11px}.chapter-tabs button.active{background:#b5cb98;color:#193d2a}.route .node button{background:none;border:0;color:inherit;padding:0;text-align:left}.route .node.current .circle{animation:soft-glow 3s infinite}.journey-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}.journey-bottom .primary{margin-top:32px}.journey-footer{line-height:1.8}.dialogue{padding-top:60px;padding-bottom:45px}.dialogue-art{width:38%;max-width:430px;align-self:center;flex-shrink:0}.dialogue-copy{max-width:600px}.speech{min-height:140px}.dialogue .topline .quiet{font-size:11px}.dialogue-stage-name{color:#90ae92;letter-spacing:2px;font-size:11px}.dialogue-step{font-size:11px;color:#819f85}.story-hud{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px}.story-hud .metrics{width:min(540px,90%)}.story-hud .metric:first-child b{color:#abe3bd}.battle{padding:24px 35px 20px;min-height:min(680px,calc(100dvh - 160px));position:relative;overflow:hidden}.battle .target-area{margin-top:30px}.battle .target-label{font-size:11px;color:#91b399;letter-spacing:2px}.target-word{display:flex;justify-content:center;gap:6px;align-items:center;min-height:85px;margin:12px auto;color:#f6ebc8;font:52px Georgia,serif;letter-spacing:3px}.target-word span{padding-bottom:6px;border-bottom:2px solid transparent}.target-word .done{color:#72af94}.target-word .current{border-bottom-color:#d5dfa8;color:#fff5cf;background:#b5d69c12}.target-word .space-char{font-size:30px;min-width:65px}.target-word .shift-hint{font:16px 'PingFang TC',serif;color:#b0c39c;border:1px solid #acc69666;border-radius:5px;padding:8px 12px;margin-right:8px}.story-actors{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:60px;padding:0 8%;position:relative;min-height:240px}.actor-wrap{width:245px;height:245px;position:relative;flex-shrink:0;isolation:isolate}.actor-wrap:after{content:'';width:65%;height:16px;position:absolute;bottom:0;left:17.5%;background:#01151199;border-radius:50%;filter:blur(7px);z-index:-1}.actor-caption{position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-size:10px;color:#789c83}.sprite-art{width:100%;height:100%;background-repeat:no-repeat;image-rendering:pixelated;background-position:0 0;transform-origin:bottom center}.sprite-fallback{display:grid;place-items:center;font-size:12px;color:#99b08b}.battle.wrong .hero-actor{animation:recoil .3s ease-out}.battle.correct .hero-actor{animation:strike .32s ease-out}.battle.guarded .hero-actor{filter:drop-shadow(0 0 8px #9cddda)}.battle.wrong .enemy-actor{animation:counter .3s ease-out}.battle.correct .enemy-actor{animation:enemy-hit .28s ease-out}.combat-fx{position:absolute;pointer-events:none;z-index:5}.slash-fx{right:14%;bottom:160px;width:170px;height:12px;background:linear-gradient(90deg,transparent,#e8efd2,#b1e7cd,transparent);box-shadow:0 0 20px #b1e7cd66;transform:rotate(-35deg);animation:slash .4s ease-out forwards}.guard-fx{left:15%;bottom:95px;width:160px;height:160px;border:2px solid #a8d9d7;border-radius:50%;animation:guard .4s ease-out forwards}.story-message{margin:28px 0 12px;min-height:24px;font-size:13px;color:#b7d1aa;text-align:center;letter-spacing:1px}.battle.wrong .story-message{color:#e8ba9f}.keyboard-hint{display:flex;justify-content:center;align-items:center;gap:5px;margin:8px 0 0}.keyboard-hint kbd{font-family:Georgia,serif;font-size:13px;min-width:29px;height:27px;display:grid;place-items:center;border:1px solid #9ebd9644;border-radius:4px;color:#74967c;background:#09251e55}.keyboard-hint .lit{color:#173a2a;background:#c0d69d;border-color:#e1e8c5;box-shadow:0 0 12px #bcd59633}.keyboard-hint .anchor{border-color:#91b697;color:#acc6a5}.battle-help-row{display:flex;justify-content:center;gap:12px;font-size:11px;color:#739a80;margin-top:10px}.text-link{background:none;border:0;color:#9db89a;font-size:11px;padding:4px;text-decoration:underline;text-underline-offset:4px}.no-keyboard{display:none;color:#a9ba99;font-size:11px;text-align:center;padding:8px}.result{flex-direction:column;align-items:center;justify-content:center;padding:55px 6%;text-align:center}.result h1{font-family:Wuxia,serif;color:#efe2b4;font-size:40px;font-weight:400;line-height:1.5;margin:14px 0}.result .metrics{max-width:550px;width:100%;margin:28px 0}.result .metric b{font-size:42px}.result p{color:#b8cbaa;font-size:14px;line-height:1.9;max-width:540px}.result .reward-note{padding:14px 25px;border:1px solid #d2c28744;color:#e3d5a5;background:#c0bd7420;border-radius:7px;margin-bottom:22px}.result .result-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.result details{margin-top:24px;max-width:560px;width:100%;font-size:12px;color:#91ae93;line-height:1.9}.result summary{cursor:pointer}.wardrobe .outfit-preview{width:34%;max-width:350px}.wardrobe .outfit-options{grid-template-columns:repeat(5,1fr)}.outfit-card[aria-pressed=true]{border-color:#e0d7a3;background:#35583e;color:#ece4bb}.outfit-card .outfit-icon{width:100%;height:auto;aspect-ratio:1;margin-bottom:5px;filter:drop-shadow(0 4px 4px #0003)}.outfit-card.locked .outfit-icon{filter:brightness(.5) saturate(.3)}.wardrobe .outfit-caption{min-height:30px}.challenges{padding:60px 6%;flex-direction:column}.challenge-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.mode-picker{display:flex;gap:7px;margin:15px 0 28px;flex-wrap:wrap}.mode-picker button{border:1px solid #aec49d44;color:#b6caa7;background:none;border-radius:5px;padding:8px 13px;font-size:12px}.mode-picker button.active{color:#173f2a;background:#c7d9a5}.challenge-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.challenge-card{overflow:hidden;border:1px solid #b6c69b33;border-radius:9px;background:#0b241c88}.challenge-card img{width:100%;height:92px;object-fit:cover;opacity:.7}.challenge-card-body{padding:14px}.challenge-card .num{color:#a4b686;font-size:10px;letter-spacing:2px}.challenge-card h3{font:21px Wuxia,serif;color:#e2d8b0;margin:12px 0}.challenge-card p{font-size:11px;line-height:1.8;color:#94b08e;min-height:40px}.challenge-card button{width:100%;padding:8px 10px;min-height:40px;font-size:12px}.legacy-wrap{position:relative;flex:1;min-height:620px;background:#0b201d;border:1px solid #9fbc8d33;border-radius:12px;overflow:hidden}.legacy-wrap iframe{width:100%;height:100%;min-height:620px;border:0;position:absolute;inset:0}.legacy-wait{display:grid;place-items:center;position:absolute;inset:0;color:#bbccad;z-index:2;background:#0b201d}.legacy-back{position:absolute;left:14px;bottom:12px;z-index:4;font-size:11px;background:#0b201de8}.boss-panel{display:flex;align-items:center;justify-content:space-between;padding:70px 9%;gap:40px}.boss-panel h1{font:42px Wuxia,serif;color:#ecd7aa;margin:14px 0}.boss-panel p{font-size:15px;line-height:1.9;color:#b1c0a8;max-width:430px}.boss-panel .boss-art{width:300px;height:300px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 40px #c7806b33)}.boss-panel .locked-emblem{font-size:110px;color:#aaa674;opacity:.4;text-align:center;width:260px}.account{padding:65px 8%;flex-direction:column;align-items:center;justify-content:center}.account form{width:min(100%,380px);text-align:left;margin:20px 0}.account input{width:100%;background:#071c1b;color:#ede8cb;border:1px solid #94ad8a66;border-radius:5px;font-size:16px;padding:10px 13px;margin:9px 0}.account .storage-status{font-size:12px;color:#b7cba7;margin:10px 0}.account .small-actions{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-top:24px}.account .danger{color:#d1ac91}.leaderboard{padding:55px 7%;flex-direction:column}.leaderboard table{width:100%;border-collapse:collapse;font-size:14px;margin:20px 0}.leaderboard th,.leaderboard td{border-bottom:1px solid #b8c79c22;padding:14px 10px;text-align:left}.leaderboard th{font-size:11px;color:#829d82;font-weight:400}.leaderboard td{color:#d1d8b6}.leaderboard .empty-state{padding:50px 15px;text-align:center;color:#9cb18f;line-height:2;font-size:14px}.settings-panel{padding:60px 8%;flex-direction:column}.settings-panel h1{font:34px Wuxia,serif;color:#eee1b7}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:600px;width:100%;padding:17px 0;border-bottom:1px solid #b1c59722;font-size:14px}.setting-row small{display:block;font-size:11px;color:#799a80;margin-top:6px}.toggle{border:1px solid #b3c99b55;color:#b8cfa9;background:#163e2b;border-radius:5px;min-width:70px;padding:8px 12px;font-size:12px}.settings-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.pause-menu{display:flex;flex-direction:column;gap:10px}dialog{background:#122f29;color:#d9e5c8;border:1px solid #c7d3a966;border-radius:12px;padding:28px;max-width:min(480px,90vw);width:100%;box-shadow:0 25px 80px #0006}dialog::backdrop{background:#061914c9;backdrop-filter:blur(5px)}dialog h2{font:28px Wuxia,serif;color:#e7d8a4;letter-spacing:2px;margin:0 0 16px}dialog p{font-size:14px;line-height:1.9;color:#b4c8a8}dialog .modal-actions{display:flex;gap:10px;margin-top:23px;justify-content:flex-end;flex-wrap:wrap}dialog .primary,dialog .secondary{font-size:13px}.demo-key{width:85px;height:85px;border:1px solid #c3d6a9;border-radius:8px;color:#f2e9ca;margin:22px auto;display:grid;place-items:center;font:48px Georgia,serif;animation:key-demo 2s ease-in-out infinite}.demo-word{display:block;font:28px Georgia,serif;color:#ecdcae;text-align:center;margin:20px}.reward-art{width:180px;margin:auto}body[data-view=legacy] .world-header{height:55px}body[data-view=legacy] #screen{padding:12px 0}body[data-view=legacy] .world-footer{display:none}body.reduced *,body.reduced *::before,body.reduced *::after{animation:none!important;transition:none!important}body.high-contrast{filter:contrast(1.2)}
@keyframes soft-glow{50%{box-shadow:0 0 0 10px #cfdfac18}}@keyframes slash{0%{opacity:0;transform:translate(-15px,20px) rotate(-35deg) scaleX(.2)}40%{opacity:1}100%{opacity:0;transform:translate(15px,-20px) rotate(-35deg) scaleX(1.3)}}@keyframes guard{from{opacity:1;transform:scale(.6)}to{opacity:0;transform:scale(1.25)}}@keyframes counter{45%{transform:translateX(-20px)}}@keyframes enemy-hit{40%{transform:translateX(12px);filter:brightness(1.6)}}@keyframes key-demo{0%,30%,100%{background:#172e25;transform:translateY(0)}50%,65%{background:#c3d6a9;color:#163625;transform:translateY(4px)}}
@media(min-width:1500px){.frame,.view{min-height:700px}}
@media(max-width:1000px){#app-shell{padding:0 18px}.challenge-grid{grid-template-columns:repeat(3,1fr)}.home{padding-left:7%;padding-right:5%}.home .hero-figure,.hero-figure .portrait-art{width:270px}.actor-wrap{width:210px;height:210px}.route{gap:14px}.wardrobe{gap:25px}.challenge-card p{min-height:30px}}
@media(max-width:700px){#app-shell{padding:0 12px}.world-header{height:70px}.brand-button{font-size:21px}.world-header nav{gap:6px}.header-button{font-size:11px;padding:7px 9px}#save-status{display:none}.world-footer{font-size:9px}.world-footer button{font-size:9px}#screen{padding:12px 0;justify-content:flex-start}.frame,.view{min-height:calc(100dvh - 140px)}.entry{padding:35px 23px;grid-template-columns:1fr;gap:10px}.entry-copy h1{font-size:32px}.entry-copy p{font-size:14px}.entry-portrait{max-width:210px;order:-1;max-height:180px;overflow:hidden}.entry-portrait .portrait-art{width:210px;height:210px}.entry form{margin-top:20px}.home{padding:55px 24px 38px}.home .hero-figure{position:relative;opacity:1;bottom:auto;right:auto;width:180px;height:180px;align-self:center;order:-1;pointer-events:none}.hero-figure .portrait-art{width:210px}.hero-figure .portrait-flag{display:none}.home .home-copy{width:100%}.home .headline{font-size:30px}.home .mode-links{max-width:none;flex-direction:row}.home .mode-links button{padding:9px 12px;min-height:42px}.home .home-copy p{margin-bottom:20px}.journey{padding:30px 23px}.journey .chapter-tabs{gap:5px;margin-bottom:22px}.chapter-tabs button{padding:7px 10px;font-size:10px}.journey .route{grid-template-columns:1fr 1fr;gap:26px 14px}.journey-bottom{flex-direction:column;align-items:flex-start;gap:5px}.journey-footer{margin-top:8px}.dialogue{padding:28px 23px;gap:5px;align-items:center;justify-content:center}.dialogue-art{max-width:280px;width:85%;align-self:center}.dialogue-copy{width:100%}.dialogue .speech{font-size:25px;line-height:1.7;min-height:100px}.dialogue .speaker{margin:12px 0}.dialogue .topline{position:static;align-self:stretch;margin-bottom:5px}.battle{padding:18px 14px;min-height:calc(100dvh - 140px)}.story-hud{gap:8px}.story-hud .metrics{width:95%}.story-hud .metric b{font-size:28px}.battle .target-area{margin-top:25px}.target-word{font-size:40px;min-height:75px;gap:3px}.story-actors{padding:0 2%;gap:0;min-height:200px}.actor-wrap{width:155px;height:155px}.actor-caption{font-size:9px;bottom:-12px}.story-message{font-size:12px;min-height:36px;margin:22px 0 6px;line-height:1.7}.keyboard-hint{gap:3px}.keyboard-hint kbd{min-width:24px;font-size:12px;height:25px}.slash-fx{right:6%;bottom:135px;width:120px}.guard-fx{left:3%;bottom:100px;width:125px;height:125px}.no-keyboard{display:block}.wardrobe{padding:35px 22px;gap:10px}.wardrobe .outfit-preview{width:220px}.wardrobe .outfit-options{gap:5px}.outfit-card{padding:5px 3px}.wardrobe .outfit-body{width:100%}.wardrobe .section-title{font-size:28px}.result{padding:45px 24px}.result h1{font-size:32px}.result .metric b{font-size:32px}.result .result-actions{flex-direction:column;width:100%}.result .result-actions button{width:100%}.challenge-head{display:block}.challenges{padding:30px 23px}.challenge-grid{grid-template-columns:1fr 1fr;gap:10px}.challenge-card h3{font-size:20px}.challenge-card-body{padding:12px}.challenge-card img{height:70px}.boss-panel{padding:35px 25px;flex-direction:column}.boss-panel h1{font-size:33px}.boss-panel .boss-art{width:220px;height:220px;order:-1}.boss-panel .locked-emblem{width:auto;font-size:75px;order:-1}.account{padding:35px 24px}.account .section-title{font-size:29px}.account-actions{width:100%}.account-actions button{width:100%}.leaderboard{padding:30px 20px}.leaderboard table{font-size:12px}.leaderboard td,.leaderboard th{padding:12px 6px}.settings-panel{padding:30px 23px}.settings-panel h1{font-size:29px}.legacy-wrap,.legacy-wrap iframe{min-height:calc(100dvh - 100px)}dialog{padding:24px}.modal-actions button{flex:1}.key-target{width:76px;height:76px;font-size:46px}}
@media(max-height:620px) and (min-width:701px){.world-header{height:62px}#screen{padding:10px 0}.frame,.view{min-height:calc(100dvh - 120px)}.entry{padding:25px 7%}.entry-portrait{max-width:250px}.home{padding:35px 7%}.home .headline{font-size:34px}.home .hero-figure,.hero-figure .portrait-art{width:250px}.story-actors{min-height:135px}.actor-wrap{width:150px;height:150px}.battle .target-area{margin-top:8px}.target-word{min-height:45px;margin:4px;font-size:34px}.story-message{margin:14px 0 5px}.battle{padding:14px 25px}.dialogue{padding:25px 7%}.dialogue-art{max-width:260px}.speech{font-size:28px;min-height:90px}.wardrobe{padding:30px 7%}.wardrobe .outfit-preview{max-width:230px}.journey{padding:30px 7%}.legacy-wrap,.legacy-wrap iframe{min-height:calc(100dvh - 80px)}}
.frame:before{background:linear-gradient(90deg,#081e21eb,#112e2980),var(--scene-image,url('../assets/backgrounds/battle_forest_pixel.jpg')) center/cover}
.route .node.completed .circle{background:#456749;color:#dce4b5}.route .node.completed h3{color:#adc7a6}
.view.entry{display:grid}
body:is([data-view=battle],[data-view=dialogue],[data-view=legacy]) .world-header nav{display:none}
.art-failed{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:200px;font-size:12px;color:#a7bb97}.portrait-art[data-slow=true]:after{content:'圖片載入較慢…';display:block;text-align:center;color:#9eb38f;font-size:11px;padding-top:45%}
.home .hero-figure .portrait-art{width:min(100%,calc(43vh * var(--portrait-aspect,1)));margin:auto}.dialogue-art .portrait-art{width:min(100%,calc(45vh * var(--portrait-aspect,1)));margin:auto}.wardrobe .outfit-preview .portrait-art{width:min(100%,calc(48vh * var(--portrait-aspect,1)));margin:auto}
@media(max-width:700px){.home .hero-figure .portrait-art{width:calc(180px * var(--portrait-aspect,1));flex:none}.dialogue-art .portrait-art{width:min(100%,calc(240px * var(--portrait-aspect,1)))}.wardrobe .outfit-preview .portrait-art{width:min(100%,calc(280px * var(--portrait-aspect,1)))}}
