.reward-detail-shell {
  max-width: 1180px;
}

.reward-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.reward-poster-card,
.reward-detail-card {
  overflow: hidden;
  border: 1px solid #e3e8f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(17, 21, 47, 0.1);
}

.reward-poster-card {
  position: sticky;
  top: 96px;
  padding: 12px;
}

.reward-detail-card {
  display: block;
}

.reward-detail-card-full {
  grid-column: 1 / -1;
}

.reward-detail-image {
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #f7f8fa;
  cursor: zoom-in;
}

.reward-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.reward-image-hint {
  display: flex;
  position: absolute;
  right: 12px;
  bottom: 12px;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 21, 47, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(17, 21, 47, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}

.reward-detail-image:hover .reward-image-hint,
.reward-detail-image:focus-visible .reward-image-hint {
  transform: translateY(-2px);
  background: #286dca;
}

.reward-detail-image:focus-visible {
  outline: 3px solid rgba(40, 109, 202, 0.35);
  outline-offset: 3px;
}

.reward-lightbox-open {
  overflow: hidden;
}

.reward-image-lightbox[hidden] {
  display: none;
}

.reward-image-lightbox {
  display: flex;
  position: fixed;
  z-index: 9999;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 10, 27, 0.9);
  backdrop-filter: blur(7px);
}

.reward-image-lightbox-stage {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.reward-image-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.reward-image-lightbox-close {
  display: grid;
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.reward-image-lightbox-close:hover,
.reward-image-lightbox-close:focus-visible {
  transform: scale(1.05);
  background: #286dca;
  outline: none;
}

@media (max-width: 900px) {
  .reward-detail-layout {
    grid-template-columns: 1fr;
  }

  .reward-poster-card {
    position: static;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }

  .reward-detail-image {
    max-height: none;
  }

  .reward-detail-card {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .reward-detail-layout {
    gap: 16px;
  }

  .reward-poster-card {
    padding: 8px;
    border-radius: 17px;
  }

  .reward-detail-image {
    border-radius: 11px;
  }

  .reward-image-hint {
    right: 9px;
    bottom: 9px;
  }

  .reward-image-lightbox {
    padding: 12px;
  }

  .reward-image-lightbox-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
}
