/* Ember Tavern theme: warm fantasy palette for the 0.0.2 extension UI. */
:root {
  --bg-top: #120b08;
  --bg-bottom: #070503;
  --card: rgba(27, 16, 11, 0.88);
  --card-border: rgba(150, 92, 45, 0.5);
  --accent: #f0b85b;
  --accent-strong: #ffcf75;
  --text-main: #f7ead2;
  --text-soft: #c8a985;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  --scroll-track: rgba(28, 17, 11, 0.78);
  --scroll-thumb: rgba(191, 82, 39, 0.72);
  --scroll-thumb-hover: rgba(240, 184, 91, 0.9);
  --cw-ember-bg-0: #070503;
  --cw-ember-bg-1: #120b08;
  --cw-ember-panel: rgba(27, 16, 11, 0.94);
  --cw-ember-border: rgba(150, 92, 45, 0.48);
  --cw-ember-border-strong: rgba(232, 145, 64, 0.72);
  --cw-ember-gold: #f0b85b;
  --cw-ember-gold-soft: #ffd990;
  --cw-ember-orange: #c95a2a;
  --cw-ember-text: #f7ead2;
  --cw-ember-muted: #c8a985;
}

body,
.loadout-live-body {
  background:
    radial-gradient(circle at 50% -10%, rgba(176, 76, 34, 0.22), transparent 42%),
    linear-gradient(180deg, var(--cw-ember-bg-1), var(--cw-ember-bg-0));
  color: var(--cw-ember-text);
}

.loadout-live-body .avatar-stage,
.loadout-live-root .loadout-stage,
.fight-live-root .fight-stage,
.inventory-live-root .inventory-stage,
.crafting-live-root .crafting-stage,
.talents-live-root .talents-stage,
.achievements-live-root .achievements-stage,
.leaderboard-stage {
  border-color: rgba(170, 106, 55, 0.58);
  background:
    radial-gradient(circle at 20% 12%, rgba(201, 90, 42, 0.22), transparent 38%),
    radial-gradient(circle at 86% 80%, rgba(103, 35, 25, 0.28), transparent 45%),
    linear-gradient(155deg, #100906, #1a0d09 56%, #090604);
  box-shadow:
    inset 0 0 0 1px rgba(255, 199, 112, 0.11),
    inset 0 0 32px rgba(0, 0, 0, 0.3);
}

.loadout-bottom-nav,
.loadout-nav-scroll-btn {
  border-color: rgba(116, 70, 38, 0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(221, 119, 47, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(24, 14, 10, 0.99), rgba(10, 7, 5, 0.99));
  color: var(--cw-ember-gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 142, 0.17),
    inset 0 -1px 0 rgba(67, 35, 22, 0.9),
    0 -7px 18px rgba(0, 0, 0, 0.28);
}

.loadout-nav-scroll-left {
  box-shadow: 10px 0 14px rgba(10, 7, 5, 0.98), 0 0 12px rgba(221, 119, 47, 0.22);
}

.loadout-nav-scroll-right {
  box-shadow: -10px 0 14px rgba(10, 7, 5, 0.98), 0 0 12px rgba(221, 119, 47, 0.22);
}

.loadout-nav-btn {
  color: rgba(191, 165, 129, 0.78);
}

.loadout-nav-btn.active,
.loadout-nav-btn[aria-current="page"] {
  color: var(--cw-ember-gold-soft);
  text-shadow: 0 0 10px rgba(240, 184, 91, 0.55);
}

.loadout-nav-btn.active::after,
.loadout-nav-btn[aria-current="page"]::after {
  background: linear-gradient(90deg, transparent, var(--cw-ember-gold), transparent);
  box-shadow: 0 0 12px rgba(240, 184, 91, 0.7);
}

.loadout-nav-flyout {
  border-color: rgba(116, 70, 38, 0.94);
  background:
    radial-gradient(circle at 50% 0%, rgba(221, 119, 47, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(38, 21, 13, 0.98), rgba(12, 8, 5, 0.99));
  box-shadow:
    0 0.24rem 0 rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 210, 142, 0.14);
}

.loadout-nav-flyout-item {
  border-color: rgba(157, 94, 48, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: rgba(222, 190, 146, 0.92);
}

.loadout-nav-flyout-item.active,
.loadout-nav-flyout-item[aria-current="page"] {
  border-color: rgba(240, 184, 91, 0.94);
  color: var(--cw-ember-gold-soft);
  box-shadow:
    0 0 0.52rem rgba(240, 184, 91, 0.35),
    inset 0 0 0 1px rgba(255, 231, 177, 0.16);
}

.loadout-nav-icon {
  filter: sepia(0.34) saturate(0.9) hue-rotate(345deg);
}

.fight-header,
.achievements-header,
.fight-group,
.fight-entry,
.fight-leaderboard-card,
.leaderboard-page-card,
.achievements-panel,
.achievement-card,
.inventory-grid,
.inventory-inspect-card,
.item-inspect-card,
.crafting-panel,
.crafting-card,
.craft-reveal,
.talent-tree,
.talent-detail-panel,
.shop-info-box,
.shop-entry {
  border-color: var(--cw-ember-border);
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 90, 42, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.94), rgba(17, 10, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 142, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.16);
}

.inventory-slot,
.equipped-slot,
.shop-entry-icon-wrap,
.shop-info-icon-wrap,
.achievement-card-icon,
.fight-encounter-icon,
.fight-entry-icon,
.crafting-rarity-option,
.dust-upgrade-rarity-option,
.disenchant-preview-item {
  border-color: rgba(164, 100, 52, 0.54);
  background: linear-gradient(180deg, rgba(30, 17, 11, 0.96), rgba(13, 8, 6, 0.94));
}

.fight-title,
.leaderboard-title,
.achievements-title,
.fight-leaderboard-title,
.inventory-inspect-name,
.item-inspect-title,
.shop-info-name,
.fight-entry-name,
.achievement-card-name,
.crafting-title,
.talent-class-name,
.talents-title {
  color: var(--cw-ember-text);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 10px rgba(201, 90, 42, 0.22);
}

.fight-status,
.fight-entry-bits,
.fight-leaderboard-meta,
.achievement-card-description,
.achievements-status,
.shop-info-meta,
.shop-info-description,
.inventory-inspect-meta,
.item-inspect-meta,
.crafting-subtitle,
.talent-node-rank,
.talents-status {
  color: var(--cw-ember-muted);
}

button,
.fight-tab-btn,
.fight-view-tab-btn,
.fight-difficulty-chip,
.fight-endless-difficulty-tab,
.fight-leaderboard-scope-btn,
.inventory-filter-btn,
.crafting-tab-btn,
.talent-class-tab,
.shop-entry-price-chip,
.shop-info-purchase-btn,
.fight-activate-btn {
  border-color: rgba(187, 113, 55, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: var(--cw-ember-text);
}

button:hover,
.fight-tab-btn:hover,
.fight-view-tab-btn:hover,
.inventory-filter-btn:hover,
.crafting-tab-btn:hover,
.fight-activate-btn:hover {
  border-color: var(--cw-ember-border-strong);
  box-shadow: 0 0 14px rgba(201, 90, 42, 0.24);
}

.fight-tab-btn.active,
.fight-view-tab-btn.active,
.fight-difficulty-chip.active,
.fight-endless-difficulty-tab.active,
.fight-leaderboard-scope-btn.active,
.inventory-filter-btn.active,
.crafting-tab-btn.active,
.talent-class-tab.active,
.shop-tabs .fight-tab-btn.active {
  border-color: rgba(240, 184, 91, 0.92);
  background: linear-gradient(160deg, rgba(191, 82, 39, 0.98), rgba(99, 35, 25, 0.98));
  color: #fff2cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 160, 0.22),
    0 0 14px rgba(201, 90, 42, 0.28);
}

.fight-difficulty-chip[data-difficulty="normal"],
.fight-endless-difficulty-tab[data-difficulty="normal"] {
  border-color: rgba(84, 186, 143, 0.72);
  color: #a6ffd5;
}

.fight-difficulty-chip[data-difficulty="hard"],
.fight-endless-difficulty-tab[data-difficulty="hard"] {
  border-color: rgba(232, 111, 57, 0.82);
  color: #ffb172;
}

.fight-difficulty-chip[data-difficulty="legendary"],
.fight-endless-difficulty-tab[data-difficulty="legendary"] {
  border-color: rgba(240, 184, 91, 0.88);
  color: #ffd775;
}

.fight-difficulty-chip[data-difficulty="mythic"],
.fight-endless-difficulty-tab[data-difficulty="mythic"] {
  border-color: rgba(171, 93, 224, 0.88);
  color: #dda8ff;
}

.fight-activate-btn,
.shop-info-purchase-btn,
.inventory-action-btn,
.inventory-compare-btn,
.craft-action-btn {
  background: linear-gradient(180deg, #c96932, #8d3a22);
  border-color: rgba(255, 203, 113, 0.72);
  color: #fff6d8;
}

.fight-activate-btn:disabled,
.shop-info-purchase-btn:disabled,
.craft-action-btn:disabled {
  background: linear-gradient(180deg, rgba(80, 55, 40, 0.8), rgba(38, 28, 23, 0.85));
  color: rgba(194, 169, 134, 0.58);
  border-color: rgba(126, 88, 56, 0.45);
}

.loadout-exp-fill,
.inventory-exp-fill,
.character-exp-fill {
  background: linear-gradient(90deg, #d46b37, #f0b85b);
  box-shadow: 0 0 10px rgba(240, 184, 91, 0.42);
}

.shop-info-close {
  background: linear-gradient(90deg, rgba(198, 86, 40, 0.96), rgba(240, 184, 91, 0.96));
  box-shadow: 0 0 10px rgba(240, 184, 91, 0.42);
}

.shop-entry.active,
.inventory-slot.selected,
.inventory-slot.active,
.achievement-card.is-unlocked {
  border-color: rgba(240, 184, 91, 0.86);
  box-shadow:
    0 0 16px rgba(201, 90, 42, 0.28),
    inset 0 0 0 1px rgba(255, 219, 143, 0.14);
}

::-webkit-scrollbar-thumb {
  background: rgba(191, 82, 39, 0.72);
  border-color: rgba(16, 9, 6, 0.8);
}

/* Ember pass 2: remove the remaining blue/cyan component surfaces. */
.loadout-exp-text,
.inventory-page-label,
.inventory-meta,
.fight-row-description,
.fight-row-meta,
.fight-live-root .fight-row-meta {
  color: rgba(225, 196, 150, 0.92);
}

.loadout-exp-track {
  background: rgba(47, 27, 17, 0.92);
  box-shadow: inset 0 0 0 1px rgba(151, 92, 45, 0.28);
}

.loadout-stat-row,
.inventory-inspect-stat,
.inventory-compare-stat,
.shop-info-stat,
.craft-reveal-stat {
  background: linear-gradient(180deg, rgba(50, 28, 17, 0.78), rgba(28, 16, 11, 0.82));
  border: 1px solid rgba(130, 78, 40, 0.26);
}

.loadout-stat-row dt,
.inventory-inspect-stat span,
.inventory-compare-stat span,
.shop-info-stat dt {
  color: rgba(210, 174, 126, 0.94);
}

.loadout-stat-row dd,
.inventory-inspect-stat strong,
.inventory-compare-stat strong,
.shop-info-stat dd {
  color: #fff4d7;
}

.inventory-live-root .inventory-stage,
.fight-live-root .fight-stage,
.crafting-live-root .crafting-stage,
.achievements-live-root .achievements-stage,
.leaderboard-stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(182, 76, 35, 0.2), transparent 32%),
    radial-gradient(circle at 18% 74%, rgba(98, 37, 25, 0.24), transparent 44%),
    linear-gradient(145deg, rgba(19, 10, 7, 0.98), rgba(39, 18, 12, 0.98) 62%, rgba(8, 5, 4, 0.98));
}

.inventory-grid-scroller,
.inventory-inspect,
.inventory-compare-panel,
.inventory-confirm-card,
.inventory-confirm-reward,
.fight-live-root .fight-selected-card,
.fight-live-root .fight-entry-row,
.fight-live-root .fight-encounter-card,
.fight-live-root .fight-encounter-queue-card {
  border-color: rgba(176, 105, 52, 0.58);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 90, 42, 0.16), transparent 36%),
    linear-gradient(155deg, rgba(45, 24, 15, 0.96), rgba(20, 11, 8, 0.98) 64%, rgba(12, 7, 5, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 216, 144, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.inventory-filter-btn,
.inventory-page-btn,
.inventory-action-btn.secondary,
.inventory-compare-head button,
.fight-collapse-btn,
.fight-menu-button,
.fight-menu-panel,
.fight-menu-item,
.fight-uber-picker-toggle,
.fight-uber-option {
  border-color: rgba(157, 94, 48, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: var(--cw-ember-text);
}

.inventory-filter-btn.active,
.inventory-compare-btn.active,
.inventory-compare-slot-chooser button.active,
.fight-menu-item:hover,
.fight-menu-item:focus-visible,
.fight-menu-item.active,
.fight-uber-option.active {
  border-color: rgba(240, 184, 91, 0.92);
  background: linear-gradient(160deg, rgba(178, 72, 34, 0.98), rgba(86, 32, 22, 0.98));
  color: #fff4d7;
  box-shadow: 0 0 14px rgba(201, 90, 42, 0.26);
}

.inventory-slot {
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 26%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(22, 13, 9, 0.95), rgba(8, 5, 4, 0.94));
  box-shadow:
    0 0 9px color-mix(in srgb, var(--inventory-rarity-color, rgba(240, 184, 91, 0.44)) 15%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--inventory-rarity-color, rgba(240, 184, 91, 0.44)) 24%, transparent);
}

.inventory-slot.active {
  outline-color: rgba(255, 223, 150, 0.92);
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 184, 91, 0.22), transparent 62%),
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 34%, transparent), transparent 58%),
    rgba(18, 10, 7, 0.94);
  box-shadow:
    0 0 0 2px rgba(25, 13, 8, 0.92),
    0 0 16px rgba(240, 184, 91, 0.32),
    inset 0 0 0 1px rgba(255, 236, 190, 0.22);
}

.inventory-inspect-icon-wrap,
.inventory-compare-item,
.inventory-compare-item-icon,
.inventory-confirm-reward-icon-wrap {
  border-color: rgba(156, 95, 50, 0.5);
  background: linear-gradient(180deg, rgba(32, 18, 12, 0.92), rgba(12, 7, 5, 0.94));
}

.inventory-inspect-meta,
.inventory-compare-item p,
.inventory-compare-item span,
.inventory-compare-slot,
.inventory-confirm-text,
.inventory-confirm-reward-label,
.inventory-confirm-reward-balance {
  color: rgba(205, 170, 123, 0.9);
}

.inventory-inspect-description,
.inventory-confirm-reward-text {
  color: #fff1d1;
}

.inventory-compare-btn,
.inventory-action-btn,
.fight-live-root .fight-selected-action,
.fight-live-root .fight-join-btn,
.shop-info-purchase-btn {
  border-color: rgba(255, 203, 113, 0.72);
  background: linear-gradient(180deg, #d27a3b, #8d3a22);
  color: #fff6d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.18),
    0 7px 16px rgba(0, 0, 0, 0.26);
}

.inventory-compare-btn,
.inventory-inspect-actions .inventory-compare-btn {
  color: #fff6d8;
}

.inventory-action-btn.danger {
  border-color: rgba(213, 86, 67, 0.56);
  background: linear-gradient(180deg, rgba(117, 42, 31, 0.98), rgba(61, 20, 16, 0.98));
  color: #ffe1d5;
}

.fight-live-root .fight-selected-action::after {
  border-color: rgba(255, 226, 150, 0.34);
  background: rgba(36, 19, 11, 0.78);
  color: #ffe2a0;
}

.fight-live-root .fight-selected-icon,
.fight-live-root .fight-row-icon {
  border-color: rgba(170, 106, 55, 0.72);
  background: linear-gradient(180deg, rgba(31, 17, 11, 0.94), rgba(9, 6, 4, 0.96));
  box-shadow: 0 0 16px rgba(201, 90, 42, 0.18);
}

.fight-live-root .fight-selected-glow {
  background: rgba(201, 90, 42, 0.16);
}

.fight-live-root .fight-entry-select,
.fight-entry-row.active .fight-entry-select {
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 90, 42, 0.14), transparent 46%),
    linear-gradient(145deg, rgba(42, 23, 14, 0.94), rgba(17, 10, 7, 0.98));
}

.fight-live-root .fight-entry-row.active {
  border-color: rgba(240, 184, 91, 0.72);
  box-shadow: inset 0 0 0 1px rgba(240, 184, 91, 0.14);
}

.fight-cost-chip[data-tone="free"] {
  color: #2c1508;
  border-color: rgba(255, 218, 135, 0.9);
  background: linear-gradient(135deg, #ffd783, #d98a3d);
}

.fight-cost-chip[data-tone="bits"] {
  color: #ffe0a4;
  border-color: rgba(211, 124, 61, 0.82);
  background: linear-gradient(180deg, rgba(103, 43, 24, 0.94), rgba(55, 22, 17, 0.96));
}

.fight-cost-chip[data-tone="key"] {
  color: #ffd3c2;
  border-color: rgba(218, 92, 72, 0.72);
  background: rgba(84, 28, 23, 0.78);
}

.fight-cost-chip[data-tone="offline"] {
  color: rgba(218, 187, 145, 0.88);
  border-color: rgba(145, 90, 50, 0.48);
  background: rgba(35, 21, 14, 0.78);
}

.fight-type-badge {
  border-color: rgba(141, 198, 105, 0.58);
  background: rgba(35, 75, 36, 0.58);
  color: #b8f08c;
}

.fight-live-root .fight-entry-difficulty-label,
.fight-uber-select-label {
  color: rgba(205, 170, 123, 0.86);
}

.fight-live-root .fight-difficulty-chip.active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 190, 0.18),
    inset 0 8px 12px rgba(255, 224, 150, 0.08),
    0 0 0 1px rgba(22, 11, 7, 0.85),
    0 0 14px rgba(240, 184, 91, 0.24);
}

.fight-uber-option-list {
  border-color: rgba(176, 105, 52, 0.5);
  background: rgba(17, 10, 7, 0.98);
}

.fight-uber-picker-toggle:focus-visible,
.fight-uber-option:focus-visible {
  border-color: rgba(240, 184, 91, 0.86);
  box-shadow:
    0 0 0 2px rgba(240, 184, 91, 0.18),
    0 0 14px rgba(201, 90, 42, 0.18);
}

.loadout-nav-btn.active .loadout-nav-icon,
.loadout-nav-btn[aria-current="page"] .loadout-nav-icon {
  filter:
    sepia(0.75)
    saturate(1.35)
    hue-rotate(345deg)
    brightness(1.1)
    drop-shadow(0 0 8px rgba(240, 184, 91, 0.55));
}

/* Ember pass 3: crafting and dust upgrade views. */
.crafting-tab-row,
.crafting-live-root[data-crafting-tab] .crafting-tab-panel-wrap {
  border-color: rgba(150, 92, 45, 0.5);
  background: rgba(18, 10, 7, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 145, 0.05);
}

.crafting-tab {
  border-color: rgba(157, 94, 48, 0.56);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: rgba(222, 190, 146, 0.9);
}

.crafting-tab.active {
  border-color: rgba(240, 184, 91, 0.94);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(166, 72, 35, 0.98), rgba(77, 30, 20, 0.98));
  color: #fff4d7;
  box-shadow:
    0 0 12px rgba(201, 90, 42, 0.24),
    inset 0 0 0 1px rgba(255, 231, 177, 0.14);
}

.crafting-panel-title,
.dust-upgrade-head .crafting-panel-title,
.random-craft-title,
.disenchant-head .crafting-panel-title {
  color: #fff1d1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 10px rgba(201, 90, 42, 0.2);
}

.crafting-panel-subtitle,
.dust-upgrade-head .crafting-panel-subtitle,
.disenchant-head .crafting-panel-subtitle,
.random-craft-copy span,
.dust-node-label,
.dust-upgrade-rarity-cost,
.disenchant-section-label {
  color: rgba(210, 174, 126, 0.94);
}

.dust-upgrade-flow,
.disenchant-preview,
.random-craft-preview,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow,
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 34%, rgba(150, 92, 45, 0.5));
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 12%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.88), rgba(14, 8, 6, 0.9));
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow::before,
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview::before {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 28%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 14%, transparent), transparent 64%);
}

.dust-upgrade-title-icon,
.disenchant-title-icon,
.random-craft-title-icon,
.dust-upgrade-balance,
.disenchant-count-pill,
.random-craft-balance {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 40%, rgba(150, 92, 45, 0.5));
  background: linear-gradient(180deg, rgba(36, 20, 13, 0.94), rgba(14, 8, 6, 0.94));
  box-shadow: 0 0 12px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 18%, transparent);
}

.dust-upgrade-balance span,
.disenchant-count-pill span,
.random-craft-balance span {
  color: rgba(210, 174, 126, 0.94);
}

.dust-upgrade-balance strong,
.disenchant-count-pill strong,
.random-craft-balance strong {
  color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 80%, #fff4d7);
}

.dust-upgrade-node,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node,
.disenchant-item-slot,
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-slot,
.random-craft-mystery,
.random-craft-result-slot {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 46%, rgba(150, 92, 45, 0.52));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 14%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(31, 17, 11, 0.94), rgba(11, 7, 5, 0.96));
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node.result {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 72%, #fff0c4);
  box-shadow: 0 0 14px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 24%, transparent);
}

.dust-upgrade-bridge,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-bridge {
  color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 80%, #fff4d7);
}

.dust-upgrade-rarity-card,
.random-rarity-card,
.disenchant-rarity-card,
.crafting-rarity-chip,
.dust-summary-chip,
.dust-card {
  border-color: color-mix(in srgb, var(--rarity-color, #f0b85b) 54%, rgba(150, 92, 45, 0.44));
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rarity-color, #f0b85b) 16%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(30, 17, 11, 0.95), rgba(12, 7, 5, 0.95));
  color: #fff1d1;
  box-shadow: inset 0 0 0 1px rgba(255, 227, 176, 0.04);
}

.dust-upgrade-rarity-card.active,
.random-rarity-card.active,
.disenchant-rarity-card.active,
.crafting-rarity-chip.active,
.dust-summary-chip.active {
  border-color: color-mix(in srgb, var(--rarity-color, #f0b85b) 82%, #fff0c4);
  box-shadow:
    0 0 13px color-mix(in srgb, var(--rarity-color, #f0b85b) 30%, transparent),
    inset 0 0 0 1px rgba(255, 236, 190, 0.12);
}

.dust-upgrade-rarity-count,
.random-rarity-cost,
.disenchant-rarity-count,
.dust-card-value {
  color: #fff4d7;
}

.dust-upgrade-main-btn,
.dust-upgrade-single-btn,
.random-craft-main-btn,
.disenchant-main-btn,
.dust-action {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 58%, rgba(255, 203, 113, 0.72));
  background:
    radial-gradient(circle at 30% 0%, rgba(240, 184, 91, 0.18), transparent 58%),
    linear-gradient(180deg, #d27a3b, #8d3a22);
  color: #fff6d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.18),
    0 7px 16px rgba(0, 0, 0, 0.24);
}

.dust-upgrade-main-btn:disabled,
.dust-upgrade-single-btn:disabled,
.random-craft-main-btn:disabled,
.disenchant-main-btn:disabled,
.dust-action:disabled {
  border-color: rgba(142, 91, 55, 0.42);
  background:
    linear-gradient(180deg, rgba(93, 60, 39, 0.82), rgba(53, 33, 23, 0.86));
  color: rgba(218, 187, 145, 0.58);
  box-shadow: none;
}

.dust-upgrade-main-cost,
.random-craft-main-cost,
.disenchant-main-count {
  background: rgba(35, 19, 11, 0.86);
  color: #ffe2a0;
  box-shadow: inset 0 0 0 1px rgba(240, 184, 91, 0.12);
}

/* Ember pass 4: talents / skills tree. */
.talents-live-root .talents-stage {
  border-color: rgba(170, 106, 55, 0.58);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 90, 42, 0.18), transparent 36%),
    radial-gradient(circle at 80% 84%, rgba(94, 36, 25, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(23, 12, 8, 0.98), rgba(48, 22, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 199, 112, 0.1),
    inset 0 0 0 4px rgba(83, 45, 24, 0.34);
}

.talents-header,
.talents-points-card,
.talents-class-card,
.talent-tree-shell,
.talent-inspect,
.talents-locked-panel,
.talents-confirm-card {
  border-color: rgba(150, 92, 45, 0.5);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 90, 42, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.94), rgba(17, 10, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 142, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.talents-points-card {
  background:
    linear-gradient(130deg, rgba(114, 50, 27, 0.9), rgba(55, 28, 17, 0.84)),
    rgba(18, 10, 7, 0.9);
}

.talents-title,
.talent-inspect-name,
.talents-locked-title {
  color: #fff1d1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 10px rgba(201, 90, 42, 0.18);
}

.talents-status,
.talents-points-label,
.talents-class-label,
.talents-class-help,
.talent-node-req,
.talent-inspect-desc,
.talents-locked-text {
  color: rgba(210, 174, 126, 0.94);
}

.talents-points-value,
.talents-class-value,
.talent-inspect-rank {
  color: #ffe2a0;
}

.talents-reset-btn,
.talents-class-nav,
.talents-confirm-btn,
.talent-node-btn {
  border-color: rgba(157, 94, 48, 0.58);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: var(--cw-ember-text);
}

.talent-tree {
  background:
    linear-gradient(rgba(180, 111, 57, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 111, 57, 0.1) 1px, transparent 1px),
    rgba(15, 9, 6, 0.9);
  background-size: 42px 42px;
}

.talent-node.active .talent-node-btn {
  border-color: rgba(240, 184, 91, 0.92);
  box-shadow:
    0 0 0 1px rgba(240, 184, 91, 0.28),
    0 0 12px rgba(201, 90, 42, 0.22);
}

.talent-node.selected .talent-node-btn {
  border-color: rgba(255, 223, 150, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 236, 190, 0.18),
    0 0 14px rgba(240, 184, 91, 0.24);
}

.talent-node-name {
  color: #f0b85b;
  text-shadow: 0 0 9px rgba(240, 184, 91, 0.22);
}

.talent-node.locked .talent-node-name {
  color: rgba(185, 151, 111, 0.78);
}

.talent-node-rank {
  color: #ffe2a0;
}

.talent-link::before {
  background: rgba(213, 86, 67, 0.88);
  box-shadow: 0 0 11px rgba(213, 86, 67, 0.36);
}

.talent-link.is-met::before {
  background: rgba(240, 184, 91, 0.9);
  box-shadow: 0 0 12px rgba(240, 184, 91, 0.42);
}

.talent-link-rank {
  border-color: rgba(213, 86, 67, 0.88);
  background: rgba(18, 10, 7, 0.96);
  color: #ffd4cf;
}

.talent-link.is-met .talent-link-rank {
  border-color: rgba(240, 184, 91, 0.9);
  color: #fff1d1;
}

/* Ember pass 20: class selection carousel. */
.talents-content.class-selection-mode {
  padding: 7px 6px 3px;
  gap: 0;
  overflow: hidden;
}

.talents-content.class-selection-mode .talents-header {
  border-color: rgba(192, 114, 52, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(48, 24, 14, 0.96), rgba(18, 10, 7, 0.98));
}

.talents-content.class-selection-mode .talents-title {
  color: #ffe7ad;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.76),
    0 0 12px rgba(240, 184, 91, 0.34);
}

.talents-content.class-selection-mode .talents-status {
  color: rgba(224, 184, 128, 0.95);
}

.talents-content.class-selection-mode .talents-class-card {
  min-height: 0;
  height: 100%;
  border-radius: 10px;
  border-color: rgba(187, 113, 55, 0.68);
  background:
    radial-gradient(circle at 50% 14%, rgba(240, 184, 91, 0.14), transparent 36%),
    radial-gradient(circle at 20% 90%, rgba(143, 55, 30, 0.26), transparent 44%),
    linear-gradient(180deg, rgba(42, 20, 13, 0.96), rgba(18, 10, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 160, 0.12),
    inset 0 0 0 1px rgba(255, 188, 101, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.28);
  padding: 0.16rem 0.12rem;
  overflow: hidden;
}

.talents-content.class-selection-mode .talents-class-carousel {
  position: relative;
  height: 100%;
  display: block;
  isolation: isolate;
  perspective: 780px;
}

.talents-class-preview {
  display: none;
}

.talents-content.class-selection-mode .talents-class-preview {
  position: absolute;
  z-index: 1;
  top: 28px;
  height: 266px;
  bottom: auto;
  width: 124px;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 86, 43, 0.62);
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 184, 91, 0.13), transparent 42%),
    radial-gradient(circle at 50% 82%, rgba(130, 48, 28, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(42, 22, 14, 0.93), rgba(14, 8, 5, 0.95));
  color: rgba(245, 211, 163, 0.78);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 0.16rem;
  padding: 0.28rem 0.14rem 0.22rem;
  opacity: 0.78;
  overflow: hidden;
  transform-origin: 50% 94%;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 160, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.32);
}

.talents-content.class-selection-mode .talents-class-preview-previous {
  left: 50%;
  transform: translateX(-138%) rotate(-10deg) scale(0.88);
}

.talents-content.class-selection-mode .talents-class-preview-next {
  left: 50%;
  right: auto;
  transform: translateX(38%) rotate(10deg) scale(0.88);
}

.talents-content.class-selection-mode .talents-class-preview:hover,
.talents-content.class-selection-mode .talents-class-preview:focus-visible {
  opacity: 1;
  border-color: rgba(240, 184, 91, 0.74);
  box-shadow: 0 0 14px rgba(201, 90, 42, 0.24);
}

.talents-content.class-selection-mode .talents-class-preview-previous:hover,
.talents-content.class-selection-mode .talents-class-preview-previous:focus-visible {
  transform: translateX(-140%) translateY(-4px) rotate(-8deg) scale(0.9);
}

.talents-content.class-selection-mode .talents-class-preview-next:hover,
.talents-content.class-selection-mode .talents-class-preview-next:focus-visible {
  transform: translateX(40%) translateY(-4px) rotate(8deg) scale(0.9);
}

.talents-content.class-selection-mode .talents-class-preview-image {
  width: 96px;
  height: 118px;
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    sepia(0.2)
    saturate(0.85)
    brightness(0.72)
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.42));
}

.talents-content.class-selection-mode .talents-class-preview-title {
  max-width: 100%;
  font-size: 0.58rem;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(239, 198, 139, 0.84);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.talents-content.class-selection-mode .talents-class-choice {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  width: min(198px, 68%);
  margin: 0;
  min-height: 0;
  height: 286px;
  border-radius: 12px;
  border: 1px solid rgba(240, 184, 91, 0.7);
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--class-color, #f0b85b) 18%, transparent), transparent 32%),
    radial-gradient(circle at 50% 36%, rgba(255, 204, 124, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(58, 27, 16, 0.96), rgba(22, 12, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 168, 0.16),
    inset 0 0 0 1px rgba(255, 228, 168, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(16, 8, 5, 0.36);
  padding: 0.18rem 0.18rem 0.16rem;
  gap: 0.08rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  transform: translateX(-50%);
}

.talents-content.class-selection-mode .talents-class-image-wrap {
  height: 118px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(155, 92, 48, 0.38);
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 184, 91, 0.17), transparent 58%),
    linear-gradient(180deg, rgba(21, 12, 8, 0.82), rgba(10, 6, 4, 0.78));
  padding: 0.08rem;
}

.talents-content.class-selection-mode .talents-class-image {
  width: 118px;
  height: 118px;
  animation: classFloat 2.7s ease-in-out infinite;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.4));
}

.talents-content.class-selection-mode .talents-class-choice-title {
  font-size: 1.06rem;
  line-height: 1.05;
  color: color-mix(in srgb, var(--class-color, #f0b85b) 72%, #ffe9b7);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 10px color-mix(in srgb, var(--class-color, #f0b85b) 46%, transparent);
}

.talents-content.class-selection-mode .talents-class-choice-role {
  font-size: 0.66rem;
  color: #ffd27c;
  letter-spacing: 0.1em;
}

.talents-content.class-selection-mode .talents-class-choice-pill {
  border-color: rgba(240, 184, 91, 0.76);
  background: rgba(23, 12, 8, 0.86);
  color: #fff2cc;
  font-size: 0.54rem;
  padding: 0.08rem 0.36rem;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 157, 0.08);
}

.talents-content.class-selection-mode .talents-class-choice-desc {
  font-size: 0.56rem;
  line-height: 1.18;
  color: rgba(239, 205, 154, 0.92);
  max-width: 170px;
  margin-left: auto;
  margin-right: auto;
}

.talents-content.class-selection-mode .talents-class-choice-controls {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: min(calc(100% - 16px), 520px);
  margin: 0 auto;
  display: grid;
  gap: 0.14rem;
  padding: 0.12rem 0.12rem 0;
  border-top: 1px solid rgba(180, 104, 51, 0.38);
  background:
    linear-gradient(90deg, transparent, rgba(240, 184, 91, 0.2), transparent) top / 100% 1px no-repeat;
}

.talents-content.class-selection-mode .talents-class-choice-weapons {
  gap: 0.08rem;
  padding-top: 0;
}

.talents-content.class-selection-mode .talents-class-choice-weapons-title {
  display: none;
}

.talents-content.class-selection-mode .talents-class-choice-weapons-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.08rem;
}

.talents-content.class-selection-mode .talents-class-weapon-chip {
  min-width: 0;
  min-height: 44px;
  border-radius: 6px;
  border-color: rgba(180, 104, 51, 0.66);
  background:
    radial-gradient(circle at 50% 26%, rgba(240, 184, 91, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.96), rgba(12, 7, 5, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 139, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.18);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.03rem;
  padding: 0.1rem 0.03rem;
}

.talents-content.class-selection-mode .talents-class-weapon-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 5px rgba(240, 184, 91, 0.34));
}

.talents-content.class-selection-mode .talents-class-weapon-label {
  max-width: 100%;
  font-size: 0.43rem;
  line-height: 1;
  color: #ffe7bb;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talents-content.class-selection-mode .talents-class-choice-actions {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.14rem;
  margin-top: 0;
}

.talents-content.class-selection-mode .talents-class-choice-actions .talents-class-nav {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: rgba(192, 114, 52, 0.68);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 216, 144, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(53, 30, 18, 0.96), rgba(18, 10, 7, 0.96));
  color: #ffe5b5;
  box-shadow: 0 0 10px rgba(201, 90, 42, 0.18);
}

.talents-content.class-selection-mode .talents-class-choice-select {
  min-height: 42px;
  height: 42px;
  border-radius: 8px;
  border-color: rgba(255, 204, 113, 0.82);
  background:
    radial-gradient(circle at 32% 0%, rgba(255, 226, 160, 0.18), transparent 54%),
    linear-gradient(180deg, #df8440, #9b4225);
  color: #fff7d8;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.24),
    0 0 16px rgba(201, 90, 42, 0.28);
  animation: classSelectGlow 1.8s ease-in-out infinite;
}

.talents-content.class-selection-mode .talents-class-choice-select::before {
  background: linear-gradient(110deg, transparent 18%, rgba(255, 241, 205, 0.42) 50%, transparent 82%);
}

.talents-confirm-modal {
  background: rgba(9, 5, 4, 0.76);
}

.talents-confirm-card {
  border-color: rgba(224, 135, 62, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(44, 23, 14, 0.97), rgba(16, 9, 6, 0.98));
}

.talents-confirm-title {
  color: #ffe7ad;
}

.talents-confirm-text {
  color: rgba(239, 205, 154, 0.94);
}

.talents-confirm-btn.primary {
  border-color: rgba(255, 204, 113, 0.82);
  background: linear-gradient(180deg, #df8440, #9b4225);
  color: #fff7d8;
}

.talents-confirm-btn.secondary {
  border-color: rgba(157, 94, 48, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: rgba(239, 205, 154, 0.94);
}

@media (min-width: 520px) {
  .talents-content.class-selection-mode .talents-class-card {
    padding-top: 0.24rem;
  }

  .talents-content.class-selection-mode .talents-class-preview {
    top: clamp(28px, 4vh, 48px);
    width: clamp(150px, 18vw, 210px);
    height: clamp(286px, 38vh, 390px);
  }

  .talents-content.class-selection-mode .talents-class-choice {
    top: clamp(18px, 3vh, 36px);
    width: clamp(230px, 25vw, 310px);
    height: clamp(310px, 42vh, 430px);
  }

  .talents-content.class-selection-mode .talents-class-image-wrap {
    height: clamp(138px, 18vh, 190px);
  }

  .talents-content.class-selection-mode .talents-class-image {
    width: clamp(138px, 18vh, 190px);
    height: clamp(138px, 18vh, 190px);
  }

  .talents-content.class-selection-mode .talents-class-preview-image {
    width: clamp(104px, 12vw, 150px);
    height: clamp(128px, 16vh, 176px);
  }

  .talents-content.class-selection-mode .talents-class-choice-title {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  }

  .talents-content.class-selection-mode .talents-class-choice-role {
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  }

  .talents-content.class-selection-mode .talents-class-choice-desc {
    max-width: min(240px, 82%);
    font-size: clamp(0.58rem, 0.86vw, 0.72rem);
  }

  .talents-content.class-selection-mode .talents-class-choice-controls {
    width: min(calc(100% - 48px), 680px);
    bottom: 14px;
  }

  .talents-content.class-selection-mode .talents-class-weapon-chip {
    min-height: 54px;
  }

  .talents-content.class-selection-mode .talents-class-weapon-icon {
    width: 24px;
    height: 24px;
  }

  .talents-content.class-selection-mode .talents-class-weapon-label {
    font-size: 0.52rem;
  }

  .talents-content.class-selection-mode .talents-class-choice-select {
    font-size: 0.78rem;
  }
}

/* Ember pass 5: leaderboard. */
.leaderboard-title {
  color: #f0b85b;
  text-shadow:
    0 0 9px rgba(240, 184, 91, 0.36),
    0 2px 0 rgba(0, 0, 0, 0.72);
}

.leaderboard-status,
.fight-leaderboard-empty {
  color: rgba(210, 174, 126, 0.94);
}

.fight-leaderboard-card,
.leaderboard-page-card {
  border-color: rgba(150, 92, 45, 0.5);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 90, 42, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.94), rgba(17, 10, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 142, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.fight-leaderboard-title {
  color: #ffe2a0;
}

.fight-leaderboard-row,
.fight-endless-global-row {
  border-color: rgba(176, 105, 52, 0.56);
  background:
    radial-gradient(circle at 12% 50%, rgba(240, 184, 91, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(44, 24, 15, 0.94), rgba(19, 11, 8, 0.96));
}

.fight-leaderboard-avatar,
.fight-endless-global-avatar {
  border-color: rgba(240, 184, 91, 0.48);
  background: rgba(22, 13, 9, 0.9);
  box-shadow: 0 0 10px rgba(240, 184, 91, 0.12);
}

.fight-leaderboard-avatar-fallback,
.fight-endless-global-avatar-fallback,
.fight-endless-global-rank {
  color: #ffe2a0;
}

.fight-leaderboard-main strong,
.fight-endless-global-row strong {
  color: #fff4d7;
}

.fight-leaderboard-meta {
  color: rgba(210, 174, 126, 0.94);
}

.fight-leaderboard-rank-value,
.fight-endless-global-row span:last-child {
  color: #f0b85b;
  text-shadow: 0 0 8px rgba(240, 184, 91, 0.18);
}

.fight-leaderboard-scope-btn,
.fight-endless-difficulty-tab {
  border-color: rgba(157, 94, 48, 0.58);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: rgba(222, 190, 146, 0.94);
}

.fight-leaderboard-scope-btn.active,
.fight-endless-difficulty-tab.active {
  border-color: rgba(240, 184, 91, 0.94);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(166, 72, 35, 0.98), rgba(77, 30, 20, 0.98));
  color: #fff4d7;
  box-shadow:
    0 0 12px rgba(201, 90, 42, 0.24),
    inset 0 0 0 1px rgba(255, 231, 177, 0.14);
}

/* Ember pass 6: compact category tabs. */
.shop-tabs .fight-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding: 0 0.22rem;
}

.shop-tabs .fight-tab-btn,
.shop-tabs .fight-tab-btn:hover,
.shop-tabs .fight-tab-btn:focus-visible {
  transform: none;
}

.shop-tabs .fight-tab-btn .fight-tab-label,
.shop-tabs .fight-tab-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.category-tabs .category-tile,
.inventory-filter-btn,
.crafting-tab,
.fight-leaderboard-scope-btn {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Ember pass 7: inventory confirmation dialogs. */
.inventory-confirm-modal {
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 90, 42, 0.16), transparent 48%),
    rgba(5, 3, 2, 0.84);
}

.inventory-confirm-card {
  border-color: rgba(225, 119, 72, 0.58);
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 90, 42, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(38, 21, 14, 0.98), rgba(13, 8, 6, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 215, 144, 0.1);
}

.inventory-confirm-title {
  color: #fff4d7;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
}

.inventory-confirm-text {
  color: rgba(232, 203, 160, 0.96);
}

.inventory-confirm-reward {
  border-color: rgba(176, 105, 52, 0.58);
  background:
    radial-gradient(circle at 16% 24%, rgba(240, 184, 91, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(44, 24, 15, 0.94), rgba(19, 11, 8, 0.96));
}

.inventory-confirm-reward-icon-wrap {
  border-color: rgba(240, 184, 91, 0.46);
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 184, 91, 0.16), transparent 62%),
    rgba(14, 8, 6, 0.94);
}

.inventory-confirm-reward-label {
  color: #f0b85b;
}

.inventory-confirm-reward-text {
  color: #fff4d7;
}

.inventory-confirm-reward-balance {
  color: rgba(232, 203, 160, 0.92);
}

.inventory-confirm-actions .inventory-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inventory-confirm-actions .inventory-action-btn.secondary {
  border-color: rgba(157, 94, 48, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: #f7ead2;
}

/* Ember pass 8: character creator. */
.editor-card,
.preview-card,
.controls-card,
.slider-shell,
.compact-color {
  border-color: rgba(150, 92, 45, 0.5);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 90, 42, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.94), rgba(17, 10, 7, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 142, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.avatar-stage {
  border-color: rgba(170, 106, 55, 0.58);
  background:
    linear-gradient(135deg, rgba(145, 116, 96, 0.14) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(135deg, transparent 75%, rgba(145, 116, 96, 0.14) 75%) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 0%, rgba(201, 90, 42, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(34, 20, 14, 0.96), rgba(13, 8, 6, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 199, 112, 0.1),
    inset 0 0 26px rgba(0, 0, 0, 0.22);
}

.preview-randomize {
  border-color: rgba(240, 184, 91, 0.6);
  background: linear-gradient(180deg, rgba(47, 29, 19, 0.92), rgba(16, 10, 7, 0.94));
  box-shadow: 0 0 12px rgba(240, 184, 91, 0.18);
}

.category-tabs .category-tile {
  border-color: rgba(157, 94, 48, 0.58);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
}

.category-tabs .category-tile.active {
  border-color: rgba(240, 184, 91, 0.94);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(166, 72, 35, 0.98), rgba(77, 30, 20, 0.98));
  box-shadow:
    0 0 12px rgba(201, 90, 42, 0.24),
    inset 0 0 0 1px rgba(255, 231, 177, 0.14);
}

.active-category-label,
.active-color-label {
  color: #fff1d1;
}

.active-option-label {
  color: rgba(232, 203, 160, 0.96);
}

.active-option-label.muted {
  color: rgba(210, 174, 126, 0.92);
}

.nav-arrow {
  border-color: rgba(157, 94, 48, 0.62);
  background: linear-gradient(180deg, rgba(43, 25, 15, 0.96), rgba(20, 12, 8, 0.96));
  color: #ffe2a0;
}

.nav-arrow:hover,
.nav-arrow:focus-visible {
  border-color: rgba(240, 184, 91, 0.9);
  box-shadow: 0 0 12px rgba(201, 90, 42, 0.22);
}

.current-color-swatch {
  border-color: rgba(240, 184, 91, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(240, 184, 91, 0.12);
}

.actions button,
#createCharacterBtn,
#requestIdentityBtn {
  border-color: rgba(255, 203, 113, 0.72);
  background: linear-gradient(180deg, #d27a3b, #8d3a22);
  color: #fff6d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.18),
    0 7px 16px rgba(0, 0, 0, 0.24);
}

/* Ember pass 9: loading and panel fallback states. */
html,
body,
.loadout-live-body,
.layout,
.layout.single-editor,
.layout.panel-mode.single-editor {
  background:
    radial-gradient(circle at 50% -10%, rgba(176, 76, 34, 0.22), transparent 42%),
    linear-gradient(180deg, #120b08, #070503);
}

.loadout-loading-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 90, 42, 0.16), transparent 46%),
    rgba(8, 5, 4, 0.86);
  backdrop-filter: blur(2px);
}

.loadout-loading-content,
.panel-state-card {
  border-color: rgba(176, 105, 52, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(35, 20, 13, 0.96), rgba(14, 8, 6, 0.97));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 213, 142, 0.08);
}

.loadout-loading-spinner,
.craft-reveal-spinner {
  border-color: rgba(150, 92, 45, 0.5);
  border-top-color: #f0b85b;
  border-right-color: #c95a2a;
  box-shadow: 0 0 12px rgba(240, 184, 91, 0.24);
}

.loadout-loading-text,
.panel-state-title {
  color: #fff4d7;
}

.panel-status,
.panel-state-subtitle {
  color: rgba(210, 174, 126, 0.94);
}

.panel-primary-btn,
.loadout-retry-btn {
  border-color: rgba(255, 203, 113, 0.72);
  background: linear-gradient(180deg, #d27a3b, #8d3a22);
  color: #fff6d8;
}

/* Ember pass 10: random craft remaining blue strips and effects. */
.random-craft-preview::before {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 32%, rgba(240, 184, 91, 0.28));
  background: radial-gradient(circle, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 18%, transparent), transparent 64%);
}

.random-craft-preview::after {
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 72%, #fff0c4) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 62%, #fff0c4) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 18%, rgba(240, 184, 91, 0.54) 0 1px, transparent 2px);
}

.random-craft-mystery,
.random-craft-result-slot {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 70%, #fff0c4);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #f0b85b) 20%, transparent), transparent 60%),
    rgba(18, 10, 7, 0.96);
  color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 80%, #fff4d7);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 34%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 14%, transparent);
}

.random-forge-ring {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 78%, #fff0c4);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 42%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 24%, transparent);
}

.random-forge-spark {
  background: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 82%, #fff0c4);
  box-shadow: 0 0 10px color-mix(in srgb, var(--active-rarity-color, #f0b85b) 56%, transparent);
}

.random-craft-reward-label {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 48%, rgba(150, 92, 45, 0.5));
  background: rgba(35, 19, 11, 0.9);
  color: #fff4d7;
}

.random-section-label,
.random-outcomes-head span,
.random-craft-cost-row span {
  color: #f0b85b;
}

.random-craft-cost-row {
  border-color: rgba(176, 105, 52, 0.56);
  background:
    radial-gradient(circle at 100% 50%, rgba(240, 184, 91, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(44, 24, 15, 0.94), rgba(19, 11, 8, 0.96));
}

.random-craft-cost-row strong {
  color: #fff4d7;
}

.random-craft-cost {
  color: color-mix(in srgb, var(--active-rarity-color, #f0b85b) 82%, #fff4d7) !important;
}

/* Ember pass 11: keep random craft core chrome warm even when rarity colors change. */
.random-craft-preview {
  border-color: rgba(176, 105, 52, 0.6);
  background:
    radial-gradient(circle at 50% 34%, rgba(240, 184, 91, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(36, 20, 13, 0.92), rgba(14, 8, 6, 0.94));
}

.random-craft-preview::before {
  border-color: rgba(240, 184, 91, 0.34);
  background: radial-gradient(circle, rgba(240, 184, 91, 0.13), transparent 64%);
}

.random-craft-preview::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 228, 165, 0.84) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(240, 184, 91, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 78%, rgba(201, 90, 42, 0.66) 0 1px, transparent 2px);
}

.random-craft-mystery {
  border-color: rgba(240, 184, 91, 0.84);
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 184, 91, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(42, 24, 16, 0.96), rgba(13, 8, 6, 0.98));
  color: #fff4d7;
  box-shadow:
    0 0 16px rgba(240, 184, 91, 0.28),
    inset 0 0 16px rgba(240, 184, 91, 0.12);
}

.random-craft-mystery span {
  color: #fff4d7;
  text-shadow: 0 0 10px rgba(240, 184, 91, 0.24);
}

.random-craft-reward-label {
  border-color: rgba(240, 184, 91, 0.62);
  background: linear-gradient(180deg, rgba(49, 28, 17, 0.96), rgba(22, 13, 9, 0.96));
  color: #fff4d7;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 177, 0.08);
}

.random-craft-cost-row {
  border-color: rgba(176, 105, 52, 0.62);
  background:
    radial-gradient(circle at 100% 50%, rgba(240, 184, 91, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(44, 24, 15, 0.96), rgba(19, 11, 8, 0.98));
  color: #fff4d7;
}

.random-craft-cost-row span,
.random-outcomes-head span {
  color: rgba(210, 174, 126, 0.96);
}

.random-craft-cost-row strong,
.random-craft-cost {
  color: #ffe2a0 !important;
}

.random-craft-main-cost {
  background: rgba(35, 19, 11, 0.9);
  color: #ffe2a0;
  box-shadow: inset 0 0 0 1px rgba(240, 184, 91, 0.14);
}

/* Ember pass 12: achievement unlocked cards. */
.achievement-card.is-unlocked {
  border-color: rgba(240, 184, 91, 0.9);
  background:
    radial-gradient(circle at 10% 20%, rgba(240, 184, 91, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(52, 29, 17, 0.94), rgba(24, 13, 8, 0.96));
  box-shadow:
    0 0 16px rgba(201, 90, 42, 0.28),
    inset 0 0 0 1px rgba(255, 219, 143, 0.14);
}

.achievement-card.is-unlocked .achievement-card-icon {
  border-color: rgba(240, 184, 91, 0.72);
  background:
    radial-gradient(circle at 50% 35%, rgba(240, 184, 91, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(38, 21, 13, 0.96), rgba(13, 8, 6, 0.96));
  box-shadow:
    0 0 10px rgba(240, 184, 91, 0.2),
    inset 0 0 0 1px rgba(255, 231, 177, 0.08);
}

.achievement-card-state {
  color: #ffe2a0;
}

.achievement-card.is-unlocked .achievement-card-state {
  color: #fff0c4;
  text-shadow: 0 0 8px rgba(240, 184, 91, 0.22);
}

/* Ember pass 13: disenchant dust estimate panel. */
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack {
  border-color: rgba(240, 184, 91, 0.48);
  background:
    radial-gradient(circle at 50% 30%, rgba(240, 184, 91, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(39, 22, 14, 0.94), rgba(15, 9, 6, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 177, 0.06),
    0 0 10px rgba(201, 90, 42, 0.12);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack span {
  color: rgba(210, 174, 126, 0.96);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack strong {
  color: #fff4d7;
}

/* Ember pass 14: profile/loadout summary panel. */
.loadout-summary {
  border-color: rgba(176, 105, 52, 0.68);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 184, 91, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(45, 24, 15, 0.96), rgba(19, 11, 8, 0.98));
  box-shadow:
    0 10px 20px rgba(2, 7, 22, 0.35),
    inset 0 1px 0 rgba(255, 231, 177, 0.08);
}

.loadout-level {
  color: #fff4d7;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 8px rgba(240, 184, 91, 0.18);
}

.loadout-exp-text {
  color: rgba(222, 190, 146, 0.94);
}

.loadout-exp-track {
  background: rgba(34, 20, 13, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(151, 92, 45, 0.34),
    inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.loadout-exp-fill {
  background: linear-gradient(90deg, #f0b85b, #ff8a45);
  box-shadow: 0 0 10px rgba(240, 184, 91, 0.42);
}

.loadout-stat-scroll::-webkit-scrollbar-thumb {
  background: rgba(191, 82, 39, 0.74);
  border-color: rgba(16, 9, 6, 0.8);
}

.loadout-potion-popover {
  border-color: rgba(240, 184, 91, 0.58);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 184, 91, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(45, 24, 15, 0.98), rgba(16, 9, 6, 0.98));
  box-shadow: 0 16px 28px rgba(2, 7, 22, 0.5), 0 0 18px rgba(201, 90, 42, 0.16);
}

.loadout-potion-popover-head,
.loadout-potion-row-body strong {
  color: #fff4d7;
}

.loadout-potion-row-body small {
  color: rgba(210, 174, 126, 0.94);
}

.loadout-potion-row-icon {
  border-color: rgba(176, 105, 52, 0.58);
  background: linear-gradient(180deg, rgba(30, 17, 11, 0.96), rgba(13, 8, 6, 0.94));
}

/* Ember pass 15: random craft primary action and reward strip. */
.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-reward-label {
  border-color: rgba(240, 184, 91, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(45, 24, 15, 0.96), rgba(18, 10, 7, 0.98));
  color: #fff4d7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 177, 0.08),
    0 0 10px rgba(201, 90, 42, 0.12);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn {
  border-color: rgba(255, 203, 113, 0.82);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.26), transparent 58%),
    linear-gradient(180deg, #d77a3a, #944021);
  color: #fff6d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.22),
    0 7px 16px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(201, 90, 42, 0.22);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn:hover,
.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn:focus-visible {
  border-color: rgba(255, 224, 160, 0.96);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 231, 177, 0.32), transparent 58%),
    linear-gradient(180deg, #e08342, #a34623);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(240, 184, 91, 0.26);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn:disabled {
  border-color: rgba(142, 91, 55, 0.42);
  background: linear-gradient(180deg, rgba(93, 60, 39, 0.82), rgba(53, 33, 23, 0.86));
  color: rgba(218, 187, 145, 0.58);
  box-shadow: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-cost {
  background: rgba(47, 27, 17, 0.9);
  color: #ffe2a0;
  box-shadow: inset 0 0 0 1px rgba(240, 184, 91, 0.16);
}

/* Ember pass 16: iOS-safe Uber Boss picker. */
html.cw-ios-webkit .fight-selected-card.uber-picker-open,
html.cw-ios-webkit .fight-selected-card.uber-picker-open .fight-selected-main,
html.cw-ios-webkit .fight-selected-card.uber-picker-open .fight-selected-top {
  overflow: visible;
}

html.cw-ios-webkit .fight-uber-picker {
  position: relative;
  z-index: 20;
}

html.cw-ios-webkit .fight-uber-picker.open {
  z-index: 80;
}

html.cw-ios-webkit .fight-uber-picker.open .fight-uber-option-list {
  position: fixed;
  left: var(--uber-picker-left, 10px);
  right: auto;
  top: var(--uber-picker-top, auto);
  bottom: var(--uber-picker-bottom, auto);
  width: var(--uber-picker-width, calc(100vw - 20px));
  z-index: 120;
  max-height: var(--uber-picker-max-height, min(48vh, 280px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.34rem;
  border-color: rgba(240, 184, 91, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 91, 0.12), transparent 54%),
    linear-gradient(180deg, rgba(39, 22, 14, 0.98), rgba(13, 8, 6, 0.98));
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 231, 177, 0.08);
}

html.cw-ios-webkit .fight-uber-picker.open[data-placement="above"] .fight-uber-option-list {
  box-shadow:
    0 -14px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 231, 177, 0.08);
}

html.cw-ios-webkit .fight-uber-picker.open .fight-uber-picker-toggle {
  position: relative;
  z-index: 121;
}

/* Ember pass 17: equal-size shop item cards. */
.shop-entry-list {
  align-items: stretch;
  grid-auto-rows: 148px;
}

.shop-entry {
  box-sizing: border-box;
  height: 148px;
  min-height: 148px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.shop-entry-head {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px;
  align-items: stretch;
  justify-items: center;
}

.shop-entry-identity {
  min-height: 0;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  align-content: start;
}

.shop-entry-icon-wrap {
  width: 54px;
  height: 54px;
  align-self: start;
}

.shop-entry-title-wrap {
  min-height: 0;
  align-content: start;
  gap: 0.08rem;
}

.shop-entry-title-wrap .fight-entry-name {
  min-height: 1.7rem;
  max-height: 1.7rem;
  display: -webkit-box;
  overflow: hidden;
  line-height: 0.85rem;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-entry-owned {
  min-height: 0.66rem;
  line-height: 0.66rem;
  text-align: center;
}

.shop-entry-price-chip {
  align-self: end;
}

/* Ember pass 18: iOS viewport rubber-band guard. */
html.cw-ios-scroll-lock,
html.cw-ios-scroll-lock body.loadout-live-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Ember pass 19: PVP duel challenge list and incoming challenge banner. */
.pvp-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  width: 100%;
  min-height: 100%;
  padding: 0.42rem 0.42rem calc(var(--loadout-bottom-nav-height, 4.1rem) + 0.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pvp-hero-card,
.pvp-tabs,
.pvp-viewer-card,
.pvp-list-section,
.pvp-waiting-card,
.pvp-season-card,
.pvp-rankings-mode-bar,
.pvp-previous-season-header,
.pvp-previous-season-card,
.pvp-ranking-card,
.pvp-target-card,
.pvp-empty-card {
  border: 1px solid rgba(240, 184, 91, 0.5);
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 184, 91, 0.12), transparent 50%),
    linear-gradient(135deg, rgba(63, 32, 19, 0.94), rgba(29, 15, 10, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.pvp-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  border-radius: 0.56rem;
  padding: 0.28rem;
}

.pvp-tab {
  min-height: 2.15rem;
  border: 1px solid rgba(255, 203, 113, 0.42);
  border-radius: 0.44rem;
  background: rgba(17, 9, 6, 0.66);
  color: rgba(255, 226, 160, 0.72);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.pvp-tab.active {
  border-color: rgba(255, 224, 160, 0.9);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.22), transparent 58%),
    linear-gradient(180deg, #d77a3a, #934020);
  color: #fff6d8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.pvp-tab-panel {
  display: grid;
  gap: 0.5rem;
}

.pvp-status-line {
  min-height: 0.88rem;
  margin: 0;
  color: rgba(230, 197, 151, 0.86);
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.pvp-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 4.4rem;
  border-radius: 0.56rem;
  padding: 0.7rem 0.78rem;
}

.pvp-hero-card .leaderboard-title {
  margin: 0 0 0.12rem;
  text-align: left;
}

.pvp-hero-card .leaderboard-status {
  margin: 0;
  text-align: left;
}

.leaderboard-status[data-error="1"],
.pvp-status-line[data-error="1"],
.pvp-status-error {
  color: #ffb69c;
}

.pvp-refresh-btn,
.pvp-challenge-btn,
.pvp-find-opponent-btn,
.pvp-cancel-queue-btn,
.pvp-stage-challenge-btn,
.pvp-match-accept-btn,
.pvp-match-decline-btn,
.cw-pvp-duel-banner-accept,
.cw-pvp-duel-banner-decline {
  border: 1px solid rgba(255, 203, 113, 0.78);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.2), transparent 58%),
    linear-gradient(180deg, #d77a3a, #934020);
  color: #fff6d8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.2),
    0 0 10px rgba(201, 90, 42, 0.18);
  cursor: pointer;
}

.pvp-refresh-btn {
  flex: 0 0 auto;
  min-width: 4.8rem;
  min-height: 2.15rem;
}

.pvp-refresh-btn:hover,
.pvp-refresh-btn:focus-visible,
.pvp-challenge-btn:hover,
.pvp-challenge-btn:focus-visible,
.pvp-find-opponent-btn:hover,
.pvp-find-opponent-btn:focus-visible,
.pvp-cancel-queue-btn:hover,
.pvp-cancel-queue-btn:focus-visible,
.pvp-stage-challenge-btn:hover,
.pvp-stage-challenge-btn:focus-visible,
.pvp-match-accept-btn:hover,
.pvp-match-accept-btn:focus-visible,
.pvp-match-decline-btn:hover,
.pvp-match-decline-btn:focus-visible,
.cw-pvp-duel-banner-accept:hover,
.cw-pvp-duel-banner-accept:focus-visible,
.cw-pvp-duel-banner-decline:hover,
.cw-pvp-duel-banner-decline:focus-visible {
  border-color: rgba(255, 224, 160, 0.96);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.3), transparent 58%),
    linear-gradient(180deg, #ef8c49, #a74724);
}

.pvp-challenge-btn:disabled,
.pvp-find-opponent-btn:disabled,
.pvp-cancel-queue-btn:disabled,
.pvp-stage-challenge-btn:disabled,
.pvp-match-accept-btn:disabled,
.pvp-match-decline-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.pvp-find-opponent-btn.is-busy:disabled,
.pvp-cancel-queue-btn:disabled,
.pvp-match-accept-btn:disabled {
  cursor: wait;
}

.pvp-matchmaking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 4.4rem;
  border: 1px solid rgba(255, 203, 113, 0.28);
  border-radius: 0.56rem;
  padding: 0.74rem;
  background:
    radial-gradient(circle at 35% 0%, rgba(236, 141, 75, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(43, 21, 12, 0.9), rgba(14, 7, 5, 0.94));
}

.pvp-matchmaking-stats-card {
  border: 1px solid rgba(255, 203, 113, 0.24);
  border-radius: 0.5rem;
  padding: 0.32rem 0.42rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 160, 0.12), transparent 60%),
    rgba(20, 10, 7, 0.74);
}

.pvp-find-opponent-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0 0.72rem;
}

.pvp-matchmaking-stats,
.pvp-matchmaking-free {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.38rem;
}

.pvp-matchmaking-stats-card .pvp-matchmaking-stats {
  margin-top: 0;
}

.pvp-matchmaking-stats span,
.pvp-matchmaking-free span {
  display: inline-flex;
  align-items: center;
  min-height: 1.06rem;
  border: 1px solid rgba(92, 58, 28, 0.36);
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  background: rgba(255, 238, 190, 0.68);
  color: #3e2814;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
}

.pvp-matchmaking-stats strong,
.pvp-matchmaking-free strong {
  margin-left: 0.18rem;
  color: #8b331c;
  font-variant-numeric: tabular-nums;
}

.pvp-matchmaking-card.is-locked {
  border-color: rgba(112, 122, 137, 0.42);
  background:
    radial-gradient(circle at 35% 0%, rgba(156, 173, 194, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(31, 29, 32, 0.92), rgba(12, 10, 10, 0.95));
}

.pvp-matchmaking-card.is-locked .pvp-target-copy p {
  color: #ffdca3;
}

.pvp-cancel-queue-btn {
  min-width: 5.8rem;
  min-height: 1.95rem;
  padding: 0 0.7rem;
}

.pvp-duel-loadout-list {
  display: grid;
  gap: 0.5rem;
}

.pvp-duel-loadout-card {
  border: 1px solid rgba(255, 203, 113, 0.28);
  border-radius: 0.56rem;
  padding: 0.58rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(236, 141, 75, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(43, 21, 12, 0.9), rgba(14, 7, 5, 0.94));
}

.pvp-duel-loadout-card.is-locked {
  border-color: rgba(145, 136, 122, 0.36);
  filter: saturate(0.72);
}

.pvp-duel-loadout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.pvp-duel-loadout-heading strong {
  color: #fff6d8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pvp-duel-loadout-heading span {
  color: rgba(255, 226, 160, 0.82);
  font-size: 0.6rem;
  font-weight: 900;
}

.pvp-duel-talent-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.36rem;
}

.pvp-duel-talent-btn,
.pvp-duel-skill-btn {
  min-width: 0;
  border: 1px solid rgba(255, 203, 113, 0.34);
  border-radius: 0.5rem;
  background: rgba(17, 9, 6, 0.64);
  color: rgba(255, 226, 160, 0.84);
  font: inherit;
  cursor: pointer;
}

.pvp-duel-talent-btn {
  display: grid;
  align-content: start;
  gap: 0.24rem;
  min-height: 5.2rem;
  padding: 0.5rem;
  text-align: left;
}

.pvp-duel-talent-btn strong,
.pvp-duel-skill-copy strong {
  color: #fff0c6;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
}

.pvp-duel-talent-btn span,
.pvp-duel-skill-copy small {
  color: rgba(236, 201, 151, 0.82);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.25;
}

.pvp-duel-talent-effect {
  display: block;
  color: rgba(255, 225, 151, 0.92);
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1.18;
}

.pvp-duel-talent-btn.is-selected,
.pvp-duel-skill-btn.is-selected {
  border-color: rgba(255, 224, 160, 0.96);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(183, 85, 39, 0.96), rgba(105, 45, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.18),
    0 0 12px rgba(230, 120, 62, 0.22);
}

.pvp-duel-talent-btn:disabled,
.pvp-duel-skill-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.pvp-duel-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.pvp-duel-skill-btn {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-height: 3.15rem;
  padding: 0.38rem;
  text-align: left;
}

.pvp-duel-skill-btn img,
.pvp-duel-skill-fallback {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 203, 113, 0.36);
  border-radius: 0.42rem;
  background: rgba(255, 238, 190, 0.1);
  object-fit: contain;
}

.pvp-duel-skill-fallback {
  display: grid;
  place-items: center;
  color: #ffe0a0;
  font-size: 0.76rem;
  font-weight: 900;
}

.pvp-duel-skill-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

@media (max-width: 420px) {
  .pvp-tab {
    font-size: 0.64rem;
  }

  .pvp-duel-talent-row,
  .pvp-duel-skill-grid {
    grid-template-columns: 1fr;
  }
}

.pvp-search-spinner {
  --pvp-spinner-track: rgba(255, 216, 146, 0.2);
  --pvp-spinner-tail: rgba(255, 218, 132, 0.42);
  --pvp-spinner-head: rgba(255, 218, 132, 0.98);
  width: 1.45rem;
  height: 1.45rem;
  margin: 0 auto 0.48rem;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    var(--pvp-spinner-head) 0deg 72deg,
    var(--pvp-spinner-tail) 112deg 184deg,
    var(--pvp-spinner-track) 224deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  transform-origin: 50% 50%;
  animation: pvpSearchSpin 1.05s linear infinite;
  will-change: transform;
}

@keyframes pvpSearchSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pvp-viewer-card {
  min-height: 10.4rem;
  border-radius: 0.56rem;
  padding: 0.54rem;
}

.pvp-viewer-label,
.pvp-section-title,
.pvp-fighter-label {
  color: #ffe2a0;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pvp-viewer-name,
.pvp-fighter-name {
  margin-top: 0.14rem;
  overflow: hidden;
  color: #fff4d7;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.58);
}

.pvp-viewer-meta,
.pvp-fighter-meta,
.pvp-viewer-empty span,
.pvp-target-copy p {
  color: rgba(230, 197, 151, 0.94);
  font-size: 0.68rem;
  font-weight: 800;
}

.pvp-viewer-empty {
  display: grid;
  gap: 0.2rem;
}

.pvp-viewer-empty strong {
  color: #fff4d7;
}

.pvp-waiting-card {
  display: grid;
  min-height: 11.6rem;
  place-items: center;
  border-radius: 0.56rem;
  padding: 1rem;
  text-align: center;
}

.pvp-waiting-title {
  color: #fff4d7;
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.58);
}

.pvp-waiting-target {
  margin-top: 0.25rem;
  color: rgba(230, 197, 151, 0.94);
  font-size: 0.74rem;
  font-weight: 800;
}

.pvp-waiting-timer {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-top: 0.75rem;
  place-items: center;
  border: 1px solid rgba(255, 224, 160, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 177, 0.2), transparent 60%),
    rgba(17, 9, 6, 0.74);
  color: #ffe2a0;
  font-size: 1.2rem;
  font-weight: 900;
}

.pvp-duel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.1rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.38rem;
}

.pvp-fighter-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 7.25rem auto auto;
  gap: 0.18rem;
  border: 1px solid rgba(240, 184, 91, 0.28);
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 210, 128, 0.12), transparent 58%),
    rgba(13, 8, 6, 0.48);
  padding: 0.34rem;
  text-align: center;
}

.pvp-fighter-opponent {
  border-color: rgba(255, 104, 91, 0.34);
}

.pvp-fighter-card.is-empty {
  opacity: 0.82;
}

.pvp-character-frame {
  position: relative;
  min-width: 0;
  height: 7.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 146, 0.2);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 32%, rgba(236, 141, 75, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(10, 9, 12, 0.82), rgba(17, 8, 5, 0.88));
}

.pvp-loadout-canvas {
  position: absolute;
  left: 50%;
  top: 52%;
  display: block;
  width: 8.55rem;
  height: 8.55rem;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  image-rendering: pixelated;
  pointer-events: none;
}

.pvp-loadout-canvas.is-mirrored {
  transform: translate(-50%, -50%) scaleX(-1);
}

.pvp-loadout-canvas[hidden] {
  display: none;
}

.pvp-character-frame.has-preview .pvp-character-stack,
.pvp-character-frame.has-preview .pvp-character-fallback {
  display: none;
}

.pvp-character-stack {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 512px;
  height: 512px;
  margin-left: -256px;
  margin-top: -256px;
  transform: scale(0.31);
  transform-origin: center center;
}

.pvp-character-stack.is-mirrored {
  transform: scale(-0.31, 0.31);
}

.pvp-character-layer {
  position: absolute;
  display: block;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
}

.pvp-character-fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 184, 91, 0.46);
  border-radius: 0.48rem;
  background: rgba(15, 8, 6, 0.78);
  color: #fff4d7;
  font-size: 1.15rem;
  font-weight: 900;
}

.pvp-character-stack:not([data-empty="1"]) + .pvp-character-fallback {
  display: none;
}

.pvp-versus {
  align-self: center;
  color: #ffe2a0;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 10px rgba(234, 111, 54, 0.34);
}

.pvp-stage-challenge-btn {
  width: 100%;
  min-height: 2.15rem;
  margin-top: 0.5rem;
}

.pvp-duel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pvp-match-accept-btn,
.pvp-match-decline-btn {
  width: 100%;
  min-height: 2.15rem;
}

.pvp-match-decline-btn {
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.12), transparent 58%),
    linear-gradient(180deg, #6e3b26, #30170f);
}

.pvp-duel-accepted-note {
  width: 100%;
  min-height: 2.15rem;
  margin-top: 0.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 224, 160, 0.42);
  border-radius: 0.5rem;
  background: rgba(17, 9, 6, 0.66);
  color: #ffe2a0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pvp-duel-accept-timeout {
  margin-top: 0.28rem;
  color: #f2b75d;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
}

.pvp-duel-response-timer {
  color: #fff2b8;
  font-variant-numeric: tabular-nums;
}

.pvp-battle-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #60d5d0 0%, #93ead7 21%, #d4f19b 22%, #a8dd65 51%, #77bf48 100%);
  color: #1e2830;
  font-family: "Chakra Petch", system-ui, sans-serif;
}

.pvp-battle-sky {
  position: absolute;
  inset: 0 0 34%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 13px),
    linear-gradient(180deg, rgba(61, 210, 207, 0.88), rgba(175, 241, 218, 0.7));
}

.pvp-battle-field {
  position: absolute;
  inset: 22% 0 5.8rem;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, rgba(213, 242, 133, 0.96), rgba(103, 184, 67, 0.96));
}

.pvp-battle-platform {
  position: absolute;
  z-index: 1;
  width: 8.7rem;
  height: 2.15rem;
  border: 2px solid rgba(63, 118, 45, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 40%, #92df78 0 36%, #54b14f 37% 65%, #347a38 66% 100%);
  box-shadow: inset 0 -0.28rem 0 rgba(33, 104, 44, 0.22);
}

.pvp-battle-platform-opponent {
  right: 0.65rem;
  bottom: 0.6rem;
}

.pvp-battle-platform-player {
  left: 0.35rem;
  bottom: 0.78rem;
  width: 10.4rem;
  height: 2.45rem;
}

.pvp-battle-fighter {
  position: absolute;
  z-index: 3;
}

.pvp-battle-player.is-attacking .pvp-battle-character-frame {
  animation: pvp-battle-charge-player 560ms cubic-bezier(0.16, 0.86, 0.34, 1) both;
}

.pvp-battle-opponent.is-attacking .pvp-battle-character-frame {
  animation: pvp-battle-charge-opponent 560ms cubic-bezier(0.16, 0.86, 0.34, 1) both;
}

.pvp-battle-fighter.is-hit .pvp-battle-character-frame {
  animation: pvp-battle-hit 520ms ease-out both;
  filter: brightness(1.16) saturate(1.22);
}

.pvp-battle-fighter.is-dodging .pvp-battle-character-frame {
  animation: pvp-battle-dodge 420ms ease-out both;
}

.pvp-battle-fighter.is-blocking .pvp-battle-character-frame {
  animation: pvp-battle-block 480ms ease-out both;
  filter: brightness(1.08) saturate(1.08);
}

.pvp-battle-fighter.is-missing .pvp-battle-character-frame {
  animation: pvp-battle-dodge 420ms ease-out both;
}

.pvp-battle-fighter.is-healing-cast .pvp-battle-character-frame {
  animation: pvp-battle-heal-cast 760ms ease-out both;
  filter: brightness(1.18) saturate(1.24);
}

.pvp-battle-fighter.is-buffing .pvp-battle-character-frame {
  animation: pvp-battle-buff-cast 820ms cubic-bezier(0.18, 0.88, 0.32, 1) both;
  filter: brightness(1.15) saturate(1.2);
}

.pvp-battle-fighter.is-healing-cast::after,
.pvp-battle-fighter.is-buffing::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1.6rem;
  width: 6.6rem;
  height: 6.6rem;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.pvp-battle-fighter.is-healing-cast::after {
  background: radial-gradient(circle, rgba(139, 255, 175, 0.48), rgba(92, 234, 132, 0.14) 48%, transparent 70%);
  animation: pvp-battle-heal-glow 820ms ease-out both;
}

.pvp-battle-fighter.is-buffing::after {
  background: radial-gradient(circle, rgba(255, 232, 123, 0.44), rgba(126, 205, 255, 0.16) 52%, transparent 72%);
  animation: pvp-battle-buff-glow 880ms ease-out both;
}

.pvp-battle-fighter.is-victorious .pvp-battle-character-frame {
  animation: pvp-battle-victory 820ms ease-in-out 260ms 3 both;
}

.pvp-battle-fighter.is-defeated .pvp-battle-character-frame {
  animation: pvp-battle-defeat 1350ms ease-in both;
  filter: grayscale(0.45) brightness(0.82);
}

.pvp-battle-opponent {
  top: 4.15rem;
  right: 0.45rem;
  width: 9.3rem;
  height: 8.5rem;
}

.pvp-battle-player {
  left: 0.1rem;
  bottom: 8.55rem;
  width: 10.7rem;
  height: 9.8rem;
}

.pvp-battle-character-frame {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.82rem;
  width: 8.1rem;
  height: 8.1rem;
  transform: translateX(-50%);
  overflow: visible;
  border: 0;
  background: transparent;
}

.pvp-battle-player .pvp-battle-character-frame {
  width: 9.4rem;
  height: 9.4rem;
  bottom: 0.9rem;
}

.pvp-battle-character-frame .pvp-loadout-canvas {
  top: 52%;
  width: 9.7rem;
  height: 9.7rem;
}

.pvp-battle-player .pvp-loadout-canvas {
  width: 11.1rem;
  height: 11.1rem;
}

.pvp-battle-character-frame .pvp-character-stack {
  transform: scale(0.36);
}

.pvp-battle-character-frame .pvp-character-stack.is-mirrored {
  transform: scale(-0.36, 0.36);
}

.pvp-battle-player .pvp-character-stack {
  transform: scale(0.42);
}

.pvp-battle-status {
  position: absolute;
  z-index: 9;
  display: grid;
  gap: 0.22rem;
  width: min(11.8rem, 58vw);
  min-height: 3.15rem;
  border: 2px solid rgba(76, 82, 88, 0.92);
  border-radius: 0.32rem 0.32rem 0.78rem 0.32rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  box-shadow:
    0 0.22rem 0 rgba(94, 100, 104, 0.86),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  padding: 0.34rem 0.52rem 0.38rem;
}

.pvp-battle-status-opponent {
  top: 2rem;
  left: 0.38rem;
}

.pvp-battle-status-player {
  right: 0.38rem;
  bottom: 8.05rem;
  border-radius: 0.32rem 0.32rem 0.32rem 0.78rem;
}

.pvp-battle-buff-row {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: min(11.8rem, 58vw);
  pointer-events: auto;
}

.pvp-battle-buff-row-opponent {
  top: 0.62rem;
  left: 0.38rem;
  max-width: calc(100% - 4.6rem);
}

.pvp-battle-buff-row-player {
  right: 0.38rem;
  bottom: 13.05rem;
  justify-content: flex-end;
}

.pvp-battle-buff-wrap {
  position: relative;
  display: inline-flex;
}

.pvp-battle-buff-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.18rem;
  min-height: 1.05rem;
  max-width: 5.8rem;
  border: 2px solid rgba(82, 70, 38, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4bc, #c99e3f);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  color: #513616;
  font: inherit;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.1rem 0.28rem;
  text-transform: uppercase;
}

.pvp-battle-buff-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-battle-buff-chip strong {
  color: #2b6d37;
  font-size: 0.5rem;
  white-space: nowrap;
}

.pvp-battle-buff-chip[aria-expanded="true"] {
  border-color: #fff4a6;
  box-shadow:
    0 0 0.34rem rgba(255, 232, 96, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.pvp-battle-buff-popover {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 1.28rem;
  display: grid;
  gap: 0.12rem;
  min-width: 7.2rem;
  max-width: 9rem;
  border: 2px solid rgba(69, 55, 31, 0.92);
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #fff6d1, #e7d08b);
  box-shadow: 0 0.22rem 0 rgba(70, 54, 24, 0.46);
  color: #4b3921;
  padding: 0.34rem 0.42rem;
}

.pvp-battle-buff-row-opponent .pvp-battle-buff-popover {
  right: auto;
  left: 0;
  top: 1.28rem;
  bottom: auto;
}

.pvp-battle-buff-popover strong {
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-battle-buff-popover span,
.pvp-battle-buff-popover em {
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
}

.pvp-battle-turn-timer {
  position: absolute;
  z-index: 7;
  top: 0.42rem;
  right: 0.42rem;
  min-width: 3.1rem;
  border: 2px solid rgba(76, 82, 88, 0.92);
  border-radius: 0.4rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  box-shadow:
    0 0.18rem 0 rgba(94, 100, 104, 0.78),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  color: #37404a;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.44rem;
  text-align: center;
}

.pvp-battle-status-row,
.pvp-battle-hp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.pvp-battle-status-row strong,
.pvp-battle-status-row span {
  min-width: 0;
  overflow: hidden;
  color: #37404a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  background: currentColor;
  -webkit-mask: var(--pvp-icon) center / contain no-repeat;
  mask: var(--pvp-icon) center / contain no-repeat;
}

.pvp-ui-icon.is-clock {
  --pvp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6M12 6a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 4v4l3 2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pvp-ui-icon.is-bolt {
  --pvp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 1.8 4.4 13h6.2l-1.1 9.2 10-13.2h-6.1l.8-7.2Z' fill='black'/%3E%3C/svg%3E");
}

.pvp-ui-icon.is-heart {
  --pvp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 4.2 13.8C.6 10.4 2.3 4.4 7.1 4.1c2-.1 3.6.9 4.9 2.5 1.3-1.6 2.9-2.6 4.9-2.5 4.8.3 6.5 6.3 2.9 9.7L12 21.2Z' fill='black'/%3E%3C/svg%3E");
}

.pvp-ui-icon.is-target {
  --pvp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v3m0 12v3M3 12h3m12 0h3M12 7.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pvp-battle-hp-row > span {
  flex: 0 0 auto;
  color: #c78a16;
  font-size: 0.64rem;
  font-weight: 900;
}

.pvp-battle-stat-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.pvp-battle-hp-track {
  flex: 1 1 auto;
  min-width: 3rem;
  height: 0.5rem;
  overflow: hidden;
  border: 2px solid #3e4a48;
  border-radius: 999px;
  background: #26302e;
}

.pvp-battle-hp-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5eb64a, #82da54);
  transition: width 360ms ease, background 220ms ease;
}

.pvp-battle-hp-fill.is-mid {
  background: linear-gradient(90deg, #d4a342, #efc34a);
}

.pvp-battle-hp-fill.is-low {
  background: linear-gradient(90deg, #d9533c, #ff8a4a);
}

.pvp-battle-hp-numbers {
  color: #37404a;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.pvp-battle-energy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.pvp-battle-energy-row > span {
  flex: 0 0 auto;
  color: #2b90cf;
  font-size: 0.64rem;
  font-weight: 900;
}

.pvp-battle-energy-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 3rem;
  height: 0.42rem;
  overflow: hidden;
  border: 2px solid #3e4a48;
  border-radius: 999px;
  background: #243a48;
}

.pvp-battle-energy-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36a9f6, #8ce8ff);
  transition: width 260ms ease;
}

.pvp-battle-energy-cost-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pvp-energy-cost-left, 0%);
  width: var(--pvp-energy-cost-width, 0%);
  min-width: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.26) 0 0.16rem,
      transparent 0.16rem 0.32rem
    ),
    linear-gradient(90deg, rgba(255, 221, 84, 0.96), rgba(255, 132, 69, 0.96));
  box-shadow:
    0 0 0.24rem rgba(255, 189, 72, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  opacity: 0;
  pointer-events: none;
}

.pvp-battle-energy-track.is-previewing .pvp-battle-energy-cost-preview {
  animation: pvp-battle-energy-cost-preview 1.15s ease-in-out infinite;
}

.pvp-battle-energy-numbers {
  color: #37404a;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.pvp-battle-command-panel {
  position: absolute;
  z-index: 8;
  left: 0.22rem;
  right: 0.22rem;
  bottom: 0.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 7.05rem;
  min-height: 7.05rem;
}

.pvp-battle-feedback {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 0.2rem;
  min-width: 3rem;
  transform: translateX(-50%);
  color: #fff4d1;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(79, 23, 12, 0.9),
    0 0 0.55rem rgba(255, 104, 58, 0.72);
  animation: pvp-battle-feedback 1300ms ease-out both;
  pointer-events: none;
}

.pvp-battle-feedback.is-critical {
  color: #ffdc63;
  font-size: 1.12rem;
  text-shadow:
    0 2px 0 rgba(84, 24, 8, 0.92),
    0 0 0.7rem rgba(255, 208, 66, 0.8);
}

.pvp-battle-feedback.is-dodge {
  color: #e8f2ff;
  font-size: 0.86rem;
  text-shadow:
    0 2px 0 rgba(30, 58, 83, 0.86),
    0 0 0.62rem rgba(92, 177, 255, 0.72);
}

.pvp-battle-feedback.is-block {
  color: #dfffe5;
  font-size: 0.86rem;
  text-shadow:
    0 2px 0 rgba(34, 74, 42, 0.88),
    0 0 0.62rem rgba(107, 255, 139, 0.7);
}

.pvp-battle-feedback.is-miss {
  color: #f4f2e7;
  font-size: 0.9rem;
  text-shadow:
    0 2px 0 rgba(64, 59, 48, 0.88),
    0 0 0.62rem rgba(255, 239, 188, 0.58);
}

.pvp-battle-feedback.is-heal {
  color: #98ffb2;
  text-shadow:
    0 2px 0 rgba(24, 83, 38, 0.9),
    0 0 0.7rem rgba(101, 255, 137, 0.78);
  animation: pvp-battle-heal-feedback 1400ms ease-out both;
}

.pvp-battle-feedback.is-buff {
  color: #fff0a6;
  text-shadow:
    0 2px 0 rgba(86, 56, 14, 0.9),
    0 0 0.74rem rgba(255, 224, 96, 0.82);
  animation: pvp-battle-buff-feedback 1450ms ease-out both;
}

.pvp-battle-skill-grid {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(3rem, auto);
  gap: 0.26rem;
  min-height: 0;
  max-height: 7.05rem;
  overflow-y: hidden;
  border: 3px solid #6b5b35;
  border-radius: 0.42rem;
  background: #f5f0dd;
  padding: 0.26rem;
}

.pvp-battle-skill-btn {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.26rem;
  min-width: 0;
  min-height: 3rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  color: #fffbe7;
  padding: 0.2rem 0.24rem;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.48);
}

.pvp-battle-skill-btn img {
  width: 1.48rem;
  height: 1.48rem;
  object-fit: contain;
}

.pvp-battle-skill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-battle-skill-badges {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 0.09rem;
  min-width: 2.34rem;
}

.pvp-battle-skill-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 2.08rem;
  min-height: 0.72rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0.06rem 0 rgba(58, 36, 14, 0.35);
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.07rem 0.18rem;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}

.pvp-battle-skill-badge .pvp-ui-icon {
  width: 0.5rem;
  height: 0.5rem;
}

.pvp-battle-skill-energy {
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
}

.pvp-battle-skill-cooldown {
  background: linear-gradient(180deg, #e8f7d5, #92b758);
  color: #31401c;
}

.pvp-battle-skill-hit {
  background: linear-gradient(180deg, #dff5ff, #74a7d1);
  color: #183e5a;
}

.pvp-battle-skill-cooldown.is-active {
  background: linear-gradient(180deg, #ffd18a, #bd5d2b);
  color: #fff8db;
  text-shadow: 0 1px 0 rgba(69, 27, 12, 0.72);
}

.pvp-battle-skill-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
}

.pvp-battle-skill-grid.is-scrollable {
  overflow-y: auto;
}

.pvp-battle-command-grid {
  display: none;
}

.pvp-battle-utility-actions {
  position: absolute;
  z-index: 11;
  top: 5.8rem;
  left: 0.52rem;
  display: grid;
  gap: 0.22rem;
  width: 4.28rem;
}

.pvp-battle-utility-actions button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 1.12rem;
  padding: 0.12rem 0.2rem;
  border: 2px solid #6d5a37;
  border-radius: 0.34rem;
  background: linear-gradient(180deg, #efb33d, #986a20);
  color: #fffbe7;
  font: inherit;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.56);
  white-space: nowrap;
  box-shadow:
    0 0.12rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.pvp-battle-utility-actions button > * {
  align-self: center;
  justify-self: center;
}

.pvp-battle-surrender-btn {
  background: linear-gradient(180deg, #d56c4b, #7e2b1e) !important;
  font-size: 0.52rem !important;
  letter-spacing: 0;
}

.pvp-battle-utility-actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.68;
}

.pvp-battle-ended-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.72), rgba(10, 7, 5, 0.82));
}

.pvp-battle-ended-dialog {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(18rem, calc(100% - 2rem));
  gap: 0.65rem;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 224, 160, 0.86);
  border-radius: 0.54rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 177, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(47, 24, 14, 0.98), rgba(14, 8, 6, 0.98));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 232, 170, 0.16);
  padding: 1rem;
  text-align: center;
}

.pvp-battle-ended-dialog h2,
.pvp-battle-ended-dialog p {
  margin: 0;
}

.pvp-battle-ended-dialog h2 {
  color: #fff4d7;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pvp-battle-ended-dialog p {
  color: rgba(230, 197, 151, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.pvp-battle-ended-rating {
  display: grid;
  gap: 0.36rem;
  border: 1px solid rgba(255, 224, 160, 0.2);
  border-radius: 0.44rem;
  background: rgba(10, 6, 5, 0.42);
  padding: 0.5rem;
}

.pvp-battle-ended-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(235, 199, 143, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
}

.pvp-battle-ended-row strong {
  color: #fff3cf;
  font-size: 0.78rem;
  font-weight: 900;
}

.pvp-battle-close-btn {
  min-height: 2.3rem;
  border: 1px solid rgba(255, 203, 113, 0.78);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.2), transparent 58%),
    linear-gradient(180deg, #d77a3a, #934020);
  color: #fff6d8;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes pvp-battle-charge-player {
  0% {
    transform: translateX(-50%) translate(0, 0);
  }
  36% {
    transform: translateX(-50%) translate(4.4rem, -4.6rem) scale(0.92);
  }
  52% {
    transform: translateX(-50%) translate(4.95rem, -5.1rem) scale(0.9);
  }
  100% {
    transform: translateX(-50%) translate(0, 0);
  }
}

@keyframes pvp-battle-charge-opponent {
  0% {
    transform: translateX(-50%) translate(0, 0);
  }
  36% {
    transform: translateX(-50%) translate(-4.15rem, 4.25rem) scale(1.08);
  }
  52% {
    transform: translateX(-50%) translate(-4.65rem, 4.75rem) scale(1.1);
  }
  100% {
    transform: translateX(-50%) translate(0, 0);
  }
}

@keyframes pvp-battle-hit {
  0%, 100% {
    transform: translateX(-50%) translate(0, 0);
  }
  16% {
    transform: translateX(-50%) translate(-0.52rem, 0.06rem) rotate(-3deg);
  }
  36% {
    transform: translateX(-50%) translate(0.42rem, -0.03rem) rotate(2deg);
  }
  58% {
    transform: translateX(-50%) translate(-0.28rem, 0) rotate(-1deg);
  }
  78% {
    transform: translateX(-50%) translate(0.14rem, 0);
  }
}

@keyframes pvp-battle-dodge {
  0%, 100% {
    transform: translateX(-50%) translate(0, 0);
  }
  48% {
    transform: translateX(-50%) translate(0.72rem, -0.1rem);
  }
}

@keyframes pvp-battle-block {
  0%, 100% {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }
  28% {
    transform: translateX(-50%) translate(-0.18rem, 0) scale(1.04);
  }
  52% {
    transform: translateX(-50%) translate(0.1rem, 0) scale(0.98);
  }
  74% {
    transform: translateX(-50%) translate(-0.08rem, 0) scale(1.01);
  }
}

@keyframes pvp-battle-victory {
  0%, 100% {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }
  28% {
    transform: translateX(-50%) translate(0, -0.42rem) scale(1.04);
  }
  54% {
    transform: translateX(-50%) translate(-0.16rem, 0) rotate(-2deg) scale(1.01);
  }
  78% {
    transform: translateX(-50%) translate(0.16rem, 0) rotate(2deg) scale(1.01);
  }
}

@keyframes pvp-battle-defeat {
  0% {
    opacity: 1;
    transform: translateX(-50%) translate(0, 0) rotate(0deg) scale(1);
  }
  28% {
    transform: translateX(-50%) translate(-0.22rem, 0.1rem) rotate(-5deg) scale(0.98);
  }
  62% {
    opacity: 0.92;
    transform: translateX(-50%) translate(-0.72rem, 1.05rem) rotate(-78deg) scale(0.92);
  }
  100% {
    opacity: 0.56;
    transform: translateX(-50%) translate(-0.9rem, 1.22rem) rotate(-90deg) scale(0.9);
  }
}

@keyframes pvp-battle-feedback {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.55rem) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -0.12rem) scale(1.08);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -0.92rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -1.85rem) scale(0.96);
  }
}

@keyframes pvp-battle-heal-cast {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  28% {
    transform: translateX(-50%) translateY(-0.12rem) scale(1.04);
  }
  56% {
    transform: translateX(-50%) translateY(0.04rem) scale(0.99);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes pvp-battle-buff-cast {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
  24% {
    transform: translateX(-50%) rotate(-4deg) scale(1.03);
  }
  54% {
    transform: translateX(-50%) rotate(4deg) scale(1.05);
  }
  100% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
}

@keyframes pvp-battle-heal-glow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.56);
  }
  38% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.32);
  }
}

@keyframes pvp-battle-buff-glow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.62) rotate(0deg);
  }
  42% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05) rotate(12deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.38) rotate(28deg);
  }
}

@keyframes pvp-battle-heal-feedback {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.4rem) scale(0.78);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -0.16rem) scale(1.12);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -1rem) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -2.05rem) scale(0.96);
  }
}

@keyframes pvp-battle-buff-feedback {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.38rem) scale(0.72);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -0.04rem) scale(1.12);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -0.72rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -1.7rem) scale(1.08);
  }
}

@keyframes pvp-battle-energy-cost-preview {
  0%,
  100% {
    opacity: 0.38;
    filter: brightness(0.95) saturate(1);
  }
  45% {
    opacity: 0.96;
    filter: brightness(1.24) saturate(1.18);
  }
}

.pvp-list-section {
  min-height: 15rem;
  border-radius: 0.56rem;
  padding: 0.62rem;
}

.pvp-section-title {
  margin-bottom: 0.46rem;
}

.pvp-target-list {
  display: grid;
  gap: 0.5rem;
}

.pvp-rankings-list {
  display: grid;
  gap: 0.48rem;
}

.pvp-target-card {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.56rem;
  min-height: 4.1rem;
  border-radius: 0.52rem;
  padding: 0.48rem;
}

.pvp-ranking-card {
  display: grid;
  grid-template-columns: 2.45rem 2.6rem minmax(0, 1fr) 3.3rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.1rem;
  border-radius: 0.52rem;
  padding: 0.48rem;
}

.pvp-ranking-card.is-viewer {
  border-color: rgba(255, 226, 160, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 160, 0.14);
}

.pvp-ranking-self {
  display: inline-grid;
  min-height: 1.05rem;
  place-items: center;
  border: 1px solid rgba(255, 226, 160, 0.72);
  border-radius: 999px;
  padding: 0 0.32rem;
  color: #ffe2a0;
  font-size: 0.56rem;
  font-weight: 950;
  vertical-align: middle;
}

.pvp-season-card {
  display: grid;
  gap: 0.12rem;
  border-radius: 0.52rem;
  padding: 0.62rem 0.72rem;
}

.pvp-season-card span {
  color: rgba(248, 218, 166, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pvp-season-card strong {
  color: #fff4d7;
  font-size: 0.82rem;
  font-weight: 950;
}

.pvp-rankings-mode-bar {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 0.52rem;
  padding: 0.32rem;
}

.pvp-rankings-mode-bar button,
.pvp-previous-season-header button,
.pvp-previous-season-card {
  appearance: none;
  border: 1px solid rgba(240, 184, 91, 0.45);
  border-radius: 0.44rem;
  background: rgba(31, 16, 10, 0.62);
  color: rgba(255, 236, 195, 0.84);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.pvp-rankings-mode-bar button {
  min-height: 2rem;
  padding: 0.36rem 0.42rem;
}

.pvp-rankings-mode-bar button.active {
  border-color: rgba(255, 226, 160, 0.9);
  background: linear-gradient(180deg, rgba(240, 184, 91, 0.28), rgba(160, 78, 34, 0.34));
  color: #fff4d7;
}

.pvp-previous-season-card {
  display: grid;
  gap: 0.16rem;
  padding: 0.62rem 0.72rem;
  text-align: left;
}

.pvp-previous-season-card span,
.pvp-previous-season-header strong {
  color: #fff4d7;
  font-size: 0.84rem;
  font-weight: 950;
}

.pvp-previous-season-card strong {
  color: #ffe2a0;
  font-size: 0.72rem;
}

.pvp-previous-season-card small,
.pvp-previous-season-header span {
  color: rgba(230, 197, 151, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
}

.pvp-previous-season-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.56rem;
  border-radius: 0.52rem;
  padding: 0.56rem;
}

.pvp-previous-season-header button {
  min-height: 2rem;
  padding: 0.34rem 0.52rem;
}

.pvp-previous-season-header div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.pvp-ranking-rank,
.pvp-ranking-rating {
  color: #ffe2a0;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.pvp-ranking-rating {
  color: #fff4d7;
}

.pvp-target-card.is-selected {
  border-color: rgba(255, 224, 160, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 160, 0.16),
    0 0 16px rgba(226, 112, 52, 0.22);
}

.pvp-target-avatar {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 184, 91, 0.62);
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 50% 10%, rgba(240, 184, 91, 0.12), transparent 60%),
    rgba(18, 10, 7, 0.92);
  color: #fff4d7;
  font-size: 1rem;
  font-weight: 900;
}

.pvp-target-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pvp-target-copy {
  min-width: 0;
}

.pvp-target-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #fff4d7;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.58);
}

.pvp-target-copy p {
  margin: 0.18rem 0 0;
}

.pvp-challenge-btn {
  min-width: 4.7rem;
  min-height: 2.1rem;
}

.pvp-empty-card {
  border-radius: 0.5rem;
  color: rgba(230, 197, 151, 0.94);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.84rem;
  text-align: center;
}

.cw-pvp-duel-banner {
  position: fixed;
  z-index: 240;
  top: max(0.45rem, env(safe-area-inset-top));
  left: 0.55rem;
  right: 0.55rem;
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.56rem;
  min-height: 4.7rem;
  border: 1px solid rgba(255, 203, 113, 0.82);
  border-radius: 0.68rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 231, 177, 0.16), transparent 52%),
    linear-gradient(135deg, rgba(67, 33, 20, 0.98), rgba(19, 10, 7, 0.98));
  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(240, 184, 91, 0.2),
    inset 0 1px 0 rgba(255, 232, 170, 0.14);
  padding: 0.56rem;
}

.cw-pvp-duel-banner[hidden] {
  display: none;
}

.cw-pvp-duel-banner-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(240, 184, 91, 0.68);
  border-radius: 0.52rem;
  background: rgba(17, 9, 6, 0.86);
}

.cw-pvp-duel-banner-icon img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.cw-pvp-duel-banner-copy {
  min-width: 0;
}

.cw-pvp-duel-banner-title,
.cw-pvp-duel-banner-meta,
.cw-pvp-duel-banner-timer {
  margin: 0;
}

.cw-pvp-duel-banner-title {
  color: #fff4d7;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.62);
}

.cw-pvp-duel-banner-meta {
  margin-top: 0.2rem;
  color: rgba(230, 197, 151, 0.96);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.cw-pvp-duel-banner-timer {
  margin-top: 0.18rem;
  color: #ffe2a0;
  font-size: 0.76rem;
  font-weight: 900;
}

.cw-pvp-duel-banner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(4.15rem, 1fr));
  gap: 0.34rem;
}

.cw-pvp-duel-banner-accept,
.cw-pvp-duel-banner-decline {
  min-height: 2.2rem;
  padding: 0 0.36rem;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
}

.cw-pvp-duel-banner-decline {
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 231, 177, 0.12), transparent 58%),
    linear-gradient(180deg, #6e3b26, #30170f);
}

/* Final override: keep dust upgrade in the PVP battle UI language. */
.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-stage {
  background:
    linear-gradient(180deg, rgba(41, 201, 203, 0.92) 0 20%, transparent 20%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, rgba(219, 244, 138, 0.98), rgba(103, 184, 67, 0.98));
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-content {
  gap: 0.26rem;
  padding: 0.28rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-row,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-panel-wrap {
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background: #f5f0dd;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-row {
  gap: 0.22rem;
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab {
  min-height: 1.58rem;
  border: 2px solid #6d5a37;
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  color: #fffbe7;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.48);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab.active {
  border-color: #fff4a6;
  background: linear-gradient(180deg, #ffe299, #c48729);
  color: #513616;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0.34rem rgba(255, 232, 96, 0.58);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-panel-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
  min-height: 0;
  padding: 0.28rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-panel.active {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(7.4rem, 1fr) auto auto;
  gap: 0.28rem;
  overflow: hidden;
  padding: 0;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-head {
  min-height: 3.1rem;
  border: 2px solid rgba(76, 82, 88, 0.92);
  border-radius: 0.34rem 0.34rem 0.78rem 0.34rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  box-shadow:
    0 0.18rem 0 rgba(94, 100, 104, 0.78),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  padding: 0.36rem 0.5rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-title-wrap {
  grid-template-columns: 2.32rem minmax(0, 1fr);
  gap: 0.36rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-title-icon,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-card {
  border: 2px solid #6d5a37;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-title-icon {
  width: 2.32rem;
  height: 2.32rem;
  border-radius: 0.42rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-title-icon img {
  width: 1.62rem;
  height: 1.62rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-head .crafting-panel-title {
  color: #37404a;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-head .crafting-panel-subtitle {
  color: #59616c;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.1;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-balance,
.crafting-live-root[data-crafting-tab="dust-upgrade"] #dustUpgradeCostValue,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost {
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-balance {
  min-width: 4.5rem;
  min-height: 2.1rem;
  border-width: 2px;
  border-color: #6d5a37;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-balance span {
  color: #6c4618;
  font-size: 0.46rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-balance strong {
  color: #2f4320;
  font-size: 0.86rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 1fr);
  min-height: 7.4rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(84, 177, 79, 0.52) 0 34%, rgba(52, 122, 56, 0.36) 35% 56%, transparent 57%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 3px, transparent 3px 12px),
    linear-gradient(180deg, rgba(213, 242, 133, 0.98), rgba(103, 184, 67, 0.96));
  padding: 0.38rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.66rem;
  width: 11.8rem;
  height: 2.45rem;
  border: 2px solid rgba(63, 118, 45, 0.42);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #92df78 0 36%, #54b14f 37% 65%, #347a38 66% 100%);
  box-shadow: inset 0 -0.28rem 0 rgba(33, 104, 44, 0.22);
  transform: translateX(-50%);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-bridge {
  position: relative;
  z-index: 1;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node {
  min-height: 6.2rem;
  border: 2px solid #6d5a37;
  border-radius: 0.44rem;
  background: linear-gradient(180deg, #fff8dc, #d9c380);
  color: #4b3921;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node.result {
  border-color: color-mix(in srgb, var(--active-rarity-color, #f0c56f) 70%, #6d5a37);
  box-shadow:
    0 0 0.52rem color-mix(in srgb, var(--active-rarity-color, #f0c56f) 34%, transparent),
    0 0.18rem 0 rgba(76, 59, 25, 0.46);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-node-label {
  color: #6c4618;
  font-size: 0.5rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-node-icon {
  width: 2.55rem;
  height: 2.55rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node strong {
  color: #2f4320;
  font-size: 0.92rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] #dustUpgradeCostValue {
  min-width: 2.55rem;
  min-height: 1.28rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-arrow {
  color: #3e260b;
  font-size: 1rem;
  font-weight: 900;
  text-shadow:
    0 2px 0 rgba(79, 23, 12, 0.9),
    0 0 0.42rem rgba(255, 208, 66, 0.72);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-card {
  min-height: 3.38rem;
  grid-template-columns: 1.26rem minmax(0, 1fr) minmax(1.72rem, auto);
  grid-template-areas:
    "name name name"
    "icon cost count";
  align-items: center;
  justify-items: stretch;
  gap: 0.12rem 0.2rem;
  border-radius: 0.42rem;
  color: #fffbe7;
  padding: 0.24rem 0.24rem 0.22rem;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-card.active {
  border-color: color-mix(in srgb, var(--rarity-color, #fff4a6) 62%, #fff4a6);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #fff4a6) 30%, transparent), transparent 58%),
    linear-gradient(180deg, #ffe299, #c48729);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-icon {
  grid-area: icon;
  width: 1.22rem;
  height: 1.22rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-name {
  grid-area: name;
  min-width: 0;
  align-self: end;
  justify-self: center;
  color: #3a240b;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-count {
  grid-area: count;
  min-width: 1.72rem;
  min-height: 1.12rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  font-size: 0.58rem;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-rarity-cost {
  grid-area: cost;
  min-width: 1.72rem;
  width: 100%;
  min-height: 0.88rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #e8f7d5, #92b758);
  color: #31401c;
  font-size: 0.46rem;
  font-weight: 900;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-action-row {
  gap: 0.28rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-btn {
  grid-template-rows: auto minmax(1.34rem, auto);
  align-content: center;
  justify-items: center;
  gap: 0.18rem;
  min-height: 3.72rem;
  padding: 0.3rem 0.28rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.68rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.16rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-btn > span:first-child {
  color: #3a240b;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost strong,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost .dust-action-arrow {
  color: #3e260b;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-single-btn {
  background: linear-gradient(180deg, #f0c56f, #a87523);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost {
  min-height: 1.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: min(6.6rem, 92%);
  padding: 0.08rem 0.22rem;
  font-size: 0.56rem;
  line-height: 1;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost .dust-action-icon {
  width: 1.02rem;
  height: 1.02rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-main-cost .dust-action-arrow {
  font-size: 0.68rem;
}

/* Final override: bring disenchanting into the same chunky crafting UI. */
.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-stage {
  background:
    linear-gradient(180deg, rgba(41, 201, 203, 0.92) 0 20%, transparent 20%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, rgba(219, 244, 138, 0.98), rgba(103, 184, 67, 0.98));
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-content {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.26rem;
  padding: 0.28rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-row,
.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-panel-wrap {
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background: #f5f0dd;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-row {
  gap: 0.22rem;
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab {
  min-height: 1.58rem;
  border: 2px solid #6d5a37;
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  color: #3e260b;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab.active {
  border-color: #fff4a6;
  background: linear-gradient(180deg, #ffe299, #c48729);
  color: #513616;
  box-shadow: 0 0 0.34rem rgba(255, 232, 96, 0.58);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-panel-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
  min-height: 0;
  padding: 0.28rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-panel.active {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(5.6rem, 0.84fr) minmax(0, 1fr) minmax(3.36rem, auto);
  gap: 0.28rem;
  overflow: hidden;
  padding: 0;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-head {
  min-height: 3.1rem;
  border: 2px solid rgba(76, 82, 88, 0.92);
  border-radius: 0.34rem 0.34rem 0.78rem 0.34rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  box-shadow:
    0 0.18rem 0 rgba(94, 100, 104, 0.78),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  padding: 0.36rem 0.5rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-title-wrap {
  grid-template-columns: 2.32rem minmax(0, 1fr);
  gap: 0.36rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-title-icon {
  width: 2.32rem;
  height: 2.32rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-title-icon img {
  width: 1.62rem;
  height: 1.62rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-head .crafting-panel-title {
  color: #37404a;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-head .crafting-panel-subtitle {
  color: #59616c;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.1;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-count-pill {
  min-width: 4.5rem;
  min-height: 2.1rem;
  border: 2px solid #6d5a37;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-count-pill span {
  color: #6c4618;
  font-size: 0.46rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-count-pill strong {
  color: #2f4320;
  font-size: 0.86rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(5.6rem, 0.72fr);
  min-height: 5.6rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(ellipse at 42% 62%, rgba(151, 63, 41, 0.28) 0 28%, rgba(95, 45, 31, 0.22) 29% 52%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.11) 0 3px, transparent 3px 12px),
    linear-gradient(180deg, #d7ed8b, #73bd50);
  padding: 0.38rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview::before {
  content: "";
  position: absolute;
  left: 35%;
  bottom: 0.36rem;
  width: 9.3rem;
  height: 1.78rem;
  border: 2px solid rgba(103, 54, 35, 0.32);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, #b77956 0 26%, #8e5439 27% 58%, #633421 59% 100%);
  box-shadow: inset 0 -0.18rem 0 rgba(71, 34, 22, 0.22);
  transform: translateX(-50%);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 19% 24%, rgba(255, 244, 166, 0.74) 0 1px, transparent 2px),
    radial-gradient(circle at 47% 19%, rgba(255, 198, 106, 0.66) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(255, 244, 166, 0.58) 0 1px, transparent 2px);
  opacity: 0.42;
  pointer-events: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-slot,
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack {
  position: relative;
  z-index: 1;
  border: 2px solid #6d5a37;
  border-radius: 0.44rem;
  background: linear-gradient(180deg, #fff8dc, #d9c380);
  color: #4b3921;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-slot {
  min-height: 4.62rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.22rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-glow {
  width: 2.92rem;
  height: 2.92rem;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--active-rarity-color, #f0c56f) 68%, #6d5a37);
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #f0c56f) 22%, transparent), transparent 60%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0 0.42rem color-mix(in srgb, var(--active-rarity-color, #f0c56f) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview-dust-icon {
  width: 2rem;
  height: 2rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-slot span:last-child {
  color: #3a240b;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack {
  display: grid;
  align-content: center;
  gap: 0.12rem;
  min-height: 4.62rem;
  padding: 0.32rem;
  text-align: center;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack span {
  color: #6c4618;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack strong {
  color: #2f4320;
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 0.22rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-card {
  min-height: 3.28rem;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  grid-template-areas:
    "name name"
    "icon count"
    "icon yield";
  align-items: center;
  justify-items: stretch;
  gap: 0.08rem 0.18rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #fff4a6) 22%, transparent), transparent 58%),
    linear-gradient(180deg, #f0c56f, #a87523);
  color: #3e260b;
  padding: 0.18rem 0.2rem;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-card.active {
  border-color: color-mix(in srgb, var(--rarity-color, #fff4a6) 62%, #fff4a6);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #fff4a6) 30%, transparent), transparent 58%),
    linear-gradient(180deg, #ffe299, #c48729);
  box-shadow:
    0 0.16rem 0 rgba(76, 59, 25, 0.5),
    0 0 0.42rem color-mix(in srgb, var(--rarity-color, #fff4a6) 34%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-name {
  grid-area: name;
  min-width: 0;
  color: #3a240b;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-icon {
  grid-area: icon;
  width: 1.18rem;
  height: 1.18rem;
  align-self: center;
  justify-self: center;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-count,
.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-yield {
  min-height: 0.82rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-count {
  grid-area: count;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  font-size: 0.52rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-rarity-yield {
  grid-area: yield;
  background: linear-gradient(180deg, #f6d9cc, #c56b4f);
  color: #4b2118;
  font-size: 0.42rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-main-btn {
  min-height: 3.36rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.28rem;
  border: 2px solid #6d382c;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-size: 0.68rem;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.16rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-main-count {
  min-height: 1.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 4.8rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #4b2118;
  padding: 0.08rem 0.32rem;
  font-size: 0.56rem;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-main-count strong {
  color: #3e260b;
}

/* Final override: random craft uses the same chunky crafting language. */
.crafting-live-root[data-crafting-tab="random-craft"] .crafting-stage {
  background:
    linear-gradient(180deg, rgba(41, 201, 203, 0.92) 0 20%, transparent 20%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, rgba(219, 244, 138, 0.98), rgba(103, 184, 67, 0.98));
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-content {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.26rem;
  padding: 0.28rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-row,
.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-panel-wrap {
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background: #f5f0dd;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-row {
  gap: 0.22rem;
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab {
  min-height: 1.58rem;
  border: 2px solid #6d5a37;
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  color: #3e260b;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab.active {
  border-color: #fff4a6;
  background: linear-gradient(180deg, #ffe299, #c48729);
  color: #513616;
  box-shadow: 0 0 0.34rem rgba(255, 232, 96, 0.58);
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-panel-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
  min-height: 0;
  padding: 0.28rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-panel.active {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(7.05rem, 1fr) auto minmax(3.28rem, auto);
  gap: 0.24rem;
  overflow: hidden;
  padding: 0;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-head {
  min-height: 3.1rem;
  border: 2px solid rgba(76, 82, 88, 0.92);
  border-radius: 0.34rem 0.34rem 0.78rem 0.34rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  box-shadow:
    0 0.18rem 0 rgba(94, 100, 104, 0.78),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  padding: 0.36rem 0.5rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-title-wrap {
  grid-template-columns: 2.32rem minmax(0, 1fr);
  gap: 0.36rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-title-icon {
  width: 2.32rem;
  height: 2.32rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f0c56f, #a87523);
  color: #3e260b;
  font-size: 1.12rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-head .crafting-panel-title {
  color: #37404a;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-head .crafting-panel-subtitle {
  color: #59616c;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow:
    0 1px 0 rgba(255, 247, 202, 0.78),
    0 0 0.08rem rgba(255, 247, 202, 0.72);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-balance {
  min-width: 4.5rem;
  min-height: 2.1rem;
  grid-template-columns: 1.22rem auto;
  border: 2px solid #6d5a37;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #2f4320;
  font-size: 0.82rem;
  font-weight: 900;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.06rem rgba(45, 30, 12, 0.82);
  text-shadow:
    0 1px 0 rgba(45, 30, 12, 0.95),
    0 0 0.18rem rgba(45, 30, 12, 0.72),
    0 0 0.3rem rgba(255, 247, 202, 0.38);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-balance .dust-action-icon {
  width: 1.12rem;
  height: 1.12rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-preview {
  position: relative;
  min-height: 7.05rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(84, 177, 79, 0.52) 0 31%, rgba(52, 122, 56, 0.34) 32% 54%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 3px, transparent 3px 12px),
    linear-gradient(180deg, rgba(213, 242, 133, 0.98), rgba(103, 184, 67, 0.96));
  padding: 0.38rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 12.8rem;
  height: 2.44rem;
  border: 2px solid rgba(63, 118, 45, 0.42);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #92df78 0 36%, #54b14f 37% 65%, #347a38 66% 100%);
  box-shadow: inset 0 -0.24rem 0 rgba(33, 104, 44, 0.22);
  transform: translate(-50%, -50%);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 244, 166, 0.74) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(255, 198, 106, 0.66) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 18%, rgba(255, 244, 166, 0.58) 0 1px, transparent 2px);
  opacity: 0.48;
  pointer-events: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-mystery,
.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-result-slot {
  position: relative;
  z-index: 2;
  width: 4.42rem;
  height: 4.42rem;
  border: 2px solid color-mix(in srgb, var(--active-rarity-color, #f0c56f) 68%, #6d5a37);
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #f0c56f) 22%, transparent), transparent 60%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.46),
    0 0 0.42rem color-mix(in srgb, var(--active-rarity-color, #f0c56f) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-mystery span {
  color: #3e260b;
  font-size: 2.24rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-result-icon {
  width: 2.7rem;
  height: 2.7rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-result-name {
  color: #3a240b;
  width: 100%;
  font-size: 0.48rem;
  line-height: 1.08;
  overflow: hidden;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  text-overflow: ellipsis;
  white-space: normal;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-reward-label {
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.38rem;
  min-height: 1.24rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  font-size: 0.44rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-section-label {
  display: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-card {
  min-height: 3.12rem;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  grid-template-areas:
    "name name"
    "icon cost";
  align-items: center;
  justify-items: stretch;
  gap: 0.1rem 0.18rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #fff4a6) 22%, transparent), transparent 58%),
    linear-gradient(180deg, #f0c56f, #a87523);
  color: #3e260b;
  padding: 0.2rem;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-card.active {
  border-color: color-mix(in srgb, var(--rarity-color, #fff4a6) 62%, #fff4a6);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #fff4a6) 30%, transparent), transparent 58%),
    linear-gradient(180deg, #ffe299, #c48729);
  box-shadow:
    0 0.16rem 0 rgba(76, 59, 25, 0.5),
    0 0 0.42rem color-mix(in srgb, var(--rarity-color, #fff4a6) 34%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-name {
  grid-area: name;
  min-width: 0;
  color: #3a240b;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-icon {
  grid-area: icon;
  width: 1.18rem;
  height: 1.18rem;
  align-self: center;
  justify-self: center;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-rarity-cost {
  grid-area: cost;
  min-height: 0.96rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-cost-row {
  display: none;
  min-height: 2.1rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #fff8dc, #d9c380);
  color: #4b3921;
  padding: 0.24rem 0.42rem;
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-cost-row span {
  color: #6c4618;
  font-size: 0.46rem;
  font-weight: 900;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-cost-row strong {
  color: #3e260b !important;
  font-size: 0.62rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-cost {
  min-width: 3.6rem;
  min-height: 1.34rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115 !important;
  text-shadow: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn {
  min-height: 3.28rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.28rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.28), transparent 58%),
    linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.68rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.16rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-cost {
  min-height: 1.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #614115;
  padding: 0.08rem 0.32rem;
  font-size: 0.56rem;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="random-craft"] .random-craft-main-btn:disabled {
  border-color: rgba(109, 90, 55, 0.52);
  background: linear-gradient(180deg, rgba(184, 147, 80, 0.72), rgba(123, 89, 40, 0.78));
  color: rgba(62, 38, 11, 0.58);
  box-shadow: none;
}

/* Final override: crafted item inspect dialog in the new crafting style. */
.crafting-live-root .craft-reveal.is-dialog {
  z-index: 1080;
  padding: 0.72rem;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--craft-rarity-color, #f0c56f) 18%, transparent), transparent 38%),
    rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.crafting-live-root .craft-reveal.is-dialog .craft-reveal-item {
  width: min(94%, 286px);
}

.crafting-live-root .craft-reveal.is-dialog .crafted-item-inspect-card {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta"
    "rarity rarity"
    "slot slot"
    "primary primary"
    "stats stats"
    "set set";
  gap: 0.12rem 0.52rem;
  width: 100%;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 18%, transparent), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.58rem 0.58rem 0.62rem;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 24%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-close {
  right: 0.42rem;
  top: 0.42rem;
  width: 1.82rem;
  height: 1.82rem;
  min-height: 1.82rem;
  border: 2px solid #6d382c;
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.1rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.crafting-live-root .craft-reveal.is-dialog .crafted-item-inspect-icon-wrap {
  grid-area: icon;
  width: 4rem;
  height: 4rem;
  margin: 0;
  border: 2px solid color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 72%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 28%, transparent), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    0 0 0.48rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 30%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.crafting-live-root .craft-reveal.is-dialog .crafted-item-inspect-icon {
  width: 3.26rem;
  height: 3.26rem;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-title {
  grid-area: title;
  align-self: end;
  margin: 0;
  padding-right: 2.1rem;
  color: #26333b !important;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-subtitle {
  grid-area: meta;
  margin: 0;
  color: #6c4618;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-rarity {
  grid-area: rarity;
  justify-self: start;
  margin: 0.16rem 0 0;
  min-height: 1.1rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 22%, transparent), transparent 56%),
    linear-gradient(180deg, #fff0b4, #d49c36);
  color: #3e260b !important;
  padding: 0.1rem 0.54rem;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  text-transform: uppercase;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-slot {
  grid-area: slot;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin: 0.12rem 0 0;
  color: #4b3921;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-slot span {
  min-height: 1.02rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(72, 50, 22, 0.58);
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.52);
  padding: 0.1rem 0.42rem;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-primary {
  grid-area: primary;
  margin: 0.18rem 0 0;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #e8f7d5, #92b758);
  color: #31401c;
  padding: 0.22rem 0.34rem;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: none;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
  margin: 0.24rem 0 0;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-stat {
  min-height: 1.34rem;
  display: flex;
  align-items: center;
  gap: 0.14rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 0.34rem;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #2f4320;
  padding: 0.16rem 0.26rem;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.04;
  text-shadow: none;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-stat strong {
  color: #1d6b1b;
  font-size: 0.58rem;
  font-weight: 900;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-stat span {
  color: #3e260b;
  min-width: 0;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-set {
  grid-area: set;
  margin-top: 0.24rem;
  border: 1px solid rgba(72, 50, 22, 0.72);
  border-radius: 0.36rem;
  background: rgba(255, 248, 220, 0.5);
  color: #4b3921;
  padding: 0.28rem 0.34rem;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.14;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-set strong {
  color: #3e260b;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span {
  color: #4b3921;
}

.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-active {
  color: #1d6b1b;
}

/* Final override: confirmation dialogs in the new crafting style. */
.crafting-live-root .crafting-confirm-backdrop {
  z-index: 1090;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #f0c56f) 16%, transparent), transparent 42%),
    rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.crafting-live-root .crafting-confirm-dialog {
  width: min(100%, 304px);
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--active-rarity-color, #f0c56f) 16%, transparent), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.58rem;
  gap: 0.36rem;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem color-mix(in srgb, var(--active-rarity-color, #f0c56f) 22%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.crafting-live-root .crafting-confirm-dialog h3 {
  color: #26333b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.crafting-live-root .crafting-confirm-dialog p {
  color: #6c4618;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.14;
}

.crafting-live-root .crafting-confirm-summary {
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f7f7ef, #d8ddd8);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem;
  padding: 0.34rem;
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.crafting-live-root .crafting-confirm-summary div {
  min-height: 2.05rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.12rem;
  border: 1px solid rgba(72, 50, 22, 0.58);
  border-radius: 0.34rem;
  background: rgba(255, 248, 220, 0.54);
  padding: 0.16rem 0.12rem;
}

.crafting-live-root .crafting-confirm-summary span {
  color: #6c4618;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.crafting-live-root .crafting-confirm-summary strong {
  color: #2f4320;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: none;
}

.crafting-live-root .crafting-confirm-actions {
  gap: 0.28rem;
}

.crafting-live-root .crafting-confirm-actions .dust-action {
  min-height: 2.78rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.24), transparent 58%),
    linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.62rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.14rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.crafting-live-root .crafting-confirm-actions .dust-action.danger {
  border-color: #6d382c;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Final inventory page polish: shared field UI with parchment inventory panels. */
.inventory-live-root .inventory-stage {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%);
}

.inventory-live-root .inventory-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 42% 24%, rgba(55, 122, 52, 0.42) 0 13%, transparent 14%),
    radial-gradient(ellipse at 60% 26%, rgba(121, 229, 93, 0.62) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 40%, rgba(65, 142, 57, 0.24) 0 22%, transparent 23%);
  opacity: 0.56;
}

.inventory-live-root .inventory-content {
  --inventory-compare-inspect-space: 9.7rem;
  --inventory-slot-size: 4rem;
  --inventory-slot-gap: 0.34rem;
  inset: 0.34rem 0.34rem 72px;
  z-index: 12;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.28rem;
  padding: 0;
  overflow: hidden;
}

.inventory-live-root .inventory-content.has-inspect {
  grid-template-rows: minmax(0, 1fr) auto var(--inventory-compare-inspect-space);
}

.inventory-live-root .inventory-grid-scroller,
.inventory-live-root .inventory-inspect,
.inventory-live-root .inventory-compare-panel {
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.inventory-live-root .inventory-grid-scroller {
  min-height: 0;
  display: grid;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.46rem 0.58rem 0.46rem 0.46rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  background-clip: padding-box;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #8e5f21 #eadfb8;
}

.inventory-live-root .inventory-grid-scroller::-webkit-scrollbar {
  width: 0.46rem;
}

.inventory-live-root .inventory-grid-scroller::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f1d8, #e0cf97);
}

.inventory-live-root .inventory-grid-scroller::-webkit-scrollbar-thumb {
  border: 1px solid rgba(83, 58, 24, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #c98b2e, #7f5520);
}

.inventory-live-root .inventory-grid {
  width: calc(100% - 0.24rem);
  min-height: 0;
  display: grid;
  justify-self: center;
  grid-template-columns: repeat(auto-fill, minmax(var(--inventory-slot-size), 1fr));
  grid-auto-rows: auto;
  justify-content: center;
  align-content: start;
  gap: var(--inventory-slot-gap);
  overflow: visible;
}

.inventory-live-root .inventory-slot {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--inventory-rarity-color, #6d5a37) 58%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 64%, transparent) 0 31%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 24%, transparent) 54%, transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 24%, #fff1bd), color-mix(in srgb, var(--inventory-rarity-color, #d1a145) 20%, #c89334));
  padding: 0.16rem;
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    0 0 0.42rem color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 34%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 -0.62rem 1rem color-mix(in srgb, var(--inventory-rarity-color, #d1a145) 18%, transparent);
}

.inventory-live-root .inventory-slot.has-item {
  border-color: color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 72%, #6d5a37);
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 76%, transparent) 0 32%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 34%, transparent) 56%, transparent 80%),
    linear-gradient(180deg, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 34%, #fff1bd), color-mix(in srgb, var(--inventory-rarity-color, #d1a145) 30%, #c89334));
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.46),
    0 0 0.56rem color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 44%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    inset 0 -0.68rem 1.05rem color-mix(in srgb, var(--inventory-rarity-color, #d1a145) 24%, transparent);
}

.inventory-live-root .inventory-slot.active {
  outline: 2px solid #fff0a1;
  outline-offset: -0.08rem;
  border-color: color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 76%, #fff0a1);
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 84%, transparent) 0 34%, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 42%, transparent) 58%, transparent 82%),
    linear-gradient(180deg, color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 42%, #ffe299), color-mix(in srgb, var(--inventory-rarity-color, #c48729) 34%, #c48729));
  box-shadow:
    0 0.14rem 0 rgba(76, 59, 25, 0.5),
    0 0 0.68rem color-mix(in srgb, var(--inventory-rarity-color, #fff4a6) 54%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -0.72rem 1.1rem color-mix(in srgb, var(--inventory-rarity-color, #d1a145) 28%, transparent);
}

.inventory-live-root .inventory-slot.active::before {
  content: "";
  position: absolute;
  inset: -0.12rem;
  z-index: 1;
  border: 2px solid #fff4a8;
  border-radius: 0.52rem;
  pointer-events: none;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(76, 48, 18, 0.72),
    0 0 0.42rem rgba(255, 230, 127, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.inventory-live-root .inventory-slot.active img {
  position: relative;
  z-index: 2;
}

.inventory-live-root .inventory-slot.active .inventory-slot-count {
  position: absolute;
  right: 0.16rem;
  bottom: 0.16rem;
  z-index: 3;
}

@keyframes inventory-slot-border-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inventory-live-root .inventory-slot.active::before {
    animation: none;
  }
}

.inventory-live-root .inventory-slot.is-empty {
  border-color: rgba(109, 90, 55, 0.48);
  background: linear-gradient(180deg, rgba(226, 202, 139, 0.34), rgba(167, 127, 54, 0.34));
  opacity: 0.48;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inventory-live-root .inventory-slot img {
  width: 88%;
  height: 88%;
  display: block;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.inventory-live-root .inventory-slot-count {
  right: 0.16rem;
  bottom: 0.16rem;
  min-width: 1.06rem;
  height: 1.06rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #3e260b;
  font-size: 0.52rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.inventory-live-root .inventory-pager {
  display: none;
  grid-template-columns: 4.1rem minmax(0, 1fr) 4.1rem;
  align-items: center;
  gap: 0.22rem;
  min-height: 2.32rem;
  padding: 0.2rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(180deg, #f7f1d8, #d9c380);
  box-shadow:
    0 0.14rem 0 rgba(76, 59, 25, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.inventory-live-root .inventory-page-btn,
.inventory-live-root .inventory-filter-btn,
.inventory-live-root .inventory-action-btn,
.inventory-live-root .inventory-compare-btn,
.inventory-live-root .inventory-compare-head button,
.inventory-live-root .inventory-compare-slot-chooser button {
  border: 2px solid #8d6b2a;
  border-radius: 0.36rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 177, 0.32), transparent 58%),
    linear-gradient(180deg, #f0bd4d, #af7620);
  color: #3c2810;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 238, 177, 0.72);
  box-shadow:
    0 0.1rem 0 rgba(91, 62, 20, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.inventory-live-root .inventory-page-btn {
  min-height: 1.78rem;
  height: auto;
  padding: 0 0.22rem;
  font-size: 0.5rem;
}

.inventory-live-root .inventory-page-label {
  margin: 0;
  color: #3e260b;
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.inventory-live-root .inventory-page-btn:disabled,
.inventory-live-root .inventory-filter-btn:disabled,
.inventory-live-root .inventory-action-btn:disabled {
  opacity: 0.52;
  filter: grayscale(0.35);
  box-shadow: none;
}

.inventory-live-root .inventory-filter-row {
  min-height: 2.58rem;
  display: grid;
}

.inventory-live-root .inventory-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.18rem;
  padding: 0.2rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(180deg, #f7f1d8, #d9c380);
  box-shadow:
    0 0.14rem 0 rgba(76, 59, 25, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.inventory-live-root .inventory-filter-btn {
  min-height: 1.88rem;
  height: auto;
  min-width: 0;
  padding: 0 0.08rem;
  font-size: 0.46rem;
  line-height: 1;
}

.inventory-live-root .inventory-filter-btn.active,
.inventory-live-root .inventory-compare-btn.active,
.inventory-live-root .inventory-compare-slot-chooser button.active {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 248, 195, 0.42), transparent 62%),
    linear-gradient(180deg, #ffd464, #c17b22);
  color: #34250d;
  box-shadow:
    0 0.12rem 0 rgba(91, 62, 20, 0.68),
    0 0 0.5rem rgba(255, 213, 80, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.inventory-live-root .inventory-inspect {
  position: relative;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.52rem 2.42rem 0.52rem 0.52rem;
  overflow-y: auto;
  color: #3e260b;
}

.inventory-live-root .inventory-inspect-close-btn {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  min-height: 1.7rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #6d382c;
  border-radius: 0.34rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.12rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inventory-live-root .inventory-inspect-close-btn:active {
  transform: translateY(0.08rem);
  box-shadow:
    0 0.04rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inventory-live-root .inventory-inspect-icon-wrap,
.inventory-live-root .inventory-compare-item-icon {
  border: 2px solid color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 72%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 28%, transparent), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    0 0 0.42rem color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.inventory-live-root .inventory-inspect-icon-wrap {
  width: 3.72rem;
  height: 3.72rem;
}

.inventory-live-root .inventory-inspect-icon {
  width: 3.12rem;
  height: 3.12rem;
}

.inventory-live-root .inventory-inspect-name {
  margin: 0;
  color: #26333b !important;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.inventory-live-root .inventory-inspect[data-rarity] .inventory-inspect-name,
.inventory-live-root .inventory-inspect-meta .is-rarity {
  color: color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 62%, #26333b) !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.035rem rgba(45, 30, 12, 0.38);
}

.inventory-live-root .inventory-inspect-meta {
  margin: 0.14rem 0 0;
  color: #6c4618;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  gap: 0.18rem;
  text-transform: uppercase;
}

.inventory-live-root .inventory-inspect-meta-separator {
  color: rgba(108, 70, 24, 0.62);
}

.inventory-live-root .inventory-inspect-stats {
  gap: 0.16rem;
  margin-top: 0.22rem;
}

.inventory-live-root .inventory-inspect-stat {
  min-height: 1.24rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem;
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.3rem;
  background: rgba(255, 248, 220, 0.48);
  padding: 0.14rem 0.2rem;
  font-size: 0.5rem;
  font-weight: 900;
}

.inventory-live-root .inventory-inspect-stat span {
  color: #6c4618;
}

.inventory-live-root .inventory-inspect-stat strong {
  color: #2f4320;
  font-size: 0.52rem;
}

.inventory-live-root .inventory-inspect-description {
  color: #4b3921;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.inventory-live-root .inventory-inspect-set {
  color: #4b3921;
}

.inventory-live-root .inventory-inspect-set strong {
  color: #26333b;
}

.inventory-live-root .inventory-inspect-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.24rem;
  margin-top: 0.34rem;
}

.inventory-live-root .inventory-inspect-actions .inventory-compare-btn,
.inventory-live-root .inventory-inspect-actions .inventory-action-btn {
  grid-column: span 2;
  min-height: 2.34rem;
  border-radius: 0.42rem;
  font-size: 0.52rem;
  line-height: 1;
  padding: 0 0.18rem;
  white-space: normal;
}

.inventory-live-root .inventory-inspect-actions #inspectDisenchantBtn {
  grid-column: span 3;
}

.inventory-live-root .inventory-action-btn.danger,
.inventory-live-root .inventory-action-btn.secondary#inspectDisenchantBtn {
  border-color: #6d382c;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
}

.inventory-live-root .inventory-compare-panel {
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--inventory-compare-inspect-space) + 0.4rem);
  z-index: 1010;
  padding: 0.46rem;
}

.inventory-live-root .inventory-compare-head p,
.inventory-live-root .inventory-compare-slot,
.inventory-live-root .inventory-compare-empty {
  color: #3e260b;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.inventory-live-root .inventory-compare-head button {
  width: 1.8rem;
  height: 1.8rem;
  min-height: 1.8rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: #6d382c;
  background: linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-size: 0.76rem;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
}

.inventory-live-root .inventory-compare-item,
.inventory-live-root .inventory-compare-stat {
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.34rem;
  background: rgba(255, 248, 220, 0.48);
}

.inventory-live-root .inventory-compare-item p,
.inventory-live-root .inventory-compare-item span,
.inventory-live-root .inventory-compare-stat span {
  color: #6c4618;
}

.inventory-live-root .inventory-compare-item strong,
.inventory-live-root .inventory-compare-stat strong {
  color: #26333b;
  text-shadow: none;
}

/* Final inventory confirm polish: match the parchment crafting dialogs. */
.inventory-confirm-modal {
  z-index: 1090;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 16%, transparent), transparent 42%),
    rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.inventory-confirm-card {
  width: min(100%, 304px);
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 16%, transparent), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.58rem;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 22%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.inventory-confirm-title {
  margin: 0;
  color: #26333b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.inventory-confirm-text {
  margin: 0.18rem 0 0;
  color: #6c4618;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.14;
}

.inventory-confirm-reward {
  display: grid;
  grid-template-columns: 3.18rem minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-height: 3.7rem;
  margin-top: 0.48rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 22% 32%, color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 18%, transparent), transparent 58%),
    linear-gradient(180deg, #f7f7ef, #d8ddd8);
  padding: 0.34rem;
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.inventory-confirm-reward-icon-wrap {
  width: 2.72rem;
  height: 2.72rem;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 72%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 28%, transparent), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    0 0 0.42rem color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.inventory-confirm-reward-icon {
  width: 2.22rem;
  height: 2.22rem;
  object-fit: contain;
}

.inventory-confirm-reward-label {
  margin: 0;
  color: #6c4618;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.inventory-confirm-reward-text {
  margin: 0.08rem 0 0;
  color: #26333b;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.04;
  text-shadow: none;
}

.inventory-confirm-reward-balance {
  margin: 0.08rem 0 0;
  color: #2f4320;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.inventory-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  margin-top: 0.5rem;
}

.inventory-confirm-actions .inventory-action-btn {
  min-height: 2.28rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.24), transparent 58%),
    linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.14rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.inventory-confirm-actions .inventory-action-btn.secondary {
  border-color: #6d5a37;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.24), transparent 58%),
    linear-gradient(180deg, #f3c254, #aa741f);
  color: #3e260b;
}

.inventory-confirm-actions .inventory-action-btn.danger {
  border-color: #6d382c;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inventory-live-root .inventory-compare-stat.is-positive em {
  color: #2f7a21;
}

.inventory-live-root .inventory-compare-stat.is-negative em {
  color: #9a2f1f;
}

@media (max-width: 340px) {
  .inventory-live-root .inventory-content {
    --inventory-slot-size: 3.68rem;
    --inventory-slot-gap: 0.28rem;
    --inventory-compare-inspect-space: 9.5rem;
    inset: 0.28rem 0.28rem 72px;
    gap: 0.22rem;
  }

  .inventory-live-root .inventory-grid-scroller {
    padding: 0.36rem 0.48rem 0.36rem 0.36rem;
  }

  .inventory-live-root .inventory-filter-btn {
    font-size: 0.41rem;
  }

  .inventory-live-root .inventory-inspect {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.44rem 2.24rem 0.44rem 0.44rem;
  }
}

/* Final shop page polish: chunky fantasy market cards. */
.shop-live-root .shop-stage {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%);
}

.shop-live-root .shop-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 38% 22%, rgba(55, 122, 52, 0.42) 0 13%, transparent 14%),
    radial-gradient(ellipse at 60% 23%, rgba(121, 229, 93, 0.62) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 38%, rgba(65, 142, 57, 0.24) 0 22%, transparent 23%);
  opacity: 0.56;
}

.shop-live-root .shop-content {
  inset: 0.34rem 0.34rem 72px;
  z-index: 12;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.28rem;
  padding: 0;
  overflow: hidden;
}

.shop-live-root .shop-content .fight-header {
  display: none;
}

.shop-live-root .shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.18rem;
  min-height: 2.74rem;
  padding: 0.22rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(180deg, #f7f1d8, #d9c380);
  box-shadow:
    0 0.16rem 0 rgba(76, 59, 25, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.shop-live-root .shop-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
  min-height: 2.74rem;
  padding: 0.22rem;
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(180deg, #f7f1d8, #d9c380);
  box-shadow:
    0 0.16rem 0 rgba(76, 59, 25, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.shop-live-root .shop-mode-tabs[hidden],
.shop-live-root .shop-tabs[hidden] {
  display: none !important;
}

.shop-live-root .shop-tabs .fight-tab-btn,
.shop-live-root .shop-mode-tabs .fight-tab-btn {
  min-height: 2.16rem;
  height: auto;
  border: 2px solid #8d6b2a;
  border-radius: 0.36rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 177, 0.32), transparent 58%),
    linear-gradient(180deg, #f0bd4d, #af7620);
  color: #3c2810;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 0.1rem;
  text-shadow: 0 1px 0 rgba(255, 238, 177, 0.72);
  box-shadow:
    0 0.12rem 0 rgba(91, 62, 20, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.shop-live-root .shop-tabs .fight-tab-btn.active,
.shop-live-root .shop-mode-tabs .fight-tab-btn.active {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 248, 195, 0.42), transparent 62%),
    linear-gradient(180deg, #ffd464, #c17b22);
  color: #34250d;
  box-shadow:
    0 0.12rem 0 rgba(91, 62, 20, 0.68),
    0 0 0.5rem rgba(255, 213, 80, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.shop-live-root .shop-tabs .fight-tab-btn:disabled,
.shop-live-root .shop-mode-tabs .fight-tab-btn:disabled {
  opacity: 0.56;
  filter: grayscale(0.35);
}

.shop-live-root .shop-content .fight-group {
  min-height: 0;
  display: grid;
  padding: 0.3rem;
  overflow: hidden;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.shop-live-root .shop-entry-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 8.42rem;
  align-content: start;
  align-items: stretch;
  gap: 0.34rem 0.28rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 0.12rem 0.22rem 0;
  scrollbar-width: thin;
  scrollbar-color: #8e5f21 rgba(72, 93, 45, 0.22);
}

.shop-live-root .shop-entry {
  box-sizing: border-box;
  min-height: 8.42rem;
  height: 8.42rem;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0.72rem 0.32rem 0.26rem;
  border: 2px solid color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 28%, #8d6a35);
  border-radius: 0.56rem;
  background:
    radial-gradient(circle at 50% 13%, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 22%, transparent), transparent 42%),
    linear-gradient(90deg, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 20%, transparent), transparent 18%, transparent 82%, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 16%, transparent)),
    linear-gradient(180deg, rgba(255, 250, 218, 0.42), transparent 30%),
    linear-gradient(180deg, #efd07b 0%, #d89c3c 50%, #b57128 100%);
  color: #3e260b;
  box-shadow:
    0 0.14rem 0 rgba(85, 54, 18, 0.56),
    0 0 0.42rem color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 18%, transparent),
    inset 0 0 0 1px rgba(255, 246, 203, 0.44),
    inset 0 -0.8rem 1.2rem rgba(110, 62, 23, 0.16);
}

.shop-live-root .shop-entry::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  z-index: -1;
  border: 1px solid rgba(255, 215, 146, 0.16);
  border-radius: 0.42rem;
  pointer-events: none;
}

.shop-live-root .shop-entry::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  top: 0.48rem;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 82%, #ffffff), transparent);
  box-shadow: 0 0 0.36rem color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 48%, transparent);
  pointer-events: none;
}

.shop-live-root .shop-entry.active {
  border-color: color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 62%, #fff0a1);
  background:
    radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 34%, transparent), transparent 48%),
    linear-gradient(90deg, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 26%, transparent), transparent 20%, transparent 80%, color-mix(in srgb, var(--shop-rarity-color, #fff4a6) 22%, transparent)),
    linear-gradient(180deg, rgba(255, 250, 218, 0.5), transparent 32%),
    linear-gradient(180deg, #ffde86 0%, #e4a646 50%, #bf782b 100%);
  box-shadow:
    0 0.14rem 0 rgba(94, 58, 15, 0.64),
    0 0 0.68rem color-mix(in srgb, var(--shop-rarity-color, #ffd448) 34%, transparent),
    inset 0 0 0 1px rgba(255, 248, 216, 0.5),
    inset 0 -0.8rem 1.2rem rgba(116, 65, 20, 0.14);
}

.shop-live-root .shop-entry-rarity-mark {
  position: absolute;
  left: 0.3rem;
  top: 1.28rem;
  bottom: 0.54rem;
  z-index: 0;
  width: 0.12rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 86%, #ffffff), transparent);
  box-shadow:
    0 0 0.28rem color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 52%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 0.92;
  pointer-events: none;
}

.shop-live-root .shop-entry-head {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shop-live-root .shop-entry-identity {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: 100%;
  text-align: center;
}

.shop-live-root .shop-entry-icon-wrap {
  position: relative;
  width: 4.42rem;
  height: 3.42rem;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3e260b;
  font-size: 0.92rem;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 239, 183, 0.72),
    0 0 0.22rem rgba(255, 219, 130, 0.46);
  box-shadow: none;
}

.shop-live-root .shop-entry-icon-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.92rem;
  z-index: 0;
  width: 5.3rem;
  height: 3.98rem;
  background: url("../Assests/UI/Shop/shop-item-pedestal-v1.png?v=20260605-shop-pedestal-v6") center / contain no-repeat;
  filter:
    drop-shadow(0 0.08rem 0 rgba(75, 46, 16, 0.44))
    saturate(1.05);
  opacity: 0.98;
  transform: translateX(-50%);
}

.shop-live-root .shop-entry-icon {
  position: relative;
  z-index: 1;
  width: 2.22rem;
  height: 2.22rem;
  display: block;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  transform: translateY(-0.34rem);
  filter:
    drop-shadow(0 0.08rem 0 rgba(16, 10, 6, 0.72))
    drop-shadow(0 0 0.24rem rgba(255, 219, 130, 0.28));
}

.shop-live-root .shop-entry-title-wrap {
  flex: 0 0 auto;
  min-height: 2.36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  width: 100%;
  text-align: center;
}

.shop-live-root .shop-entry-title-wrap .fight-entry-name {
  width: 100%;
  flex: 0 0 auto;
  min-height: 1.16rem;
  max-height: 1.16rem;
  display: -webkit-box;
  justify-self: center;
  align-self: center;
  margin: 0;
  overflow: hidden;
  color: #3c270e;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.66rem;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(255, 236, 170, 0.82),
    0 0 0.1rem rgba(255, 248, 211, 0.62);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-live-root .shop-entry-effects {
  width: 100%;
  min-height: 0.9rem;
  max-height: 0.9rem;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6b3e0f;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.45rem;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(255, 238, 174, 0.72),
    0 0 0.12rem rgba(255, 250, 221, 0.48);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-live-root .shop-rarity-text {
  color: #3c270e;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.012rem rgba(255, 242, 190, 0.7);
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry {
  border-color: #8d6a35;
  background:
    linear-gradient(180deg, rgba(255, 250, 218, 0.46), transparent 30%),
    linear-gradient(180deg, #efd07b 0%, #d89c3c 50%, #b57128 100%);
  box-shadow:
    0 0.14rem 0 rgba(85, 54, 18, 0.56),
    inset 0 0 0 1px rgba(255, 246, 203, 0.44),
    inset 0 -0.8rem 1.2rem rgba(110, 62, 23, 0.16);
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry.active {
  border-color: #fff0a1;
  background:
    linear-gradient(180deg, rgba(255, 250, 218, 0.54), transparent 32%),
    linear-gradient(180deg, #ffde86 0%, #e4a646 50%, #bf782b 100%);
  box-shadow:
    0 0.14rem 0 rgba(94, 58, 15, 0.64),
    0 0 0.38rem rgba(255, 212, 72, 0.24),
    inset 0 0 0 1px rgba(255, 248, 216, 0.5),
    inset 0 -0.8rem 1.2rem rgba(116, 65, 20, 0.14);
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry::after,
body[data-shop-mode="bits"] .shop-live-root .shop-entry-rarity-mark {
  display: none;
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry-icon-wrap::before {
  filter:
    drop-shadow(0 0.08rem 0 rgba(75, 46, 16, 0.44))
    saturate(1);
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry-icon {
  filter:
    drop-shadow(0 0.08rem 0 rgba(16, 10, 6, 0.72))
    drop-shadow(0 0 0.14rem rgba(255, 219, 130, 0.22));
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry-title-wrap .fight-entry-name.shop-rarity-text {
  color: color-mix(in srgb, var(--shop-rarity-color, #3c270e) 82%, #3c270e) !important;
  -webkit-text-stroke: 0;
  text-shadow:
    -1px 0 rgba(45, 28, 11, 0.9),
    1px 0 rgba(45, 28, 11, 0.9),
    0 -1px rgba(45, 28, 11, 0.9),
    0 1px rgba(45, 28, 11, 0.9),
    1px 1px rgba(45, 28, 11, 0.82),
    0 0 0.12rem rgba(45, 28, 11, 0.62);
}

body[data-shop-mode="bits"] .shop-live-root .shop-entry[data-rarity="common"] .fight-entry-name.shop-rarity-text {
  color: #4d3820 !important;
  -webkit-text-stroke: 0;
}

.shop-live-root .shop-entry-owned,
.shop-live-root .shop-entry-price-chip {
  min-height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(86, 62, 28, 0.54);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f1d7, #dcc381);
  color: #3b2a12;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.shop-live-root .shop-entry-owned {
  position: absolute;
  left: 0.42rem;
  top: 0.34rem;
  z-index: 2;
  max-width: 4.1rem;
  padding: 0 0.3rem;
  font-size: 0.46rem;
  pointer-events: none;
  white-space: nowrap;
}

.shop-live-root .shop-entry-price-chip {
  position: absolute;
  right: 0.42rem;
  top: 0.34rem;
  z-index: 2;
  min-width: 3.12rem;
  max-width: 4.1rem;
  height: auto;
  padding: 0 0.34rem;
  border-color: #8d6225;
  background:
    linear-gradient(180deg, rgba(255, 246, 196, 0.32), transparent 35%),
    linear-gradient(180deg, #f6c657, #b97920);
  color: #fff9df;
  font-size: 0.56rem;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(79, 44, 12, 0.92),
    0 0 0.12rem rgba(255, 245, 194, 0.42);
}

.shop-live-root .shop-empty {
  grid-column: 1 / -1;
  min-height: 6rem;
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px dashed rgba(109, 90, 55, 0.7);
  border-radius: 0.44rem;
  background: rgba(255, 248, 220, 0.56);
  color: #6c4618;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.shop-live-root .shop-info-box {
  left: 0.52rem;
  right: 0.52rem;
  bottom: 76px;
  z-index: 1010;
  min-height: 10rem;
  max-height: min(58vh, 18.4rem);
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.52rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 18%, transparent), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.72rem 0.58rem 0.62rem;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem color-mix(in srgb, var(--shop-rarity-color, #f0c56f) 24%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.shop-live-root .shop-info-close {
  left: auto;
  right: 0.42rem;
  top: 0.42rem;
  width: 1.82rem;
  height: 1.82rem;
  min-height: 1.82rem;
  border: 2px solid #6d382c;
  border-radius: 0.36rem;
  background: linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-size: 0;
  box-shadow:
    0 0.1rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: none;
}

.shop-live-root .shop-info-close::before {
  content: "X";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
}

.shop-live-root .shop-info-close:hover,
.shop-live-root .shop-info-close:focus-visible {
  transform: translateY(-1px);
}

.shop-live-root .shop-info-icon-wrap {
  width: 4rem;
  height: 4rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 242, 174, 0.24), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  color: #3e260b;
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.shop-live-root .shop-info-icon {
  width: 3.26rem;
  height: 3.26rem;
}

.shop-live-root .shop-info-body {
  gap: 0.16rem;
}

.shop-live-root .shop-info-name {
  margin: 0;
  padding-right: 2.1rem;
  color: #26333b !important;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  -webkit-text-stroke: 0;
}

.shop-live-root .shop-info-meta {
  margin: 0.02rem 0 0;
  color: #6c4618;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  gap: 0.18rem;
  text-transform: uppercase;
}

.shop-live-root .shop-info-meta .shop-rarity-text {
  color: #3e260b;
  -webkit-text-stroke: 0;
}

.shop-live-root .shop-info-meta-separator {
  color: rgba(108, 70, 24, 0.62);
}

.shop-live-root .shop-info-description {
  margin: 0.08rem 0 0;
  color: #4b3921;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.shop-live-root .shop-info-stats {
  gap: 0.16rem;
}

.shop-live-root .shop-info-stat {
  min-height: 1.26rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem;
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.3rem;
  background: rgba(255, 248, 220, 0.48);
  padding: 0.14rem 0.2rem;
}

.shop-live-root .shop-info-stat dt,
.shop-live-root .shop-info-stat dd {
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
}

.shop-live-root .shop-info-stat dt {
  color: #6c4618;
}

.shop-live-root .shop-info-stat dd {
  color: #2f4320;
}

.shop-live-root .shop-info-actions {
  margin-top: 0.2rem;
}

.shop-live-root .shop-info-purchase-btn {
  min-height: 2.72rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.28), transparent 58%),
    linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.66rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.16rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.shop-live-root .shop-info-purchase-btn:disabled {
  border-color: rgba(109, 90, 55, 0.52);
  background: linear-gradient(180deg, rgba(184, 147, 80, 0.72), rgba(123, 89, 40, 0.78));
  color: rgba(62, 38, 11, 0.58);
  box-shadow: none;
}

.inventory-live-root .gold-shop-content {
  --inventory-compare-inspect-space: 10.8rem;
}

.shop-live-root .gold-shop-grid {
  padding-bottom: 0.1rem;
}

.shop-live-root .gold-shop-slot-fallback {
  color: #3e260b;
  font-size: 1rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.shop-live-root .gold-coin-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  color: #3b2a12;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.shop-live-root .gold-coin-amount.is-unaffordable {
  color: #b73424;
  text-shadow: none;
}

.shop-live-root .gold-coin-icon {
  position: relative;
  width: 0.82em;
  height: 0.82em;
  flex: 0 0 auto;
  display: inline-block;
  border: 1px solid #8d6225;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, #fff7b8 0 16%, transparent 17%),
    radial-gradient(circle at 62% 68%, rgba(146, 84, 20, 0.38), transparent 38%),
    linear-gradient(135deg, #fff09a 0%, #f2bd39 45%, #b66d1f 100%);
  box-shadow:
    0 0.05rem 0 rgba(79, 44, 12, 0.52),
    inset 0 0 0 1px rgba(255, 250, 202, 0.42);
}

.shop-live-root .gold-coin-icon::after {
  content: "";
  position: absolute;
  inset: 0.18em;
  border: 1px solid rgba(116, 72, 20, 0.5);
  border-radius: inherit;
}

.shop-live-root .gold-shop-slot-price {
  position: absolute;
  right: 0.12rem;
  bottom: 0.12rem;
  z-index: 4;
  min-width: 2.08rem;
  min-height: 1.06rem;
  padding: 0 0.22rem;
  border: 1px solid rgba(72, 50, 22, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  font-size: 0.58rem;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.shop-live-root .gold-shop-slot-price.is-unaffordable,
.shop-live-root .gold-shop-price-amount.is-unaffordable,
.shop-live-root .gold-shop-purchase-amount.is-unaffordable {
  border-color: rgba(72, 50, 22, 0.82);
  background: linear-gradient(180deg, #fff0b4, #d49c36);
  color: #b73424;
}

.shop-live-root .gold-shop-inspect.inventory-inspect {
  grid-template-columns: 4rem minmax(0, 1fr);
}

.shop-live-root .gold-shop-inspect-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.shop-live-root .gold-shop-price-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.22rem;
}

.shop-live-root .gold-shop-price-line > span {
  min-height: 1.32rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.3rem;
  background: rgba(255, 248, 220, 0.48);
  padding: 0.16rem 0.22rem;
  color: #6c4618;
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.shop-live-root .gold-shop-price-line .gold-coin-amount {
  font-size: 0.64rem;
}

.shop-live-root .gold-shop-inspect-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-live-root .gold-shop-inspect-actions .gold-shop-purchase-btn {
  gap: 0.26rem;
}

.shop-live-root .gold-shop-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-live-root .gold-shop-status,
.shop-live-root .gold-shop-meta-chip {
  min-height: 1.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  margin: 0;
  border: 2px solid #8d6b2a;
  border-radius: 0.36rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 177, 0.32), transparent 58%),
    linear-gradient(180deg, #f0bd4d, #af7620);
  color: #3c2810;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 238, 177, 0.72);
  box-shadow:
    0 0.1rem 0 rgba(91, 62, 20, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.shop-live-root .gold-shop-status[data-error="1"] {
  color: #fff8de;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
}

.shop-live-root .gold-shop-compare-panel.inventory-compare-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--inventory-compare-inspect-space) + 0.4rem);
  z-index: 1010;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 0.28rem;
  padding: 0.46rem;
  overflow: hidden;
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-slot-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-slot-chooser button {
  min-height: 2.1rem;
  border: 2px solid rgba(128, 88, 36, 0.72);
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f0c75c, #b87424);
  color: #fff8de;
  cursor: pointer;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #4e2d0d;
  box-shadow:
    0 0.13rem 0 rgba(76, 59, 25, 0.58),
    inset 0 0 0 1px rgba(255, 245, 202, 0.42);
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-slot-chooser button.active {
  border-color: #6d382c;
  background: linear-gradient(180deg, #d9673f, #913622);
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-items {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-stats {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.12rem;
  scrollbar-color: #b7683f rgba(91, 62, 20, 0.18);
}

.shop-live-root .gold-shop-compare-panel .inventory-compare-item strong,
.shop-live-root .gold-shop-compare-panel .inventory-compare-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 14500;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.shop-dialog-card {
  width: min(100%, 18rem);
  padding: 0.78rem;
  border: 3px solid #6b5b35;
  border-radius: 0.46rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 16%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.58),
    0 0.68rem 1.25rem rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  color: #3e260b;
  text-align: center;
}

.shop-dialog-title {
  margin: 0 0 0.42rem;
  color: #b5422a;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.shop-dialog-text {
  margin: 0 0 0.72rem;
  color: #4f3413;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.shop-dialog-button {
  min-width: 5.7rem;
  min-height: 2.1rem;
  border: 2px solid #7b4d22;
  border-radius: 0.34rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, #d98a32, #a85a1f);
  box-shadow:
    0 0.18rem 0 rgba(78, 45, 17, 0.58),
    inset 0 0 0 1px rgba(255, 239, 183, 0.42);
  color: #fff8dc;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.62);
}

@media (max-width: 360px) {
  .shop-live-root .gold-shop-grid {
    --inventory-slot-size: 3.72rem;
    --inventory-slot-gap: 0.28rem;
  }

  .shop-live-root .gold-shop-price-line {
    grid-template-columns: 1fr;
  }
}

/* Final overlay stack fix: keep page loading visible above pending auth/backdrops. */
.loadout-loading-overlay {
  position: fixed;
  z-index: 12000 !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 219, 116, 0.14), transparent 42%),
    rgba(12, 8, 5, 0.74);
  backdrop-filter: blur(2px);
}

.loadout-loading-content {
  position: relative;
  z-index: 1;
  min-width: 11.4rem;
  padding: 0.82rem 0.95rem 0.88rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 16%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.58),
    0 0.56rem 1.2rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  gap: 0.58rem;
}

.loadout-loading-spinner {
  width: 2.42rem;
  height: 2.42rem;
  border: 0.24rem solid rgba(109, 90, 55, 0.48);
  border-top-color: #f0bd4d;
  border-right-color: #c65d3e;
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.28),
    0 0 0.46rem rgba(240, 189, 77, 0.32),
    inset 0 0 0 0.12rem rgba(255, 248, 220, 0.6);
}

.loadout-loading-text {
  color: #3e260b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.identity-required-overlay {
  z-index: 13000;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 197, 111, 0.16), transparent 42%),
    rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.identity-required-card {
  width: min(100%, 304px);
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 14% 0%, rgba(240, 197, 111, 0.16), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.58rem;
  text-align: left;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem rgba(240, 197, 111, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.identity-required-title {
  color: #26333b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.identity-required-text {
  margin: 0.28rem 0 0;
  color: #6c4618;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.22;
  text-align: left;
}

.identity-required-action {
  min-height: 2.28rem;
  margin-top: 0.56rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 247, 184, 0.24), transparent 58%),
    linear-gradient(180deg, #efb33d, #986a20);
  color: #3e260b;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.66);
  box-shadow:
    0 0.14rem 0 rgba(67, 47, 23, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.identity-required-action:disabled {
  opacity: 0.76;
  cursor: wait;
}

.identity-required-overlay[data-identity-pending="1"] {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.talent-reset-notice-overlay {
  z-index: 13020;
}

@media (max-width: 340px) {
  .shop-live-root .shop-content {
    inset: 0.28rem 0.28rem 72px;
    gap: 0.22rem;
  }

  .shop-live-root .shop-tabs {
    gap: 0.12rem;
    padding: 0.18rem;
  }

  .shop-live-root .shop-tabs .fight-tab-btn {
    font-size: 0.43rem;
  }

  .shop-live-root .shop-content .fight-group {
    padding: 0.24rem;
  }

  .shop-live-root .shop-entry-list {
    gap: 0.22rem;
    grid-auto-rows: 8.18rem;
  }

  .shop-live-root .shop-entry {
    min-height: 8.18rem;
    height: 8.18rem;
    padding: 0.66rem 0.24rem 0.22rem;
  }

  .shop-live-root .shop-entry-owned {
    left: 0.32rem;
    top: 0.3rem;
    max-width: 3.62rem;
    font-size: 0.42rem;
  }

  .shop-live-root .shop-entry-price-chip {
    right: 0.32rem;
    top: 0.3rem;
    min-width: 3.22rem;
    max-width: 3.8rem;
    font-size: 0.48rem;
  }

  .shop-live-root .shop-info-box {
    left: 0.38rem;
    right: 0.38rem;
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.42rem;
    padding: 0.64rem 0.48rem 0.56rem;
  }
}

/* Final leaderboard page polish: parchment panels on the shared field UI. */
.leaderboard-live-root .leaderboard-stage {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%);
}

.leaderboard-live-root .leaderboard-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 42% 26%, rgba(55, 122, 52, 0.42) 0 13%, transparent 14%),
    radial-gradient(ellipse at 58% 27%, rgba(121, 229, 93, 0.62) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 38%, rgba(65, 142, 57, 0.24) 0 22%, transparent 23%);
  opacity: 0.56;
}

.leaderboard-live-root .leaderboard-content {
  inset: 0.34rem 0.34rem 72px;
  z-index: 12;
  display: grid;
}

.leaderboard-live-root .leaderboard-page-root {
  height: 100%;
  min-height: 0;
}

.leaderboard-live-root .leaderboard-page-card,
.leaderboard-live-root .fight-leaderboard-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.3rem;
  padding: 0.34rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.leaderboard-live-root .fight-leaderboard-card[aria-label="Global endless leaderboard"] {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.leaderboard-live-root .hall-of-fame-card {
  grid-template-rows: auto minmax(0, 1fr);
}

.leaderboard-live-root .fight-leaderboard-scope-tabs,
.leaderboard-live-root .fight-endless-difficulty-tabs {
  gap: 0.22rem;
}

.leaderboard-live-root .fight-leaderboard-scope-btn,
.leaderboard-live-root .fight-endless-difficulty-tab {
  min-height: 2.08rem;
  height: auto;
  border: 2px solid #8d6b2a;
  border-radius: 0.36rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 177, 0.32), transparent 58%),
    linear-gradient(180deg, #f0bd4d, #af7620);
  color: #3c2810;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 238, 177, 0.72);
  box-shadow:
    0 0.12rem 0 rgba(91, 62, 20, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.leaderboard-live-root .fight-leaderboard-scope-btn.active,
.leaderboard-live-root .fight-endless-difficulty-tab.active {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 248, 195, 0.42), transparent 62%),
    linear-gradient(180deg, #ffd464, #c17b22);
  color: #34250d;
  box-shadow:
    0 0.12rem 0 rgba(91, 62, 20, 0.68),
    0 0 0.5rem rgba(255, 213, 80, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.leaderboard-live-root .fight-leaderboard-title {
  min-height: 2.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, #f7f7ef, #d8ddd8);
  color: #26333b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.leaderboard-live-root .fight-leaderboard-list,
.leaderboard-live-root .fight-endless-global-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.24rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0.18rem 0.12rem 0.18rem 0.02rem;
  scrollbar-width: thin;
  scrollbar-color: #8e5f21 rgba(72, 93, 45, 0.22);
}

.leaderboard-live-root .fight-leaderboard-row,
.leaderboard-live-root .fight-endless-global-row {
  position: relative;
  min-height: 3.46rem;
  border: 2px solid #7d6236;
  border-radius: 0.44rem;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 251, 205, 0.28), transparent 56%),
    linear-gradient(180deg, #eac16c, #af7724);
  box-shadow:
    0 0.14rem 0 rgba(73, 48, 18, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.leaderboard-live-root .fight-leaderboard-row {
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  gap: 0.36rem;
  padding: 0.32rem 0.42rem;
}

.leaderboard-live-root .fight-endless-global-row {
  grid-template-columns: auto 2.65rem minmax(0, 1fr) auto;
  gap: 0.34rem;
  padding: 0.32rem 0.42rem;
}

.leaderboard-live-root .fight-leaderboard-row:nth-child(1),
.leaderboard-live-root .fight-endless-global-row:nth-child(1) {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 250, 190, 0.42), transparent 58%),
    linear-gradient(180deg, #ffd970, #c68124);
  box-shadow:
    0 0.14rem 0 rgba(86, 54, 15, 0.68),
    0 0 0.52rem rgba(255, 212, 72, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.leaderboard-live-root .fight-leaderboard-avatar,
.leaderboard-live-root .fight-endless-global-avatar {
  width: 2.42rem;
  height: 2.42rem;
  border: 2px solid #6d5a37;
  border-radius: 0.34rem;
  background: linear-gradient(180deg, #f7f3d9, #c9b272);
  box-shadow:
    0 0.08rem 0 rgba(71, 51, 24, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.leaderboard-live-root .fight-leaderboard-avatar img,
.leaderboard-live-root .fight-endless-global-avatar img {
  image-rendering: auto;
}

.leaderboard-live-root .fight-leaderboard-avatar-fallback,
.leaderboard-live-root .fight-endless-global-avatar-fallback {
  color: #3b2a12;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.leaderboard-live-root .fight-leaderboard-main {
  gap: 0.14rem;
}

.leaderboard-live-root .fight-leaderboard-main strong,
.leaderboard-live-root .fight-endless-global-row strong {
  color: #f9f0d1;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(85, 49, 14, 0.86),
    0 0 0.16rem rgba(56, 31, 10, 0.42);
}

.leaderboard-live-root .fight-leaderboard-meta,
.leaderboard-live-root .fight-endless-global-row span:last-child,
.leaderboard-live-root .fight-endless-global-rank,
.leaderboard-live-root .fight-leaderboard-rank-value {
  min-height: 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(86, 62, 28, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #f7f1d7, #dcc381);
  color: #3b2a12;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.leaderboard-live-root .fight-leaderboard-meta {
  width: fit-content;
  max-width: 100%;
  padding: 0 0.38rem;
  text-transform: none;
}

.leaderboard-live-root .fight-leaderboard-chip-row {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  max-width: 100%;
  min-width: 0;
}

.leaderboard-live-root .fight-leaderboard-level-chip,
.leaderboard-live-root .fight-leaderboard-class-chip {
  min-height: 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 0.38rem;
  border: 1px solid rgba(86, 62, 28, 0.54);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f1d7, #dcc381);
  color: #3b2a12;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.leaderboard-live-root .fight-leaderboard-class-chip {
  max-width: 100%;
  overflow: hidden;
  color: var(--leaderboard-class-color, #3b2a12);
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(255, 248, 206, 0.7),
    0 0 0.08rem rgba(48, 30, 10, 0.28);
}

.leaderboard-live-root .fight-leaderboard-rank-value,
.leaderboard-live-root .fight-endless-global-rank,
.leaderboard-live-root .fight-endless-global-row span:last-child {
  padding: 0 0.42rem;
  white-space: nowrap;
}

.leaderboard-live-root .fight-leaderboard-realm {
  position: absolute;
  right: 0.44rem;
  bottom: 0.22rem;
  max-width: 44%;
  overflow: hidden;
  color: #fff5ca;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(72, 42, 13, 0.92),
    0 0 0.14rem rgba(52, 29, 9, 0.46);
  white-space: nowrap;
  pointer-events: none;
}

.leaderboard-live-root .fight-leaderboard-class {
  color: #2f4320 !important;
  font-weight: 900;
}

.leaderboard-live-root .fight-leaderboard-empty {
  min-height: 6rem;
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px dashed rgba(109, 90, 55, 0.7);
  border-radius: 0.44rem;
  background: rgba(255, 248, 220, 0.56);
  color: #6c4618;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

@media (max-width: 340px) {
  .leaderboard-live-root .leaderboard-content {
    inset: 0.28rem 0.28rem 72px;
  }

  .leaderboard-live-root .leaderboard-page-card,
  .leaderboard-live-root .fight-leaderboard-card {
    padding: 0.28rem;
    gap: 0.24rem;
  }

  .leaderboard-live-root .fight-leaderboard-row {
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    gap: 0.24rem;
  }

  .leaderboard-live-root .fight-endless-global-row {
    grid-template-columns: auto 2.35rem minmax(0, 1fr);
  }

  .leaderboard-live-root .fight-endless-global-row span:last-child {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Final nav polish: chunky fantasy bar matching the crafting/battle UI. */
.loadout-bottom-nav {
  z-index: 1020;
  min-height: 68px;
  align-items: center;
  gap: 4px;
  padding: 4px 5px 5px;
  border-top: 3px solid #6b5b35;
  background:
    linear-gradient(180deg, rgba(25, 22, 14, 0.96), rgba(9, 7, 5, 0.99));
  box-shadow:
    inset 0 2px 0 rgba(255, 232, 161, 0.15),
    0 -0.22rem 0 rgba(58, 45, 23, 0.55),
    0 -0.42rem 1rem rgba(0, 0, 0, 0.32);
}

.loadout-bottom-nav[data-button-scroll="1"] {
  padding-left: 5px;
  padding-right: 5px;
}

.loadout-nav-menu-wrap {
  min-height: 60px;
}

.loadout-nav-menu-wrap[data-open="1"] {
  z-index: 1030;
}

.loadout-nav-btn {
  grid-template-rows: 39px auto;
  row-gap: 1px;
  min-height: 60px;
  height: 60px;
  border: 2px solid #5f563a;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 233, 151, 0.12), transparent 58%),
    linear-gradient(180deg, #4b4935, #242115);
  color: #efe4c2;
  padding: 3px 2px 5px;
  font-weight: 900;
  box-shadow:
    0 0.12rem 0 rgba(12, 8, 4, 0.58),
    inset 0 0 0 1px rgba(255, 236, 178, 0.1);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.78),
    0 0 0.28rem rgba(0, 0, 0, 0.32);
}

a.loadout-nav-btn,
button.loadout-nav-btn {
  cursor: pointer;
}

.loadout-nav-menu-wrap > .loadout-nav-btn {
  height: 60px;
}

.loadout-nav-icon {
  width: 39px;
  height: 39px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 0.12rem rgba(255, 213, 90, 0.2));
}

.loadout-nav-label {
  color: currentColor;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.loadout-nav-menu-toggle .loadout-nav-label::after {
  margin-left: 0.12rem;
  font-size: 0.48rem;
}

.loadout-nav-btn::before,
.loadout-nav-btn::after {
  content: none;
  display: none;
}

.loadout-nav-btn.active,
.loadout-nav-btn[aria-current="page"] {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 184, 0.34), transparent 62%),
    linear-gradient(180deg, #f0bd4d, #b87924);
  color: #fff8de;
  box-shadow:
    0 0.12rem 0 rgba(89, 54, 14, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0.54rem rgba(255, 208, 76, 0.36);
  text-shadow:
    0 2px 0 rgba(79, 44, 10, 0.86),
    0 0 0.34rem rgba(255, 230, 116, 0.38);
}

.loadout-nav-btn.active .loadout-nav-icon,
.loadout-nav-btn[aria-current="page"] .loadout-nav-icon {
  opacity: 1;
  filter:
    drop-shadow(0 2px 0 rgba(79, 44, 10, 0.62))
    drop-shadow(0 0 0.28rem rgba(255, 244, 155, 0.58));
}

.loadout-nav-btn:hover,
.loadout-nav-btn:focus-visible {
  border-color: #f1d06b;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 242, 160, 0.22), transparent 60%),
    linear-gradient(180deg, #5f5432, #2b2515);
  color: #fff8de;
  box-shadow:
    0 0.12rem 0 rgba(12, 8, 4, 0.62),
    inset 0 0 0 1px rgba(255, 244, 177, 0.18),
    0 0 0.38rem rgba(255, 211, 94, 0.24);
}

.loadout-nav-btn:hover .loadout-nav-icon,
.loadout-nav-btn:focus-visible .loadout-nav-icon {
  filter:
    brightness(1.08)
    saturate(1.28)
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 0.22rem rgba(255, 226, 122, 0.42));
}

.loadout-nav-btn.active:hover,
.loadout-nav-btn.active:focus-visible,
.loadout-nav-btn[aria-current="page"]:hover,
.loadout-nav-btn[aria-current="page"]:focus-visible {
  border-color: #fff7bd;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 204, 0.42), transparent 62%),
    linear-gradient(180deg, #ffd66f, #c98424);
  box-shadow:
    0 0.12rem 0 rgba(89, 54, 14, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0.7rem rgba(255, 218, 90, 0.46);
}

.loadout-nav-flyout {
  z-index: 1040;
  gap: 0.28rem;
  width: min(11.2rem, calc(100vw - 1rem));
  padding: 0.38rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 220, 112, 0.18), transparent 58%),
    linear-gradient(180deg, #3d321d, #161109);
  box-shadow:
    0 0.22rem 0 rgba(56, 39, 18, 0.7),
    inset 0 0 0 1px rgba(255, 236, 178, 0.16);
}

.loadout-nav-menu-wrap[data-nav-group="shop"] .loadout-nav-flyout {
  left: auto;
  right: 0;
  transform: none;
}

.loadout-nav-flyout-item {
  grid-template-columns: 2.24rem minmax(0, 1fr);
  gap: 0.44rem;
  min-height: 2.64rem;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 235, 156, 0.12), transparent 58%),
    linear-gradient(180deg, #4b4935, #242115);
  color: #efe4c2;
  padding: 0.28rem 0.42rem;
  box-shadow:
    0 0.1rem 0 rgba(12, 8, 4, 0.48),
    inset 0 0 0 1px rgba(255, 236, 178, 0.1);
}

.loadout-nav-flyout-item .loadout-nav-icon {
  width: 2.08rem;
  height: 2.08rem;
}

.loadout-nav-flyout-item .loadout-nav-label {
  font-size: 0.68rem;
}

.loadout-nav-flyout-item.active,
.loadout-nav-flyout-item[aria-current="page"] {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 247, 184, 0.26), transparent 62%),
    linear-gradient(180deg, #f0bd4d, #b87924);
  color: #fff8de;
  box-shadow:
    0 0.12rem 0 rgba(89, 54, 14, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 0.46rem rgba(255, 208, 76, 0.3);
}

/* Final achievements page polish: awards parchment over the shared field UI. */
.achievements-live-root .achievements-stage {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%);
}

.achievements-live-root .achievements-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 34% 24%, rgba(55, 122, 52, 0.38) 0 12%, transparent 13%),
    radial-gradient(ellipse at 62% 31%, rgba(121, 229, 93, 0.58) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 47%, rgba(65, 142, 57, 0.2) 0 24%, transparent 25%);
  opacity: 0.56;
}

.achievements-live-root .achievements-content {
  inset: 0.34rem 0.34rem 72px;
  z-index: 12;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.32rem;
  padding: 0;
  overflow: hidden;
}

.achievements-live-root .achievements-header,
.achievements-live-root .achievements-panel {
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.achievements-live-root .achievements-header {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.46rem;
  min-height: 4.08rem;
  padding: 0.48rem;
}

.achievements-live-root .achievements-header-icon,
.achievements-live-root .achievements-empty-icon,
.achievements-live-root .achievement-card-icon {
  display: grid;
  place-items: center;
  border: 2px solid #6d5a37;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 229, 111, 0.52), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.achievements-live-root .achievements-header-icon {
  width: 3.05rem;
  height: 3.05rem;
}

.achievements-live-root .achievements-header-icon img,
.achievements-live-root .achievements-empty-icon img,
.achievements-live-root .achievement-card-icon img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.achievements-live-root .achievements-title,
.achievements-live-root .achievements-status,
.achievements-live-root .achievements-empty-title,
.achievements-live-root .achievements-empty-text,
.achievements-live-root .achievement-card-name,
.achievements-live-root .achievement-card-description {
  margin: 0;
  letter-spacing: 0;
}

.achievements-live-root .achievements-title {
  color: #26333b;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.achievements-live-root .achievements-status {
  margin-top: 0.16rem;
  color: #6c4618;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.14;
}

.achievements-live-root .achievements-status[data-error="1"] {
  color: #9a2f1f;
}

.achievements-live-root .achievements-panel {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.34rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.48rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #8e5f21 #eadfb8;
}

.achievements-live-root .achievements-panel::-webkit-scrollbar {
  width: 0.46rem;
}

.achievements-live-root .achievements-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f1d8, #e0cf97);
}

.achievements-live-root .achievements-panel::-webkit-scrollbar-thumb {
  border: 1px solid rgba(83, 58, 24, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #c98b2e, #7f5520);
}

.achievements-live-root .achievements-empty-icon {
  width: 4.7rem;
  height: 4.7rem;
  justify-self: center;
  margin-top: 0.7rem;
}

.achievements-live-root .achievements-empty-title {
  color: #26333b;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.achievements-live-root .achievements-empty-text {
  max-width: 13rem;
  justify-self: center;
  color: #6c4618;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.achievements-live-root .achievements-list {
  display: grid;
  gap: 0.36rem;
  min-height: 0;
}

.achievements-live-root .achievement-card {
  display: grid;
  grid-template-columns: 3.05rem minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  min-height: 4.25rem;
  border: 2px solid #6d5a37;
  border-radius: 0.46rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 229, 111, 0.16), transparent 58%),
    linear-gradient(180deg, #eac16c, #af7724);
  color: #3e260b;
  padding: 0.42rem;
  box-shadow:
    0 0.12rem 0 rgba(73, 48, 18, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.achievements-live-root .achievement-card.is-locked {
  opacity: 1;
  border-color: rgba(109, 90, 55, 0.58);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 242, 188, 0.12), transparent 58%),
    linear-gradient(180deg, #d7c894, #95865d);
  filter: saturate(0.72);
}

.achievements-live-root .achievement-card.is-unlocked {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 247, 184, 0.38), transparent 62%),
    linear-gradient(180deg, #ffd970, #c68124);
  box-shadow:
    0 0.14rem 0 rgba(86, 54, 15, 0.68),
    0 0 0.55rem rgba(255, 213, 80, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.achievements-live-root .achievement-card-icon {
  width: 3.05rem;
  height: 3.05rem;
}

.achievements-live-root .achievement-card.is-locked .achievement-card-icon {
  filter: grayscale(0.78);
  opacity: 0.74;
}

.achievements-live-root .achievement-card-body {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.achievements-live-root .achievement-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.3rem;
}

.achievements-live-root .achievement-card-name {
  overflow: hidden;
  color: #3c270e;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 236, 170, 0.82);
  white-space: nowrap;
}

.achievements-live-root .achievement-card-state {
  min-height: 1.04rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(86, 62, 28, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 224, 0.96), rgba(211, 174, 96, 0.96));
  color: #3c270e;
  padding: 0 0.32rem;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.82);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 0.08rem 0 rgba(68, 48, 22, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.achievements-live-root .achievement-card.is-unlocked .achievement-card-state {
  border-color: rgba(77, 53, 22, 0.72);
  background:
    linear-gradient(180deg, #fff5cf, #c99a3e);
  color: #2d1e0b;
  text-shadow: 0 1px 0 rgba(255, 237, 170, 0.78);
}

.achievements-live-root .achievement-card.is-locked .achievement-card-state {
  color: #6c4618;
}

.achievements-live-root .achievement-card-description {
  color: #5b3d17;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.5);
}

@media (max-width: 340px) {
  .achievements-live-root .achievements-content {
    inset: 0.28rem 0.28rem 72px;
    gap: 0.24rem;
  }

  .achievements-live-root .achievements-header {
    grid-template-columns: 2.94rem minmax(0, 1fr);
    gap: 0.36rem;
    min-height: 3.68rem;
    padding: 0.38rem;
  }

  .achievements-live-root .achievements-header-icon {
    width: 2.72rem;
    height: 2.72rem;
  }

  .achievements-live-root .achievements-panel {
    padding: 0.38rem;
  }

  .achievements-live-root .achievement-card {
    grid-template-columns: 2.72rem minmax(0, 1fr);
    gap: 0.38rem;
    min-height: 3.9rem;
    padding: 0.34rem;
  }

  .achievements-live-root .achievement-card-icon {
    width: 2.72rem;
    height: 2.72rem;
  }

  .achievements-live-root .achievement-card-name {
    font-size: 0.6rem;
  }

  .achievements-live-root .achievement-card-description {
    font-size: 0.48rem;
  }
}

/* Final Gear page polish: parchment gear slots around the character preview. */
.loadout-live-root .loadout-stage {
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(255, 213, 120, 0.18) 0 18%, transparent 34%),
    linear-gradient(90deg, transparent 0 9%, rgba(255, 221, 142, 0.075) 9% 9.4%, transparent 9.4% 90.6%, rgba(255, 221, 142, 0.075) 90.6% 91%, transparent 91%),
    repeating-linear-gradient(0deg, rgba(255, 232, 176, 0.055) 0 2px, transparent 2px 13px),
    linear-gradient(180deg, #16283a 0 18%, #21344a 18% 45%, #4a2c1f 45% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 146, 0.2),
    inset 0 0 36px rgba(10, 7, 5, 0.36),
    0 0 0.58rem rgba(255, 178, 76, 0.12);
}

.loadout-live-root .loadout-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 220, 138, 0.34) 0 16%, rgba(190, 103, 54, 0.18) 17% 32%, transparent 33%),
    repeating-linear-gradient(135deg, transparent 0 1.15rem, rgba(73, 219, 205, 0.045) 1.15rem 1.22rem),
    radial-gradient(circle at 23% 18%, rgba(76, 218, 204, 0.2), transparent 22%),
    radial-gradient(circle at 78% 22%, rgba(255, 180, 87, 0.18), transparent 25%);
  opacity: 0.82;
}

.loadout-live-root .fullbody-canvas {
  z-index: 12;
  filter:
    drop-shadow(0 0.34rem 0 rgba(74, 35, 20, 0.48))
    drop-shadow(0 0.46rem 0.46rem rgba(8, 6, 5, 0.38));
}

.loadout-live-root .loadout-duel-prestige-title {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 112px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  border: 1px solid var(--title-edge, #6b4218);
  border-radius: 7px;
  padding: 0 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(90deg, var(--title-edge, #6b4218), var(--title-accent, #d4912a) 24%, var(--title-shine, #ffe27a) 50%, var(--title-accent, #d4912a) 76%, var(--title-edge, #6b4218));
  color: var(--title-text, #fff8de);
  text-align: center;
  text-shadow:
    -1px 0 0 var(--title-edge, #4e2d0d),
    1px 0 0 var(--title-edge, #4e2d0d),
    0 -1px 0 var(--title-edge, #4e2d0d),
    0 1px 0 var(--title-edge, #4e2d0d),
    1px 1px 0 rgba(42, 24, 7, 0.9);
  box-shadow:
    0 1px 0 rgba(76, 59, 25, 0.36),
    0 0 3px rgba(255, 218, 102, 0.22);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  pointer-events: auto;
}

.loadout-live-root #loadoutTitleBadge.loadout-duel-prestige-title {
  flex: 0 0 112px;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  padding: 0 10px;
}

.loadout-live-root .loadout-duel-prestige-title span {
  color: inherit;
  overflow: hidden;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.loadout-live-root .loadout-duel-prestige-title strong {
  display: none;
}

.loadout-live-root .loadout-duel-prestige-title:hover,
.loadout-live-root .loadout-duel-prestige-title:focus-visible {
  box-shadow:
    0 1px 0 rgba(76, 59, 25, 0.36),
    0 0 4px rgba(255, 218, 102, 0.4);
}

.loadout-live-root .loadout-duel-prestige-title.is-empty {
  text-shadow: 1px 1px 0 rgba(66, 48, 21, 0.72);
  box-shadow:
    0 1px 0 rgba(76, 59, 25, 0.28),
    0 0 3px rgba(255, 244, 204, 0.18);
}

.loadout-live-root .loadout-summary-head {
  align-items: center;
}

.loadout-live-root .loadout-title-modal {
  position: absolute;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  background: rgba(23, 18, 10, 0.42);
}

.loadout-live-root .loadout-title-card {
  position: relative;
  width: min(18rem, calc(100% - 1.2rem));
  max-height: min(21rem, calc(100% - 1.2rem));
  overflow: auto;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.24rem 0 rgba(76, 59, 25, 0.58),
    0 0.7rem 1.3rem rgba(16, 30, 12, 0.42);
  padding: 0.78rem;
}

.loadout-live-root .loadout-title-list {
  display: grid;
  gap: 0.44rem;
  margin-top: 0.56rem;
}

.loadout-live-root .loadout-title-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.48rem;
  width: 100%;
  border: 2px solid rgba(107, 91, 53, 0.44);
  border-radius: 0.42rem;
  background: rgba(255, 248, 220, 0.58);
  color: #26333b;
  padding: 0.36rem;
  font: inherit;
  text-align: left;
}

.loadout-live-root .loadout-title-option.is-active {
  border-color: var(--title-accent, #d4912a);
  box-shadow: 0 0 0.38rem rgba(212, 145, 42, 0.44);
}

.loadout-live-root .loadout-title-option.is-empty .loadout-title-option-badge {
  min-height: 1.2rem;
}

.loadout-live-root .loadout-title-option-badge {
  display: grid;
  min-height: 1.72rem;
  place-items: center;
  border: 2px solid var(--title-edge, #6b4218);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(90deg, var(--title-edge, #6b4218), var(--title-accent, #d4912a) 24%, var(--title-shine, #ffe27a) 50%, var(--title-accent, #d4912a) 76%, var(--title-edge, #6b4218));
  color: var(--title-text, #fff8de);
  padding: 0.16rem 0.62rem 0.2rem;
  text-align: center;
  text-shadow: 1px 1px 0 #4e2d0d;
}

.loadout-live-root .loadout-title-option-badge span {
  color: inherit;
  font-size: 0.5rem;
  font-weight: 950;
  line-height: 1.04;
  text-transform: uppercase;
}

.loadout-live-root .loadout-title-option-badge strong {
  color: var(--title-subtext, #5b3512);
  font-size: 0.36rem;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.78);
}

.loadout-live-root .loadout-title-option-state {
  color: #6c4618;
  font-size: 0.52rem;
  font-weight: 950;
  text-transform: uppercase;
}

.loadout-live-root .equipped-column,
.loadout-live-root .equipped-bottom,
.loadout-live-root .loadout-summary,
.loadout-live-root .loadout-potion-popover {
  z-index: 36;
}

.loadout-live-root .equipped-slot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--slot-rarity-color, #6d5a37) 58%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 60%, transparent) 0 31%, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 24%, transparent) 54%, transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 22%, #fff1bd), color-mix(in srgb, var(--slot-rarity-color, #d1a145) 20%, #c89334));
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    0 0 0.42rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 32%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 -0.62rem 1rem color-mix(in srgb, var(--slot-rarity-color, #d1a145) 18%, transparent);
  opacity: 1;
}

.loadout-live-root .equipped-slot.has-item {
  border-color: color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 76%, #6d5a37);
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 76%, transparent) 0 32%, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 34%, transparent) 56%, transparent 80%),
    linear-gradient(180deg, color-mix(in srgb, var(--slot-rarity-color, #fff4a6) 34%, #fff1bd), color-mix(in srgb, var(--slot-rarity-color, #d1a145) 30%, #c89334));
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.46),
    0 0 0.56rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 44%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    inset 0 -0.68rem 1.05rem color-mix(in srgb, var(--slot-rarity-color, #d1a145) 24%, transparent);
}

.loadout-live-root .equipped-slot.active::before {
  content: "";
  position: absolute;
  inset: -0.12rem;
  z-index: 1;
  border: 2px solid #fff4a8;
  border-radius: 0.52rem;
  pointer-events: none;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(76, 48, 18, 0.72),
    0 0 0.42rem rgba(255, 230, 127, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.loadout-live-root .equipped-slot img,
.loadout-live-root .equipped-slot .equipped-slot-missing {
  position: relative;
  z-index: 2;
}

.loadout-live-root .equipped-slot.is-empty {
  border-color: rgba(109, 90, 55, 0.58);
  background: linear-gradient(180deg, rgba(226, 202, 139, 0.44), rgba(167, 127, 54, 0.36));
  opacity: 0.82;
  box-shadow:
    0 0.08rem 0 rgba(76, 59, 25, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.loadout-live-root .equipped-slot-missing {
  border-radius: 0.26rem;
  background: rgba(255, 248, 220, 0.34);
  color: #6c4618;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.loadout-live-root .loadout-summary,
.loadout-live-root .loadout-potion-popover {
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.loadout-live-root .loadout-summary {
  left: 0.34rem;
  right: 0.34rem;
  padding: 0.52rem 0.56rem 0.54rem;
  gap: 0.32rem;
  overflow: visible;
}

.loadout-live-root .loadout-level {
  color: #26333b;
  font-size: 0.86rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.loadout-live-root .loadout-exp-text {
  color: #6c4618;
  font-size: 0.56rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.48);
}

.loadout-live-root .loadout-exp-track {
  height: 0.46rem;
  border: 1px solid rgba(72, 50, 22, 0.58);
  background: linear-gradient(180deg, #dbd6c2, #9ea58a);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0.06rem 0 rgba(76, 59, 25, 0.24);
}

.loadout-live-root .loadout-exp-fill {
  background: linear-gradient(90deg, #80d857, #ffe063);
  box-shadow: 0 0 0.36rem rgba(128, 216, 87, 0.42);
}

.loadout-live-root .loadout-stat-scroll {
  scrollbar-width: thin;
  scrollbar-color: #8e5f21 #eadfb8;
}

.loadout-live-root .loadout-stat-row {
  min-height: 1.24rem;
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.3rem;
  background: rgba(255, 248, 220, 0.48);
  padding: 0.14rem 0.2rem;
}

.loadout-live-root .loadout-stat-row dt {
  color: #6c4618;
  font-size: 0.46rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loadout-live-root .loadout-stat-row dd {
  color: #2f4320;
  font-size: 0.52rem;
  font-weight: 900;
  text-shadow: none;
}

.loadout-live-root .loadout-potion-btn {
  border: 2px solid #6d5a37;
  border-radius: 0.38rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 229, 111, 0.52), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.loadout-live-root .loadout-potion-popover {
  z-index: 88;
  color: #3e260b;
}

.loadout-live-root .loadout-potion-popover-head {
  color: #26333b;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.loadout-live-root .loadout-potion-row {
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.34rem;
  background: rgba(255, 248, 220, 0.48);
  padding: 0.16rem;
}

.loadout-live-root .loadout-potion-row-icon {
  border-color: #6d5a37;
  background: linear-gradient(180deg, #fff1bd, #d1a145);
}

.loadout-live-root .loadout-potion-row-body strong {
  color: #26333b;
}

.loadout-live-root .loadout-potion-row-body small {
  color: #6c4618;
}

.loadout-live-root .item-inspect-modal {
  z-index: 1080;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 16%, transparent), transparent 42%),
    rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.loadout-live-root .item-inspect-card {
  width: min(94%, 304px);
  border: 3px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 16%, transparent), transparent 46%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  padding: 0.66rem;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.48),
    0 0 0.76rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 22%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.loadout-live-root .item-inspect-close {
  top: 0.42rem;
  right: 0.42rem;
  width: 1.7rem;
  height: 1.7rem;
  inline-size: 1.7rem;
  block-size: 1.7rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  max-width: 1.7rem;
  max-height: 1.7rem;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #6d382c;
  border-radius: 0.34rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.12rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.loadout-live-root .item-inspect-title {
  color: #26333b !important;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.loadout-live-root .item-inspect-subtitle,
.loadout-live-root .item-inspect-rarity,
.loadout-live-root .item-inspect-slot {
  color: #6c4618;
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loadout-live-root .item-inspect-primary {
  border: 2px solid color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 72%, #6d5a37);
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 28%, transparent), transparent 62%),
    linear-gradient(180deg, #fff1bd, #d1a145);
  color: #26333b;
  padding: 0.36rem;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.loadout-live-root .item-inspect-stat,
.loadout-live-root .item-inspect-set {
  border: 1px solid rgba(72, 50, 22, 0.48);
  border-radius: 0.3rem;
  background: rgba(255, 248, 220, 0.48);
  color: #3e260b;
}

.loadout-live-root .item-inspect-stat span,
.loadout-live-root .item-inspect-set span {
  color: #6c4618;
}

.loadout-live-root .item-inspect-stat strong,
.loadout-live-root .item-inspect-set strong {
  color: #2f4320;
}

.loadout-live-root .item-inspect-actions .inventory-action-btn {
  min-height: 2.34rem;
  border: 2px solid #6d382c;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .loadout-live-root .equipped-slot.active::before {
    animation: none;
  }
}

@media (max-width: 340px) {
  .loadout-live-root .loadout-summary {
    left: 0.28rem;
    right: 0.28rem;
    padding: 0.46rem;
  }

  .loadout-live-root .loadout-stat-grid {
    gap: 0.14rem;
  }

  .loadout-live-root .loadout-stat-row dt {
    font-size: 0.42rem;
  }

  .loadout-live-root .loadout-stat-row dd {
    font-size: 0.48rem;
  }
}

/* Final Character Creator polish: compact parchment controls with a field preview. */
body.character-creator-body {
  min-height: 100vh;
  overflow: hidden;
  color: #2f2414;
  background:
    linear-gradient(180deg, rgba(72, 219, 216, 0.96) 0 21%, rgba(205, 255, 118, 0.98) 21% 100%),
    repeating-linear-gradient(
      0deg,
      rgba(58, 153, 45, 0.14) 0 4px,
      rgba(255, 255, 255, 0.08) 4px 9px
    );
}

.character-creator-root,
.layout.panel-mode.single-editor.character-creator-root {
  width: 100%;
  max-width: 330px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.character-creator-root .editor-card,
.layout.panel-mode.single-editor.character-creator-root .editor-card {
  position: relative;
  min-height: calc(100vh - 10px);
  padding: 7px;
  gap: 7px;
  grid-template-rows: minmax(168px, 1fr) auto auto auto min-content;
  overflow: hidden;
  border: 3px solid #4f782f;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(72, 219, 216, 0.96) 0 30%, transparent 30%),
    repeating-linear-gradient(
      0deg,
      rgba(117, 197, 59, 0.55) 0 6px,
      rgba(171, 231, 91, 0.62) 6px 12px
    ),
    linear-gradient(180deg, #d9ff89, #76cc4b);
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 199, 0.68),
    0 0 0 1px rgba(24, 60, 23, 0.62);
  backdrop-filter: none;
}

.character-creator-root .avatar-stage,
.layout.panel-mode.single-editor.character-creator-root .avatar-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 3px solid #547338;
  border-radius: 6px;
  background: #bff1c8;
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 205, 0.86),
    inset 0 -18px 28px rgba(95, 170, 55, 0.08);
}

.character-creator-root .avatar-stage::before {
  display: none;
}

.character-creator-root .avatar-stage::after {
  display: none;
}

.character-creator-root .avatar-rig {
  top: 58%;
  z-index: 2;
}

.character-creator-root .preview-randomize,
.layout.panel-mode.single-editor.character-creator-root .preview-randomize {
  top: 7px;
  right: 7px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border: 2px solid #6b4f24;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6d56e, #bd7c25);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 204, 0.8),
    0 2px 0 rgba(91, 56, 20, 0.82);
}

.character-creator-root .preview-randomize img,
.layout.panel-mode.single-editor.character-creator-root .preview-randomize img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 214, 0.65));
}

.character-creator-root .category-shell,
.character-creator-root .compact-color,
.character-creator-root .actions,
.character-creator-root .status {
  position: relative;
  z-index: 3;
}

.character-creator-root .category-shell {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 3px solid #6b5b32;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff6bf, #e8cf83);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 227, 0.74),
    0 2px 0 rgba(51, 81, 34, 0.45);
}

.character-creator-root .category-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.character-creator-root .category-tabs .category-tile,
.layout.panel-mode.single-editor.character-creator-root .category-tabs button {
  position: relative;
  min-height: 54px;
  height: 54px;
  padding: 4px 3px 3px;
  display: grid;
  grid-template-rows: 31px 1fr;
  place-items: center;
  border: 2px solid #79582c;
  border-radius: 6px;
  background: linear-gradient(180deg, #f6cf67, #a66a21);
  color: #fff4c8;
  text-shadow:
    1px 1px 0 #51300f,
    -1px 1px 0 #51300f,
    0 2px 0 rgba(62, 38, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 193, 0.72),
    0 2px 0 rgba(81, 49, 18, 0.64);
}

.character-creator-root .category-tabs .category-tile::after {
  content: attr(aria-label);
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
}

.character-creator-root .category-tabs .category-tile .category-icon,
.layout.panel-mode.single-editor.character-creator-root .category-tabs .category-tile .category-icon {
  width: 31px;
  height: 31px;
  transform: none;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 0 rgba(76, 42, 14, 0.58));
}

.character-creator-root .category-tabs .category-tile.active {
  border-color: #fff1a5;
  background: linear-gradient(180deg, #ffe993, #d29226 54%, #a96521);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 218, 0.72),
    0 0 0 2px #2be8c4,
    0 2px 0 rgba(72, 43, 15, 0.74);
}

.character-creator-root .slider-shell,
.character-creator-root .compact-color {
  gap: 5px;
  padding: 7px;
  border: 2px solid #806030;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff6cd, #ead28b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 232, 0.75);
}

.character-creator-root .compact-color {
  display: grid;
  margin: 0;
}

.character-creator-root .active-category-label,
.character-creator-root .active-color-label {
  margin: 0;
  color: #263158;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.character-creator-root .active-option-label {
  min-height: 0;
  color: #49351c;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.character-creator-root .option-nav {
  grid-template-columns: 43px 1fr 43px;
  gap: 6px;
}

.character-creator-root .nav-arrow,
.layout.panel-mode.single-editor.character-creator-root .nav-arrow {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  --nav-arrow-glyph: #fff6c8;
  display: grid;
  place-items: center;
  width: 43px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  border: 2px solid #765525;
  border-radius: 999px;
  background-color: #bb7926;
  background-image: linear-gradient(180deg, #ffe48a, #bb7926);
  color: transparent;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 212, 0.72),
    0 2px 0 rgba(83, 49, 16, 0.64);
}

.character-creator-root .nav-arrow::before,
.layout.panel-mode.single-editor.character-creator-root .nav-arrow::before {
  filter: drop-shadow(1px 1px 0 #4e2d0d);
}

.character-creator-root .nav-arrow:disabled {
  opacity: 0.56;
}

.character-creator-root .avatar-layer[data-layer="beard"],
.character-creator-root .avatar-layer[alt="beard"] {
  z-index: 29 !important;
}

.character-creator-root .avatar-layer[data-layer="eyes"],
.character-creator-root .avatar-layer[alt="eyes"] {
  z-index: 60 !important;
}

.character-creator-root .avatar-layer[data-layer="mouth"],
.character-creator-root .avatar-layer[alt="mouth"] {
  z-index: 61 !important;
}

.character-creator-root .avatar-layer[data-layer="eyebrows"],
.character-creator-root .avatar-layer[alt="eyebrows"] {
  z-index: 62 !important;
}

.character-creator-root .avatar-layer[data-layer="hair"],
.character-creator-root .avatar-layer[alt="hair"] {
  z-index: 70 !important;
}

.character-creator-root .current-color-swatch {
  justify-self: center;
  width: 54px;
  height: 35px;
  min-height: 35px;
  border: 2px solid #6b512d;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 220, 0.44),
    0 2px 0 rgba(83, 49, 16, 0.64);
}

.character-creator-root .actions {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.character-creator-root .actions button,
.character-creator-root #createCharacterBtn,
.character-creator-root #requestIdentityBtn {
  min-height: 45px;
  border: 2px solid #845326;
  border-radius: 6px;
  background: linear-gradient(180deg, #f7cf67, #b97724);
  color: #fff7cc;
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow:
    1px 1px 0 #56300d,
    -1px 1px 0 #56300d,
    0 2px 0 rgba(62, 38, 15, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 204, 0.76),
    0 2px 0 rgba(83, 49, 16, 0.7);
}

.character-creator-root .actions button:disabled {
  filter: grayscale(0.4);
  opacity: 0.68;
}

.character-creator-root .status {
  min-height: 18px;
  margin: 0;
  padding: 4px 7px;
  overflow: hidden;
  border: 2px solid rgba(94, 78, 39, 0.56);
  border-radius: 6px;
  background: rgba(255, 244, 196, 0.82);
  color: #2f7a3d;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
}

.character-creator-root .status:empty {
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.character-creator-root .status[data-error="1"] {
  color: #9b2d1d;
}

.character-creator-root .loadout-loading-overlay {
  z-index: 80;
  border-radius: 3px;
}

@media (max-height: 560px) {
  .character-creator-root .editor-card,
  .layout.panel-mode.single-editor.character-creator-root .editor-card {
    grid-template-rows: minmax(150px, 1fr) auto auto auto min-content;
  }

  .character-creator-root .avatar-stage,
  .layout.panel-mode.single-editor.character-creator-root .avatar-stage {
    min-height: 0;
  }

  .character-creator-root .category-tabs .category-tile,
  .layout.panel-mode.single-editor.character-creator-root .category-tabs button {
    min-height: 48px;
    height: 48px;
    grid-template-rows: 27px 1fr;
  }

  .character-creator-root .category-tabs .category-tile .category-icon,
  .layout.panel-mode.single-editor.character-creator-root .category-tabs .category-tile .category-icon {
    width: 27px;
    height: 27px;
  }

  .character-creator-root .actions button,
  .character-creator-root #createCharacterBtn,
  .character-creator-root #requestIdentityBtn {
    min-height: 39px;
  }
}

@media (max-height: 500px) {
  .character-creator-root,
  .layout.panel-mode.single-editor.character-creator-root {
    padding: 4px;
  }

  .character-creator-root .editor-card,
  .layout.panel-mode.single-editor.character-creator-root .editor-card {
    min-height: calc(100vh - 8px);
    padding: 5px;
    gap: 5px;
    grid-template-rows: minmax(130px, 1fr) auto auto auto min-content;
  }

  .character-creator-root .category-shell {
    gap: 4px;
    padding: 5px;
  }

  .character-creator-root .category-tabs {
    gap: 4px;
  }

  .character-creator-root .category-tabs .category-tile,
  .layout.panel-mode.single-editor.character-creator-root .category-tabs button {
    min-height: 43px;
    height: 43px;
    grid-template-rows: 24px 1fr;
  }

  .character-creator-root .category-tabs .category-tile::after {
    font-size: 0.5rem;
  }

  .character-creator-root .category-tabs .category-tile .category-icon,
  .layout.panel-mode.single-editor.character-creator-root .category-tabs .category-tile .category-icon {
    width: 24px;
    height: 24px;
  }

  .character-creator-root .slider-shell,
  .character-creator-root .compact-color {
    gap: 4px;
    padding: 5px;
  }

  .character-creator-root .active-category-label,
  .character-creator-root .active-color-label,
  .character-creator-root .active-option-label {
    font-size: 0.66rem;
  }

  .character-creator-root .nav-arrow,
  .layout.panel-mode.single-editor.character-creator-root .nav-arrow,
  .character-creator-root .current-color-swatch {
    height: 30px;
    min-height: 30px;
  }

  .character-creator-root .actions button,
  .character-creator-root #createCharacterBtn,
  .character-creator-root #requestIdentityBtn {
    min-height: 34px;
  }
}

/* Final set inspect polish: missing pieces dim, bonuses sit under the set list. */
.item-inspect-set span.is-set-item:not(.is-missing),
.inventory-inspect-set span.is-set-item:not(.is-missing),
.craft-reveal .item-inspect-set span.is-set-item:not(.is-missing),
.inventory-live-root .inventory-inspect-set span.is-set-item:not(.is-missing),
.loadout-live-root .item-inspect-set span.is-set-item:not(.is-missing),
.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-set-item:not(.is-missing) {
  color: #4f3215 !important;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 248, 206, 0.58);
}

.item-inspect-set span.is-set-item.is-missing,
.inventory-inspect-set span.is-set-item.is-missing,
.craft-reveal .item-inspect-set span.is-set-item.is-missing,
.inventory-live-root .inventory-inspect-set span.is-set-item.is-missing,
.loadout-live-root .item-inspect-set span.is-set-item.is-missing,
.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-set-item.is-missing {
  color: rgba(96, 94, 82, 0.78) !important;
  text-shadow: 0 1px 0 rgba(255, 247, 210, 0.42);
  filter: grayscale(0.55);
  opacity: 0.72;
}

.item-inspect-set span.is-set-bonus,
.inventory-inspect-set span.is-set-bonus,
.craft-reveal .item-inspect-set span.is-set-bonus,
.inventory-live-root .inventory-inspect-set span.is-set-bonus,
.loadout-live-root .item-inspect-set span.is-set-bonus,
.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-set-bonus {
  margin-left: 0.55rem;
  padding-left: 0.26rem;
  border-left: 1px solid rgba(91, 68, 31, 0.28);
}

.item-inspect-set span.is-set-bonus.is-active,
.inventory-inspect-set span.is-set-bonus.is-active,
.craft-reveal .item-inspect-set span.is-set-bonus.is-active,
.inventory-live-root .inventory-inspect-set span.is-set-bonus.is-active,
.loadout-live-root .item-inspect-set span.is-set-bonus.is-active,
.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-set-bonus.is-active {
  color: #36551f !important;
}

.item-inspect-set span.is-set-bonus.is-inactive,
.inventory-inspect-set span.is-set-bonus.is-inactive,
.craft-reveal .item-inspect-set span.is-set-bonus.is-inactive,
.inventory-live-root .inventory-inspect-set span.is-set-bonus.is-inactive,
.loadout-live-root .item-inspect-set span.is-set-bonus.is-inactive,
.crafting-live-root .craft-reveal.is-dialog .item-inspect-set span.is-set-bonus.is-inactive {
  color: rgba(96, 94, 82, 0.74) !important;
}

/* Final inspect rarity title polish. */
.loadout-live-root .item-inspect-title,
.crafting-live-root .craft-reveal.is-dialog .item-inspect-title {
  color: color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 82%, #fff7c5) !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.045rem rgba(37, 24, 10, 0.72);
  text-shadow:
    0 1px 0 rgba(255, 247, 195, 0.46),
    1px 1px 0 rgba(48, 28, 9, 0.72),
    -1px 1px 0 rgba(48, 28, 9, 0.72),
    0 0 0.28rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 36%, transparent);
}

.inventory-live-root .inventory-inspect[data-rarity] .inventory-inspect-name {
  color: color-mix(in srgb, var(--inventory-rarity-color, #f0c56f) 78%, #3d2710) !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.022rem rgba(45, 28, 11, 0.62);
  text-shadow:
    0 1px 0 rgba(255, 247, 195, 0.72),
    0 0.06rem 0 rgba(48, 28, 9, 0.42);
}

.inventory-live-root .inventory-inspect[data-rarity="common"] .inventory-inspect-name {
  color: #4d3820 !important;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 248, 206, 0.78);
}

/* Final crafting initial loading mask: hide stale tab content before JS finishes. */
.crafting-live-root.is-loading .crafting-content,
.crafting-live-root.is-loading .craft-reveal,
.crafting-live-root.is-loading .crafting-confirm-backdrop {
  visibility: hidden;
}

.crafting-live-root.is-loading .loadout-bottom-nav {
  filter: saturate(0.86) brightness(0.82);
}

.crafting-live-root.is-loading .loadout-loading-overlay {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(55, 124, 52, 0.78) 0 12%, rgba(88, 176, 70, 0.78) 13% 22%, transparent 23%),
    linear-gradient(180deg, rgba(72, 219, 216, 0.98) 0 24%, rgba(216, 255, 143, 0.99) 24% 100%),
    repeating-linear-gradient(
      0deg,
      rgba(78, 158, 49, 0.14) 0 5px,
      rgba(255, 255, 255, 0.13) 5px 10px
    );
  backdrop-filter: none;
}

.crafting-live-root.is-loading .loadout-loading-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 42%, rgba(255, 238, 156, 0.2), transparent 44%);
}

/* Final mobile Gear drag guard. */
.loadout-live-body .loadout-live-root,
.loadout-live-body .loadout-live-root .avatar-stage.loadout-stage,
.loadout-live-body .loadout-live-root .fullbody-canvas {
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-drag: none;
}

.loadout-live-body .loadout-live-root button,
.loadout-live-body .loadout-live-root a,
.loadout-live-body .loadout-live-root .equipped-slot,
.loadout-live-body .loadout-live-root .loadout-stat-scroll,
.loadout-live-body .loadout-live-root .loadout-potion-list,
.loadout-live-body .loadout-live-root .item-inspect-card {
  touch-action: manipulation;
}

.loadout-live-body .loadout-live-root .loadout-stat-scroll,
.loadout-live-body .loadout-live-root .loadout-potion-list,
.loadout-live-body .loadout-live-root .item-inspect-card {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Final Inventory inspect close button square lock. */
.inventory-live-root .inventory-inspect-close-btn,
.layout.panel-mode.single-editor.inventory-live-root .inventory-inspect-close-btn {
  width: 1.7rem;
  height: 1.7rem;
  inline-size: 1.7rem;
  block-size: 1.7rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  max-width: 1.7rem;
  max-height: 1.7rem;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  flex: 0 0 1.7rem;
}

/* Final Inventory grid first-paint inset and parchment backing. */
.inventory-live-root .inventory-grid-scroller,
.layout.panel-mode.single-editor.inventory-live-root .inventory-grid-scroller {
  padding: 0.48rem 0.56rem 0.48rem 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb) !important;
  background-color: #efe4bb !important;
  background-clip: border-box;
}

.inventory-live-root .inventory-grid,
.layout.panel-mode.single-editor.inventory-live-root .inventory-grid {
  --inventory-slot-size: clamp(3.9rem, 21.2vw, 4.35rem);
  box-sizing: border-box;
  width: 100%;
  padding: 0.1rem 0.16rem 0.1rem 0.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--inventory-slot-size);
  justify-content: center;
  align-content: start;
  gap: var(--inventory-slot-gap);
  background: transparent !important;
}

.inventory-live-root .inventory-slot,
.layout.panel-mode.single-editor.inventory-live-root .inventory-slot {
  width: 100%;
  height: var(--inventory-slot-size);
  min-width: 0;
  min-height: var(--inventory-slot-size);
  max-height: var(--inventory-slot-size);
  aspect-ratio: auto;
  background-color: #d7bd75;
}

@media (max-width: 340px) {
  .inventory-live-root .inventory-grid-scroller,
  .layout.panel-mode.single-editor.inventory-live-root .inventory-grid-scroller {
    padding: 0.38rem 0.48rem 0.38rem 0.38rem;
  }

  .inventory-live-root .inventory-grid,
  .layout.panel-mode.single-editor.inventory-live-root .inventory-grid {
    --inventory-slot-size: clamp(3.7rem, 20.8vw, 4rem);
    padding: 0.08rem 0.14rem 0.08rem 0.08rem;
  }
}

/* Final Talents page polish: class carousel and talent board in the new parchment style. */
.talents-live-root .talents-stage {
  background:
    linear-gradient(135deg, rgba(255, 220, 126, 0.08) 0 10%, transparent 10% 22%, rgba(82, 215, 196, 0.08) 22% 33%, transparent 33%),
    repeating-linear-gradient(0deg, rgba(255, 225, 142, 0.05) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, #241712 0%, #111824 48%, #24140f 100%);
}

.talents-live-root .talents-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 1.1rem, rgba(255, 204, 104, 0.055) 1.1rem 1.18rem),
    repeating-linear-gradient(45deg, transparent 0 1.6rem, rgba(70, 220, 197, 0.05) 1.6rem 1.68rem),
    linear-gradient(180deg, rgba(255, 200, 96, 0.08), rgba(70, 220, 197, 0.055) 46%, rgba(255, 115, 70, 0.075));
  opacity: 0.78;
}

.talents-live-root .talents-content {
  position: absolute;
  inset: 0.34rem 0.34rem 72px;
  z-index: 12;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.28rem;
  padding: 0;
  overflow: hidden;
}

.talents-live-root .talents-points-card,
.talents-live-root .talents-class-card,
.talents-live-root .talent-tree-shell,
.talents-live-root .talent-inspect,
.talents-live-root .talents-locked-panel,
.talents-live-root .talents-confirm-card {
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.talents-live-root .talents-points-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.16rem;
  padding: 0.28rem;
}

.talents-live-root .talents-points-row {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 0.04rem;
  padding: 0.2rem 0.12rem;
  border: 2px solid #8b682d;
  border-radius: 0.38rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(180deg, #f5cf68, #b87825);
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.talents-live-root .talents-points-label {
  margin: 0;
  color: #6a4315;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.talents-live-root .talents-points-value,
.talents-live-root .talents-class-value {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  color: #fff8de;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    1px 1px 0 #56300d,
    -1px 1px 0 #56300d,
    0 2px 0 rgba(62, 38, 15, 0.68);
}

.talents-live-root .talent-tree-shell {
  position: relative;
  min-height: 0;
  padding: 0.32rem;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.talents-live-root .talent-tree {
  border: 2px solid #8c6b35;
  border-radius: 0.42rem;
  background:
    linear-gradient(rgba(255, 217, 137, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 217, 137, 0.13) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 239, 177, 0.045) 0 0.48rem, transparent 0.48rem 1.18rem),
    linear-gradient(180deg, rgba(85, 56, 34, 0.95), rgba(25, 31, 43, 0.98) 52%, rgba(59, 33, 24, 0.98));
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 171, 0.22),
    inset 0 0 1.55rem rgba(5, 10, 18, 0.42),
    0 0 0.72rem rgba(255, 178, 76, 0.12);
}

.talents-live-root .talent-drop-slot {
  border-radius: 0.32rem;
  background: rgba(255, 221, 145, 0.07);
}

.talents-live-root .talent-node-btn {
  border: 2px solid #79582c;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 235, 160, 0.26), transparent 56%),
    linear-gradient(180deg, #d5a248, #8f5b1e);
  color: #fff6cf;
  box-shadow:
    0 0.12rem 0 rgba(80, 50, 18, 0.72),
    inset 0 1px 0 rgba(255, 246, 193, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  text-shadow:
    1px 1px 0 #4e2d0d,
    -1px 1px 0 #4e2d0d;
}

.talents-live-root .talent-node-name {
  color: #fff7cf;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.04;
  text-shadow:
    1px 1px 0 #4e2d0d,
    -1px 1px 0 #4e2d0d,
    0 0 0.18rem rgba(255, 230, 135, 0.42);
}

.talents-live-root .talent-node-rank {
  justify-self: center;
  min-width: 1.55rem;
  margin: 0;
  padding: 0.05rem 0.18rem;
  border: 1px solid rgba(91, 68, 31, 0.42);
  border-radius: 999px;
  background: rgba(255, 247, 215, 0.78);
  color: #3e260b;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.72);
}

.talents-live-root .talent-node.active .talent-node-btn {
  border-color: #fff0a1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 248, 176, 0.46), transparent 58%),
    linear-gradient(180deg, #f0c75f, #be7c24);
  box-shadow:
    0 0.12rem 0 rgba(80, 50, 18, 0.72),
    0 0 0.56rem rgba(255, 213, 80, 0.42),
    inset 0 1px 0 rgba(255, 246, 193, 0.8);
}

.talents-live-root .talent-node.selected .talent-node-btn {
  border-color: #fff7b8;
  outline: 2px solid #2be8c4;
  outline-offset: 0.08rem;
}

.talents-live-root .talent-node.locked .talent-node-btn {
  opacity: 0.74;
  filter: grayscale(0.58) saturate(0.72);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 248, 190, 0.14), transparent 56%),
    linear-gradient(180deg, #ad9b71, #746046);
}

.talents-live-root .talent-node.locked .talent-node-name {
  color: rgba(255, 246, 217, 0.76);
  text-shadow: 1px 1px 0 rgba(52, 36, 20, 0.72);
}

.talents-live-root .talent-link::before {
  background: #956b2a;
  box-shadow: 0 0 0.34rem rgba(76, 59, 25, 0.44);
}

.talents-live-root .talent-link.is-met::before {
  background: #f0c75f;
  box-shadow: 0 0 0.48rem rgba(255, 213, 80, 0.54);
}

.talents-live-root .talent-link-rank {
  border: 1px solid #7d4f1f;
  background: linear-gradient(180deg, #fff1bd, #d1a145);
  color: #3e260b;
  font-weight: 900;
}

.talents-live-root .talent-inspect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.12rem 0.36rem;
  padding: 0.42rem 0.52rem;
}

.talents-live-root .talent-inspect-name {
  margin: 0;
  color: #26333b;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.talents-live-root .talent-inspect-rank {
  align-self: start;
  margin: 0;
  padding: 0.12rem 0.32rem;
  border: 1px solid #8b682d;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe48a, #bb7926);
  color: #fff8de;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 1px 0 #4e2d0d;
}

.talents-live-root .talent-inspect-desc {
  grid-column: 1 / -1;
  margin: 0;
  color: #6c4618;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.18;
}

.talents-live-root .talent-inspect-bonus-line {
  display: block;
}

.talents-live-root .talent-inspect-bonus-stat {
  color: #1d4d56;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 246, 197, 0.7);
}

.talents-live-root .talent-inspect-bonus-value {
  color: #9b5617;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 246, 197, 0.78);
}

.talents-live-root .talents-locked-panel {
  padding: 0.58rem;
  text-align: center;
}

.talents-live-root .talents-locked-title {
  margin: 0;
  color: #26333b;
  font-size: 0.86rem;
  font-weight: 900;
}

.talents-live-root .talents-locked-text,
.talents-live-root .talents-class-help {
  color: #6c4618;
  font-weight: 800;
}

.talents-live-root .talents-content.class-selection-mode {
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  gap: 0;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-card {
  min-height: 0;
  height: 100%;
  padding: 0.44rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 74%, rgba(55, 124, 52, 0.74) 0 12%, rgba(88, 176, 70, 0.74) 13% 22%, transparent 23%),
    linear-gradient(180deg, rgba(72, 219, 216, 0.98) 0 25%, rgba(216, 255, 143, 0.99) 25% 100%),
    repeating-linear-gradient(
      0deg,
      rgba(78, 158, 49, 0.14) 0 0.32rem,
      rgba(255, 255, 255, 0.13) 0.32rem 0.62rem
    );
}

.talents-live-root .talents-content.class-selection-mode .talents-class-help {
  position: absolute;
  z-index: 5;
  left: 0.76rem;
  right: 0.76rem;
  top: 0.66rem;
  margin: 0;
  padding: 0.22rem 0.42rem;
  border: 2px solid #6b5b35;
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.9);
  color: #3e260b;
  text-align: center;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 0.12rem 0 rgba(76, 59, 25, 0.46);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-carousel {
  height: 100%;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice {
  top: 2.18rem;
  width: min(214px, 70%);
  height: min(338px, calc(100% - 6rem));
  border: 3px solid color-mix(in srgb, var(--class-color, #f0c56f) 46%, #6b5b35);
  border-radius: 0.62rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--class-color, #f0c56f) 18%, transparent), transparent 38%),
    linear-gradient(180deg, #fff8dc, #d9c380);
  color: #3e260b;
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.54),
    0 0 0.76rem color-mix(in srgb, var(--class-color, #f0c56f) 20%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-image-wrap {
  height: 7.1rem;
  border: 2px solid color-mix(in srgb, var(--class-color, #f0c56f) 48%, #6d5a37);
  border-radius: 0.44rem;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(55, 124, 52, 0.58) 0 22%, transparent 23%),
    linear-gradient(180deg, #d8ff8f 0, #83d654 100%);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-image {
  width: 7rem;
  height: 7rem;
  filter: drop-shadow(0 0.5rem 0.58rem rgba(42, 48, 22, 0.36));
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-title {
  color: color-mix(in srgb, var(--class-color, #f0c56f) 76%, #26333b);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.04;
  text-shadow:
    0 1px 0 rgba(255, 239, 183, 0.62),
    0 0 0.28rem color-mix(in srgb, var(--class-color, #f0c56f) 26%, transparent);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-role,
.talents-live-root .talents-content.class-selection-mode .talents-class-choice-desc {
  color: #6c4618;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-role {
  font-size: 0.56rem;
  font-weight: 900;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-pill {
  border: 1px solid rgba(91, 68, 31, 0.48);
  background: rgba(255, 248, 220, 0.62);
  color: #3e260b;
  font-size: 0.52rem;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-desc {
  font-size: 0.54rem;
  font-weight: 800;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-controls {
  left: 0.56rem;
  right: 0.56rem;
  bottom: 0.56rem;
  padding: 0.3rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-weapons-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.12rem;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-weapon-chip {
  min-height: 2.7rem;
  border: 2px solid #79582c;
  border-radius: 0.38rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 235, 160, 0.26), transparent 56%),
    linear-gradient(180deg, #d5a248, #8f5b1e);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-weapon-label {
  color: #fff7cf;
  font-size: 0.43rem;
  font-weight: 900;
  text-shadow: 1px 1px 0 #4e2d0d;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-actions {
  grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
  gap: 0.18rem;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-actions .talents-class-nav,
.talents-live-root .talents-content.class-selection-mode .talents-class-choice-select {
  border: 2px solid #845326;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.talents-live-root .talents-content.class-selection-mode .talents-class-choice-select {
  min-height: 2.5rem;
  height: 2.5rem;
  font-size: 0.62rem;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-preview {
  top: 2.72rem;
  width: 6.3rem;
  height: min(15.4rem, calc(100% - 8rem));
  border: 3px solid #6b5b35;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #d9c380);
  opacity: 0.82;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-preview-image {
  width: 4.7rem;
  height: 5.8rem;
}

.talents-live-root .talents-content.class-selection-mode .talents-class-preview-title {
  color: #6c4618;
  font-size: 0.54rem;
  font-weight: 900;
}

.talents-live-root .talents-confirm-modal {
  background: rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.talents-live-root .talents-confirm-card {
  width: min(94%, 304px);
  padding: 0.66rem;
}

.talents-live-root .talents-confirm-title {
  color: #26333b;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.talents-live-root .talents-confirm-text {
  color: #6c4618;
  font-weight: 800;
}

.talents-live-root .talents-confirm-btn {
  min-height: 2.34rem;
  border: 2px solid #6d382c;
  border-radius: 0.42rem;
  font-weight: 900;
}

.talents-live-root .talents-confirm-btn.primary {
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
}

.talents-live-root .talents-confirm-btn.secondary {
  background: linear-gradient(180deg, #f5cf68, #b87825);
  color: #fff8de;
  text-shadow: 1px 1px 0 #4e2d0d;
}

.talents-confirm-modal {
  background: rgba(18, 13, 8, 0.72);
  backdrop-filter: blur(2px);
}

.talents-confirm-card {
  width: min(94%, 304px);
  padding: 0.66rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.talents-confirm-title {
  color: #26333b;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 239, 183, 0.62);
}

.talents-confirm-text {
  color: #6c4618;
  font-weight: 800;
}

.talents-confirm-btn {
  min-height: 2.34rem;
  border: 2px solid #6d382c;
  border-radius: 0.42rem;
  font-weight: 900;
}

.talents-confirm-btn.primary {
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f);
  color: #fff8de;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
}

.talents-confirm-btn.secondary {
  background: linear-gradient(180deg, #f5cf68, #b87825);
  color: #fff8de;
  text-shadow: 1px 1px 0 #4e2d0d;
}

@media (max-width: 340px) {
  .talents-live-root .talents-content {
    inset: 0.28rem 0.28rem 72px;
    gap: 0.22rem;
  }

  .talents-live-root .talents-points-card {
    gap: 0.12rem;
    padding: 0.22rem;
  }

  .talents-live-root .talents-points-label {
    font-size: 0.42rem;
  }

  .talents-live-root .talents-points-value,
  .talents-live-root .talents-class-value {
    font-size: 0.62rem;
  }

  .talents-live-root .talents-content.class-selection-mode .talents-class-choice {
    width: min(206px, 72%);
  }

  .talents-live-root .talents-content.class-selection-mode .talents-class-preview {
    width: 5.7rem;
  }
}

/* Final Fight and PVP page polish: match the parchment field UI. */
.fight-live-root .fight-stage,
.pvp-live-root .pvp-stage {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%) !important;
}

.fight-live-root .fight-stage::before,
.pvp-live-root .pvp-stage::before {
  content: "";
  position: absolute;
  inset: 16% 0 68px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 44% 18%, rgba(55, 122, 52, 0.4) 0 13%, transparent 14%),
    radial-gradient(ellipse at 61% 24%, rgba(121, 229, 93, 0.6) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 42%, rgba(65, 142, 57, 0.24) 0 22%, transparent 23%);
  opacity: 0.56;
}

.fight-live-root .fight-content,
.pvp-live-root .pvp-content {
  position: absolute;
  inset: 0.34rem 0.34rem 72px !important;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.fight-live-root .fight-status,
.pvp-live-root .pvp-status-line {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0.34rem 0.46rem;
  border: 2px solid #6b5b35;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 16%),
    linear-gradient(180deg, #f7f1d8, #efe4bb);
  color: #5b431f;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.72);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.fight-live-root .fight-status[data-error="1"],
.pvp-live-root .pvp-status-line[data-error="1"] {
  color: #8d251e;
}

.fight-live-root .fight-active-encounter,
.fight-live-root .fight-groups,
.pvp-live-root .pvp-tab-panel {
  min-height: 0;
}

.fight-live-root .fight-active-encounter[hidden],
.pvp-live-root .pvp-tab-panel[hidden],
.pvp-live-root .pvp-viewer-card[hidden],
.pvp-live-root .pvp-waiting-card[hidden],
.pvp-live-root .pvp-list-section[hidden] {
  display: none !important;
}

.fight-live-root .fight-board,
.fight-live-root .fight-entry-list,
.pvp-live-root .pvp-target-list,
.pvp-live-root .pvp-rankings-list {
  display: grid;
  gap: 0.38rem;
  min-height: 0;
  overflow: visible;
}

.fight-live-root .fight-encounter-card,
.fight-live-root .fight-selected-card,
.fight-live-root .fight-entry-row,
.pvp-live-root .pvp-tabs,
.pvp-live-root .pvp-viewer-card,
.pvp-live-root .pvp-list-section,
.pvp-live-root .pvp-waiting-card,
.pvp-live-root .pvp-season-card,
.pvp-live-root .pvp-rankings-mode-bar,
.pvp-live-root .pvp-previous-season-header,
.pvp-live-root .pvp-previous-season-card,
.pvp-live-root .pvp-ranking-card,
.pvp-live-root .pvp-target-card,
.pvp-live-root .pvp-empty-card,
.pvp-live-root .pvp-matchmaking-stats-card,
.pvp-live-root .pvp-matchmaking-card {
  border: 3px solid #6b5b35 !important;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb) !important;
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66) !important;
}

.fight-live-root .fight-encounter-card {
  grid-template-columns: 2rem minmax(0, 1fr) 4.2rem;
  min-height: 3.2rem;
  padding: 0.4rem 0.46rem;
}

.fight-active-target {
  border-color: #5f7e2e;
}

.fight-active-target::before,
.fight-active-target::after {
  background: #5f7e2e;
}

.fight-live-root .fight-encounter-kicker,
.pvp-live-root .pvp-viewer-label,
.pvp-live-root .pvp-section-title,
.pvp-live-root .pvp-fighter-label {
  color: #6c4618;
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.fight-live-root .fight-encounter-name,
.fight-live-root .fight-selected-card .fight-entry-name,
.fight-live-root .fight-row-main .fight-entry-name,
.pvp-live-root .pvp-target-copy h2,
.pvp-live-root .pvp-fighter-name,
.pvp-live-root .pvp-waiting-title,
.pvp-live-root .pvp-viewer-empty strong {
  color: #26333b;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.fight-live-root .fight-encounter-name span,
.fight-live-root .fight-encounter-meta,
.fight-live-root .fight-entry-description,
.fight-live-root .fight-row-description,
.fight-live-root .fight-row-meta,
.pvp-live-root .pvp-target-copy p,
.pvp-live-root .pvp-fighter-meta,
.pvp-live-root .pvp-viewer-empty span,
.pvp-live-root .pvp-waiting-target,
.pvp-live-root .pvp-empty-card {
  color: #705229;
  text-shadow: none;
}

.fight-live-root .fight-selected-card {
  gap: 0.44rem;
  margin-bottom: 0;
  padding: 0.5rem;
}

.fight-live-root .fight-selected-top {
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.5rem;
}

.fight-live-root .fight-selected-icon,
.fight-live-root .fight-row-icon,
.pvp-live-root .pvp-target-avatar,
.pvp-live-root .pvp-character-frame {
  border: 2px solid #7a6030 !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 236, 157, 0.34), transparent 62%),
    linear-gradient(180deg, #e8ca78, #b57a28) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 215, 0.45),
    0 0.12rem 0 rgba(88, 61, 21, 0.4) !important;
}

.fight-live-root .fight-selected-icon {
  width: 5.4rem;
  height: 5.4rem;
}

.fight-live-root .fight-selected-glow {
  inset: auto 0.35rem 0.18rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(63, 137, 47, 0.36);
}

.fight-type-badge {
  border: 1px solid rgba(87, 69, 33, 0.46) !important;
  background: rgba(255, 245, 199, 0.66) !important;
  color: #704419 !important;
}

.fight-type-badge[data-kind="boss"] {
  color: #8e2b37 !important;
}

.fight-type-badge[data-kind="endless"] {
  color: #6f3a9c !important;
}

.fight-type-badge[data-kind="uber"] {
  color: #8d6312 !important;
}

.fight-live-root .fight-difficulty-chip,
.fight-uber-picker-toggle,
.fight-uber-option,
.pvp-live-root .pvp-tab {
  min-height: 2rem;
  border: 2px solid #845326 !important;
  border-radius: 0.42rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #dba84d, #a76820) !important;
  color: #fff8de !important;
  font-size: 0.58rem;
  font-weight: 900;
  text-shadow: 1px 1px 0 #4e2d0d;
  box-shadow:
    0 0.12rem 0 rgba(67, 34, 23, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.fight-live-root .fight-difficulty-chip.active,
.fight-uber-option.active,
.pvp-live-root .pvp-tab.active {
  border-color: #6d382c !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f) !important;
  color: #fff8de !important;
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    0 0 0.52rem rgba(255, 229, 130, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

.fight-live-root .fight-selected-difficulty-row .fight-entry-difficulty-choices {
  gap: 0.24rem;
}

.fight-live-root .fight-selected-footer {
  display: grid;
}

.fight-live-root .fight-selected-action,
.fight-live-root .fight-join-btn,
.pvp-live-root .pvp-find-opponent-btn,
.pvp-live-root .pvp-cancel-queue-btn,
.pvp-live-root .pvp-match-accept-btn,
.pvp-live-root .pvp-match-decline-btn {
  min-height: 2.64rem;
  border: 2px solid #6d382c !important;
  border-radius: 0.46rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 219, 143, 0.18), transparent 58%),
    linear-gradient(180deg, #c65d3e, #84311f) !important;
  color: #fff8de !important;
  font-size: 0.66rem;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(76, 28, 18, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(67, 34, 23, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.fight-live-root .fight-selected-action::after {
  top: 0.22rem;
  right: 0.24rem;
  border-color: rgba(93, 70, 31, 0.45);
  background: rgba(255, 244, 200, 0.8);
  color: #5b3b11;
  text-shadow: none;
}

.fight-live-root .fight-entry-row {
  overflow: hidden;
}

.fight-live-root .fight-entry-select {
  min-height: 4.35rem;
  grid-template-columns: 3.35rem minmax(0, 1fr) 3.5rem;
  gap: 0.38rem;
  padding: 0.38rem;
  background: transparent !important;
}

.fight-live-root .fight-row-icon {
  width: 3.2rem;
  height: 3.2rem;
}

.fight-live-root .fight-cost-chip {
  border: 1px solid rgba(91, 68, 31, 0.5) !important;
  background: rgba(255, 248, 220, 0.72) !important;
  color: #3e260b !important;
  font-size: 0.48rem;
  font-weight: 900;
  text-shadow: none;
}

.fight-live-root .fight-entry-row.active {
  border-color: #c46834 !important;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0 0.58rem rgba(255, 214, 113, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.fight-live-root .fight-entry-uber-detail span {
  color: #6d4314 !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.78);
}

.fight-live-root .fight-entry-uber-detail strong {
  color: #334426 !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.pvp-live-root .pvp-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem;
  padding: 0.28rem;
}

.pvp-live-root .pvp-viewer-card {
  min-height: 12rem;
  padding: 0.5rem;
}

.pvp-live-root .pvp-duel-stage {
  grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
  gap: 0.26rem;
}

.pvp-live-root .pvp-fighter-card {
  grid-template-rows: auto 6.7rem auto auto;
  border: 2px solid rgba(107, 91, 53, 0.6);
  border-radius: 0.48rem;
  background: rgba(255, 248, 220, 0.5);
  padding: 0.28rem;
}

.pvp-live-root .pvp-character-frame {
  height: 6.7rem;
}

.pvp-live-root .pvp-loadout-canvas,
.pvp-live-root .pvp-character-layer {
  filter: drop-shadow(0 0.1rem 0 rgba(52, 37, 16, 0.26));
}

.pvp-live-root .pvp-versus {
  align-self: center;
  color: #844321;
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.pvp-live-root .pvp-duel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
  margin-top: 0.42rem;
}

.pvp-live-root .pvp-duel-accepted-note,
.pvp-live-root .pvp-duel-accept-timeout {
  margin-top: 0.36rem;
  color: #4f260f;
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.78);
}

.pvp-live-root .pvp-duel-response-timer {
  color: #9b3f20;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.78);
}

.pvp-live-root .pvp-list-section {
  min-height: 0;
  padding: 0.42rem;
}

.pvp-live-root .pvp-matchmaking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.38rem;
  min-height: 0;
  padding: 0.44rem;
}

.pvp-live-root .pvp-matchmaking-stats-card {
  min-height: 0;
  padding: 0.22rem 0.28rem;
}

.pvp-live-root .pvp-matchmaking-card.is-locked {
  border-color: #717177 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 14%),
    linear-gradient(180deg, #e8e0c9, #d2c8aa) !important;
}

.pvp-live-root .pvp-matchmaking-card.is-locked .pvp-target-copy p {
  color: #8a431d;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 244, 202, 0.72);
}

.pvp-live-root .pvp-find-opponent-btn {
  width: 100%;
}

.pvp-live-root .pvp-matchmaking-stats span,
.pvp-live-root .pvp-matchmaking-free span {
  border-color: rgba(122, 72, 29, 0.42);
  background: rgba(255, 248, 222, 0.78);
  color: #5e3a15;
}

.pvp-live-root .pvp-matchmaking-stats strong,
.pvp-live-root .pvp-matchmaking-free strong {
  color: #9b3f20;
}

.pvp-live-root .pvp-ranking-card {
  grid-template-columns: 2.1rem 2.45rem minmax(0, 1fr) 3rem;
  gap: 0.34rem;
  min-height: 3.65rem;
  padding: 0.38rem;
}

.pvp-live-root .pvp-ranking-card.is-viewer {
  border-color: #9b6e25;
  box-shadow: inset 0 0 0 1px rgba(122, 72, 29, 0.16);
}

.pvp-live-root .pvp-ranking-self {
  border-color: #9b6e25;
  color: #6b4218;
}

.pvp-live-root .pvp-season-card {
  gap: 0.06rem;
  min-height: 3.1rem;
  padding: 0.42rem 0.52rem;
}

.pvp-live-root .pvp-season-card span {
  color: #7a481d;
  font-size: 0.62rem;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.pvp-live-root .pvp-season-card strong {
  color: #4a2c0f;
  font-size: 0.78rem;
}

.pvp-live-root .pvp-rankings-mode-bar {
  gap: 0.24rem;
  padding: 0.24rem;
}

.pvp-live-root .pvp-rankings-mode-bar button,
.pvp-live-root .pvp-previous-season-header button,
.pvp-live-root .pvp-previous-season-card {
  border-color: #a17b36;
  background: rgba(255, 244, 205, 0.66);
  color: #5c3513;
}

.pvp-live-root .pvp-rankings-mode-bar button.active {
  border-color: #8a5a20;
  background: linear-gradient(180deg, #f0d889, #e4b45f);
  color: #3e260b;
}

.pvp-live-root .pvp-previous-season-card {
  min-height: 3.28rem;
  align-content: center;
  padding: 0.48rem 0.56rem;
}

.pvp-live-root .pvp-previous-season-card span,
.pvp-live-root .pvp-previous-season-header strong {
  color: #4a2c0f;
  font-size: 0.78rem;
}

.pvp-live-root .pvp-previous-season-card strong {
  color: #7a481d;
}

.pvp-live-root .pvp-previous-season-card small,
.pvp-live-root .pvp-previous-season-header span {
  color: #7d6030;
}

.pvp-live-root .pvp-previous-season-header {
  gap: 0.42rem;
  padding: 0.44rem;
}

.pvp-live-root .pvp-ranking-rank,
.pvp-live-root .pvp-ranking-rating {
  color: #7a481d;
  font-size: 0.72rem;
  text-shadow: 0 1px 0 rgba(255, 245, 202, 0.72);
}

.pvp-live-root .pvp-target-avatar {
  width: 2.2rem;
  height: 2.2rem;
}

.pvp-live-root .pvp-waiting-card {
  min-height: 12.4rem;
  place-items: center;
  text-align: center;
}

.pvp-live-root .pvp-waiting-timer {
  border-color: #7a6030;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 236, 157, 0.36), transparent 60%),
    linear-gradient(180deg, #e8ca78, #b57a28);
  color: #fff8de;
  text-shadow: 1px 1px 0 #4e2d0d;
}

.pvp-live-root .pvp-search-spinner {
  --pvp-spinner-track: rgba(120, 88, 33, 0.24);
  --pvp-spinner-tail: rgba(164, 81, 40, 0.4);
  --pvp-spinner-head: #a45128;
}

@media (max-width: 340px) {
  .fight-live-root .fight-content,
  .pvp-live-root .pvp-content {
    inset: 0.28rem 0.28rem 72px !important;
    gap: 0.26rem;
  }

  .fight-live-root .fight-selected-top {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.38rem;
  }

  .fight-live-root .fight-selected-icon {
    width: 4.6rem;
    height: 4.6rem;
  }

  .fight-live-root .fight-selected-card .fight-entry-name {
    font-size: 0.88rem;
  }

  .fight-live-root .fight-entry-description {
    font-size: 0.58rem;
  }

  .fight-live-root .fight-difficulty-chip {
    min-height: 1.82rem;
    font-size: 0.5rem;
  }

  .fight-live-root .fight-entry-select {
    grid-template-columns: 2.9rem minmax(0, 1fr) 3.1rem;
  }

  .fight-live-root .fight-row-icon {
    width: 2.74rem;
    height: 2.74rem;
  }

  .pvp-live-root .pvp-viewer-card {
    min-height: 11.4rem;
  }
}

/* Final Gear inspect rarity title and square close lock. */
.loadout-live-root .item-inspect-modal[data-rarity] .item-inspect-title,
.loadout-live-root .item-inspect-card[style*="--slot-rarity-color"] .item-inspect-title {
  color: color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 92%, #ffffff) !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.045rem rgba(37, 24, 10, 0.78);
  text-shadow:
    0 1px 0 rgba(255, 247, 195, 0.46),
    1px 1px 0 rgba(48, 28, 9, 0.78),
    -1px 1px 0 rgba(48, 28, 9, 0.78),
    0 0 0.3rem color-mix(in srgb, var(--slot-rarity-color, #f0c56f) 42%, transparent);
}

.loadout-live-root .item-inspect-close,
.layout.panel-mode.single-editor.loadout-live-root .item-inspect-close {
  width: 1.72rem !important;
  height: 1.72rem !important;
  inline-size: 1.72rem !important;
  block-size: 1.72rem !important;
  min-width: 1.72rem !important;
  min-height: 1.72rem !important;
  max-width: 1.72rem !important;
  max-height: 1.72rem !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  flex: 0 0 1.72rem !important;
  overflow: hidden !important;
}

/* Final Fight encounter title readability on parchment cards. */
.fight-live-root .fight-row-main .fight-entry-name,
.fight-live-root .fight-selected-card .fight-entry-name {
  paint-order: stroke fill;
  -webkit-text-stroke: 0.018rem rgba(54, 33, 10, 0.58);
  text-shadow:
    0 1px 0 rgba(255, 248, 209, 0.68),
    0 0.07rem 0 rgba(54, 33, 10, 0.48);
}

.fight-live-root .fight-entry-description,
.fight-live-root .fight-row-description {
  font-size: 0.62rem;
  line-height: 1.22;
}

.fight-live-root .fight-entry-row[data-kind="normal"] .fight-entry-name,
.fight-live-root .fight-selected-card[data-kind="normal"] .fight-entry-name {
  color: #26333b !important;
}

.fight-live-root .fight-entry-row[data-kind="endless"] .fight-entry-name,
.fight-live-root .fight-selected-card[data-kind="endless"] .fight-entry-name {
  color: #b85dff !important;
}

.fight-live-root .fight-entry-row[data-kind="boss"] .fight-entry-name,
.fight-live-root .fight-selected-card[data-kind="boss"] .fight-entry-name {
  color: #ff4f7a !important;
}

.fight-live-root .fight-entry-row[data-kind="uber"] .fight-entry-name,
.fight-live-root .fight-selected-card[data-kind="uber"] .fight-entry-name {
  color: #d77b16 !important;
  -webkit-text-stroke: 0.02rem rgba(65, 36, 9, 0.72);
  text-shadow:
    0 1px 0 rgba(255, 239, 173, 0.46),
    0 0.06rem 0 rgba(65, 36, 9, 0.68),
    0 0 0.14rem rgba(65, 36, 9, 0.44);
}

/* Final Fight status prompt removal. */
.fight-live-root .fight-status {
  display: none !important;
}

/* Final PVP content inset fix: old width/padding made the panel hug the right edge. */
.pvp-live-root .pvp-content {
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 0 0.12rem 0 0 !important;
  scrollbar-gutter: stable;
}

.pvp-live-root .pvp-tabs,
.pvp-live-root .pvp-tab-panel,
.pvp-live-root .pvp-viewer-card,
.pvp-live-root .pvp-list-section,
.pvp-live-root .pvp-waiting-card,
.pvp-live-root .pvp-season-card,
.pvp-live-root .pvp-rankings-mode-bar,
.pvp-live-root .pvp-previous-season-header,
.pvp-live-root .pvp-previous-season-card,
.pvp-live-root .pvp-ranking-card,
.pvp-live-root .pvp-target-card,
.pvp-live-root .pvp-empty-card,
.pvp-live-root .pvp-matchmaking-card {
  box-sizing: border-box;
  max-width: 100%;
}

/* Final PVP status prompt removal. */
.pvp-live-root .pvp-status-line {
  display: none !important;
}

/* PVP rankings can grow beyond the extension viewport; keep rows full-height and let the page scroll. */
.pvp-live-root #pvpRankingsPanel {
  flex: 0 0 auto !important;
  overflow: visible !important;
  padding-bottom: 0.36rem;
}

.pvp-live-root #pvpRankingsPanel .pvp-rankings-list {
  flex: 0 0 auto;
  grid-auto-rows: minmax(3.28rem, auto);
  overflow: visible;
}

.pvp-live-root #pvpRankingsPanel .pvp-previous-season-card,
.pvp-live-root #pvpRankingsPanel .pvp-ranking-card {
  flex: 0 0 auto;
}

/* Final Leaderboard first-row border guard. */
.leaderboard-live-root .fight-leaderboard-list,
.leaderboard-live-root .fight-endless-global-list {
  padding: 0.46rem 0.16rem 0.24rem 0.12rem !important;
  scroll-padding-top: 0.46rem;
}

.leaderboard-live-root .fight-leaderboard-row,
.leaderboard-live-root .fight-endless-global-row {
  box-shadow:
    0 0.14rem 0 rgba(73, 48, 18, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 0 0 2px rgba(53, 34, 12, 0.38);
}

.leaderboard-live-root .fight-leaderboard-row:first-child,
.leaderboard-live-root .fight-endless-global-row:first-child {
  margin-top: 0.04rem;
  box-shadow:
    0 0.14rem 0 rgba(86, 54, 15, 0.68),
    0 0 0.52rem rgba(255, 212, 72, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 2px rgba(53, 34, 12, 0.42);
}

/* Final mobile Talents drag guard. */
html.cw-mobile-talents-scroll-lock,
html.cw-mobile-talents-scroll-lock body.loadout-live-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html.cw-mobile-talents-scroll-lock .talents-live-root .talents-content.class-selection-mode {
  touch-action: pan-y;
}

/* Final global banner polish: encounter join and PVP duel prompts in the parchment UI. */
.cw-encounter-banner,
.cw-pvp-duel-banner {
  position: fixed;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 280;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.25rem;
  box-sizing: border-box;
  padding: 0.46rem;
  border: 3px solid #6b5b35;
  border-radius: 0.52rem;
  color: #3e260b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 16%),
    linear-gradient(180deg, #f8f1d7, #ead9a3);
  box-shadow:
    0 0.22rem 0 rgba(76, 59, 25, 0.58),
    0 0.46rem 0.78rem rgba(27, 54, 22, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.cw-encounter-banner {
  top: max(0.42rem, env(safe-area-inset-top));
}

.cw-pvp-duel-banner {
  top: max(0.55rem, env(safe-area-inset-top));
}

.cw-pvp-duel-banner[hidden] {
  display: none;
}

.cw-encounter-banner[hidden] {
  display: none;
}

.cw-encounter-banner-icon,
.cw-pvp-duel-banner-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 2px solid #8b682d;
  border-radius: 0.42rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(180deg, #f4cf6f, #b97825);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.cw-encounter-banner-icon img,
.cw-pvp-duel-banner-icon img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 0 rgba(76, 42, 14, 0.58));
}

.cw-encounter-banner-copy,
.cw-pvp-duel-banner-copy {
  min-width: 0;
}

.cw-encounter-banner-title,
.cw-pvp-duel-banner-title {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  color: #26333b;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.02;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 248, 218, 0.72),
    1px 1px 0 rgba(80, 50, 16, 0.24);
}

.cw-encounter-banner-meta,
.cw-pvp-duel-banner-meta,
.cw-pvp-duel-banner-timer {
  margin: 0.18rem 0 0;
  color: #5f4219;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.12;
}

.cw-pvp-duel-banner-timer {
  display: inline-grid;
  min-width: 2.35rem;
  min-height: 1.05rem;
  place-items: center;
  padding: 0 0.32rem;
  border: 1px solid #a37a32;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 42%),
    linear-gradient(180deg, #fff1bd, #d7a84b);
  color: #5f3511;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.74);
}

.cw-encounter-banner-actions,
.cw-pvp-duel-banner-actions {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.32rem;
}

.cw-encounter-banner-join,
.cw-encounter-banner-close,
.cw-pvp-duel-banner-accept,
.cw-pvp-duel-banner-decline {
  min-height: 2.15rem;
  box-sizing: border-box;
  border: 2px solid #8b682d;
  border-radius: 0.42rem;
  cursor: pointer;
  color: #fff8de;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(72, 35, 10, 0.8),
    1px 1px 0 rgba(72, 35, 10, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(180deg, #efbd4d, #b77725);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.cw-encounter-banner-join,
.cw-pvp-duel-banner-accept {
  min-width: 4.7rem;
}

.cw-encounter-banner-close {
  width: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
}

.cw-pvp-duel-banner-decline {
  min-width: 4.7rem;
  border-color: #8a3e2c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #d76a3f, #a33d25);
}

.cw-encounter-banner-join:disabled,
.cw-pvp-duel-banner-accept:disabled,
.cw-pvp-duel-banner-decline:disabled {
  cursor: default;
  opacity: 0.62;
  filter: grayscale(0.28);
}

@media (max-width: 520px) {
  .cw-encounter-banner,
  .cw-pvp-duel-banner {
    left: 0.34rem;
    right: 0.34rem;
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.38rem;
    padding: 0.38rem;
  }

  .cw-encounter-banner-icon,
  .cw-pvp-duel-banner-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .cw-encounter-banner-icon img,
  .cw-pvp-duel-banner-icon img {
    width: 2.04rem;
    height: 2.04rem;
  }

  .cw-encounter-banner-actions,
  .cw-pvp-duel-banner-actions {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cw-pvp-duel-banner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-encounter-banner-join,
  .cw-pvp-duel-banner-accept,
  .cw-pvp-duel-banner-decline {
    width: 100%;
    min-width: 0;
  }
}

/* Final Duel loadout polish: Talents and Skills use the active pixel/parchment UI. */
.pvp-live-root #pvpTalentsPanel,
.pvp-live-root #pvpSkillsPanel {
  padding: 0 !important;
}

.pvp-live-root .pvp-tab-panel.active,
.pvp-live-root .pvp-tab-panel:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
}

.pvp-live-root #pvpTalentsPanel,
.pvp-live-root #pvpSkillsPanel,
.pvp-live-root .pvp-duel-loadout-list {
  flex: 1 1 auto;
  min-height: 0;
}

.pvp-live-root .pvp-duel-loadout-list {
  display: flex !important;
  flex-direction: column;
  gap: 0.46rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.04rem 0.04rem 0.18rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pvp-live-root .pvp-duel-loadout-card {
  flex: 0 0 auto;
  border: 3px solid #6b5b35 !important;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 16%),
    linear-gradient(180deg, #f8f1d7, #ead9a3) !important;
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.pvp-live-root .pvp-duel-loadout-card.is-locked {
  border-color: #8c8161 !important;
  filter: grayscale(0.28) saturate(0.78);
  opacity: 0.72;
}

.pvp-live-root .pvp-duel-loadout-heading strong {
  color: #3e260b !important;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.74);
}

.pvp-live-root .pvp-duel-loadout-heading span {
  color: #5f4219 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.52);
}

.pvp-live-root .pvp-duel-talent-row {
  gap: 0.34rem;
}

.pvp-live-root .pvp-duel-skill-groups {
  display: grid;
  gap: 0.5rem;
}

.pvp-live-root .pvp-duel-skill-group {
  display: grid;
  gap: 0.3rem;
}

.pvp-live-root .pvp-duel-skill-group h3 {
  margin: 0;
  color: #5f3511;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.72);
}

.pvp-live-root .pvp-duel-talent-btn,
.pvp-live-root .pvp-duel-skill-btn {
  border: 2px solid #8b682d !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #fff1bd, #d7a84b) !important;
  color: #3e260b !important;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.72);
  box-shadow:
    0 0.12rem 0 rgba(76, 59, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.pvp-live-root .pvp-duel-talent-btn {
  min-height: 3.35rem;
  padding: 0.42rem 0.48rem;
}

.pvp-live-root .pvp-duel-talent-btn strong,
.pvp-live-root .pvp-duel-skill-copy strong {
  color: #3e260b !important;
  font-size: 0.68rem;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.72);
}

.pvp-live-root .pvp-duel-talent-btn span,
.pvp-live-root .pvp-duel-skill-copy small {
  color: #6c4618 !important;
  font-size: 0.54rem;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.52);
}

.pvp-live-root .pvp-duel-talent-effect {
  display: block;
  color: #735428 !important;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.52);
}

.pvp-live-root .pvp-duel-talent-btn.is-selected,
.pvp-live-root .pvp-duel-skill-btn.is-selected {
  border-color: #2f6f2c !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(180deg, #62b54c, #2f7f2d) !important;
  color: #fff8de !important;
  text-shadow: 0 2px 0 rgba(25, 73, 23, 0.78);
  box-shadow:
    0 0.14rem 0 rgba(31, 81, 25, 0.56),
    0 0 0.52rem rgba(190, 255, 120, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.pvp-live-root .pvp-duel-talent-btn.is-selected strong,
.pvp-live-root .pvp-duel-talent-btn.is-selected span,
.pvp-live-root .pvp-duel-talent-btn.is-selected .pvp-duel-talent-effect,
.pvp-live-root .pvp-duel-skill-btn.is-selected strong,
.pvp-live-root .pvp-duel-skill-btn.is-selected small {
  color: #fff8de !important;
  text-shadow: 0 2px 0 rgba(25, 73, 23, 0.78);
}

.pvp-live-root .pvp-duel-talent-btn:disabled,
.pvp-live-root .pvp-duel-skill-btn:disabled {
  border-color: #8c8161 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(180deg, #e4dfc8, #b8ad88) !important;
  color: rgba(76, 59, 25, 0.62) !important;
  filter: grayscale(0.22);
}

.pvp-live-root .pvp-duel-skill-btn img,
.pvp-live-root .pvp-duel-skill-fallback {
  border: 2px solid #8b682d !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 244, 166, 0.34), transparent 62%),
    linear-gradient(180deg, #f4cf6f, #b97825) !important;
  color: #3e260b !important;
  box-shadow:
    0 0.1rem 0 rgba(76, 59, 25, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.pvp-live-root .pvp-duel-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
}

.pvp-live-root .pvp-duel-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  min-height: 1rem;
  border: 1px solid #a37a32;
  border-radius: 999px;
  padding: 0.08rem 0.26rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 42%),
    linear-gradient(180deg, #fff1bd, #d7a84b);
  color: #5f3511;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.74);
}

.pvp-live-root .pvp-duel-skill-chip span {
  color: #7b5722;
}

.pvp-live-root .pvp-duel-skill-chip strong {
  color: #3e260b;
}

.pvp-live-root .pvp-duel-skill-effect {
  display: block;
  margin-top: 0.18rem;
  color: #5f3511 !important;
  font-size: 0.52rem !important;
  font-weight: 900;
  line-height: 1.16;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.72) !important;
}

.pvp-live-root .pvp-duel-skill-btn.is-selected .pvp-duel-skill-chip {
  border-color: #f2ffd0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 38%),
    linear-gradient(180deg, #fff8dc, #dbe96a);
  color: #244b14 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 218, 0.82) !important;
  box-shadow:
    0 1px 0 rgba(25, 73, 23, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.pvp-live-root .pvp-duel-skill-btn.is-selected .pvp-duel-skill-chip span,
.pvp-live-root .pvp-duel-skill-btn.is-selected .pvp-duel-skill-chip strong {
  color: #244b14 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 218, 0.82) !important;
}

.pvp-live-root .pvp-duel-skill-btn.is-selected .pvp-duel-skill-effect {
  color: #fff8de !important;
  text-shadow: 0 2px 0 rgba(25, 73, 23, 0.78) !important;
}

/* Final extension entry pages: panel/mobile/component use the active pixel/parchment field UI. */
.loadout-live-body .panel-entry-root {
  position: relative;
  isolation: isolate;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(54, 137, 48, 0.1) 0,
      rgba(54, 137, 48, 0.1) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.42rem,
      rgba(255, 255, 255, 0.06) 0.72rem
    ),
    linear-gradient(180deg, #53d5d0 0 16%, #cdf47a 16% 49%, #8bdc55 49% 100%) !important;
}

.loadout-live-body .panel-entry-root::before {
  content: "";
  position: absolute;
  inset: 16% 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 42% 24%, rgba(55, 122, 52, 0.42) 0 13%, transparent 14%),
    radial-gradient(ellipse at 60% 26%, rgba(121, 229, 93, 0.62) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 40%, rgba(65, 142, 57, 0.24) 0 22%, transparent 23%);
  opacity: 0.56;
}

.loadout-live-body .panel-entry-root .editor-card,
.loadout-live-body .panel-entry-card,
.loadout-live-body .panel-logo-wrap,
.loadout-live-body .panel-status,
.loadout-live-body .panel-view {
  position: relative;
  z-index: 1;
}

.loadout-live-body .panel-status {
  min-height: 1.16rem;
  padding: 0.2rem 0.36rem;
  color: #3e260b !important;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.72);
}

.loadout-live-body .panel-status[data-error="1"] {
  color: #8d251e !important;
}

.loadout-live-body .panel-state-card {
  border: 3px solid #6b5b35 !important;
  border-radius: 0.52rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 14%),
    linear-gradient(180deg, #f7f1d8, #efe4bb) !important;
  color: #3e260b;
  box-shadow:
    0 0.18rem 0 rgba(76, 59, 25, 0.58),
    0 0.36rem 0.74rem rgba(40, 80, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66) !important;
}

.loadout-live-body .panel-state-title {
  color: #3e260b !important;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.78);
}

.loadout-live-body .panel-state-subtitle {
  color: #5f3511 !important;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.24;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.66);
}

.loadout-live-body .panel-primary-btn {
  min-height: 2.25rem;
  border: 2px solid #74381f !important;
  border-radius: 0.38rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 18%),
    linear-gradient(180deg, #c95c3a, #9b3b25) !important;
  color: #fff8de !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(87, 35, 20, 0.82);
  box-shadow:
    0 0.14rem 0 rgba(76, 35, 21, 0.58),
    inset 0 0 0 1px rgba(255, 230, 178, 0.32);
}

.loadout-live-body .panel-primary-btn:hover,
.loadout-live-body .panel-primary-btn:focus-visible {
  border-color: #8d4b27 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(180deg, #d86b43, #a8452c) !important;
  box-shadow:
    0 0.14rem 0 rgba(76, 35, 21, 0.58),
    0 0 0.5rem rgba(255, 234, 164, 0.42),
    inset 0 0 0 1px rgba(255, 238, 198, 0.42);
}

/* Hide routine creator hints while keeping actual errors visible. */
.character-creator-root .status:not([data-error="1"]) {
  display: none;
}

.character-creator-root .status[data-error="1"] {
  display: block;
}
