/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * Achievement Wall tooltip (see profile/show.html.erb and
 * achievement_tooltip_controller.js) -- opacity/pointer-events rather
 * than display:none so the JS-driven show/hide delays can transition
 * smoothly instead of snapping instantly.
 */
.achievement-tooltip {
  --tooltip-shift: 0px;
  transform: translateX(calc(-50% + var(--tooltip-shift)));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.achievement-tooltip--visible {
  opacity: 1;
  pointer-events: auto;
}
