#ng-root{--bg:#0b1014;--panel:#11181e;--line:#232d34;--text:#ecf0f2;--muted:#81909d;--green:#b7ef85;--amber:#ffcf7a}
#ng-root *{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#ng-root #ng-wrap{display:flex;flex-direction:column;height:100%;height:100dvh}
#ng-root #ng-bar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:7px 14px;background:var(--panel);border-bottom:1px solid var(--line)}
#ng-root #ng-bar .lab{color:#ffb86b;font-size:11px;letter-spacing:.06em}
#ng-root #ng-bar b{color:var(--green)}
#ng-root #ng-bar button{background:#1c2a24;color:var(--text);border:1px solid #2f4a3c;border-radius:8px;padding:5px 10px;cursor:pointer;display:flex;gap:6px;align-items:center;font-size:13px}
#ng-root #ng-mp{position:absolute;left:0;right:0;bottom:0;display:none;gap:6px;padding:10px 14px;background:linear-gradient(#05080b00,#05080bf0 35%);z-index:8}
#ng-root #ng-mp.on{display:grid}
#ng-root #ng-mp .mrow{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:center;font-size:13px}
#ng-root #ng-mp b{color:#ffcf7a;font-size:16px}
#ng-root #ng-mp span{color:#cfe3d6}
#ng-root #ng-mp button{background:#1c2a24;color:var(--text);border:1px solid #2f4a3c;border-radius:8px;padding:7px 14px;cursor:pointer;font-size:14px}
#ng-root #ng-mp button:disabled{opacity:.45;cursor:default}
#ng-root #ng-mp #ng-mGo,#ng-root #ng-mp #ng-mTake{border-color:#5bd88a;color:#d6ffe4}
#ng-root #ng-bPick,#ng-root #ng-bHelm,#ng-root #ng-bClaw,#ng-root #ng-bSling{display:none!important}
#ng-root .invbtn{display:flex;gap:6px;align-items:center}
#ng-root .invbi{width:22px;height:22px;object-fit:contain}
#ng-root .inv{position:absolute;inset:0;container-type:size;display:none;place-items:center;background:#05080bd9;z-index:9;padding:8px}
#ng-root .inv.on{display:grid}
#ng-root .invwin{position:relative;container-type:inline-size;width:min(1000px,calc(100cqw - 16px),calc((100cqh - 16px)*1.75));aspect-ratio:1400/796;background:url(/game/art/gear/inv-panel.webp) center/100% 100% no-repeat;filter:drop-shadow(0 18px 36px #000c);color:#f2e6cf;font-family:system-ui,sans-serif}
#ng-root .invhd{position:absolute;left:30%;right:30%;top:3.2%;height:6%;display:grid;place-items:center;font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:2.1cqw;color:#ffe3a6;text-shadow:0 1px 3px #000}
#ng-root .invx{position:absolute;right:3.6%;top:3%;width:4.6cqw;height:4.6cqw;min-width:22px;min-height:22px;border-radius:50%;border:max(1.5px,.25cqw) solid #4a2f10;background:radial-gradient(circle at 35% 30%,#ng-f3d58a,#ng-b98a33 55%,#6d4b17);box-shadow:inset 0 0 0 max(1px,.2cqw) #ng-ffe9ac88,0 .3cqw .8cqw #000c;cursor:pointer;padding:0;font-size:0;color:transparent}
#ng-root .invx::before,#ng-root .invx::after{content:'';position:absolute;left:50%;top:50%;width:52%;height:max(2px,.45cqw);margin:calc(max(2px,.45cqw)/-2) 0 0 -26%;border-radius:2px;background:linear-gradient(#3a230b,#1d1105);box-shadow:0 1px 0 #ffe9ac88;transform:rotate(45deg)}
#ng-root .invx::after{transform:rotate(-45deg)}
#ng-root .invx:hover{filter:brightness(1.15)}
#ng-root .invin{position:absolute;left:7.5%;right:7.5%;top:14%;bottom:11%;display:grid;grid-template-columns:44% 1fr;gap:3%}
#ng-root .invdoll{display:grid;grid-template-columns:repeat(3,8.4cqw);grid-template-areas:"x helm bag" "pick body arm" "glove body boots" "claw nori sling";grid-template-rows:repeat(4,8.4cqw);gap:1.6cqw;justify-content:center;align-content:center}
#ng-root .invbody{grid-area:body;display:grid;place-items:center;min-height:0}
#ng-root .invbody canvas{max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain;filter:drop-shadow(0 4px 8px #000);background:none!important;cursor:default}
#ng-root .invnori{grid-area:nori;display:grid;place-items:end center;font-size:max(8px,1.5cqw);color:#9fb7a8;letter-spacing:.1em;text-transform:uppercase}
#ng-root .invslot,#ng-root .bslot{position:relative;aspect-ratio:1;cursor:pointer}
#ng-root .bslot{cursor:default}
#ng-root .invslot .fr,#ng-root .bslot .fr,#ng-root .cardic .fr{position:absolute;inset:0;width:100%;height:100%}
#ng-root .invslot .ic,#ng-root .bslot .ic,#ng-root .cardic .ic{position:absolute;inset:16%;width:68%;height:68%;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}
#ng-root .invslot b,#ng-root .bslot b{position:absolute;right:6%;bottom:4%;font-size:max(8px,1.5cqw);color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000}
#ng-root .invslot.sel{filter:drop-shadow(0 0 .9cqw #ng-ffd36a)}
#ng-root .invslot:hover{filter:brightness(1.18)}
#ng-root .invside{display:grid;grid-template-rows:auto auto 1fr;gap:1.6cqw;min-height:0}
#ng-root .invcard{background:#0b1612b0;border:1px solid #c9a24a55;border-radius:1cqw;padding:1.2cqw 1.6cqw;display:grid;gap:.5cqw}
#ng-root .cardtop{display:flex;gap:1.6cqw;align-items:center}
#ng-root .cardic{position:relative;width:8cqw;height:8cqw;flex:none}
#ng-root .cardtx h3{margin:0;font-size:max(8px,2cqw);color:#ffe3a6}
#ng-root .cardtx p{margin:.3cqw 0 0;font-size:max(8px,1.5cqw);color:#cfe3d6}
#ng-root .eff{margin:0;font-size:max(8px,1.6cqw);color:#bfe8c8}
#ng-root .eff.nx{color:#8fa79a;font-size:max(8px,1.4cqw)}
#ng-root .succ{margin:0;font-size:max(8px,1.3cqw);color:#8fa79a}
#ng-root .wearbar{position:relative;height:2cqw;background:#000a;border-radius:1cqw;overflow:hidden;border:1px solid #ffffff22}
#ng-root .wearbar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#ng-d9822b,#7ed67a)}
#ng-root .wearbar span{position:absolute;inset:0;display:grid;place-items:center;font-size:max(8px,1.3cqw);color:#fff;text-shadow:0 1px 2px #000}
#ng-root .cardbtns{display:flex;gap:1cqw;flex-wrap:wrap}
#ng-root .cardbtns button{background:#2a3f2f;color:#e9f6e6;border:1px solid #5bd88a99;border-radius:.8cqw;padding:.7cqw 1.4cqw;font-size:max(8px,1.6cqw);cursor:pointer}
#ng-root .cardbtns button:disabled{opacity:.45;cursor:default}
#ng-root .cardbtns .upbtn{background:#3a5a2c;font-weight:700}
#ng-root .invbaghd{font-size:max(8px,1.5cqw);letter-spacing:.14em;text-transform:uppercase;color:#c9a24a}
#ng-root .invbag{display:grid;grid-template-columns:repeat(9,4.4cqw);gap:.6cqw;align-content:start;justify-content:start}
#ng-root .bslot.lock{opacity:.35;filter:grayscale(.8)}
#ng-root .bslot .ore{position:absolute;inset:0;display:grid;place-items:center;font-size:3cqw;color:#ffe08a}
@media (max-aspect-ratio:1/1){#ng-root .invwin{width:min(calc(100cqw - 16px),calc((100cqh - 16px)/1.4667));aspect-ratio:3/4.4;background-size:100% 100%}
#ng-root .invin{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:2%;top:12%;bottom:8%;overflow:hidden}
#ng-root .invdoll{grid-template-columns:repeat(3,11cqw);grid-template-rows:repeat(4,11cqw);gap:1.4cqw}
#ng-root .eff.nx,#ng-root .succ{display:none}
#ng-root .invbag{grid-template-columns:repeat(9,8.4cqw);gap:.7cqw}
#ng-root .invbag .bslot b,#ng-root .invslot b{font-size:max(8px,2.8cqw)}
#ng-root .cardtx h3{font-size:4.4cqw}
#ng-root .cardtx p,#ng-root .eff,#ng-root .eff.nx,#ng-root .succ,#ng-root .invbaghd{font-size:3.2cqw}
#ng-root .wearbar{height:4cqw}
#ng-root .wearbar span{font-size:2.8cqw}
#ng-root .cardbtns button{font-size:3.4cqw;padding:1.2cqw 3cqw;border-radius:1.4cqw}
#ng-root .cardic{width:13cqw;height:13cqw}
#ng-root .invhd{font-size:4.4cqw}
#ng-root .invx{width:8cqw;height:8cqw;font-size:5cqw}
#ng-root .invside{gap:2cqw}
#ng-root .invcard{padding:2cqw 2.6cqw;border-radius:2cqw}}
#ng-root #ng-qp{position:absolute;inset:0;background:#05080bf2;display:none;place-items:center;z-index:9;padding:14px}
#ng-root #ng-qp.on{display:grid}
#ng-root #ng-qp .box{width:min(520px,100%);max-height:100%;overflow:auto;background:#0e1a15;border:1px solid #2f4a3c;border-radius:14px;padding:14px}
#ng-root #ng-qp h2{margin:0 0 8px;font-size:18px;color:#ffcf7a}
#ng-root #ng-qp ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
#ng-root #ng-qp li{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:#14241d;border-radius:9px;padding:7px 9px;font-size:13px}
#ng-root #ng-qp .qn{position:relative;display:grid;gap:2px;overflow:hidden;padding-bottom:5px}
#ng-root #ng-qp .qn small{color:#9fb7a8;font-size:11px}
#ng-root #ng-qp .qn i{position:absolute;left:0;bottom:0;height:3px;background:#5bd88a;border-radius:2px}
#ng-root #ng-qTabs{display:flex;gap:6px;margin:0 0 8px}
#ng-root #ng-qTabs button{flex:1;position:relative;font-size:12px;background:#1c2a24;color:var(--text);border:1px solid #2f4a3c;border-radius:8px;padding:6px 8px;cursor:pointer}
#ng-root #ng-qTabs button.on{background:#2a3f2f;border-color:#5bd88a99;color:#e9f6e6}
#ng-root #ng-qTabs button.dot::after{content:'';position:absolute;top:3px;right:5px;width:7px;height:7px;border-radius:50%;background:#5bd88a}
#ng-root #ng-qp li.qr{display:block;background:none;color:#9fb7a8;font-size:11px;padding:0 2px}
#ng-root #ng-qp li.dn{opacity:.55}
#ng-root #ng-qp li.rd{border:1px solid #5bd88a66}
#ng-root #ng-qp b{font-weight:600;color:#cfe3d6;font-size:12px}
#ng-root #ng-qp button{background:#1c2a24;color:var(--text);border:1px solid #2f4a3c;border-radius:8px;padding:5px 10px;cursor:pointer}
#ng-root #ng-qp button:disabled{opacity:.45;cursor:default}
#ng-root #ng-qX{margin-top:10px;width:100%}
#ng-root #ng-bQuest.warn:not(:disabled){border-color:#5bd88a;color:#d6ffe4}
#ng-root #ng-bar button:disabled{opacity:.45;cursor:default}
#ng-root #ng-bRepair.warn:not(:disabled){border-color:#ff8a5a;color:#ffd3b8}
#ng-root #ng-bar button:hover:not(:disabled){border-color:var(--green)}
#ng-root .ico{width:26px;height:26px;border-radius:5px;background-repeat:no-repeat;background-size:300% auto;background-color:#222}
#ng-root #ng-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}
#ng-root canvas{width:100%;height:100%;display:block;background:#000;touch-action:none;cursor:pointer}
#ng-root #ng-msg{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:#000b;padding:8px 14px;border-radius:10px;font-size:13px;pointer-events:none;transition:opacity .4s;opacity:0;max-width:92vw;text-align:center;z-index:5}
#ng-root #ng-card{position:absolute;left:50%;top:7%;transform:translateX(-50%);background:#0a1014e6;border:1px solid #ffcf7a66;border-radius:14px;padding:12px 18px;width:min(560px,88vw);text-align:center;opacity:0;transition:opacity .5s;pointer-events:none;z-index:5}
#ng-root #ng-card small{color:var(--amber);letter-spacing:.14em;font-size:11px}
#ng-root #ng-card p{margin:6px 0 0;font-size:16px;line-height:1.4}
#ng-root #ng-movie{position:absolute;inset:0;background:#05080bf2;display:none;place-items:center;text-align:center;z-index:9;padding:10px}
#ng-root #ng-movie .box{width:min(900px,94%);height:100%;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0}
#ng-root #ng-movie video{width:100%;flex:1 1 auto;min-height:0;object-fit:contain;border-radius:12px;background:#000;display:none}
#ng-root #ng-movie .sub{min-height:0}
#ng-root #ng-movie h2{margin:0 0 6px;color:var(--amber);font-size:clamp(11px,2.2vh,14px);letter-spacing:.16em;flex:none}
#ng-root #ng-movie p{font-size:clamp(13px,2.6vh,20px);line-height:1.35;margin:4px 0;flex:none}
#ng-root #ng-movie em{color:var(--muted);font-size:13px}
#ng-root #ng-movie button{margin-top:8px;flex:none;background:#3b2f14;border:1px solid #8a6b22;color:var(--amber);border-radius:10px;padding:9px 18px;cursor:pointer;font-size:14px}
#ng-root #ng-hMats{display:inline-flex;gap:6px}
#ng-root #ng-hMats i{font-style:normal;font-size:12px;border:1px solid #ffffff22;border-radius:8px;padding:2px 7px;background:#0a1014}
#ng-root #ng-help{color:var(--muted);font-size:12px;padding:4px 14px 8px}
#ng-root #ng-pad{position:absolute;right:10px;bottom:10px;display:flex;gap:8px;z-index:4}
#ng-root #ng-pad button{width:58px;height:58px;border-radius:14px;background:#0a1014cc;border:1px solid #ffffff33;color:#fff;font-size:12px;line-height:1.15;cursor:pointer;touch-action:none;user-select:none}
#ng-root #ng-pad button small{display:block;color:#ffcf7a;font-size:10px}
#ng-root #ng-dead{position:absolute;inset:0;background:#000b;display:none;place-items:center;z-index:12;text-align:center}
#ng-root #ng-dead .box{background:#120d08;border:1px solid #b98a3a;border-radius:16px;padding:22px 30px;max-width:min(440px,90vw)}
#ng-root #ng-dead h2{margin:0 0 8px;color:#ffcf7a;font-size:22px}
#ng-root #ng-dead p{margin:6px 0 14px;color:#cdd6dc;line-height:1.5}
#ng-root #ng-dead button{background:#3b2f14;border:1px solid #b98a3a;color:#ffcf7a;border-radius:10px;padding:10px 22px;font-size:16px;cursor:pointer}
#ng-root #ng-err{position:absolute;left:8px;top:8px;background:#600c;color:#fff;font:11px monospace;padding:4px 8px;z-index:20;display:none;max-width:80%}
@media (orientation:landscape){#ng-root.touch #ng-wrap{position:fixed;inset:0}
#ng-root.touch #ng-bar{position:absolute;top:0;left:0;right:0;z-index:6;background:rgba(10,16,20,.66);border:0;padding:3px calc(8px + env(safe-area-inset-right)) 3px calc(8px + env(safe-area-inset-left));backdrop-filter:blur(3px)}
#ng-root.touch #ng-stage{position:absolute;inset:0}
#ng-root.touch #ng-help{display:none}
#ng-root.touch #ng-pad{right:calc(10px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom))}}
@media (orientation:portrait){#ng-root.touch #ng-help{display:none}}
#ng-root.touch #ng-card{width:min(400px,58vw);top:52px;padding:8px 14px}
#ng-root.touch #ng-card p{font-size:14px}
#ng-root #ng-rot{display:none;text-align:center;color:#ffcf7a;font-size:14px;padding:8px 10px;border:1px solid #ffcf7a55;border-radius:10px;margin:6px 10px 0;background:#1a1408}
@media (max-width:760px),(max-height:500px){#ng-root #ng-bar{gap:4px 8px;padding:5px 8px;font-size:12px}
#ng-root #ng-bar .lab{display:none}
#ng-root #ng-bar button{padding:3px 6px;font-size:11px;gap:4px}
#ng-root .ico{width:20px;height:20px}
#ng-root #ng-hMats{flex:1 0 100%;max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
#ng-root #ng-hMats::-webkit-scrollbar{display:none}
#ng-root #ng-hMats i{font-size:10px;padding:1px 5px;white-space:nowrap;flex:none}
#ng-root #ng-help{font-size:10px;padding:2px 8px 6px}
#ng-root #ng-pad{right:6px;bottom:6px;gap:5px}
#ng-root #ng-pad button{width:46px;height:46px;font-size:10px;border-radius:11px}
#ng-root #ng-pad button small{font-size:8px}
#ng-root canvas{touch-action:none}}
@media (max-width:760px) and (orientation:portrait){#ng-root #ng-stage{flex-direction:column;justify-content:flex-start;padding-top:6px}
#ng-root #ng-pad{position:static;order:3;margin:8px 0 2px;justify-content:center}
#ng-root #ng-pad button{width:64px;height:54px}
#ng-root #ng-rot{display:block}}
#ng-root #ng-load{position:absolute;inset:0;display:grid;place-items:center;background:#0b1014;color:var(--muted)}