/* Decorative surfaces share one depth token. Zero-length transparency also
   composes with inset borders; `none` cannot be a layer in a shadow list.
   Interactive glow, focus rings, modal elevation and overlays keep their owners. */
html:root {
  --dt-surface-depth: 0 0 0 0 transparent;
  --card-shadow: var(--dt-surface-depth);
  --img-shadow: var(--dt-surface-depth);
  --dt-card-idle-shadow: var(--dt-surface-depth);
  --dt-card-hover-shadow: var(--dt-surface-depth);
  --dt-card-focus-visible-shadow: var(--dt-surface-depth);
  --dt-accordion-idle-shadow: var(--dt-surface-depth);
  --dt-accordion-idle-bg: var(--dt-card-idle-background);
}

body.dt-public-shell .home-hero-banner__frame {
  box-shadow: var(--dt-surface-depth), inset 0 0 0 1px rgba(255,255,255,.02);
}

body.dt-public-shell .product-card,
body[data-dt-surface-cleanup] .product-card {
  box-shadow: var(--dt-surface-depth);
}

body.dt-public-shell .game-logo,
body.dt-public-shell .steam-logo,
body.dt-public-shell .card-media img,
body.dt-public-shell .card-media--fallback,
body.dt-public-shell .steam-game-card__media img,
body.dt-public-shell .product-card .card-media img,
body[data-dt-surface-cleanup] .game-logo,
body[data-dt-surface-cleanup] .card-media img {
  filter: none;
  box-shadow: var(--dt-surface-depth);
}

html.steam-gifts-route {
  --sg-unified-card-depth: var(--dt-surface-depth);
}

body.dt-public-shell .steam-game-card:not(.steam-gifts-loader):hover,
body.dt-public-shell .steam-game-card:not(.steam-gifts-loader):focus-visible {
  box-shadow: var(--dt-select-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand)), var(--dt-surface-depth);
}

body.dt-public-shell.is-steam-gifts-loading #products.products .steam-gifts-loader {
  box-shadow: var(--dt-surface-depth);
}

.dt-catalog-loading {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--game-muted, #aaa);
}

/* The game template's two buttons are placeholders until the mode controller
   selects a real mode. Single-mode hiding remains owned by existing rules. */
#filters[data-dt-game-filters]:not([data-filters-count]) {
  display: none !important;
}

body:has(main #products[data-testid="products"]) #nav-mode-switch[data-dt-game-mode-switch]:not(:has(> .mode-btn.active)):not(:has(> .mode-btn.is-active)):not(:has(> .mode-btn[aria-selected="true"])) {
  display: none !important;
}

/* Idle choice cards are surfaces too. Legacy modal rules require !important;
   hover/focus keep the existing interactive rules and outlines. */
body.dt-public-shell .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card:not(:hover):not(:focus-visible) {
  box-shadow: var(--dt-surface-depth), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
