/* Nunito and Rubik (SIL OFL 1.1, fonts/OFL-*.txt), served from this site: no font CDN. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('../fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('../fonts/rubik-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Rubik;
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/rubik-italic-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Rubik;
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/rubik-italic-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hero-red: #e6192e;
  --hero-orange: #ff7b00;
  --hero-gold: #fc0;
  --joy-glow: #fde047;
  --sadness-blue: #38bdf8;
  --passion-pink: #ff2a85;
  --fear-purple: #a855f7;
  --disgust-green: #10b981;
  --dark-void: #070510;
  --card-surface: rgb(20 14 36 / 88%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Nunito, sans-serif;
  background-color: var(--dark-void);
  background-image:
    radial-gradient(circle at 50% 0%, rgb(255 123 0 / 25%), transparent 55%),
    radial-gradient(circle at 12% 25%, rgb(230 25 46 / 20%), transparent 45%),
    radial-gradient(circle at 88% 35%, rgb(168 85 247 / 22%), transparent 45%),
    linear-gradient(180deg, rgb(9 4 20 / 78%) 0%, rgb(22 10 32 / 84%) 50%, rgb(6 4 11 / 92%) 100%),
    url('../img/bg.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

body.locked {
  overflow: hidden;
}

h1,
h2,
h3,
.hero-font {
  font-family: Rubik, Nunito, sans-serif;
  letter-spacing: -0.3px;
}

/* Neon orbs in the background */
.emotion-orbs-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.emotion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-45px) scale(1.12);
  }
}

/* Canvas: falling drops and socks */
#sperm-rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.bg-loop-gallery {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.28;
}

.bg-floating-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scrollLoop 38s linear infinite;
  margin-top: 6vh;
}

.bg-floating-track.reverse {
  animation: scrollLoopReverse 44s linear infinite;
  margin-top: 15vh;
}

.bg-frame {
  width: 320px;
  height: 200px;
  border-radius: 30px;
  border: 3px solid rgb(255 204 0 / 35%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgb(0 0 0 / 75%);
  flex-shrink: 0;
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0) rotate(-2deg);
  }

  50% {
    transform: translateX(-50%) rotate(2deg);
  }

  100% {
    transform: translateX(0) rotate(-2deg);
  }
}

@keyframes scrollLoopReverse {
  0% {
    transform: translateX(-50%) rotate(2deg);
  }

  50% {
    transform: translateX(0) rotate(-2deg);
  }

  100% {
    transform: translateX(-50%) rotate(2deg);
  }
}

/* 3D cards and buttons */
.pixar-card {
  background: var(--card-surface);
  backdrop-filter: blur(20px);
  border-radius: 36px;
  border: 3px solid rgb(255 204 0 / 28%);
  box-shadow:
    0 25px 50px rgb(0 0 0 / 80%),
    0 0 30px rgb(230 25 46 / 20%),
    inset 0 4px 12px rgb(255 255 255 / 35%),
    inset 0 -8px 16px rgb(0 0 0 / 60%);
  padding: 34px;
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.pixar-card:hover {
  transform: translateY(-6px);
  border-color: rgb(255 204 0 / 65%);
  box-shadow:
    0 32px 65px rgb(0 0 0 / 90%),
    0 0 40px rgb(255 123 0 / 45%),
    inset 0 5px 15px rgb(255 255 255 / 45%);
}

.pixar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid rgb(255 255 255 / 45%);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #f90 0%, #e6192e 100%);
  box-shadow:
    0 8px 0 #800814,
    0 16px 30px rgb(230 25 46 / 55%),
    inset 0 4px 6px rgb(255 255 255 / 75%);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
}

.pixar-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 12px 0 #800814,
    0 22px 38px rgb(255 123 0 / 75%),
    inset 0 4px 8px rgb(255 255 255 / 90%);
}

.pixar-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 3px 0 #800814,
    0 8px 12px rgb(0 0 0 / 50%);
}

.pixar-btn.green {
  background: linear-gradient(180deg, #4ade80 0%, #059669 100%);
  box-shadow:
    0 8px 0 #064e3b,
    0 16px 30px rgb(16 185 129 / 50%),
    inset 0 4px 6px rgb(255 255 255 / 75%);
}

.pixar-btn.blue {
  background: linear-gradient(180deg, #60a5fa 0%, #0284c7 100%);
  box-shadow:
    0 8px 0 #0c4a6e,
    0 16px 30px rgb(56 189 248 / 50%),
    inset 0 4px 6px rgb(255 255 255 / 75%);
}

.pixar-btn.pink {
  background: linear-gradient(180deg, #ff5ca8 0%, #be123c 100%);
  box-shadow:
    0 8px 0 #4c0519,
    0 16px 30px rgb(244 63 94 / 50%),
    inset 0 4px 6px rgb(255 255 255 / 75%);
}

.incredible-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #111 0%, #29080c 50%, #111 100%);
  color: var(--hero-gold);
  border: 3px solid var(--hero-gold);
  padding: 7px 20px;
  border-radius: 999px;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow:
    0 6px 18px rgb(255 204 0 / 35%),
    inset 0 2px 4px rgb(255 255 255 / 40%);
  margin-bottom: 16px;
}

/* Fixed corner button */
.top-left-corner-control {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 100005;
}

.music-toggle-btn {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 13.5px;
  color: #fff;
  background: linear-gradient(135deg, #ff7b00 0%, #e6192e 100%);
  border: 2px solid var(--hero-gold);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow:
    0 4px 14px rgb(230 25 46 / 45%),
    inset 0 2px 4px rgb(255 255 255 / 50%);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  white-space: nowrap;
}

.music-toggle-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgb(255 204 0 / 65%);
}

.music-toggle-btn.muted {
  background: rgb(30 22 50 / 90%);
  border-color: rgb(255 255 255 / 30%);
  color: #94a3b8;
  box-shadow: none;
}

.brand-icon-img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 2.5px solid var(--hero-gold);
  box-shadow: 0 4px 16px rgb(255 123 0 / 60%);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.dev-avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  border: 3.5px solid var(--hero-gold);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 10px 25px rgb(0 0 0 / 65%),
    0 0 20px rgb(255 204 0 / 35%);
  background: #111;
}

.dev-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* One-line header */
header#top-header {
  max-width: 1160px;
  width: 96%;
  margin: 20px auto 32px;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 12px rgb(0 0 0 / 60%);
}

nav#main-nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

nav a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  border: 2px solid rgb(255 255 255 / 15%);
  transition: all 0.25s;
  flex: 1 1 0px;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background: linear-gradient(90deg, var(--hero-orange), var(--hero-red));
  border-color: var(--hero-gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgb(230 25 46 / 50%);
}

@media (width <= 992px) {
  nav a {
    font-size: 12px;
    padding: 8px;
  }
}

@media (width <= 768px) {
  header#top-header {
    margin-top: 68px;
  }

  nav#main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .top-left-corner-control {
    top: 12px;
    left: 12px;
  }
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 70px;
  position: relative;
  z-index: 2;
}

section {
  scroll-margin-top: 32px;
  margin-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 0%, #fde047 55%, #ff7b00 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 12px rgb(0 0 0 / 75%));
}

.section-subtitle {
  text-align: center;
  color: #e2e8f0;
  font-size: 17px;
  max-width: 780px;
  margin: 0 auto 38px;
  line-height: 1.6;
}

/* Hero file */
.hero-mission-banner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 45px;
  background: linear-gradient(
    135deg,
    rgb(230 25 46 / 28%) 0%,
    rgb(20 14 36 / 94%) 55%,
    rgb(168 85 247 / 28%) 100%
  );
  border: 4px solid var(--hero-gold);
}

.hero-avatar-showcase {
  width: 100%;
  height: 270px;
  border-radius: 28px;
  border: 4px solid rgb(255 204 0 / 60%);
  overflow: hidden;
  box-shadow:
    0 15px 35px rgb(0 0 0 / 70%),
    0 0 30px rgb(255 123 0 / 40%);
  background: #120924;
}

.hero-avatar-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.superpowers-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

@media (width <= 900px) {
  .superpowers-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 580px) {
  .superpowers-pills {
    grid-template-columns: 1fr;
  }
}

.power-pill {
  background: rgb(0 0 0 / 55%);
  border: 2px solid rgb(255 204 0 / 45%);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  height: 100%;
  box-sizing: border-box;
  box-shadow:
    inset 0 2px 4px rgb(255 255 255 / 8%),
    0 4px 10px rgb(0 0 0 / 45%);
  transition: all 0.25s ease;
}

.power-pill:hover {
  border-color: var(--hero-gold);
  background: rgb(255 204 0 / 14%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(255 204 0 / 35%);
}

.hero-extra-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  align-items: stretch;
}

@media (width <= 900px) {
  .hero-extra-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 580px) {
  .hero-extra-features {
    grid-template-columns: 1fr;
  }
}

.hero-feat-card {
  background: rgb(10 6 24 / 65%);
  border: 2px solid rgb(255 204 0 / 35%);
  border-radius: 20px;
  padding: 18px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.hero-feat-card:hover {
  border-color: var(--hero-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgb(255 123 0 / 30%);
}

.hero-feat-title {
  font-weight: 900;
  font-size: 14.5px;
  color: var(--hero-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.hero-feat-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  flex-grow: 1;
}

/* Trailer */
.trailer-box {
  max-width: 880px;
  margin: 0 auto 50px;
  padding: 18px;
  border-radius: 40px;
  background: linear-gradient(135deg, #fc0 0%, #e6192e 50%, #7c3aed 100%);
  box-shadow:
    0 30px 70px rgb(0 0 0 / 85%),
    0 0 50px rgb(230 25 46 / 50%);
}

.trailer-video {
  width: 100%;
  border-radius: 28px;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Book */
.storybook-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.storybook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(90deg, #27153d 0%, #392056 48%, #1e0f30 50%, #321b4d 100%);
  border-radius: 36px;
  border: 6px solid var(--hero-gold);
  box-shadow:
    0 32px 65px rgb(0 0 0 / 90%),
    0 0 35px rgb(255 204 0 / 30%);
  overflow: hidden;
  min-height: 440px;
  position: relative;
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 20px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgb(0 0 0 / 65%), rgb(255 204 0 / 35%), rgb(0 0 0 / 65%));
  z-index: 2;
}

.book-page {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-photo-frame {
  width: 100%;
  height: 320px;
  border-radius: 26px;
  border: 4px solid rgb(255 204 0 / 45%);
  overflow: hidden;
  background: rgb(10 6 22 / 85%);
  box-shadow: 0 16px 32px rgb(0 0 0 / 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

/* Manual steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-photo {
  width: 100%;
  height: 195px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgb(255 204 0 / 35%);
  margin-bottom: 16px;
  background: #140b29;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde047, #ff7b00 70%, #b91c1c 100%);
  border: 3px solid #fff;
  color: #000;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 15px rgb(255 123 0 / 60%);
}

/* Floating back button */
.floating-back-to-nav {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 9990;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, #f90 0%, #e6192e 100%);
  border: 2.5px solid var(--hero-gold);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 6px 0 #800814,
    0 14px 30px rgb(0 0 0 / 80%),
    0 0 22px rgb(255 204 0 / 45%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-back-to-nav.visible {
  opacity: 0.95;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-back-to-nav:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 9px 0 #800814,
    0 18px 36px rgb(255 123 0 / 75%);
}

/* Modal: age gate */
#age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgb(6 3 15 / 68%);
  backdrop-filter: blur(28px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.55s ease;
}

.age-gate-modal {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgb(230 25 46 / 35%), rgb(15 10 28 / 98%) 70%);
  border: 4px solid var(--hero-gold);
  border-radius: 42px;
  padding: 38px 32px;
  box-shadow:
    0 35px 80px rgb(0 0 0 / 95%),
    0 0 60px rgb(255 123 0 / 50%);
  animation: heroPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heroPop {
  0% {
    transform: scale(0.7) translateY(40px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.age-banner-photo-wrap {
  width: 250px;
  height: 250px;
  margin: 0 auto 22px;
  border-radius: 36px;
  border: 4px solid var(--hero-gold);
  background: radial-gradient(circle, rgb(255 204 0 / 35%), rgb(10 6 22 / 95%));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgb(0 0 0 / 75%),
    0 0 35px rgb(255 204 0 / 40%);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-banner-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-redirect-notice {
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 20px;
  background: rgb(56 189 248 / 16%);
  border: 2px solid var(--sadness-blue);
  color: #e0f2fe;
  font-weight: 800;
  font-size: 14.5px;
  display: none;
  animation: heroPop 0.4s ease;
}

/* Effects */
.slap-pop {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--hero-gold);
  text-shadow:
    0 3px 10px rgb(230 25 46 / 95%),
    0 0 6px #000;
  transform: translate(-50%, -50%);
  animation: slapPopAnim 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  user-select: none;
  white-space: nowrap;
}

@keyframes slapPopAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.5) rotate(-10deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -85%) scale(1.2) rotate(6deg);
  }

  75% {
    opacity: 1;
    transform: translate(-50%, -130%) scale(1.05) rotate(-3deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -175%) scale(0.9) rotate(0deg);
  }
}

@keyframes sectionPageFlip {
  0% {
    filter: brightness(1.35) drop-shadow(0 0 35px rgb(255 204 0 / 75%));
    transform: scale(0.985);
  }

  50% {
    filter: brightness(1.15) drop-shadow(0 0 16px rgb(255 123 0 / 50%));
    transform: scale(1.005);
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

.section-flip-active {
  animation: sectionPageFlip 0.75s ease-out;
}

@keyframes bookPageTurn {
  0% {
    transform: perspective(1000px) rotateY(18deg) scale(0.96);
    opacity: 0.6;
  }

  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.book-flip-anim {
  animation: bookPageTurn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, rgb(20 14 36 / 95%), rgb(230 25 46 / 95%));
  border: 3px solid var(--hero-gold);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  box-shadow:
    0 15px 40px rgb(0 0 0 / 85%),
    0 0 25px rgb(255 204 0 / 50%);
  z-index: 100010;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  max-width: 90%;
}

#custom-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

footer {
  text-align: center;
  padding: 34px 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #94a3b8;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

@media (width <= 840px) {
  .hero-mission-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .superpowers-pills {
    justify-content: center;
  }

  .storybook {
    grid-template-columns: 1fr;
  }

  .book-spine {
    display: none;
  }

  .section-title {
    font-size: 30px;
  }
}

/* Big download buttons */
.single-download-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border: 4px solid var(--hero-gold);
  border-radius: 40px;
  padding: 44px 32px;
  background: radial-gradient(circle at 50% 15%, rgb(255 123 0 / 25%), rgb(20 14 36 / 96%) 75%);
  box-shadow:
    0 25px 60px rgb(0 0 0 / 85%),
    0 0 45px rgb(255 204 0 / 28%);
  position: relative;
  overflow: hidden;
}

.single-download-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgb(255 204 0 / 12%) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseAura 6s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.main-win-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 21px;
  text-transform: uppercase;
  padding: 22px 52px;
  border-radius: 999px;
  border: 3px solid rgb(255 255 255 / 85%);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #10b981 0%, #047857 50%, #064e3b 100%);
  box-shadow:
    0 10px 0 #022c22,
    0 22px 42px rgb(16 185 129 / 65%),
    inset 0 4px 8px rgb(255 255 255 / 85%);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgb(0 0 0 / 60%);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.main-win-download-btn:hover {
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(180deg, #34d399 0%, #059669 50%, #064e3b 100%);
  box-shadow:
    0 14px 0 #022c22,
    0 30px 55px rgb(52 211 153 / 80%),
    inset 0 5px 12px rgb(255 255 255 / 100%);
}

.main-win-download-btn:active {
  transform: translateY(6px);
  box-shadow:
    0 4px 0 #022c22,
    0 10px 18px rgb(0 0 0 / 55%);
}

.win-btn-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 40%));
}

.download-specs-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.spec-pill {
  background: rgb(10 6 24 / 70%);
  border: 2px solid rgb(255 204 0 / 45%);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 40%);
}

@media (width <= 768px) {
  .single-download-box {
    padding: 32px 18px;
    border-radius: 30px;
  }

  .main-win-download-btn {
    font-size: 16px;
    padding: 18px 24px;
    width: 100%;
  }

  .win-btn-logo {
    width: 26px;
    height: 26px;
  }

  .spec-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* =====================================================================
   ADDITIONS & FIXES (2026-11 refresh)
   ===================================================================== */

/* background orbs (moved out of inline styles) */
.orb-1 {
  width: 180px;
  height: 180px;
  top: 12%;
  left: 6%;
  background: radial-gradient(circle, #fde047, transparent 70%);
}

.orb-2 {
  width: 240px;
  height: 240px;
  top: 45%;
  right: 5%;
  background: radial-gradient(circle, #e6192e, transparent 70%);
  animation-delay: -4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 15%;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation-delay: -8s;
}

.orb-4 {
  width: 160px;
  height: 160px;
  top: 75%;
  right: 20%;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  animation-delay: -2s;
}

.c-gold {
  color: var(--hero-gold);
}

.c-red {
  color: var(--hero-red);
}

.c-blue {
  color: var(--sadness-blue);
}

[hidden] {
  display: none !important;
}

a.brand {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--hero-gold);
  outline-offset: 3px;
}

/* header no longer slides under the corner buttons */
header#top-header {
  margin-top: 84px;
}

/* long titles never overflow on small screens */
.section-title {
  font-size: clamp(26px, 4.2vw, 40px);
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.12;
}

/* ---------- 18+ gate ---------- */
.age-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.age-desc {
  color: #e2e8f0;
  font-size: 15.5px;
  margin-bottom: 26px;
  line-height: 1.55;
}

.age-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-retry-wrap {
  display: none;
  margin-top: 18px;
}

.age-retry-wrap .pixar-btn {
  font-size: 14px;
  padding: 12px 24px;
}

/* ---------- hero ---------- */
.hero-mission-banner {
  grid-template-columns: 320px 1fr;
  padding: 40px;
}

.hero-avatar-showcase {
  height: 320px;
}

.hero-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #fff;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 680px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-cta {
  font-size: 17px;
  padding: 18px 34px;
}

.repeat-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- powers ---------- */
#powers-section .superpowers-pills {
  max-width: 1060px;
  margin: 0 auto;
}

#powers-section .hero-extra-features {
  max-width: 1060px;
  margin: 22px auto 0;
}

/* ---------- trailer ---------- */
.trailer-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgb(7 5 16 / 25%), rgb(7 5 16 / 75%)),
    url('../img/bg.webp') center / cover no-repeat;
  border: 0;
  color: #fff;
}

.trailer-soon {
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 3vw, 28px);
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  border: 3px solid var(--hero-gold);
  color: var(--hero-gold);
}

.trailer-play {
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.play-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  padding-left: 6px;
  background: linear-gradient(180deg, #f90, #e6192e);
  border: 4px solid #fff;
  box-shadow: 0 12px 30px rgb(230 25 46 / 70%);
  transition: transform 0.2s;
}

.trailer-play:hover .play-icon {
  transform: scale(1.1);
}

iframe.trailer-video {
  border: 0;
  height: auto;
}

/* ---------- download box ---------- */
#download {
  scroll-margin-top: 24px;
}

.dl-title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 2;
}

.dl-desc {
  color: #e2e8f0;
  font-size: 16.5px;
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.main-win-download-btn.is-soon {
  filter: saturate(0.75);
}

.dl-meta {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 800;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}

.mobile-panel {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 18px;
  border-radius: 26px;
  background: rgb(0 0 0 / 45%);
  border: 2px dashed rgb(255 204 0 / 55%);
}

.mobile-title {
  font-family: Rubik, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--hero-gold);
  margin-bottom: 8px;
}

.mobile-desc {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.mobile-actions {
  display: grid;
  gap: 14px;
}

.mobile-actions .pixar-btn {
  width: 100%;
  font-size: 15px;
  padding: 15px 18px;
}

.store-links:not(:empty) {
  margin-top: 14px;
}

.store-btn {
  width: 100%;
}

.inapp-hint {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgb(56 189 248 / 14%);
  border: 2px solid var(--sadness-blue);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.other-platforms {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 14px;
  color: #cbd5e1;
}

#other-platform-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 8%);
  transition: all 0.2s;
}

.platform-link:hover {
  border-color: var(--hero-gold);
  background: rgb(255 204 0 / 15%);
}

.ss-help {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 24px auto 0;
  text-align: left;
  background: rgb(0 0 0 / 35%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  padding: 12px 18px;
  font-size: 14px;
  color: #cbd5e1;
}

.ss-help summary {
  cursor: pointer;
  font-weight: 800;
  color: #f8fafc;
}

.ss-help p {
  margin-top: 10px;
  line-height: 1.55;
}

/* ---------- book ---------- */
.book-badge {
  align-self: flex-start;
  margin-bottom: 12px;
}

.book-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--hero-gold);
}

.book-text {
  color: #f1f5f9;
  font-size: 16px;
  line-height: 1.65;
}

.book-indicator {
  font-family: Rubik, sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--hero-gold);
}

.book-controls .pixar-btn {
  padding: 12px 24px;
}

/* ---------- guide ---------- */
.step-title {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--hero-gold);
  text-shadow: 0 2px 6px rgb(0 0 0 / 65%);
}

.step-desc {
  color: #f8fafc;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
}

.step-photo {
  height: auto;
  aspect-ratio: 4 / 3;
}

/* ---------- creators ---------- */
.devs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.dev-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dev-role {
  font-weight: 900;
  font-size: 13px;
}

.dev-name {
  font-size: 22px;
  font-weight: 900;
  margin: 4px 0;
}

.dev-desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- privacy ---------- */
.privacy-card {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
}

.privacy-card p + p {
  margin-top: 12px;
}

/* ---------- phones & tablets ---------- */
@media (width <= 840px) {
  .hero-mission-banner {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .hero-avatar-showcase {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .book-page {
    padding: 24px;
  }

  .book-photo-frame {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (width <= 768px) {
  header#top-header {
    margin-top: 68px;
    padding: 14px 16px;
  }

  .hero-cta {
    width: 100%;
    font-size: 16px;
    padding: 16px 20px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .superpowers-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .power-pill {
    font-size: 12px;
    border-radius: 18px;
    padding: 8px 10px;
  }

  .pixar-card {
    padding: 22px;
    border-radius: 28px;
  }

  .trailer-box {
    padding: 10px;
    border-radius: 28px;
    margin-bottom: 36px;
  }

  .trailer-video,
  .trailer-poster {
    border-radius: 20px;
  }

  section {
    margin-bottom: 64px;
  }

  .book-controls {
    gap: 10px;
  }

  .book-controls .pixar-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .dev-card {
    flex-direction: column;
    text-align: center;
  }

  .devs-grid {
    grid-template-columns: 1fr;
  }

  .age-gate-modal {
    padding: 26px 18px;
    border-radius: 32px;
  }

  .age-banner-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .age-title {
    font-size: 22px;
  }

  .age-desc {
    font-size: 14.5px;
  }

  .floating-back-to-nav {
    bottom: 18px;
    right: 14px;
  }
}

/* phones: lighter effects so the page stays smooth inside TikTok / Instagram */
body.is-mobile {
  background-attachment: scroll;
}

body.is-mobile .pixar-card,
body.is-mobile .pixar-card:hover {
  backdrop-filter: none;
  transform: none;
}

body.is-mobile .bg-loop-gallery {
  display: none;
}

body.is-mobile .emotion-orb {
  animation: none;
}

body.is-mobile .single-download-box::before {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bg-loop-gallery,
  #sperm-rain-canvas {
    display: none;
  }
}

.book-indicator {
  white-space: nowrap;
}

@media (width <= 768px) {
  .superpowers-pills .power-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 50%;
  }
}

/* ---------- Windows + macOS buttons ---------- */
.dl-platforms {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.dl-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dl-platforms .main-win-download-btn {
  width: 100%;
  font-size: 18px;
  padding: 20px 22px;
  gap: 12px;
}

.dl-option-meta {
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
  min-height: 1em;
}

/* the other system's button is quieter than the visitor's own */
.dl-platforms.has-primary .dl-option:not(.is-primary) .main-win-download-btn {
  background: linear-gradient(180deg, #3b3355 0%, #231c38 100%);
  border-color: rgb(255 255 255 / 45%);
  box-shadow:
    0 8px 0 #120d20,
    0 16px 30px rgb(0 0 0 / 50%),
    inset 0 3px 6px rgb(255 255 255 / 35%);
}

.dl-platforms.has-primary .dl-option:not(.is-primary) .main-win-download-btn:hover {
  background: linear-gradient(180deg, #4a4170 0%, #2c2446 100%);
}

.help-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.help-list .ss-help {
  margin: 0 auto;
  width: 100%;
}

@media (width <= 760px) {
  .dl-platforms {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.dl-platforms .main-win-download-btn {
  text-transform: none;
  font-size: 19px;
  letter-spacing: 0;
}

/* ---------- added for the release build (task J) ---------- */

/* Without JavaScript there is no age gate to pass (as the original <noscript> rule). */
.no-js #age-gate-overlay {
  display: none;
}

.no-js body.locked {
  overflow: auto;
}

.priv-label {
  color: var(--hero-gold);
}

.dl-alt-link {
  color: var(--hero-gold);
  font-size: 13px;
  font-weight: 800;
}

.ss-help a,
.footer-links a,
.guide-page a {
  color: var(--hero-gold);
}

.checksum-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.checksum-list code,
.ss-help code,
.guide-page code {
  font-size: 12px;
  word-break: break-all;
  color: #f8fafc;
}

.dl-chip-hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.release-notes {
  white-space: pre-line;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
}

.footer-note {
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
}

/* Installation guide and 404 page */
.guide-page {
  max-width: 860px;
  margin: 32px auto 64px;
  line-height: 1.6;
  color: #e2e8f0;
}

.guide-page h1,
.guide-page h2 {
  color: var(--hero-gold);
  margin: 24px 0 12px;
}

.guide-page h1:first-child {
  margin-top: 0;
}

.guide-page p,
.guide-page ul,
.guide-page ol,
.guide-page blockquote {
  margin-bottom: 12px;
}

.guide-page ul,
.guide-page ol {
  padding-left: 24px;
}

.guide-page blockquote {
  border-left: 4px solid var(--hero-gold);
  padding-left: 14px;
  color: #cbd5e1;
}

.guide-page figure {
  margin: 12px 0;
}

.guide-page img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-header {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Early-access label next to the version of a pre-release (ADR 0034 addendum 2). */
.dl-early {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 204 0 / 18%);
  border: 1px solid rgb(255 204 0 / 55%);
  color: #fc0;
  letter-spacing: 0.02em;
}
