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

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

body {
  font-family: "Inter", sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  background: #040816;
  position: relative;
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -30;
  display: block;
}

.space-overlay {
  position: fixed;
  inset: 0;
  z-index: -29;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(106, 76, 255, 0.13) 0%, transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 163, 77, 0.10) 0%, transparent 20%),
    radial-gradient(circle at 54% 86%, rgba(255, 84, 176, 0.08) 0%, transparent 26%),
    linear-gradient(
      180deg,
      rgba(5, 8, 20, 0.24) 0%,
      rgba(4, 7, 18, 0.38) 50%,
      rgba(3, 5, 14, 0.56) 100%
    );
}

.space-vignette {
  position: fixed;
  inset: 0;
  z-index: -28;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.18) 76%, rgba(0, 0, 0, 0.42) 100%);
}

.space-overlay,
.space-vignette,
.main-card,
.navbar-inner,
.hero,
.footer,
.planet,
.hero-glow {
  transition:
    filter 0.55s ease,
    opacity 0.55s ease,
    transform 0.55s ease,
    background 0.55s ease,
    box-shadow 0.55s ease;
}

/* =========================
   PLANETS
========================= */

.planet {
  position: fixed;
  border-radius: 50%;
  box-shadow:
    inset -14px -16px 28px rgba(0, 0, 0, 0.22),
    inset 8px 10px 18px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(255, 255, 255, 0.05);
  z-index: 4;
  opacity: 0.98;
  border: none;
  padding: 0;
  background-clip: padding-box;
}

button.planet {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background-color: transparent;
}

.planet-travel {
  cursor: pointer;
  pointer-events: auto;
  z-index: 26;
}

.planet-travel:hover {
  transform: scale(1.16);
  z-index: 35;
  box-shadow:
    inset -14px -16px 28px rgba(0, 0, 0, 0.16),
    inset 8px 10px 18px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(255, 255, 255, 0.12),
    0 0 42px rgba(255, 210, 140, 0.16);
}

.planet-mercury {
  width: 58px;
  height: 58px;
  top: 118px;
  left: 58px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.18) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 55%, rgba(85, 85, 95, 0.35) 0 10%, transparent 11%),
    radial-gradient(circle at 26% 68%, rgba(115, 115, 125, 0.28) 0 8%, transparent 9%),
    radial-gradient(circle at 30% 30%, #d6d6db 0%, #9ea0aa 46%, #72757f 78%, #555761 100%);
  animation: planetFloatA 18s ease-in-out infinite;
  opacity: 0.88;
  pointer-events: none;
}

.planet-venus {
  width: 74px;
  height: 74px;
  top: 170px;
  right: 86px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18) 0 10%, transparent 11%),
    radial-gradient(circle at 66% 42%, rgba(92, 48, 22, 0.26) 0 10%, transparent 11%),
    radial-gradient(circle at 38% 64%, rgba(164, 103, 68, 0.22) 0 14%, transparent 15%),
    radial-gradient(circle at 30% 30%, #f2d0ad 0%, #cf9e74 45%, #a36f4e 72%, #6b4631 100%);
  animation: planetFloatB 22s ease-in-out infinite;
}

.planet-earth {
  width: 82px;
  height: 82px;
  top: 96px;
  right: 270px;
  background:
    radial-gradient(circle at 64% 34%, #5ba34d 0 15%, transparent 16%),
    radial-gradient(circle at 40% 62%, #6cab4d 0 13%, transparent 14%),
    radial-gradient(circle at 26% 46%, #3f7f38 0 12%, transparent 13%),
    radial-gradient(circle at 30% 30%, #80ccff 0%, #317cde 62%, #1b4ea8 100%);
  animation: planetFloatC 20s ease-in-out infinite;
}

.planet-mars {
  width: 54px;
  height: 54px;
  bottom: 108px;
  left: 86px;
  background:
    radial-gradient(circle at 60% 28%, rgba(255, 186, 133, 0.20) 0 8%, transparent 9%),
    radial-gradient(circle at 38% 58%, rgba(165, 45, 22, 0.32) 0 10%, transparent 11%),
    radial-gradient(circle at 30% 30%, #ffb07f 0%, #df6f3c 42%, #b43123 74%, #7b1918 100%);
  animation: planetFloatD 21s ease-in-out infinite;
}

.planet-jupiter {
  width: 124px;
  height: 124px;
  bottom: 72px;
  right: 54px;
  background:
    radial-gradient(circle at 68% 58%, rgba(198, 88, 32, 0.45) 0 8%, transparent 9%),
    repeating-linear-gradient(
      8deg,
      #f6e3c5 0 10px,
      #d8b38a 10px 18px,
      #f5e7d2 18px 28px,
      #b46f33 28px 34px,
      #f2ddbe 34px 44px
    );
  animation: planetFloatE 26s ease-in-out infinite;
  box-shadow:
    inset -14px -16px 28px rgba(0, 0, 0, 0.18),
    inset 8px 10px 18px rgba(255, 255, 255, 0.04),
    0 0 28px rgba(255, 196, 127, 0.10);
  opacity: 0.92;
  pointer-events: none;
}

.planet-saturn {
  width: 70px;
  height: 70px;
  top: 142px;
  left: 192px;
  background:
    repeating-linear-gradient(
      10deg,
      #f7f1df 0 10px,
      #dbcdb1 10px 18px,
      #f3ead3 18px 27px,
      #c7b898 27px 34px
    );
  animation: planetFloatF 24s ease-in-out infinite;
  opacity: 0.84;
  pointer-events: none;
}

.planet-saturn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 18%;
  transform: translate(-50%, -50%) rotate(-18deg);
  border-radius: 50%;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 234, 178, 0.72) 16%,
      rgba(232, 188, 116, 0.86) 38%,
      rgba(255, 244, 205, 0.94) 50%,
      rgba(214, 168, 102, 0.84) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  opacity: 0.86;
  box-shadow: 0 0 14px rgba(255, 221, 160, 0.12);
}

.planet-uranus {
  width: 64px;
  height: 64px;
  bottom: 250px;
  right: 254px;
  background:
    linear-gradient(180deg, #f3ffff 0%, #d9f7ff 28%, #bceef6 56%, #9edce8 100%);
  animation: planetFloatG 19s ease-in-out infinite;
  opacity: 0.78;
  pointer-events: none;
}

.planet-neptune {
  width: 76px;
  height: 76px;
  top: 300px;
  left: 260px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24) 0 10%, transparent 11%),
    linear-gradient(180deg, #5bb6ff 0%, #3b84ff 38%, #214fdd 72%, #112fa7 100%);
  animation: planetFloatH 23s ease-in-out infinite;
  opacity: 0.8;
  pointer-events: none;
}

.travel-label {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -140%);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.travel-label.visible {
  opacity: 1;
}

/* =========================
   PLANET K
========================= */

.planet-k {
  position: fixed;
  left: 50%;
  transform: translateX(430px) translateY(0);
  bottom: 520px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  z-index: 30;
  cursor: pointer;
  overflow: visible;
  animation: floatK 18s ease-in-out infinite;
  transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
  pointer-events: auto;
}

.planet-k:hover {
  z-index: 40;
}

.planet-k::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.18) 0 10%, transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(0, 0, 0, 0.20) 0%, transparent 46%),
    url("../assets/images/planet-k.png");
  background-size: auto, auto, cover;
  background-position: center, center, center 38%;
  background-repeat: no-repeat;
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.30),
    0 0 60px rgba(255, 140, 100, 0.25);
  transition:
    transform 0.55s ease,
    box-shadow 0.55s ease,
    filter 0.55s ease;
  transform: scale(1);
}

.planet-k-glow {
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 196, 120, 0.28) 0%,
      rgba(255, 120, 180, 0.18) 38%,
      rgba(255, 120, 180, 0) 72%);
  filter: blur(34px);
  opacity: 0.68;
  z-index: -1;
  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    filter 0.55s ease;
  transform: scale(1);
}

.planet-k-label {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.enter-planet {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 11px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.planet-k:hover::before {
  transform: scale(1.42);
  filter: brightness(1.1) saturate(1.12);
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.24),
    0 0 82px rgba(255, 140, 100, 0.34),
    0 0 140px rgba(255, 120, 180, 0.16);
}

.planet-k:hover .planet-k-glow {
  transform: scale(1.58);
  opacity: 1;
  filter: blur(42px);
}

.planet-k:hover .planet-k-label {
  transform: translateX(-50%) translateY(-4px);
  opacity: 1;
}

.planet-k:hover .enter-planet {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* =========================
   LAUNCHING
========================= */

body.launching .planet-k,
body.launching .planet-travel.active-travel {
  animation: none;
}

body.launching .planet-travel.active-travel {
  transform: scale(2.8) !important;
  z-index: 50;
  box-shadow:
    0 0 80px rgba(255, 255, 255, 0.20),
    0 0 140px rgba(255, 190, 120, 0.18);
}

body.launching .main-card,
body.launching .navbar-inner,
body.launching .footer,
body.launching .hero-glow,
body.launching .planet:not(.active-travel):not(.planet-k) {
  opacity: 0;
  transform: scale(0.98);
}

body.launching .travel-label {
  opacity: 0 !important;
}

body.launching .space-overlay {
  filter: blur(6px) brightness(1.06);
  opacity: 1;
}

body.launching .space-vignette {
  filter: blur(8px);
  opacity: 1;
}

/* =========================
   NAV / HERO
========================= */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 980px);
  z-index: 20;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
  opacity: 0.26;
}

.hero-glow-left {
  width: 320px;
  height: 320px;
  left: calc(50% - 340px);
  top: calc(50% - 30px);
  background:
    radial-gradient(circle,
      rgba(102, 90, 255, 0.18) 0%,
      rgba(102, 90, 255, 0.08) 44%,
      transparent 74%);
}

.hero-glow-right {
  width: 340px;
  height: 340px;
  left: calc(50% + 110px);
  top: calc(50% + 60px);
  background:
    radial-gradient(circle,
      rgba(255, 149, 100, 0.12) 0%,
      rgba(255, 92, 176, 0.08) 42%,
      transparent 74%);
}

.main-card {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  min-height: 380px;
  display: flex;
  justify-content: space-between;
  gap: 42px;
  padding: 42px 40px 38px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(8, 14, 34, 0.03);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.10),
    0 0 34px rgba(85, 87, 170, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.main-card::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -10%;
  width: 78%;
  height: 92%;
  border-radius: 28px;
  background-image: url("../assets/images/kittyverse-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.24;
  filter: blur(0.2px) saturate(1.02) brightness(0.92);
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse at 62% 58%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 38%,
    rgba(0, 0, 0, 0.60) 62%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 62% 58%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 38%,
    rgba(0, 0, 0, 0.60) 62%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );
}

.main-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(10, 16, 33, 0.2) 0%,
      rgba(8, 14, 34, 0.03) 28%,
      rgba(8, 14, 34, 0.01) 52%,
      rgba(8, 14, 34, 0.06) 74%,
      rgba(10, 12, 26, 0.16) 100%
    ),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.02) 0%, transparent 22%),
    radial-gradient(circle at 80% 76%, rgba(255, 135, 188, 0.02) 0%, transparent 20%);
}

.card-left,
.card-right {
  position: relative;
  z-index: 2;
}

.card-left {
  flex: 1 1 auto;
}

.hero-title {
  font-size: 58px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.sparkle {
  display: inline-block;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

.hero-description {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

.rarity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
  margin-bottom: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.primary-btn {
  color: #111111;
  background: linear-gradient(180deg, #ffcf58 0%, #ffb61d 100%);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.20);
}

.secondary-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.waitlist {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.waitlist-input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.waitlist-button {
  height: 44px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #111111;
  background: linear-gradient(180deg, #ffd65a 0%, #ffb800 100%);
  box-shadow: 0 10px 22px rgba(255, 184, 0, 0.18);
}

.waitlist-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.card-right {
  width: 220px;
  flex: 0 0 220px;
  padding-top: 4px;
}

.card-right h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.mint-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mint-info p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mint-info span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

.mint-info strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.footer {
  position: fixed;
  left: 0;
  bottom: 16px;
  width: 100%;
  text-align: center;
  z-index: 15;
  pointer-events: none;
}

.footer p {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================
   WARP TRANSITION
========================= */

#warp-transition {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

#warp-transition.active {
  opacity: 1;
  pointer-events: all;
}

#warp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #000;
}

#warp-transition.video-ready #warp-video {
  opacity: 1;
}

#warp-fallback-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14) 0%, rgba(120, 180, 255, 0.08) 16%, rgba(0, 0, 0, 0) 42%),
    radial-gradient(circle at center, rgba(255, 120, 180, 0.10) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, #02040a 0%, #000000 100%);
  transition: opacity 0.3s ease;
}

#warp-transition.fallback-active #warp-fallback-glow {
  opacity: 1;
}

#arrival-smoke {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, rgba(220, 235, 255, 0.16) 16%, rgba(255, 255, 255, 0.08) 28%, rgba(0, 0, 0, 0) 56%);
  filter: blur(22px);
  transition: opacity 0.7s ease, filter 0.7s ease;
}

#arrival-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.45);
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1s ease,
    box-shadow 1s ease,
    filter 1s ease;
  box-shadow:
    inset -18px -20px 30px rgba(0, 0, 0, 0.22),
    inset 10px 10px 18px rgba(255, 255, 255, 0.05),
    0 0 36px rgba(255, 255, 255, 0.08);
}

#arrival-planet.arrival-earth {
  background:
    radial-gradient(circle at 64% 34%, #5ba34d 0 15%, transparent 16%),
    radial-gradient(circle at 40% 62%, #6cab4d 0 13%, transparent 14%),
    radial-gradient(circle at 26% 46%, #3f7f38 0 12%, transparent 13%),
    radial-gradient(circle at 30% 30%, #80ccff 0%, #317cde 62%, #1b4ea8 100%);
}

#arrival-planet.arrival-mars {
  background:
    radial-gradient(circle at 60% 28%, rgba(255, 186, 133, 0.20) 0 8%, transparent 9%),
    radial-gradient(circle at 38% 58%, rgba(165, 45, 22, 0.32) 0 10%, transparent 11%),
    radial-gradient(circle at 30% 30%, #ffb07f 0%, #df6f3c 42%, #b43123 74%, #7b1918 100%);
}

#arrival-planet.arrival-venus {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18) 0 10%, transparent 11%),
    radial-gradient(circle at 66% 42%, rgba(92, 48, 22, 0.26) 0 10%, transparent 11%),
    radial-gradient(circle at 38% 64%, rgba(164, 103, 68, 0.22) 0 14%, transparent 15%),
    radial-gradient(circle at 30% 30%, #f2d0ad 0%, #cf9e74 45%, #a36f4e 72%, #6b4631 100%);
}

#arrival-planet-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 150px);
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.arrival-phase #arrival-smoke {
  opacity: 1;
  filter: blur(12px);
}

body.arrival-phase #arrival-planet {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    inset -18px -20px 30px rgba(0, 0, 0, 0.18),
    inset 10px 10px 18px rgba(255, 255, 255, 0.06),
    0 0 58px rgba(255, 255, 255, 0.12),
    0 0 120px rgba(255, 190, 120, 0.10);
}

body.arrival-phase #arrival-planet-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes planetFloatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -8px); }
}

@keyframes planetFloatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 12px); }
}

@keyframes planetFloatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}

@keyframes planetFloatD {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -7px); }
}

@keyframes planetFloatE {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 10px); }
}

@keyframes planetFloatF {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 5px); }
}

@keyframes planetFloatG {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -5px); }
}

@keyframes planetFloatH {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, 6px); }
}

@keyframes floatK {
  0%, 100% { transform: translateX(430px) translateY(0px); }
  50% { transform: translateX(430px) translateY(-10px); }
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.95; }
  50% { transform: rotate(6deg) scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .main-card {
    flex-direction: column;
    gap: 28px;
  }

  .card-right {
    width: 100%;
    flex: 1 1 auto;
  }

  .main-card::before {
    right: -6%;
    bottom: -6%;
    width: 84%;
    height: 82%;
    opacity: 0.20;
  }

  .hero-glow-left,
  .hero-glow-right {
    opacity: 0.18;
  }

  .planet-k {
    width: 130px;
    height: 130px;
    transform: translateX(230px);
    bottom: 250px;
  }

  #arrival-planet {
    width: 180px;
    height: 180px;
  }

  #arrival-planet-label {
    top: calc(50% + 126px);
  }
}

@media (max-width: 600px) {
  .navbar-inner {
    padding: 14px 18px;
    gap: 18px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-card {
    padding: 26px 18px;
  }

  .hero-title {
    font-size: 40px;
  }

  .main-card::before {
    width: 92%;
    height: 72%;
    right: -10%;
    bottom: -4%;
    opacity: 0.16;
  }

  .btn,
  .waitlist-input,
  .waitlist-button {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
/* =========================
   PI PANEL
========================= */

.pi-panel {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  max-width: 380px;
}

.pi-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pi-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 80, 0.18);
  border: 1px solid rgba(255, 196, 80, 0.24);
  color: #ffd45d;
  font-size: 12px;
  font-weight: 700;
}

.pi-status {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.pi-status.is-connected {
  color: #8df2a5;
}
.pi-panel-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.pi-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pi-user-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.pi-user strong {
  color: #ffffff;
  font-size: 14px;
}

.pi-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pi-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* =========================
   PLANET K MAP OVERLAY
========================= */

.planet-k-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.planet-k-overlay.is-open {
  display: block;
}

.planet-k-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(10px);
}

.planet-k-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  max-height: 88vh;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: rgba(10, 16, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.planet-k-modal-header {
  margin-bottom: 14px;
  text-align: center;
}

.planet-k-modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.planet-k-modal-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.planet-k-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.planet-k-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

/* =========================
   PLANET K INTERACTIVE MAP
========================= */

.planet-k-map-wrapper {
  width: 100%;
  max-height: calc(88vh - 90px);
  overflow: auto;
  display: grid;
  gap: 16px;
}

.planet-k-map-stage {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.16));
}

.planet-k-map-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.planet-k-map-zones {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.planet-k-zone-shape {
  fill: rgba(255, 214, 90, 0.04);
  stroke: rgba(255, 255, 255, 0.20);
  stroke-width: 3;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.planet-k-zone-shape:hover,
.planet-k-zone-shape:focus-visible {
  fill: rgba(255, 214, 90, 0.18);
  stroke: rgba(255, 214, 90, 0.95);
  filter: drop-shadow(0 0 12px rgba(255, 214, 90, 0.55));
  outline: none;
}

.planet-k-zone-shape.is-active {
  fill: rgba(120, 200, 255, 0.18);
  stroke: rgba(120, 200, 255, 0.98);
  filter: drop-shadow(0 0 12px rgba(120, 200, 255, 0.45));
}

.planet-k-label {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.planet-k-zone-panel {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.planet-k-zone-panel h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.planet-k-zone-panel p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.planet-k-zone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.planet-k-zone-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.planet-k-zone-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .planet-k-zone-panel h3 {
    font-size: 18px;
  }

  .planet-k-zone-label {
    font-size: 12px;
    padding: 7px 10px;
  }
}