:root{color-scheme:dark;font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;background:#09151e;color:#f7f0e6}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(circle at 50% 50%,#223943,#09151e 70%)}button,select,input{font:inherit}button{cursor:pointer}.shell{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:18px;padding:12px}.phone{position:relative;width:min(calc(100dvh * .5625 - 24px),calc(100vw - 24px));aspect-ratio:9/16;max-height:calc(100dvh - 24px);overflow:hidden;background:#29463d;box-shadow:0 20px 65px #0009,0 0 0 1px #c49d6070;touch-action:none}.phone canvas{display:block;width:100%;height:100%}.top-hud{position:absolute;top:0;left:0;right:0;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 15px;background:linear-gradient(#081520ed,#0b1c29dc 72%,transparent);pointer-events:none}.hud-row{display:flex;align-items:center;justify-content:space-between;gap:7px;white-space:nowrap;font-size:clamp(11px,2.2vh,15px)}.hud-row strong{color:#ffdf9d}.hud-row.sub{font-size:clamp(10px,1.8vh,12px);color:#e0e6e0}.hud-row.stage{margin-top:7px;font-size:clamp(11px,2vh,13px)}#cp{color:#f4d7a5;font-weight:700}.cp-delta{position:absolute;top:37px;right:12px;font-weight:800;color:#aef2bd;font-size:14px;text-shadow:0 2px 8px #000}.cp-delta.negative{color:#ffaca5}.cp-delta[hidden]{display:none}.hp-track,.boss-track{height:8px;margin:7px 0 3px;border:1px solid #d8ad7a7a;background:#213039}.hp-track>div{height:100%;background:linear-gradient(90deg,#ae353c,#ef6653)}.boss-track>div{height:100%;background:linear-gradient(90deg,#772d56,#e8796b)}.boss-hud{margin-top:8px;padding:6px 8px;background:#301725d6;border:1px solid #bb7768;font-size:12px}.boss-hud[hidden],.notice[hidden],.boss-button[hidden],.dialog[hidden],.death-overlay[hidden],.debug[hidden]{display:none}.bottom-hud{position:absolute;left:0;right:0;bottom:0;padding:18px 10px calc(9px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#0a1823df 30%,#0a1823f2);font-size:12px;color:#f5e1ba}.buttons{display:flex;justify-content:flex-end;gap:5px;margin-top:5px}.buttons button,.sheet button,.debug button{border:1px solid #a9895b;color:#f8e8c9;background:#263b46;border-radius:6px;padding:6px 9px;min-height:32px}.buttons .boss-button{background:#8c443e;border-color:#e1a57e;animation:pulse 1.8s infinite}.notice{position:absolute;top:24%;left:7%;right:7%;padding:10px;border:1px solid #d3ae79;background:#102431ec;color:#ffe8bd;text-align:center;font-size:15px;font-weight:700;box-shadow:0 8px 26px #0009;pointer-events:none}@keyframes pulse{50%{box-shadow:0 0 16px #ecaf75bd}}.death-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#180e18a8;color:#ffe0bc;pointer-events:none}.death-overlay strong{font-size:26px}.dialog{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:12px;background:#06131be0}.sheet{width:min(410px,100%);max-height:80dvh;overflow:auto;padding:16px;background:#142a36;border:1px solid #b79567;border-radius:10px;box-shadow:0 22px 60px #000a}.sheet header,.debug header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;color:#ffdf9f}.map-list,.martial-list{display:grid;gap:8px}.map-item,.martial-item{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #6e7780;border-radius:7px;background:#253c44}.map-item{width:100%;text-align:left}.map-item.current{border-color:#ffdc95;background:#354b48}.map-item:disabled{opacity:.48}.map-icon{font-size:23px;min-width:34px;text-align:center}.map-copy,.martial-copy{display:grid;gap:3px;flex:1}.map-copy small,.martial-copy small{color:#bacbc9;font-size:12px}.martial-item button{white-space:nowrap}.martial-section{color:#ffdf9f;margin:15px 0 7px}.martial-item.equipped{border-color:#d2aa6d}.debug{width:310px;max-height:calc(100dvh - 24px);overflow:auto;padding:15px;background:#122833;border:1px solid #9c805a;border-radius:10px}.debug-controls{display:grid;gap:8px}.debug-controls label{display:grid;grid-template-columns:1fr 95px;align-items:center;gap:8px;font-size:13px}.debug-controls input,.debug-controls select{min-width:0;width:100%;padding:5px;color:#fff;background:#0c1c25;border:1px solid #607982;border-radius:4px}.debug-controls input[type=checkbox]{width:22px;height:22px}.debug-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}#diagnostics{white-space:pre-wrap;border-top:1px solid #4a6168;padding-top:10px;color:#b8cdd0;font-size:12px;line-height:1.55}.death-overlay span{font-size:14px}@media(max-width:760px){.shell{padding:0}.phone{width:min(100vw,calc(100dvh * .5625));max-height:100dvh}.debug{position:fixed;right:7px;bottom:7px;z-index:15;width:min(310px,calc(100vw - 14px));max-height:75dvh;background:#102632f5}}@media(min-aspect-ratio:9/16) and (max-width:760px){.phone{height:100dvh}}.heart-summary,.qi-value{margin:10px 0;color:#ffe0a3;font-weight:700}.heart-card{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #71908b;border-radius:6px;margin:7px 0;background:#1d3943}.heart-card small{color:#c2d4d0}.tree-root{text-align:center;padding:9px;border:1px solid #d2ae70;border-radius:25px;margin:12px auto;width:max-content;max-width:100%;background:#35473f}.tree-branches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow-x:auto}.tree-branch{display:grid;align-content:start;gap:7px;min-width:74px;text-align:center;font-size:12px}.tree-branch>strong{color:#f5d59c}.sheet .tree-node{display:grid;gap:3px;width:100%;min-height:80px;padding:5px 3px;white-space:normal;text-align:center;font-size:11px;line-height:1.25}.tree-node small{font-size:10px;color:#c8d0cf}.sheet .tree-node.invested{border-color:#e9c27b;background:#446052}.sheet .tree-node.available{border-color:#8bd2a7;background:#275449}.sheet .tree-node.locked{opacity:.5}.qi-track{height:12px;border:1px solid #b99b6a;background:#0d1e27;margin:10px 0}.qi-track>div{height:100%;background:#c59bdf}.sheet .breakthrough{width:100%;margin-top:10px;background:#4a4769}.sheet .breakthrough:disabled{opacity:.45}.sheet button:disabled{cursor:default}.tree-branch .tree-node+ .tree-node{position:relative}.tree-branch .tree-node+ .tree-node::before{content:'';position:absolute;left:50%;top:-8px;height:7px;border-left:1px solid #b59d72}.buttons{flex-wrap:wrap}.debug .reset-save{width:100%;margin:8px 0;border-color:#c97668;color:#ffe1d8;background:#4a292d}.reset-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.reset-actions button{border:1px solid #a9895b;color:#f8e8c9;background:#263b46;border-radius:6px;padding:8px 16px;min-height:40px}.reset-actions .reset-confirm{border-color:#cf8b76;background:#723633;color:#fff1e8}.reset-error{color:#ffb4a7}.phone canvas{touch-action:none}.martial-quick{margin:0 0 5px;padding:5px 6px 4px;border:1px solid #bca27684;border-radius:8px;background:#0b1a24d9;pointer-events:auto}.martial-detail-mark{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 10px;border:1px solid #d1a967;border-radius:12px;background:#274451;color:#e6f3dc;font-size:28px}.martial-detail-summary{text-align:center}.martial-grades{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.martial-grades button{padding:5px 1px;font-size:12px}.martial-grades button.selected{border-color:#f8cc74;background:#435750}.martial-stats{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.martial-stats span{padding:4px 6px;border:1px solid #6f8b8a;border-radius:4px;font-size:12px}.stronger-copy{color:#9de5a6}.sheet .detail-action{margin:4px 5px 0 0;min-height:38px;background:#345b50}.passive-overlay[hidden]{display:none}.passive-overlay{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;background:#07111d;color:#f6ead7}.tree-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:calc(7px + env(safe-area-inset-top,0px)) 8px 7px;background:#142636;border-bottom:1px solid #887853;z-index:2}.tree-toolbar button,.tree-detail button{border:1px solid #8c795e;border-radius:5px;background:#283c4b;color:#f4e7cf;padding:6px 8px;min-height:32px}.tree-tabs{display:flex;gap:4px}.tree-tabs button.selected{background:#486354;border-color:#d1b47b}.tree-points{margin-left:auto;color:#ffdf96;font-weight:700;font-size:13px;white-space:nowrap}.tree-viewport{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:radial-gradient(circle at center,#253146 0,#0c192b 45%,#080f1c 100%);cursor:grab}.tree-viewport:active{cursor:grabbing}.tree-world{position:absolute;top:0;left:0;width:1600px;height:1600px;transform-origin:0 0;will-change:transform}.tree-world svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.tree-world line{stroke-width:2.3;transition:stroke .2s,filter .2s}.tree-world line.locked{stroke:#47536499}.tree-world line.available{stroke:#a6c9c9;filter:drop-shadow(0 0 4px #84c9d5)}.tree-world line.invested{stroke:#f8c875;stroke-width:3.4;filter:drop-shadow(0 0 6px #f7b45e)}.tree-node{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);width:28px;height:28px;padding:0;border:2px solid #72828b;border-radius:50%;background:#26394a;color:#d0dde0;box-shadow:0 2px 9px #000b;cursor:pointer;touch-action:none}.tree-node.major{width:41px;height:41px;border-width:3px;box-shadow:0 0 0 3px #6d809066}.tree-node.keystone{width:53px;height:53px;border-radius:11px;clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%);border:0;box-shadow:none}.tree-node.root{width:55px;height:55px;border:3px solid #ffd684;background:#426867;color:#fff0c9;box-shadow:0 0 25px #e8c47d99}.tree-node-symbol{font-size:19px;line-height:1}.tree-node.small .tree-node-symbol{font-size:21px}.tree-node[data-state=AVAILABLE]{border-color:#9ee4e0;background:#325b65;color:#edfffa;box-shadow:0 0 13px #70d6d4a9}.tree-node[data-state=INVESTED]{border-color:#ffdb95;background:#70604b;color:#fff1bc;box-shadow:0 0 15px #ffc975b8}.tree-node[data-state=EXCLUSIVE_LOCKED]{background:#493640;border-color:#965b61;color:#b99194}.tree-node-label{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:92px;text-align:center;white-space:nowrap;color:#f1d6a0;font-size:13px;text-shadow:0 2px 5px #000}.tree-detail[hidden]{display:none}.tree-detail{position:absolute;z-index:4;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));max-height:48dvh;overflow:auto;padding:12px 14px;border:1px solid #aa936d;border-radius:10px;background:#172c3bef;box-shadow:0 10px 30px #000a;font-size:14px;line-height:1.45}.tree-detail p{margin:6px 0}.tree-detail-head{display:flex;align-items:center;gap:8px}.tree-detail-head strong{font-size:17px;color:#ffdfa1}.tree-detail-head span{font-size:12px;color:#a5cbcb}.tree-detail-head button{margin-left:auto}.tree-effect{color:#c8eee5}.tree-tradeoff{color:#ffc09d}.tree-detail .tree-invest{margin-top:7px;background:#48644c;min-height:40px}.tree-detail .tree-invest:disabled{opacity:.65;background:#36434a}.tree-equip[hidden]{display:none}@media(max-width:520px){.tree-toolbar{gap:3px}.tree-toolbar button{font-size:12px;padding:5px 6px}.tree-points{order:2;width:100%;text-align:center}.tree-viewport{min-height:0}}.tree-node.keystone{clip-path:none;border:3px solid #a18cbb;box-shadow:0 0 0 4px #55496988,0 0 18px #8c79ba88}.relic-slots,.relic-actions{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.relic-slot{flex:1;min-width:100px;border:1px solid #bc9b6c;background:#372d35;color:#f5ddad;padding:10px;border-radius:10px}.relic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.relic-tile{white-space:pre-line;min-height:67px;border:1px solid #73596f;border-radius:9px;background:#242b3b;color:#f2e2c9;font-size:11px}.relic-tile.locked{opacity:.55}.relic-tile.selected{outline:2px solid #e4bb75}.relic-detail{border-top:1px solid #846d76;margin-top:16px;padding:8px}.relic-detail p{font-size:13px;line-height:1.5}.relic-actions button{background:#a77452;color:white;border:0;border-radius:8px;padding:9px 14px}.relic-actions button:disabled{opacity:.45}.tree-intrinsic{padding:7px 15px;color:#e4c6f1;background:#312943;font-size:12px;line-height:1.4}.tree-node.major[data-state="INVESTED"]{box-shadow:0 0 16px 5px #c292ed}.tree-lane{color:#f4cf99}.loot-toast{position:absolute;top:16%;left:13%;right:13%;z-index:4;padding:7px 10px;border:1px solid #d5bd8c;border-radius:8px;background:#182734df;color:#fff0c5;text-align:center;font-size:13px;font-weight:700;line-height:1.4;white-space:pre-line;pointer-events:none;box-shadow:0 5px 15px #0007}.loot-toast[hidden]{display:none}.hold-resources{padding:10px;background:#314454;border:1px solid #8caa9f;border-radius:8px;color:#f8dfa7;font-weight:700}.hold-heading{margin:18px 0 7px;color:#f8dfa7}.hold-card{display:grid;gap:6px;margin:8px 0;padding:10px;border:1px solid #697d81;border-radius:8px;background:#1e3340;color:#f4ebd8}.hold-card strong{font-size:15px}.hold-card small{display:block;font-size:13px;line-height:1.4;color:#d1dfd8}.hold-card p{margin:0;font-size:14px}.hold-card button,.hold-character-select{min-height:38px;padding:7px 10px;border-radius:7px;border:1px solid #a69973;background:#385748;color:#fff4d8}.hold-card button:disabled{opacity:.55;background:#394752}.hold-character-select{width:100%;margin-bottom:9px}.sheet #dialog-content>button{margin:4px 6px 4px 0;min-height:38px;padding:7px 10px;border-radius:7px;border:1px solid #a69973;background:#385748;color:#fff4d8}.hero-head{justify-content:flex-start;min-height:42px}.hero-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.hero-head #cp{margin-left:auto}.profile-trigger{flex:none;width:42px;height:42px;border:1px solid #dbb47a;border-radius:10px;padding:0;background:#263a41;overflow:hidden;pointer-events:auto;box-shadow:inset 0 0 10px #dcb67b55}.profile-trigger canvas{display:block;width:100%;height:100%}.profile-trigger:focus-visible,.profile-tabs button:focus-visible,.profile-setting:focus-within{outline:2px solid #ffda9b;outline-offset:2px}.profile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.profile-tabs button{min-height:40px}.profile-tabs button.selected{border-color:#f0c486;background:#46605b;color:#fff3d9}.profile-stats{display:grid;gap:0;margin:0}.profile-stat{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 2px;border-bottom:1px solid #69817955;font-size:14px;line-height:1.4}.profile-stat dt{color:#c9d6d2}.profile-stat dd{margin:0;text-align:right;font-weight:700;color:#ffe3ae;overflow-wrap:anywhere}.profile-settings{display:grid;gap:8px}.profile-setting{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:8px 12px;border:1px solid #69817977;border-radius:7px;font-size:15px}.profile-setting input{width:22px;height:22px;accent-color:#e9c17d}.profile-setting input:disabled{opacity:.5}.bigeong-modifier{font-size:12px;color:#ffe6af;text-align:center;padding:3px 0;background:#1d2738cf}.bigeong-banner{position:absolute;z-index:9;top:25%;left:7%;right:7%;padding:12px 8px;text-align:center;border:1px solid #dec08a;border-radius:10px;background:#192536e8;color:#ffe7b9;font-weight:800;font-size:20px;box-shadow:0 0 24px #e0ba8055;pointer-events:none}.bigeong-warning{position:absolute;z-index:8;top:48%;left:10%;right:10%;text-align:center;padding:8px;background:#4e2423d9;color:#ffe2ae;border:1px solid #f0ad72;border-radius:8px;font-weight:700;pointer-events:none}.passive-overlay{height:100dvh;max-height:100dvh}.tree-toolbar{flex:0 0 auto;min-height:12dvh;max-height:17dvh;align-content:center;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 5px}.tree-title{width:100%;font-size:17px;color:#ffe1a8}.tree-tabs{min-width:0}.tree-tabs button{white-space:nowrap}.tree-points{font-size:12px}.tree-intrinsic{flex:0 0 auto;min-height:5dvh;max-height:9dvh;display:grid;align-content:center;gap:2px;overflow:hidden;cursor:pointer}.tree-intrinsic span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-viewport{flex:1 1 auto}.tree-footer{flex:0 0 12dvh;display:flex;align-items:center;justify-content:space-around;padding:8px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#142636;border-top:1px solid #887853;z-index:2}.tree-footer button{min-width:38%;min-height:42px;border:1px solid #bca071;border-radius:7px;background:#304755;color:#f8e7c7;font-weight:700}.tree-sector-label,.tree-lane-label{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;color:#fff0c9;text-shadow:0 1px 5px #050b18;font-size:14px;z-index:1}.tree-sector-label{max-width:155px;overflow:hidden;text-overflow:ellipsis;border:1px solid #c5a36e;background:#344758ed;border-radius:12px;padding:5px 8px;cursor:pointer}.tree-lane-label{font-size:12px;color:#a9e4db;background:#112c3cbd;border-radius:6px;padding:2px 4px;pointer-events:none}.tree-node.major-two{width:48px;height:48px;border-color:#d7baee;box-shadow:0 0 0 4px #8d5da880}.tree-node.keystone[data-state=LOCKED]{filter:grayscale(.8);background:#26303b;color:#99a1a8}.tree-node[data-state=AVAILABLE]{animation:tree-ready 1.7s ease-in-out infinite}@keyframes tree-ready{50%{box-shadow:0 0 22px 5px #70d6d4cc}}.tree-detail{bottom:calc(12dvh + env(safe-area-inset-bottom,0px));height:38dvh;max-height:38dvh;left:0;right:0;border-radius:16px 16px 0 0;background:#172c3bf7}.tree-sector-info{color:#e6b986}@media(max-width:520px){.tree-toolbar{min-height:12dvh;max-height:18dvh}.tree-points{order:0;width:auto;margin-left:auto}.tree-title{font-size:15px}.tree-tabs button{padding:4px 5px;font-size:11px}.tree-sector-label{font-size:12px}}.tree-tag{display:inline-block;color:#e2c89e;border:1px solid #a88a6a;background:#314151;border-radius:6px;padding:3px 7px}.tree-node[data-state=PENDING]{border-color:#eed9ff;background:#6a5181;color:#fff0ff;box-shadow:0 0 0 5px #bb89de66,0 0 20px #db9cff;animation:none}.tree-world line.pending{stroke:#d7a8ef;stroke-width:3.4;stroke-dasharray:7 5;filter:drop-shadow(0 0 5px #d7a8ef)}.tree-footer{flex:0 0 auto;min-height:10dvh;flex-wrap:wrap;gap:6px;justify-content:center}.tree-footer button{flex:1 1 calc(25% - 6px);min-width:0;min-height:42px}.tree-footer button[hidden]{display:none}.tree-confirm{background:#587453!important;border-color:#c8d79c!important}.tree-reset{border:1px solid #bca071;border-radius:7px;background:#304755;color:#f8e7c7;padding:6px 9px;min-height:34px}.tree-detail{position:absolute;z-index:5;right:auto;bottom:auto;height:auto;max-height:none;overflow:auto;border-radius:12px;padding:10px 12px;background:#172c3bf7;box-shadow:0 8px 30px #000d;font-size:12px;line-height:1.35;pointer-events:none}.tree-detail p{margin:4px 0}.tree-detail-head strong{font-size:15px}.tree-detail .tree-tag{font-size:11px;padding:1px 6px;margin-top:4px}.tree-reset-dialog[hidden]{display:none}.tree-reset-dialog{position:fixed;inset:0;z-index:8;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;background:#06121dda;text-align:center}.tree-reset-dialog strong{font-size:19px;color:#ffe1a8}.tree-reset-dialog p{max-width:330px;line-height:1.5}.tree-reset-actions{display:flex;gap:9px;width:min(100%,330px)}.tree-reset-actions button{flex:1;border:1px solid #bca071;border-radius:8px;background:#304755;color:#f8e7c7;padding:12px 6px}.tree-reset-actions button:last-child{background:#73514c;border-color:#d39486}.heart-status{font-size:12px;color:#d4bbf4;text-align:center;padding:3px}.next-place{display:block;margin:6px auto;padding:8px 18px}.next-place[hidden]{display:none}.martial-lore{line-height:1.8;color:#e7dac0;padding:12px 0}.martial-effect-title{font-size:14px;color:#d4b987;margin:12px 0 6px}.martial-effect{font-size:13px;line-height:1.6;color:#c6d5d7}.onboarding-overlay{position:absolute;inset:0;z-index:80;background:rgba(7,10,12,.72);color:#eee2cb;isolation:isolate}.onboarding-overlay[hidden],.onboarding-overlay [hidden],.beginner-quest[hidden]{display:none!important}.prologue-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.prologue-mode{background:#171c20}.prologue-mode~.top-hud,.prologue-mode~.bottom-hud{visibility:hidden}.onboarding-sheet{position:absolute;left:5%;right:5%;bottom:max(5%,env(safe-area-inset-bottom));padding:clamp(12px,3vw,22px);background:linear-gradient(125deg,#ded0b3,#c1b18e);border:1px solid #a88e57;box-shadow:0 10px 35px #0007;color:#31291f;font-family:'Noto Serif KR','Batang',serif;border-radius:2px;animation:onboarding-fade .45s ease both}.prologue-mode .onboarding-sheet{background:linear-gradient(0deg,#10191aee,#19221ddd);border-color:#807454;color:#e6dac3;bottom:4%}.onboarding-eyebrow{margin:0 0 8px;font-size:11px;letter-spacing:.18em;color:#826339}.prologue-mode .onboarding-eyebrow{color:#bba47b}.onboarding-title{font-size:clamp(18px,4.5vw,25px);font-weight:500;margin:0 0 10px;letter-spacing:.08em}.onboarding-body{font-size:clamp(13px,3.3vw,16px);line-height:1.85;white-space:pre-line;word-break:keep-all;margin:0 0 14px}.onboarding-next{display:block;width:100%;padding:12px;color:#f1e1ba;background:#433626;border:1px solid #a38a58;font:inherit;min-height:44px;cursor:pointer}.onboarding-name label{font-size:14px}.onboarding-name input{display:block;width:100%;margin-top:10px;box-sizing:border-box;padding:12px;background:#e4d6bb;border:1px solid #a38a58;color:#28231b;font:inherit;font-size:18px;min-height:44px}.onboarding-error{color:#e6a499;font-size:13px}.tutorial-top{bottom:auto;top:max(10%,env(safe-area-inset-top))}.tutorial-highlight{z-index:81!important;box-shadow:0 0 0 2px #c8ac6e,0 0 16px #c8ac6e50!important}.tutorial-highlight:not(.tutorial-tap-target){pointer-events:none!important}canvas.tutorial-highlight{position:absolute!important;z-index:1!important;filter:brightness(1.25)}.phone:has(.tutorial-highlight) .top-hud,.phone:has(.tutorial-highlight) .bottom-hud{z-index:81;pointer-events:none}.tutorial-tap-target{pointer-events:auto!important}.target-mode{pointer-events:auto;background:rgba(7,10,12,.72)}.prologue-caption{position:absolute;top:36%;left:8%;right:8%;white-space:pre-line;text-align:center;line-height:2;font-family:Batang,serif;color:#e9dcc1}.beginner-quest{position:absolute;left:3%;top:27%;z-index:6;max-width:62%;font-size:11px;line-height:1.7;white-space:pre-line;padding:7px 10px;border-left:2px solid #af9460;background:#101819c9;color:#e2d3b4;pointer-events:none}.phone:has(.prologue-mode:not([hidden])) .top-hud,.phone:has(.prologue-mode:not([hidden])) .bottom-hud{visibility:hidden}@keyframes onboarding-fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-height:650px){.onboarding-sheet{bottom:2%;padding:12px}.onboarding-body{font-size:12px;line-height:1.65}.onboarding-title{font-size:18px;margin-bottom:7px}.onboarding-eyebrow{margin-bottom:5px}.onboarding-next{padding:9px}.tutorial-top{top:5%}}.onboarding-overlay:not(.prologue-mode){background:transparent}.tutorial-hole{position:absolute;border:1px solid #bea36b;box-shadow:0 0 0 200vmax rgba(7,10,12,.72);pointer-events:none;border-radius:5px;z-index:0}.onboarding-sheet,.prologue-caption{z-index:2}.tutorial-highlight{box-shadow:none!important}.phone:has(.tutorial-highlight) .top-hud,.phone:has(.tutorial-highlight) .bottom-hud{z-index:3;pointer-events:auto}.phone:has(.tutorial-tap-target) .bottom-hud{z-index:81;pointer-events:none}.phone:has(.tutorial-tap-target) .bottom-hud .buttons button:not(.tutorial-tap-target),.phone:has(.tutorial-tap-target) .bottom-hud #martial-name,.phone:has(.tutorial-tap-target) .bottom-hud #martial-quick{filter:brightness(.28);pointer-events:none}.target-mode{pointer-events:none}.target-mode .tutorial-hole{border-color:#dcc084}.acquisition-card{display:block;padding:14px 12px;margin:10px 0;border:1px solid #907850;background:linear-gradient(120deg,#29322b,#192421);color:#e7d6af;letter-spacing:.04em;animation:onboarding-fade .35s ease both}.item-art{display:inline-block;flex:0 0 auto;width:52px;height:52px;background-repeat:no-repeat;vertical-align:middle;border:1px solid #8e796849;border-radius:10px;background-color:#111b24;margin:4px;pointer-events:none}.item-grade-5{border-color:#7c8592}.item-grade-4{border-color:#70b08a}.item-grade-3{border-color:#73aee9}.item-grade-2{border-color:#ba8ae7}.item-grade-1{border-color:#edca77}.relic-tile .item-art{display:block;margin:0 auto 6px}.relic-slot .item-art{width:36px;height:36px}.relic-detail>.item-art{width:80px;height:80px}
@media(max-width:480px){.item-art{width:44px;height:44px}.relic-tile{font-size:12px}}.item-art{overflow:hidden;background-color:#34434c}.item-art>.item-art-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.combat-hud{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.hero-hud,.combat-hud .boss-hud{min-width:0;padding:5px 7px;background:#10212bd9;border:1px solid #b4966159;border-radius:7px}.combat-hud .boss-hud{margin:0;background:#2b1721cc}.hero-head{justify-content:flex-start;font-size:11px}.hero-head #hero-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.hero-head .profile-trigger{width:26px;height:26px;min-width:26px;padding:0}.hero-hud #cp{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-hud #hp-label,#boss-hp-label{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.combat-hud .hp-track,.combat-hud .boss-track{height:6px;margin:4px 0}.combat-hud #boss-name{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.combat-hud #boss-state{display:block;font-size:10px;color:#d9b6a1;margin-top:5px}.top-hud{padding:6px 8px 10px;background:linear-gradient(#081520d9,transparent)}.top-hud .stage{align-items:start;font-size:11px;margin-top:5px;white-space:normal}.top-hud #stage-name{flex-shrink:0;max-width:45%;word-break:keep-all}.top-hud #stage-time{font-size:10px;text-align:right;word-break:keep-all;overflow-wrap:anywhere}.field-counts{justify-content:flex-start;font-size:10px!important;gap:12px}.status-icons{display:flex;gap:3px;flex-wrap:wrap;position:relative}.status-icons:empty{display:none}.status-icon{width:24px;height:24px;flex-shrink:0;border:1px solid #a58e6266;border-radius:4px;background-color:#17232b;background-size:96px 192px;background-repeat:no-repeat;position:relative;padding:0;pointer-events:auto}.status-icon span{position:absolute;bottom:-2px;right:-1px;font-size:8px;color:#fff;background:#07151cdd;padding:0 2px;border-radius:2px;white-space:nowrap}.status-hint{width:100%;font-size:10px;color:#f4d9a6;word-break:keep-all}.cp-delta{top:4px;right:8px;font-size:10px}.notice{top:auto;bottom:23%;left:4%;right:4%;padding:5px 8px;font-size:11px;font-weight:500;border:0;border-left:2px solid #c5a76d;box-shadow:none;background:#0b1b26b8;text-align:left;word-break:keep-all;overflow-wrap:anywhere;max-height:44px;overflow:hidden}.loot-toast{top:auto;bottom:29%;left:4%;right:4%;font-size:10px;padding:4px 7px;max-height:34px;overflow:hidden;border:0;background:#0b1b269c;box-shadow:none;text-align:left;white-space:normal;word-break:keep-all}.beginner-quest{top:auto;bottom:35%;left:3%;max-width:65%;padding:4px 7px;font:10px/1.5 system-ui;text-align:left;border:0;border-left:2px solid #af9460;background:#101819a6;pointer-events:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:26px}.beginner-quest.expanded{white-space:pre-line;word-break:keep-all;max-height:82px;overflow:auto}.bottom-hud{padding:12px 8px 7px}.buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.buttons button{min-width:0;min-height:36px;padding:5px 2px;font-size:11px;white-space:nowrap;word-break:keep-all}.buttons button[hidden]{display:none}#martial-name,.heart-status{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet{padding:12px;max-height:88dvh;overscroll-behavior:contain;word-break:keep-all;overflow-wrap:anywhere}.sheet>header{position:sticky;top:-12px;z-index:3;background:#142a36;padding:8px 0;margin-bottom:8px;gap:8px}.sheet>header>button{white-space:nowrap;min-height:36px}.map-copy,.martial-copy{min-width:0}.map-item,.martial-item{gap:7px;padding:8px}.map-copy strong,.martial-copy strong{font-size:13px}.sheet button{word-break:keep-all}.sheet pre{white-space:pre-wrap;overflow-wrap:anywhere}.bigeong-banner{max-width:92%;font-size:11px;word-break:keep-all}.martial-quick.quick-collapsed{display:none}.quick-toggle{border:1px solid #9e855b66;background:#172b35cc;color:#eed7aa;font-size:10px;border-radius:5px;padding:4px 8px;min-height:28px;margin-bottom:3px}.bottom-hud:has(.quick-collapsed){padding-top:8px}.martial-quick{max-height:140px;overflow:auto}.sheet button,.sheet input,.sheet select{max-width:100%}#growth-button::before,#equipment-button::before,#relic-button::before{content:'';display:inline-block;width:16px;height:16px;background-size:contain;background-position:center;background-repeat:no-repeat;vertical-align:middle;margin-right:2px}#growth-button::before{background-image:url('./assets/icons/equipment/weapon-g3.webp')}#equipment-button::before{background-image:url('./assets/icons/equipment/armor-g3.webp')}#relic-button::before{background-image:url('./assets/icons/relics/relic-05.webp')}.hero-head{min-height:26px}.status-icons{max-height:56px;overflow:auto}.top-hud .beginner-quest{position:relative;inset:auto;display:block;width:max-content;max-width:100%;margin:4px 0 0;min-height:26px;background:#101819c9}.top-hud .beginner-quest.expanded{max-width:100%;max-height:none;overflow:visible;white-space:pre-line}.top-hud{pointer-events:none}.top-hud button{pointer-events:auto}.martial-quick{max-height:none;overflow:visible;padding:5px 6px}.painted-icon{display:inline-block;flex:none;background-image:url('./assets/ui/skill-icons.webp?art=restore');background-size:400% 400%;background-repeat:no-repeat;border-radius:5px}.martial-detail-mark.painted-icon{width:72px;height:72px;background-color:#172b35;font-size:0}.tree-tabs{flex-wrap:wrap}.tree-tabs button{display:flex;align-items:center;gap:4px}.heart-art{width:24px;height:24px}.tree-node .painted-icon{width:100%;height:100%;border-radius:inherit}.tree-node{overflow:hidden}.tree-toolbar{max-height:none;min-height:0}.tree-points{white-space:normal;word-break:keep-all}.tree-intrinsic{max-height:none;min-height:0;padding:8px 12px}.tree-footer{flex-basis:auto;min-height:52px}.tree-footer button{min-width:0;flex:1;margin:0 3px}
@media(max-width:380px){.tree-tabs button{font-size:10px}}.heart-art{order:-1}.martial-detail-mark.painted-icon{display:block}:root{--ui-frame:#968362;--surface-top:#1c2b34;--surface-bottom:#132029;--ui-tint:#15232b}#dialog[data-theme=martial]{--surface-top:#25343a;--surface-bottom:#17282e;--ui-tint:#203139}#dialog[data-theme=equipment]{--surface-top:#342e27;--surface-bottom:#241f1c;--ui-tint:#302a24}#dialog[data-theme=relic]{--surface-top:#302b3b;--surface-bottom:#211d2c;--ui-tint:#2a2534}#dialog[data-theme=cultivation]{--surface-top:#26332f;--surface-bottom:#182621;--ui-tint:#22302a}#dialog[data-theme=world]{--surface-top:#27303b;--surface-bottom:#19232f;--ui-tint:#222c36}#dialog[data-theme=notice]{--surface-top:#342f25;--surface-bottom:#252219;--ui-tint:#302b22}.sheet,.debug,.onboarding-sheet,.tree-detail,.tree-reset-dialog{background:linear-gradient(155deg,var(--surface-top),var(--surface-bottom));border:1px solid var(--ui-frame);color:#efe6d5;box-shadow:0 8px 25px #0006,inset 0 0 0 2px #ffffff03}.sheet>header{background:var(--surface-top);border-bottom:1px solid #a58d5e33}.sheet button{background:var(--ui-tint);border-color:var(--ui-frame)}.sheet button.selected,.sheet button.current{background:#485449}.prologue-mode .onboarding-sheet{background:linear-gradient(155deg,#192629f5,#101a1df5)}.onboarding-next{background:#303a32;border-color:var(--ui-frame)}.buttons button,.quick-toggle,.tree-toolbar button,.tree-footer button{background:#1b2a31;border:1px solid var(--ui-frame);box-shadow:inset 0 1px #ffffff05}#growth-button,.martial-quick,.quick-toggle{background:linear-gradient(140deg,#25343a,#18272d)}#heart-button,#qi-button{background:linear-gradient(140deg,#28382f,#1a2722)}#equipment-button{background:linear-gradient(140deg,#382e25,#251f1a)}#relic-button{background:linear-gradient(140deg,#342c40,#231e2c)}#map-button,#bigeong-button,#stronghold-button{background:linear-gradient(140deg,#2a3441,#1c2530)}#boss-button{background:linear-gradient(140deg,#442c2d,#2d1d20)}.martial-quick,.hero-hud,.combat-hud .boss-hud{background-image:none;border-color:var(--ui-frame)}.hero-hud{background-color:#13232bf0}.combat-hud .boss-hud{background-color:#2e2026ed}.notice,.loot-toast,.beginner-quest,.bigeong-banner,.bigeong-warning{border:1px solid var(--ui-frame);border-radius:4px;box-shadow:none;background-image:none}.notice{background:#1b2b35eb}.notice[data-theme=reward],.loot-toast{background:#26352bed;color:#dce8cd}.notice[data-theme=warning],.bigeong-warning{background:#3a2925f2;color:#f5d2b7}.notice[data-theme=battle],.bigeong-banner{background:#312432ed;color:#e5d0e5}.beginner-quest{background:#29291fec;color:#e8dfc9}.passive-overlay{--surface-top:#26332f;--surface-bottom:#17231f;--ui-tint:#26312b;background:#101b1d}.tree-toolbar,.tree-footer,.tree-intrinsic{background:linear-gradient(150deg,#23302d,#172523);border-color:var(--ui-frame);background-image:none}.tree-viewport{background:radial-gradient(ellipse at center,#21302f,#101b20 85%)}.tree-intrinsic{display:block;flex:0 0 auto;min-height:0;max-height:none;padding:9px 12px;overflow:visible;cursor:default;color:#d8e4dc;font-size:12px;line-height:1.55;word-break:keep-all}.tree-intrinsic strong{display:block;font-size:12px;color:#ddceac;margin-bottom:3px}.tree-intrinsic span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.tree-node,.tree-node.major,.tree-node.major-two,.tree-node.root,.tree-node.keystone{border-width:1px;box-shadow:none}.tree-world line{stroke-width:1;filter:none}.tree-world line.invested{stroke-width:1.3;filter:none}.tree-world line.available{filter:none}.tree-node[data-state=AVAILABLE],.tree-node[data-state=INVESTED],.tree-node[data-state=PENDING],.tree-node.major[data-state=INVESTED]{box-shadow:0 0 5px #b9d5cb33;animation:none}.tree-node.small{background:#4c5358;border-color:#858d90}.tree-node.small[data-state=LOCKED]{background:#30383d;border-color:#555f65}.tree-node.small[data-state=AVAILABLE]{background:#636e72;border-color:#abb8b9}.tree-node.small[data-state=INVESTED]{background:#89918d;border-color:#d0d5cf}.tree-node.small[data-state=PENDING]{background:#c1c7c5;border-color:#f1f4f0}.tree-node.small[data-state=EXCLUSIVE_LOCKED]{background:#33383b;border-color:#5b6367}.sheet,.martial-quick,.tree-toolbar,.tree-footer,.tree-intrinsic{position:relative}.sheet,.debug,.onboarding-sheet,.tree-detail,.tree-reset-dialog,.martial-quick,.tree-toolbar,.tree-footer,.tree-intrinsic{isolation:isolate}.sheet::before,.debug::before,.onboarding-sheet::before,.tree-detail::before,.tree-reset-dialog::before,.martial-quick::before,.tree-toolbar::before,.tree-footer::before,.tree-intrinsic::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('./assets/ui/panel.webp') center/100% 100% no-repeat;opacity:.24;border-radius:inherit}.sheet::before,.onboarding-sheet::before,.tree-detail::before,.tree-reset-dialog::before{opacity:.28}.tree-toolbar::before,.tree-footer::before,.tree-intrinsic::before{opacity:.16}.sheet>header{background:transparent}.sheet button,.buttons button,.quick-toggle,.tree-toolbar button,.tree-footer button{background-image:linear-gradient(#192b32d9,#192b32d9),url('./assets/ui/panel.webp');background-size:100% 100%}#equipment-button{background-image:linear-gradient(#382e25df,#251f1adf),url('./assets/ui/panel.webp')}#relic-button{background-image:linear-gradient(#342c40df,#231e2cdf),url('./assets/ui/panel.webp')}#heart-button,#qi-button{background-image:linear-gradient(#28382fdf,#1a2722df),url('./assets/ui/panel.webp')}#map-button,#bigeong-button,#stronghold-button{background-image:linear-gradient(#2a3441df,#1c2530df),url('./assets/ui/panel.webp')}#boss-button{background-image:linear-gradient(#442c2ddf,#2d1d20df),url('./assets/ui/panel.webp')}.loot-toast{border:0;border-left:2px solid #b49a66;border-radius:2px;background:#0b1b26bd;color:#f2dfbb;box-shadow:none;text-align:left;font-size:10px;padding:4px 7px}.tree-intrinsic .heart-description{margin:0 0 7px;color:#c9d2cc;font-size:12px;line-height:1.55}.tree-intrinsic .heart-description-label{color:#d7c8a6}.top-hud,.bottom-hud{padding-left:8px;padding-right:8px}.notice,.loot-toast{left:8px;right:8px}.buttons{gap:5px}.buttons button{min-height:38px}.sheet{width:min(94vw,520px)}:root{--ui-frame:#9b855c;--ink-primary:#eee6d4;--ink-muted:#b4c0bd}.sheet{padding:12px;border-radius:12px;border:1px solid #a28a5d;box-shadow:0 14px 55px #0009,inset 0 0 0 3px #16212388;color:var(--ink-primary)}.sheet::before{opacity:.15}.sheet>header{min-height:38px;padding:0 0 10px;margin-bottom:10px;gap:12px;align-items:center}.sheet>header strong{font-size:17px;letter-spacing:.025em}.sheet>header button{min-width:48px;min-height:32px;padding:4px 10px;font-size:12px;border-radius:6px}.sheet button{background-image:linear-gradient(#162a30eb,#14252beb),url('./assets/ui/panel.webp');border-color:#71817b80;border-radius:6px;transition:border-color .15s,background-color .15s}.sheet button.selected,.sheet button[aria-pressed=true]{border-color:#c2a76a;background-color:#455346;color:#ffe3a3}.sheet button:focus-visible,.buttons button:focus-visible{outline:2px solid #e6ca88;outline-offset:2px}.buttons button{font-size:12px;min-height:34px;border-radius:6px;border-color:#9b855c77;background-image:linear-gradient(#1b2d32ec,#15262aec),url('./assets/ui/panel.webp')}.buttons{gap:6px}.hero-hud,.boss-hud{border-radius:7px;border-color:#b19c6c66;box-shadow:inset 0 1px 0 #d9cbab0d}.hp-track,.boss-track{height:5px;border-radius:3px;overflow:hidden}.status-icons{gap:4px}.martial-item{gap:9px;border-color:#7b897866;padding:9px;border-radius:7px}.martial-item strong{font-size:13px;color:#eee0bd}.martial-copy small{font-size:11px;line-height:1.55;color:#aebfb7;word-break:keep-all}.martial-item button{font-size:11px;min-height:29px;padding:4px 8px}.tree-toolbar button,.tree-footer button{border-radius:5px;border-color:#9b855c66}.tree-intrinsic{border-radius:7px}.map-item{border-radius:7px}.map-copy strong{font-size:13px}.map-copy small{font-size:11px;line-height:1.4;color:#adc0b6}
@media(max-width:380px){.sheet{padding:10px}}.tree-node.small{background:radial-gradient(circle at 35% 25%,#9da5a8 0%,#656f74 42%,#333b40 78%);border:1px solid #929ca2;box-shadow:inset 0 1px 2px #ffffff60,inset 0 -3px 4px #101820b3,0 2px 3px #0009;overflow:hidden}.tree-node.small::before{content:'';position:absolute;inset:4px;border:1px solid #c2c9cc40;border-radius:50%;background:linear-gradient(145deg,#ffffff16,#00000024);box-shadow:inset 0 1px 2px #0006;pointer-events:none}.tree-node.small[data-state=LOCKED]{background:radial-gradient(circle at 35% 25%,#606b70,#3b464c 48%,#252d33);border-color:#5d6970;box-shadow:inset 0 1px 1px #a7b1b833,inset 0 -3px 3px #111a20b3,0 2px 3px #0007}.tree-node.small[data-state=AVAILABLE]{background:radial-gradient(circle at 35% 25%,#d0d8d9,#879295 45%,#4a585e 80%);border-color:#c2cdd0;box-shadow:inset 0 1px 2px #ffffffa0,inset 0 -3px 4px #1c2a32a0,0 2px 4px #0009}.tree-node.small[data-state=INVESTED]{background:radial-gradient(circle at 35% 25%,#e2e7e6,#a8b3b0 44%,#657670 80%);border-color:#e1e8e4;box-shadow:inset 0 1px 2px #ffffffe0,inset 0 -3px 4px #273d35a0,0 2px 4px #0009}.tree-node.small[data-state=PENDING]{background:radial-gradient(circle at 35% 25%,#fff,#d0d7d5 45%,#8c9b96 80%);border-color:#fff;box-shadow:inset 0 1px 2px #fff,inset 0 -2px 3px #53655e80,0 0 0 2px #d7e1dc44,0 2px 4px #0009}.tree-node.small[data-state=EXCLUSIVE_LOCKED]{background:radial-gradient(circle at 35% 25%,#555d62,#30393f 70%);border-color:#525d65;box-shadow:inset 0 1px 1px #9aa7af22,inset 0 -2px 3px #07121bcc,0 2px 3px #0007}.tree-node.major,.tree-node.major-two,.tree-node.keystone,.tree-node.root{border:1px solid #8c9c91;box-shadow:0 2px 5px #0009,inset 0 1px 1px #ffffff26}.tree-node.keystone{border-color:#bba777;border-radius:10px}.tree-node.major-two{border-color:#9fae91}.tree-node .passive-painted-icon{background-size:500% 500%;border-radius:inherit}.tree-tabs .heart-art{width:26px;height:26px;border:1px solid #93856b55}.tree-node.major[data-state=LOCKED] .passive-painted-icon,.tree-node.keystone[data-state=LOCKED] .passive-painted-icon{filter:saturate(.45) brightness(.7)}.tree-node[data-state=AVAILABLE]{border-color:#b8d4c5}.tree-node[data-state=INVESTED]{border-color:#e4c889}.tree-node[data-state=PENDING]{border-color:#f4e9be}.tree-detail-head .node-detail-art{width:46px;height:46px;flex:none;border:1px solid #b39b6855;border-radius:7px}.tree-detail-head{flex-wrap:wrap}.tree-detail-head strong{font-size:15px}.tree-detail-head span:not(.painted-icon){font-size:11px}.tree-node.keystone[data-state=LOCKED]{filter:none}.tree-node.major[data-state=LOCKED] .passive-painted-icon,.tree-node.keystone[data-state=LOCKED] .passive-painted-icon{filter:saturate(.6) brightness(.8)}#profile-portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit}.profile-trigger{overflow:hidden;padding:0;background:#182c2d;border:1px solid #b39b6b;border-radius:8px;box-shadow:inset 0 1px 2px #fff2,0 1px 3px #0005}.relic-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px;flex-wrap:nowrap}.relic-slots .relic-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:112px;padding:10px 4px;background:linear-gradient(145deg,#203335,#142326);border:1px solid #85765488;border-radius:12px;box-shadow:inset 0 1px 0 #e1d8b014,0 3px 8px #0002;text-align:center}.relic-slot-portrait{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:radial-gradient(circle,#56616c55,#15262b00 72%)}.relic-slots .relic-slot .item-art{width:52px;height:52px;margin:0;border:0;border-radius:0;background-color:transparent;box-shadow:none}.relic-slot .relic-slot-name{font-size:13px;line-height:1.4;color:#eee0bb;white-space:nowrap}.relic-slot .relic-slot-hint{font-size:10px;line-height:1.35;color:#9cb8ae}.relic-slots .relic-slot.empty{background:linear-gradient(145deg,#1b292b,#132023);border:1px dashed #7d83735c;box-shadow:inset 0 1px 5px #0002}.relic-slot.empty .relic-slot-name{color:#aeb6ad;font-weight:500}.relic-slot.empty .relic-slot-hint{color:#7d928d}.relic-slot-mark{font-size:32px;line-height:1;color:#87918a88;text-shadow:0 1px 2px #0008}.top-hud .next-place{display:block;position:relative;width:max-content;max-width:100%;min-height:32px;margin:6px 0 0;padding:6px 12px;border:1px solid #c2a76a;border-radius:6px;background:linear-gradient(#263b37ed,#182b2aef),url('./assets/ui/panel.webp');background-size:cover;color:#ffe3a3;font-size:12px;font-weight:700;line-height:1.35;white-space:nowrap;pointer-events:auto;box-shadow:inset 0 1px #e8d6ac20,0 2px 6px #0003}.top-hud .next-place[hidden]{display:none}.touch-joystick{position:absolute;z-index:9;width:88px;height:88px;border-radius:50%;transform:translate(-50%,-50%);border:1px solid #dfc28b99;background:radial-gradient(circle,#18303e44 0 54%,#bc9c6133 56% 58%,#12253366 60%);box-shadow:inset 0 0 14px #0005,0 2px 8px #0003;pointer-events:none}.touch-joystick[hidden]{display:none}.touch-joystick-knob{position:absolute;left:50%;top:50%;width:34px;height:34px;border-radius:50%;transform:translate(-50%,-50%);border:1px solid #f0d29dbb;background:radial-gradient(circle at 35% 28%,#c5b17cbb,#415758bb 60%,#20333dcc);box-shadow:inset 0 1px 3px #fff3,0 2px 7px #0006;pointer-events:none}.has-enhancement{position:relative}.has-enhancement::after{content:"";position:absolute;top:3px;right:3px;width:6px;height:6px;border-radius:50%;background:#ef5057;box-shadow:0 0 0 1px #18272dcc;pointer-events:none}.quick-toggle.has-enhancement{padding-right:13px}.hold-elixir-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.hold-elixir-actions button{min-height:38px;border:1px solid #a69973;border-radius:7px;background:#385748;color:#fff4d8;padding:7px 10px}.hold-elixir-actions button:disabled{opacity:.5}.elixir-confirm-copy{text-align:center;margin:18px 0 8px}.loot-toast{top:33.333%;bottom:auto;left:8%;right:8%;background:#0b1b2666;text-align:center;max-height:none;line-height:1.5;border:1px solid #b49a6644;border-radius:4px;padding:6px 9px}.hero-hud .power-row{display:flex;align-items:baseline;justify-content:space-between;gap:4px;min-width:0}.hero-hud .power-row #cp{flex:1;min-width:0}.hero-hud .power-row .cp-delta{position:static;flex:none;max-width:52%;font-size:10px;line-height:1.4;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#smith-button{background-image:linear-gradient(#192b32b0,#192b32d9),url('./assets/smith/forge.webp?art=illustration20261029');background-size:cover;background-position:center 35%}.prologue-mode .onboarding-title{margin:0 0 4px}.prologue-mode .onboarding-eyebrow{margin:0 0 10px;letter-spacing:.04em}.quick-grade{grid-column:2;grid-row:2;font-size:9px;line-height:11px;white-space:nowrap;color:#a8bbb7}.quick-grade[data-grade="2"]{color:#91cbd5}.quick-grade[data-grade="3"]{color:#c8a1e2}.quick-grade[data-grade="4"]{color:#edcb78}.plum-level-panel{display:flex;align-items:center;justify-content:center;gap:8px 16px;flex-wrap:wrap;padding:10px;border-top:1px solid #e5a7c24a;background:#281b30}.plum-level-panel strong{color:#ffd4e6}.plum-level-panel span{font-size:12px}.plum-level-up{background:#593047;border:1px solid #edb3cb;border-radius:7px;color:#ffe7f1;padding:8px 12px}.plum-level-up:before{content:'';display:inline-block;width:20px;height:20px;margin-right:5px;vertical-align:middle;background:url('./assets/huashan-bloom/level-up.webp') center/contain no-repeat}.tree-node[data-plum-side=left]{--plum:#f78db7}.tree-node[data-plum-side=right]{--plum:#cba1f3}.tree-node[data-plum-side][data-state=INVESTED],.tree-node[data-plum-side][data-state=PENDING]{border-color:var(--plum);box-shadow:0 0 12px color-mix(in srgb,var(--plum) 45%,transparent)}.tree-node[data-plum-side].major{width:58px;height:58px}.tree-node[data-plum-side].keystone{width:72px;height:72px}.tree-node[data-plum-side] .tree-node-symbol{background-repeat:no-repeat}.tree-node[data-plum-side].small{background:radial-gradient(circle at 35% 25%,#958b99,#2b2631 65%)}@media(max-width:600px){.plum-level-panel{gap:5px;font-size:12px;padding:6px}.plum-level-panel span{font-size:10px}.tree-intrinsic:has(.plum-level-panel){max-height:180px;overflow:auto}.plum-level-up{padding:5px 8px}}.tree-reset{background-image:url('./assets/huashan-bloom/reset.webp');background-position:6px center;background-size:24px;background-repeat:no-repeat;padding-left:34px}.plum-pill:before{content:'';display:inline-block;width:24px;height:24px;vertical-align:middle;margin-right:4px;background:url('./assets/stronghold/elixir_qi_01.webp') center/contain no-repeat}.tree-node.major{width:52px;height:52px}.tree-node.major-two{width:56px;height:56px}.tree-node.keystone{width:66px;height:66px}.tree-node.root{width:68px;height:68px}.tree-node[data-plum-side].major{width:64px;height:64px}.tree-node[data-plum-side].keystone{width:78px;height:78px}.tree-node[data-plum-side].root{width:76px;height:76px}.tree-node .passive-painted-icon{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;margin:0;background-repeat:no-repeat}.tree-node.major[data-state=LOCKED] .passive-painted-icon,.tree-node.keystone[data-state=LOCKED] .passive-painted-icon{filter:saturate(.9) brightness(.98)}.tree-detail-head .node-detail-art{width:64px;height:64px}.tree-tabs .heart-art{width:36px;height:36px}.tree-world[data-heart=HEART_HUA_BASE]{background-size:1600px 1600px;background-position:center;background-repeat:no-repeat;background-color:#17111c}.tree-world[data-heart=HEART_HUA_BASE] svg path{fill:none;stroke-width:3;stroke-linecap:round;transition:stroke .2s,filter .2s}.tree-world[data-heart=HEART_HUA_BASE] svg path.locked{stroke:#c2a7b052}.tree-world[data-heart=HEART_HUA_BASE] svg path.available{stroke:#e4b7cb;filter:drop-shadow(0 0 3px #cc7393)}.tree-world[data-heart=HEART_HUA_BASE] svg path.invested{stroke:#f6ced9;stroke-width:4;filter:drop-shadow(0 0 4px #f2a5bf)}.tree-world[data-heart=HEART_HUA_BASE] svg path.pending{stroke:#fff0ce;stroke-width:4}.elixir-guide{position:absolute;inset:0;z-index:114;pointer-events:none;background:transparent}.elixir-guide[hidden]{display:none}.elixir-guide-caption{position:absolute;top:22%;left:8%;right:8%;margin:0;padding:14px 16px;border:1px solid #d4b274;border-radius:10px;background:#182829;color:#fff0cb;font-size:14px;line-height:1.7;text-align:center;white-space:pre-line;box-shadow:0 5px 20px #0008}.elixir-guide-target{z-index:112!important;pointer-events:auto!important;outline:3px solid #f3ce83!important;outline-offset:3px;box-shadow:0 0 18px #e6ad68!important}.phone:has(.elixir-guide-target) .bottom-hud,.phone:has(.elixir-guide-target) #dialog{z-index:111}.phone:has(.elixir-guide-target) .bottom-hud{pointer-events:none}.phone:has(.elixir-guide-target) .bottom-hud .elixir-guide-target{pointer-events:auto}.loadout-slot.has-enhancement{position:relative}.manor-building.elixir-guide-target{position:absolute}.beginner-quest.expanded{white-space:pre-line;text-align:left;max-height:35vh;overflow:auto}.profile-setting.profile-volume{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) 42px;gap:10px}.profile-volume input[type=range]{width:100%;height:28px;margin:0}.profile-volume output{text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:#ffe3ae}.audio-credits-link{display:block;margin-top:12px;text-align:right;font-size:12px;color:#c2c9bb}

/* Auxiliary text wraps within its own region rather than shrinking icon columns. */
.status-hint,.relic-slot-hint,.bigeong-warning,.elixir-guide-caption{min-width:0;max-width:100%;word-break:keep-all;overflow-wrap:anywhere}
.profile-volume input[type=range]{min-width:0}.profile-setting>span{min-width:0;word-break:keep-all;overflow-wrap:anywhere}

.status-icons .status-hint{flex:0 0 100%;width:100%}

#dialog>#onboarding-overlay{position:absolute;inset:0;z-index:100}#onboarding-overlay.songshan-guide{pointer-events:none;background:transparent}.prologue-mode .onboarding-sheet{top:auto;height:auto;max-height:44%;overflow-y:auto}
.atlas-area.tutorial-highlight,.atlas-city.tutorial-highlight{position:absolute!important}
.songshan-guide .tutorial-hole{pointer-events:none}

/* Chapter guide shares the original onboarding sheet, including its 12px body. */
.songshan-guide .tutorial-hole{z-index:1;border:2px solid #ffe0a0;outline:1px solid #8e6e35;box-shadow:0 0 0 200vmax rgba(7,10,12,.72),0 0 16px #e7bd75;}

.combat-hud .boss-countdown{grid-column:2;text-align:center;color:#f2d49a;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:-5px}.combat-hud .boss-countdown[hidden]{display:none}


#tavern-button{background-image:linear-gradient(#192b32b0,#192b32d9),url('./assets/tavern/tavern-background.webp?art=quietscene20261029');background-size:cover;background-position:center 35%}

.account-storage{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #a9895b66;margin-top:16px;padding-top:12px;overflow-wrap:anywhere}.account-storage h3,.account-storage p{flex-basis:100%;margin:4px 0;font-size:13px;line-height:1.6}.account-storage button{flex:1 1 45%;min-height:40px}.account-storage input{width:100%;min-height:40px}.account-storage a{color:#ffe3ae}.account-storage .google-signin{flex-basis:100%}

/* Compact discovery explanations stay inside the existing guide caption. */
.elixir-guide-caption{box-sizing:border-box;max-height:64%;overflow-y:auto;overflow-x:hidden}.elixir-guide-copy{display:block}.elixir-guide-next{display:block;width:100%;min-height:32px;margin:8px 0 0;padding:5px 10px;pointer-events:auto;white-space:normal}.elixir-guide-next[hidden]{display:none}

.elixir-guide-caption{left:50%;right:auto;width:min(84%,360px);transform:translateX(-50%)}

/* Sect shortcuts follow the beginner quest in the top HUD. */
.sect-launcher,.sect-shortcuts{position:relative;margin-top:4px;pointer-events:auto}
.sect-launcher{display:grid;justify-items:center;gap:2px;width:54px;padding:3px;font-size:11px;background:#17241f;border:1px solid #88754b;color:#f5e1ba}
.sect-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:min(100%,276px);padding:5px;background:#151f20f2;border:1px solid #88754b;border-radius:6px;box-sizing:border-box}
.sect-shortcuts button{position:relative;min-width:0;display:grid;justify-items:center;gap:2px;padding:3px 1px;background:#202e2a;color:#f5e1ba;border:1px solid #88754b;font-size:10px;white-space:nowrap}
.sect-icon{display:block;width:100%;max-width:44px;aspect-ratio:1;background-image:url('./assets/sect-menu/icons-alpha.webp');background-size:300% 200%}
.sect-icon-banner{background-position:0 0}.sect-icon-estate{background-position:50% 0}.sect-icon-raid{background-position:100% 0}.sect-icon-rank{background-position:0 100%}.sect-icon-realm{background:url('./assets/sect-menu/realm-green.webp') center/contain no-repeat}
#sect-raid-button:disabled .sect-icon,#sect-realm-button:disabled .sect-icon{filter:grayscale(1);opacity:.58}
.sect-realm-active .sect-icon-realm{background-image:url('./assets/sect-menu/realm-red.webp')}
.sect-lock{position:absolute;right:3px;top:3px;font-size:11px}
.sect-launcher[hidden],.sect-shortcuts[hidden],.sect-lock[hidden]{display:none}
.top-hud:has(.elixir-guide-target){z-index:112}
.sect-shortcuts:has(.elixir-guide-target){z-index:112}

/* Keep event controls reachable even when the viewport is short. */
.onboarding-overlay,.elixir-guide{min-width:0;min-height:0}
.onboarding-overlay .onboarding-sheet,
.onboarding-overlay .prologue-caption,
.elixir-guide .elixir-guide-caption{
 box-sizing:border-box;
 min-width:0;
 max-width:calc(100% - 24px);
 overflow-wrap:anywhere;
 overscroll-behavior:contain;
}
.onboarding-overlay .onboarding-sheet,
.onboarding-overlay .prologue-caption{
 max-height:calc(96% - env(safe-area-inset-bottom, 0px));
 overflow-y:auto;
}
.onboarding-overlay.prologue-mode .onboarding-sheet{max-height:44%}
.onboarding-overlay img.prologue-art{object-fit:contain}
.onboarding-overlay .onboarding-next{max-width:100%;white-space:normal;overflow-wrap:anywhere}

.top-hud .sect-launcher,.top-hud .sect-shortcuts,.top-hud .sect-shortcuts button{background:none;border:0;border-radius:0;box-shadow:none}
.top-hud .sect-shortcuts{align-items:start;padding:0}
.top-hud .sect-shortcuts button{align-content:start;grid-template-rows:44px 14px auto;line-height:14px}

#stronghold-button.sect-launcher{background:none;border:0;box-shadow:none}

#stronghold-button.sect-launcher{background:transparent;border:0;box-shadow:none}
#stronghold-button.sect-launcher::before,#stronghold-button.sect-launcher::after{content:none}
.top-hud .sect-shortcuts{width:min(100%,204px);gap:2px}
.top-hud .sect-shortcuts button{padding-inline:0}

.sect-launcher .sect-icon,.sect-shortcuts .sect-icon{filter:drop-shadow(0 2px 2px #000e) drop-shadow(0 0 3px #090e12c0)}
#sect-raid-button:disabled .sect-icon,#sect-realm-button:disabled .sect-icon{filter:grayscale(1) drop-shadow(0 2px 2px #000e) drop-shadow(0 0 3px #090e12c0)}

#stronghold-button.sect-launcher,.top-hud .sect-shortcuts button{text-shadow:0 1px 2px #000,0 0 4px #090e12}

.top-hud .next-place:not([hidden])::after {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  width: 22px;
  height: 22px;
  pointer-events: none;
  background: url('./assets/ui/next-place-arrow.webp') center / contain no-repeat;
  opacity: 0;
  animation: next-place-notice 1s ease-in-out 5s infinite alternate;
}
@keyframes next-place-notice {
  from { opacity: .8; transform: translate(4px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .top-hud .next-place:not([hidden])::after {
    animation: next-place-notice 1ms step-end 5s forwards;
  }
}

.prologue-mode .onboarding-eyebrow{font-size:13px;line-height:1.45}
.prologue-mode .onboarding-body{font-size:clamp(14px,3.3vw,16px)}

/* Novice missions: persistent, non-interactive HUD below the combat summary. */
.top-hud .beginner-quest{position:relative;inset:auto;display:block;width:100%;max-width:100%;max-height:clamp(112px,22vh,196px);margin:5px 0 0;padding:5px 7px;min-height:0;overflow:hidden;border:1px solid #987e52;border-left:3px solid #c09b58;background:#17231ee8;color:#f2e5c9;pointer-events:none;white-space:normal;font:10px/1.35 system-ui,-apple-system,"Noto Sans KR",sans-serif;text-align:left;}
.top-hud .beginner-quest[hidden]{display:none!important;}
.beginner-quest .quest-head,.beginner-quest .quest-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.beginner-quest .quest-head{padding-bottom:4px;color:#edcc8b;font-size:11px;}
.beginner-quest .quest-head span{color:#c9bda7;font-variant-numeric:tabular-nums;}
.beginner-quest .quest-item{padding:3px 0;border-top:1px solid #8a796133;}
.beginner-quest .quest-item-top{color:#f0e7d3;}
.beginner-quest .quest-item-top strong{font-weight:650;}
.beginner-quest .quest-item-top span{color:#d2c3a6;font-variant-numeric:tabular-nums;}
.beginner-quest .quest-meter{height:3px;margin:3px 0;border-radius:2px;background:#39413c;overflow:hidden;}
.beginner-quest .quest-meter-fill{display:block;height:100%;background:#c5a362;}
.beginner-quest .quest-reward{color:#cbb992;font-size:10px;white-space:normal;}
@media(max-height:690px){.top-hud .beginner-quest{max-height:120px;font-size:9px;}.beginner-quest .quest-item:nth-of-type(n+4){display:none;}.beginner-quest .quest-head{font-size:10px;}.beginner-quest .quest-reward{font-size:9px;}}


/* Novice mission v4: one lightweight left-side goal, illustrated claim action. */
.phone > .beginner-quest{
 position:absolute;left:8px;top:25%;z-index:8;
 width:max-content;max-width:64%;max-height:none;min-height:0;
 padding:0;margin:0;border:0!important;border-left:0!important;
 border-radius:0;background:transparent!important;background-image:none!important;
 box-shadow:none!important;outline:0;
 color:#fff2d2;white-space:normal;overflow:visible;
 font:11px/1.4 system-ui,-apple-system,"Noto Sans KR",sans-serif;
 text-align:left;text-shadow:0 1px 3px #000,0 2px 6px #000e;
 pointer-events:none;touch-action:none;
}
.phone > .beginner-quest[hidden]{display:none!important;}
.phone > .beginner-quest .quest-head{
 display:flex;gap:6px;align-items:center;justify-content:flex-start;
 padding:0 0 3px;font-size:10px;line-height:1.3;color:#f8db9c;
}
.phone > .beginner-quest .quest-head span{font-size:10px;color:#f8db9c;}
.phone > .beginner-quest .quest-goal{display:block;line-height:1.42;word-break:keep-all;overflow-wrap:anywhere;}
.phone > .beginner-quest .quest-goal-label{font-weight:700;vertical-align:baseline;}
.phone > .beginner-quest .quest-counter{
 display:inline-block;margin-left:6px;font-size:10px;line-height:1.4;
 font-weight:400;color:#f9ead0;white-space:nowrap;vertical-align:baseline;
}
.phone > .beginner-quest .quest-reward{
 display:block;margin-top:2px;padding:0;line-height:1.45;
 font-size:10px;color:#e5c482;white-space:normal;
}
.phone > .beginner-quest .quest-complete-check{
 position:relative;display:inline-grid;place-items:center;
 width:18px;height:18px;margin-left:5px;vertical-align:middle;
 box-sizing:border-box;border-radius:50%;
 border:1px solid #aae5a2;background:radial-gradient(circle at 33% 28%,#67e78c,#169b50 62%,#0a5e34 100%);
 color:#fffce5;font:900 14px/1 system-ui;
 box-shadow:0 0 0 1px #173e23,0 0 9px #41d86caa,0 1px 4px #071d14;
 text-shadow:0 1px 1px #0b6431;transform-origin:50% 70%;
}
.phone > .beginner-quest .quest-check-drop{
 animation:quest-green-check-fall 690ms cubic-bezier(.18,.68,.22,1) both;
}
@keyframes quest-green-check-fall{
 0%{opacity:0;transform:translate3d(0,-150px,0) rotate(-21deg) scale(.72);}
 50%{opacity:1;transform:translate3d(0,4px,0) rotate(8deg) scale(1.18);}
 70%{transform:translate3d(0,-9px,0) rotate(-4deg) scale(.96);}
 85%{transform:translate3d(0,2px,0) rotate(2deg) scale(1.05);}
 100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);}
}
.phone > .beginner-quest .quest-action{
 display:block;clear:both;margin-top:5px;margin-left:0;
 height:39px;line-height:normal;
}
.phone > .beginner-quest .quest-claim{
 display:block;position:relative;width:100px;height:39px;min-width:0;min-height:0;
 margin:0;padding:0;border:0!important;border-radius:0!important;
 background:transparent url('./assets/ui/novice-complete-green.webp') center/100% 100% no-repeat!important;
 box-shadow:none!important;outline:0;
 font:800 13px/1 "Noto Serif KR","Batang",serif;color:#fff9db;
 text-shadow:0 1px 2px #042d1f,0 0 3px #061a0e;
 text-decoration:none!important;text-align:center;letter-spacing:1px;
 cursor:pointer;pointer-events:auto;touch-action:manipulation;
 transition:filter .15s ease,transform .15s ease;
}
.phone > .beginner-quest .quest-claim:hover{filter:brightness(1.2);}
.phone > .beginner-quest .quest-claim:active{transform:translateY(1px) scale(.96);filter:brightness(.93);}
.phone > .beginner-quest .quest-claim:focus-visible{outline:2px solid #d9ffc9;outline-offset:1px;}
@media(max-height:690px){
 .phone > .beginner-quest{top:27%;max-width:68%;font-size:10px;}
 .phone > .beginner-quest .quest-reward{font-size:9px;}
 .phone > .beginner-quest .quest-action{height:34px;margin-top:4px;}
 .phone > .beginner-quest .quest-claim{width:88px;height:34px;}
}
@media(prefers-reduced-motion:reduce){
 .phone > .beginner-quest .quest-check-drop{animation:none;}
 .phone > .beginner-quest .quest-claim{transition:none;}
}

/* Quest location only: preserve every original novice quest style and asset.
   The original phone-level quest now sits right beneath the boss/stage status. */
.phone > .beginner-quest{
 left:auto;
 right:8px;
 bottom:auto;
}

/* Original novice quest UI: alignment and safe horizontal placement only. */
.phone > .beginner-quest{
 box-sizing:border-box;
 max-width:min(64%,calc(100% - 16px));
 text-align:right;
 overflow-wrap:anywhere;
}
.phone > .beginner-quest .quest-head{
 justify-content:flex-end;
 flex-wrap:wrap;
 text-align:right;
}
.phone > .beginner-quest .quest-goal{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:flex-end;
 gap:2px 6px;
 text-align:right;
 min-width:0;
}
.phone > .beginner-quest .quest-goal-label{
 min-width:0;
 overflow-wrap:anywhere;
 text-align:right;
}
.phone > .beginner-quest .quest-counter{margin-left:0;flex:0 0 auto;}
.phone > .beginner-quest .quest-reward{text-align:right;overflow-wrap:anywhere;}
.phone > .beginner-quest .quest-action{
 display:flex;
 align-items:center;
 justify-content:flex-end;
 width:100%;
 min-width:0;
 box-sizing:border-box;
}
.phone > .beginner-quest .quest-claim{
 flex:0 1 100px;
 max-width:100%;
 margin:0 0 0 auto;
}
@media(max-height:690px){
 .phone > .beginner-quest{max-width:min(68%,calc(100% - 16px));}
 .phone > .beginner-quest .quest-claim{flex-basis:88px;}
}

/* Main HUD: one action slot at the top and six navigation entries below. */
.quick-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px}
.quick-toolbar .quick-toggle{flex:0 0 auto;width:auto;min-width:0;text-align:left;margin:0}
.quick-toolbar #debug-toggle{flex:none;min-width:38px;min-height:24px;padding:3px 7px;border:1px solid #9b855c66;border-radius:5px;background:#172b35cc;color:#cfc4ab;font-size:10px;line-height:1.3}
.bottom-hud .buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;flex-wrap:nowrap}
.bottom-hud .buttons>button{min-width:0;min-height:34px;margin:0;padding:5px 2px;font-size:clamp(10px,2.8vw,12px);white-space:nowrap;text-align:center}
.bottom-hud .buttons>button[hidden]{display:none}
.stage-actions{display:flex;align-items:flex-start;gap:6px;pointer-events:auto}
.top-hud .stage-actions .boss-button{display:block;width:max-content;max-width:100%;min-height:32px;margin:6px 0 0;padding:6px 12px;border:1px solid #e1a57e;border-radius:6px;background:linear-gradient(#442c2ddf,#2d1d20df),url('./assets/ui/panel.webp');background-size:cover;color:#ffe3a3;font-size:12px;font-weight:700;line-height:1.35;white-space:nowrap;pointer-events:auto}
.top-hud .stage-actions .boss-button[hidden]{display:none}
.bottom-hud .stage-progress{margin:0 0 5px;color:#dacdb4;font-size:11px;line-height:1.4;text-align:left}
.bottom-hud .stage-progress[hidden]{display:none}
.top-hud .stage{width:auto;max-width:none}.top-hud .field-counts{width:44%;max-width:44%}
.top-hud .stage #stage-name{min-width:0;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-hud .field-counts{flex-wrap:wrap;gap:2px 6px;white-space:normal}
.phone>.beginner-quest{max-width:52%}
@media(max-width:360px){.bottom-hud .buttons{gap:3px}.quick-toolbar #debug-toggle{min-width:34px;padding:3px 5px}.phone>.beginner-quest{max-width:52%}}

.quest-actions{position:absolute;right:8px;z-index:9;display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:52%;pointer-events:none}
.quest-actions>button{position:static!important;inset:auto!important;display:block;width:max-content;max-width:100%;min-height:32px;margin:0!important;padding:6px 12px;border:1px solid #9b855c77;border-radius:6px;background:linear-gradient(#1b2d32ec,#15262aec),url('./assets/ui/panel.webp');background-size:100% 100%;color:#f8e8c9;font:600 12px/1.35 system-ui,-apple-system,"Noto Sans KR",sans-serif;white-space:nowrap;pointer-events:auto;box-shadow:inset 0 1px #fff1}
.quest-actions>button[hidden]{display:none}
.quest-actions>button:focus-visible{outline:2px solid #e6ca88;outline-offset:2px}

/* Shop and sect share the same painted launcher and shortcut geometry. */
.sect-launchers{display:flex;align-items:flex-start;gap:4px;width:max-content;max-width:100%}
.sect-launchers>.sect-launcher{flex:0 0 54px}
.top-hud .shop-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));width:104px;margin-left:58px}
.shop-icon-store,.shop-icon-package,.shop-icon-monthly{background-size:contain;background-position:center;background-repeat:no-repeat}
.shop-icon-store{background-image:url('./assets/shop-menu/store.webp')}
.shop-icon-package{background-image:url('./assets/shop-menu/package.webp')}
.shop-icon-monthly{background-image:url('./assets/shop-menu/monthly.webp')}
.shop-launcher::before,.shop-launcher::after{content:none}
.shop-launcher{text-shadow:0 1px 2px #000,0 0 4px #090e12}
.shop-empty{padding:20px 8px;text-align:center;color:#c5cabb;font-size:13px}


/* Square full-art portrait and full-width HP/shield row. */
.combat-hud{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.hero-hud{display:grid;grid-template-columns:clamp(45px,36%,67px) minmax(0,1fr);grid-template-rows:repeat(3,minmax(18px,auto)) 8px;column-gap:5px;row-gap:2px;padding:4px 6px}
.hero-hud>.profile-trigger{grid-column:1;grid-row:1/4;align-self:center;width:100%;height:auto;aspect-ratio:1;min-width:0;border-radius:0;box-sizing:border-box}
.hero-hud .profile-trigger img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center}
.hero-hud>.hero-head{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;min-height:0;font-size:11px}
.hero-hud #hero-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-hud #hero-realm{flex:none;font-size:10px;color:#ead2a0}
.hero-hud>.power-row{grid-column:2;grid-row:2;align-items:center}
.hero-hud .hero-stats{grid-column:2;grid-row:3;display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;font-variant-numeric:tabular-nums}
.hero-stats>span{display:flex;align-items:center;gap:2px;min-width:0;flex:1}
.hero-stats img{width:17px;height:17px;object-fit:contain;flex:none}
.hero-stats span span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-hud>.hp-track{grid-column:1/-1;grid-row:4;position:relative;height:8px;min-width:0;width:100%;margin:2px 0 0;box-sizing:border-box;background:#18272c;border-radius:3px;overflow:visible}
.hero-hud .hp-track>div{position:absolute;top:0;bottom:0;height:100%}
.hero-hud #hp-shield{background:linear-gradient(#fff,#cbd7de);box-shadow:inset 1px 0 #fff9}
.hero-hud #hp-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-weight:700;line-height:17px;text-shadow:0 1px 2px #000,1px 0 1px #000,-1px 0 1px #000;z-index:1;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}


/* Scale the profile summary to approximately half the battlefield width. */
.hero-hud>.hero-head{font-size:11px}
.hero-hud #hero-realm{font-size:10.5px}
.hero-hud #cp,.hero-hud .hero-stats{font-size:8.5px}
.hero-hud .hero-stats{gap:4px}
.hero-hud .hero-stats img{width:14px;height:14px}
.hero-hud #hp-label{inset:50% 0 auto;height:16px;transform:translateY(-50%);font-size:9px;line-height:16px;overflow:visible}
.hero-hud .power-row .cp-delta{font-size:8px}

.hero-hud .hp-track>div{border-radius:2px}

/* Ink, jade and old gold: the Jianghu trading house. */
.shop-view{color:#eee4cc;font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif}
.shop-tabs{display:flex;gap:6px;padding:0 0 12px;border-bottom:1px solid #b8985140}
.shop-tabs button{flex:1;padding:10px 6px;background:#121f21;border:1px solid #68766a;color:#b9c2b3;border-radius:4px;font-size:14px;cursor:pointer}
.shop-tabs button.selected{background:linear-gradient(120deg,#465748,#223c35);color:#ffe3a0;border-color:#c1a463;box-shadow:inset 0 1px #fff2}
.shop-view .shop-heading{display:block;padding:20px 2px 18px}.shop-eyebrow{font-size:12px;letter-spacing:2px;color:#bba776}.shop-heading h2{font-size:23px;font-weight:650;letter-spacing:-1px;margin:7px 0;color:#f6dfac}.shop-heading p{margin:0;font-size:14px;color:#aebbad;line-height:1.6}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:12px 10px 10px;border:1px solid #a0884e80;border-radius:7px;background:radial-gradient(ellipse at 50% 15%,#3a4b373a,transparent 70%),linear-gradient(145deg,#243733,#111e23);box-shadow:inset 0 1px #f5dda516,0 6px 14px #0003;overflow:hidden}
.shop-card-master{border-color:#bd914d;background:radial-gradient(ellipse at top,#9e6b2830,transparent 70%),linear-gradient(145deg,#353229,#1e2526)}
.shop-card-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.shop-product-art{display:block;object-fit:contain;width:100px;height:100px;filter:drop-shadow(0 7px 7px #0007)}
.shop-card-tag{font-size:12px;color:#bca982;letter-spacing:.3px}.shop-card h3{margin:4px 0;font-size:18px;color:#f4dda4;font-weight:650}.shop-limit{font-size:12px;color:#a9b2a0}
.shop-rewards{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 4px;margin:15px 0;padding:12px 0;border-top:1px solid #c1a26226;border-bottom:1px solid #c1a26226;font-size:13px;line-height:1.5}.shop-rewards dt{color:#b8c4b4;line-height:1.5}.shop-rewards dd{margin:0;text-align:right;color:#f5e4b9;font-weight:650;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.shop-card-footer{display:flex;flex-direction:column;gap:10px;margin-top:auto}.shop-price{font-size:19px;color:#f7e8c8;font-variant-numeric:tabular-nums}.shop-purchase,.shop-claim{min-height:40px;padding:8px;border:1px solid #8f8356;border-radius:4px;background:linear-gradient(#526246,#303e32);color:#ffe7b4;font-size:14px;font-weight:650}.shop-purchase:disabled{cursor:default;background:#28322b;color:#b6b39b;border-color:#6a6b504d}.shop-claim{cursor:pointer;margin-bottom:10px;background:linear-gradient(#667947,#35472d)}
.shop-monthlies{grid-template-columns:minmax(0,1fr)}.shop-monthlies .shop-card{padding:16px}.shop-monthlies .shop-card-top{flex-direction:row;text-align:left;gap:16px}.shop-monthlies .shop-product-art{width:90px;height:110px}.shop-monthlies h3{font-size:21px}.shop-monthlies .shop-rewards{font-size:14px;gap:10px}.shop-monthlies .shop-card-footer{flex-direction:row;align-items:center;justify-content:space-between;margin-top:12px}.shop-monthlies .shop-purchase{min-width:130px}.shop-card-premium{border-color:#b29359;background:radial-gradient(ellipse at top right,#a0443230,transparent 75%),linear-gradient(145deg,#34302d,#172529)}
.shop-offline{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#b8a15d10;border:1px solid #b8a15d40;padding:12px 10px;border-radius:4px;font-size:12px;color:#c4cdbb}.shop-offline strong{font-size:19px;color:#f3d38e;white-space:nowrap}.shop-total{font-size:12px;line-height:1.7;color:#bcb9a4;margin:10px 0 0}.shop-membership-state{font-size:12px;color:#c7e2a4}.shop-notes{margin-top:18px;padding:12px 2px 0;border-top:1px solid #b898512b;color:#9ea99d;font-size:12px;line-height:1.7}.shop-notes p{margin:0 0 6px}
@media(max-width:360px){.shop-grid{gap:7px}.shop-card{padding:10px 7px}.shop-rewards{font-size:12px}.shop-product-art{width:86px;height:86px}.shop-card h3{font-size:17px}.shop-monthlies .shop-card{padding:12px}.shop-monthlies .shop-rewards{font-size:14px}.shop-offline strong{font-size:17px}.shop-monthlies .shop-product-art{width:75px;height:95px}.shop-monthlies h3{font-size:19px}}

/* Keep reward labels legible within narrow two-column product cards. */
.shop-view{container-type:inline-size}.shop-rewards dt,.shop-rewards dd{min-width:0}.shop-card-tag,.shop-limit{line-height:1.5}.shop-notes{line-height:1.8}
@container(max-width:350px){.shop-grid:not(.shop-monthlies) .shop-rewards{grid-template-columns:minmax(0,1fr);gap:3px}.shop-grid:not(.shop-monthlies) .shop-rewards dd{text-align:left;font-size:15px;margin-bottom:7px}.shop-monthlies .shop-rewards{grid-template-columns:minmax(0,1fr)}.shop-monthlies .shop-rewards dd{text-align:left;margin-bottom:6px}.shop-monthlies .shop-card-top{gap:8px}.shop-monthlies .shop-card-footer{gap:8px;flex-wrap:wrap}}

/* Purchase receipt uses the existing foreground dialog. */
.shop-receipt{text-align:center;padding:8px 4px}.shop-receipt h2{margin:4px 0 18px;font-size:22px;line-height:1.45;color:#f6dfac}.shop-receipt>.shop-product-art{width:112px;height:112px;margin:0 auto 12px}.shop-receipt h3{font-size:18px;line-height:1.5;color:#f4dda4;margin:8px 0 18px}.shop-receipt-label{margin:0;color:#bdc9b6;font-size:14px}.shop-receipt .shop-rewards{text-align:left;font-size:15px;gap:12px 8px;margin:12px 0 18px;padding:16px 2px}.shop-receipt .shop-rewards dd{font-size:17px;color:#ffe0a0}.shop-receipt-perks{font-size:14px;line-height:1.7;color:#c9d1c1;margin:8px 0}.shop-receipt .shop-membership-state{font-size:15px;line-height:1.6}.shop-receipt-confirm{width:100%;margin:20px 0 0;font-size:16px;min-height:44px}.shop-claim:disabled{background:#28322b;color:#b6b39b;border-color:#6a6b504d;cursor:default}

.shop-receipt-overlay{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:16px;box-sizing:border-box;background:#030a12bd}.shop-receipt-overlay>.shop-receipt{width:min(100%,360px);max-height:90dvh;overflow:auto;box-sizing:border-box;padding:22px 18px;border:1px solid #a68d58;border-radius:10px;background:linear-gradient(145deg,#243733,#111e23);box-shadow:0 12px 40px #0009}

/* Match combat values to their existing realm and HP text sizes. */
.hero-hud{--hero-realm-text-size:10.5px;--hero-vitals-text-size:9px}.hero-hud #hero-realm,.hero-hud #cp{font-size:var(--hero-realm-text-size)}.hero-hud #hero-atk,.hero-hud #hero-def,.hero-hud #hp-label{font-size:var(--hero-vitals-text-size)}

/* The shop launcher normally suppresses decorative pseudo-elements. */
.shop-launcher.has-enhancement::after{content:'';position:absolute;top:3px;right:3px;width:6px;height:6px;border-radius:50%;background:#ef5057;box-shadow:0 0 0 1px #18272dcc;pointer-events:none}
