/* Skill card layout: fixed icon plus two readable text rows and an optional compact toggle. */
#skillPanel{min-height:0}
#skillBar{gap:6px;padding:4px 6px}
.skillCard{box-sizing:border-box;flex:0 0 140px;width:140px;min-width:140px;height:54px;min-height:54px;padding:5px 6px;grid-template-columns:28px minmax(0,1fr);column-gap:6px;border-radius:5px}
.skillCard .skIcon{width:28px;height:28px;line-height:normal;border-color:#806b4c;border-radius:3px}
.skillCard .skContent{height:100%;grid-template-rows:17px 16px;align-content:center;row-gap:3px;min-width:0}
.skillCard .skTop{grid-column:1/3;display:flex;flex-wrap:nowrap;align-items:center;gap:3px;min-width:0;height:17px}
.skillCard .skName{display:block;flex:1 1 auto;min-width:0;font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skillCard .skLv{flex:none;margin-left:0;font-size:10px;line-height:14px;white-space:nowrap}
.skillCard .skMeta{grid-column:1/3;display:flex;align-items:center;justify-content:space-between;gap:4px;height:16px;margin:0;padding-right:35px;font-size:9px;line-height:13px;white-space:nowrap;overflow:hidden}
.skillCard .skMeta span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.skillCard .skMeta span:first-child:empty{display:none}
.skillCard .skKey{position:absolute;left:7px;right:auto;top:auto;bottom:2px;min-width:26px;text-align:center;color:#a99b7e;font-size:8px;line-height:10px}
.skillCard .skToggle{position:absolute;right:5px;bottom:4px;height:22px;min-width:34px;line-height:20px;font-size:9px;padding:0 5px;z-index:2}
.skillCard:focus-visible{outline:2px solid #e3c27d;outline-offset:1px}
#skillBar[data-overflow="true"]{scrollbar-width:thin;scrollbar-color:#8a7049 #171512}
#skillBar[data-overflow="true"][data-at-start="true"]{mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 20px),transparent)}
#skillBar[data-overflow="true"][data-at-end="true"]{mask-image:linear-gradient(90deg,transparent,#000 20px,#000)}
#skillBar[data-overflow="true"][data-at-start="false"][data-at-end="false"]{mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
#skillBar[data-overflow="false"]{mask-image:none}
.skillCard .skLock{font-size:8px;right:1px;bottom:1px;top:auto;background:#100c08;border-radius:2px}
#townGrid{grid-template-rows:minmax(0,2.7fr) auto minmax(0,1.3fr)}
#battleSide>#blog{overflow:hidden}
#bottomRow>#offlinePanel{min-width:0;min-height:0;overflow:hidden}
#battleArea>.battleInfo .bhead{gap:7px}
#battleArea>.battleInfo .bhead .kills{margin-left:0}
#mapDropsBtn{margin-left:auto;flex:none}
.dropQueryBtn{border:1px solid #977037;border-radius:5px;background:linear-gradient(#352615,#1d140b);color:#f4d494;padding:4px 8px;font-size:11px;cursor:pointer;white-space:nowrap;box-shadow:inset 0 1px rgba(255,230,150,.06)}
.dropQueryBtn:hover{border-color:#f2c266;color:#ffe6ae;background:#3b2b16}
.dropQueryBtn:focus-visible{outline:2px solid #e9ba63;outline-offset:2px}
.mapCardActions{display:flex;align-items:center;gap:9px;flex:none}
.mcard.lock{opacity:1}
.mcard.lock h4>span:first-child,.mcard.lock .md,.mcard.lock .mm{opacity:.5}
.mcard h4{align-items:center;gap:10px}
/* 装备提示层置于查询和离线弹窗上方。 */
#tip{z-index:1300;max-height:calc(100vh - 16px)}
#tip.equipTip{width:min(225px,calc(100vw - 24px));padding:0;border:0;background:transparent;box-shadow:none;line-height:1.5}
.equipmentCard{border:1px solid var(--item-color);border-radius:7px;background:linear-gradient(150deg,#201b19,#101112 65%);box-shadow:0 12px 32px #000c,0 0 13px color-mix(in srgb,var(--item-color) 15%,transparent),inset 0 0 0 3px #ffffff05;padding:12px;position:relative;overflow:hidden}
.equipmentCard::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,var(--item-color),transparent)}
.equipHeading{display:flex;align-items:center;gap:10px;padding:2px 0 10px;border-bottom:1px solid #ffffff12}
.equipHeading>div:last-child{min-width:0}
.equipIdentity{flex:1;min-width:0}
.equipEmblem{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:44px;border:1px solid color-mix(in srgb,var(--item-color) 50%,transparent);background:radial-gradient(ellipse,color-mix(in srgb,var(--item-color) 17%,transparent),#080808);color:var(--item-color);font-size:25px;border-radius:5px;text-shadow:0 0 12px var(--item-color)}
.equipTitle{color:var(--item-color);font-size:16px;font-weight:800;letter-spacing:.6px;text-shadow:0 2px 3px #000;overflow-wrap:anywhere;line-height:1.35}
.equipTags{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.equipTags span{font-size:9px;line-height:15px;padding:0 5px;color:#c2b99e;border:1px solid #ffffff15;border-radius:3px;background:#ffffff04}
.equipTags span:first-child{color:var(--item-color);border-color:color-mix(in srgb,var(--item-color) 35%,transparent)}
.equipRequirements{display:flex;justify-content:space-between;gap:7px;padding:8px 0;font-size:10px;border-bottom:1px solid #ffffff10}
.equipRequirements .met{color:#9bb294}.equipRequirements .unmet{color:#ff8980;font-weight:700}
.equipmentCard h5{font-size:9px;font-weight:500;letter-spacing:1px;color:#817e74;margin-bottom:5px}
.equipStats{padding:9px 0}
.equipmentCard .equipStat{--equip-stat-color:#fff;display:flex;justify-content:space-between;gap:12px;padding:2px 0;border-bottom:1px solid #ffffff05;font-size:11px}
.equipmentCard .equipStat span,.equipmentCard .equipStat strong{color:var(--equip-stat-color);opacity:1}
.equipmentCard .equipStat strong{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.equipmentCard .equipSpecialStats [data-stat="atkSpd"]{--equip-stat-color:#e8bd70}
.equipmentCard .equipSpecialStats [data-stat="castSpd"]{--equip-stat-color:#a8dcff}
.equipmentCard .equipSpecialStats [data-stat="luck"]{--equip-stat-color:#c9b3ee}
.equipBonus{padding:7px 8px;margin-bottom:9px;background:#17302a60;border:1px solid #58977940;border-radius:4px}
.equipBonus h5{color:#85d6a7;font-weight:700}
.equipBonus>div{display:flex;flex-wrap:wrap;gap:4px 12px;color:#b2e2c2;font-size:10px}
.equipBonus b{color:#85f0ae}
.equipPhysical{display:flex;justify-content:space-between;color:#8c8b7c;font-size:10px;padding-top:5px;border-top:1px solid #ffffff0e}
.equipPhysical b{color:#c7c3ad;font-weight:500}
.equipLore{color:#b8ae97;font-size:12px;line-height:1.65;margin-top:8px;white-space:normal}
.equipValue{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff12;margin-top:10px;padding-top:8px;font-size:9px;color:#998864}
.equipValue strong{font-size:14px;color:#ffd375;font-weight:700}.equipValue small{font-size:9px;font-weight:400}
.equipUnverified{font-size:9px;color:#827466;margin-top:6px}
.equipEmpty{font-size:10px;color:#7d7b70}
/* 所有地图共用产出弹窗。 */
#mapDropsMask{position:fixed;inset:0;background:#000b;backdrop-filter:blur(3px);z-index:1000}
#mapDropsDialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 28px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;z-index:1010;padding:17px;border:1px solid #aa8248;border-radius:9px;background:linear-gradient(145deg,#251b10,#130f0b);box-shadow:0 15px 55px #000c,inset 0 0 0 3px #ffffff03}
#mapDropsDialog[hidden],#mapDropsMask[hidden]{display:none}
#mapDropsDialog .roleMgrTitle{font-size:17px;color:#f6d18c;margin-bottom:6px}
.dropsIntro{font-size:11px;color:#a8997e;margin-bottom:10px}
.dropsFilters{display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #ffffff10;padding-bottom:10px;margin-bottom:8px}
.dropsFilters button,.dropsFilters select{background:#140f0a;color:#b7a589;border:1px solid #60472d;border-radius:4px;padding:4px 9px;font-size:11px;cursor:pointer}
.dropsFilters button.on{background:#55381a;color:#ffdb98;border-color:#b38342}
#mapDropsCount{margin-left:auto;font-size:10px;color:#a8997e}
#mapDropsList{overflow-y:auto;min-height:0;padding:0 3px 0 0;scrollbar-gutter:stable}
.dropGroup{margin:9px 0 13px}.dropGroup h5{display:flex;align-items:center;gap:9px;color:var(--item-color);font-size:12px;margin-bottom:6px;font-weight:600}
.dropGroup h5::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,color-mix(in srgb,var(--item-color) 30%,transparent),transparent)}
.dropGroup h5 small{font-size:10px;opacity:.65;font-weight:400}
.dropItems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dropItem{border:1px solid #ffffff10;background:#0003;border-radius:5px;padding:8px;min-width:0;outline:none}
.dropItem:hover,.dropItem:focus{border-color:var(--item-color);background:#ffffff04}
.dropItemName{color:var(--item-color);font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropItemMeta{display:flex;justify-content:space-between;gap:5px;color:#9d8d77;font-size:9px;margin-top:3px}
.dropSource{font-size:8px;color:#c2aa77}.dropSource.boss{color:#e6a688}
.dropEmpty{padding:30px 0;text-align:center;font-size:12px;color:#a8997e}
.dropsFooter{flex:none;padding-top:10px;margin-top:10px;border-top:1px solid #ffffff10;font-size:10px;color:#8e8068}
@media(max-width:720px){.dropItems{grid-template-columns:repeat(2,minmax(0,1fr))}.equipmentCard .equipTitle{font-size:14px}}

/* 同一基础装备在所有入口使用同一图标；品质只由边框表示。 */
.itemIcon{position:relative;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:44px;height:44px;aspect-ratio:1;flex:none;overflow:hidden;border:1px solid var(--item-color,#706346);border-radius:0;background:#070707;box-sizing:border-box;box-shadow:inset 0 0 0 1px #0008;color:#baad8d}
.itemIcon img{width:100%;height:100%;padding:3px;object-fit:contain;image-rendering:pixelated;filter:none;pointer-events:none;transform:scale(var(--icon-zoom,1));transform-origin:center}
.specialItemLegendary img{image-rendering:auto}
.specialItemQualityBadge{position:absolute;right:0;bottom:0;z-index:2;padding:0 2px;background:#24120fe8;border-left:1px solid var(--item-color);border-top:1px solid var(--item-color);color:var(--item-color);font-size:8px;font-weight:700;line-height:11px;text-shadow:0 1px 2px #000}
.itemIconFallback{display:none;font-size:19px;color:#b4a386}
.itemIcon .forgeBadge{position:absolute;right:0;top:0;z-index:2;min-width:15px;padding:0 2px;background:#131210d9;border-left:1px solid var(--item-color,#d6b576);border-bottom:1px solid var(--item-color,#d6b576);color:#f0d9a8;font:700 9px/13px sans-serif;text-align:center;text-shadow:0 1px 2px #000}
.itemIcon.hasForgeAura{overflow:visible;isolation:isolate;z-index:2}
.itemIcon.hasForgeAura>img{position:relative;z-index:1}
.itemIcon .forgeAura{position:absolute;left:-34.9%;top:-34.9%;display:block;width:203%;height:203%;pointer-events:none;z-index:2}
.itemIcon.hasForgeAura .forgeAura img,.equipSlot.filled .itemIcon.hasForgeAura .forgeAura img,.bagcell.filled .itemIcon.hasForgeAura .forgeAura img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;object-fit:fill;image-rendering:auto;transform:none;filter:none}
.itemIcon.forgeAuraRank5 .forgeAura{left:-43.9%;top:-42.6%}
.itemIcon.isMissing.hasForgeAura .forgeAura img{display:block}
.itemIcon.isMissing .itemIconFallback{display:block}.itemIcon.isMissing img{display:none}
.cell.equipSlot.filled{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.equipSlot.filled>.itemIcon{width:46px;height:46px}
.bagcell.filled{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.bagcell.filled{height:auto!important;min-height:0!important;width:100%;aspect-ratio:1;align-self:center}
#inventoryPanel .bagcell.filled:has(.itemIcon.hasForgeAura){overflow:visible;z-index:3}
.bagcell.filled>.itemIcon{width:min(100%,44px);height:auto}
/* 旧素材居中缩小，保留点击区域；使用平滑缩放减少放大后的像素颗粒。 */
.equipSlot.filled .itemIcon img,.bagcell.filled .itemIcon img{width:80%;height:80%;max-width:34px;max-height:34px;padding:0;image-rendering:auto}
.bagcell.filled:hover .itemIcon,.equipSlot.filled:hover .itemIcon{background:#15110c;box-shadow:inset 0 0 0 1px #ffffff30}
.bagcell .bagQty{z-index:1;color:#e9deca!important;text-shadow:0 1px 3px #000;pointer-events:none}
.equipEmblem{width:46px;height:46px;border:0;background:none;border-radius:0;text-shadow:none}
.equipEmblem>.itemIcon{width:100%;height:100%}
.equipmentCard{border-color:#6e5b3e;box-shadow:0 12px 32px #000c,inset 0 0 0 3px #ffffff05}
.equipmentCard::before{background:linear-gradient(90deg,transparent,#8f7650,transparent)}
.equipTitle{color:#eee3cb;text-shadow:0 2px 3px #000}
.equipTags span:first-child{color:#c2b99e;border-color:#ffffff15}
.dropGroup h5{color:#cbbb98}.dropGroup h5::after{background:linear-gradient(90deg,#70604455,transparent)}
.dropItems{grid-template-columns:repeat(auto-fill,minmax(34px,36px));justify-content:start;gap:7px}
.dropItem{padding:0;border:0;background:none;aspect-ratio:1}
.dropItem>.itemIcon{width:100%;height:100%}
.dropItem>.itemIcon img{width:100%;height:100%;padding:1px;object-fit:contain;image-rendering:auto}
.dropItem:hover,.dropItem:focus{border:0;background:none}
.dropItem:hover .itemIcon,.dropItem:focus .itemIcon{box-shadow:inset 0 0 0 1px #ffffff40}
.dropItem:focus-visible .itemIcon{outline:2px solid #dbc190;outline-offset:-3px}
#offlineDetails .offGear{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:7px}
.offGear .offEquip{padding:0;border:0;aspect-ratio:1}
.offEquip>.itemIcon{width:100%;height:100%}
#lootList p{align-items:center;gap:5px}
#lootList .lootItem{display:inline-flex;align-items:center;gap:4px;color:#b3a182;font-size:10px}
#lootList .itemIcon{width:30px;height:30px}
.feed .itemIcon,#blogList .itemIcon{width:22px;height:22px;margin:0 2px}
.feed .itemIcon img,#blogList .itemIcon img{padding:1px}
.dbg-item>.itemIcon{width:42px;height:42px}
#actPop .popttl .itemIcon{width:44px;height:44px}
.equipSlot{position:relative}.equipSlot .equipLockBadge{position:absolute;right:2px;bottom:2px;z-index:3;font-size:11px;line-height:14px;pointer-events:none;text-shadow:0 1px 3px #000}
.pot label{display:none}
@media(max-width:720px){.dropItems{grid-template-columns:repeat(auto-fill,minmax(32px,34px));gap:6px}}
