:root {
  --vapor-pink: #ff71ce;
  --vapor-purple: #b967ff;
  --vapor-blue: #01cdfe;
  --vapor-teal: #3fffd7;
  --vapor-dark: #120020;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Make the gradient fixed to viewport */
html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #fdfdfd;
  background:
    radial-gradient(circle at top, rgba(255,113,206,0.4), transparent 60%),
    linear-gradient(135deg, #120020 0%, #1a0533 40%, #082a4b 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;

  display: flex;           /* NEW */
  flex-direction: column;  /* NEW */
}



/* Header + logo + socials */

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
}

.logo-wrap {
  display: inline-block;
  position: relative;
}

.logo-img {
  max-width: 340px;
  width: 60vw;
  height: auto;
  filter:
    drop-shadow(0 0 6px var(--vapor-pink))
    drop-shadow(0 0 14px var(--vapor-blue));
}

header p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ffdffb;
}

/* Social bar */

.social-bar {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.social-bar a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: linear-gradient(135deg, rgba(255,113,206,0.15), rgba(1,205,254,0.08));
  color: #fdfdfd;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: background 0.12s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.social-bar a:hover {
  background: linear-gradient(135deg, var(--vapor-pink), var(--vapor-blue));
  color: #120020;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(1,205,254,0.7);
}

@media (max-width: 600px) {
  .social-bar {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.65rem;
  }

  .social-bar a {
    padding-inline: 0.6rem;
  }
}

.card-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1900;
}

.card-modal.open {
  display: flex;
}

.card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.card-dialog {
  position: relative;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(185,103,255,0.25), rgba(6,1,24,0.98));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 28px rgba(0,0,0,0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-header h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-body-image-wrap {
  flex: 0 0 260px;
  max-width: 260px;
}

#card-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  object-fit: cover;
  background: radial-gradient(circle at top, #240046, #05000d);
}

.card-body-meta {
  flex: 1 1 0;
  font-size: 0.9rem;
  color: #f6e9ff;
  line-height: 1.6;
}

.card-label {
  font-weight: 600;
  color: #3fffd7;
}

.card-error {
  margin-top: 0.5rem;
  color: #ff71ce;
  font-size: 0.85rem;
}

#claim-modal {
  z-index: 2100;
}


.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .card-body {
    flex-direction: column;
  }
  .card-body-image-wrap {
    max-width: 100%;
    margin: 0 auto;
  }
}

.card-dialog {
  position: relative;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  padding: 1.6rem 1.9rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(185,103,255,0.35), rgba(6,1,24,0.98));
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow:
    0 0 28px rgba(0,0,0,0.9),
    0 0 24px rgba(1,205,254,0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header h2 {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vapor-teal);
}

.card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.3rem;
}

.card-body-image-wrap {
  flex: 0 0 280px;
  max-width: 280px;
}

#card-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 0 20px rgba(0,0,0,0.9),
    0 0 18px rgba(1,205,254,0.7);
  object-fit: cover;
  background: radial-gradient(circle at top, #240046, #05000d);
}

.card-body-meta {
  flex: 1 1 0;
  font-size: 1rem;
  color: #f6e9ff;
  line-height: 1.7;
}

.card-body-meta p {
  margin-bottom: 0.35rem;
}

.card-label {
  display: inline-block;
  min-width: 120px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vapor-teal);
  opacity: 0.9;
}

#card-id-value {
  font-weight: 600;
  color: #ffdffb;
}

#card-char {
  font-weight: 600;
  color: #ffffff;
}

#card-origin {
  color: #cdbdff;
}

#card-printed {
  font-weight: 600;
  color: #ff71ce;
}

.card-error {
  margin-top: 0.6rem;
  color: #ff71ce;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .card-body {
    flex-direction: column;
  }
  .card-body-image-wrap {
    max-width: 100%;
    margin: 0 auto 0.6rem;
  }
}


.terms-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.terms-modal.open {
  display: flex;
}

.terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.terms-dialog {
  position: relative;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(185,103,255,0.25), rgba(6,1,24,0.98));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 28px rgba(0,0,0,0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.terms-header h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terms-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.terms-body {
  overflow-y: auto;
  padding-right: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}



/* Faux floor grid */

.grid-floor {
  position: fixed;          /* was fixed already, keep it */
  top: 55%;
  left: -40%;
  right: -40%;
  bottom: -20%;
  background-image:
    linear-gradient(var(--vapor-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--vapor-blue) 1px, transparent 1px);
  background-size: 40px 40px;
  transform-origin: top center;
  transform: perspective(600px) rotateX(70deg);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

/* Age gate */

#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#age-gate.hidden {
  display: none;
}

.age-modal {
  max-width: 420px;
  width: 90%;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(185,103,255,0.15), rgba(1,205,254,0.05));
  box-shadow:
    0 0 20px rgba(0,0,0,0.7),
    0 0 30px rgba(255,113,206,0.4);
  border: 1px solid rgba(255,255,255,0.22);
  text-align: center;
  backdrop-filter: blur(12px);
}

.age-modal h2 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vapor-teal);
}

.age-modal p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #f6e9ff;
  line-height: 1.5;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  min-width: 120px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--vapor-pink), var(--vapor-blue));
  color: #120020;
  box-shadow: 0 0 12px rgba(255,113,206,0.6);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.08s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 0 18px rgba(1,205,254,0.7);
}

.btn-secondary {
  background: transparent;
  color: #f6e9ff;
  box-shadow: none;
  border-style: dashed;
  opacity: 0.8;
}

.btn-secondary:hover {
  opacity: 1;
  box-shadow: 0 0 10px rgba(255,255,255,0.25);
}

/* Layout */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  flex: 1 0 auto;   /* NEW */
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffdffb;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--vapor-teal);
}

/* Set selection tiles */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.set-card {
  flex: 1 1 calc(25% - 1.1rem);
  min-width: 180px;
  max-width: 260px;
  background: rgba(6, 1, 24, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s;
  cursor: pointer;
}

.set-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--vapor-blue);
  box-shadow:
    0 0 20px rgba(1,205,254,0.7),
    0 18px 40px rgba(0,0,0,0.8);
}

.set-thumb {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  background: radial-gradient(circle at top, #240046, #05000d);
}

.set-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
  transition: transform 0.12s ease-out, filter 0.12s;
}

.set-card:hover .set-thumb img {
  transform: scale(1.05);
  filter: saturate(1.4);
}

.set-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.set-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e3d7ff;
  opacity: 0.9;
}

.set-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.set-sub {
  font-size: 0.78rem;
  color: #cdbdff;
  opacity: 0.9;
}

/* Series gallery view */

#series-view {
  margin-top: 2.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(5, 0, 20, 0.18); /* subtle dark tint only */
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.4rem 1.6rem;
  box-shadow: 0 0 24px rgba(0,0,0,0.55);
  display: none;
}

#series-view-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#series-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

#series-close {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #ffdffb;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

#series-close:hover {
  background: rgba(255,255,255,0.08);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.filter-group label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffdffb;
  opacity: 0.85;
}

#name-filter {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(5,0,20,0.7);
  color: #fdfdfd;
  min-width: 180px;
  font-size: 0.85rem;
}

#name-filter::placeholder {
  color: #c3b4ff;
  opacity: 0.75;
}

.series-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.series-card {
  flex: 1 1 calc(12.5% - 0.8rem);
  min-width: 110px;
  max-width: 150px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  background: radial-gradient(circle at top, #240046, #05000d);
  cursor: pointer;
  position: relative;
}

.series-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-card:hover {
  border-color: var(--vapor-blue);
  box-shadow: 0 0 14px rgba(1,205,254,0.7);
  transform: translateY(-2px);
}

.series-card.hidden {
  display: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* keep global background visible */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1000px;
  width: 96%;
  max-height: 90vh; /* stay within viewport */
  background: radial-gradient(circle at top, rgba(185,103,255,0.3), rgba(6,1,24,0.98));
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 28px rgba(0,0,0,0.9);
  padding: 1rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lightbox-header h3 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.lightbox-fullscreen-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease,
    transform 0.08s ease;
}

.lightbox-fullscreen-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  opacity: 1;
}

.lightbox-fullscreen-btn:active {
  transform: translateY(1px);
}

/* image area flexes to fill space between header and strip */
.lightbox-main {
  position: relative;
  flex: 1 1 auto;          /* grow to fill remaining height */
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  overflow: hidden;        /* no scroll here; image is letterboxed */
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;        /* never exceed available flex height */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  object-fit: contain;     /* fit inside without cropping */
  background: radial-gradient(circle at top, #240046, #05000d);
}

/* stats button wrapper (if you ever move it back under image) */
.lightbox-stats-wrap {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.6rem;
}

/* thumbnail strip at bottom, limited height so it doesn't steal space */
.lightbox-strip {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.2rem;
  max-height: 72px;
  overflow-x: auto;
  overflow-y: hidden;
}



.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(5,0,20,0.75);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
  transition: background 0.1s, transform 0.1s;
}

.nav-prev { left: 0.4rem; }
.nav-next { right: 0.4rem; }

.nav-btn:hover {
  background: rgba(255,113,206,0.9);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.1rem;
}

.lightbox-strip img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  opacity: 0.6;
  cursor: pointer;
}

.lightbox-strip img.active {
  opacity: 1;
  border-color: #01cdfe;
  box-shadow: 0 0 10px rgba(1,205,254,0.8);
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .set-card {
    flex: 1 1 calc(33.33% - 1.1rem);
  }
  .series-card {
    flex: 1 1 calc(16.66% - 0.8rem);
  }
}

@media (max-width: 700px) {
  header {
    padding-top: 2.2rem;
  }
  .set-card {
    flex: 1 1 calc(50% - 1.1rem);
  }
  .lightbox-inner {
    padding-inline: 1rem;
  }
  .series-card {
    flex: 1 1 calc(25% - 0.8rem);
  }
}

@media (max-width: 480px) {
  .set-card {
    flex: 1 1 100%;
  }
  .series-card {
    flex: 1 1 calc(33.33% - 0.8rem);
  }
}

.site-footer {
  margin-top: auto;          /* push to bottom of viewport */
  text-align: center;
  padding: 0.75rem 0 1.25rem;
  font-size: 0.8rem;
  color: #ffdffb;
}

.site-footer a {
  color: #ffdffb;
  text-decoration: underline;
}

.live-banner {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(1,205,254,0.08), rgba(255,113,206,0.12));
  border: 1px solid rgba(1,205,254,0.7);
  box-shadow:
    0 0 10px rgba(1,205,254,0.8),
    0 0 16px rgba(255,113,206,0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-banner.hidden {
  display: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(6,1,24,0.9);
  box-shadow: 0 0 8px rgba(1,205,254,0.7);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4b7d;
  box-shadow: 0 0 8px rgba(255,75,125,0.9);
}

.live-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #fdfdfd;
}

.live-text {
  font-size: 0.85rem;
  color: #ffdffb;
}

#live-stream {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.live-player-wrap {
  display: none;            /* hidden until live */
  justify-content: center;
}

/* make button size to content and match existing pill buttons */
.card-stats-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(63, 255, 215, 0.8);
  background: radial-gradient(circle at top, rgba(63, 255, 215, 0.22), rgba(7, 0, 34, 0.95));
  color: #e9fdfb;
  cursor: pointer;
  white-space: nowrap;
  max-width: max-content;
  margin: 0; /* width controlled by padding, not container */
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.card-stats-link::before {
  content: '◆';
  font-size: 0.7rem;
  color: #ff71ce;
}

.card-stats-link:hover {
  background: radial-gradient(circle at top, rgba(63, 255, 215, 0.35), rgba(7, 0, 34, 0.98));
  color: #ffffff;
  box-shadow: 0 0 12px rgba(63, 255, 215, 0.7);
}

.card-stats-link:active {
  transform: translateY(1px);
  box-shadow: 0 0 5px rgba(63, 255, 215, 0.9);
}