/* Combat windows retain a clear center and do not pause the world. Native 32px icons render at 5x. */
:root{--item-native:32px;--item-scale:5;--item-icon-size:calc(var(--item-native)*var(--item-scale));--ui-border:#8b9d7066;--ui-gold:#e0ca93}
#combat-dock{position:fixed;left:70px;top:145px;display:flex;gap:6px;z-index:22}
#combat-dock button,#portrait-attributes{background:#183c32ee;color:#f0dfb7;border:1px solid #afaa77;padding:8px 14px;border-radius:5px;cursor:pointer}
#portrait-attributes{position:absolute;right:-6px;bottom:-4px;z-index:3;border-radius:50%;width:30px;height:30px;padding:0;font-size:23px;pointer-events:auto}
#active-statuses{position:fixed;right:14px;top:520px;width:166px;max-height:calc(100dvh - 650px);overflow:auto;z-index:18;color:#e6ecd9;pointer-events:none}
#active-statuses h3{font-size:12px;color:#d4c091;display:flex;justify-content:space-between;margin:0 0 8px;text-shadow:1px 2px #051a14}
#active-statuses p{font-size:11px;text-align:right;color:#c4c9b8}.status-chip{display:flex;gap:8px;align-items:center;margin-bottom:6px;background:#112c24de;border:1px solid #93bc7277;border-radius:7px;padding:5px}.status-chip img{width:38px;height:38px;object-fit:contain}.status-chip b{display:block;font-size:11px;font-weight:500}.status-chip small{display:block;color:#a0e69c;margin-top:4px;font-size:11px}.status-chip.harmful{border-color:#ca676b}.status-chip.harmful small{color:#ffaaa7}
#game-systems[data-mode=skill]{position:fixed;inset:78px 192px auto auto;margin:0;width:min(390px,calc(100vw - 32px));height:min(700px,calc(100dvh - 180px));max-height:calc(100dvh - 100px);border:1px solid #9c9c70;border-radius:9px;background:#132e27f5;box-shadow:0 14px 44px #0008;z-index:35}
#game-systems[data-mode=skill] header{padding:10px 14px}#game-systems[data-mode=skill] header small{display:none}#game-systems[data-mode=skill] h2{font-size:19px;letter-spacing:2px}#game-systems[data-mode=skill] .systems-layout{display:block;min-height:0}#game-systems[data-mode=skill] .systems-layout>nav{display:none}#game-systems[data-mode=skill] main{padding:12px;height:100%;overflow:auto}#game-systems[data-mode=skill] footer{padding:8px 12px;font-size:11px}#game-systems[data-mode=skill] .systems-wallet{font-size:11px}
.combat-skill-tools{display:flex;gap:8px}.combat-skill-tools label{flex:1}.combat-skill-tools select{width:100%;padding:6px}.combat-skill-hint{font-size:11px;color:#adc2b1;line-height:1.7;margin:9px 0}.combat-skill-row{display:grid;grid-template-columns:62px minmax(0,1fr) 60px;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #8fa27b30}.combat-skill-row>img{width:62px;height:62px;object-fit:contain;background:transparent;filter:drop-shadow(0 2px 3px #0007)}.combat-skill-row b{display:block;color:#f0deb1;font-size:13px}.combat-skill-row small{display:block;font-size:10px;color:#bbc8b6;margin:5px 0}.skill-state{font-size:10px}.skill-state.ready{color:#9eec9f}.skill-state.waiting{color:#d5ad80}.combat-skill-row .cast-skill{padding:9px 6px;background:#346049;color:#f3e8bf;cursor:pointer}.combat-skill-row details{grid-column:2/-1;color:#bac7b4;font-size:11px}.combat-skill-row summary{cursor:pointer}.combat-skill-row details p{font-size:11px;line-height:1.7}.source-description{opacity:.65}
#inventory-panel{position:fixed;inset:190px auto auto 18px;margin:0;width:min(540px,calc(100vw - 36px));max-height:calc(100dvh - 210px);z-index:32;border-color:#a2a477;background:#122c25f5;border-radius:9px;box-shadow:0 14px 44px #0008}
#inventory-panel .inventory-heading{padding:10px 14px;gap:10px}#inventory-panel .eyebrow{display:none}#inventory-panel h2{font-size:18px;letter-spacing:2px;margin:0}#inventory-panel .inventory-wallet b{font-size:15px}#inventory-panel button{padding:6px 9px;font-size:12px;cursor:pointer}#inventory-panel .commerce-tabs{padding:8px 14px;gap:6px}#inventory-panel .commerce-layout{display:block}#inventory-panel .inventory-body,#inventory-panel .shop-body{padding:12px 14px}#inventory-panel .inventory-help{padding:12px}
.bag-view-tabs{display:flex;align-items:center;gap:6px;padding:8px 14px;flex-wrap:wrap;border-bottom:1px solid var(--ui-border)}.bag-view-tabs small{flex-basis:100%;font-size:10px!important;color:#9fb99d!important}
#inventory-panel[data-mode=shop] .inventory-body,#inventory-panel[data-mode=shop] .bag-view-tabs{display:none}
#inventory-panel #inventory-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:39vh;min-height:180px;overflow-y:auto}
#inventory-panel .inventory-slot{height:190px;min-height:190px;justify-content:center;padding:6px!important;background:radial-gradient(ellipse at center,#28463866,#0d241e)!important;border:1px solid #86906e66}
#inventory-panel .inventory-slot img{width:var(--item-icon-size);height:var(--item-icon-size);max-width:100%;object-fit:contain;pointer-events:none;background:transparent;border:0;filter:drop-shadow(0 3px 3px #0008)}
#inventory-panel .inventory-slot span{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}#inventory-panel .inventory-slot b{top:8px;right:8px;background:#10251ad9;border-radius:5px;padding:2px 5px;font-size:13px}#inventory-panel .inventory-slot small{position:absolute;left:8px;top:8px}.inventory-slot[draggable=true]{cursor:grab}#inventory-panel .inventory-slot.empty{height:190px;background:#0c251d77!important}
#inventory-panel .item-detail{grid-template-columns:100px minmax(0,1fr);margin-top:8px;padding-top:10px;gap:8px}#inventory-panel .item-icon{width:100px;height:100px;background:transparent;border:0}#inventory-panel .item-icon img{width:100px;height:100px;object-fit:contain}#inventory-panel .item-detail h3{font-size:16px}#inventory-panel .item-detail p{font-size:11px;line-height:1.65;margin:4px 0}#item-source,#item-animation{display:none}#inventory-panel #commerce-message{padding:8px 14px;min-height:32px;font-size:11px}.inventory-pagination{margin:8px 0}.weapon-filters{gap:5px;margin-bottom:8px}.weapon-filters input,.weapon-filters select{padding:6px}
.equipment-mode{display:flex;gap:6px;margin-bottom:8px}.equipment-mode [aria-pressed=true]{border-color:#bcd992!important;background:#476242!important}.paperdoll{position:relative;min-height:460px}.paperdoll canvas{position:absolute;left:50%;top:62px;transform:translateX(-50%);width:46%;height:320px;object-fit:contain;pointer-events:auto;touch-action:none;cursor:grab}#equipped-slots{position:relative;pointer-events:none;display:grid;grid-template-columns:1fr 1fr;gap:6px 45%;max-height:58vh;overflow:auto;padding:0}.equipped-slot{pointer-events:auto;position:relative;min-width:0;border:1px solid #8a987258;background:#173d2855}.equipped-slot>button:first-child{align-items:center;padding:4px!important;text-align:center}.equipped-slot img,.equipped-slot svg{width:60px;height:60px;object-fit:contain;background:transparent;color:#69886e}.equipped-slot span{max-width:100%;font-size:9px}.equipped-slot small{font-size:10px!important}.equipped-slot>button:last-child:not(:first-child){position:absolute;right:0;bottom:0;opacity:0}.equipped-slot:hover>button:last-child,.equipped-slot:focus-within>button:last-child{opacity:1}
#inventory-panel .shop-top{display:block}#inventory-panel .merchant-card{display:none}#inventory-panel .shop-row{display:grid;grid-template-columns:80px 1fr;grid-template-rows:auto auto;align-items:center;gap:3px 8px;text-align:left}#inventory-panel .shop-row img{grid-row:1/3;width:80px;height:80px;object-fit:contain;background:transparent}#shop-products{max-height:34vh;overflow:auto}#inventory-panel .shop-product{margin:10px 0}#inventory-panel .shop-product .item-icon{flex:none}
#attributes-panel{position:fixed;inset:185px auto auto 18px;margin:0;width:min(460px,calc(100vw - 36px));max-height:calc(100dvh - 205px);padding:16px;z-index:34;border:1px solid #9caa7a;border-radius:9px;background:#132e27f5;box-shadow:0 14px 44px #0008}
#attributes-panel .allocation-columns{grid-template-columns:1fr;gap:12px}#attributes-panel .derived-stats{border:0;padding:0}#attributes-panel .attributes-heading{gap:9px;padding-bottom:8px}#attributes-panel .attributes-heading img{width:44px;height:44px}#attributes-panel h2{font-size:19px}#attributes-panel .eyebrow{display:none}#attributes-panel .attribute-row{min-height:47px}#attributes-panel .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#attributes-panel .allocation-note{font-size:10px}#attributes-panel .points-badge b{font-size:23px}.stat-bonus,.stat-grid em.stat-bonus,.attribute-vitals em.stat-bonus{color:#86ed89!important;font-style:normal;font-size:12px}.stat-penalty{color:#f4978c!important;font-style:normal;font-size:12px}.attribute-row strong em{display:block;font-size:10px}
#loot-labels{pointer-events:none}#loot-labels .loot-label{pointer-events:auto;display:flex;align-items:center;gap:4px;border:0;background:transparent;box-shadow:none;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000;color:#fff1c2;padding:3px 7px;cursor:pointer;border-radius:5px;font-size:11px}#loot-labels .loot-label img{width:60px;height:60px;object-fit:contain;background:transparent}#loot-labels .loot-label[hidden],#active-statuses[hidden]{display:none!important}
@media(max-width:1100px){#game-systems[data-mode=skill]{right:12px;width:350px}#active-statuses{top:270px;right:372px;width:135px;max-height:calc(100dvh - 410px)}#inventory-panel{width:450px}#combat-dock{top:132px}#inventory-panel,#attributes-panel{top:175px;max-height:calc(100dvh - 195px)}}
.skillbar .has-item-icon>svg{display:none}.skillbar .cutout-icon{width:42px;height:42px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #0008)}
#loot-labels{position:fixed;inset:0;z-index:12}.equipped-slot .unequipped img{filter:grayscale(1);opacity:.3}.equipped-slot>button:first-child{width:100%;display:flex;flex-direction:column}.equipped-slot span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#attributes-panel[open]{display:flex;flex-direction:column;height:calc(100dvh - 205px);overflow:hidden}#attributes-panel .attributes-heading,#attributes-panel .attributes-actions,#attributes-message{flex-shrink:0}#attributes-editor{overflow-y:auto;min-height:0;flex:1}#attributes-panel .attributes-actions{padding-top:8px;margin-top:8px;border-top:1px solid #acb68d44}#attributes-panel #attributes-message{margin-top:8px;font-size:11px}
@media(max-width:760px){#game-systems[data-mode=skill]{top:80px;right:8px;width:min(330px,78vw);height:calc(100dvh - 155px)}#active-statuses{top:390px;right:8px;width:135px;max-height:calc(100dvh - 490px);z-index:17}#inventory-panel{left:8px;top:172px;width:min(400px,85vw);max-height:calc(100dvh - 190px)}#inventory-panel .inventory-slot img{width:160px;height:160px}#inventory-panel .inventory-slot{min-height:185px;height:185px}#combat-dock{left:60px;top:125px}#attributes-panel{left:8px;top:172px}#inventory-panel .inventory-wallet{display:none}}

.paperdoll canvas.rotating{cursor:grabbing}#loot-labels .loot-label:hover,#loot-labels .loot-label:focus-visible{background:transparent;color:#fff;text-decoration:underline}

.hotbar-pages{display:grid;grid-template-columns:22px 42px 22px;align-items:center;gap:2px;padding:4px;color:#f5df9a}.hotbar-pages>button{height:30px;border:1px solid #aa995b88;background:#183d32;color:#f5df9a;font-size:20px;border-radius:4px}.hotbar-pages>span{text-align:center;font-size:13px}.hotbar-dots{grid-column:1/-1;display:flex;justify-content:center;gap:8px}.hotbar-dots button{width:9px;height:9px;padding:0;border-radius:50%;border:1px solid #d3bb76;background:#19362e}.hotbar-dots button[aria-pressed=true]{background:#ffdc68}.skillbar .skill{touch-action:none}.combat-skill-row[draggable=true]{cursor:grab}.damage-number.incoming img{filter:hue-rotate(330deg) saturate(1.4)}

.bottom-center{width:min(850px,calc(100vw - 24px));z-index:35}.bottom-center .skillbar{grid-template-columns:repeat(10,minmax(0,1fr)) 92px;align-items:center}#inventory-panel{max-height:calc(100dvh - 315px)}@media(max-width:760px){.bottom-center .skillbar{grid-template-columns:repeat(10,minmax(0,1fr))}.hotbar-pages{grid-column:1/-1;justify-content:center;grid-template-columns:24px 48px 24px}.hotbar-dots{display:none}#inventory-panel{max-height:calc(100dvh - 285px)}}

body:not(.in-world) .bottom-center,body:not(.in-world) #combat-dock,body:not(.in-world) .player-card{display:none!important}

/* 附加狀態標籤（2026-10-25 技能附加狀態第 3 批，src/status-display.js renderStatusTags）：怪物頭上（.monster-status-tags）與其他玩家名牌下方（.remote-player-label .status-tags）。沒有原版狀態圖示，用文字小標籤，配色區分。 */
.status-tags{display:flex;justify-content:center;gap:2px;flex-wrap:nowrap;white-space:nowrap;pointer-events:none}.status-tags[hidden]{display:none}
.monster-status-tags{position:absolute;left:0;top:0;z-index:1}.remote-player-label .status-tags{margin-top:-3px}
.status-tag{display:inline-block;padding:0 3px;border:1px solid #0009;border-radius:2px;font:bold 10px/13px "Microsoft JhengHei",sans-serif;font-style:normal;letter-spacing:0;color:#fff;background:#4b4b4bdd;text-shadow:0 1px 1px #000a}
.status-tag[data-tone=poison]{background:#5d9a2edd}.status-tag[data-tone=burn]{background:#c4521edd}.status-tag[data-tone=paralysis]{background:#c8a21cdd;color:#1d1600;text-shadow:none}.status-tag[data-tone=sleep]{background:#5662b8dd}
.status-tag[data-tone=blind]{background:#3b3343dd;color:#d9cdea}.status-tag[data-tone=seal]{background:#8a3fa6dd}.status-tag[data-tone=freeze]{background:#3fa3d0dd}
.status-tag[data-tone=stun]{background:#d9b23add;color:#231a00;text-shadow:none}.status-tag[data-tone=root]{background:#7c5a33dd}.status-tag[data-tone=silence]{background:#6d4f8edd}.status-tag[data-tone=disarm]{background:#6b6b6bdd}.status-tag[data-tone=taunt]{background:#b8323add}.status-tag[data-tone=forget]{background:#4f6f86dd}
.float-label.block-number.immune-number{color:#fff0c8;-webkit-text-stroke:1px #8a5a12;text-shadow:0 2px 2px #2e1c05,0 0 6px #ffc86b}
#ground-aim-hint{position:fixed;left:0;top:0;z-index:13;pointer-events:none;display:flex;flex-direction:column;gap:1px;max-width:280px;padding:5px 9px;border:1px solid #c1a66b;border-radius:3px;background:#10231ee6;color:#fff1ce;font:12px/1.45 "Microsoft JhengHei",sans-serif;box-shadow:0 2px 6px #0008}#ground-aim-hint[hidden]{display:none}#ground-aim-hint b{color:#ffd77a;font-weight:600}#ground-aim-hint .ground-aim-status:empty{display:none}#ground-aim-hint[data-state=far] .ground-aim-status{color:#bcd6f5}#ground-aim-hint[data-state=blocked] .ground-aim-status{color:#ff9a86}
