* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #120008 0%, #06000a 60%, #000 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Cinzel', serif;
  color: #e8d5d5;
  padding: 2rem 1rem 3rem;
}

#wrap {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Back link ── */
.back-link {
  color: rgba(180, 140, 140, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}
.back-link:hover { color: rgba(220, 180, 180, 0.8); }

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--red-strong);
  text-shadow: 0 0 25px var(--red-glow), 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 400;
}

img.deco {
  height: 24px;
  width: auto;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(140, 80, 0, 0.3));
}

@media (min-width: 480px) {
  img.deco { height: 28px; }
}

/* ── Carousel ── */
#carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 80, 0, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

#carousel.hidden { display: none; }

#carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 3 / 4;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.9rem calc(0.6rem + 1.2rem);
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: rgba(230, 210, 210, 0.92);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: var(--red-soft);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-arrow:hover {
  border-color: var(--red-soft);
  color: var(--red-strong);
  background: rgba(255, 20, 20, 0.15);
}
.carousel-arrow.hidden { display: none; }
.carousel-arrow--prev { left: 0.7rem; }
.carousel-arrow--next { right: 0.7rem; }

#carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
#carousel-dots.hidden { display: none; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--red-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.dot.active {
  background: var(--red-strong);
  border-color: var(--red-strong);
}

/* ── Empty state ── */
.empty {
  padding: 2.5rem 0;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(160, 120, 0, 0.4);
  letter-spacing: 0.05em;
}
.empty.hidden { display: none; }
