/* Faceted controls replace only the small controls, keeping the existing horizontal cards. */
.modal-cosmetics .enamel-action .enamel-action-face,
.modal-cosmetics .tab-switch button > span {
  border: 12px solid transparent;
  border-image: url('./assets/faceted-controls-v1/shop-buy.webp') 96 fill / 12px / 0 stretch;
  background: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 48px;
  padding: 0 2px;
  color: #fff0cd;
  text-shadow: 0 1px 1px #142128;
}
.modal-cosmetics .enamel-equip .enamel-action-face,
.modal-cosmetics .tab-switch button > span { border-image-source: url('./assets/faceted-controls-v1/shop-equip.webp'); }
.modal-cosmetics .cosmetic-equipped .enamel-action-face { border-image-source: url('./assets/faceted-controls-v1/shop-equipped.webp'); color: #b4e8b4; text-shadow: none; }
.modal-cosmetics .tab-switch button[aria-selected="true"] > span {
  border-image-source: url('./assets/faceted-controls-v1/tab-active.webp');
  background: none;
  color: #fff0cd;
}
.modal-cosmetics .tab-switch button { border-radius: 0; }
.modal-cosmetics .enamel-action-face { gap: 5px; font-variant-numeric: tabular-nums; }
.faceted-coin { display: block; width: 22px; height: 22px; flex: none; object-fit: contain; }
.faceted-check { display: block; width: 21px; height: 21px; flex: none; }
.modal-cosmetics button.enamel-action { cursor: pointer; }
.modal-cosmetics .cosmetic-equipped { cursor: default; }
.modal-cosmetics .enamel-action.cosmetic-equipped:active .enamel-action-face { transform: none; }
.modal-cosmetics button.enamel-action:disabled { opacity: .6; filter: grayscale(.7); cursor: default; }
.modal-cosmetics button.enamel-action:disabled .enamel-action-face { opacity: 1; }
.modal-cosmetics .enamel-action-face, .modal-cosmetics .tab-switch button > span { transition: transform 90ms ease, filter 120ms ease; }
.modal-cosmetics button.enamel-action:not(:disabled):active .enamel-action-face,
.modal-cosmetics .tab-switch button:active > span { transform: translateY(1px) scale(.985); }
.modal-cosmetics .cosmetic-card:focus-visible,
.modal-cosmetics .cosmetic-equipped:focus-visible { outline: 2px solid #ffe1a0; outline-offset: -3px; }
.modal-cosmetics button.enamel-action:focus-visible,
.modal-cosmetics .tab-switch button:focus-visible { outline: 2px solid #ffe1a0; outline-offset: 3px; }

.game-shell > .order-board { margin-bottom: 46px; }
.order-picker-toggle,
.initiation-modal .initiation-shop {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url('./assets/faceted-controls-v1/key-square.webp') center / contain no-repeat;
  box-shadow: none;
  color: #fff0cd;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 90ms ease;
}
.order-picker-toggle { bottom: -46px; }
.order-picker-toggle img, .initiation-shop img { display: block; width: 24px; height: 24px; pointer-events: none; object-fit: contain; }
.faceted-chevron { transition: transform 140ms ease; }
.order-picker-toggle[aria-expanded="true"] .faceted-chevron { transform: rotate(180deg); }
.order-picker-toggle:active:not(:disabled) { transform: translate(-50%, 1px) scale(.985); }
.initiation-modal .initiation-shop:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.order-picker-toggle:focus-visible, .initiation-modal .initiation-shop:focus-visible { outline: 2px solid #ffe1a0; outline-offset: 3px; }
.order-picker-toggle:disabled, .initiation-modal .initiation-shop:disabled { opacity: .6; filter: grayscale(.7); cursor: default; }
.initiation-requirement.has-action { grid-template-columns: 26px minmax(0, 1fr) 48px; }
@media (prefers-reduced-motion: reduce) {
  .modal-cosmetics .enamel-action-face, .modal-cosmetics .tab-switch button > span,
  .order-picker-toggle, .initiation-modal .initiation-shop, .faceted-chevron { transition: none; }
  .modal-cosmetics button.enamel-action:not(:disabled):active .enamel-action-face,
  .modal-cosmetics .tab-switch button:active > span,
  .initiation-modal .initiation-shop:active:not(:disabled) { transform: none; }
  .order-picker-toggle:active:not(:disabled) { transform: translateX(-50%); }
}
