/* Shared reTEST award graphics */
.retest-award-graphics {
  display: grid;
  gap: 14px;
}

.retest-award-graphic {
  min-width: 0;
  color: inherit;
}

.retest-award-graphic__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}

button.retest-award-graphic__media {
  cursor: zoom-in;
}

.retest-award-graphic__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.32));
  transition: transform .22s ease, filter .22s ease;
}

button.retest-award-graphic__media:hover .retest-award-graphic__image,
button.retest-award-graphic__media:focus-visible .retest-award-graphic__image {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.42));
}

.retest-award-graphic__zoom-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(7,7,9,.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

button.retest-award-graphic__media:hover .retest-award-graphic__zoom-label,
button.retest-award-graphic__media:focus-visible .retest-award-graphic__zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.retest-award-graphic__copy {
  margin-top: 10px;
}

.retest-award-graphic__label {
  display: block;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}

.retest-award-graphic__desc {
  margin: 7px 0 0;
  color: var(--text-soft, #a2a6b0);
  line-height: 1.6;
}

.retest-award-graphic__rank-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}

.retest-award-graphic__rank-link:hover,
.retest-award-graphic__rank-link:focus-visible {
  gap: 10px;
  color: var(--primary, #ff0055);
}

.retest-award-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(12px);
}

.retest-award-lightbox.is-open {
  display: grid;
}

.retest-award-lightbox__panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 92vh;
  padding: 26px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,0,85,.12), transparent 40%),
    #0a090d;
  box-shadow: 0 32px 90px rgba(0,0,0,.58);
}

.retest-award-lightbox__image {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.retest-award-lightbox__title {
  margin: 12px 48px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.retest-award-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.retest-award-lightbox__close:hover,
.retest-award-lightbox__close:focus-visible {
  transform: rotate(3deg);
  border-color: rgba(255,0,85,.35);
  background: rgba(255,0,85,.12);
}

body.retest-award-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .retest-award-lightbox {
    padding: 14px;
  }

  .retest-award-lightbox__panel {
    padding: 18px;
    border-radius: 22px;
  }

  .retest-award-graphic__zoom-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .retest-award-graphic__image,
  .retest-award-graphic__zoom-label,
  .retest-award-graphic__rank-link,
  .retest-award-lightbox__close {
    transition: none !important;
  }
}

.retest-award-graphic__media picture {
  display: block;
  width: 100%;
}
