:root {
  --ink: #24102f;
  --paper: #fbf7ff;
  --white: #fffaff;
  --purple: #7c3aed;
  --purple-dark: #4c1d95;
  --acid: #e9d5ff;
  --pink: #d946ef;
  --orange: #f472b6;
  --blue: #a78bfa;
  --muted: #766782;
  --line: rgba(36, 16, 47, 0.14);
  --shadow: 0 24px 70px rgba(109, 40, 217, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 180, 254, 0.32), transparent 23rem),
    radial-gradient(circle at 88% 76%, rgba(192, 38, 211, 0.17), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  right: -8rem;
  background: var(--pink);
}

.ambient-two {
  bottom: 3%;
  left: -7rem;
  background: var(--purple);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: rotate(-5deg);
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
}

.sound-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.78);
  cursor: pointer;
  transition: 180ms ease;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.instagram-pill {
  padding: 10px 14px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--purple-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.community-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.community-button span {
  margin-left: 4px;
}

.sound-button.active {
  border-color: var(--ink);
  background: var(--acid);
}

#app {
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 155px);
  margin: 0 auto;
  outline: none;
}

footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

footer a {
  color: var(--purple-dark);
  font-weight: 800;
  text-decoration: none;
}

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

h1,
h2,
h3,
.eyebrow,
.role-title,
.stat-value {
  font-family: "Space Grotesk", sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.highlight::after {
  position: absolute;
  z-index: -1;
  right: -0.06em;
  bottom: 0.02em;
  left: -0.06em;
  height: 0.32em;
  transform: rotate(-1deg);
  border-radius: 2px;
  background: var(--acid);
  content: "";
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.name-form {
  display: flex;
  max-width: 560px;
  gap: 10px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(23, 19, 31, 0.95);
}

.name-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 13px;
  color: var(--ink);
  font-size: 1rem;
}

.name-form input::placeholder {
  color: #958d9e;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--purple);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.microcopy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.role-marquee {
  display: flex;
  max-width: 610px;
  gap: 8px;
  margin-top: 26px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.role-marquee-track {
  display: flex;
  flex: none;
  gap: 8px;
  animation: marquee 18s linear infinite;
}

.role-pill {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  font-size: 0.76rem;
  font-weight: 700;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 4px));
  }
}

.hero-cards {
  position: relative;
  min-height: 470px;
}

.mini-card {
  position: absolute;
  display: flex;
  width: min(330px, 88%);
  min-height: 380px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 32px;
  box-shadow: 10px 12px 0 var(--ink);
}

.mini-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(23, 19, 31, 0.1);
  border-radius: 50%;
  content: "";
}

.mini-card.back {
  top: 14px;
  left: 0;
  transform: rotate(-8deg);
  background: var(--pink);
}

.mini-card.front {
  top: 58px;
  right: 0;
  transform: rotate(5deg);
  background: var(--acid);
}

.mini-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mini-emoji {
  font-size: 5rem;
  line-height: 1;
}

.mini-card h3 {
  max-width: 220px;
  margin: 14px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.mini-card p {
  max-width: 240px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.quiz-shell {
  width: min(740px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0;
}

.avatar-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: clamp(38px, 7vw, 82px) 0;
}

.avatar-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 36px;
  background: var(--purple);
  box-shadow: 9px 10px 0 var(--ink);
}

.avatar-stage::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 52px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.avatar {
  position: relative;
  display: grid;
  width: var(--avatar-size, 220px);
  height: var(--avatar-size, 220px);
  place-items: center;
  border: calc(var(--avatar-size, 220px) * 0.025) solid var(--ink);
  border-radius: 42%;
  background: var(--avatar-color, var(--acid));
  box-shadow: calc(var(--avatar-size, 220px) * 0.045) calc(var(--avatar-size, 220px) * 0.055) 0 var(--ink);
  font-size: calc(var(--avatar-size, 220px) * 0.47);
  line-height: 1;
}

.avatar::after {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 36%;
  content: "";
  pointer-events: none;
}

.avatar-accessory {
  position: absolute;
  z-index: 2;
  right: -10%;
  top: -12%;
  display: grid;
  width: 35%;
  height: 35%;
  place-items: center;
  transform: rotate(9deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 0.3em;
  box-shadow: 4px 4px 0 var(--ink);
}

.avatar-caption {
  position: absolute;
  bottom: 35px;
  padding: 9px 14px;
  transform: rotate(-2deg);
  border: 2px solid var(--ink);
  background: var(--acid);
  font-weight: 700;
}

.avatar-editor h1 {
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.avatar-editor > p {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.55;
}

.option-group {
  margin-bottom: 23px;
}

.option-group-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.avatar-option {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 1.55rem;
  cursor: pointer;
  transition: 150ms ease;
}

.avatar-option.color {
  background: var(--swatch);
}

.avatar-option:hover,
.avatar-option.selected {
  transform: translateY(-2px);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.avatar-editor .primary-button {
  width: 100%;
  margin-top: 7px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  height: 9px;
  margin-bottom: clamp(36px, 6vw, 62px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 280ms ease;
}

.question-kicker {
  margin-bottom: 10px;
  color: var(--purple-dark);
  font-weight: 700;
}

.question-title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.85);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.answer-button:hover {
  transform: translateX(5px);
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(23, 19, 31, 0.9);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.selected {
  transform: translateX(5px);
  border-color: var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 rgba(23, 19, 31, 0.9);
}

.answer-button.faded {
  opacity: 0.38;
}

.answer-reaction {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--pink);
  font-weight: 700;
  animation: pop-in 260ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.answer-reaction span {
  font-size: 1.4rem;
}

@keyframes pop-in {
  from {
    transform: scale(0.88) rotate(-1deg);
    opacity: 0;
  }
}

.analysis-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  padding: 40px 0;
  text-align: center;
}

.analysis-box {
  width: min(600px, 100%);
  padding: clamp(32px, 7vw, 62px);
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 9px 10px 0 var(--ink);
}

.analysis-orb {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-size: 4.2rem;
}

.analysis-orb::before,
.analysis-orb::after {
  position: absolute;
  inset: -13px;
  border: 3px dashed var(--purple);
  border-radius: 50%;
  content: "";
  animation: spin 3s linear infinite;
}

.analysis-orb::after {
  inset: -28px;
  border-color: var(--pink);
  animation-direction: reverse;
  animation-duration: 5s;
}

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

.analysis-box h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
}

.analysis-line {
  min-height: 28px;
  margin-bottom: 22px;
  color: var(--muted);
}

.analysis-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.analysis-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  animation: bounce 800ms ease-in-out infinite alternate;
}

.analysis-dots span:nth-child(2) {
  animation-delay: 160ms;
}

.analysis-dots span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes bounce {
  to {
    transform: translateY(-8px);
    background: var(--purple);
  }
}

.answer-letter {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.quiz-actions {
  margin-top: 24px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.result-shell {
  padding: clamp(30px, 5vw, 60px) 0 70px;
}

.result-intro {
  margin-bottom: 28px;
  text-align: center;
}

.result-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.result-intro p {
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
  align-items: stretch;
}

.role-card {
  position: relative;
  min-height: 520px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--role-color, var(--acid));
  box-shadow: 9px 10px 0 var(--ink);
}

.role-card::before,
.role-card::after {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.role-card::before {
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
}

.role-card::after {
  right: 40px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-width: 50px;
  opacity: 0.12;
}

.role-card-content {
  position: relative;
  z-index: 1;
}

.role-label {
  margin-bottom: 32px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-emoji {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
}

.role-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.role-avatar-badge {
  position: absolute;
  right: -15px;
  bottom: -10px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  transform: rotate(8deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.8rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.role-title {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.role-description {
  max-width: 600px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.quote {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 14px;
  transform: rotate(-1deg);
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 700;
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.result-panel h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.result-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.result-badge-emoji {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--badge-color, var(--pink));
  font-size: 1.35rem;
}

.result-badge small,
.result-badge strong {
  display: block;
}

.result-badge small {
  margin-bottom: 2px;
  color: var(--muted);
}

.bonus-card {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--purple);
  color: var(--white);
  box-shadow: 7px 8px 0 var(--ink);
  text-align: center;
}

.connection-teaser {
  position: relative;
  margin-top: 24px;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 9px 0 var(--pink);
}

.connection-teaser::after {
  position: absolute;
  right: -90px;
  top: -100px;
  width: 300px;
  height: 300px;
  border: 55px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.connection-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: start;
  margin-bottom: 26px;
}

.connection-head h2 {
  max-width: 680px;
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.connection-head p {
  max-width: 670px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.adult-badge {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
}

.chemistry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chemistry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.chemistry-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--chemistry-color);
  color: var(--ink);
  font-size: 1.6rem;
}

.chemistry-card small,
.chemistry-card strong {
  display: block;
}

.chemistry-card small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.58);
}

.connection-offers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 12px;
  margin-top: 18px;
}

.free-taste,
.paid-pass {
  padding: 20px;
  border-radius: 20px;
}

.free-taste {
  border: 2px solid var(--acid);
  background: rgba(217, 255, 87, 0.08);
}

.paid-pass {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
}

.offer-label {
  margin-bottom: 7px;
  color: var(--acid);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.free-taste h3,
.paid-pass h3 {
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.free-taste p,
.paid-pass p {
  min-height: 42px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  line-height: 1.45;
}

.free-taste .secondary-button,
.paid-pass .ghost-button {
  width: 100%;
}

.connection-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.73rem;
}

.discovery-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(35px, 6vw, 70px) 0;
}

.discovery-shell > h1 {
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.discovery-lead {
  margin-bottom: 28px;
  color: var(--muted);
}

.profile-preview {
  position: relative;
  min-height: 510px;
  padding: clamp(25px, 5vw, 42px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--match-color, var(--pink));
  box-shadow: 8px 9px 0 var(--ink);
}

.demo-ribbon {
  position: absolute;
  right: -53px;
  top: 31px;
  width: 210px;
  padding: 7px;
  transform: rotate(38deg);
  background: var(--ink);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 28px 0 14px;
}

.preview-meta h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.compatibility-score {
  display: grid;
  width: 78px;
  height: 78px;
  flex: none;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.profile-preview > p {
  max-width: 570px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.common-ground {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.common-ground span {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
}

.discovery-actions {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 10px;
  margin-top: 20px;
}

.purchase-card {
  padding: clamp(28px, 6vw, 50px);
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 8px 9px 0 var(--ink);
}

.community-shell {
  padding: 25px 0 70px;
}

.community-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: stretch;
  min-height: 530px;
  margin-bottom: 20px;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  background:
    radial-gradient(circle at 92% 12%, rgba(244, 114, 182, 0.78), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(139, 92, 246, .65), transparent 32%),
    linear-gradient(135deg, #21072f 0%, #5520a2 52%, #a21caf 100%);
  color: var(--white);
  box-shadow: 0 28px 70px rgba(76, 29, 149, 0.26);
}

.community-banner h1 {
  max-width: 560px;
  margin: 16px 0 18px;
  font-size: clamp(3.4rem, 5.6vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.075em;
}

.community-banner p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.6;
}

.community-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.community-eyebrow { color: #f5d0fe; font-size: .69rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.community-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-primary, .hero-secondary { min-height: 48px; padding: 0 19px; border-radius: 999px; font-weight: 850; cursor: pointer; }
.hero-primary { border: 0; background: white; color: #301044; box-shadow: 0 12px 30px rgba(24, 6, 34, .25); }
.hero-primary span { margin-left: 8px; }
.hero-secondary { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: white; backdrop-filter: blur(10px); }
.community-demo-label { margin-top: 22px; color: rgba(255,255,255,.48); font-size: .66rem; }

.community-hero-visual { position: relative; min-height: 395px; }
.hero-person { position: absolute; overflow: hidden; padding: 0; border: 0; border-radius: 30px; background: #1c1024; box-shadow: 0 24px 55px rgba(20,6,28,.32); cursor: pointer; transition: transform 180ms ease; }
.hero-person:hover { transform: translateY(-6px) rotate(0deg); }
.hero-person img { width: 100%; height: 100%; object-fit: cover; }
.hero-person > span { position: absolute; right: 0; bottom: 0; left: 0; padding: 42px 15px 14px; background: linear-gradient(transparent, rgba(17,7,24,.94)); text-align: left; }
.hero-person strong, .hero-person small { display: block; color: white; }
.hero-person strong { font-size: .9rem; }
.hero-person small { margin-top: 2px; color: rgba(255,255,255,.64); font-size: .62rem; }
.hero-person-1 { z-index: 2; top: 8%; left: 2%; width: 42%; height: 75%; transform: rotate(-4deg); }
.hero-person-2 { z-index: 3; top: 1%; left: 34%; width: 39%; height: 88%; transform: rotate(2.5deg); }
.hero-person-3 { z-index: 1; top: 12%; right: 0; width: 37%; height: 70%; transform: rotate(5deg); }
.hero-live-pill { position: absolute; z-index: 4; right: 7%; bottom: 2%; padding: 10px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(29,10,40,.76); color: white; font-size: .65rem; font-weight: 800; backdrop-filter: blur(12px); }
.hero-live-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.14); }

.community-banner .avatar-stack {
  display: flex;
  flex: none;
  padding-right: 20px;
}

.avatar-stack img {
  width: 82px;
  height: 82px;
  margin-right: -20px;
  object-fit: cover;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 3px 4px 0 var(--ink);
}

.demo-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-social {
  display: inline-flex;
  margin-top: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.people-stories {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid rgba(76, 29, 149, .1);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 48px rgba(76,29,149,.08);
  backdrop-filter: blur(14px);
}

.stories-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 15px;
}

.stories-heading div,
.stories-heading span,
.stories-heading strong { display: block; }
.stories-heading span { color: var(--pink); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.stories-heading strong { margin-top: 3px; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.stories-heading small { color: var(--muted); font-size: .7rem; }

.stories-rail {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 3px 2px 7px;
  scrollbar-width: thin;
}

.story-person {
  display: grid;
  min-width: 82px;
  place-items: center;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.story-ring {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple), #fb7185);
  box-shadow: 0 8px 22px rgba(124,58,237,.2);
}

.story-ring img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 3px solid white;
  border-radius: 50%;
}

.story-ring i {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: #22c55e;
}

.story-person strong { margin-top: 8px; font-size: .76rem; }
.story-person small { max-width: 82px; overflow: hidden; color: var(--muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }

.tribe-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.orbit-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 460px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 38px;
  background: #15101d;
  color: var(--white);
  box-shadow: 0 30px 80px rgba(36,16,47,.28);
}

.orbit-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.orbit-kicker {
  margin-bottom: 13px;
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-copy h2 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.orbit-copy > p {
  max-width: 570px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.97rem;
  line-height: 1.55;
}

.orbit-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 23px;
}

.orbit-signals span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
}

.orbit-actions {
  display: flex;
  gap: 9px;
}

.orbit-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.orbit-visual {
  position: relative;
  min-height: 460px;
}

.orbit-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #15101d 0%, transparent 42%), linear-gradient(0deg, rgba(21, 16, 29, 0.8), transparent 55%);
  content: "";
}

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

.orbit-score {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(23, 19, 31, 0.82);
  backdrop-filter: blur(10px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.orbit-name {
  position: absolute;
  z-index: 2;
  left: 40px;
  bottom: 31px;
}

.orbit-name strong,
.orbit-name small {
  display: block;
}

.orbit-name strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.orbit-name small {
  color: rgba(255, 255, 255, 0.65);
}

.tribe-chip {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.tribe-chip:hover,
.tribe-chip.joined {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.tribe-chip.joined {
  background: var(--acid);
}

.tribe-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--tribe-color);
  font-size: 1.25rem;
}

.tribe-chip strong,
.tribe-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tribe-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.feed-column,
.community-sidebar {
  display: grid;
  gap: 16px;
}

.daily-ritual {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--acid);
  box-shadow: 5px 6px 0 var(--ink);
}

.ritual-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-ritual h2 {
  margin-bottom: 15px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.ritual-answer {
  display: flex;
  gap: 8px;
}

.ritual-answer input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
  outline: none;
}

.ritual-answer button {
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.social-post {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
}

.post-head img,
.mini-person img,
.chat-person img {
  width: 46px;
  height: 46px;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.post-head strong,
.post-head small {
  display: block;
}

.post-head small {
  color: var(--muted);
  font-size: 0.73rem;
}

.post-tribe {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.post-photo {
  width: 100%;
  max-height: 610px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.post-body {
  padding: 17px;
}

.post-body p {
  margin-bottom: 13px;
  line-height: 1.5;
}

.connection-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eee8ff;
  color: var(--purple-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.post-actions {
  display: flex;
  gap: 8px;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.post-action.liked {
  border-color: var(--ink);
  background: var(--pink);
}

.comments-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.comment {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  margin-bottom: 10px;
  align-items: start;
}

.comment-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.85rem;
}

.comment-bubble {
  padding: 9px 11px;
  border-radius: 5px 14px 14px 14px;
  background: var(--paper);
  font-size: 0.8rem;
  line-height: 1.4;
}

.comment-bubble strong {
  margin-right: 4px;
}

.comment-form {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.comment-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  outline: none;
}

.comment-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.comment-form button {
  width: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.sidebar-card h2 {
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.sidebar-card > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.people-list {
  display: grid;
  gap: 11px;
}

.mini-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.mini-person strong,
.mini-person small {
  display: block;
}

.person-context {
  display: block;
  margin-top: 3px;
  color: var(--purple-dark) !important;
  font-weight: 700;
}

.mini-person small {
  color: var(--muted);
  font-size: 0.68rem;
}

.vibe-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  cursor: pointer;
}

.vibe-button.sent {
  background: var(--pink);
}

.clan-card {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--pink);
  box-shadow: 5px 6px 0 var(--ink);
}

.clan-card h2 {
  margin: 7px 0;
  font-size: 1.35rem;
}

.clan-card p {
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.clan-progress {
  height: 9px;
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.clan-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--ink);
}

.chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 175px);
  padding: 24px 0 55px;
}

.chat-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px 0 0 24px;
  background: var(--white);
}

.chat-list h2 {
  margin-bottom: 18px;
}

.chat-person {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-person.active {
  background: var(--acid);
}

.chat-person strong,
.chat-person small {
  display: block;
}

.chat-person small {
  color: var(--muted);
  font-size: 0.7rem;
}

.chat-window {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: var(--paper);
}

.chat-head {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  border-radius: 0 24px 0 0;
}

.chat-head img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.chat-head small,
.chat-head strong {
  display: block;
}

.chat-head small {
  color: #15824c;
}

.messages {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 24px;
}

.message {
  max-width: min(430px, 82%);
  padding: 11px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(23, 19, 31, 0.06);
}

.message.mine {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--purple);
  color: var(--white);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
  border-radius: 0 0 24px 0;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.chat-form button {
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.chemistry-shell {
  min-height: calc(100vh - 160px);
  padding: 28px 0 65px;
}

.chemistry-hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: #17131f;
  color: var(--white);
  box-shadow: 9px 10px 0 var(--ink);
}

.chemistry-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.chemistry-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 12, 22, 0.98) 0%, rgba(16, 12, 22, 0.88) 46%, rgba(16, 12, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 12, 22, 0.94), transparent 55%);
}

.chemistry-content {
  position: relative;
  z-index: 2;
  width: min(650px, 72%);
  padding: clamp(30px, 6vw, 66px);
}

.chemistry-content .text-button {
  margin-bottom: 54px;
  color: rgba(255, 255, 255, 0.7);
}

.chemistry-content h1 {
  margin-bottom: 17px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.chemistry-story {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.chemistry-bars {
  display: grid;
  gap: 12px;
  max-width: 510px;
  margin: 31px 0;
}

.chemistry-bar-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.76rem;
}

.chemistry-bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.chemistry-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--pink));
}

.first-question {
  max-width: 560px;
  margin: 26px 0;
  padding: 18px;
  transform: rotate(-0.5deg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.first-question small {
  display: block;
  margin-bottom: 6px;
  color: var(--acid);
  font-weight: 700;
  text-transform: uppercase;
}

.first-question strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
}

.algorithm-note {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  line-height: 1.5;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 20px 0;
}

.price-line strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.7rem;
  letter-spacing: -0.06em;
}

.purchase-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.purchase-list div {
  display: flex;
  gap: 9px;
}

.consent-row {
  display: flex;
  gap: 11px;
  align-items: start;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-row input {
  width: 19px;
  height: 19px;
  flex: none;
}

.bonus-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.bonus-question {
  max-width: 760px;
  min-height: 70px;
  margin: 0 auto 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.bonus-card .ghost-button {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.confetti {
  position: fixed;
  z-index: 20;
  top: -25px;
  width: 11px;
  height: 18px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall var(--duration) cubic-bezier(0.16, 0.8, 0.35, 1) forwards;
}

@keyframes confetti-fall {
  to {
    transform: translate3d(var(--drift), 105vh, 0) rotate(740deg);
    opacity: 0.2;
  }
}

.stats {
  display: grid;
  gap: 13px;
}

.stat-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.stat-value {
  font-weight: 700;
}

.stat-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e3ec;
}

.stat-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.panel-divider {
  height: 1px;
  background: var(--line);
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.share-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.vote-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0;
  text-align: center;
}

.vote-shell h1 {
  max-width: 760px;
  margin: 12px auto 12px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.vote-lead {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--muted);
  line-height: 1.55;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: left;
}

.role-option {
  min-height: 182px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  transition: 160ms ease;
}

.role-option:hover {
  transform: translateY(-5px) rotate(-1deg);
  border-color: var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
}

.role-option .emoji {
  display: block;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.role-option strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

.role-option small {
  color: var(--muted);
  line-height: 1.3;
}

.comparison-card {
  max-width: 780px;
  margin: 30px auto 0;
  padding: clamp(25px, 5vw, 45px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 9px 0 var(--ink);
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
}

.versus-role {
  padding: 20px 10px;
  border-radius: 20px;
  background: var(--paper);
}

.versus-role .emoji {
  display: block;
  margin-bottom: 8px;
  font-size: 3.3rem;
}

.versus-role small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.versus-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.comparison-card .result-actions {
  grid-template-columns: 1fr 1fr;
}

.invite-hero {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  padding: 44px 0;
}

.invite-card {
  width: min(690px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 9px 10px 0 var(--ink);
  text-align: center;
}

.invite-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.invite-placeholder {
  display: grid;
  width: 112px;
  height: 112px;
  margin-left: -14px;
  place-items: center;
  border: 3px dashed var(--ink);
  border-radius: 42%;
  background: var(--paper);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
}

.invite-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.invite-card p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.55;
}

.invite-card .name-form {
  margin: 0 auto;
}

.room-shell {
  padding: clamp(35px, 6vw, 72px) 0;
}

.room-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}

.room-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.room-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.room-code {
  flex: none;
  padding: 13px 18px;
  transform: rotate(2deg);
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}

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

.member-card,
.member-slot {
  min-height: 270px;
  padding: 22px;
  border-radius: 24px;
}

.member-card {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 6px 0 var(--ink);
}

.member-card .avatar {
  margin-bottom: 22px;
}

.member-card h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.member-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.member-slot {
  display: grid;
  place-items: center;
  border: 2px dashed #aaa1b1;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.45);
  text-align: center;
}

.member-slot span {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.room-insight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--purple);
  color: var(--white);
}

.room-insight h2 {
  margin-bottom: 5px;
}

.room-insight p {
  margin-bottom: 0;
  opacity: 0.78;
}

.app-nav {
  position: sticky;
  z-index: 5;
  top: 10px;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 255, 0.86);
  box-shadow: 0 10px 35px rgba(76, 29, 149, 0.12);
  backdrop-filter: blur(16px);
}

.app-nav button {
  display: inline-flex;
  min-width: max-content;
  gap: 7px;
  align-items: center;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.app-nav button.active {
  background: var(--ink);
  color: var(--white);
}

.profile-nudge {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid var(--purple);
  border-radius: 18px;
  background: linear-gradient(110deg, #f3e8ff, #fdf4ff);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.profile-nudge span,
.profile-nudge em {
  color: var(--purple-dark);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 700;
}

.profile-nudge.complete {
  border-color: rgba(76, 29, 149, 0.25);
  background: var(--white);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 32px;
  align-items: end;
  margin: 16px 0 26px;
}

.section-intro h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.section-intro > p {
  color: var(--muted);
  line-height: 1.6;
}

.live-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 60px;
}

.live-rooms-grid {
  display: grid;
  align-content: start;
  gap: 9px;
}

.live-room-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.live-room-card.active {
  border-color: var(--room-color);
  box-shadow: inset 4px 0 0 var(--room-color), 0 8px 25px rgba(76, 29, 149, 0.1);
}

.room-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--room-color, var(--purple)) 20%, white);
  font-size: 1.15rem;
}

.live-room-card strong,
.live-room-card small {
  display: block;
}

.live-room-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.live-room-card em {
  color: var(--purple-dark);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
}

.public-room {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.public-room-head {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.public-room-head small,
.public-room-head p {
  color: var(--muted);
  font-size: 0.7rem;
}

.public-room-head h2 {
  margin: 2px 0;
}

.safety-chip {
  margin-left: auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.public-messages {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, #fbf7ff, #f5edff);
}

.room-message {
  display: grid;
  max-width: 78%;
  gap: 3px;
  align-self: flex-start;
  padding: 10px 13px;
  border-radius: 5px 16px 16px 16px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(76, 29, 149, 0.08);
  font-size: 0.85rem;
}

.room-message strong { color: var(--purple-dark); font-size: 0.7rem; }
.room-message.mine { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--purple); color: white; }
.room-message.mine strong { color: #eadcff; }

.public-chat-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.public-chat-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.public-chat-form button {
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.room-footnote {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.64rem;
}

.preference-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 13px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.preference-panel label,
.profile-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.preference-panel select,
.profile-form input:not([type="checkbox"]):not([type="range"]),
.profile-form select,
.profile-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.preference-panel > span { padding: 12px; color: var(--purple-dark); font-size: 0.7rem; font-weight: 700; }

.radar-filters { display: flex; gap: 8px; margin-bottom: 17px; overflow-x: auto; }
.radar-filters button { min-width: max-content; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; cursor: pointer; }
.radar-filters button.active { border-color: var(--purple); background: var(--purple); color: white; }

.radar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.radar-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.radar-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.radar-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(76,29,149,.2); }
.radar-photo-wrap { position: relative; height: 330px; overflow: hidden; }
.radar-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.online-badge, .away-badge, .radar-score { position: absolute; padding: 7px 10px; border-radius: 999px; background: rgba(36, 16, 47, 0.82); color: white; font-size: 0.68rem; font-weight: 700; backdrop-filter: blur(8px); }
.online-badge, .away-badge { top: 14px; left: 14px; }
.online-badge { color: #c6ffdd; }
.radar-score { right: 14px; bottom: 14px; background: var(--purple); font-size: 0.9rem; }
.radar-card-body { padding: 17px; }
.radar-name { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.radar-name h2 { font-size: 1.45rem; }
.radar-name span, .identity-line { color: var(--muted); font-size: 0.72rem; }
.identity-line { margin: 2px 0 12px; }
.status-line { margin-bottom: 13px; line-height: 1.45; }
.intent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.intent-tags span { padding: 6px 9px; border-radius: 999px; background: #f3e8ff; color: var(--purple-dark); font-size: 0.68rem; font-weight: 700; }
.radar-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.radar-actions button { padding: 11px; border: 1px solid var(--ink); border-radius: 13px; background: var(--white); font-weight: 700; cursor: pointer; }
.radar-actions .signal { background: var(--ink); color: white; }
.safety-ribbon { display: flex; justify-content: space-between; gap: 18px; margin: 18px 0 60px; padding: 18px; border-radius: 18px; background: var(--ink); color: white; }
.safety-ribbon span { opacity: 0.68; font-size: 0.78rem; }
.empty-radar { grid-column: 1 / -1; display: grid; gap: 6px; place-items: center; min-height: 260px; border: 2px dashed var(--line); border-radius: 24px; color: var(--muted); }
.radar-gate { display: grid; max-width: 780px; min-height: 560px; place-items: center; align-content: center; gap: 16px; margin: 20px auto 70px; padding: clamp(28px, 7vw, 72px); border: 1px solid var(--line); border-radius: 34px; background: radial-gradient(circle at 50% 0%, rgba(192,38,211,.2), transparent 45%), var(--white); box-shadow: var(--shadow); text-align: center; }
.radar-gate-icon { display: grid; width: 82px; height: 82px; place-items: center; border-radius: 28px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: white; font-size: 2.3rem; box-shadow: 0 18px 45px rgba(124,58,237,.28); }
.radar-gate h1 { max-width: 660px; font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: .92; letter-spacing: -.065em; }
.radar-gate p { max-width: 590px; color: var(--muted); line-height: 1.6; }
.radar-gate small { max-width: 480px; color: var(--muted); }

.messenger-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.messenger-banner div { display: grid; grid-template-columns: auto auto; gap: 0 8px; align-items: center; }
.messenger-banner small { grid-column: 2; color: var(--muted); }
.messenger-banner button, .nudge-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.7rem; font-weight: 700; cursor: pointer; }
.presence-dot { width: 10px; height: 10px; grid-row: 1 / 3; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.chat-list > p { margin: -13px 0 14px; color: var(--muted); font-size: 0.68rem; }
.chat-avatar-wrap { position: relative; flex: none; }
.chat-avatar-wrap i { position: absolute; right: 0; bottom: 2px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: #f59e0b; }
.chat-avatar-wrap i.online { background: #34d399; }
.chat-person { align-items: flex-start; }
.chat-person small { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 690px;
  margin: 18px 0 60px;
  overflow: hidden;
  border: 1px solid rgba(76,29,149,.14);
  border-radius: 38px;
  background: white;
  box-shadow: 0 35px 100px rgba(76,29,149,.18);
}
.auth-art { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px,6vw,72px); background: radial-gradient(circle at 80% 20%, rgba(244,114,182,.7), transparent 28%), linear-gradient(145deg,#24102f,#6d28d9 58%,#c026d3); color: white; }
.auth-art > span { color: #f5d0fe; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.auth-art h1 { max-width: 620px; margin: 14px 0 18px; font-size: clamp(3rem,6vw,5.5rem); line-height: .9; letter-spacing: -.07em; }
.auth-art p { max-width: 500px; color: rgba(255,255,255,.72); line-height: 1.65; }
.auth-safety { width: fit-content; margin-top: 18px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .72rem; font-weight: 700; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,62px); }
.auth-tabs { display: flex; gap: 7px; align-self: flex-start; margin-bottom: 30px; padding: 5px; border-radius: 999px; background: #f3e8ff; }
.auth-tabs button { padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; font-size: .72rem; font-weight: 800; cursor: pointer; }
.auth-tabs button.active { background: var(--purple); color: white; }
.auth-card h2 { margin-bottom: 6px; font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -.055em; }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.auth-form { display: grid; gap: 13px; margin-top: 18px; }
.auth-form label, .photo-upload-field { color: var(--muted); font-size: .72rem; font-weight: 800; }
.auth-form input, .photo-upload-field input { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; outline: none; }
.auth-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.auth-form .primary-button { width: 100%; margin-top: 7px; }
.auth-note { margin-top: 18px; color: var(--muted); line-height: 1.5; }
.photo-upload-field { display: block; margin: 18px 0; padding: 15px; border: 1px dashed rgba(124,58,237,.35); border-radius: 16px; background: #faf5ff; }
.photo-upload-field small { display: block; margin-top: 2px; font-weight: 500; }
.account-logout { margin: 18px auto 0; }

.chat-head-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.chat-safety-menu { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .62rem; font-weight: 700; cursor: pointer; }
.dark-room-gate { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 18px; border-bottom: 1px solid rgba(216,180,254,.22); background: linear-gradient(110deg,#160d20,#2e1065); color: white; }
.dark-room-gate div, .dark-room-gate span, .dark-room-gate strong, .dark-room-gate small { display: block; }
.dark-room-gate span { color: #e879f9; font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.dark-room-gate strong { margin: 3px 0; font-size: .84rem; }
.dark-room-gate small { color: rgba(255,255,255,.55); font-size: .63rem; }
.dark-room-gate button { flex: none; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: #a21caf; color: white; font-size: .68rem; font-weight: 800; cursor: pointer; }
.dark-room-gate.ready { background: linear-gradient(110deg,#0f0716,#581c87); box-shadow: inset 4px 0 0 #e879f9; }
.chat-plus { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: #faf5ff; color: var(--purple-dark); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.dark-toggle { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid #581c87; border-radius: 13px; background: #1b1025; color: #e879f9; cursor: pointer; }
.dark-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.dark-toggle:has(input:checked) { background: #a21caf; color: white; box-shadow: 0 0 0 3px rgba(217,70,239,.16); }
.dark-toggle:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.hidden { display: none !important; }
.message { display: grid; gap: 7px; }
.message > span, .message > small { display: block; }
.message > small { color: #e879f9; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.dark-message { border: 1px solid rgba(232,121,249,.25); background: #21102e !important; color: white; }
.chat-photo { display: block; width: min(280px,100%); max-height: 360px; object-fit: cover; border-radius: 13px; }

.safety-back { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.policy-shell { width: min(1080px,calc(100% - 40px)); margin: 10px auto 70px; }
.policy-hero { padding: clamp(36px,7vw,80px); border-radius: 38px; background: radial-gradient(circle at 85% 15%,rgba(244,114,182,.75),transparent 28%),linear-gradient(145deg,#24102f,#6d28d9 60%,#a21caf); color: white; box-shadow: 0 35px 90px rgba(76,29,149,.24); }
.policy-hero > span { color: #f5d0fe; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.policy-hero h1 { max-width: 900px; margin: 15px 0 20px; font-size: clamp(3.2rem,8vw,7.3rem); line-height: .88; letter-spacing: -.075em; }
.policy-hero p { max-width: 760px; color: rgba(255,255,255,.75); font-size: 1.02rem; line-height: 1.7; }
.policy-hero small { color: rgba(255,255,255,.5); }
.policy-alert { display: flex; gap: 18px; align-items: center; margin: 18px 0; padding: 18px 20px; border: 1px solid #f9a8d4; border-radius: 20px; background: #fff1f8; }
.policy-alert strong { flex: none; color: #9d174d; }
.policy-alert span { color: #6b2148; line-height: 1.5; }
.policy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.policy-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,255,.85); box-shadow: 0 14px 42px rgba(76,29,149,.07); }
.policy-grid article > span { color: var(--pink); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.policy-grid h2 { margin: 8px 0; font-size: 1.45rem; letter-spacing: -.035em; }
.policy-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.policy-dark { margin: 18px 0; padding: clamp(30px,5vw,58px); border-radius: 30px; background: #160c20; color: white; }
.policy-dark span { color: #e879f9; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.policy-dark h2 { max-width: 780px; margin: 10px 0 14px; font-size: clamp(2.4rem,5vw,4.5rem); line-height: .95; letter-spacing: -.06em; }
.policy-dark p { max-width: 780px; margin-bottom: 0; color: rgba(255,255,255,.65); line-height: 1.65; }
.policy-process { padding: clamp(28px,5vw,52px); border: 1px solid var(--line); border-radius: 30px; background: white; }
.policy-process h2 { font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.05em; }
.policy-process ol { display: grid; gap: 10px; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.policy-process p { margin: 22px 0 0; padding: 14px; border-radius: 14px; background: #faf5ff; color: var(--purple-dark); font-size: .82rem; }
.legal-shell { width: min(980px,calc(100% - 40px)); margin: 10px auto 70px; }
.legal-hero { padding: clamp(36px,7vw,76px); border-radius: 38px; background: radial-gradient(circle at 88% 14%,rgba(244,114,182,.78),transparent 29%),linear-gradient(145deg,#3b0764,#7c3aed 58%,#c026d3); color: white; box-shadow: 0 35px 90px rgba(76,29,149,.22); }
.legal-hero-dark { background: radial-gradient(circle at 88% 14%,rgba(124,58,237,.72),transparent 28%),linear-gradient(145deg,#17071f,#3b0764 60%,#701a75); }
.legal-hero > span { color: #f5d0fe; font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.legal-hero h1 { max-width: 780px; margin: 14px 0 18px; font-size: clamp(3.2rem,8vw,6.5rem); line-height: .88; letter-spacing: -.075em; }
.legal-hero p { max-width: 700px; color: rgba(255,255,255,.74); font-size: 1.02rem; line-height: 1.7; }
.legal-hero small { color: rgba(255,255,255,.48); }
.legal-highlight { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin: 18px 0; padding: 20px 22px; border: 1px solid #d8b4fe; border-radius: 20px; background: #faf5ff; }
.legal-highlight strong { color: #6b21a8; }
.legal-highlight p { margin: 0; color: #5b4567; line-height: 1.6; }
.legal-content { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.legal-content section { padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 14px 40px rgba(76,29,149,.06); }
.legal-content h2 { margin-bottom: 10px; font-size: 1.25rem; letter-spacing: -.035em; }
.legal-content p { margin: 0; color: var(--muted); line-height: 1.65; }
.legal-content a { color: var(--purple-dark); font-weight: 700; }
.local-data-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 18px; padding: clamp(26px,5vw,46px); border-radius: 28px; background: #190923; color: white; }
.local-data-card span { color: #e879f9; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.local-data-card h2 { margin: 7px 0; font-size: clamp(2rem,4vw,3rem); }
.local-data-card p { max-width: 600px; margin: 0; color: rgba(255,255,255,.62); }
.local-data-card button { flex: none; padding: 13px 16px; border: 0; border-radius: 999px; background: white; color: #301044; font-weight: 850; cursor: pointer; }
.error-shell { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; align-items: flex-start; width: min(720px,calc(100% - 40px)); margin: auto; padding: 60px 0; }
.error-shell img { width: min(260px,70vw); margin-bottom: 50px; }
.error-shell > span { color: var(--pink); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.error-shell h1 { margin: 12px 0; font-size: clamp(3.2rem,9vw,7rem); line-height: .88; letter-spacing: -.075em; }
.error-shell p { max-width: 520px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.error-shell a { margin-top: 22px; padding: 13px 17px; border-radius: 999px; background: var(--purple); color: white; font-weight: 800; text-decoration: none; }
.nudge-button { margin-left: auto; color: var(--purple-dark); }
.chat-context { align-self: center; max-width: 85%; margin-bottom: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(124, 58, 237, 0.09); color: var(--muted); font-size: 0.68rem; text-align: center; }
.chat-plus { width: 42px; padding: 0 !important; background: var(--paper) !important; color: var(--ink) !important; }

.profile-intro { margin-bottom: 20px; }
.profile-form { display: grid; gap: 16px; padding-bottom: 70px; }
.profile-section { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: 0 12px 35px rgba(76, 29, 149, 0.07); }
.profile-section-title { display: flex; gap: 14px; margin-bottom: 24px; }
.profile-section-title > span { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 13px; background: var(--purple); color: white; font-weight: 700; }
.profile-section-title h2 { margin-bottom: 3px; font-size: 1.45rem; }
.profile-section-title p { color: var(--muted); font-size: 0.78rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.profile-form textarea { min-height: 100px; resize: vertical; }
.full-field { display: block; margin-top: 15px; }
.profile-form label small { font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-card input, .tag-choices input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card { display: grid; min-height: 105px; gap: 4px; place-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); cursor: pointer; }
.choice-card > span { font-size: 1.35rem; }
.choice-card:has(input:checked) { border-color: var(--purple); background: #f3e8ff; box-shadow: inset 0 0 0 1px var(--purple); }
.field-heading { margin: 20px 0 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tag-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-choices label span { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.tag-choices label:has(input:checked) span { border-color: var(--purple); background: var(--purple); color: white; }
.compact-grid { margin-top: 22px; }
.range-field { display: block; margin-top: 22px; }
.range-field strong { float: right; color: var(--purple-dark); }
.range-field input { width: 100%; margin-top: 12px; accent-color: var(--purple); }
.privacy-box { display: grid; gap: 11px; margin-top: 22px; padding: 17px; border-radius: 17px; background: #f5edff; }
.privacy-box label { display: flex; gap: 9px; align-items: flex-start; color: var(--ink); line-height: 1.45; }
.privacy-box input { margin-top: 2px; accent-color: var(--purple); }
.profile-submit { position: sticky; bottom: 12px; z-index: 4; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(36,16,47,.93); color: white; box-shadow: 0 18px 55px rgba(36,16,47,.28); backdrop-filter: blur(16px); }
.profile-submit span { display: block; margin-top: 3px; opacity: .65; font-size: .72rem; }
.profile-submit .primary-button { border-color: white; background: white; color: var(--ink); }

.toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  max-width: min(340px, calc(100% - 40px));
  padding: 13px 17px;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  animation: reveal 420ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes reveal {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 850px) {
  .community-banner { grid-template-columns: 1fr; min-height: 0; }
  .community-hero-visual { min-height: 440px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 360px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }

  .hero-cards {
    min-height: 430px;
  }

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

  .avatar-shell {
    grid-template-columns: 1fr;
  }

  .avatar-stage {
    min-height: 390px;
  }

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

  .connection-offers {
    grid-template-columns: 1fr;
  }

  .community-banner .avatar-stack {
    display: none;
  }

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

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

  .chat-shell {
    grid-template-columns: 1fr;
  }

  .chat-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-radius: 20px 20px 0 0;
  }

  .chat-list h2 {
    display: none;
  }

  .chat-person {
    min-width: 170px;
  }

  .chat-window {
    border-left: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
  }

  .orbit-feature {
    grid-template-columns: 1fr;
  }

  .orbit-visual {
    min-height: 330px;
  }

  .chemistry-content {
    width: 92%;
  }

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

@media (max-width: 560px) {
  .topbar,
  #app {
    width: min(100% - 28px, 1080px);
  }

  .brand-logo {
    height: 41px;
  }

  .hero {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .name-form {
    flex-direction: column;
  }

  .name-form input {
    min-height: 48px;
  }

  .hero-cards {
    min-height: 360px;
  }

  .mini-card {
    min-height: 305px;
    padding: 22px;
  }

  .mini-card.front {
    top: 42px;
  }

  .mini-emoji {
    font-size: 3.7rem;
  }

  .mini-card h3 {
    font-size: 1.55rem;
  }

  .answer-button {
    grid-template-columns: 36px 1fr;
    padding: 14px;
  }

  .answer-letter {
    width: 34px;
    height: 34px;
  }

  .role-card {
    min-height: 470px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .roles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .role-option {
    min-height: 170px;
    padding: 15px;
  }

  .versus {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .versus-mark {
    width: 38px;
    height: 38px;
    margin: 0 auto;
  }

  .comparison-card .result-actions {
    grid-template-columns: 1fr;
  }

  .room-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-insight {
    grid-template-columns: 1fr;
  }

  .room-insight .secondary-button {
    width: 100%;
  }

  .chemistry-grid,
  .discovery-actions {
    grid-template-columns: 1fr;
  }

  .connection-head {
    flex-direction: column-reverse;
  }

  .community-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .community-button span {
    margin: 0;
    font-size: 1rem;
  }

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

  .ritual-answer {
    flex-direction: column;
  }

  .ritual-answer button {
    min-height: 44px;
  }

  .orbit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .orbit-copy {
    padding: 28px 22px;
  }

  .orbit-visual {
    min-height: 310px;
  }

  .orbit-name {
    left: 20px;
    bottom: 20px;
  }

  .orbit-score {
    right: 18px;
    bottom: 18px;
    width: 78px;
    height: 78px;
    font-size: 1.2rem;
  }

  .chemistry-hero {
    min-height: 760px;
  }

  .chemistry-veil {
    background: linear-gradient(0deg, rgba(16, 12, 22, 0.99) 0%, rgba(16, 12, 22, 0.88) 70%, rgba(16, 12, 22, 0.35) 100%);
  }

  .chemistry-content {
    width: 100%;
    padding: 30px 22px;
  }
}

@media (max-width: 850px) {
  .section-intro,
  .live-layout,
  .preference-panel {
    grid-template-columns: 1fr;
  }

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

  .live-room-card {
    grid-template-columns: auto 1fr;
  }

  .live-room-card em {
    grid-column: 2;
  }

  .radar-photo-wrap {
    height: 280px;
  }

  .profile-nudge {
    grid-template-columns: 1fr auto;
  }

  .profile-nudge span {
    grid-column: 1 / -1;
  }

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

@media (max-width: 560px) {
  .app-nav {
    position: fixed;
    z-index: 20;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    justify-content: space-around;
    margin: 0;
    padding: 7px;
    border-color: rgba(76,29,149,.14);
    background: rgba(255,250,255,.94);
    box-shadow: 0 16px 42px rgba(36,16,47,.24);
  }

  .app-nav button {
    min-width: 56px;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px;
    font-size: .58rem;
  }

  .app-nav button span { font-size: .9rem; }

  .community-shell,
  .live-shell,
  .radar-shell,
  .chat-shell,
  .profile-shell { padding-bottom: 92px; }

  .instagram-pill { display: none; }

  .community-banner {
    padding: 26px 22px;
    border-radius: 30px;
  }

  .community-banner h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .community-hero-actions { width: 100%; }
  .hero-primary, .hero-secondary { flex: 1; padding-inline: 12px; }
  .community-hero-visual { min-height: 330px; margin-top: 8px; }
  .hero-person { border-radius: 22px; }
  .hero-person-1 { width: 45%; height: 73%; }
  .hero-person-2 { left: 32%; width: 43%; height: 86%; }
  .hero-person-3 { width: 39%; height: 69%; }
  .hero-person > span { padding: 32px 10px 10px; }
  .hero-person small { display: none; }

  .people-stories { margin-inline: -4px; padding: 17px 13px; border-radius: 24px; }
  .stories-heading small { display: none; }
  .stories-rail { gap: 10px; }

  .section-intro h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .live-rooms-grid,
  .radar-grid,
  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .public-room {
    min-height: 590px;
  }

  .public-room-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .safety-chip {
    width: 100%;
    margin-left: 0;
  }

  .radar-photo-wrap {
    height: 390px;
  }

  .safety-ribbon,
  .profile-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-submit .primary-button {
    width: 100%;
  }

  .profile-nudge {
    grid-template-columns: 1fr;
  }

  .profile-nudge span {
    grid-column: auto;
  }

  .messenger-banner small {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nudge-button {
    width: 42px;
    overflow: hidden;
    color: transparent;
  }

  .nudge-button::first-letter {
    color: var(--purple-dark);
  }

  .auth-shell { margin-top: 8px; border-radius: 28px; }
  .auth-art { min-height: 310px; padding: 30px 24px; }
  .auth-art h1 { font-size: clamp(2.8rem,14vw,4.1rem); }
  .auth-card { padding: 28px 22px; }
  .chat-head { flex-wrap: wrap; }
  .chat-head-actions { width: 100%; margin-left: 0; }
  .dark-room-gate { align-items: flex-start; flex-direction: column; }
  .dark-room-gate button { width: 100%; }
  .policy-shell { width: min(100% - 28px,1080px); }
  .policy-hero { padding: 34px 23px; border-radius: 28px; }
  .policy-hero h1 { font-size: clamp(3rem,15vw,4.4rem); }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-alert { align-items: flex-start; flex-direction: column; }
  .legal-shell { width: min(100% - 28px,980px); }
  .legal-hero { padding: 34px 23px; border-radius: 28px; }
  .legal-hero h1 { font-size: clamp(3rem,15vw,4.4rem); }
  .legal-content { grid-template-columns: 1fr; }
  .legal-highlight, .local-data-card { grid-template-columns: 1fr; align-items: stretch; flex-direction: column; }
  .local-data-card button { width: 100%; }
}

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