@charset "UTF-8";
:root{--bg:#171420;--panel:#211d2b;--panel2:#282231;--line:#38313f;--ink:#f8efdf;--muted:#a49aaf;--orange:#f5ac64;--orange2:#ffcb8b;--mint:#a5d6bd;--purple:#ad94d8;--red:#ec8b8f;--radius:20px;color-scheme:dark;font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%239b8eaa' opacity='.4' d='M0 0h180v180H0z' filter='url(%23n)'/%3E%3C/svg%3E")}
#lobby{overflow-x:clip}
button,input{font:inherit}button{cursor:pointer;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.43}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--orange);outline-offset:5px}button{touch-action:manipulation}button svg,svg.icon{width:22px;height:22px}svg{width:24px;height:24px;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.3}button{transition:background .18s,transform .18s,border-color .18s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:fixed;top:-100px;left:20px;padding:12px;background:var(--orange);color:var(--bg);z-index:99}.skip-link:focus{top:12px}
.site-header{max-width:1320px;margin:auto;min-height:100px;padding:20px 48px;display:flex;align-items:center;gap:48px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;font-size:24px;letter-spacing:3px;font-weight:850;line-height:1.1}.brand small{display:block;font-family:ui-monospace,monospace;font-size:9px;font-weight:500;letter-spacing:3.5px;margin-top:7px;color:var(--muted)}.brand-mark{width:46px;height:48px;display:grid;place-items:center;background:var(--orange);border-radius:14px 14px 18px 12px;transform:rotate(-7deg);color:var(--ink)}.brand-mark svg{width:32px;height:32px;transform:rotate(7deg)}.main-nav{display:flex;gap:27px;align-self:stretch}.nav-link{font-size:13px;color:var(--muted);position:relative;white-space:nowrap;padding:6px 0}.nav-link.active{color:var(--ink);font-weight:650}.nav-link.active:after{content:"";position:absolute;bottom:-21px;left:20%;right:20%;height:3px;border-radius:4px;background:var(--orange)}.nav-link:hover{color:var(--orange)}.header-tools{margin-left:auto;display:flex;align-items:center;gap:12px}.wallet{display:flex;align-items:center;gap:8px;font-size:11px;background:#292432;border:1px solid var(--line);border-radius:30px;padding:8px 13px;white-space:nowrap}.wallet svg{color:var(--orange);width:18px;height:18px}.wallet b{font-family:ui-monospace,monospace;font-size:15px;color:var(--orange2)}.wallet>span{color:var(--muted)}.icon-btn{width:34px;height:36px;display:grid;place-items:center;border-radius:10px;color:var(--muted)}.icon-btn svg{width:18px;height:18px}.icon-btn:hover{background:var(--panel2);color:var(--ink)}
.page-shell{max-width:1320px;margin:auto;padding:0 48px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:402px;align-items:center;gap:28px;padding:30px 0 25px}.hero-copy{padding:14px 0 8px}.eyebrow{font-size:11px;letter-spacing:1.9px;display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:500}.live-dot{width:6px;height:6px;background:var(--mint);border-radius:50%;box-shadow:0 0 12px #a5d6bd40}.eyebrow-line{display:block;height:1px;width:50px;background:var(--line)}.hero h1{font-size:clamp(44px,4.65vw,66px);letter-spacing:-1.9px;line-height:1.21;margin:20px 0 21px;position:relative;width:max-content;font-weight:900}.hero h1>span{color:var(--orange)}.title-star{position:absolute;right:-51px;top:69px;width:32px;height:32px;color:var(--orange);transform:rotate(17deg)}.hero p{color:#b9aebe;font-size:14px;line-height:1.9;letter-spacing:.4px}.hero-tags{display:flex;gap:20px;margin-top:23px;color:#9b91a4;font-size:10px;letter-spacing:.3px}.hero-tags i{color:var(--orange);font-style:normal;font-size:14px;padding-right:4px}.hero-art{height:350px;position:relative;overflow:visible}.hero-art canvas{position:relative;width:100%;height:100%;z-index:2}.orbit{position:absolute;border:1px dashed #65546a57;border-radius:50%;transform:rotate(-16deg)}.orbit-one{width:84%;height:61%;left:8%;top:21%}.orbit-two{width:63%;height:85%;left:19%;top:10%;transform:rotate(31deg);border-style:solid;opacity:.35}.art-star{position:absolute;color:var(--orange);font-size:27px}.star-one{left:13%;top:20%;transform:rotate(-13deg)}.star-two{right:10%;top:59%;font-size:21px;color:var(--mint)}.art-dot{width:7px;height:7px;border-radius:50%;position:absolute;background:var(--purple)}.dot-one{top:29%;right:16%}.dot-two{left:11%;bottom:19%;width:4px;height:4px;background:var(--orange)}.speech-bubble{font-size:10px;letter-spacing:.5px;position:absolute;left:6%;top:4%;z-index:3;transform:rotate(-6deg);border:1px solid #5d4f69;background:#2b2436;padding:10px 15px;border-radius:12px 12px 0 12px;color:#ccb9d8}.art-label{position:absolute;bottom:13%;left:19%;transform:rotate(-5deg);background:#302639;border:1px solid #5b4568;border-radius:9px;box-shadow:0 7px 0 #100e1740;z-index:3;padding:8px 15px;display:flex;gap:12px;align-items:center;font-size:11px}.art-label>span{font-family:ui-monospace,monospace;color:var(--muted);font-size:9px}.art-label svg{width:12px;height:12px;color:#e9949d}.sticker{position:absolute;right:5%;top:18%;border-radius:50%;background:var(--orange);color:#3a2927;font-size:11px;line-height:1.25;font-weight:700;letter-spacing:1px;width:77px;height:77px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(17deg);z-index:3;outline:1px dashed #614338;outline-offset:-6px;box-shadow:0 6px 25px #0003}.sticker b{font-size:15px}
.adventure-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:20px}.play-card{background:linear-gradient(110deg,#292332,#211d2b);border:1px solid #46394c;border-radius:var(--radius);padding:24px 26px 0;overflow:hidden}.play-topline{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-kicker{font-size:9px;font-family:ui-monospace,monospace;letter-spacing:1.8px;color:var(--muted)}.version-badge{font-size:8px;letter-spacing:1.3px;padding:4px 8px;border:1px solid #514050;border-radius:6px;color:#b99aa8}.mode-tabs{display:flex;gap:5px;padding:4px;background:#19161f;border:1px solid #38303e;border-radius:10px;width:max-content;max-width:100%;margin-top:20px}.mode-tab{font-size:11px;padding:8px 11px;border-radius:6px;color:var(--muted);display:flex;align-items:center;gap:10px;white-space:nowrap}.mode-tab>span{font-family:ui-monospace,monospace;font-size:8px;opacity:.75}.mode-tab.selected{background:#4b3c3c;color:var(--orange2);box-shadow:0 1px 0 #76604d70}.mode-tab:hover{background:#342b3d}.play-body{display:flex;align-items:center;gap:25px;justify-content:space-between;padding:22px 0 24px}.play-body h2{font-size:21px;letter-spacing:-.4px}.play-body p{font-size:11px;line-height:1.9;color:#a89cae;max-width:350px;margin-top:9px}.difficulty{display:flex;align-items:center;gap:9px;font-size:9px;color:#a89cae;margin-top:16px}.difficulty-dots{display:flex;gap:3px}.difficulty-dots i{display:block;width:4px;height:9px;background:#745546;border-radius:1px}.difficulty-dots i:nth-child(-n+2){background:var(--orange)}.play-button{width:153px;min-width:153px;height:98px;background:var(--orange);color:#34251f;border-radius:12px;box-shadow:0 4px 0 #a56437;display:grid;grid-template-columns:1fr 23px;padding:21px 18px;gap:2px;text-align:left;position:relative;font-weight:800}.play-button>span{font-size:18px;letter-spacing:1px;white-space:nowrap}.play-button svg{width:21px}.play-button small{font-family:ui-monospace,monospace;font-weight:500;font-size:9px;letter-spacing:1px;color:#774c32}.play-button:hover{background:var(--orange2);transform:translateY(-2px);box-shadow:0 6px 0 #a56437}.control-hint{border-top:1px solid #3e3344;padding:12px 0;display:flex;align-items:center;gap:19px;font-size:9px;color:#8f839b}.control-hint>span{white-space:nowrap}.control-hint button{margin-left:auto;padding:4px 0;color:#c6b7cd;font-size:10px;white-space:nowrap}.control-hint button span{color:var(--orange);margin-left:5px}kbd{font-family:ui-monospace,monospace;border:1px solid #544658;border-radius:3px;font-size:8px;padding:1px 3px;margin-right:2px;color:#b6a8c1;background:#302638}
.daily-card{background:linear-gradient(135deg,#29332f,#242b2b);border:1px solid #435349;border-radius:var(--radius);padding:24px;position:relative;overflow:hidden;display:flex;flex-direction:column}.daily-card:after{content:"";position:absolute;border:1px solid #435e4e80;border-radius:50%;width:160px;height:160px;right:-90px;top:40px}.daily-icon{position:absolute;right:22px;top:38px;color:var(--mint)}.daily-icon svg{width:28px;height:28px}.daily-card .section-kicker{font-size:8px;letter-spacing:1.3px;color:#96b6a1}.daily-card h2{font-size:23px;line-height:1.45;margin:24px 0 12px;letter-spacing:.3px;color:#dceadd}.daily-card p{font-size:11px;color:#9aaca1;line-height:1.9}.daily-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:20px}.daily-bottom span{display:flex;flex-direction:column;gap:4px}.daily-bottom small{font-size:9px;color:#8ca596;letter-spacing:1px}.daily-bottom b{font-size:11px;font-weight:500;color:#c1d4c5}.round-btn{width:35px;height:35px;border:1px solid #576c5e;border-radius:50%;display:grid;place-items:center;color:#cce5d3}.round-btn:hover{background:#3b5043}
.lower-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:20px;margin-top:30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-heading h2{font-size:16px;letter-spacing:.3px}.section-heading h2 span{font-size:8px;font-weight:400;font-family:ui-monospace,monospace;letter-spacing:1px;color:#81768c;margin-left:14px;vertical-align:middle}.section-heading>span{font-size:10px;color:#9b8fa4}.character-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.character-card{background:#211d2b;border:1px solid #3a3043;border-radius:13px;position:relative;text-align:left;padding:15px 14px 13px;overflow:hidden;display:grid;grid-template-columns:58px 1fr;column-gap:10px;min-height:120px;align-items:center}.character-card.selected{border-color:#bf875c;background:linear-gradient(140deg,#362b31,#28212c)}.character-card.selected:after{content:"✓";position:absolute;right:9px;top:7px;font-size:11px;color:var(--orange)}.character-card:hover{border-color:#9a7c9e;transform:translateY(-2px)}.character-card.locked{background:#211d28}.character-card canvas{width:58px;height:75px;grid-row:1 / 3;opacity:.9}.character-card.locked canvas{opacity:.47}.character-card h3{font-size:14px}.character-card small{font-size:9px;display:block;color:#a898b1;margin-top:4px;white-space:nowrap}.character-card .character-bottom{font-size:9px;color:var(--orange);display:flex;align-items:center;gap:5px;margin-top:9px;white-space:nowrap}.character-card .character-bottom svg{width:11px;height:11px}.character-card.selected .character-bottom{color:#bfa4c9}.goal-card{border:1px solid #39303f;border-radius:15px;padding:18px 20px;background:#201b27}.goal-card .section-heading{margin-bottom:13px}.goal-card .section-heading h2{font-size:13px}.goal-card .section-heading svg{width:15px;height:15px;color:var(--orange)}.goal-name{font-size:12px;display:flex;justify-content:space-between;gap:12px}.goal-name span{font-size:10px;color:var(--orange)}.goal-desc{font-size:10px;color:var(--muted);margin-top:4px}.goal-progress{height:4px;border-radius:5px;background:#3b3044;overflow:hidden;margin:12px 0}.goal-progress i{display:block;height:100%;background:var(--purple);border-radius:5px}.text-link{font-size:10px;color:#b6a3c4;padding:1px 0}.text-link span{color:var(--orange);padding-left:8px}.bottom-note{display:flex;justify-content:space-between;gap:20px;padding:25px 0 31px;font-size:9px;letter-spacing:.5px;color:#84778e}.bottom-note>span:last-child{display:flex;align-items:center;gap:7px}.save-dot{height:5px;width:5px;display:inline-block;background:var(--mint);border-radius:50%}.site-footer{max-width:1320px;margin:auto;padding:22px 48px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:8px;color:#7c7185;letter-spacing:1.3px}.site-footer>span:first-child{font-family:ui-monospace,monospace}.footer-dot{color:#b68960;padding:0 7px}
.page-title{padding:50px 0 30px}.page-title h1{font-size:42px;letter-spacing:-1px;margin:14px 0}.page-title h1 span{color:var(--orange)}.page-title p{font-size:13px;color:var(--muted)}.info-banner{padding:15px 20px;border:1px solid #484047;background:#29232d;display:flex;align-items:center;gap:13px;border-radius:12px;color:#b6a7ba;font-size:12px}.info-banner svg{color:var(--orange);width:19px;height:19px}.workshop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.workshop-card{padding:24px;border:1px solid var(--line);background:var(--panel);border-radius:16px}.workshop-icon{width:45px;height:45px;background:#3a2c43;border-radius:13px;display:grid;place-items:center;color:var(--purple);font-size:25px;margin-bottom:20px}.workshop-card h2{font-size:19px}.workshop-card p{font-size:11px;color:var(--muted);margin:9px 0 17px;min-height:35px}.upgrade-pips{display:flex;gap:5px;margin:18px 0}.upgrade-pips i{height:6px;flex:1;border-radius:6px;background:#3c3144}.upgrade-pips i.filled{background:var(--orange)}.purchase-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:11px 13px;background:#3c2e3a;border:1px solid #66484b;border-radius:9px;color:var(--orange2);font-size:12px}.purchase-button:hover:not(:disabled){background:#563b43}.purchase-button span{display:flex;align-items:center;gap:6px}.purchase-button svg{width:13px;height:13px}.evolution-guide{padding:38px 0 45px}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.recipe-grid article{background:#201c28;border:1px dashed #51405e;padding:23px;border-radius:14px}.recipe-grid article>span{color:var(--orange);font-size:23px;letter-spacing:10px}.recipe-grid h3{margin:12px 0 8px;font-size:16px}.recipe-grid p{color:#bfadc9;font-size:11px}.recipe-grid small{color:var(--muted);font-size:10px;display:block;margin-top:9px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:21px}.stat-card>span{color:var(--muted);font-size:10px}.stat-card>b{display:block;font-size:31px;font-family:ui-monospace,monospace;color:var(--orange2);font-weight:500;margin:7px 0 0}.journal-heading{margin-top:35px}.achievement-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.achievement-card{background:#221e2b;border:1px solid #39313f;border-radius:13px;padding:19px;position:relative}.achievement-card.unlocked{border-color:#66543e;background:#2b252b}.achievement-card>span{font-size:22px;color:#6f5b7b}.achievement-card.unlocked>span{color:var(--orange)}.achievement-card h3{font-size:14px;margin:10px 0 6px}.achievement-card p{font-size:10px;line-height:1.8;color:var(--muted);min-height:36px}.achievement-card small{display:block;font-size:9px;color:var(--orange);margin-top:12px}.achievement-card.unlocked:after{content:"✓";position:absolute;right:14px;top:13px;color:var(--mint)}.history-list{border:1px solid var(--line);border-radius:14px;overflow:auto}.empty-state{padding:45px;text-align:center;color:var(--muted);font-size:12px}.history-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px;text-align:left}.history-table th{background:#26202e;color:var(--muted);font-weight:400;font-size:10px;padding:13px 18px}.history-table td{padding:14px 18px;border-top:1px solid #352c3e}.history-table td:last-child{color:var(--orange)}.won-tag{color:var(--mint);font-size:10px}.enemy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-bottom:45px}.enemy-card{padding:20px;display:flex;gap:14px;align-items:flex-start;background:#211c29;border:1px solid var(--line);border-radius:12px}.enemy-avatar{height:38px;width:38px;flex-shrink:0;display:grid;place-items:center;background:#31263a;border-radius:12px;color:var(--purple);font-size:20px}.enemy-card h3{font-size:13px}.enemy-card p{font-size:10px;margin-top:6px;color:var(--muted);line-height:1.8}
.game-dialog{border:1px solid #655071;border-radius:25px;padding:35px;background:#26202f;color:var(--ink);max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);box-shadow:0 25px 100px #0008;text-align:center;overflow:auto}.game-dialog::backdrop{background:#100d1bc9;backdrop-filter:blur(8px)}.game-dialog h2{font-size:29px;letter-spacing:-.5px;margin:11px 0}.game-dialog>p{color:#b9a7c5;font-size:12px;line-height:1.9}.dialog-kicker{font-family:ui-monospace,monospace;font-size:9px;color:var(--orange);letter-spacing:2px}.compact-dialog{width:430px}.upgrade-dialog{width:850px}.upgrade-options{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:30px 0 25px}.upgrade-option{position:relative;background:#31283b;border:1px solid #5d456b;border-radius:17px;padding:24px 21px;text-align:left;min-height:246px;display:flex;flex-direction:column;align-items:flex-start}.upgrade-option:hover{background:#45324c;border-color:var(--orange);transform:translateY(-5px)}.upgrade-option .upgrade-symbol{font-size:33px;line-height:1;color:var(--orange);height:55px}.upgrade-option h3{font-size:19px;line-height:1.5}.upgrade-option p{font-size:11px;line-height:1.9;color:#b9a7c5;margin:10px 0 20px}.upgrade-option>small{margin-top:auto;font-size:9px;color:var(--purple);letter-spacing:.5px}.upgrade-option>kbd{position:absolute;right:12px;top:12px;padding:2px 6px}.upgrade-tag{position:absolute;bottom:19px;right:15px;font-family:ui-monospace,monospace;color:#ab88c6;font-size:11px}.dialog-footnote{display:block;font-size:10px;color:#9b87aa;margin-top:19px}.dialog-hero{font-size:57px;color:var(--orange);line-height:1.5}.primary-button{background:var(--orange);color:#34231e;padding:14px 20px;border-radius:11px;font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;box-shadow:0 3px 0 #9d633e;min-height:48px}.primary-button:hover{background:var(--orange2)}.secondary-button{border:1px solid #5b4767;border-radius:10px;padding:12px 16px;display:inline-flex;justify-content:center;align-items:center;color:#c8b5d5;font-size:12px;min-height:44px;background:#302637}.secondary-button:hover{background:#46334e}.compact-dialog>.primary-button{margin-top:25px}.compact-dialog>.secondary-button{margin-top:12px;width:100%}.dialog-close{position:absolute;right:14px;top:8px;font-size:26px;line-height:1;width:35px;height:35px;color:var(--muted)}.dialog-close:hover{color:var(--ink)}.result-dialog{width:510px}.result-emblem{width:70px;height:70px;border-radius:21px;background:#453243;display:grid;place-items:center;margin:0 auto 21px;transform:rotate(-8deg)}.result-emblem svg{width:45px;height:45px;color:var(--orange);transform:rotate(8deg)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.result-stat small{font-size:10px;color:var(--muted);display:block}.result-stat b{font-family:ui-monospace,monospace;font-size:25px;font-weight:500;display:block;margin-top:4px}.result-reward{display:flex;align-items:center;justify-content:center;gap:12px;background:#3a2c35;border:1px solid #694844;padding:14px;border-radius:11px;color:#cbb19d;font-size:12px}.result-reward b{color:var(--orange2);font-size:24px;margin:0 6px}.result-reward svg{color:var(--orange);width:20px;height:20px}.result-actions{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;margin-top:23px}.result-new-achievement{margin-top:10px;font-size:11px;color:var(--mint)}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:19px 0;text-align:left}.setting-row b{font-size:13px}.setting-row small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.setting-row input{appearance:none;width:38px;height:22px;background:#51415d;border-radius:20px;position:relative;cursor:pointer;flex-shrink:0}.setting-row input:before{content:"";position:absolute;width:16px;height:16px;background:#a899b5;left:3px;top:3px;border-radius:50%;transition:transform .2s}.setting-row input:checked{background:#bb8352}.setting-row input:checked:before{transform:translateX(16px);background:#ffe7c2}.save-section{margin-top:25px;text-align:left}.save-section h3{font-size:14px}.save-section p{font-size:11px;color:var(--muted);margin:9px 0 15px;line-height:1.9}.save-section>div{display:flex;gap:10px}.save-section .secondary-button{flex:1}.file-label{cursor:pointer}.file-label input{position:absolute;width:1px;height:1px;opacity:0}.file-label:focus-within{outline:2px solid var(--orange);outline-offset:3px}.save-message{min-height:1em;color:var(--mint)!important}.help-dialog{width:570px;text-align:left}.help-steps{margin-top:25px;display:grid;gap:20px}.help-steps article{display:flex;gap:19px}.help-steps article>b{font-family:ui-monospace,monospace;color:var(--orange);font-size:20px}.help-steps h3{font-size:14px;margin-bottom:8px}.help-steps p{color:var(--muted);font-size:11px;line-height:1.9}.help-tip{border-left:2px solid var(--mint);padding:10px 15px;background:#2b3330;font-size:11px;color:#adbfaf;margin:25px 0}
#arena{position:fixed;inset:0;background:#14111f;overflow:hidden;touch-action:none;user-select:none}#game-canvas{width:100%;height:100%;display:block;outline:none}.battle-hud{position:absolute;top:max(24px,env(safe-area-inset-top));left:25px;right:25px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;gap:16px}.hud-left{display:flex;align-items:center;gap:14px;flex:1}.pause-button{pointer-events:auto;background:#292233de;border:1px solid #564362;border-radius:11px;width:42px;height:42px;font-size:21px;color:#e4c9ef}.health-block{width:min(240px,23vw)}.health-block>div:first-child{display:flex;align-items:center;gap:7px;font-size:11px}.health-block svg{width:13px;height:13px;color:var(--red)}.health-block b{font-family:ui-monospace,monospace;font-size:11px}.health-block span{color:#b4a2bc;font-size:10px;margin-left:auto}.health-track{background:#43303e;border:1px solid #5b3a4c;height:9px;border-radius:6px;margin-top:7px;overflow:hidden}.health-track i{display:block;background:linear-gradient(90deg,#c97486,#e39e92);height:100%;width:100%;transition:width .12s}.hud-center{text-align:center;text-shadow:0 2px 12px #0007}.hud-center>span{font-size:10px;letter-spacing:2px;color:#bdacc8;display:block}.hud-center strong{font-family:ui-monospace,monospace;font-size:35px;line-height:1.4;font-weight:500;letter-spacing:2px}.hud-center small{display:block;font-size:9px;letter-spacing:1px;color:#a897b6}.hud-right{flex:1;text-align:right;font-size:10px;display:flex;gap:15px;justify-content:flex-end;color:#ad99bb}.hud-right b{font-family:ui-monospace,monospace;color:var(--orange2);margin-left:5px;font-size:17px;font-weight:500}.xp-hud{position:absolute;top:3px;left:0;right:0;display:flex;align-items:center;gap:9px;padding:0 8px;pointer-events:none;font-family:ui-monospace,monospace;font-size:8px;color:#a48bbc}.xp-hud>div{height:3px;background:#3e2b4d;flex:1;border-radius:3px;overflow:hidden}.xp-hud i{height:100%;display:block;width:0;background:var(--purple);transition:width .12s}.battle-bottom{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));left:28px;right:28px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none;gap:15px}.active-upgrades{display:flex;flex-wrap:wrap;gap:6px;max-width:75%;pointer-events:auto}.active-upgrade{width:35px;height:35px;background:#30223dde;border:1px solid #654578;border-radius:9px;display:grid;place-items:center;position:relative;font-size:17px;color:var(--orange2)}.active-upgrade>small{position:absolute;bottom:0;right:4px;font-size:8px;color:#e6d1f0}.dash-button{pointer-events:auto;position:relative;background:#f5ac6415;color:var(--orange2);border:1px solid #ba8556;border-radius:20px;width:85px;height:85px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:hidden;box-shadow:0 0 40px #f5ac640b}.dash-button>span{font-size:12px;font-weight:650;z-index:2}.dash-button>small{font-size:8px;font-family:ui-monospace,monospace;z-index:2}.dash-button svg{width:25px;height:25px;z-index:2}.dash-button i{position:absolute;inset:0;background:#4f354bbd;transform-origin:bottom;transform:scaleY(0);pointer-events:none}.joystick{display:none;position:absolute;left:26px;bottom:max(32px,env(safe-area-inset-bottom));width:112px;height:112px;border:1px solid #bb99cf45;background:#aa88c210;border-radius:50%;touch-action:none}.joystick span{display:block;position:absolute;left:34px;top:34px;width:44px;height:44px;background:#ae8cb743;border:1px solid #bb99cf75;border-radius:50%;pointer-events:none}#battle-tutorial{position:absolute;left:50%;bottom:40px;transform:translateX(-50%);font-size:11px;letter-spacing:1px;color:#ad96b8;white-space:nowrap;pointer-events:none;transition:opacity .5s}#battle-announcement{position:absolute;top:26%;left:10%;right:10%;text-align:center;font-size:25px;color:var(--orange2);text-shadow:0 0 30px #1b112c,0 3px 10px #000;font-weight:750;pointer-events:none;opacity:0;transition:opacity .25s}#battle-announcement.visible{opacity:1}#boss-hud{position:absolute;left:50%;transform:translateX(-50%);top:120px;width:min(430px,65vw);text-align:center}#boss-hud span{font-size:12px;letter-spacing:2px;color:#e9b8c6;text-shadow:0 2px 10px #171420}#boss-hud>div{height:7px;background:#4b283f;margin-top:7px;border:1px solid #82516b;border-radius:5px;overflow:hidden}#boss-hud i{height:100%;background:#cf759b;display:block;transition:width .1s}
.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);padding:12px 22px;border:1px solid #685376;border-radius:12px;background:#35283fec;box-shadow:0 8px 30px #0005;color:#e5d2ed;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 36px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--bg);padding:40px;z-index:100}.reduced-motion *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
@media(min-width:1500px){.hero{min-height:430px}.hero-art{height:370px}}
@media(max-width:1100px){.site-header{gap:30px;padding:20px 32px}.main-nav{gap:20px}.page-shell{padding:0 32px}.hero{gap:5px;min-height:375px}.hero-art{height:325px}.hero h1{font-size:53px}.adventure-grid,.lower-grid{grid-template-columns:minmax(0,1fr) 245px}.play-card{padding:20px 21px 0}.play-body{gap:17px}.play-body h2{font-size:18px}.play-button{width:132px;min-width:132px;padding:20px 13px}.play-button>span{font-size:16px}.mode-tab{padding:7px 9px;gap:6px}.control-hint{gap:10px}.control-hint>span:nth-child(3){display:none}.daily-card{padding:20px}.daily-card h2{font-size:22px}.character-card{padding:13px 10px;grid-template-columns:42px 1fr;column-gap:6px}.character-card canvas{width:42px;height:64px}.character-card h3{font-size:12px}.section-heading h2 span{display:none}.site-footer{padding:22px 32px}.sticker{right:0;top:19%}.speech-bubble{font-size:9px;left:4%}.hero-tags{gap:14px}}
@media(max-width:850px){.site-header{gap:22px;padding:17px 24px;min-height:85px}.brand{font-size:21px}.brand-mark{width:41px;height:43px}.main-nav{gap:16px}.nav-link{font-size:11px}.nav-link.active:after{bottom:-18px}.header-tools{gap:5px}.wallet{padding:6px 10px}.wallet>span{display:none}.page-shell{padding:0 24px}.hero{min-height:337px;padding-top:20px}.hero h1{font-size:44px}.hero p{font-size:12px}.hero-tags{font-size:8px;gap:10px}.hero-art{height:285px}.title-star{width:23px;height:23px;right:-35px;top:52px}.eyebrow{font-size:9px;letter-spacing:1px}.adventure-grid{grid-template-columns:1fr 220px;gap:15px}.play-card{padding:19px 19px 0}.mode-tab>span{display:none}.play-body{align-items:flex-start}.play-body h2{font-size:17px}.play-body p{font-size:10px}.play-button{min-width:115px;width:115px;height:88px;padding:17px 11px;grid-template-columns:1fr 17px}.play-button>span{font-size:14px}.play-button svg{width:17px}.difficulty{font-size:8px}.version-badge{font-size:7px}.daily-card h2{font-size:21px;margin-top:21px}.daily-card p{font-size:10px}.daily-card .section-kicker{font-size:7px;letter-spacing:.6px}.daily-icon{right:16px}.lower-grid{grid-template-columns:1fr;gap:20px}.goal-card{display:none}.character-card{min-height:110px;grid-template-columns:55px 1fr;padding:13px 18px}.character-card canvas{width:55px;height:75px}.character-card h3{font-size:14px}.site-footer{padding:20px 24px}.workshop-grid{grid-template-columns:repeat(2,1fr)}.achievement-grid{grid-template-columns:repeat(2,1fr)}.enemy-grid{grid-template-columns:repeat(2,1fr)}.recipe-grid{gap:10px}.recipe-grid article{padding:17px}.recipe-grid p{font-size:10px}.bottom-note{font-size:8px}.page-title h1{font-size:35px}}
@media(max-width:640px){.site-header{flex-wrap:wrap;padding:17px 20px 0;gap:15px;min-height:auto}.brand{font-size:22px;gap:10px}.brand small{font-size:8px}.header-tools{margin-left:auto;gap:5px}.main-nav{order:3;flex-basis:100%;gap:28px;justify-content:center;padding-top:8px}.nav-link{font-size:12px;padding:9px 0 16px}.nav-link.active:after{bottom:0}.page-shell{padding:0 20px}.hero{min-height:0;grid-template-columns:1fr;gap:0;padding:26px 0 19px;position:relative}.hero-copy{padding:0;position:relative;z-index:4;pointer-events:none}.hero h1{font-size:clamp(37px,9.4vw,54px);line-height:1.23;margin:17px 0 16px;letter-spacing:-1.2px}.hero p{font-size:11px;max-width:61%;line-height:1.9}.hero-art{position:absolute;width:55%;height:235px;right:-13px;top:29px;z-index:1;opacity:.8}.hero-art .speech-bubble{display:none}.hero-art .sticker{width:49px;height:49px;font-size:7px;right:6%;top:16%;outline-offset:-4px}.hero-art .sticker b{font-size:9px}.art-label{padding:4px 7px;font-size:8px;bottom:15%;left:9%;gap:5px}.art-label>span{font-size:7px}.art-label svg{width:8px;height:8px}.hero-art .star-one{font-size:15px;left:15%;top:20%}.hero-art .star-two{font-size:13px}.title-star{width:19px;height:19px;right:-27px;top:48px}.hero-tags{font-size:9px;gap:17px;margin-top:24px;position:relative;z-index:5}.hero-tags span{white-space:nowrap}.eyebrow{font-size:8px}.eyebrow-line{width:25px}.adventure-grid{grid-template-columns:1fr;gap:15px}.play-card{padding:20px 18px 0;border-radius:17px}.mode-tabs{margin-top:18px;width:100%}.mode-tab{flex:1;justify-content:center;padding:8px 4px;font-size:11px}.mode-tab>span{display:inline;font-size:7px}.play-body{padding:21px 0;gap:15px;align-items:center}.play-body h2{font-size:17px}.play-body p{font-size:10px;max-width:235px}.play-button{width:113px;min-width:113px;height:89px;padding:20px 11px}.control-hint{padding:11px 0;font-size:8px;gap:12px}.control-hint>span:nth-child(1){display:none}.control-hint>span:nth-child(3){display:block}.control-hint>span:nth-child(2){display:none}.control-hint>span:nth-child(3):before{content:"手机摇杆移动 · ";color:#a994b9}.daily-card{padding:18px 20px;border-radius:16px;display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.daily-card>.section-kicker{grid-column:1 / 3;font-size:7px}.daily-card h2{font-size:19px;margin:12px 0 3px;line-height:1.4}.daily-card h2 br{display:none}.daily-card p{font-size:9px;grid-column:1;line-height:1.7}.daily-card p br{display:none}.daily-card .daily-icon{right:23px;top:19px}.daily-icon svg{width:20px;height:20px}.daily-bottom{grid-column:2;grid-row:2 / 4;padding-top:0;align-self:end;gap:7px}.daily-bottom b{font-size:9px}.daily-bottom small{font-size:8px}.round-btn{width:30px;height:30px;flex-shrink:0}.daily-card:after{display:none}.lower-grid{margin-top:25px}.section-heading h2{font-size:14px}.section-heading>span{font-size:9px}.character-cards{gap:9px}.character-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 5px;min-height:165px;gap:3px}.character-card canvas{width:56px;height:66px}.character-card h3{font-size:13px}.character-card small{font-size:8px;margin-top:3px}.character-bottom{font-size:8px!important;margin-top:7px!important}.bottom-note{font-size:8px;display:flex;flex-direction:column;gap:10px;align-items:center;padding:23px 0}.site-footer{padding:18px 20px;justify-content:center}.site-footer>span:last-child{display:none}.page-title{padding:32px 0 24px}.page-title h1{font-size:29px;letter-spacing:-.6px}.page-title p{font-size:11px}.info-banner{font-size:10px;padding:14px}.workshop-grid{gap:12px}.workshop-card{padding:18px 16px}.workshop-icon{width:38px;height:38px;font-size:21px;margin-bottom:15px}.workshop-card h2{font-size:16px}.workshop-card p{font-size:10px}.purchase-button{font-size:10px;padding:10px}.recipe-grid{grid-template-columns:1fr}.recipe-grid article{padding:17px 20px;display:grid;grid-template-columns:90px 1fr;gap:4px 10px}.recipe-grid article>span{grid-row:1 / 4;font-size:24px;align-self:center;letter-spacing:5px}.recipe-grid h3{margin:0;font-size:14px}.recipe-grid small{margin:0}.stats-grid{grid-template-columns:repeat(2,1fr);gap:12px}.stat-card{padding:18px}.stat-card>b{font-size:28px}.achievement-grid{gap:10px}.achievement-card{padding:16px}.achievement-card h3{font-size:13px}.achievement-card p{font-size:9px}.enemy-grid{grid-template-columns:1fr}.history-table th,.history-table td{padding:12px}.game-dialog{padding:25px 20px;border-radius:21px;max-height:calc(100dvh - 24px)}.game-dialog h2{font-size:23px}.game-dialog>p{font-size:11px}.upgrade-options{grid-template-columns:1fr;gap:10px;margin:20px 0 15px}.upgrade-option{padding:15px 17px 15px 69px;min-height:108px;display:block}.upgrade-option .upgrade-symbol{position:absolute;left:19px;top:26px;font-size:28px;height:auto}.upgrade-option h3{font-size:16px}.upgrade-option p{font-size:10px;margin:4px 0 5px;max-width:90%}.upgrade-option>small{font-size:8px}.upgrade-option>kbd{display:none}.upgrade-tag{bottom:11px;right:12px;font-size:10px}.dialog-footnote{font-size:9px;margin-top:14px}.upgrade-dialog>.dialog-footnote{font-size:0}.upgrade-dialog>.dialog-footnote:after{content:"战场已暂停 · 点击卡片选择";font-size:9px}.result-actions{grid-template-columns:1fr}.result-stat b{font-size:23px}.result-dialog{width:390px}.battle-hud{left:13px;right:13px;top:max(24px,env(safe-area-inset-top));gap:8px}.hud-left{gap:8px;flex:1.3}.pause-button{width:32px;height:33px;font-size:17px;border-radius:9px}.health-block{width:94px}.health-block span{display:none}.health-block b{font-size:9px}.health-block svg{width:10px;height:10px}.health-track{height:7px;margin-top:6px}.hud-center strong{font-size:26px;letter-spacing:0}.hud-center>span{font-size:8px;letter-spacing:1px}.hud-center small{font-size:8px}.hud-right{flex-direction:column;gap:1px;font-size:8px;flex:1}.hud-right b{font-size:13px;display:inline-block;min-width:30px}.battle-bottom{bottom:max(35px,env(safe-area-inset-bottom));left:18px;right:22px}.active-upgrades{position:fixed;left:14px;top:90px;right:14px;max-width:none;gap:4px;pointer-events:none}.active-upgrade{height:26px;width:26px;border-radius:7px;font-size:13px}.active-upgrade small{font-size:7px;right:2px}.dash-button{margin-left:auto;width:76px;height:76px;border-radius:50%}.joystick{display:block}.xp-hud{font-size:7px}.xp-hud>span:last-child{display:none}#boss-hud{top:132px;width:65vw}#boss-hud span{font-size:10px}#battle-announcement{font-size:20px;top:28%}#battle-tutorial{bottom:175px;font-size:9px;letter-spacing:0}.help-steps article{gap:14px}.help-steps h3{font-size:13px}.help-steps p{font-size:10px}.help-tip{font-size:10px}}
@media(pointer:coarse) and (min-width:641px){.joystick{display:block}.active-upgrades{position:fixed;left:25px;top:95px;max-width:70%}.dash-button{margin-left:auto}.control-hint>span:first-child{display:none}#battle-tutorial{bottom:160px}}
@media(max-width:640px){.hero-art canvas{position:absolute;width:300px;height:206px;max-width:none;top:17px;left:50%;transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
