/* ========================================
   RESET
======================================== */

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

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

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

/* ========================================
   CANVAS + BACKGROUND
======================================== */

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

body.kittyverse-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -29;
  pointer-events: none;

  background:
    linear-gradient(
      rgba(4, 6, 18, 0.76),
      rgba(4, 6, 18, 0.86)
    ),
    url("../assets/images/storypage.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
}

.space-overlay {
  position: fixed;
  inset: 0;
  z-index: -28;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(122, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(255, 152, 88, 0.10), transparent 26%),
    radial-gradient(circle at 52% 88%, rgba(255, 84, 176, 0.08), transparent 30%);
}

.space-vignette {
  position: fixed;
  inset: 0;
  z-index: -27;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.26) 74%, rgba(0, 0, 0, 0.62) 100%);
}

/* ========================================
   NAVBAR
======================================== */

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

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 20px;
  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: 800;
  color: #ffffff;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ========================================
   KITTYVERSE LAYOUT
======================================== */

.kittyverse-main {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 118px 18px 90px;
}

.kittyverse-hero {
  width: 100%;
  margin-bottom: 22px;
}

.kittyverse-container {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: 28px;
  background: rgba(8, 14, 34, 0.58);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kittyverse-badge {
  display: inline-flex;
  margin-bottom: 18px;
  color: #d59cff;
  font-size: 14px;
  font-weight: 800;
}

.kittyverse-title {
  max-width: 620px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin-bottom: 24px;
}

.kittyverse-intro {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.kittyverse-grid {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kv-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(8, 14, 34, 0.56);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kv-card h2 {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
}

.kv-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.kv-card a {
  display: inline-flex;
  color: #ffd45d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.kv-card a:hover {
  color: #ffffff;
}

.kv-primary {
  background:
    linear-gradient(
      135deg,
      rgba(255, 196, 80, 0.16),
      rgba(8, 14, 34, 0.58)
    );
}

.kv-card.locked {
  opacity: 0.72;
}

.kv-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.kv-status.open,
.kv-status.active {
  color: #8df2a5;
  background: rgba(141, 242, 165, 0.12);
  border: 1px solid rgba(141, 242, 165, 0.18);
}

.kv-status.stable {
  color: #8fdcff;
  background: rgba(143, 220, 255, 0.12);
  border: 1px solid rgba(143, 220, 255, 0.18);
}

.kv-status.unknown {
  color: #d59cff;
  background: rgba(213, 156, 255, 0.12);
  border: 1px solid rgba(213, 156, 255, 0.18);
}

.kv-status.locked {
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* MOBILE */

@media (max-width: 600px) {
  .kittyverse-main {
    padding: 96px 14px 84px;
  }

  .kittyverse-container {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .kittyverse-title {
    font-size: 38px;
    line-height: 1;
  }

  .kittyverse-intro {
    font-size: 14px;
    line-height: 1.75;
  }

  .kittyverse-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kv-card {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .kv-card h2 {
    font-size: 25px;
  }
}

/* ========================================
   FOOTER
======================================== */

.footer {
  position: fixed;
  left: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 100%;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.footer p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.56);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .navbar {
    top: 8px;
    width: min(94%, 980px);
  }

  .navbar-inner.compact {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .logo {
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links.compact {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(8, 14, 34, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
    z-index: 30;
  }

  .nav-links.compact a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.04);
  }

  .navbar.menu-open .nav-links.compact {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.story-body::before {
    opacity: 0.28;
    background-position: center top;
  }

  .story-main {
    padding: 96px 14px 84px;
  }

  .story-hero,
  .story-section,
  .story-final {
    margin-bottom: 16px;
  }

  .story-container,
  .story-container.narrow {
    width: 100%;
    padding: 24px 18px;
    border-radius: 22px;
    background: rgba(8, 14, 34, 0.62);
  }

  .story-badge {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .story-title {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 22px;
  }

  .story-intro,
  .story-section p,
  .story-final p {
    font-size: 14px;
    line-height: 1.75;
  }

  .story-section h2,
  .story-final h2 {
    font-size: 25px;
  }

  .story-button {
    width: 100%;
  }

  .footer {
    display: none;
  }
}
/* ========================================
   SIRIUS GHOST BACKGROUND
======================================== */

.story-main::before {
  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: -26;

  background:
    url("../assets/images/storypage.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.17;

  mix-blend-mode: screen;

  filter:
    blur(1px)
    saturate(1.1);
}
.kittyverse-mantra {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 196, 80, 0.10);
  border: 1px solid rgba(255, 196, 80, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

.kittyverse-mantra strong {
  color: #ffd45d;
}