*{box-sizing:border-box;letter-spacing:0}#target-vitals{position:absolute;top:8px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);padding:4px 8px;background:#000b;color:#fff;pointer-events:none;text-align:center;text-shadow:1px 1px #000;font-size:13px;z-index:2}#target-name{display:block;overflow-wrap:anywhere}#target-vitals span{display:block;font-size:12px}#target-hp{color:#ffb6b8}#target-mp{color:#a3d3ff}:root{color-scheme:dark;--border:#676970;--gold:#ffdc72}html,body{margin:0;min-height:100%;background:#000;color:#eee;font:14px "Microsoft JhengHei",sans-serif}body{display:grid;place-items:center;min-height:100dvh;padding:12px}#app{width:min(100%,1024px);border:1px solid #595b62;background:#17181a}header{height:36px;display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid var(--border)}h1{font-size:16px;font-weight:600;margin:0}#mode{font-size:11px;color:#a3d7ba}#connection{margin-left:auto;color:#bfc4cc;font-size:11px}button{color:inherit;background:#292b2f;border:1px solid #60636b;border-radius:2px;min-height:28px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;padding:5px 10px}button:hover:not(:disabled){background:#3b3f45;border-color:#b2bac8}button:disabled{opacity:.38;cursor:default}button:focus-visible{outline:2px solid #75c8ed;outline-offset:1px}button svg{width:17px;height:17px;flex:none}.icon{width:28px;height:28px;padding:4px;flex:0 0 28px}header .icon{height:26px;min-height:26px}#viewport{position:relative;width:100%;height:min(566px,calc(100dvh - 226px));min-height:300px;overflow:hidden;background:#000}#world{display:block;width:100%;height:100%;touch-action:none}.overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:300px;max-width:calc(100% - 24px);padding:22px;background:#111;border:1px solid #626770;border-radius:3px}h2{font-size:20px;margin:0 0 18px;font-weight:500}.overlay label{display:block;font-size:13px;color:#c2c2c2;margin-bottom:6px}.overlay input{width:100%;margin-bottom:15px}.overlay button{width:100%}.overlay p{font-size:12px;color:#ffabab;line-height:1.6;margin:10px 0 0;overflow-wrap:anywhere}input,select{font:inherit;background:#08090a;border:1px solid #5c626b;border-radius:2px;color:#fff;padding:7px;min-width:0;outline:0}input:focus,select:focus{border-color:#84c8e8}#characters{display:grid;gap:7px;margin-bottom:16px;max-height:220px;overflow:auto}.character{justify-content:space-between;text-align:left;background:#252629;padding:10px}.character.selected{border-color:#8bbfa6}.character span:last-child{font-size:11px;color:#bbb}progress{width:100%;height:12px;accent-color:#65ba8a}#notice{position:absolute;bottom:7px;left:10px;right:10px;font-size:12px;color:#ffcc84;text-shadow:1px 1px #000;pointer-events:none;overflow-wrap:anywhere;z-index:8}#world-vitals{position:absolute;top:10px;left:12px;width:178px;pointer-events:none}#player{display:block;font-size:12px;margin-bottom:3px;text-shadow:1px 1px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.life-bar{position:relative;height:17px;margin:3px 0}.life-bar meter{position:absolute;width:100%;height:100%;inset:0}.life-bar span{position:absolute;inset:0;text-align:center;font-size:11px;line-height:17px;text-shadow:1px 1px #000}.life-bar b{font-weight:400}meter{appearance:none;display:block;width:100%;height:6px}meter::-webkit-meter-bar{background:#070707;border:1px solid #575b64;border-radius:2px}#hp::-webkit-meter-optimum-value{background:#bd3f43}#mp::-webkit-meter-optimum-value{background:#3978bf}#experience::-webkit-meter-optimum-value{background:#7bc469}#food::-webkit-meter-optimum-value{background:#c8944b}#weight::-webkit-meter-optimum-value{background:#73b9b2}#buffs{position:absolute;top:8px;right:8px;display:grid;justify-content:end;gap:3px;width:max-content}.buff{position:relative;flex:0 0 35px;width:35px;height:35px;padding:0;background:#050505a6;border:1px solid #7d8584}.buff img{max-width:33px;max-height:33px;image-rendering:pixelated}.buff span{position:absolute;bottom:0;right:1px;font-size:9px;text-shadow:1px 1px #000}#game-hud{display:grid;grid-template-columns:154px minmax(0,1fr) 142px 176px;height:164px;border-top:2px solid #8a8b90;min-height:0;background:#18191b}#vitals{padding:7px 9px;display:flex;flex-direction:column;gap:3px;border-right:1px solid var(--border);font-size:11px;min-width:0;min-height:0}#vitals label{display:flex;align-items:center;justify-content:space-between;gap:4px;white-space:nowrap}#vitals b{font-weight:400}#experience-text{font-size:10px;color:#9ede9c}.gold{color:var(--gold);justify-content:flex-start!important;min-height:19px}.gold svg{width:13px;height:13px}.defense{display:flex;gap:14px}.defense label{flex:1}#coordinates{font:10px Consolas,"Microsoft JhengHei",sans-serif;color:#a8b0bb;margin-top:auto;white-space:nowrap}#conversation{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}#messages{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:7px 9px;font-size:12px;line-height:1.5;scrollbar-color:#777 #161719}#messages p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}#messages .system{color:var(--gold)}#chat-form{display:flex;flex:0 0 33px;min-height:33px;border-top:1px solid #51545a;padding:3px;gap:3px}#chat{flex:1;padding:3px 5px;font-size:12px;width:0}#chat-channel{width:63px;padding:2px;font-size:10px}#send{width:27px;flex-basis:27px;height:26px;min-height:26px}#chat:disabled{opacity:.6}#minimap-section{border-left:1px solid var(--border);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0}#minimap{width:136px;height:90px;background:#060606;image-rendering:pixelated}#map-label{font-size:10px;color:#b4bac3}#commands{padding:5px 7px;min-width:0}.quick-pages{display:flex;justify-content:center;height:24px}.quick-pages button{height:19px;min-height:19px;border:0;padding:1px 9px;font-size:11px;background:transparent;color:#9f9f9f}.quick-pages button[aria-pressed=true]{color:#fff2a0;border-bottom:1px solid var(--gold);font-weight:700;text-shadow:0 0 3px #fff7a8,0 0 7px #ffcb35}#quick-slots{display:grid;grid-template-columns:repeat(4,36px);grid-template-rows:repeat(2,36px);gap:2px;justify-content:center;margin-bottom:6px}.slot{width:36px;height:36px;min-height:36px;padding:0;position:relative;overflow:hidden;background:#090a0b;border:1px solid #52555c;border-radius:0;flex:none}.slot img{position:relative;z-index:1;max-width:32px;max-height:32px;width:auto;height:auto;image-rendering:pixelated;pointer-events:none}.slot .count,.slot .key{position:absolute;z-index:4;font-size:9px;line-height:11px;right:1px;bottom:0;pointer-events:none;text-shadow:1px 1px #000}.slot .key{top:1px;bottom:auto;left:2px;right:auto;color:#a6adb8}.slot .count{color:#fff}.slot.equipped{border-color:#55baa2}.slot svg{color:#4c5158;width:19px;height:19px}#commands nav{display:flex;justify-content:center;gap:6px}#commands nav .icon{border:0;background:transparent}#commands nav button[aria-pressed=true]{color:var(--gold)}.game-window{position:absolute;width:192px;max-width:calc(100% - 12px);background:#191a1def;border:1px solid #83858b;border-radius:3px;box-shadow:0 3px 10px #000a;z-index:10;padding:0 10px 8px}#inventory-window{top:14px;right:12px}#skills-window{top:14px;right:216px}#character-window{top:14px;left:12px;width:226px}#restart-window{top:50%;left:50%;transform:translate(-50%,-50%);width:220px}.window-title{display:flex;align-items:center;justify-content:space-between;height:32px;cursor:move;touch-action:none;border-bottom:1px solid #4e5058;margin:0 -10px 6px;padding:0 5px 0 10px}.window-title h2{font-size:13px;font-weight:500;margin:0}.close-window{border:0;background:transparent;width:24px;flex-basis:24px;height:24px;min-height:24px}.window-tabs{display:flex;gap:3px;border-bottom:1px solid #44474d;margin-bottom:7px}.window-tabs button{flex:1;padding:2px 5px;border:0;min-height:25px;height:25px;font-size:12px;background:transparent}.window-tabs button[aria-selected=true]{color:var(--gold);border-bottom:1px solid var(--gold)}.slot-grid{display:grid;grid-template-columns:repeat(4,36px);grid-auto-rows:36px;gap:2px;justify-content:center;max-height:228px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:2px}.window-footer{display:flex;justify-content:space-between;gap:4px;font-size:10px;border-top:1px solid #4a4d53;margin-top:7px;padding-top:7px}.window-footer span:last-child{color:var(--gold)}.magic-values{display:flex;justify-content:space-between;font-size:10px;margin-top:8px;gap:4px}.magic-values label{display:flex;align-items:center;gap:3px;white-space:nowrap}.magic-values b{display:grid;place-items:center;min-width:25px;height:19px;font-size:12px;font-weight:400;background:#070707;border:1px solid #434951;color:#87d3ff}.magic-values label:last-child b{color:#ffa5ae}#character-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0;font-size:12px}#character-stats div{display:flex;justify-content:space-between;gap:4px;border-bottom:1px solid #36393e;padding-bottom:4px}#character-stats dt{color:#9ba2ac}#character-stats dd{margin:0}#restart-window>button{width:100%;margin-top:8px}#skills-grid{grid-template-columns:repeat(4,36px)}#npc-window,#commerce-window{left:12px;top:35px;width:280px;display:flex;flex-direction:column;max-height:calc(100% - 50px)}#npc-content{overflow-y:auto;min-height:0;max-height:350px;font-size:13px;line-height:1.6;overflow-wrap:anywhere;overscroll-behavior:contain}.npc-line{min-height:12px}.npc-command{display:inline;padding:0;border:0;background:transparent;min-height:0;text-align:inherit;color:#ffd700;line-height:inherit}.npc-command-line{display:block;width:100%;padding:1px 0}.npc-command-line .npc-command{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;width:100%;min-height:22px;padding:0 5px;text-align:left;background:#24211ec9;border:1px solid #4b443d;border-radius:0}.npc-command-line .npc-command::after{content:'›';grid-column:2;text-align:center;color:#7fc6ee;font-size:14px}.npc-command:hover:not(:disabled){background:#302b27;text-decoration:none}.npc-line img{max-width:100%;height:auto;vertical-align:middle}#commerce-list{overflow-y:auto;min-height:0;max-height:300px;overscroll-behavior:contain}.commerce-row{display:flex;align-items:center;gap:5px;border-bottom:1px solid #50545b;min-height:49px;padding:4px 0;cursor:text}.commerce-row.editing{background:#25426b}.commerce-body{min-width:0;flex:1}.commerce-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px;padding-top:2px}.commerce-values{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:10px;min-height:22px}.commerce-price{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commerce-quantity{margin-left:auto;display:flex;align-items:center;gap:2px;flex:none}.commerce-quantity input{width:1ch;box-sizing:content-box;padding:2px 3px;text-align:right;font-size:12px;height:18px;min-width:1ch}.commerce-quantity button{width:17px;min-height:22px;height:22px;padding:0;font-size:12px}#commerce-summary{font-size:11px;color:#ffdc72;min-height:19px}.commerce-footer{display:flex;gap:7px;padding-top:7px}.commerce-footer button{flex:1;font-size:12px}#app{position:relative}#map-label,#map-coordinates{display:block;width:100%;min-height:14px;line-height:14px;text-align:center;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#map-coordinates{width:132px;min-width:132px;color:#d8dce3;font:11px/14px Consolas,"Microsoft JhengHei",sans-serif;font-variant-numeric:tabular-nums}#selection{width:530px;max-height:calc(100% - 24px);overflow-y:auto;background:#080808;border:0;padding:20px}.selection-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;align-items:center}#portrait-panel{margin:0;text-align:center;position:relative}#character-portrait{display:block;width:180px;height:280px}#portrait-label{font-size:13px;margin-top:4px;color:#eee}#portrait-status{position:absolute;left:0;right:0;top:50%;font-size:12px;color:#aeb9c5}#character-list-panel>button{margin-top:8px}#character-capacity{display:block;text-align:right;font-size:11px;color:#bfc4cc}#create-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}#create-stats label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0}#create-stats input{width:58px;padding:5px;margin:0}#create-points{display:block;font-size:12px;margin:12px 0;color:var(--gold)}#create-character>button{margin-top:7px}.create-options{display:grid;grid-template-columns:1fr 70px;gap:10px;margin-bottom:12px}.create-options select{display:block;width:100%;margin-top:5px;padding:5px}#creation-result{color:#a3d7ba}@media(max-width:600px){#selection{width:350px;padding:12px}.selection-layout{grid-template-columns:100px minmax(0,1fr);gap:10px}#character-portrait{width:100px;height:auto;aspect-ratio:9/14}#portrait-label{font-size:11px}#create-stats{gap:6px}#create-stats input{width:40px;padding:4px 2px}#create-stats label{font-size:11px;gap:3px}.create-options{grid-template-columns:1fr 55px;gap:6px}.create-options select{font-size:12px}#characters{max-height:250px}.character{padding:8px 5px;flex-wrap:wrap;gap:3px}.character span{overflow-wrap:anywhere}}#buff-inspection{position:absolute;z-index:26;width:240px;max-width:calc(100% - 16px);padding:8px 10px;border:1px solid #8d9198;background:#050505ed;pointer-events:none;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}#buff-inspection strong{display:block;font-weight:600;padding-bottom:5px;border-bottom:1px solid #45494f}#buff-description{margin:7px 0;white-space:pre-wrap}#buff-remaining{margin:7px 0 0;color:#ffdc72}#app[data-presentation=menu]{width:100%;border:0;background:#000}#app[data-presentation=menu] #viewport{height:calc(100dvh - 24px)}#app[data-stage=characters] #viewport{height:calc(100dvh - 60px)}#inspection{position:absolute;max-width:min(340px,calc(100% - 16px));max-height:calc(100% - 16px);overflow:auto;z-index:25;background:#050505ed;border:1px solid #8d9198;border-radius:1px;padding:7px 9px;pointer-events:none;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}#inspection strong{font-weight:400}.inspection-details{margin-top:4px;border-top:1px solid #42464b;padding-top:4px}.inspection-details p{margin:0}.inspection-details .lawful{color:#80a0ff}.inspection-details .chaotic{color:#ff8080}.inspection-details .neutral{color:#fff}.inspection-label{color:#fff}[hidden]{display:none!important}@media(max-width:800px){#game-hud{grid-template-columns:140px minmax(0,1fr) 166px}#minimap-section{display:none}.game-window{max-height:calc(100% - 12px);overflow:hidden}.slot-grid{max-height:190px}}.inspection-header{display:flex;align-items:start;justify-content:space-between;gap:8px}.inspection-header strong{min-width:0;overflow-wrap:anywhere}.inspection-bind.icon{width:23px;height:23px;min-width:23px;min-height:23px;padding:2px;border:1px solid #68727c;background:#202326;color:#e0e6ea;pointer-events:auto}.inspection-bind svg{width:17px;height:17px}#quick-slots.binding .slot{outline:1px dashed #4bafff;outline-offset:-2px}#drop-notices{position:absolute;left:8px;top:clamp(72px,28%,128px);width:224px;max-width:calc(100% - 16px);display:flex;flex-direction:column;gap:6px;pointer-events:none;z-index:2;color:#fff1b6}.drop-notice{display:flex;align-items:center;gap:10px;min-height:42px;padding:4px;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,0));border-radius:4px 0 0 4px;font-size:14px;font-weight:700;letter-spacing:0;text-shadow:1px 1px 1px rgba(0,0,0,.8)}.drop-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #fff1b6}.drop-icon img{max-width:30px;max-height:30px;image-rendering:pixelated}.drop-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:600px){#app[data-presentation=menu] #viewport{height:100dvh}#app[data-stage=characters] #viewport{height:calc(100dvh - 36px)}}@media(max-width:600px){body{padding:0;align-items:start}#app{border:0}header{padding:0 8px;gap:6px}h1{font-size:14px}#mode,#connection{font-size:10px}#viewport{height:calc(100dvh - 267px);min-height:300px}#game-hud{height:230px;grid-template-columns:118px minmax(0,1fr);grid-template-rows:130px 100px}#vitals{grid-column:1;grid-row:1;padding:4px 6px;font-size:10px;gap:2px}#coordinates{font-size:8px}#conversation{grid-column:2;grid-row:1/3;border-left:1px solid #51545a}#commands{grid-column:1;grid-row:2;padding:0 3px}.quick-pages{height:19px}.quick-pages button{height:15px;min-height:15px}#quick-slots{grid-template-columns:repeat(4,26px);grid-template-rows:repeat(2,28px);gap:1px;margin-bottom:2px}#quick-slots .slot{width:26px;height:28px;min-height:28px}#quick-slots img{max-width:24px;max-height:24px}#quick-slots .key{font-size:8px}#commands nav{gap:1px}#commands nav .icon{width:25px;flex-basis:25px;height:23px;min-height:23px}#force-attack{width:19px;height:19px;min-height:19px}#force-attack svg{width:13px;height:13px}#messages{font-size:11px;padding:5px}#chat-form{gap:2px;padding:2px}#chat-channel{width:49px;font-size:9px}#chat{font-size:12px}#world-vitals{width:148px;top:6px;left:7px}#buffs{top:6px;right:6px}.buff{flex-basis:28px;width:28px;height:28px}.buff img{max-width:26px;max-height:26px}#skills-window,#inventory-window{right:8px;top:55px}#character-window{left:8px;top:55px}.overlay{padding:15px;width:270px}h2{font-size:18px;margin-bottom:12px}.overlay input{margin-bottom:10px}#selection{max-height:calc(100% - 16px);overflow:auto}}@media(orientation:landscape) and (max-height:600px) and (min-width:601px) and (max-width:1024px){body{padding:0;align-items:start}#app{border:0}header{height:28px;padding:0 8px}#viewport{height:calc(100dvh - 152px);min-height:0}#app[data-presentation=menu] #viewport{height:100dvh}#app[data-stage=characters] #viewport{height:calc(100dvh - 28px)}#game-hud{height:124px;grid-template-columns:118px minmax(0,1fr) 136px 166px}#vitals{padding:4px 6px;font-size:10px;gap:2px}#minimap-section{display:flex;gap:3px}#minimap{width:130px;height:72px}#commands{padding:3px 5px}.quick-pages{height:21px}.quick-pages button{height:16px;min-height:16px}#quick-slots{grid-template-columns:repeat(4,32px);grid-template-rows:repeat(2,32px);margin-bottom:3px}#quick-slots .slot{width:32px;height:32px;min-height:32px}#quick-slots img{max-width:28px;max-height:28px}#commands nav .icon{height:24px;min-height:24px}#force-attack{width:21px;height:21px;min-height:21px}#force-attack svg{width:14px;height:14px}#messages{padding:4px 7px;font-size:11px}#drop-notices{top:72px;gap:4px;max-height:calc(100% - 80px);overflow:hidden}.drop-notice{min-height:36px;padding:3px;font-size:13px;gap:8px}.drop-icon{flex-basis:28px;width:28px;height:28px}.drop-icon img{max-width:26px;max-height:26px}.slot-grid{max-height:calc(100dvh - 225px)}#selection{max-height:calc(100% - 12px);padding:12px}.selection-layout{grid-template-columns:140px minmax(0,1fr);gap:14px}#character-portrait{width:140px;height:auto;aspect-ratio:9/14}}#player-trade-window{--trade-cell:34px;left:8px;top:8px;width:194px;max-height:calc(100% - 12px);padding:0 14px 8px;border:3px ridge #77716b;background:#211e1b;box-shadow:inset 0 0 0 2px #090909,0 2px 9px #000b;overflow:hidden}#player-trade-window .window-title{height:25px;margin:0 -11px 3px;padding:0 3px 0 10px;border-bottom:0}#player-trade-window .window-title h2{font-size:11px;color:#c5c0b6}#player-trade-close{width:18px;height:18px;min-height:18px;padding:1px;flex-basis:18px;background:#211e1b}#player-trade-close svg{width:13px;height:13px}.trade-offers{display:flex;flex-direction:column;gap:8px}.trade-offers h3{font-size:11px;line-height:15px;height:15px;font-weight:400;color:#eee;background:#35302d;border:1px solid #77716b;margin:0 0 1px;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trade-offer-list{display:grid;grid-template-columns:repeat(4,var(--trade-cell));grid-auto-rows:var(--trade-cell);height:calc(3*var(--trade-cell));width:calc(4*var(--trade-cell) + 12px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#625d58 #080808;border:2px ridge #625d58;background:#000}.trade-offer-row{position:relative;display:grid;place-items:center;width:var(--trade-cell);height:var(--trade-cell);min-height:0;padding:0;gap:0;border:0;border-right:1px solid #4f4a45;border-bottom:1px solid #4f4a45;background:#000;border-radius:0}.trade-offer-row img{max-width:32px;max-height:32px;object-fit:contain;image-rendering:pixelated}.trade-offer-row .count{position:absolute;bottom:0;right:1px;font-size:9px;color:#fff;text-shadow:1px 1px #000}.trade-footer{display:flex;justify-content:center;gap:12px;margin-top:8px}.trade-footer button{width:54px;height:19px;min-height:19px;font-size:11px;padding:0;background:#332e2b;border:2px ridge #77716b}.trade-prompt{flex:none;background:#302c28;border:1px solid #706963;padding:2px 6px;font-size:12px;line-height:16px;z-index:30}.trade-prompt.invitation{color:#43ed32}.trade-prompt span{display:block;overflow-wrap:anywhere}.trade-prompt>div{display:flex;justify-content:flex-end;gap:8px}.trade-prompt button{color:#edd470;border:0;background:transparent;padding:0 2px;height:17px;min-height:17px;font:12px MingLiU,serif}.trade-prompt button:hover{background:#494039}#trade-quantity-dialog{z-index:35;width:240px;padding:16px;border:3px ridge #77716b;background:#211e1b}#trade-quantity-dialog h2{font-size:15px;margin-bottom:6px}#trade-quantity-name{color:#eee;margin:0 0 8px}#trade-quantity-dialog input{height:30px;margin-bottom:8px;text-align:right}.trade-quantity-actions{display:flex;gap:8px}.trade-quantity-actions button{flex:1;font-size:12px}#player-context,#party-context{position:absolute;z-index:40;width:128px;padding:3px;background:#151618;border:1px solid #777b83;box-shadow:0 3px 10px #000b}#player-context button,#party-context button{width:100%;justify-content:flex-start;border:0;background:transparent}@media(orientation:landscape) and (max-height:600px){#player-trade-window{--trade-cell:24px;top:4px;left:4px;width:158px;padding:0 11px 4px}#player-trade-window .window-title{height:18px;margin-bottom:1px}.trade-offers{gap:2px}.trade-offers h3{font-size:10px;height:12px;line-height:11px}.trade-offer-row img{max-width:23px;max-height:23px}.trade-footer{margin-top:4px;gap:6px}.trade-prompt{font-size:10px;line-height:13px;padding:1px 4px}#trade-quantity-dialog{padding:10px}.trade-quantity-actions button{height:26px;min-height:26px}#inventory-window{display:flex;flex-direction:column;max-height:calc(100% - 8px)}#inventory-window .window-title,#inventory-window .window-tabs,#inventory-window .window-footer{flex-shrink:0}#inventory-grid{min-height:0;flex:1 1 auto}}.server-marquees{position:absolute;top:94px;left:8px;right:8px;height:26px;pointer-events:none;z-index:90;overflow:hidden;color:#0f0;font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;font-size:18px;font-weight:700;line-height:26px;background:linear-gradient(90deg,transparent,rgba(0,0,0,.31) 12%,rgba(0,0,0,.31) 88%,transparent);text-shadow:0 3px 2px #000c,1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000,1px 1px #000,-1px -1px #000;letter-spacing:0}.server-marquees[hidden]{display:none}.marquee-row{position:absolute;top:0;left:0;width:100%;height:26px;overflow:hidden;transition:transform .12s linear}.marquee-text{position:absolute;top:0;left:0;display:inline-block;width:max-content;white-space:pre;will-change:transform}.quick-pages{position:relative;padding-left:32px}#force-attack{position:absolute;left:0;top:0;width:24px;height:24px;min-height:24px;padding:2px;display:grid;place-items:center;border:1px solid #53575d;border-radius:0;background:#111;color:#858b92}#force-attack:hover:not(:disabled){background:#282b30;border-color:#858b92}#force-attack[aria-pressed=true]{color:#ffdc72;border-color:#b99446;background:#241b12}#force-attack svg{width:16px;height:16px}@media(max-width:600px){.quick-pages{height:19px;padding-left:27px}#force-attack{width:19px;height:19px;min-height:19px}#force-attack svg{width:13px;height:13px}}@media(orientation:landscape) and (max-height:600px) and (min-width:601px) and (max-width:1024px){.quick-pages{height:21px;padding-left:29px}#force-attack{width:21px;height:21px;min-height:21px}#force-attack svg{width:14px;height:14px}}#vitals{padding:0;gap:0}#social-tabs{display:flex;flex:none;height:24px;border-bottom:1px solid #69646b;background:#252326}#social-tabs .icon{width:25%;flex:1;height:24px;min-height:24px;padding:2px;border:0;border-right:1px solid #4e4a50;border-radius:0;background:transparent}#social-tabs svg{width:15px;height:15px}#social-tabs button[aria-pressed=true]{color:#e5cf88;background:#3d3638}#character-summary{display:flex;flex-direction:column;min-height:0;flex:1;gap:3px;padding:4px 8px;overflow:auto}#social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:1px;min-height:0;flex:1;padding:3px 3px 0;background:#1c181b}.social-cell{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;min-height:0;padding:2px 3px;border:1px ridge #5e555b;background:#151214;border-radius:0;color:#e4ddd3;font-size:11px;overflow:hidden}.social-cell:disabled{opacity:1;color:#4e444b}.social-cell em{font-size:12px}.social-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:100%;line-height:15px;min-width:0}.social-cell[aria-pressed=true],.party-member[aria-pressed=true]{border-color:#ddc885;background:#342d32}.social-gauge{position:relative;display:block;width:100%;height:8px;background:#100b0e;border:1px solid #797076;overflow:hidden}.social-fill{display:block;height:100%;background:#b92336}.social-gauge.mp .social-fill{background:#2878c8}.social-gauge b{position:absolute;inset:0;font-size:8px;font-weight:400;line-height:7px;text-align:center;color:#fff;text-shadow:1px 1px #000}#social-actions,#pet-actions{display:flex;justify-content:center;flex:none;padding:2px;gap:1px;height:25px}#social-actions .icon,#pet-actions .icon{width:20%;flex:1;min-width:0;min-height:21px;height:21px;padding:2px;background:#272125;border:1px solid #585057}#social-actions svg,#pet-actions svg{width:13px;height:13px}#party-floating{position:absolute;left:8px;top:180px;width:212px;max-width:calc(100% - 8px);max-height:calc(100% - 8px);display:flex;flex-direction:column;z-index:7;filter:drop-shadow(1px 2px 1px #000);background:#161116b5;border:2px ridge #958371;border-radius:0}#party-handle{height:26px;min-height:26px;flex:none;display:flex;gap:3px;padding:0 3px;border:0;border-bottom:1px solid #92837c;background:#3b3237;color:#f2e5cb;cursor:move;touch-action:none;font-size:13px}#party-handle .icon{height:22px;min-height:22px;width:22px;flex-basis:22px;padding:2px;background:#3d282e;border:2px ridge #a78e88}#party-lock{background:transparent!important;border:0!important;color:#a4c5f0}#party-lock[aria-pressed=true]{color:#efd367}#party-count{margin-left:auto;white-space:nowrap}#party-rows{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-width:thin}.party-member{display:flex;width:100%;min-height:34px;height:34px;gap:5px;padding:2px 4px;border:1px solid #897963;border-radius:0;background:#251d1fb8;margin-bottom:2px;text-align:left;font-size:12px}.party-member:last-child{margin-bottom:0}.party-member-body{display:flex;flex:1;flex-direction:column;min-width:0;gap:2px}.party-class{display:grid;place-items:center;flex:none;width:29px;height:29px;background:#050305;border:2px ridge #d2b759;color:#d2c9ba}.party-class svg{width:21px;height:21px}#party-floating[data-extended=true] .party-member{height:44px;min-height:44px}.social-dialog-actions{display:flex;gap:8px}.social-dialog-actions button{flex:1}#party-invite-form{z-index:30}#clan-window{width:674px;left:20px;top:70px;max-height:calc(100% - 8px);display:flex;flex-direction:column;padding:0 12px 4px;border:3px ridge #837777;background:#18151a}#clan-window .window-title{flex:none;background:#302930;color:#dacaa7;margin-bottom:3px}#clan-window .window-tabs{flex:none;margin:3px 0 0;border-top:1px solid #605663;border-bottom:0}#clan-window .window-tabs button{flex:0 1 120px;background:#2b232c}.clan-toolbar{display:flex;align-items:center;gap:8px;padding:2px 0 4px;flex:none;font-size:11px;color:#c6c1b7}#clan-refresh{min-height:24px;height:24px}#clan-scroll{min-height:0;overflow:auto;height:244px;overscroll-behavior:contain;border:2px ridge #6a6460;background:#10110b}#clan-scroll table{width:100%;min-width:590px;border-collapse:collapse;table-layout:fixed;font-size:12px}#clan-scroll th{position:sticky;top:0;background:#504845;height:23px;color:#c1b9a7;font-weight:400;text-align:center}#clan-scroll th:nth-child(1){width:50px}#clan-scroll th:nth-child(2){width:120px}#clan-scroll th:nth-child(3){width:120px}#clan-scroll th:nth-child(4){width:70px}#clan-scroll th:nth-child(5){width:50px}#clan-scroll th:nth-child(6){width:78px}#clan-scroll th:last-child{width:70px}#clan-scroll th button{min-height:23px;height:23px;padding:0 3px;border:0;background:transparent;font-size:11px;width:100%}#clan-scroll th[aria-sort=ascending] button::after{content:'▴'}#clan-scroll th[aria-sort=descending] button::after{content:'▾'}#clan-scroll td{height:24px;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid #30292c;text-align:center}#clan-scroll tr:nth-child(even){background:#191a12}#clan-scroll td button{min-height:20px;height:20px;width:56px;padding:0 4px;font-size:11px;border:2px ridge #867976;background:#423032}.social-empty{color:#a5a096;height:140px!important}@media(orientation:landscape) and (max-height:600px){#social-tabs{height:20px}#social-tabs .icon{height:20px;min-height:20px}#social-tabs svg{width:13px;height:13px}#character-summary{padding:2px 6px;gap:1px}#social-actions,#pet-actions{height:21px;padding:1px}#social-actions .icon,#pet-actions .icon{height:19px;min-height:19px;padding:1px}#social-grid{padding-top:2px}.social-cell{padding:1px 2px;font-size:10px}.social-name{line-height:12px}.social-gauge{height:5px}.social-gauge b{display:none}#party-floating{width:192px}#clan-window{top:4px;left:4px}#clan-window .window-title{height:24px}#clan-scroll{height:160px}#clan-window .window-tabs button{height:22px;min-height:22px}}#player-context,#party-context{width:128px}#party-floating{width:168px}#party-handle{height:25px;min-height:25px;gap:2px;font-size:11px}#party-handle .icon{height:21px;min-height:21px;width:21px;flex-basis:21px}.party-member{height:28px;min-height:28px;gap:4px;padding:2px 3px;font-size:11px}.party-member-body{gap:1px}.party-class{width:27px;height:27px;border:1px solid #8b774c}.party-class img{width:24px;height:20px;object-fit:contain}.party-class svg{width:19px;height:19px}#party-floating[data-extended=true] .party-member{height:36px;min-height:36px}.party-name-line{display:flex;align-items:center;gap:3px;min-width:0;height:13px}.party-name-line .social-name{line-height:13px}.party-leader-badge{flex:none;color:#ffd86b;font-size:9px;line-height:12px}.party-leader{color:#ffd86b}.social-gauge{display:grid;grid-template-columns:minmax(0,1fr) 29px;gap:2px;align-items:center;height:8px;background:transparent;border:0;overflow:visible}.social-track{display:block;position:relative;width:100%;height:8px;background:#100b0e;border:1px solid #797076;overflow:hidden}.social-fill{display:block;height:100%}.social-gauge b{position:static;display:block;font-size:8px;font-weight:400;line-height:8px;text-align:right;color:#fff;text-shadow:1px 1px #000;white-space:nowrap}@media(orientation:landscape) and (max-height:600px){#party-floating{width:160px}}#map-resource-warning{position:absolute;left:14px;top:76px;max-width:calc(100% - 28px);color:#ffe08a;font:11px/16px MingLiU,serif;text-shadow:1px 1px #000,-1px -1px #000;pointer-events:none;z-index:4;overflow-wrap:anywhere}#clan-manager{min-height:0;height:244px;overflow:auto;overscroll-behavior:contain;border:2px ridge #6a6460;background:#10110b}#clan-manager table{width:100%;min-width:570px;table-layout:fixed;border-collapse:collapse;font-size:12px}#clan-manager th{position:sticky;top:0;background:#504845;color:#c1b9a7;height:24px;font-weight:400}#clan-manager th:last-child{width:104px}#clan-manager td{height:26px;padding:2px 4px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#clan-manager tr:nth-child(even){background:#191a12}#clan-manager button,#clan-manager-actions button{min-height:22px;height:22px;padding:0 7px;font-size:11px;border:2px ridge #867976;background:#423032}#clan-manager button+button,#clan-manager-actions button+button{margin-left:4px}#clan-registration{left:50%;top:45%;transform:translate(-50%,-50%);width:338px;z-index:32;max-height:calc(100% - 12px);overflow:auto;padding-bottom:10px}#clan-registration>label{display:block;font-size:12px;color:var(--gold);margin:10px 0 6px}#clan-intro{width:100%;resize:vertical;min-height:70px;max-height:140px;padding:6px;color:#fff;background:#08090a;border:1px solid #5c626b;font:12px/18px MingLiU,serif}#clan-registration fieldset{border:0;padding:8px 0;display:flex;gap:18px;justify-content:center;font-size:12px}#clan-registration legend{font-size:12px;color:var(--gold)}#clan-registration fieldset label{display:flex;align-items:center;gap:4px}#clan-registration input{margin:0;padding:0}.clan-registration-buttons{display:flex;justify-content:center;gap:14px}.clan-registration-buttons button{width:76px;min-height:24px;height:24px}#viewport:has(#clan-registration:not([hidden]))>:not(#clan-registration){pointer-events:none}@media(orientation:landscape) and (max-height:600px){#clan-manager{height:160px}#clan-registration{top:50%}#clan-intro{min-height:50px;height:60px}#clan-registration>label{margin:4px 0}#clan-registration fieldset{padding:4px 0}}.slot.blessed img,.trade-offer-row.blessed img,.drop-icon.blessed img{animation:item-blessed-pulse 1.45s steps(12,end) infinite}.slot.blessed::before,.trade-offer-row.blessed::before,.drop-icon.blessed::before{content:'';position:absolute;z-index:3;inset:1px;pointer-events:none;transform:translateX(-150%);animation:item-effect-sweep 1.45s steps(12,end) infinite;background:linear-gradient(115deg,transparent 34%,#fff8aab8 48%,#fff 51%,transparent 64%);box-shadow:inset 0 0 5px #ffe36b8a}.trade-offer-row,.drop-icon{overflow:hidden;position:relative}.trade-offer-row img{position:relative;z-index:1}@keyframes item-effect-sweep{0%,18%{transform:translateX(-150%)}75%,100%{transform:translateX(150%)}}@keyframes item-blessed-pulse{0%,100%{filter:brightness(.92) drop-shadow(0 0 0 #fff4a0)}45%{filter:brightness(1.38) saturate(1.22) drop-shadow(0 0 3px #fff4a0)}}.slot.cursed::before,.trade-offer-row.cursed::before,.drop-icon.cursed::before,.slot.cursed::after,.trade-offer-row.cursed::after,.drop-icon.cursed::after{content:'';position:absolute;z-index:3;inset:0;pointer-events:none;background:radial-gradient(ellipse 28% 42% at 25% 72%,#ee4846b3,transparent 95%),radial-gradient(ellipse 32% 38% at 68% 86%,#d83e3b99,transparent 95%),radial-gradient(ellipse 35% 27% at 49% 48%,#f276686b,transparent 95%);filter:blur(.8px);animation:item-cursed-smoke 3.6s linear infinite}.slot.cursed::after,.trade-offer-row.cursed::after,.drop-icon.cursed::after{animation-delay:-1.8s;background-position:3px 6px;opacity:.8}@keyframes item-cursed-smoke{0%{transform:translate(-5%,35%) skewX(-12deg);opacity:.15}25%{opacity:.9}55%{transform:translate(5%,-6%) skewX(10deg);opacity:.75}100%{transform:translate(-3%,-65%) skewX(-8deg);opacity:0}}#inventory-organize{flex:0 0 22px;width:22px;height:22px;min-height:22px;padding:2px;border-radius:0}#inventory-organize svg{width:16px;height:16px}#inventory-window .window-footer{align-items:center}#app[data-inventory-target] :is(#inventory-window,#inventory-window *,#equipment-grid,#equipment-grid *,#mini-extra,#mini-extra *,#quick-slots,#quick-slots *){cursor:url('/cursors/magnifier.png?v=native1') 12 12,pointer}#character-window{--character-content-height:252px;display:flex;flex-direction:column;max-height:calc(100% - 8px)}#character-window .window-title,#character-window .window-tabs{flex-shrink:0}.character-body{height:var(--character-content-height);flex:0 1 var(--character-content-height);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}#equipment-grid{display:block;position:relative;width:172px;height:var(--character-content-height);max-height:none;margin:0 auto;padding:0;overflow:visible}#equipment-grid .slot{position:absolute;width:34px;height:34px;min-height:34px}#character-stats{min-height:var(--character-content-height);margin:0;grid-template-rows:repeat(8,minmax(24px,1fr));align-items:stretch}#clan-window{left:12px;max-width:calc(100% - 24px)}.npc-amount-form{display:grid;flex-shrink:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:12px}.npc-amount-form input{width:100%;text-align:center}.npc-amount-range{grid-column:1/-1;text-align:center;color:#c6baa1;font-size:11px}.npc-amount-form .commerce-footer{grid-column:1/-1}#force-attack-notice{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);height:24px;width:161px;display:flex;align-items:flex-end;gap:1px;pointer-events:none;z-index:4}#force-attack-notice[hidden]{display:none}.force-attack-glyph{display:block;flex:none;height:20px;background-image:url('/ui/force-attack-notice.png?v=20261016');background-repeat:no-repeat;image-rendering:pixelated;animation:force-attack-bounce 2.1s linear infinite;pointer-events:none}@keyframes force-attack-bounce{0%,8.571429%,100%{transform:translateY(0)}4.285714%{transform:translateY(-4px)}}@keyframes buff-expiry-blink{0%,49%{opacity:1}50%,100%{opacity:.2}}.buff.buff-expiring{animation:buff-expiry-blink 1s steps(1,end) infinite}