/* World pages: /settings/:slug (member view) and /worlds/:slug (public view).
   A lighter cousin of the /play/:slug landing page: same cinematic hero and
   art treatment, none of the marketing sections. */

.world-page {
  padding-bottom: 3rem;
}

.world-showcase {
  margin-bottom: 2rem;
}

.world-showcase-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  min-height: clamp(340px, 46vw, 480px);
  overflow: hidden;
  border-radius: var(--form-radius);
  background: #111;
  color: #fff;
  box-shadow: 0 1.5rem 4rem -2rem rgba(0, 0, 0, 0.5);
}

.world-showcase-hero.is-artless {
  min-height: 260px;
  background: linear-gradient(160deg, #2a2622, #12100e);
}

.world-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.world-carousel::-webkit-scrollbar {
  display: none;
}

.world-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.world-showcase-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.world-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  transform: translateY(-50%);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(10, 8, 5, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.world-showcase-hero.is-interactive .world-carousel-arrow {
  display: flex;
}

.world-carousel-arrow:hover {
  background: rgba(10, 8, 5, 0.8);
}

.world-carousel-arrow.is-prev {
  left: 0.75rem;
}

.world-carousel-arrow.is-next {
  right: 0.75rem;
}

.world-carousel-dots {
  position: absolute;
  right: 0;
  bottom: 0.85rem;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.world-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 160ms ease, transform 160ms ease;
}

.world-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

.world-showcase-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, transparent 0, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.1) 75%);
}

.world-showcase-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 3rem 2.25rem;
  text-align: center;
  pointer-events: none;
}

.world-showcase-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-stack-serif);
  font-weight: normal;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.8);
}

.world-showcase-tagline {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-family: var(--font-stack-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.world-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.world-showcase-actions:empty {
  display: none;
}

.world-showcase-lore {
  max-width: 40rem;
  margin: 0 auto;
}

.world-showcase-copy {
  font-size: 1.02rem;
  line-height: 1.75;
  opacity: 0.85;
}

.world-showcase-copy p:last-child {
  margin-bottom: 0;
}

.world-page-credit {
  margin-top: 2rem;
  opacity: 0.6;
  text-align: right;
  font-size: 0.9rem;
}

.world-page-invite {
  margin-top: 2rem;
}

.world-page-related {
  margin-top: 2.5rem;
  text-align: center;
}

.world-page-related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.world-page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .world-showcase-hero-inner {
    padding: 3rem 2.75rem 2rem;
  }

  .world-carousel-arrow {
    width: 2.2rem;
    height: 2.2rem;
  }
}
