/* PRANATARA Pointer-Stable Depth v001 — chat-126.
   The gallery keeps a stationary hit target; depth is communicated optically. */
#grid {
  perspective: none !important;
  perspective-origin: 50% 50% !important;
}

#grid > article.holo-card {
  transform: none !important;
  transform-style: flat;
  will-change: auto;
  transition:
    border-color 160ms ease,
    box-shadow 160ms cubic-bezier(.22, 1, .36, 1) !important;
}

.view-card-button {
  transform: none !important;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms cubic-bezier(.22, 1, .36, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  #grid > article.holo-card:hover,
  #grid > article.holo-card:focus-within {
    transform: none !important;
    border-color: color-mix(in srgb, var(--frame-light) 72%, var(--frame-metal));
    box-shadow:
      0 1px 0 color-mix(in srgb, var(--frame-light) 29%, transparent),
      0 9px 0 -5px color-mix(in srgb, var(--frame-dark) 91%, #000),
      0 25px 39px -21px color-mix(in srgb, var(--frame-shadow) 80%, transparent),
      0 0 0 1px color-mix(in srgb, var(--frame-light) 20%, transparent),
      inset 1px 1px 0 color-mix(in srgb, var(--frame-light) 22%, transparent),
      inset -1px -2px 0 color-mix(in srgb, var(--frame-dark) 75%, transparent) !important;
  }

  .view-card-button:hover,
  .view-card-button:active {
    transform: none !important;
  }
}

.view-card-button:active {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #grid > article.holo-card,
  .view-card-button {
    transform: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  #grid,
  #grid > article.holo-card,
  #grid > article.holo-card:hover,
  #grid > article.holo-card:focus-within,
  .view-card-button,
  .view-card-button:hover,
  .view-card-button:active {
    transform: none !important;
    box-shadow: none !important;
  }
}
