/* PRANATARA Pointer Relief Emergence v001 — chat-133.
   SahabatRPK-inspired optical elevation with a stationary card hitbox. */
#grid > article.holo-card,
#cardDialog .collectible-card.holo-card,
body > article.holo-card {
  transform: none !important;
  transform-style: flat !important;
  will-change: auto;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition:
    border-color 180ms ease,
    outline-color 180ms ease,
    box-shadow 180ms cubic-bezier(.22, 1, .36, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  #grid > article.holo-card:hover,
  #grid > article.holo-card:focus-within,
  #cardDialog .collectible-card.holo-card:hover,
  #cardDialog .collectible-card.holo-card:focus-within,
  body > article.holo-card:hover,
  body > article.holo-card:focus-within {
    z-index: 6;
    transform: none !important;
    border-color: color-mix(in srgb, var(--frame-light) 88%, #fff 12%) !important;
    outline-color: color-mix(in srgb, var(--frame-light) 38%, transparent);
    box-shadow:
      0 2px 0 color-mix(in srgb, var(--frame-light) 62%, transparent),
      0 7px 0 -1px color-mix(in srgb, var(--frame-dark) 96%, #000),
      0 15px 22px -10px color-mix(in srgb, var(--frame-shadow) 88%, transparent),
      0 36px 58px -22px color-mix(in srgb, var(--frame-shadow) 92%, transparent),
      0 0 0 2px color-mix(in srgb, var(--frame-metal) 60%, transparent),
      0 0 24px -9px color-mix(in srgb, var(--frame-accent) 62%, transparent),
      inset 1px 1px 0 color-mix(in srgb, var(--frame-light) 48%, transparent),
      inset -2px -3px 0 color-mix(in srgb, var(--frame-dark) 88%, transparent),
      inset 0 0 24px color-mix(in srgb, var(--frame-accent) 14%, transparent) !important;
  }

  #grid > article.holo-card:hover .heirloom-cartouche-frame-v001,
  #grid > article.holo-card:focus-within .heirloom-cartouche-frame-v001,
  #cardDialog .collectible-card.holo-card:hover .heirloom-cartouche-frame-v001,
  #cardDialog .collectible-card.holo-card:focus-within .heirloom-cartouche-frame-v001,
  body > article.holo-card:hover .heirloom-cartouche-frame-v001,
  body > article.holo-card:focus-within .heirloom-cartouche-frame-v001 {
    border-color: color-mix(in srgb, var(--frame-light) 82%, var(--frame-metal)) !important;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--frame-light) 24%, transparent),
      inset 0 0 16px color-mix(in srgb, var(--frame-accent) 10%, transparent) !important;
  }
}

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

@media (forced-colors: active) {
  #grid > article.holo-card,
  #cardDialog .collectible-card.holo-card,
  body > article.holo-card {
    transform: none !important;
    outline-color: transparent;
    box-shadow: none !important;
  }

  #grid > article.holo-card:hover,
  #grid > article.holo-card:focus-within,
  #cardDialog .collectible-card.holo-card:hover,
  #cardDialog .collectible-card.holo-card:focus-within,
  body > article.holo-card:hover,
  body > article.holo-card:focus-within {
    border-color: Highlight !important;
    outline: 3px solid Highlight;
    outline-offset: 2px;
    box-shadow: none !important;
  }
}
