/* d4legendary.css — 页面专属覆盖；公共规则在 d4v6-common.css 与 d4v6-equip-common.css */
/* ==================================================================
 * d4legendary.css — Custom Legendary 页样式（页面覆盖样式；公共规则已抽离）
 * 由 d4v6.css 拆分；公共规则在 d4v6-common.css（equip/legendary 另加 d4v6-equip-common.css），这里只留本页专属。
 * ================================================================== */
/* ── Shop layout ── */
/* ── Custom Unique (equip builder, aligned with live diablo-4-equip) ── */
.d4v6.d4-equip-page .d4-equip-slot-radios,
.d4v6.d4-build-page .d4-equip-slot-radios{margin: 0;
padding: 0;
list-style: none;}
.d4v6.d4-equip-page .d4-equip-slot-radios > li,
.d4v6.d4-build-page .d4-equip-slot-radios > li{margin: 0;
padding: 0;}
.d4v6.d4-equip-page .d4-equip-slot-radios > li + li,
.d4v6.d4-build-page .d4-equip-slot-radios > li + li{margin-top: 4px;}
.d4v6.d4-equip-page .d4-equip-slot-radio,
.d4v6.d4-build-page .d4-equip-slot-radio{display: flex;
align-items: center;
gap: 10px;
margin: 0;
padding: 9px 10px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
line-height: 1.25;
color: #35465b;
transition: background-color 140ms ease, color 140ms ease;}
.d4v6.d4-equip-page .d4-equip-slot-radio:hover,
.d4v6.d4-build-page .d4-equip-slot-radio:hover{background: #f1f6fc;
color: #185ebb;}
.d4v6.d4-equip-page .d4-equip-slot-radio input[type="radio"],
.d4v6.d4-build-page .d4-equip-slot-radio input[type="radio"]{flex: 0 0 auto;
width: 16px;
height: 16px;
margin: 0;
accent-color: #185ebb;
cursor: pointer;}
.d4v6.d4-equip-page .d4-equip-slot-radios > li.cur .d4-equip-slot-radio,
.d4v6.d4-build-page .d4-equip-slot-radios > li.cur .d4-equip-slot-radio{background: #eaf2fc;
color: #185ebb;
font-weight: 600;}
/* Custom Unique — Step #1 物品/属性选择：一行 3 个 */
/* Step #2 — live D4 item tooltip panel */
/* Custom Legendary — Step #1 class pills (Items server-pill style, main panel) */
.d4v6.d4-legendary-page .d4-legendary-class-block{margin: 0 0 16px;}
.d4v6.d4-legendary-page .d4-legendary-class-block .con-box-filter-title.d4-inset-title{margin: 0 0 10px;
font-size: 16px;
font-weight: 600;
color: var(--mmoso-text, #333);}
.d4v6.d4-legendary-page .d4-legendary-class-pills{display: flex;
flex-wrap: nowrap;
align-items: stretch;
gap: 6px;
margin: 0;
padding: 0;
list-style: none;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;}
.d4v6.d4-legendary-page .d4-legendary-class-pills > li{display: flex;
flex: 0 0 auto;
margin: 0;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button{display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
width: auto;
box-sizing: border-box;
height: 40px;
min-height: 40px;
border: 1px solid var(--border-control, #b8c5d6);
border-radius: 8px;
padding: 0 12px;
background: #fff;
color: #35465b;
font: 600 15px/1.15 Poppins, sans-serif;
cursor: pointer;
white-space: nowrap;
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button span{font-size: 15px;
font-weight: 600;
font-family: Poppins, sans-serif;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button img{flex: 0 0 22px;
width: 22px;
height: 22px;
object-fit: contain;
border-radius: 4px;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button:hover{color: #185ebb;
border-color: #7fa4d1;
background: #f1f6fc;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button.is-active{border-color: #185ebb;
background: #185ebb;
color: #fff;
box-shadow: 0 3px 10px rgba(24, 94, 187, 0.22);}
.d4v6.d4-legendary-page .d4-legendary-class-pills button.is-active:hover{background: #124b99;
border-color: #124b99;
color: #fff;}
.d4v6.d4-equip-page .d4-equip-slot-sidebar-shell,
.d4v6.d4-build-page .d4-equip-slot-sidebar-shell{padding-top: 16px;}
/* Custom Legendary — 属性按钮一行 3 个 */
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid{grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px 5px;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li{min-height: 56px;
padding: 8px 10px;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li img.items-imgs{height: 60px;
max-width: 50px;}
.d4v6.d4-legendary-page .d4-legendary-affix-btn{display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 100%;
padding: 0;
margin: 0;
border: 0;
background: transparent;
text-align: left;
font: inherit;
color: inherit;
cursor: pointer;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix{font-size: 14px;
font-weight: 500;
line-height: 1.25;
color: #35465b;
font-family: Poppins, sans-serif;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix span{font-size: 14px;
font-weight: 500;
line-height: 1.25;
color: #35465b;
font-family: Poppins, sans-serif;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix:hover:not(.active) span{color: #185ebb;}
.d4v6.d4-legendary-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.active span{color: #fff;
font-weight: 500;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-checkout-head{display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 8px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-type{font-size: 13px;
color: #c4a574;
margin: 0 0 4px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-class{font-size: 12px;
color: #bab0a3;
margin: 0;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-selected-list{margin: 6px 0 0;
padding-left: 18px;
color: #e8dcc8;
font-size: 12px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-guarantee{margin: 4px 0 8px;
color: #7dd3fc;
font-size: 12px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-delivery{margin-top: 12px;
font-size: 12px;
color: #bab0a3;}
.d4v6.d4-items-page .d4-service-nav > li{flex: 0 0 auto;}
@media (max-width: 680px) {
/* ============================================================
 * merged from d4v6/d4v6-common.css
 * ============================================================ */
/* ==================================================================
 * d4v6-common.css
 * Shared styles for the D4 v6 pages (Gold / Items / Custom Unique /
 * Custom Legendary / Build).
 *
 * Everything is scoped under the `.d4v6` page-content wrapper.
 * d4v6-ref.css (auto-generated from the reference bundle) provides the
 * base design system; this file only adds:
 *   - page wrapper / legacy-partial adjustments
 *   - the mobile "More" tab modal
 *   - the mobile popup / side panel components
 *   - adaptation of the legacy product-card markup to the v6 card look
 *   - pagination, promo-banner hiding and small helpers
 *
 * Page-specific layout lives in
 * public/mmoso/css/game/d4v6/<page>.css
 * ================================================================== */
/* ------------------------------------------------------------------
 * 1. Page wrapper basics
 * ------------------------------------------------------------------ */
}
@media (max-width: 1024px) {
/* the shared nav markup wraps the label in a span with its own colour */
/* ------------------------------------------------------------------
 * 5. Mobile slide panels (server / class)
 * ------------------------------------------------------------------ */
}
/* card 2 · class — the items page D2 select card, funnel icon */
@media (max-width: 1024px) {
/* ------------------------------------------------------------------
 * Add-to-cart feedback toast (created by gold.js)
 * ------------------------------------------------------------------ */
}
/* ============================================================
 * merged from d4v6/unique.css
 * ============================================================ */
/* ==================================================================
 * unique.css — Diablo 4 Custom Unique page (template: diablo-4-equip)
 *
 * The base design system lives in d4v6-ref.css and d4v6-common.css.
 * This file only adds what is specific to the equip builder page:
 *   - desktop Step #1 grid / Step #2 affix placeholder
 *   - legacy common.css corrections for the v6 service tabs
 *   - mobile layout (one-column shop, panel picker, stacked checkout)
 *
 * Scoped under `.d4v6.d4-equip-page`.
 * ================================================================== */
/* ------------------------------------------------------------------
 * 1. Header / service tabs
 *    The shared d4v6-common.css owns the page head (desktop + the dark
 *    mobile banner) and the mobile service tab strip. Only the tab width
 *    is adjusted here: the v6 labels ("Custom Unique"/"Custom Legendary")
 *    are longer than the live category names and must stay on one line.
 * ------------------------------------------------------------------ */
/* ------------------------------------------------------------------
 * 2. Equipment sidebar (Step #1 level 1)
 * ------------------------------------------------------------------ */
/* ------------------------------------------------------------------
 * 3. Step #1 — unique item grid (level 2)
 * ------------------------------------------------------------------ */
/* Step #2 (affixes) placeholder under the Step #1 grid */
/* ------------------------------------------------------------------
 * 4. Step #2 — dark checkout card
 * ------------------------------------------------------------------ */
/* loading / disabled states */
/* ------------------------------------------------------------------
 * 5. Mobile entry points — D2 two-card composition
 *   [ Step 1                ] [ Step 2                ]
 *   [ (funnel) Equipment &  ] [ (list) Affixes        ]
 *   [   Unique item         ] [   Select Affixes      ]
 *   [   Helm · #023 Ekans   ] [   (coming soon)       ]
 * ------------------------------------------------------------------ */
/* Affix "coming soon" panel */
/* ------------------------------------------------------------------
 * 7. Mobile layout (<= 1024px, same breakpoint as d4v6-common.css)
 * ------------------------------------------------------------------ */
/* one-column shop: sidebar is replaced by the slide panel */
@media (max-width: 1024px) {
/* phone layout starts straight at Step #1: no page lead / divider */
/* Step 1 | Step 2 cards sit in one D2-style row */
/* Step #1 list is picked through the panel on mobile */
/* Step #2 dark checkout card: full width, stacked, whole-row button */
/* ------------------------------------------------------------------
 * 7b. Step 1 picker — reuses the D2 category sheet
 *     level 1 = equipment slot, level 2 = the unique items of that slot
 * ------------------------------------------------------------------ */
}
/* on the items page the drawer toggles `.subs` with jQuery; here the
   open-row class is the single source of truth */
/* level 2 rows: a small item icon sits next to the unique name */
/* ------------------------------------------------------------------
 * 8. Narrow phones
 * ------------------------------------------------------------------ */
@media (max-width: 480px) {
/* keep the two step cards comfortable on 360px-wide phones */
}
@media (max-width: 380px) {
/* ============================================================
 * merged from d4v6/legendary.css
 * ============================================================ */
/* ==================================================================
 * legendary.css — Diablo 4 Custom Legendary page (v6)
 * Scoped to the `.d4v6.d4-legendary-page` content wrapper.
 * d4v6-ref.css provides the desktop design; this file only adds the
 * Legendary-specific bits + the whole mobile layout (<= 1024px).
 * ================================================================== */
/* ------------------------------------------------------------------
 * 1. Desktop — small corrections on top of the reference styles
 * ------------------------------------------------------------------ */
/* legacy common.css targets every `.menucontent .menubox li`, so the v6
   service tabs need their width/typography reset (same fix as unique.css).
   The v6 labels ("Custom Unique"/"Custom Legendary") are longer than the
   live category names and must stay on one line. */
}
.d4v6.d4-legendary-page .menucontent .menubox .d4-service-nav > li{width: auto;
min-width: 0;
text-align: left;}
.d4v6.d4-legendary-page .menucontent .menubox .d4-service-nav .d4-service-btn{white-space: nowrap;}
.d4v6.d4-legendary-page .menucontent .menubox .d4-service-nav .d4-service-btn > img{margin: 0;}
.d4v6.d4-legendary-page .menucontent .menubox .d4-service-nav .d4-service-btn > span{display: inline;
margin: 0;
padding: 0;
color: inherit;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: 1.2;
text-align: left;}
.d4v6.d4-legendary-page .d4-equip-lead{color: #26364b;}
.d4v6.d4-legendary-page .d4-legendary-step-count{font-size: 13px;
font-weight: 500;
color: #6b7c92;}
.d4v6.d4-legendary-page .d4-legendary-class-pills{padding-bottom: 2px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-checkout-head .items-imgs{position: static;
flex: 0 0 64px;
width: 64px;
height: 64px;
object-fit: contain;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-selected-list{list-style: disc;
padding-left: 18px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-selected-list li{margin: 2px 0;
line-height: 1.5;
word-break: break-word;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-selected-list li::marker{color: #bab0a3;}
.d4v6.d4-legendary-page .equipbox .right .information_info select{color: #dca779;
background-color: #161923;}
.d4v6.d4-legendary-page .equipbox .right .flex-box.mt12{gap: 14px;
align-items: center;}
.d4v6.d4-legendary-page .equipbox .right .flex-box .price{display: flex;
align-items: baseline;
gap: 2px;
line-height: 1.1;}
.d4v6.d4-legendary-page .equipbox .right .flex-box .price strong{font-size: 20px;
color: #facd91;}
.d4v6.d4-legendary-page .equipbox .right .flex-box .ml-auto{display: flex;
justify-content: flex-end;}
.d4v6.d4-legendary-page .equipbox .right button.btn.buy-now{width: 168px;
max-width: 100%;
height: 46px;
line-height: 46px;
border-radius: 8px;
background: #185ebb;
color: #fff;
font: 600 15px/46px Poppins, sans-serif;}
.d4v6.d4-legendary-page .equipbox .right button.btn.buy-now:hover{background: #124b99;}
/* empty affix state (grid + mobile panel) */
.d4v6.d4-legendary-page .d4-equip-list-grid > li.d4-equip-empty{grid-column: 1 / -1;
display: block;
min-height: 0;
color: #55657a;
cursor: default;
padding: 20px 16px;
background: #f8fafc;
border: 1px dashed #cbd7e6;
border-radius: 8px;
font-size: 13px;
line-height: 1.5;}
.d4v6.d4-legendary-page .d4-equip-list-grid > li.d4-equip-empty p{margin: 0;}
.d4v6.d4-legendary-page .d4-equip-list-grid > li.d4-equip-empty .d4-equip-empty-sub{margin-top: 6px;
color: #7a8798;
font-size: 12px;}
/* mobile-only triggers are hidden on desktop by d4v6-common.css */
.d4v6.d4-legendary-page .hide-mobile-subpath{display: inline-flex;}
/* mobile slide panels + their shade are mobile-only on this page */
.d4v6.d4-legendary-page .d4-legendary-panel-backdrop{position: fixed;
inset: 0;
z-index: 10044;
background: rgba(9, 22, 40, 0.55);}
.d4v6.d4-legendary-page .d4-legendary-panel-backdrop[hidden]{display: none !important;}
@media (min-width: 1025px) {
.d4v6.d4-legendary-page .d4v6-panel{display: none !important;}
.d4v6.d4-legendary-page .d4-legendary-panel-backdrop{display: none !important;}
/* toast */
}
/* ------------------------------------------------------------------
 * 2. Mobile layout (<= 1024px)
 * ------------------------------------------------------------------ */
/* the legacy sidebar becomes a slide panel on mobile */
@media (max-width: 1024px) {
.d4v6.d4-legendary-page .d2rbox.d4-shop-layout > .box > .left.d4-sidebar{display: none !important;}
.d4v6.d4-legendary-page .d4-shop-frame{padding: 0 12px 20px;}
.d4v6.d4-legendary-page .d4-shop-layout > .box{flex-direction: column;
gap: 0;}
.d4v6.d4-legendary-page .d2r-runes-panel-card.d4-equip-panel-card{width: 100%;
padding: 18px 18px 12px;
/* beat the shared full-bleed rule (14px !important) so the card lines
up with the Custom Unique page, which keeps the 18px gutter */
padding-inline: 18px !important;
border-radius: 12px;
--panel-pad-x: 18px;}
.d4v6.d4-legendary-page .d4-equip-shop{min-height: 0;
gap: 0;}
.d4v6.d4-legendary-page .d4-equip-lead.con-box-filter-title.d4-inset-title{font-size: 15px;
padding: 0 2px;}
.d4v6.d4-legendary-page .d4-equip-shop .d4-equip-lead-divider.d4-inset-divider--under-title{margin-top: 10px;
margin-bottom: 12px;}
.d4v6.d4-legendary-page .d4-legendary-class-block{margin-bottom: 14px;}
.d4v6.d4-legendary-page .d4-legendary-class-block .con-box-filter-title.d4-inset-title{font-size: 15px;
margin-bottom: 8px;
padding: 0 2px;}
/* class pills: single swipeable row */
.d4v6.d4-legendary-page .d4-legendary-class-pills{flex-wrap: nowrap;
gap: 6px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding: 2px 2px 4px;}
.d4v6.d4-legendary-page .d4-legendary-class-pills::-webkit-scrollbar{display: none;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button{height: 38px;
min-height: 38px;
padding: 0 10px;
gap: 5px;
font-size: 13px;
border-radius: 8px;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button span{font-size: 13px;}
.d4v6.d4-legendary-page .d4-legendary-class-pills button img{flex-basis: 18px;
width: 18px;
height: 18px;}
/* step 2 row + mobile triggers */
.d4v6.d4-legendary-page .equipbox{display: flex;
flex-direction: column;
align-items: stretch;}
.d4v6.d4-legendary-page .equipbox .d4-equip-step-row{margin: 2px 0 10px;
font-size: 14px;
line-height: 1.4;}
.d4v6.d4-legendary-page .d4-legendary-step-count{display: block;
margin-top: 2px;
font-size: 12px;}
.d4v6.d4-legendary-page .d4-equip-shop-body.equipbox > .d4-equip-main{width: 100%;
flex: 1 1 auto;
max-width: none;}
/* the checkout card stacks below the affix trigger — same box as the
       Custom Unique card so both pages read identically on mobile */
.d4v6.d4-legendary-page .d4-equip-shop-body.equipbox > .right{width: 100%;
flex: 1 1 auto;
max-width: none;
min-width: 0;
margin-top: 0;
padding: 34px 24px;
border-radius: 12px;}
.d4v6.d4-legendary-page .equipbox .right p.title{font-size: 14px;
line-height: 21px;
margin-bottom: 12px;
letter-spacing: 0;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-checkout-head{align-items: center;
margin-bottom: 12px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-checkout-head .items-imgs{flex-basis: 54px;
width: 54px;
height: 54px;}
.d4v6.d4-legendary-page .equipbox .right .affixes-box{padding: 10px 0;
font-size: 13px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-selected-list{font-size: 13px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-guarantee{font-size: 13px;
margin: 4px 0 10px;}
.d4v6.d4-legendary-page .equipbox .right select{height: 48px;
line-height: 48px;
margin: 12px 0 16px;
font-size: 13px;}
.d4v6.d4-legendary-page .equipbox .right .flex-box.mt12{flex-direction: column;
align-items: stretch;
gap: 12px;
margin-top: 14px;}
.d4v6.d4-legendary-page .equipbox .right .flex-box.mt12 > div:first-child{display: flex;
align-items: baseline;
justify-content: space-between;}
.d4v6.d4-legendary-page .equipbox .right .flex-box .price{font-size: 24px;}
/* Buy Now — full-width row */
.d4v6.d4-legendary-page .equipbox .right .flex-box .ml-auto{width: 100%;
margin-left: 0;}
.d4v6.d4-legendary-page .equipbox .right button.btn.buy-now{width: 100%;
height: 48px;
line-height: 48px;
font-size: 15px;
border-radius: 8px;}
.d4v6.d4-legendary-page .equipbox .right .d4-legendary-delivery{margin-top: 12px;
font-size: 12px;}
/* ------- mobile affix panel ------- */
.d4v6.d4-legendary-page .d4-legendary-panel-note{margin: 0 0 12px;
color: #55657a;
font-size: 13px;
line-height: 1.5;}
.d4v6.d4-legendary-page .d4-legendary-panel-note b{color: #185ebb;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel{display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
width: 100%;
margin: 0;
padding: 0;
list-style: none;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix{display: flex;
align-items: center;
min-height: 52px;
margin: 0;
padding: 8px;
background: #f8fafc;
border: 1px solid #d8e2ec;
border-radius: 8px;
font-size: 13px;
cursor: pointer;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active{background: #185ebb;
border-color: #185ebb;
box-shadow: 0 3px 10px rgba(24, 94, 187, 0.22);}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix .d4-legendary-affix-btn{display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 0;
margin: 0;
border: 0;
background: transparent;
text-align: left;
font: inherit;
color: inherit;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix img.items-imgs{flex: 0 0 auto;
height: 50px;
width: auto;
max-width: 44px;
object-fit: contain;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix span{flex: 1 1 auto;
min-width: 0;
font-size: 13px;
line-height: 1.3;
font-weight: 500;
color: #35465b;
overflow-wrap: anywhere;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active span{color: #185ebb;}
/* mobile only: the selected affix inside the bottom sheet is a light chip
   with a primary outline + the same tick the PC list uses (the desktop
   list keeps its solid blue fill) */
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active{position: relative;
padding-right: 32px;
background: #eef3fb;
border: 1px solid var(--mmoso-color-primary-hover);
box-shadow: none;}
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active::before{content: "";
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
background: #185ebb;
-webkit-mask: url(/mmoso/image/ok.png) center / contain no-repeat;
mask: url(/mmoso/image/ok.png) center / contain no-repeat;
pointer-events: none;}
.d4v6.d4-legendary-page .d4-legendary-panel-foot{position: sticky;
bottom: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 14px;
padding: 12px 0 calc(6px + env(safe-area-inset-bottom, 0px));
background: #fff;
border-top: 1px solid #e8edf4;
box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.04);}
.d4v6.d4-legendary-page .d4-legendary-panel-count{color: #55657a;
font: 600 13px/1.3 Poppins, sans-serif;
white-space: nowrap;}
.d4v6.d4-legendary-page .d4-legendary-panel-apply{flex: 1 1 auto;
max-width: 210px;
min-height: 42px;
border: 1px solid #185ebb;
border-radius: 9px;
background: #185ebb;
color: #fff;
font: 600 14px/1.2 Poppins, sans-serif;}
/* ------- slot panel ------- */
/* panel backdrop is a real element toggled by legendary.js */
/* very small phones */
}
@media (max-width: 380px) {
.d4v6.d4-legendary-page .d4-legendary-affix-grid--panel{grid-template-columns: minmax(0, 1fr);}
/* ------------------------------------------------------------------
 * Mobile · Step 1 / Step 2 cards + D2 class sheet
 *   Step 1 = class → equipment slot (side sheet, same as Custom Unique)
 *   Step 2 = affixes (bottom sheet)
 * ------------------------------------------------------------------ */
/* the class pills and the long step row move into the Step 1 sheet */
}
@media (max-width: 1024px) {
.d4v6.d4-legendary-page .d4-legendary-class-block,
.d4v6.d4-legendary-page .equipbox .d4-equip-step-row{display: none !important;}
/* the two step cards replace the old trigger row */
.d4v6.d4-legendary-page .d4-equip-mobile-current{display: grid !important;
grid-template-columns: 1fr 1fr;
column-gap: 10px;
align-items: stretch;
margin: 0 0 4px;}
/* Step 1 sheet: the drawer styles come from the Custom Unique page */
}
.d4v6.d4-legendary-page .leftsidebox .boxcontent::before{content: "Class & Gear";}
.d4v6.d4-legendary-page .leftsidebox .category > li.curs > .subs{display: block;}
.d4v6.d4-legendary-page .leftsidebox .category > li > a.menu,
.d4v6.d4-legendary-page .leftsidebox .subs .selectmenu > li > span{cursor: pointer;}
/* slot rows keep the D2 gray (the legacy horde list colours every span blue) */
.d4v6.d4-legendary-page .leftsidebox .subs .selectmenu > li > span{color: #475569 !important;
font-weight: 400 !important;}
.d4v6.d4-legendary-page .leftsidebox .subs .selectmenu > li.checked > span,
.d4v6.d4-legendary-page .leftsidebox .subs .selectmenu > li.category-active > span{color: #185ebb !important;
font-weight: 600 !important;}
/* ============================================================
 * Mobile adjustments shared by the five D4 v6 pages
 * ============================================================ */
/* Mobile: the "kind" (service type) icons are dropped — the pills keep
   their label only, which keeps the 2-column wrap readable.
   The third selector repeats the gold page's checked-icon rule so it
   wins the tie by source order (that rule is 6 classes deep). */
@media (max-width: 1024px) {
.d4v6.d4-gold-page .d2r-runes-panel-card,
.d4v6.d4-legendary-page .d2r-runes-panel-card{padding-inline: 14px !important;}
/* item page: the server list fills the sheet (the desktop toolbar keeps
   its compact inline pills, which the more specific page rules enforce) */
/* legendary affix sheet: its own sticky footer owns the bottom edge, so the
   body must not add padding under it (otherwise the next row peeks through) */
.d4v6.d4-legendary-page #d4LegendaryAffixPanel .d4v6-panel-body{padding-bottom: 0;}
.d4v6.d4-legendary-page #d4LegendaryAffixPanel .d4-legendary-panel-foot{padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));}
/* ============================================================
 * Mobile · Custom Unique / Step-1 sheet: skeleton + icon placeholder
 * ·切一级菜单（槽位）时先铺骨架行，数据回来再换成真实 item，
 *  避免“点开那一行是空白的”一闪
 * ·item 缩略图给一块浅灰底，图片解码完直接盖上去，不会出现空洞
 * ============================================================ */
}
/* 图片解码完就把占位底色撤掉，透明底的缩略图后面不会留一块灰 */

/* ============================================================
 * Custom Legendary · affix limit hint
 * 选满 4 条后再点其他词条时的提示：沿用购物车提示（.layersHint）
 * 的弹窗样式（白卡 + 警告图标 + 标题 + 文案 + 按钮），只换内容
 * ============================================================ */
.d4v6.d4-legendary-page .d4v6-affix-limit{position: fixed;
z-index: 19991016;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: none;}
.d4v6.d4-legendary-page .d4v6-affix-limit.is-open{display: block;
animation: fadeIn 0.3s ease-in-out;}
.d4v6.d4-legendary-page .d4v6-affix-limit .pops{position: fixed;
top: 50%;
left: 50%;
width: 430px;
max-width: 90%;
padding: 30px;
box-sizing: border-box;
transform: translate(-50%, -50%);
background: #fff;
border-radius: 8px;
text-align: left;
animation: scaleIn 0.3s ease-in-out;}
.d4v6.d4-legendary-page .d4v6-affix-limit .dels{position: absolute;
top: 15px;
right: 15px;
cursor: pointer;
transition: transform 0.3s ease;}
.d4v6.d4-legendary-page .d4v6-affix-limit .dels:hover{transform: rotate(90deg);}
.d4v6.d4-legendary-page .d4v6-affix-limit .dels img{display: block;
width: 20px;}
.d4v6.d4-legendary-page .d4v6-affix-limit .cart-notice-icon{display: flex;
align-items: center;
margin-bottom: 6px;}
.d4v6.d4-legendary-page .d4v6-affix-limit .cart-notice-icon img{display: block;
width: 32px;
margin: -8px 8px 0 0;}
.d4v6.d4-legendary-page .d4v6-affix-limit .explanation-title{color: #13365a;
font: 600 20px/1.3 Poppins, sans-serif;}
.d4v6.d4-legendary-page .d4v6-affix-limit p{margin: 0;
color: #56689c;
font: 400 16px/22px Poppins, sans-serif;
text-align: left;}
.d4v6.d4-legendary-page .d4v6-affix-limit p b{color: #185ebb;
font-weight: 600;}
.d4v6.d4-legendary-page .d4v6-affix-limit .btns{display: flex;
justify-content: center;
gap: 16px;
margin-top: 16px;}
.d4v6.d4-legendary-page .d4v6-affix-limit .btns .btn{width: 15rem;
height: 2.5rem;
padding: 0;
border: 0;
border-radius: 4px;
background: var(--mmoso-color-primary-alt);
color: #fff;
font: 600 16px/40px Poppins, sans-serif;
cursor: pointer;}
@media (max-width: 1024px) {
.d4v6.d4-legendary-page .d4v6-affix-limit .pops{padding: 30px 25px;}
.d4v6.d4-legendary-page .d4v6-affix-limit .explanation-title{font-size: 17px;}
.d4v6.d4-legendary-page .d4v6-affix-limit p{font-size: 15px;
line-height: 1.3rem;}
.d4v6.d4-legendary-page .d4v6-affix-limit .btns .btn{height: 2.4rem;
font-size: 15px;
line-height: 2.4rem;}
}

/* mobile: 顶部 service tab 文案与 gold 页对齐 */
@media (max-width: 1024px) {
.d4v6.d4-legendary-page .menucontent .menubox .d4-service-nav .d4-service-btn > span{font-size: 15px;}
}
