:root {
  --bg: #140628;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d041c;
  }
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

/* Multi-Section Scroll Snap Container */
.story-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Individual Fullscreen Story Section */
.story-section {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Centered Canvas Container that preserves aspect ratio */
.canvas-stage {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 941 / 1672;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Animated Canvas in each Section */
.story-canvas {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  display: block;
}

/* ==========================================================================
   CLICKABLE KANVERSE.LIVE BUTTON (SECTION 6)
   ========================================================================== */
.kanverse-link {
  position: absolute;
  left: 31%;
  top: 40.6%;
  width: 38%;
  height: 4.8%;
  border-radius: 40px;
  cursor: pointer;
  z-index: 25;
  text-decoration: none;
  background: rgba(255, 235, 59, 0.01);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.kanverse-link:hover {
  transform: scale(1.04);
  background: rgba(255, 235, 59, 0.12);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.55);
}

.kanverse-link:active {
  transform: scale(0.96);
  background: rgba(255, 235, 59, 0.2);
}
