:root{color-scheme:dark;--bg:#101b24;--line:#b4c3cc20;--text:#e8e8d8;--muted:#80929e;--gold:#eccb79;--jade:#8fd6c8;font-family:"Microsoft YaHei","PingFang SC",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{border:0;background:none}button:hover{color:#fff}button:disabled{opacity:.4;cursor:wait}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app{max-width:1700px;margin:auto;padding:0 38px}header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;font-size:25px;font-weight:700;letter-spacing:4px}.brand small{display:block;font:8px monospace;letter-spacing:2px;color:#8da1ad;margin-top:7px}.brand .dot{color:var(--gold);padding:0 3px}.seal{border:1px solid #c1a36590;color:var(--gold);border-radius:7px 2px;width:37px;height:43px;display:grid;place-items:center;font:24px KaiTi,serif;transform:rotate(-5deg)}.header-note{display:flex;align-items:center;gap:9px;font-size:11px;color:#acb6b9;letter-spacing:1px}.header-note i,footer p>i{width:5px;height:5px;background:var(--jade);border-radius:50%;box-shadow:0 0 10px #8fd6c835}.header-note span{color:#627b8b;font-size:9px;border-left:1px solid var(--line);padding-left:12px;margin-left:5px}.tools{display:flex;gap:6px}.tools button{font-size:11px;padding:9px 12px;color:#9babb3;border-radius:4px}.tools button:hover,.tools button[aria-pressed=true]{background:#ffffff08;color:var(--gold)}.tools .outline{border:1px solid #a4b5bc30;margin-left:5px}.arena{height:min(68vh,810px);min-height:480px;position:relative;border:1px solid #b8c6cd24;border-radius:9px;overflow:hidden;background:#233844}#game{display:block;width:100%;height:100%;outline:none;touch-action:none;cursor:crosshair}.hud{position:absolute;left:32px;right:32px;top:29px;display:grid;grid-template-columns:1fr 108px 1fr;gap:22px;pointer-events:none}.name{display:flex;align-items:center;gap:10px;margin-bottom:11px;font-size:11px;font-family:monospace}.name strong{font:700 20px "Microsoft YaHei",sans-serif;letter-spacing:2px}.tag{font:8px monospace;letter-spacing:1px;border:1px solid #f1cf7b45;color:#e8cf91;padding:4px 5px}.p1 .name>span:last-child{margin-left:auto;color:#c6c8b9}.p2 .name>span:first-child{margin-right:auto;color:#afc8ca}.p2 .tag{border-color:#91d6d24a;color:#91d6d2}.hp{height:13px;position:relative;background:#0c171e80;border:1px solid #b2c4c62a;padding:2px;box-shadow:0 4px 15px #0003;overflow:hidden}.hp b,.hp i{display:block;position:absolute;inset:2px;transform-origin:left;transition:transform .12s ease-out;background:linear-gradient(90deg,#b58a3f,#f0d890);box-shadow:inset 0 1px #fff5}.hp i{background:#fff0cc;transition:transform .55s ease .2s}.p2 .hp b{background:linear-gradient(90deg,#73a7aa,#b5e3dc)}.p2 .hp b,.p2 .hp i{transform-origin:right}.meter{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:#a7b7b9;font-size:9px}.round{text-align:center;display:flex;flex-direction:column;align-items:center;color:#c5b98e;gap:2px;padding-top:1px}.round>span{font:7px monospace;letter-spacing:2px;color:#8c9b9e}.round b{font:38px Georgia;line-height:38px}.round small{font-size:8px;letter-spacing:3px;color:#a8b5b4}.stage-name{position:absolute;left:33px;top:130px;display:flex;align-items:center;gap:10px;font-size:10px;color:#a4b8bb;letter-spacing:2px;pointer-events:none}.stage-name>span{font:9px monospace;color:#7b979f}.stage-name i{width:16px;height:1px;background:#8aa1a35c}.stage-name small{font-size:8px;letter-spacing:1px;color:#80979e;margin-left:6px}.feedback{position:absolute;left:33px;top:36%;pointer-events:none;width:240px;transition:opacity .2s}.feedback>span{font-size:9px;letter-spacing:2px;color:#b4bcaa}.feedback strong{display:block;margin-top:13px;font-size:26px;letter-spacing:4px;font-weight:400;color:#ede9cf;text-shadow:0 3px 16px #0005}.feedback p{font-size:9px;color:#8ca1a4;line-height:1.8;letter-spacing:.5px;margin-top:11px}.charge{position:absolute;bottom:105px;left:50%;transform:translateX(-50%);width:230px;background:#0c2735dd;border:1px solid #9be9dd50;border-radius:7px;padding:13px 16px;pointer-events:none;box-shadow:0 0 35px #6fd6d214}.charge>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:#bcf3e9}.charge b{font:11px monospace}.charge-track{height:4px;background:#8adbc42a;margin-top:10px;overflow:hidden}.charge-track i{display:block;width:100%;height:100%;background:#b8f4de;transform-origin:left;box-shadow:0 0 12px #e5ffde}.charge p{font-size:9px;color:#84b7b6;margin:9px 0 0}.metrics{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;font-size:9px;white-space:nowrap;color:#859fa6;pointer-events:none}.metrics b{font:11px monospace;color:#d4d9bf;margin-left:6px}.metrics>i{height:10px;width:1px;background:#b5c5bd25}.moves{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-top:14px}.moves .move-card{position:relative;text-align:left;padding:16px 13px;display:flex;gap:11px;align-items:center;border:1px solid var(--line);border-radius:5px;background:#17242e;overflow:hidden}.moves .move-card>span{font:18px Georgia;color:#5d7685}.moves strong{display:block;font-size:12px;letter-spacing:1px;font-weight:500;color:#bdc7c8}.moves small{display:block;font-size:8px;color:#627f8f;margin-top:7px;letter-spacing:.4px}.moves .move-card>i{position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .1s}.moves .move-card.active{border-color:#e3c4788a;background:#2b302d}.moves .move-card.active strong,.moves .move-card.active>span{color:var(--gold)}.moves .move-card.active small{color:#b3ab82}.moves .skill>span,.moves .skill strong{color:#9bc9bd}.moves .finish>span,.moves .finish strong{color:#cfaf83}.moves .move-card.queued{border-color:#b3caad66}.controls{padding:19px 0;display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line)}.keys{display:flex;gap:13px;align-items:center;flex-wrap:wrap;font-size:9px;color:#8a9ca5}.keys>span{display:flex;align-items:center;gap:4px}kbd{font:9px inherit;padding:4px 5px;border:1px solid #9ab0ba3a;background:#1b2b36;border-radius:3px;min-width:20px;text-align:center;color:#bcc7cb;box-shadow:0 2px #07101760}.mouse b{font-size:9px;color:#cfc8ab;font-weight:500;border-bottom:1px solid #b3a7805c;padding-bottom:2px}.actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.actions button{font-size:10px;color:#9cabb2;padding:9px 10px;border-radius:4px}.actions button[aria-pressed=true]{background:#8fd6c816;color:#9cded0}.actions .primary{background:#e6c77e;color:#28322f;padding:11px 17px;font-weight:700}.primary span{margin-left:15px}.primary:hover{background:#ffe0a1}footer{display:flex;align-items:center;justify-content:space-between;padding:17px 0 23px;font-size:8px;color:#5a7584;gap:20px}footer p{display:flex;align-items:center;gap:9px;margin:0;color:#a1adae}footer p span{color:#5a7584;margin-left:10px}dialog{background:#162630;border:1px solid #68878e6b;border-radius:9px;color:#cad7d5;max-width:540px;padding:36px;box-shadow:0 20px 100px #0008}dialog::backdrop{background:#06131cbb;backdrop-filter:blur(5px)}dialog h2{font-size:26px;font-weight:500;letter-spacing:1px;color:#e6dcba;margin:19px 0}dialog p{font-size:12px;line-height:1.9;color:#94abb3}dialog b{color:#c8d5d4;font-weight:500}dialog .fine{font-size:10px;color:#668594;border-top:1px solid var(--line);padding-top:15px}.eyebrow{font:9px monospace;letter-spacing:2px;color:#bdaf7b}#help-close{position:absolute;right:14px;top:10px;font-size:24px;color:#9cb1b8}.loading,.result{position:absolute;inset:0;background:#132530ed;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:5}.loading-mark{color:#e6c77e;border:1px solid #e6c77e77;font:45px KaiTi,serif;padding:17px 23px;border-radius:8px 2px;animation:breathe 1.5s infinite}.loading h1{font-weight:400;font-size:19px;letter-spacing:4px;margin-top:25px}.loading p{font-size:11px;color:#829da8}.result{background:#102330d9;backdrop-filter:blur(4px)}.result>span{font:10px monospace;letter-spacing:4px;color:#acb9a5}.result h2{font-size:38px;font-weight:400;letter-spacing:4px;color:#ead397}.result p{font-size:12px;color:#8da8ac}.result button{margin-top:16px;background:#e6c77e;color:#26372f;padding:12px 28px;border-radius:5px}.touch-controls{display:none;position:absolute;bottom:42px;left:20px;right:20px;justify-content:space-between}.touch-controls>div{display:flex;gap:8px}.touch-controls button{width:42px;height:42px;border:1px solid #c0dfda60;border-radius:50%;background:#1126339c;touch-action:none;color:#d2ded3;font-size:12px}@keyframes breathe{50%{opacity:.5;transform:translateY(-5px)}}@media(min-width:1600px){.app{padding:0 50px}.arena{height:70vh}header{height:100px}}@media(max-width:1200px){.app{padding:0 22px}.header-note{display:none}.keys{gap:9px}.controls{flex-wrap:wrap;gap:12px}.feedback{width:200px}.feedback strong{font-size:22px}.feedback p{max-width:155px}.moves .move-card{padding:14px 9px;gap:7px}.moves strong{font-size:11px}.moves small{font-size:7px}}@media(max-width:760px){.app{padding:0 10px}header{height:69px;gap:8px}.brand{font-size:18px;letter-spacing:2px;gap:7px}.brand small{font-size:6px}.seal{width:27px;height:34px;font-size:20px}.tools{gap:0}.tools button{font-size:9px;padding:8px}.tools .outline{margin:0}.arena{height:62vh;min-height:440px}.hud{top:20px;left:15px;right:15px;gap:9px;grid-template-columns:1fr 55px 1fr}.name{gap:5px}.name strong{font-size:14px;letter-spacing:0}.name>span:not(.tag){display:none}.tag{font-size:6px}.hp{height:10px}.meter{font-size:7px}.meter span:last-child{display:none}.round b{font-size:27px}.round>span{font-size:5px;letter-spacing:1px}.round small{font-size:7px;letter-spacing:1px}.stage-name{left:17px;top:103px;font-size:8px;gap:7px}.stage-name small{display:none}.feedback{top:30%;left:17px;width:140px}.feedback strong{font-size:16px;letter-spacing:2px}.feedback>span{font-size:7px;letter-spacing:1px}.feedback p{display:none}.metrics{font-size:7px;gap:10px;bottom:14px}.metrics b{font-size:8px}.moves{grid-template-columns:repeat(3,1fr);gap:6px;margin-top:9px}.moves .move-card{padding:10px;gap:10px}.moves .move-card>span{font-size:16px}.moves strong{font-size:10px}.moves small{font-size:7px;margin-top:4px}.controls{justify-content:center;padding:13px 0}.keys{justify-content:center;font-size:8px}.keys .mouse{font-size:8px}.actions{gap:4px}.actions button{font-size:9px}.touch-controls{display:flex}.charge{bottom:115px;width:185px;padding:10px}.charge p{font-size:8px}footer{padding:12px 0;font-size:7px}footer>span,footer p span{display:none}dialog{margin:auto 16px;padding:27px}.result h2{font-size:24px}.result>span{font-size:8px}}@media(max-height:600px) and (min-width:760px){header{height:58px}.arena{min-height:340px;height:72vh}.feedback{top:39%}.feedback strong{font-size:19px}.hud{top:18px}.stage-name{top:105px}.moves .move-card{padding:10px}.moves{margin-top:8px}}
.counter-tip{position:absolute;top:25%;left:50%;transform:translateX(-50%);padding:10px 18px;border:1px solid #e5ce8399;border-radius:5px;color:#fff1bd;background:#152d36e8;font-size:13px;white-space:nowrap;pointer-events:none;box-shadow:0 0 25px #dec68120}.actions{flex-wrap:wrap;justify-content:flex-end}.controls{flex-wrap:wrap}.actions button{border:1px solid #a8c4bd25}@media(max-width:760px){.counter-tip{font-size:10px;padding:8px 10px;top:26%}.actions{justify-content:center}.controls{gap:10px}}

.selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:5px 0}.selection>div{display:flex;align-items:center;gap:8px}.selection span,.selection p{font-size:10px;color:#93a9b3}.selection button{padding:9px 14px;border:1px solid #afc5bd33;border-radius:4px;font-size:11px}.selection button:hover{background:#e6c77e22}.feedback{top:150px;width:310px}.feedback strong{font-size:21px;margin-top:7px}.feedback p{margin-top:6px}.stage-name{display:none}.arena{aspect-ratio:16/9;height:auto;min-height:0;max-height:none}.charge{bottom:40px;left:auto;right:18px;transform:none}.touch-controls{display:none!important;pointer-events:none}.touch-device .touch-controls{display:flex!important}.touch-controls button,.touch-controls #joystick{pointer-events:auto}.touch-actions{display:grid!important;grid-template-columns:repeat(3,48px);align-self:end}.touch-controls{bottom:25px;align-items:end}.touch-controls button{width:48px;height:48px;background:#142c40bb}.touch-controls #joystick{position:relative;width:112px;height:112px;border-radius:50%;border:1px solid #cfdfd977;background:#13334788;touch-action:none;display:grid;place-items:center}.touch-controls #stick-knob{display:block;width:44px;height:44px;border-radius:50%;background:#d9e2cc88;border:1px solid #e9ecd0}.arena:fullscreen{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;background:#101b24}.arena:fullscreen .feedback{display:none}.arena:fullscreen .hud{top:12px}.touch-device .metrics{display:none}.touch-device .feedback{display:none}.touch-device .charge{bottom:140px;width:190px}.touch-device .keys{display:none}
@media(max-width:760px){.arena{height:auto;min-height:0;aspect-ratio:16/10}.app{padding:0 6px}.hud{top:10px}.meter{display:none}.selection p{display:none}.selection{gap:5px}.selection button{padding:8px;font-size:10px}.selection span{font-size:8px}.touch-controls{left:12px;right:12px;bottom:12px}.touch-controls #joystick{width:90px;height:90px}.touch-controls button{width:38px;height:38px;font-size:10px}.touch-actions{grid-template-columns:repeat(3,38px)}.charge{font-size:8px}.touch-device .charge{bottom:100px}.feedback{display:none}}
@media(pointer:coarse) and (orientation:landscape){.arena{height:calc(100dvh - 63px);aspect-ratio:auto}.app{padding:0}header{height:58px;padding:0 14px}.hud{top:12px;left:20px;right:20px}.name{margin-bottom:5px}.meter{display:none}.touch-controls{bottom:18px}.touch-controls #joystick{width:105px;height:105px}.touch-controls button{width:45px;height:45px}.touch-actions{grid-template-columns:repeat(3,45px)}}

.review-touch .app{width:var(--review-width);max-width:100%;padding:0 6px}.review-touch .arena{height:430px;aspect-ratio:auto}.review-touch .hud{left:12px;right:12px;grid-template-columns:1fr 40px 1fr;gap:8px}.review-touch .name strong{font-size:13px}.review-touch .name>span:not(.tag){display:none}.review-touch .meter,.review-touch .header-note,.review-touch .brand small,.review-touch .selection p{display:none}.review-touch .tools button{font-size:8px;padding:6px}.review-touch header{height:60px;gap:4px}.review-touch .brand{font-size:15px;letter-spacing:0}.review-touch .seal{display:none}.review-touch .moves{grid-template-columns:repeat(3,1fr)}.review-touch .controls{justify-content:center}.review-touch .actions{flex-wrap:wrap;white-space:normal}.review-touch .selection button{padding:8px;font-size:10px}.review-touch .selection{flex-wrap:wrap}

#arena-fullscreen{display:none;position:absolute;right:14px;top:90px;width:33px;height:33px;border:1px solid #cadad94a;border-radius:5px;background:#132e40bb;z-index:3}.touch-device #arena-fullscreen,.arena:fullscreen #arena-fullscreen{display:block}.touch-actions button[data-action="attack"]{background:#c2a050bb;border-color:#ecd593}.touch-actions #touch-charge{background:#548f9dbb}.touch-actions button[data-action="ultimate"]{font-size:10px;grid-column:3}.touch-device .arena:fullscreen .touch-controls{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}

.arena.fill-screen{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh!important;max-height:none;border-radius:0}.arena.fill-screen .feedback{display:none}.arena.fill-screen #arena-fullscreen{display:block}
/* Sunny milk-candy park. Layout and touch controls retain their tested geometry. */
:root{color-scheme:light;--bg:#f9f6ed;--text:#3c5756;--muted:#708681;--gold:#b77d28;--jade:#4eaa97;--line:#668e852b}
body{background:linear-gradient(160deg,#fff9ec,#edf7f2)}
button:hover{color:#9b6524}.brand small,.header-note,.tools button,.selection span,.selection p,.keys,footer,footer p,footer p span{color:#6b8580}.header-note span{color:#658d82}.seal{background:#ffe6a6;color:#9f7629;border-color:#e1c47f}.tools button:hover,.tools button[aria-pressed=true]{background:#f0e6c9;color:#916d25}
.arena{background:#d6efe5;border-color:#a2c9ba;box-shadow:0 12px 36px #587b6612}.hud{filter:drop-shadow(0 1px 1px #fff9)}.name strong{color:#345851}.tag,.p2 .tag{background:#ffffffe0;color:#5d8177;border-color:#a4c3b6}.p1 .name>span:last-child,.p2 .name>span:first-child,.meter,.round,.round>span,.round small{color:#4d746b}.hp{background:#d2cbb8;border-color:#fff8;box-shadow:0 2px 5px #7a9c6f20}.hp b{background:linear-gradient(90deg,#e1a52f,#ffce62)}.p2 .hp b{background:linear-gradient(90deg,#439f9c,#82d7c1)}
.feedback>span,.feedback p{color:#688c7e}.feedback strong{color:#4a7062;text-shadow:0 2px #fff8}.feedback{background:#fff9e833;border-radius:12px;padding:10px 12px}.metrics{color:#69816e}.metrics b{color:#426853}.charge{background:#fff8e8ef;border-color:#d5b76b;box-shadow:0 4px 25px #a9904020}.charge>div:first-child,.charge p{color:#7f6d32}.charge-track{background:#dfd9bb}.charge-track i{background:#e4ad40}.counter-tip{background:#fff8d8ed;color:#8c6224;border-color:#d8b166}
.moves .move-card{background:#fffdf5;border-color:#c4d6c9}.moves strong,.moves .skill strong{color:#426d62}.moves .move-card>span,.moves small{color:#8ca293}.moves .move-card.active{background:#fff0c4;border-color:#d7ac4f}.moves .move-card.active strong,.moves .move-card.active>span{color:#a57524}.moves .finish strong{color:#a7753e}.actions button,.selection button{color:#547b70}.actions button[aria-pressed=true]{background:#d5eadc;color:#397b64}.actions .primary{background:#efd180;color:#64532a}kbd{background:#fffdf5;color:#5f7d6c;border-color:#b9cbbd;box-shadow:0 2px #b8c8af55}.mouse b{color:#7b7049}.tools .outline{border-color:#b9cdbb}
dialog{background:#fffdf2;color:#476f62;border-color:#b2caba}dialog h2,dialog b{color:#486a57}dialog p,dialog .fine{color:#678573}.loading,.result{background:#f1f8e9ed}.loading-mark{color:#b78a30;border-color:#dec17e}.loading p,.result p{color:#6d8c79}.result h2{color:#8c7437}.touch-controls button{background:#fff9e5d9;color:#496d61;border-color:#93b7a6}.touch-controls #joystick{background:#fff8df85;border-color:#75a48d}.touch-controls #stick-knob{background:#9ac5a6b8;border-color:#f9fff2}.touch-actions button[data-action="attack"]{background:#edc761de}.touch-actions #touch-charge{background:#97cfc4db}#arena-fullscreen{background:#fff8dbcf;color:#527f6b;border-color:#9dbcac}
@media(max-width:760px){.name>span:not(.tag){display:inline!important;font-size:8px}.name strong{font-size:12px}.tag{display:none}.hud{grid-template-columns:1fr 38px 1fr;gap:6px}.p2 .name{justify-content:flex-end}}
