*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#1e2527;color:#fbf2dd;font-family:"Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;overscroll-behavior:none}button{font-family:inherit;color:inherit;cursor:pointer;border:0;touch-action:none;user-select:none}button:focus-visible{outline:2px solid #ffdf99;outline-offset:2px}[hidden]{display:none!important}#stage{--left:max(14px,env(safe-area-inset-left));--right:max(14px,env(safe-area-inset-right));--top:max(11px,env(safe-area-inset-top));--bottom:max(10px,env(safe-area-inset-bottom));--u:clamp(.8px,.254vh,1.32px);position:absolute;inset:0;isolation:isolate;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none;width:100%;height:100%}#world,.screen,#hud{position:absolute;inset:0;width:100%;height:100%}#world{display:block}.screen{display:flex;align-items:center}#home{background:linear-gradient(90deg,rgba(11,21,22,.64),rgba(20,25,25,.09) 67%),url('art/title.jpg') center center/cover;z-index:4}.titlecopy{margin-left:max(9.3%,var(--left));margin-bottom:2vh;text-shadow:0 2px 16px #0007}.eyebrow,.caps,#cardKicker,#chapter{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",Arial,sans-serif;letter-spacing:.32em}.eyebrow{font-size:clamp(10px,2.8vh,17px);color:#ecdbb2;display:flex;align-items:center;gap:12px}.eyebrow i{width:25px;height:1px;background:#c5b18b}.titlecopy h1{font-family:"Kaiti SC","STKaiti","Songti SC","Noto Serif CJK SC",serif;font-weight:700;font-size:clamp(42px,13.5vh,105px);line-height:1.15;letter-spacing:.055em;margin:.15em 0 .06em;color:#fff6dd}.caps{font:600 clamp(8px,2vh,12px)/1.3 Georgia,serif;letter-spacing:.37em;color:#e8d7b2;margin:1px 0 0}.home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:7vh}.main-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:.65em 1.25em;border:1px solid #e0cba1;background:#e3cfaa;color:#262b29;font-size:clamp(14px,3.3vh,20px);font-weight:650;letter-spacing:.09em;box-shadow:0 4px 18px #17182033}.main-btn b{font:1.05em Georgia}.text-btn{font-size:clamp(12px,2.8vh,16px);background:transparent;padding:.6em .3em;color:#ede2c5;border-bottom:1px solid #c7b08480}.home-actions .text-btn{background:#1b24242d}#saveHint{font:11px -apple-system,sans-serif;letter-spacing:.07em;color:#ecdcc5;margin-top:12px}
#hud{z-index:2;pointer-events:none;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-shadow:0 1px 4px #000c}#hud button,#stick{pointer-events:auto}#hud:before{content:"";position:absolute;inset:0 0 auto;height:20%;background:linear-gradient(#0f181a64,transparent);pointer-events:none}.identity{position:absolute;top:var(--top);left:calc(var(--left) + 8px);width:clamp(115px,19vw,210px);line-height:1.4}.identity strong,#weaponName,#levelName,#targetName{font-family:"Songti SC",Georgia,serif}.identity strong{font-size:clamp(15px,4.1vh,24px);letter-spacing:.08em}#weaponName{font-size:12px;margin-left:8px;color:#e7c891}.hpLine,.qiLine,#target>div{background:#231c1bc2;box-shadow:0 0 0 1px #d0bd943d;overflow:hidden}.hpLine{height:5px;margin-top:2px}.qiLine{height:3px;margin-top:4px;width:74%}.hpLine i,.qiLine i,#targetHp{display:block;height:100%;transform-origin:left;transition:transform .09s}.hpLine i{background:linear-gradient(90deg,#9f4437,#ef8464)}.qiLine i{background:#e5bb76}#location{position:absolute;top:var(--top);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px}#chapter{font-size:9px;color:#efdcb8;white-space:nowrap}#levelName{font-size:clamp(15px,3.8vh,21px);letter-spacing:.17em;white-space:nowrap}#pause{position:absolute;right:var(--right);top:var(--top);width:42px;height:40px;font:16px Georgia;background:#20262684;border:1px solid #d5c3a661;border-radius:50%;color:#f4e6c9}.mission-tag{position:absolute;top:calc(var(--top) + 52 * var(--u));left:calc(var(--left) + 4px);background:#172322ac;border-left:2px solid #c9ad72;text-align:left;padding:6px 10px;color:#fff0d6;max-width:37%;line-height:1.32;font-family:inherit}.mission-tag span{display:block;font-size:clamp(11px,2.7vh,15px)}.mission-tag small{color:#e3d4b5;font-size:10px}.mission-tag.active{border-left-color:#81ccb0}.mission-tag.active small{color:#a9e1c6}#target{position:absolute;top:calc(var(--top) + 26px);left:50%;transform:translateX(-50%);width:110px;text-align:center}#targetName{font-size:12px}#target>div{height:3px;margin:3px 0}#targetHp{background:#e79d79}#say{position:absolute;bottom:calc(var(--bottom) + 8px);left:29%;right:27%;min-height:17px;text-align:center;line-height:1.4;font-size:clamp(11px,2.9vh,16px);color:#fff3d6;text-shadow:0 1px 4px #111,0 2px 9px #000;pointer-events:none}#say:not(:empty){background:linear-gradient(90deg,transparent,#16201ebf 20%,#16201ebf 80%,transparent);padding:5px 10px}
#stick{position:absolute;left:calc(var(--left) + 18 * var(--u));bottom:calc(var(--bottom) + 14 * var(--u));width:calc(107 * var(--u));height:calc(107 * var(--u));border:1.3px solid #efdebb85;box-shadow:inset 0 0 20px #1f292772,0 0 0 5px #18292518;border-radius:50%;background:radial-gradient(transparent 42%,#28363264);display:grid;place-items:center}#stick:before,#stick:after{content:"";position:absolute;opacity:.7;background:#eddfc6;height:5px;width:1px;left:50%;top:7px}#stick:after{top:auto;bottom:7px}#knob{width:38%;height:38%;border:1px solid #ead9b799;background:#303f3f86;box-shadow:0 2px 5px #1114;border-radius:100%}#buttons{position:absolute;right:calc(var(--right) + 4 * var(--u));bottom:calc(var(--bottom) + 3 * var(--u));width:calc(201 * var(--u));height:calc(157 * var(--u));pointer-events:none}#buttons button{position:absolute;display:grid;place-items:center;width:calc(46 * var(--u));height:calc(46 * var(--u));border:1px solid #dbc9a695;border-radius:50%;background:linear-gradient(145deg,#26372eaa,#25302e8a);font:500 calc(22 * var(--u)) "Songti SC",serif;box-shadow:inset 0 0 0 3px #242c263b,0 2px 5px #1113;color:#f9eacb;text-shadow:0 1px 2px #1f211d}#buttons .pressed,#stick:active{background-color:#b39858a8}#buttons .attack{width:calc(64 * var(--u));height:calc(64 * var(--u));right:0;bottom:calc(24 * var(--u));font-size:calc(32 * var(--u));background:linear-gradient(145deg,#97764ecc,#644b34cc);border-color:#ead4a7}#buttons .guard{right:calc(66 * var(--u));bottom:0}#buttons .dodge{right:calc(105 * var(--u));bottom:calc(34 * var(--u))}#buttons .jump{right:calc(62 * var(--u));bottom:calc(68 * var(--u))}#buttons .lock{right:calc(5 * var(--u));bottom:calc(99 * var(--u))}#buttons .change,#buttons .rage{width:calc(41 * var(--u));height:calc(41 * var(--u));font-size:calc(16 * var(--u))}#buttons .change{right:calc(124 * var(--u));bottom:calc(95 * var(--u))}#buttons .rage{right:calc(160 * var(--u));bottom:calc(56 * var(--u));opacity:.64}#buttons .ready{opacity:1;border-color:#ffd68b;color:#ffdb85}
#overlay{z-index:5;align-items:center;justify-content:center;background:linear-gradient(100deg,#101b1be8,#131c1cbd);padding:12px max(8vw,var(--left));overflow:auto}#card{width:min(620px,95%);border-left:2px solid #ba9e6a;padding:0 0 0 clamp(15px,4vw,40px);max-height:100%;overflow-y:auto}#cardKicker{font-size:10px;line-height:1.65;color:#d9be8c}#cardTitle{font-size:clamp(24px,8vh,54px);line-height:1.18;margin:.16em 0 .32em;letter-spacing:.1em}#cardBody{font:clamp(12px,3.1vh,18px)/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#e8e1cf;white-space:pre-line}#cardActions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:4vh}#cardBody b{font-weight:600;color:#f3d59f}
@media(orientation:portrait){#stage{inset:0 auto auto 100%;width:100dvh;height:100vw;transform-origin:0 0;transform:rotate(90deg);--u:clamp(.80px,.254vw,1.32px);--left:max(14px,env(safe-area-inset-top));--right:max(14px,env(safe-area-inset-bottom))}.titlecopy h1{font-size:13vw}.home-actions{margin-top:6vw}#cardTitle{font-size:7.5vw}#cardBody{font-size:3vw}.identity{width:23%}.caps{font-size:2vw}.eyebrow{font-size:2.7vw}#location{gap:5px}#say{font-size:2.8vw}}
@media (max-height:355px){#buttons button:before{content:"";position:absolute;inset:-3px;border-radius:50%}}
#offlineState{margin:4px 0 0;font:11px -apple-system,sans-serif;letter-spacing:.05em;color:#d5d2c1}
