:root {
  --ink: #18324a;
  --muted: #5d6b77;
  --cream: #fff9ed;
  --paper: #ffffff;
  --pink: #ff8cab;
  --yellow: #ffd86b;
  --blue: #80d8ff;
  --green: #b8e986;
  --mint: #b9f5d8;
  --lavender: #c9b8ff;
  --shadow: 0 24px 60px rgba(24, 50, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 216, 107, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(128, 216, 255, 0.26), transparent 24rem),
    linear-gradient(180deg, #fffdf7 0%, #eefcff 52%, #fff7fb 100%);
  overflow-x: hidden;
}

body.theme-candy {
  --pink: #ff7acf;
  --yellow: #ffe17d;
  --blue: #95ecff;
  --green: #9cffc7;
  --lavender: #d8c4ff;
}

body.theme-sun {
  --pink: #ff9b85;
  --yellow: #ffe37a;
  --blue: #8fdcff;
  --green: #cef58e;
  --lavender: #ffc4e1;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.cursor-glow {
  position: fixed;
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 216, 107, 0.18);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  appearance: none;
  position: absolute;
  left: var(--start-x);
  bottom: -5rem;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.42), transparent 30%),
    var(--bubble-color);
  box-shadow:
    inset -0.35rem -0.45rem 0.9rem rgba(24, 50, 74, 0.08),
    0 0.5rem 1.4rem rgba(24, 50, 74, 0.1);
  cursor: pointer;
  opacity: 0.82;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  animation: bubble-float var(--duration) linear forwards;
}

.bubble:hover,
.bubble:focus-visible {
  outline: none;
  opacity: 1;
  filter: saturate(1.18);
}

.bubble.popped {
  pointer-events: none;
  animation: bubble-pop 180ms ease-out forwards;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(24, 50, 74, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: min(13rem, 44vw);
  padding: 0.35rem;
  background: #050505;
  border-radius: 0.9rem;
}

.brand img {
  width: 100%;
  border-radius: 0.5rem;
}

nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.38rem;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 30px rgba(24, 50, 74, 0.08);
}

nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

nav a:nth-child(1):hover,
nav a:nth-child(1):focus-visible {
  background: rgba(255, 140, 171, 0.32);
}

nav a:nth-child(2):hover,
nav a:nth-child(2):focus-visible {
  background: rgba(255, 216, 107, 0.42);
}

nav a:nth-child(3):hover,
nav a:nth-child(3):focus-visible {
  background: rgba(128, 216, 255, 0.34);
}

nav a:nth-child(4):hover,
nav a:nth-child(4):focus-visible {
  background: rgba(184, 233, 134, 0.36);
}

nav a:hover,
nav a:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.section-band {
  position: relative;
  z-index: 1;
  padding: clamp(3.2rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(18rem, 0.97fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5.5rem);
}

.kicker {
  margin: 0 0 0.8rem;
  color: #e03763;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.title-line {
  display: block;
  width: fit-content;
}

.title-pop {
  position: relative;
  margin: 0.08em 0;
  padding: 0 0.16em 0.08em;
  border-radius: 0.26em;
  background: linear-gradient(90deg, rgba(255, 216, 107, 0.9), rgba(128, 216, 255, 0.76));
  box-shadow: 0 0.12em 0 rgba(245, 172, 64, 0.72);
  transform: rotate(-1.5deg);
}

.title-spark {
  position: relative;
  color: #e03763;
  font-family: "Trebuchet MS", "Comic Sans MS", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  text-shadow: 0.055em 0.055em 0 var(--yellow);
  transform: rotate(1deg);
}

.title-spark::after {
  content: "";
  position: absolute;
  right: -0.36em;
  top: 0.1em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 999px;
  background: var(--green);
  box-shadow:
    0.42em 0.25em 0 var(--blue),
    0.08em 0.58em 0 var(--yellow),
    -0.22em 0.3em 0 var(--lavender);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.hero-text,
.xade-copy p,
.join p,
.section-heading {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.primary {
  background: var(--yellow);
  box-shadow: 0 12px 0 #f5ac40;
}

.secondary {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(24, 50, 74, 0.13), 0 12px 28px rgba(24, 50, 74, 0.12);
}

.hero-stage {
  position: relative;
  display: grid;
  min-height: min(36rem, 86vw);
  place-items: center;
}

.shape-card {
  width: min(25rem, 72vw);
  padding: clamp(1rem, 3vw, 1.7rem);
  background: #050505;
  border-radius: 2.4rem;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.shape-card img {
  border-radius: 1.2rem;
}

.floating-badge {
  position: absolute;
  min-width: 5.7rem;
  min-height: 5.7rem;
  border: 0;
  border-radius: 2rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

.badge-one {
  top: 4%;
  left: 2%;
  background: var(--pink);
}

.badge-two {
  right: 0;
  top: 24%;
  background: var(--blue);
  animation-delay: -1s;
}

.badge-three {
  bottom: 5%;
  left: 12%;
  background: var(--green);
  animation-delay: -2s;
}

.orbit {
  position: absolute;
  border: 3px dashed rgba(24, 50, 74, 0.16);
  border-radius: 999px;
  animation: spin 18s linear infinite;
}

.orbit-one {
  width: min(31rem, 82vw);
  height: min(31rem, 82vw);
}

.orbit-two {
  width: min(21rem, 58vw);
  height: min(21rem, 58vw);
  animation-direction: reverse;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.quick-strip div,
.world-card,
.challenge-card,
.media-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 50, 74, 0.09);
  border-radius: 1.4rem;
  box-shadow: 0 16px 42px rgba(24, 50, 74, 0.09);
}

.quick-strip div {
  padding: 1rem;
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  font-size: 1.1rem;
}

.quick-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.world {
  background:
    linear-gradient(90deg, rgba(255, 140, 171, 0.16), rgba(185, 245, 216, 0.26)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.56));
}

.section-heading {
  margin-bottom: clamp(1.7rem, 4vw, 3rem);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.world-card {
  min-height: 15rem;
  padding: 1.4rem;
  transition: transform 180ms ease, background 180ms ease;
}

.world-card:nth-child(1) {
  background: rgba(255, 140, 171, 0.26);
}

.world-card:nth-child(2) {
  background: rgba(128, 216, 255, 0.28);
}

.world-card:nth-child(3) {
  background: rgba(255, 216, 107, 0.34);
}

.world-card:nth-child(4) {
  background: rgba(184, 233, 134, 0.32);
}

.world-card:hover {
  transform: translateY(-8px) rotate(1deg);
}

.card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--paper);
  font-size: 1.5rem;
  font-weight: 950;
}

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

.xade {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.artist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.artist-tags span {
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(24, 50, 74, 0.09);
}

.portrait-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.portrait {
  height: clamp(18rem, 38vw, 31rem);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 2rem;
  background: transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
}

.portrait:nth-child(2) {
  height: clamp(16rem, 34vw, 27rem);
}

.portrait:nth-child(3) {
  height: clamp(14rem, 30vw, 23rem);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait:hover,
.portrait.active {
  filter: saturate(1.12);
  transform: translateY(-0.7rem);
}

.listen {
  background: linear-gradient(180deg, rgba(201, 184, 255, 0.18), rgba(255, 249, 237, 0.8));
}

.media-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.media-card {
  overflow: hidden;
  padding: 0.8rem;
}

.media-card iframe {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

.video-card iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.activities {
  background:
    linear-gradient(135deg, rgba(128, 216, 255, 0.26), rgba(255, 216, 107, 0.23)),
    #fffdf7;
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(16rem, 0.7fr);
  gap: 1rem;
}

.beat-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.beat-board button {
  min-height: clamp(7rem, 16vw, 12rem);
  border: 0;
  border-radius: 1.8rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 950;
  box-shadow: 0 13px 0 rgba(24, 50, 74, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.beat-board button:nth-child(1) {
  background: var(--pink);
}

.beat-board button:nth-child(2) {
  background: var(--yellow);
}

.beat-board button:nth-child(3) {
  background: var(--blue);
}

.beat-board button:nth-child(4) {
  background: var(--green);
}

.beat-board button:active,
.beat-board button.playing {
  transform: translateY(8px);
  box-shadow: 0 5px 0 rgba(24, 50, 74, 0.16);
}

.challenge-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.challenge-card p {
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1.35;
}

.join {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

footer img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.45rem;
}

footer span:first-of-type {
  color: var(--ink);
  font-weight: 950;
}

.spark {
  position: fixed;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  pointer-events: none;
  animation: sparkle 700ms ease-out forwards;
  z-index: 20;
}

.pop-note {
  position: fixed;
  z-index: 30;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: white;
  font-weight: 900;
  pointer-events: none;
  transform: translate(-50%, -120%);
  animation: note-pop 900ms ease-out forwards;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-1rem) rotate(4deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sparkle {
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.1);
  }
}

@keyframes note-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(0.82);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -170%) scale(1);
  }
}

@keyframes bubble-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.84);
  }
  34% {
    transform: translate3d(var(--drift-a), -34vh, 0) scale(1);
  }
  68% {
    transform: translate3d(var(--drift-b), -68vh, 0) scale(0.96);
  }
  100% {
    transform: translate3d(var(--drift-c), calc(-100vh - 8rem), 0) scale(1.04);
  }
}

@keyframes bubble-pop {
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (max-width: 920px) {
  .hero,
  .xade,
  .media-grid,
  .activity-layout,
  .join {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .quick-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 1.2rem;
  }

  nav a {
    flex: 1 1 auto;
    font-size: 0.86rem;
    padding-inline: 0.68rem;
  }

  .hero-title {
    max-width: 10ch;
  }

  .portrait-stack,
  .world-grid,
  .beat-board {
    grid-template-columns: 1fr;
  }

  .portrait,
  .portrait:nth-child(2),
  .portrait:nth-child(3) {
    height: 24rem;
  }

  .beat-board button {
    min-height: 5.8rem;
  }

  .cursor-glow {
    display: none;
  }

  .bubble {
    opacity: 0.74;
  }
}

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

  .bubble-layer {
    display: none;
  }
}
