:root{color-scheme:dark;--bg:#101513;--ink:#eee9db;--muted:#a3a79a;--gold:#d9b778;--line:#3b4036;--serif:"STIX Two Text","Noto Serif CJK SC","Songti SC","SimSun",serif;--sans:"Inter","Noto Sans SC","Microsoft YaHei",sans-serif;--number:"Barlow Condensed","Arial Narrow","Arial",sans-serif}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{display:grid;grid-template-rows:70px minmax(0,1fr) 140px;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-user-select:none;user-select:none}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid #efd696;outline-offset:3px}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
h1,h2,p{margin:0}
.topbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,2.65vw,58px);border-bottom:1px solid #7b6b46;background:linear-gradient(100deg,#191e19 0%,#121713 42%,#171c17 100%);box-shadow:0 1px 0 #161b14,0 3px 16px #070c0b55}
.brand{display:flex;gap:12px;align-items:center}
.emblem{width:39px;height:45px;color:#dfbe7c;filter:drop-shadow(0 1px 2px #000)}
.brand h1{font:700 23px/1.25 var(--serif);letter-spacing:.15em;color:#f0e8d5}
.brand span{display:block;color:#b9a47c;font:600 8px/1.75 var(--number);letter-spacing:.36em;margin-left:2px}
.region{display:flex;align-items:center;gap:12px;position:absolute;left:50%;transform:translateX(-50%);color:#c5c5af}
.region span{font:600 14px var(--serif);letter-spacing:.19em}
.region .icon{color:#b8a574;width:20px;height:20px}
.region i{position:relative;width:47px;height:1px;background:linear-gradient(90deg,transparent,#605e47)}
.region i:last-child{transform:rotate(180deg)}
.region i:after{content:"";position:absolute;right:-1px;top:-1px;background:#8f805d;width:3px;height:3px;transform:rotate(45deg)}
nav{display:flex;align-items:center;gap:8px}
nav button,.tool-button,.dialog-close{background:#20251f;border:1px solid #3f4538;border-radius:3px;transition:background .16s,border-color .16s}
nav button:hover,.dialog-close:hover{border-color:#a39468;background:#2b3128}
.tool-button{width:35px;height:34px;display:inline-grid;place-items:center;padding:0;color:#cbcbb9}
.tool-button .icon{width:17px;height:17px}
.guide-button{height:34px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:12px;color:#dcdccc}
.guide-button .icon{width:17px;height:17px}
.arena{position:relative;min-height:0;isolation:isolate;overflow:hidden;touch-action:none;background:#344a3d}
#world,.atmosphere,.world-ui,#damage-flash,.loading{position:absolute;inset:0;width:100%;height:100%}
#world{display:block;touch-action:none;outline:0;cursor:crosshair}
.atmosphere{pointer-events:none;background:linear-gradient(180deg,#09151928 0%,transparent 20%,transparent 73%,#08110e69 100%),radial-gradient(ellipse at 51% 47%,transparent 48%,#07100c39 100%)}
.objective{pointer-events:none;position:absolute;top:clamp(20px,3.6vh,44px);left:clamp(22px,2.9vw,64px);padding:4px 28px 11px 0;text-shadow:0 1px 6px #07120c,0 2px 12px #07120c}
.objective:before{content:"";position:absolute;inset:-25px -36px -27px -65px;background:radial-gradient(ellipse at 22% 40%,#10190f8a,transparent 70%);z-index:-1}
.objective-eyebrow{display:flex;gap:7px;align-items:center;color:#efd18c;font-size:10px;font-weight:600;letter-spacing:.18em}
.objective-eyebrow .icon{width:15px;height:15px}
.objective-eyebrow i{width:43px;height:1px;background:linear-gradient(90deg,#d0b4748a,transparent)}
.objective h2{margin:7px 0 8px;font:700 clamp(20px,1.65vw,30px)/1.25 var(--serif);letter-spacing:.06em}
.objective-progress{display:flex;align-items:center;gap:7px;color:#d0d4c4;font-size:11px}
.objective-progress b{font:600 12px var(--number);letter-spacing:.1em;color:#eee9d8}
.pips{display:flex;gap:3px;margin-right:2px}
.pips i{display:block;height:6px;width:6px;border:1px solid #aea98c;transform:skew(-17deg);background:#1e2e21a6}
.pips i.on{background:#e2c181;border-color:#e2c181}
.radar-wrap{position:absolute;top:clamp(17px,2.6vh,35px);right:clamp(20px,2.35vw,58px);width:clamp(92px,8.65vw,140px);aspect-ratio:1;pointer-events:none}
#radar{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 7px #07150d77)}
.world-ui{pointer-events:none;overflow:hidden}
.enemy-tag{position:absolute;left:0;top:0;width:66px;display:flex;align-items:center;flex-direction:column;gap:3px;transform:translate(-50%,-100%);will-change:transform;text-shadow:0 1px 3px #030907,0 0 7px #030907;white-space:nowrap}
.enemy-tag strong{font:600 10px/1.25 var(--sans);color:#f0e8d4;letter-spacing:.08em}
.enemy-tag .enemy-hp{width:100%;height:4px;border:1px solid #1d2015;background:#211c17;box-shadow:0 1px 3px #0c160e8c}
.enemy-hp i{height:100%;display:block;background:#bd614c;transition:width .15s}
.enemy-tag.elite{width:95px}
.enemy-tag.elite strong{color:#ffdfa2;font-size:12px}
.enemy-tag.elite strong:before{content:"♛";font:15px/1 Georgia;color:#f8cf80;margin-right:4px}
.enemy-tag.elite .enemy-hp{height:5px;border-color:#58402e}
.enemy-tag.elite .enemy-hp i{background:linear-gradient(90deg,#a74832,#d99659)}
.enemy-tag.telegraph strong{color:#ffad64}
.key-strip{position:absolute;bottom:17px;left:clamp(23px,2.95vw,60px);display:flex;align-items:center;gap:18px;color:#f1eee0;font-size:11px;text-shadow:0 1px 4px #07120c;pointer-events:none}
.key-strip span{display:flex;align-items:center;gap:5px}
.key-strip kbd,.ability kbd,.guide-rows kbd{font:600 10px/15px var(--number);letter-spacing:.07em;background:#19221cc9;border:1px solid #a3a48b88;color:#f3efde;border-radius:2px;padding:0 5px}
.key-strip .icon{width:15px;height:15px;filter:drop-shadow(0 1px 1px #152019)}
#toast{position:absolute;left:50%;bottom:12%;transform:translate(-50%,8px);opacity:0;transition:opacity .16s,transform .16s;pointer-events:none;padding:8px 24px;background:linear-gradient(90deg,transparent,#111a15df 20%,#111a15df 80%,transparent);color:#f4d89c;font-size:14px;letter-spacing:.07em;text-align:center;white-space:nowrap;text-shadow:0 1px 3px #090e0c}
#toast.show{opacity:1;transform:translate(-50%,0)}
#damage-flash{pointer-events:none;opacity:0;box-shadow:inset 0 0 9vw #bd352f80;transition:opacity .35s}
.float-number{position:absolute;left:0;top:0;color:#fff2d3;font:bold 21px var(--serif);text-shadow:0 1px 4px #160e08;pointer-events:none;animation:rise .75s both}
.float-number.heavy{color:#ffd17e;font-size:27px}
@keyframes rise{from{opacity:0;transform:translate(-50%,0) scale(.65)}15%{opacity:1;transform:translate(-50%,-8px) scale(1.08)}75%{opacity:1}to{opacity:0;transform:translate(-50%,-42px) scale(.95)}}
.combat-hud{position:relative;display:grid;grid-template-columns:minmax(265px,1fr) minmax(130px,.49fr) minmax(445px,1.56fr);align-items:center;gap:clamp(20px,2.1vw,50px);padding:17px clamp(23px,2.9vw,64px);border-top:1px solid #9b8556;background:radial-gradient(ellipse at 1% 0%,#2a302894,transparent 55%),linear-gradient(105deg,#1a211d,#141a17 67%,#1c221c);box-shadow:inset 0 3px #161d19,inset 0 4px #373e32,0 -3px 12px #09120b45;z-index:2}
.combat-hud:after{content:"";width:54px;height:3px;background:linear-gradient(90deg,transparent,#b8a372,transparent);top:-2px;left:50%;transform:translateX(-50%);position:absolute}
.vitals{display:flex;align-items:center;gap:clamp(12px,1.25vw,22px);min-width:0}
.portrait-frame{align-self:center;width:clamp(65px,5.5vw,89px);aspect-ratio:.88;position:relative;flex:none;padding:3px;border:1px solid #918462;background:#232923;box-shadow:inset 0 0 0 1px #141b17}
.portrait-frame:before,.portrait-frame:after{position:absolute;content:"";width:8px;height:8px;border-color:#d9c395;border-style:solid;pointer-events:none;z-index:1}
.portrait-frame:before{left:-1px;top:-1px;border-width:2px 0 0 2px}
.portrait-frame:after{right:-1px;bottom:-1px;border-width:0 2px 2px 0}
.portrait-frame canvas{width:100%;height:100%;display:block;background:#31443f}
.portrait-frame b{position:absolute;left:50%;bottom:-3px;width:6px;height:6px;background:#c2ac79;transform:translateX(-50%) rotate(45deg);box-shadow:0 0 0 1px #424234}
.vital-data{min-width:0;flex:1}
.hero-title{display:flex;align-items:baseline;gap:9px;margin-bottom:9px}
.hero-title h2{font:700 clamp(18px,1.55vw,27px)/1.25 var(--serif);letter-spacing:.05em;white-space:nowrap}
.hero-title small{font:600 8px var(--number);color:#a59f83;letter-spacing:.17em}
.stat{display:grid;grid-template-columns:12px 24px 1fr 54px;gap:5px;align-items:center;font-size:10px;color:#ced1c1;white-space:nowrap;height:21px}
.stat .icon{width:11px;height:11px}
.heart{color:#ce7a65}.fire{color:#d8a557}
.stat b,.section-title span{font:500 11px var(--number);font-variant-numeric:tabular-nums;letter-spacing:.045em;color:#d5d6c7;text-align:right}
.meter{height:7px;background:#0c120f;border:1px solid #44483a;position:relative}
.meter i{display:block;height:100%;transition:width .18s;position:relative}
.meter:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent,transparent calc(20% - 1px),#131a154a calc(20% - 1px),#131a154a 20%)}
.health i{width:100%;background:linear-gradient(90deg,#924d42,#d58470);box-shadow:inset 0 1px #f4ad8d66}
.fury i{width:0;background:linear-gradient(90deg,#ad7639,#f3c772)}
.fury-points{height:69px;border-left:1px solid var(--line);border-right:1px solid var(--line);padding:1px clamp(14px,1.9vw,36px) 0;display:flex;flex-direction:column;justify-content:center;gap:13px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;white-space:nowrap}
.section-title h2{font:600 13px/1 var(--sans);letter-spacing:.08em;color:#d9d9c9}
.section-title span{font-size:10px;color:#a8a993}
.gems{display:flex;align-items:center;justify-content:space-between;margin:0 4px 3px}
.gems i{position:relative;display:block;width:20px;height:20px;border:1px solid #7e755a;background:linear-gradient(135deg,#414235,#20251f);transform:rotate(45deg);flex:none;transition:all .25s}
.gems i:before{content:"";position:absolute;inset:3px;border:1px solid #8d816655;background:linear-gradient(90deg,#69634c44 50%,#3a3b2e44 50%)}
.gems i.on{background:linear-gradient(125deg,#fff1a8,#d79638 60%);border-color:#edc884;box-shadow:0 0 12px #dca14872}
.gems i.on:before{border-color:#e7b764;background:linear-gradient(90deg,#ffdea4 50%,#dfaa53 50%)}
.gems b{width:15%;height:1px;background:#534f3e}
.abilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(7px,.8vw,14px);min-width:0}
.ability{--accent:#d5ae72;position:relative;display:flex;align-items:center;gap:clamp(7px,.8vw,13px);min-width:0;text-align:left;padding:7px;background:linear-gradient(112deg,#37382c,#23281f 68%,#22261e);border:1px solid #575747;border-radius:3px;box-shadow:inset 0 0 0 2px #151b1666;transition:border-color .18s,background .18s,transform .15s}
.ability.cyan{--accent:#8ac4c2;background:linear-gradient(112deg,#2d3b36,#212a24 68%,#1e2822)}
.ability.violet{--accent:#bba4ca;background:linear-gradient(112deg,#39343a,#27272b 68%,#252629)}
.ability:hover,.ability:focus-visible,.ability.ready{border-color:var(--accent)}
.ability:active{transform:translateY(2px)}
.art-frame{display:block;position:relative;flex:0 1 58px;min-width:33px;max-width:45%;aspect-ratio:1;border:1px solid #b6a47366;box-shadow:0 1px 4px #090e0d}
.art-frame canvas{width:100%;height:100%;display:block}
.ability kbd{line-height:16px;font-size:10px;min-width:15px;text-align:center;padding:0 3px;position:absolute;left:4px;top:4px;border-color:#737362;background:#171e17f2}
.ability-copy{display:flex;flex-direction:column;gap:7px;white-space:nowrap}
.ability-copy b{font:600 clamp(12px,1.02vw,18px)/1.2 var(--serif);color:#eeecdf;letter-spacing:.03em}
.ability-copy small{font-size:8px;color:var(--accent);display:flex;align-items:center;gap:5px}
.ability-copy small span{font:500 11px var(--sans);color:#b5b7a6}
.tip{font-size:12px;color:#c8ccba;position:absolute;width:180px;bottom:calc(100% + 12px);right:0;background:#151d17f7;border:1px solid #67664f;padding:12px 14px;box-shadow:0 5px 15px #06100c55;display:none;pointer-events:none}
.tip b{display:block;color:var(--accent);margin-bottom:5px}
@media(hover:hover){.ability:hover .tip{display:block}}
.loading,.veil{display:grid;place-content:center;justify-items:center;background:#131e19;color:#d8c18e;z-index:9}
.loading span{font:14px var(--serif);letter-spacing:.12em}
.load-emblem{font:46px/1.3 Georgia;animation:pulse 1.3s infinite alternate}
@keyframes pulse{to{opacity:.3}}
.loading button{margin-top:15px}
.veil{position:fixed;inset:0;background:#09100dc4;backdrop-filter:blur(5px);padding:14px}
[hidden]{display:none!important}
.dialog{position:relative;padding:30px 35px 27px;width:min(450px,92vw);max-height:94dvh;overflow:auto;text-align:center;background:linear-gradient(145deg,#293128,#171e19 64%);border:1px solid #8a7d59;box-shadow:inset 0 0 0 4px #172019,inset 0 0 0 5px #3c4234,0 15px 70px #030c0888}
.dialog-close{position:absolute;top:12px;right:12px;width:28px;height:28px}
.dialog-emblem{width:38px;height:42px;color:#d3b172}
.dialog h2{font:700 24px var(--serif);letter-spacing:.09em;margin:7px 0 14px}
.dialog p{font-size:13px;line-height:1.8;color:#c3c8b7}
.guide-rows{margin:5px 0 14px;display:grid;gap:6px}
.guide-rows div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #3c4437;padding:5px 0;color:#d4d9cb;font-size:13px}
.dialog button.primary,.dialog button.secondary,.loading button{border:1px solid #a38c5f;background:#d1b780;color:#25291e;padding:8px 20px;border-radius:2px;font:600 13px var(--sans)}
.dialog button.secondary{color:#d6d6c5;border-color:#646750;background:#2c342a}
#dialog-actions{margin-top:20px;display:flex;gap:10px;justify-content:center}
.touch-move,.touch-attack{display:none}
@media(min-width:1800px){body{grid-template-rows:82px minmax(0,1fr) 160px}.ability{padding:10px}.art-frame{flex-basis:72px}.stat{font-size:12px}.objective-progress,.key-strip{font-size:13px}}
@media(max-width:1080px){body{grid-template-rows:60px minmax(0,1fr) 120px}.combat-hud{grid-template-columns:minmax(220px,.91fr) minmax(100px,.37fr) minmax(350px,1.4fr);gap:13px;padding-inline:20px}.fury-points{padding-inline:12px}.art-frame{min-width:29px}.hero-title small{display:none}.ability{gap:6px;padding:5px}.ability-copy small span{font-size:10px}.gems i{width:16px;height:16px}.vitals{gap:9px}.portrait-frame{width:58px}.region i{width:23px}}
@media(max-width:760px){.brand h1{font-size:18px}.emblem{width:31px;height:35px}.brand{gap:7px}.brand span{font-size:7px}.region{gap:6px}.region i{display:none}.region span{font-size:12px}.guide-button span{display:none}.guide-button{padding:0 7px}nav{gap:5px}.tool-button,.guide-button{width:31px;height:29px}.combat-hud{grid-template-columns:minmax(168px,.8fr) minmax(260px,1.3fr);gap:6px 13px;padding:10px 13px}.fury-points{grid-column:1;grid-row:2;height:auto;padding:0 3px;flex-direction:row;align-items:center;justify-content:flex-start;border:0;gap:14px}.gems{gap:4px;margin:0}.gems i{width:10px;height:10px}.gems b{width:3px}.gems i:before{inset:1px}.section-title h2{font-size:10px}.section-title span{display:none}.abilities{grid-row:1 / 3;grid-column:2;gap:5px}.hero-title{margin-bottom:4px}.hero-title h2{font-size:16px}.portrait-frame{width:42px}.stat{grid-template-columns:9px 1fr 47px;height:16px}.stat>span{display:none}.stat b{font-size:10px}.stat .icon{width:9px}.ability{flex-direction:column;align-items:center;padding:4px 2px 6px;gap:4px}.art-frame{flex:none;width:34px;max-width:none}.ability-copy{align-items:center;gap:2px}.ability-copy small{font-size:6px}.ability-copy small span{font-size:9px}.ability kbd{font-size:9px;line-height:12px;min-width:12px}.tip{right:-5px}.objective{left:17px;top:16px}.radar-wrap{right:12px;top:9px;width:85px}.key-strip{left:16px;bottom:10px;gap:10px}.objective h2{font-size:18px}}
@media(max-width:490px){body{grid-template-rows:51px minmax(0,1fr) 152px}.topbar{padding:0 12px}.region{position:static;transform:none}.region .icon{width:15px}.brand h1{font-size:16px}.brand span{font-size:6px}.combat-hud{grid-template-columns:1fr 103px;grid-template-rows:1fr 1fr;gap:5px 12px;padding:9px 12px}.fury-points{grid-column:2;grid-row:1;flex-direction:column;gap:8px}.gems{gap:6px}.section-title span{display:inline}.abilities{grid-column:1 / 3;grid-row:2}.ability{flex-direction:row;justify-content:center;gap:7px}.ability-copy{align-items:flex-start}.region span{letter-spacing:.04em}.key-strip{font-size:9px;gap:7px}.enemy-tag{width:46px}.enemy-tag.elite{width:68px}.radar-wrap{width:70px}}
@media(pointer:coarse){.key-strip{display:none}.touch-move{display:block;position:absolute;left:17px;bottom:16px;width:77px;height:77px;border:1px solid #dadaba81;border-radius:50%;background:#17261f52;touch-action:none}.touch-move i{position:absolute;left:50%;top:50%;width:31px;height:31px;border:1px solid #dedac1bb;background:#58655485;border-radius:50%;transform:translate(-50%,-50%)}.touch-attack{display:flex;align-items:flex-end;gap:7px;position:absolute;bottom:19px;right:15px}.touch-attack button{padding:8px;font-size:11px;border:1px solid #d0c39a88;background:#1b2a22b3;border-radius:50%;height:39px;width:39px;touch-action:none}.touch-attack button:last-child{height:49px;width:49px;border-color:#e3c994}}
@media(max-height:530px) and (min-width:491px){body{grid-template-rows:43px minmax(0,1fr) 81px}.brand h1{font-size:16px}.brand span{line-height:1}.emblem{height:30px}.combat-hud{padding-top:5px;padding-bottom:5px}.portrait-frame{width:44px}.radar-wrap{width:63px;top:4px}.objective{top:6px}.objective h2{font-size:16px;margin:2px 0}.ability{padding-block:3px}.art-frame{max-width:36px}.touch-move{width:56px;height:56px;bottom:9px}.touch-attack{bottom:9px}.dialog{padding:12px 24px}.dialog-emblem{display:none}.guide-rows{gap:1px}}
.point-hint{font:400 10px/1.3 var(--sans);color:#9d9f8c;white-space:nowrap;letter-spacing:.03em}
@media(min-width:761px){.fury-points{height:78px;gap:9px}.gems{margin-top:3px}}
@media(max-width:760px){.point-hint{display:none}}
