:root {
  --bg-top: #1e0920;
  --bg-bottom: #08060d;
  --card: rgba(20, 10, 26, 0.86);
  --card-border: rgba(255, 210, 236, 0.18);
  --text: #fff4fb;
  --muted: #e5cadd;
  --pink: #ff5bbf;
  --cyan: #7be7ff;
  --lime: #f6c1ff;
  --yes: #67ffb3;
  --no: #ff7c9b;
  --rose: #ffb8db;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 91, 191, 0.24), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(123, 231, 255, 0.14), transparent 25%),
    radial-gradient(circle at 50% 85%, rgba(255, 184, 219, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  transition: background 180ms linear, color 180ms linear;
}

body.intro-active {
  background: #000;
  overflow: hidden;
}

body.intro-active::before {
  display: none;
}

body.intro-light {
  background: #fff;
  color: #000;
}

body.intro-dark {
  background: #000;
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
  pointer-events: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.youtube-player-shell {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
}

.intro-content {
  width: min(100%, 360px);
  text-align: center;
}

.intro-kicker,
.intro-line,
.intro-start {
  font-family: "Space Grotesk", sans-serif;
}

.intro-kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.intro-line {
  margin: 0;
  min-height: 4.2em;
  display: grid;
  place-items: center;
  font-size: clamp(1.9rem, 9vw, 3.7rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.intro-start {
  margin-top: 26px;
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: none;
}

.intro-start.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.intro-help {
  margin: 14px auto 0;
  max-width: 280px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.72;
}

.invite-shell {
  min-height: 100vh;
  padding: 20px 16px 32px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.invite-shell.is-hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.ambient {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.7;
  animation: drift 6s ease-in-out infinite alternate;
}

.ambient-left {
  top: 8%;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 77, 184, 0.7), transparent 70%);
}

.ambient-right {
  right: -80px;
  bottom: 20%;
  background: radial-gradient(circle, rgba(70, 231, 255, 0.6), transparent 70%);
  animation-duration: 7.5s;
}

.card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 226, 241, 0.12), transparent 32%);
  pointer-events: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.eyebrow,
.detail-label,
.pill,
.response-text {
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 8px 24px rgba(255, 91, 191, 0.16);
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.floating-heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 184, 219, 0.85);
  transform: rotate(45deg);
  opacity: 0.7;
  animation: heartFloat 5.8s ease-in-out infinite;
}

.floating-heart::before,
.floating-heart::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: inherit;
}

.floating-heart::before {
  top: -10px;
  left: 0;
}

.floating-heart::after {
  top: 0;
  left: -10px;
}

.heart-one {
  top: 10%;
  right: 11%;
}

.heart-two {
  bottom: 18%;
  left: 8%;
  transform: rotate(45deg) scale(0.8);
  animation-delay: 1.2s;
}

.heart-three {
  top: 42%;
  right: 4%;
  transform: rotate(45deg) scale(0.65);
  animation-delay: 2.1s;
}

.pulse-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.pill-rave {
  background: rgba(255, 91, 191, 0.16);
  color: #ffe0f2;
}

.pill-gym {
  background: rgba(255, 184, 219, 0.16);
  color: #ffe8f5;
  animation-delay: 0.6s;
}

.love-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #ffe7f4;
  line-height: 1.7;
  background:
    linear-gradient(135deg, rgba(255, 91, 191, 0.14), rgba(255, 184, 219, 0.08)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 210, 236, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.muse-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 77, 184, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.muse-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.muse-kicker,
.tiny-note {
  font-family: "Space Grotesk", sans-serif;
}

.muse-kicker {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.muse-figure {
  position: relative;
  width: 132px;
  height: 180px;
  margin-inline: auto;
  animation: sway 2.8s ease-in-out infinite;
}

.halo {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 98px;
  height: 98px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 231, 255, 0.35), transparent 70%);
  filter: blur(8px);
}

.hair-back {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 88px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 38px 38px 30px 30px;
  background:
    radial-gradient(circle at 24% 28%, #4b2717 0 10%, transparent 11%),
    radial-gradient(circle at 48% 20%, #2f170e 0 13%, transparent 14%),
    radial-gradient(circle at 72% 26%, #432010 0 11%, transparent 12%),
    radial-gradient(circle at 30% 56%, #2a140b 0 14%, transparent 15%),
    radial-gradient(circle at 70% 58%, #3c1e10 0 13%, transparent 14%),
    linear-gradient(180deg, #4e2918, #261109);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.hair-top {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 62px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 24px 24px 14px 14px;
  background:
    radial-gradient(circle at 22% 55%, #4a2616 0 16%, transparent 17%),
    radial-gradient(circle at 50% 30%, #2b140b 0 18%, transparent 19%),
    radial-gradient(circle at 78% 55%, #442211 0 16%, transparent 17%),
    linear-gradient(180deg, #4f2919, #2b140b);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
  z-index: 2;
}

.curl-crown,
.curl-cloud {
  position: absolute;
  border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.curl-crown {
  top: 18px;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 30% 35%, #4a2616 0 18%, transparent 19%),
    radial-gradient(circle at 65% 30%, #30160c 0 16%, transparent 17%),
    radial-gradient(circle at 48% 64%, #1f0d07 0 18%, transparent 19%),
    #3a1d12;
  z-index: 3;
}

.crown-left {
  left: 28px;
  animation: curlBounce 1.9s ease-in-out infinite;
}

.crown-center {
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 28px;
  animation: curlBounce 2s ease-in-out infinite reverse;
}

.crown-right {
  right: 28px;
  animation: curlBounce 2.1s ease-in-out infinite;
}

.curl-cloud {
  top: 28px;
  width: 42px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #3a1d12 0 16%, transparent 17%),
    radial-gradient(circle at 60% 25%, #4e2918 0 17%, transparent 18%),
    radial-gradient(circle at 45% 55%, #2d150c 0 19%, transparent 20%),
    radial-gradient(circle at 70% 65%, #442111 0 16%, transparent 17%),
    radial-gradient(circle at 25% 75%, #30160c 0 17%, transparent 18%),
    linear-gradient(180deg, #4f2919, #2a130b);
}

.curl-left {
  left: 10px;
  animation: curlBounce 2.1s ease-in-out infinite;
  z-index: 3;
}

.curl-right {
  right: 10px;
  animation: curlBounce 2.1s ease-in-out infinite reverse;
  z-index: 3;
}

.curl-tail {
  position: absolute;
  top: 78px;
  width: 22px;
  height: 46px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, #4a2616 0 15%, transparent 16%),
    radial-gradient(circle at 35% 44%, #2c150c 0 16%, transparent 17%),
    radial-gradient(circle at 58% 70%, #3f2010 0 18%, transparent 19%),
    linear-gradient(180deg, #4c2717, #221008);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
  z-index: 1;
}

.tail-left {
  left: 20px;
  transform: rotate(7deg);
}

.tail-right {
  right: 20px;
  transform: rotate(-7deg);
}

.head {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 64px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 44% 44% 48% 48%;
  background: linear-gradient(180deg, #f4c4a8, #dd9f82);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.eye,
.smile {
  position: absolute;
  display: block;
}

.eye {
  top: 28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #201110;
  animation: blink 4s infinite;
}

.eye.left {
  left: 17px;
}

.eye.right {
  right: 17px;
}

.smile {
  left: 50%;
  bottom: 14px;
  width: 18px;
  height: 9px;
  transform: translateX(-50%);
  border-bottom: 3px solid #a24f62;
  border-radius: 0 0 20px 20px;
}

.body {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 54px;
  height: 50px;
  transform: translateX(-50%);
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, #ff4db8, #8f46ff);
  box-shadow: 0 10px 20px rgba(255, 77, 184, 0.26);
}

.body::after {
  content: "";
  position: absolute;
  inset: 10px 12px auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.arm,
.leg {
  position: absolute;
  background: linear-gradient(180deg, #efb99d, #d88f70);
  border-radius: 999px;
  transform-origin: top center;
}

.arm {
  top: 106px;
  width: 12px;
  height: 42px;
}

.arm-left {
  left: 29px;
  transform: rotate(18deg);
}

.arm-right {
  right: 29px;
  transform: rotate(-18deg);
}

.leg {
  top: 144px;
  width: 12px;
  height: 32px;
}

.leg-left {
  left: 50px;
}

.leg-right {
  right: 50px;
}

.dumbbell {
  position: absolute;
  top: 134px;
  width: 32px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9ff63, #67ffb3);
  animation: floatWeight 1.7s ease-in-out infinite;
}

.dumbbell span {
  position: absolute;
  top: -5px;
  width: 6px;
  height: 20px;
  border-radius: 4px;
  background: #f9f5ff;
}

.dumbbell span:first-child {
  left: 2px;
}

.dumbbell span:last-child {
  right: 2px;
}

.dumbbell-left {
  left: 4px;
  transform: rotate(18deg);
}

.dumbbell-right {
  right: 4px;
  transform: rotate(-18deg);
  animation-delay: 0.25s;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-box {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 244, 251, 0.05);
  border: 1px solid rgba(255, 210, 236, 0.1);
}

.detail-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-box strong {
  font-size: 1rem;
}

.visual-band {
  margin-top: 24px;
  padding: 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 91, 191, 0.16), rgba(123, 231, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 58px;
}

.equalizer span {
  flex: 1;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  animation: beat 1.2s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.15s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.3s;
}

.equalizer span:nth-child(4) {
  animation-delay: 0.45s;
}

.equalizer span:nth-child(5) {
  animation-delay: 0.6s;
}

.barbell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 12px 18px 1fr 18px 12px;
  align-items: center;
  gap: 8px;
}

.barbell span {
  display: block;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(217, 255, 99, 0.95), rgba(103, 255, 179, 0.65));
  animation: lift 1.8s ease-in-out infinite;
}

.barbell span:nth-child(2),
.barbell span:nth-child(4) {
  height: 48px;
  animation-delay: 0.2s;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
}

.response-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(19, 8, 20, 0.72);
  border: 1px solid rgba(255, 210, 236, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.response-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.options {
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.choice {
  flex: 1 1 0;
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 15px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 245, 251, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    flex 260ms ease,
    opacity 260ms ease,
    width 260ms ease,
    margin 260ms ease,
    padding 260ms ease;
}

.choice:active {
  transform: scale(0.97);
}

.choice.yes {
  box-shadow: inset 0 0 0 1px rgba(103, 255, 179, 0.18);
}

.choice.no {
  box-shadow: inset 0 0 0 1px rgba(255, 124, 155, 0.18);
}

.choice.selected.yes {
  background: rgba(103, 255, 179, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(103, 255, 179, 0.55),
    0 0 24px rgba(103, 255, 179, 0.2);
}

.choice.selected.no {
  background: rgba(255, 124, 155, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 124, 155, 0.55),
    0 0 24px rgba(255, 124, 155, 0.18);
}

.choice.yes.is-dominant {
  flex: 8 1 0;
  transform: scale(1.02);
}

.choice.no.is-shrinking {
  flex: 0.22 1 0;
  opacity: 0.25;
  transform: scale(0.88);
}

.choice.no.is-hidden {
  flex: 0 0 0;
  width: 0;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.response-text {
  margin: 14px 2px 0;
  color: var(--muted);
  min-height: 1.5em;
}

.tiny-note {
  margin: 10px 2px 0;
  color: rgba(255, 227, 241, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@keyframes beat {
  0%,
  100% {
    height: 16px;
    opacity: 0.7;
  }
  50% {
    height: 58px;
    opacity: 1;
  }
}

@keyframes lift {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(217, 255, 99, 0.1));
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 18px rgba(217, 255, 99, 0.35));
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -12px, 0) scale(1.08);
  }
}

@keyframes heartFloat {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: rotate(45deg) translateY(-10px);
    opacity: 0.9;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes curlBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-3px) rotate(4deg);
  }
}

@keyframes floatWeight {
  0%,
  100% {
    transform: translateY(0) rotate(18deg);
  }
  50% {
    transform: translateY(-4px) rotate(12deg);
  }
}

@keyframes blink {
  0%,
  46%,
  52%,
  100% {
    transform: scaleY(1);
  }
  48%,
  50% {
    transform: scaleY(0.15);
  }
}

@media (min-width: 600px) {
  .invite-shell {
    padding: 32px 20px 40px;
  }

  .card {
    padding: 34px 28px 28px;
  }
}

@media (max-width: 380px) {
  .muse-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .muse-figure {
    height: 168px;
  }
}
