/* =====================================================
   WORLD OF LUCY KAY
   Atlas Page - atlas.css v0.3
   Polish pass: better spacing, magical active world, misty coming-soon cards
===================================================== */

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #060704;
  color: #fff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.atlas-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 34px 56px 46px;
}

.atlas-bg {
  position: fixed;
  inset: 0;
  background: url("atlas-bg.webp") center center / cover no-repeat;
  transform: scale(1.03);
  z-index: 0;
}

.atlas-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.02), rgba(0,0,0,.22) 50%, rgba(0,0,0,.72) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.36), rgba(0,0,0,.12) 38%, rgba(0,0,0,.58));
  pointer-events: none;
}

.gold-frame {
  position: fixed;
  inset: 22px;
  border: 1px solid rgba(203,164,91,.58);
  z-index: 5;
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* HEADER */

.atlas-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.back-link,
.shop-link {
  color: rgba(255,245,220,.9);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.75);
  transition: .3s ease;
}

.back-link:hover,
.shop-link:hover {
  color: #e2bf72;
  text-shadow: 0 0 14px rgba(226,191,114,.5);
}

.shop-link {
  justify-self: end;
}

.atlas-logo {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215,174,92,.88);
  border-radius: 50%;
  background: rgba(10,14,8,.58);
  color: #f5d48a;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.85rem;
  box-shadow: 0 0 20px rgba(203,164,91,.28);
}

/* INTRO */

.atlas-intro {
  position: relative;
  z-index: 8;
  max-width: 760px;
  margin: 38px auto 0;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: rgba(255,245,220,.84);
  font-family: "Cinzel", serif;
  font-size: .76rem;
  letter-spacing: .48em;
  text-transform: uppercase;
}

.atlas-intro h1 {
  color: #fff7e8;
  font-family: "Cinzel", serif;
  text-shadow: 0 4px 26px rgba(0,0,0,.72);
}

.atlas-intro h1 span {
  display: block;
  font-size: clamp(2.8rem, 5vw, 5.35rem);
  font-weight: 400;
  letter-spacing: .12em;
  line-height: .9;
}

.atlas-intro h1 em {
  display: block;
  margin-top: 2px;
  color: #fff2d0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
}

.intro-text {
  margin-top: 12px;
  color: rgba(255,245,220,.9);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-style: italic;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}

/* WORLD MAP */

.world-map {
  position: relative;
  z-index: 7;
  width: min(1240px, 94vw);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: 270px 340px 270px;
  grid-template-rows: auto auto;
  gap: 42px 96px;
  align-items: center;
  justify-content: center;
}

/* subtle connecting map lines */
.world-map::before,
.world-map::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 72%;
  height: 1px;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(215,174,92,.28) 0 8px,
      transparent 8px 18px
    );
  opacity: .52;
  pointer-events: none;
}

.world-map::before {
  top: 24%;
}

.world-map::after {
  bottom: 24%;
}

.world-card {
  position: relative;
  width: 100%;
  min-height: 142px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(203,164,91,.42);
  background: rgba(11,15,10,.58);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.045),
    0 18px 45px rgba(0,0,0,.38);
  backdrop-filter: blur(5px);
  text-align: center;
}

.world-card h2 {
  margin: 8px 0 9px;
  color: #fff4d6;
  font-family: "Cinzel", serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.25;
}

.world-card p {
  color: rgba(255,245,220,.82);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
}

.world-label {
  color: #d7ae5c !important;
  font-family: "Cinzel", serif !important;
  font-size: .64rem !important;
  font-style: normal !important;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Active world */

.active-world {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 340px;
  min-height: 214px;
  padding: 28px 26px 30px;
  background:
    radial-gradient(circle at center, rgba(54,88,36,.42), rgba(14,30,14,.86) 68%),
    rgba(14,30,14,.86);
  border-color: rgba(235,191,94,.95);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    0 0 34px rgba(224,180,89,.20),
    0 22px 55px rgba(0,0,0,.52);
}

.active-world h2 {
  font-size: 1.22rem;
}

.world-glow {
  position: absolute;
  inset: -44px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(223,184,93,.34), transparent 67%);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

.active-world::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224,180,89,.35);
  pointer-events: none;
}

.world-button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 28px;
  border: 1px solid rgba(224,180,89,.85);
  color: #f6d99a;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: .3s ease;
  position: relative;
}

.world-button:hover {
  background: rgba(224,180,89,.12);
  box-shadow: 0 0 18px rgba(224,180,89,.35);
}

/* Coming soon cards */

.coming-soon {
  opacity: .56;
  filter: saturate(.55);
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 64%);
  opacity: .55;
  pointer-events: none;
}

.coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 35%, rgba(255,255,255,.06) 100%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  pointer-events: none;
}

.moon {
  grid-column: 1;
  grid-row: 1;
}

.observatory {
  grid-column: 3;
  grid-row: 1;
}

.atlantis {
  grid-column: 1;
  grid-row: 2;
}

.lighthouse {
  grid-column: 3;
  grid-row: 2;
}

.atlas-note {
  position: relative;
  z-index: 8;
  margin: 28px auto 0;
  color: rgba(255,245,220,.86);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-style: italic;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* ANIMATIONS */

@keyframes glowPulse {
  0%, 100% {
    opacity: .55;
    transform: scale(.98);
  }

  50% {
    opacity: .95;
    transform: scale(1.04);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.atlas-header,
.atlas-intro,
.world-card,
.atlas-note {
  animation: fadeUp 1.2s ease both;
}

.atlas-intro {
  animation-delay: .12s;
}

.active-world {
  animation-delay: .22s;
}

.moon {
  animation-delay: .34s;
}

.observatory {
  animation-delay: .42s;
}

.atlantis {
  animation-delay: .5s;
}

.lighthouse {
  animation-delay: .58s;
}

.atlas-note {
  animation-delay: .68s;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .world-map {
    grid-template-columns: 250px 300px 250px;
    gap: 32px 48px;
  }

  .active-world {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .atlas-page {
    min-height: 100vh;
    padding: 24px 20px 60px;
    overflow-y: auto;
  }

  .gold-frame {
    inset: 12px;
  }

  .atlas-header {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .back-link,
  .shop-link {
    justify-self: center;
  }

  .atlas-intro {
    margin-top: 34px;
  }

  .world-map {
    width: min(420px, 92vw);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }

  .world-map::before,
  .world-map::after {
    display: none;
  }

  .world-card,
  .active-world,
  .moon,
  .observatory,
  .atlantis,
  .lighthouse {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .active-world {
    order: -1;
  }

  .atlas-note {
    margin-top: 22px;
  }
}
