.reader-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reader-profile-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--navbar-border);
  border-radius: 22px;
  color: var(--navbar-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    var(--navbar-bg);
  cursor: pointer;
  padding: 0;
  text-align: left;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 26px var(--navbar-glow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.reader-profile-card:hover {
  border-color: var(--navbar-border);
  box-shadow:
    0 22px 66px rgba(0, 0, 0, 0.36),
    0 0 34px var(--navbar-glow);
  transform: translateY(-4px);
}

.reader-profile-card--ivory {
  border-color: rgba(255, 245, 220, 0.55);
  color: #fff7e8;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 245, 220, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(32, 28, 24, 0.78);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(255, 245, 220, 0.32);
}

.reader-profile-card--ivory:hover {
  border-color: rgba(255, 248, 232, 0.74);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 245, 220, 0.42);
}

.reader-profile-card--ivory p {
  color: #d8cab6;
}

.reader-profile-card--cyan {
  border-color: rgba(90, 190, 255, 0.55);
  background:
    radial-gradient(circle at 50% 18%, rgba(90, 190, 255, 0.15), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(8, 20, 38, 0.78);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(90, 190, 255, 0.35);
}

.reader-profile-card--cyan:hover {
  border-color: rgba(145, 218, 255, 0.72);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    0 0 54px rgba(90, 190, 255, 0.45);
}

.reader-profile-card--blood {
  border-color: rgba(210, 55, 75, 0.58);
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 66, 85, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(35, 8, 12, 0.58);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(214, 66, 85, 0.38);
}

.reader-profile-card--blood:hover {
  border-color: rgba(255, 160, 170, 0.72);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(214, 66, 85, 0.48);
}

.reader-profile-card:focus-visible {
  outline: 2px solid var(--navbar-hover-text);
  outline-offset: 4px;
}

.reader-profile-card img {
  display: block;
  width: 100%;
  height: clamp(340px, 31vw, 430px);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 21px 21px 0 0;
}

.reader-profile-card--lyssara img {
  object-position: center 18%;
}

.reader-profile-card--elyra img {
  display: block;
  width: 100%;
  height: clamp(340px, 31vw, 430px);
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.035);
  transform-origin: top center;
}

.reader-profile-card--zephyra-noctis img {
  object-position: center center;
}

.reader-profile-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.reader-profile-card h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 2rem;
}

.reader-profile-card__badge,
.reader-profile-card__chance {
  color: var(--navbar-hover-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reader-profile-card--blood .reader-profile-card__badge,
.reader-profile-card--blood .reader-profile-card__chance {
  color: #ffd7dc;
  text-shadow: 0 0 12px rgba(214, 66, 85, 0.5);
}

.reader-profile-card--ivory h2,
.reader-profile-card--ivory .reader-profile-card__badge,
.reader-profile-card--ivory .reader-profile-card__chance {
  color: #fff7e8;
  text-shadow: 0 0 10px rgba(255, 245, 220, 0.35);
}

.reader-profile-card--cyan h2,
.reader-profile-card--cyan .reader-profile-card__badge,
.reader-profile-card--cyan .reader-profile-card__chance {
  color: #dff6ff;
  text-shadow: 0 0 10px rgba(90, 190, 255, 0.45);
}

.reader-profile-card--blood h2 {
  color: #ffe8ea;
  text-shadow: 0 0 10px rgba(255, 70, 90, 0.45);
}

.reader-profile-card p {
  margin: 8px 0 0;
  color: var(--navbar-muted);
  line-height: 1.65;
}

body.is-lightbox-open {
  overflow: hidden;
}

.reader-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.reader-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reader-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 24%, var(--navbar-hover-bg), transparent 42%),
    rgba(0, 0, 0, 0.76);
  cursor: pointer;
}

.reader-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid var(--navbar-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    var(--navbar-bg);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 44px var(--navbar-glow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transform: translateY(14px) scale(0.98);
  transition: transform 250ms ease;
}

.reader-lightbox.is-open .reader-lightbox__dialog {
  transform: translateY(0) scale(1);
}

.reader-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--navbar-border);
  border-radius: 50%;
  color: var(--navbar-text);
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transition:
    box-shadow 250ms ease,
    transform 250ms ease;
}

.reader-lightbox__close:hover,
.reader-lightbox__close:focus-visible {
  box-shadow: 0 0 22px var(--navbar-glow);
  transform: translateY(-1px);
}

.reader-lightbox__image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

.reader-lightbox__content {
  padding: 18px 22px 22px;
  text-align: center;
}

.reader-lightbox__content h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.reader-lightbox__content p {
  margin: 8px auto 0;
  max-width: 460px;
  color: var(--navbar-muted);
}

@media (max-width: 900px) {
  .reader-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-profile-card img,
  .reader-profile-card--elyra img {
    height: clamp(320px, 48vw, 400px);
  }
}

@media (max-width: 620px) {
  .reader-profile-grid {
    grid-template-columns: 1fr;
  }

  .reader-profile-card img,
  .reader-profile-card--elyra img {
    height: min(112vw, 430px);
  }
}
