:root {
  --bg: #050716;
  --panel: rgba(16, 24, 59, 0.58);
  --panel-strong: rgba(22, 29, 75, 0.82);
  --text: #f6f7ff;
  --muted: #b9c0ef;
  --pink: #ff72d2;
  --hot: #ff3dbd;
  --cyan: #5be7ff;
  --blue: #72a7ff;
  --violet: #9f67ff;
  --gold: #ffd479;
  --line: rgba(144, 193, 255, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 80, 210, 0.2), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(91, 231, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 55%, rgba(116, 71, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #070923 0%, #050716 48%, #02030b 100%);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

body.party-mode .topbar,
body.party-mode .section-shell,
body.party-mode .world-card,
body.party-mode .gallery-item,
body.party-mode .ai-card {
  animation: partyPulse 1.4s ease-in-out infinite alternate;
}

body.party-mode .brand-mark {
  animation-duration: 0.4s;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 114, 210, 0.18), rgba(91, 231, 255, 0.12) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.topbar {
  position: sticky;
  top: 14px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 10, 31, 0.72);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.brand,
nav a,
.button,
.mini-button,
footer button {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 28px rgba(255, 114, 210, 0.5);
  animation: heartBeat 1.8s ease-in-out infinite;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  transition: 0.25s ease;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mini-button,
.button,
footer button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mini-button {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 114, 210, 0.92), rgba(111, 125, 255, 0.92));
  box-shadow: 0 0 28px rgba(255, 114, 210, 0.32);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: 34px;
  align-items: center;
  padding: 40px 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-shadow: 0 0 26px rgba(91, 231, 255, 0.3);
}

h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--pink), var(--cyan), #fff);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 36px rgba(255, 61, 189, 0.35);
  animation: gradientText 4s linear infinite;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  overflow: hidden;
}

.button:before,
.mini-button:before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  animation: shine 3.2s ease-in-out infinite;
}

.primary {
  background: linear-gradient(135deg, var(--hot), var(--violet), var(--cyan));
  box-shadow: 0 18px 46px rgba(159, 103, 255, 0.32);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.stats div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stats b {
  display: block;
  font-size: 30px;
  color: #fff;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-art {
  min-height: 620px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 28%, rgba(91, 231, 255, 0.22), transparent 25%),
    radial-gradient(circle at 70% 78%, rgba(255, 114, 210, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow), inset 0 0 80px rgba(91, 231, 255, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hero-art img {
  width: 112%;
  max-width: none;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
  animation: float 5.4s ease-in-out infinite;
}

.holo-card {
  position: absolute;
  top: 9%;
  right: 8%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(91, 231, 255, 0.5);
  background: rgba(4, 10, 35, 0.72);
  box-shadow: 0 0 34px rgba(91, 231, 255, 0.32), inset 0 0 24px rgba(255, 114, 210, 0.12);
  color: var(--cyan);
  text-align: center;
  animation: holoFlicker 2.4s linear infinite;
}

.holo-card span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.holo-card strong {
  display: block;
  margin-top: 4px;
  color: var(--pink);
  font-size: 28px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(91, 231, 255, 0.35);
  pointer-events: none;
}

.orbit-one {
  width: 420px;
  height: 120px;
  transform: rotate(-12deg);
  bottom: 21%;
  animation: orbitGlow 3.6s ease-in-out infinite;
}

.orbit-two {
  width: 520px;
  height: 160px;
  transform: rotate(18deg);
  top: 21%;
  animation: orbitGlow 4.2s ease-in-out infinite reverse;
}

.ticker {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  z-index: 2;
  position: relative;
}

.ticker div {
  display: flex;
  gap: 26px;
  padding: 16px 13px;
  min-width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.ticker span:nth-child(odd) {
  color: var(--pink);
}

.glass {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.section-title {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title h2,
.wish-text h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-title p:not(.eyebrow),
.wish-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-card,
.world-card,
.gallery-item,
.wish {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-card {
  min-height: 172px;
  padding: 20px;
  border-radius: 26px;
  transition: 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-7px);
  border-color: rgba(91, 231, 255, 0.5);
  box-shadow: 0 22px 58px rgba(0,0,0,0.28), 0 0 34px rgba(91, 231, 255, 0.14);
}

.ai-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,231,255,0.18), rgba(255,114,210,0.22));
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

.ai-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.ai-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.ai-card.featured {
  border-color: rgba(91, 231, 255, 0.44);
  background: linear-gradient(135deg, rgba(91, 231, 255, 0.13), rgba(255, 114, 210, 0.1));
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.world-card {
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  transform-style: preserve-3d;
}

.world-card img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.world-card div {
  padding: 24px;
}

.world-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.world-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.gallery-slider {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
}

.arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 34px;
  cursor: pointer;
  transition: 0.25s ease;
}

.arrow:hover {
  background: rgba(91, 231, 255, 0.18);
  box-shadow: 0 0 26px rgba(91, 231, 255, 0.25);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.gallery-item {
  position: relative;
  min-height: 250px;
  border-radius: 26px;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0.72;
  transition: 0.35s ease;
}

.gallery-item.active,
.gallery-item:hover {
  transform: scale(1);
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
  transition: 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(3, 6, 22, 0.64);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.24);
  cursor: pointer;
  transition: 0.25s ease;
}

.dots button.active {
  width: 32px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 30px 0;
}

.path-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 76px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--gold));
  box-shadow: 0 0 28px rgba(91, 231, 255, 0.45);
  border-radius: 999px;
}

.path-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  z-index: 2;
}

.path-node span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(91, 231, 255, 0.13), rgba(255, 114, 210, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 30px rgba(91, 231, 255, 0.24);
  font-size: 34px;
  animation: nodeFloat 3s ease-in-out infinite;
}

.path-node:nth-child(odd) span {
  animation-delay: 0.4s;
}

.path-node b {
  font-size: 18px;
}

.path-node small {
  color: var(--muted);
  line-height: 1.45;
}

.wish {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 114, 210, 0.14), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(91, 231, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.055);
}

.wish-image {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.wish-image img {
  width: 110%;
  animation: float 5.6s ease-in-out infinite;
}

.wish-text h2 {
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

#typedWish:after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--cyan);
  vertical-align: -0.18em;
  animation: blink 0.8s step-end infinite;
}

.wish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.wish-tags span {
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 850;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 40px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

footer button {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.confetti {
  position: fixed;
  top: -16px;
  z-index: 50;
  width: 9px;
  height: 15px;
  border-radius: 4px;
  pointer-events: none;
  animation: confettiFall 3.2s linear forwards;
}

@keyframes gradientText {
  to { background-position: 250% center; }
}

@keyframes shine {
  0%, 45% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.12) rotate(-5deg); }
  65% { transform: scale(0.98); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes holoFlicker {
  0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
  18% { opacity: 0.82; }
  21% { opacity: 1; }
  55% { filter: hue-rotate(18deg); }
}

@keyframes orbitGlow {
  0%, 100% { opacity: 0.32; box-shadow: 0 0 18px rgba(91, 231, 255, 0.24); }
  50% { opacity: 0.8; box-shadow: 0 0 42px rgba(255, 114, 210, 0.35); }
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

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

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes partyPulse {
  0% { box-shadow: var(--shadow), 0 0 0 rgba(255, 114, 210, 0); }
  100% { box-shadow: var(--shadow), 0 0 36px rgba(255, 114, 210, 0.18); }
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    overflow: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-art {
    min-height: 520px;
  }

  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .world-card {
    min-height: auto;
  }

  .gallery-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .path {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .path-line {
    left: 46px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 3px;
    height: auto;
  }

  .path-node {
    grid-template-columns: 92px 1fr;
    justify-items: start;
    text-align: left;
  }

  .path-node small,
  .path-node b {
    grid-column: 2;
  }

  .path-node span {
    grid-row: 1 / span 2;
  }

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

@media (max-width: 620px) {
  .cursor-glow {
    display: none;
  }

  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .brand {
    font-size: 14px;
  }

  .mini-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  nav a {
    font-size: 12px;
    padding: 9px 10px;
  }

  .section-shell {
    width: calc(100% - 18px);
    margin: 24px auto;
  }

  h1 {
    font-size: clamp(46px, 17vw, 76px);
  }

  .hero-text {
    font-size: 16px;
  }

  .stats,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
    border-radius: 26px;
  }

  .holo-card {
    top: 16px;
    right: 16px;
    padding: 12px 14px;
  }

  .holo-card strong {
    font-size: 22px;
  }

  .gallery-slider {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .gallery-track {
    grid-auto-columns: 100%;
  }

  .world-card img,
  .gallery-item img,
  .gallery-item {
    min-height: 230px;
    height: 230px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.hero-art .hero-poster {
  width: min(96%, 660px);
  max-height: 92%;
  object-fit: contain;
  border-radius: 32px;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.5));
}

@media (max-width: 620px) {
  .hero-art .hero-poster {
    width: 104%;
    border-radius: 24px;
  }
}
