/* ==========================================
   PERFECT WORLD CELESTIAL — MAIN STYLESHEET
   ========================================== */

:root {
  --night: #08051d;
  --indigo: #17105c;
  --violet: #7c4dff;
  --cyan: #62e9ff;
  --gold: #ffd978;
  --white: #f8f7ff;
  --glass: rgba(11, 8, 45, 0.66);
  --border: rgba(219, 237, 255, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  isolation: isolate;
  color: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 3, 30, 0.72) 0%, rgba(7, 6, 39, 0.86) 48%, rgba(4, 3, 24, 0.96) 100%),
    url("Images/PW Celestial Image 1.png") center top / cover fixed;
}

/* Lapisan cahaya lembut agar halaman tidak terasa datar. */
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 15% 24%, rgba(85, 219, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 58%, rgba(179, 87, 255, 0.2), transparent 28rem);
  content: "";
  pointer-events: none;
}

::selection {
  color: #0a0821;
  background: var(--gold);
}

/* Header selalu terlihat saat halaman digulir. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 76px);
  background: linear-gradient(90deg, rgba(7, 4, 31, 0.88), rgba(20, 14, 69, 0.72));
  border-bottom: 1px solid rgba(211, 231, 255, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.logo-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 56px;
}

.logo {
  display: block;
  width: auto;
  max-width: min(220px, 34vw);
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(160, 216, 255, 0.36));
  transition: filter 220ms ease, transform 220ms ease;
}

.logo-link:hover .logo {
  filter: drop-shadow(0 0 18px rgba(255, 223, 122, 0.65));
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 34px);
}

.main-nav a {
  position: relative;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 1.15vw, 0.93rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a:focus-visible,
.hero-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

/* Pembuka besar yang menggunakan gambar sebagai karya visual utama. */
.hero {
  display: grid;
  min-height: min(760px, calc(100vh - 82px));
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  width: min(700px, 100%);
  padding: clamp(34px, 6vw, 74px);
  background: linear-gradient(135deg, rgba(10, 6, 42, 0.58), rgba(16, 9, 59, 0.25));
  border: 1px solid rgba(234, 242, 255, 0.26);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(1, 0, 19, 0.47), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  animation: rise-in 700ms ease both;
}

.hero-kicker,
.section-heading p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.68);
}

.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 201, 81, 0.5);
}

.hero-description {
  max-width: 500px;
  margin: 24px auto 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.8;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 23px;
  color: #1a103b;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: linear-gradient(115deg, #ffe9a7, #ffc653 55%, #fff0b5);
  border-radius: 99px;
  box-shadow: 0 9px 22px rgba(255, 188, 61, 0.3);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.hero-button:hover {
  box-shadow: 0 12px 30px rgba(255, 198, 78, 0.52);
  transform: translateY(-3px);
}

/* Kartu informasi dibuat transparan agar gambar tetap terasa tanpa mengganggu teks. */
.info-section {
  padding: clamp(72px, 11vw, 132px) 0;
  scroll-margin-top: 92px;
}

.section-heading {
  margin-bottom: 24px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.64);
}

.content-box {
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.94rem, 1.45vw, 1.04rem);
  line-height: 1.9;
  background: linear-gradient(130deg, rgba(8, 5, 35, 0.86), rgba(23, 18, 75, 0.68));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.content-box:hover {
  border-color: rgba(137, 233, 255, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(90, 205, 255, 0.1);
  transform: translateY(-3px);
}

.game-title,
.sub-title,
.sub-tittle {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-title {
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
}

.sub-title,
.sub-tittle {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.rarity {
  display: inline-block;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  text-shadow: 0 0 12px currentColor;
}

.rarity.common { color: #ffffff; }
.rarity.uncommon { color: #72ff87; }
.rarity.rare { color: #70baff; }
.rarity.epic { color: #cf8cff; }
.rarity.legendary { color: #ffe76b; }
.rarity.mythical { color: #ff8f9e; }
.rarity.celestial { color: #72f3ff; }

footer {
  margin-top: 36px;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  text-align: center;
  background: rgba(4, 2, 22, 0.76);
  border-top: 1px solid rgba(211, 231, 255, 0.14);
}

footer p {
  margin: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Tablet dan ponsel */
@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    flex-direction: column;
    gap: 7px;
    padding: 10px 14px 8px;
  }

  .logo-link,
  .logo {
    height: 46px;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 20px;
    padding: 3px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.72rem;
  }

  main {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 620px;
    padding: 56px 0;
  }

  .hero-content {
    border-radius: 20px;
  }

  .info-section {
    scroll-margin-top: 122px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
