/* Verified v3 rasters. SOURCE-pixel slices paint inside existing boxes; no geometry changes. */
body.shop-open #theme-preview-bar { display: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] {
  --theme-scene-image: var(--theme-art-bg-preparation);
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#prep-dashboard, #shop-modal.shop-sheet) { background-image: var(--theme-art-bg-preparation); }

:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#prep-inventory-host .console-center, #shop-modal.shop-sheet .shop-catalog, #shop-modal.shop-sheet .shop-detail, #shop-modal.shop-sheet .shop-settings-panel, #mobile-drawer, #progression-dialog, #doom-guard-evolution, #skill-modal, #talent-modal, #attribute-panel, #run-reward-dialog, #player-commands-dialog) {
  background: transparent;
  border-image: var(--theme-art-panel-stone) 48 fill / 12px / 0 stretch;
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(.prep-dashboard-header, #shop-modal.shop-sheet .shop-header, #shop-modal.shop-sheet .shop-footer) {
  background: #10161ddf;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(.prep-shortcuts, #shop-modal.shop-sheet .shop-bag-panel, #shop-modal.shop-sheet .shop-quick-controls) { background: transparent; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet::before { content: ''; position: absolute; z-index: 2; pointer-events: none; top: calc(var(--rd-safe-area-top, 0px) + 40px); right: calc(var(--rd-safe-area-right, 0px) + var(--shop-detail-width) / 2 - 20px); width: 40px; height: 20px; background: var(--theme-art-ornament-crystal) center / contain no-repeat; }

:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#prep-dashboard, #shop-modal.shop-sheet, #mobile-drawer, #progression-dialog, #doom-guard-evolution, #hero-selection-modal, #combat-quick-access, #skill-modal, #talent-modal, #attribute-panel, #run-reward-dialog, #player-commands-dialog) button {
  background: transparent;
  border-image: var(--theme-art-button-neutral-normal) 24 fill / 8px / 0 stretch;
  border-radius: 0;
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet :is(#shop-upgrade-btn, #shop-attributes-btn, #shop-display-labels, #shop-settings-close, #shop-close-btn, #shop-buy-btn, #shop-lock-toggle, #shop-reroll-btn, #btn-toggle-destroy, #btn-toggle-corruption, #shop-auto-toggle, #shop-auto-coin-toggle, #shop-lock-auto, #shop-lock-once, #shop-lock-always) {
  background: transparent; border-image: var(--theme-art-button-neutral-normal) 24 fill / 8px / 0 stretch; border-radius: 0; box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet :is(#shop-upgrade-btn, #shop-attributes-btn, #shop-display-labels, #shop-settings-close, #shop-close-btn, #shop-buy-btn, #shop-lock-toggle, #shop-reroll-btn, #btn-toggle-destroy, #btn-toggle-corruption, #shop-auto-toggle, #shop-auto-coin-toggle, #shop-lock-auto, #shop-lock-once, #shop-lock-always):is(:active, [data-theme-pressed="true"]):not(:disabled) { border-image-source: var(--theme-art-button-neutral-pressed); filter: brightness(.82); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet :is(#shop-upgrade-btn, #shop-attributes-btn, #shop-display-labels, #shop-settings-close, #shop-close-btn, #shop-buy-btn, #shop-lock-toggle, #shop-reroll-btn, #btn-toggle-destroy, #btn-toggle-corruption, #shop-auto-toggle, #shop-auto-coin-toggle, #shop-lock-auto, #shop-lock-once, #shop-lock-always):disabled { border-image-source: var(--theme-art-button-neutral-disabled); filter: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#prep-dashboard, #shop-modal.shop-sheet, #mobile-drawer, #progression-dialog, #doom-guard-evolution, #combat-quick-access) button:is(:active, [data-theme-pressed="true"]):not(:disabled) {
  background: transparent;
  border-image-source: var(--theme-art-button-neutral-pressed);
  filter: brightness(.82);
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#prep-dashboard, #shop-modal.shop-sheet, #mobile-drawer, #progression-dialog, #doom-guard-evolution) button:disabled { border-image-source: var(--theme-art-button-neutral-disabled); filter: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #prep-dashboard #btn-banner-start-wave,
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet #shop-reroll-btn { background: transparent; border-image-source: var(--theme-art-button-primary-normal); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #prep-dashboard #btn-banner-start-wave:is(:active, [data-theme-pressed="true"]):not(:disabled),
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet #shop-reroll-btn:is(:active, [data-theme-pressed="true"]):not(:disabled) { border-image-source: var(--theme-art-button-primary-pressed); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #prep-dashboard #btn-banner-start-wave:disabled,
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet #shop-reroll-btn:disabled { border-image-source: var(--theme-art-button-primary-disabled); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #progression-dialog [role='tab'][aria-selected='true'] { color: #ffe1a2; outline: 1px solid var(--theme-gold); outline-offset: -3px; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet #shop-settings > summary { background: transparent; border-image: var(--theme-art-button-neutral-normal) 24 fill / 8px / 0 stretch; border-radius: 0; box-shadow: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet #shop-settings > summary:is(:active, [data-theme-pressed="true"]) { border-image-source: var(--theme-art-button-neutral-pressed); filter: brightness(.82); }

:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] body :is(#prep-skills-grid .cmd-slot, #prep-inventory-host .inv-slot, #shop-modal.shop-sheet .shop-grid button.shop-item, #shop-modal.shop-sheet .inv-slot) {
  background: transparent;
  border-image: var(--theme-art-slot-normal) 16 fill / 6px / 0 stretch;
  border-radius: 0;
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] body #shop-modal.shop-sheet .shop-grid button.shop-item.selected { border-image-source: var(--theme-art-slot-selected); box-shadow: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] body :is(#prep-skills-grid .cmd-slot.unlearned, #shop-modal.shop-sheet .shop-grid button.shop-item:disabled) { border-image-source: var(--theme-art-slot-disabled); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet .shop-lock-menu { background: #10161df5; border-image: var(--theme-art-panel-stone) 48 fill / 8px / 0 stretch; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #shop-modal.shop-sheet .shop-lock-menu button[aria-pressed='true'] { color: #ffe1a2; outline: 1px solid var(--theme-gold); outline-offset: -3px; }

:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] body::after { border: 3px solid transparent; border-image: var(--theme-art-frame-screen) 40 / 8px / 0 stretch; box-shadow: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] body.mobile-in-combat::before { content: ''; position: fixed; z-index: 2501; pointer-events: none; top: -6px; left: calc(50% - 40px); width: 80px; height: 40px; background: var(--theme-art-ornament-crystal) center / contain no-repeat; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#mobile-joystick, #mobile-attack, #mobile-attack-minion, #mobile-attack-boss) { border-color: transparent; background: #111820c9; box-shadow: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#mobile-joystick, #mobile-attack, #mobile-attack-minion, #mobile-attack-boss)::after {
  content: ''; position: absolute; inset: -2px; z-index: 5; pointer-events: none;
  background: var(--theme-art-control-ring) center / 100% 100% no-repeat;
}
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] :is(#mobile-attack, #mobile-attack-minion, #mobile-attack-boss):active::after { background-image: var(--theme-art-control-ring-pressed); }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #mobile-joystick-thumb { background: var(--theme-art-joystick-thumb) center / contain no-repeat; border-color: transparent; box-shadow: none; }
.theme-swatch-black-gold { background-image: var(--theme-art-panel-stone, none); background-size: 100% 100%; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #doom-guard-evolution-open { background: transparent; border-image: var(--theme-art-button-neutral-normal) 24 fill / 8px / 0 stretch; box-shadow: none; }
:root[data-ui-theme='black-gold'][data-ui-theme-assets='ready'] #doom-guard-evolution-open:is(:active, [data-theme-pressed='true']) { border-image-source: var(--theme-art-button-neutral-pressed); filter: brightness(.82); }
