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

:root {
  --bg: #101014;            /* primary background */
  --card: #18181F;          /* secondary background / cards */
  --elev: #202028;          /* elevated surface */
  --purple: #7C3AED;        /* primary brand purple */
  --violet: #A855F7;        /* electric violet highlight */
  --grad: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  /* CTA turquoise, matched to the Jerkmate button so the handoff feels native */
  --cta: linear-gradient(135deg, #67DCEC 0%, #3FC9E1 100%);
  --cta-shadow: rgba(63, 201, 225, 0.4);
  --live: #22C55E;          /* success / live indicator */
  --border: rgba(255, 255, 255, 0.08);
  /* legacy accent names, remapped to the purple system */
  --red: #A855F7;
  --red-deep: #7C3AED;
  /* card text (cards are dark now, so ink is light) */
  --ink: #FFFFFF;
  --ink-soft: #B6B6C2;
  --ink-faint: #777783;
}

html, body { height: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.screen.active { display: flex; }

/* ---------- Blurred live tease behind the funnel ---------- */
.bg-tease { position: fixed; inset: 0; z-index: 0; overflow: hidden; display: none; }
.bg-tease.on { display: block; }
body.in-call .bg-tease { display: none; }
.bg-tease img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%) scale(1.12);
  filter: blur(14px) saturate(1.15);
  object-fit: cover;
  border: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease; /* crossfade between rotating snapshots */
}
.bg-tease-scrim { position: absolute; inset: 0; background: rgba(16, 16, 20, 0.55); }
body.theme-light .bg-tease-scrim { background: rgba(246, 246, 249, 0.55); }

/* ---------- Funnel back button ---------- */
.btn-back {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.15s, background 0.15s;
}
.btn-back:hover { transform: translateX(-2px); }

a { color: var(--red); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-cta {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--cta);
  box-shadow: 0 10px 30px var(--cta-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover, .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--cta-shadow); }
.btn-cta.small { width: auto; font-size: 15px; padding: 10px 18px; border-radius: 10px; box-shadow: none; }

.btn-ghost {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 15px;
  cursor: pointer;
  padding: 10px;
}

/* ---------- Landing ---------- */
#screen-landing {
  padding: 0;
  /* No solid base layer: the body (or the blurred live tease) shows through */
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124, 58, 237, 0.3), transparent 60%),
              radial-gradient(900px 700px at 10% 110%, rgba(168, 85, 247, 0.16), transparent 60%);
}
.landing-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 56px 24px 48px;
}
.landing-inner { max-width: 460px; width: 100%; text-align: center; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 32px; }
.logo span { color: var(--red); }
.logo img { height: 44px; width: auto; display: block; margin: 0 auto; }
.kink-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C4B5FD;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(124, 58, 237, 0.12);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.landing-inner h1 { font-size: 46px; line-height: 1.08; letter-spacing: -1px; font-weight: 800; margin-bottom: 16px; }
.landing-inner h1 .hot {
  background: linear-gradient(100deg, #A855F7, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 14px;
  border-radius: 100px;
}
/* Below-the-fold SEO band: solid background so the copy is fully legible,
   full-bleed against the landing scroll padding */
.seo-band {
  align-self: stretch;
  margin: 24px -24px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 56px 24px 64px;
}
.seo-inner { max-width: 680px; margin: 0 auto; }
.seo-inner h2 { font-size: 26px; letter-spacing: -0.4px; color: var(--ink); margin: 40px 0 14px; }
.seo-inner h2:first-child { margin-top: 0; }
.seo-inner h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.seo-inner p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 10px; }
body.theme-light .seo-band { background: #FFFFFF; }

/* ---------- Footer ---------- */
.site-footer {
  align-self: stretch;
  margin: 0 -24px -48px;
  padding: 46px 24px 42px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; margin-bottom: 30px; }
.footer-links a {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  transition: color 0.15s;
}
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--violet); }
.footer-copy { color: var(--ink-faint); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.footer-note { color: var(--ink-faint); font-size: 12px; }

/* ---------- Legal / info pages ---------- */
body.legal-page { overflow: auto; }
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 44px 24px 90px; }
.legal-logo { display: inline-block; margin-bottom: 34px; }
.legal-logo img { height: 36px; display: block; }
.legal-wrap h1 { font-size: 34px; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 8px; }
.legal-updated { color: var(--ink-faint); font-size: 13px; margin-bottom: 28px; }
.legal-wrap h2 { font-size: 21px; color: var(--ink); margin: 32px 0 10px; }
.legal-wrap p, .legal-wrap li { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 10px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 12px; }
.legal-wrap a { color: var(--purple); }
.legal-back { display: inline-block; margin-top: 36px; font-weight: 700; }
.sub { color: rgba(255, 255, 255, 0.65); font-size: 17px; line-height: 1.5; }
.landing-inner .sub { margin-bottom: 28px; }

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  margin-bottom: 28px;
}
.online-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }

.fine-print { margin-top: 20px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

/* ---------- Live models strip (social proof) ---------- */
.live-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 14px 24px;
  border-radius: 18px;
  background: rgba(24, 24, 31, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(10px);
}
.live-strip[hidden] { display: none; }
.live-strip-avatars { display: flex; align-items: center; }
.live-strip-avatars img, .live-strip-more {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  margin-left: -12px;
  filter: blur(2.5px);
}
.live-strip-avatars img:first-child { margin-left: 0; }
.live-strip-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2A2A33;
  color: #B6B6C2;
  font-weight: 800;
  letter-spacing: 1px;
  filter: none;
  font-size: 14px;
}
.live-strip-info { text-align: left; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--live);
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px var(--live); }
.live-strip-stat { font-size: 17px; color: var(--ink-soft); }
.live-strip-stat strong { color: var(--violet); font-size: 21px; font-weight: 800; }
body.theme-light .live-strip {
  background: #FFFFFF;
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 8px 26px rgba(16, 16, 22, 0.08);
}
body.theme-light .live-strip-more { background: #EFEFF4; color: #52525E; }

/* ---------- Quiz ---------- */
.quiz-inner { max-width: 420px; width: 100%; }
.progress-track { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 100px; margin-bottom: 28px; overflow: hidden; }
.progress-fill { height: 100%; width: 8%; background: linear-gradient(90deg, #7C3AED, #A855F7); border-radius: 100px; transition: width 0.4s ease; }
.quiz-step { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.quiz-inner h2 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 26px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.quiz-option:hover { background: rgba(124, 58, 237, 0.16); border-color: var(--violet); transform: translateY(-1px); }
.quiz-option .emoji { margin-right: 12px; }

.quiz-options.circles {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 12px;
}
.quiz-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.quiz-circle:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: var(--violet);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.3);
}
.circle-emoji { font-size: 44px; line-height: 1; }
.circle-label { font-size: 15px; font-weight: 700; }

@media (max-width: 420px) {
  .quiz-options.circles { gap: 18px; }
  .quiz-circle { width: 136px; height: 136px; }
  .circle-emoji { font-size: 38px; }
}

/* ---------- Email capture ---------- */
.email-inner { text-align: center; }
.email-inner .sub { margin-bottom: 26px; }
.email-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  color: #fff;
  font-size: 17px;
  text-align: center;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.email-input:focus { border-color: var(--red); }
.email-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.email-error { display: none; color: #fb7185; font-size: 13.5px; margin-bottom: 8px; }
.email-error.show { display: block; }
.age-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin: 6px 0 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  cursor: pointer;
}
.age-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--purple);
  cursor: pointer;
}
.age-consent a { color: var(--violet); }
body.theme-light .age-consent a { color: var(--purple); }
.email-inner .btn-cta { margin-top: 10px; }

/* ---------- Searching ---------- */
.searching-inner { text-align: center; max-width: 460px; }
.searching-inner h2 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 10px; min-height: 70px; }
.searching-inner h2.swap, .searching-inner .sub.swap { animation: status-in 0.35s ease; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.radar { position: relative; width: 230px; height: 230px; margin: 0 auto 44px; }
.radar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  animation: pulse-ring 2.4s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 0.8s; }
.radar-ring.r3 { animation-delay: 1.6s; }
.radar-core {
  position: absolute;
  inset: 82px;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.55);
  animation: core-pulse 1.6s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); box-shadow: 0 0 70px rgba(124, 58, 237, 0.75); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Magnifying glass orbiting the radar, staying upright */
.radar-scope {
  position: absolute;
  inset: 0;
  animation: orbit 3s linear infinite;
}
.radar-scope .glass {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 52px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  animation: counter-orbit 3s linear infinite;
  display: inline-block;
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter-orbit { from { rotate: 0deg; } to { rotate: -360deg; } }
/* Match blips popping onto the radar */
.radar-blip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 14px var(--live);
  opacity: 0;
  animation: blip 3.6s ease-in-out infinite;
}
.radar-blip.b1 { top: 34px; left: 44px; }
.radar-blip.b2 { bottom: 50px; right: 38px; animation-delay: 1.2s; }
.radar-blip.b3 { top: 66px; right: 56px; animation-delay: 2.4s; }
@keyframes blip {
  0%, 12% { opacity: 0; transform: scale(0.3); }
  22% { opacity: 1; transform: scale(1.15); }
  30% { transform: scale(1); }
  55% { opacity: 0.7; }
  70%, 100% { opacity: 0; }
}

/* ---------- Queue ---------- */
#screen-queue { background: rgba(10, 10, 14, 0.6); }
.queue-card {
  background: var(--card);
  color: var(--ink);
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 48px 40px 36px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: card-in 0.35s ease;
}
@keyframes card-in {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* Upcoming match preview: blurred, sharpening as the queue advances */
.queue-match {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 0 34px rgba(124, 58, 237, 0.25);
}
.queue-match img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.1);
  transition: filter 0.8s ease;
}
.queue-progress {
  height: 8px;
  background: var(--elev);
  border-radius: 100px;
  overflow: hidden;
  margin: 6px 0 14px;
}
.queue-progress-fill {
  height: 100%;
  width: 4%;
  border-radius: 100px;
  background: linear-gradient(90deg, #7C3AED, #A855F7);
  transition: width 0.7s ease;
}
.queue-status { color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.queue-status.swap { animation: status-in 0.35s ease; }
.queue-title { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.queue-sub { color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.queue-connected {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--elev);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
}
.queue-connected .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px var(--live); }
.queue-connected strong { color: var(--ink); }

.queue-pos {
  color: var(--red);
  font-size: 58px;
  font-weight: 800;
  margin-top: 26px;
  transition: transform 0.2s ease;
}
.queue-pos.bump { transform: scale(1.18); }
.queue-pos-label { color: var(--ink-faint); font-size: 17px; margin-bottom: 28px; }
.queue-wait { margin-top: 16px; color: var(--ink-faint); font-size: 14px; }

/* ---------- Call ---------- */
#screen-call { padding: 0; }
.call-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.peer-pane {
  position: relative;
  flex: 0 0 56%;
  overflow: hidden;
  background: #000;
  container-type: size;
}
.self-pane {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: #0d0d12;
}
#self-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}
.self-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-align: center;
}
/* Jerkmate-style "start your cam" tile with a sweeping shine */
.cam-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 48px 26px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(124, 124, 186, 0.6), rgba(74, 74, 132, 0.55));
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cam-tile:hover { transform: scale(1.04); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.cam-ico { width: 64px; height: 64px; }
.cam-shine {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -40%;
  width: 56px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: cam-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cam-shine-sweep {
  0% { left: -40%; }
  55%, 100% { left: 135%; }
}

/* Desktop and landscape: her stream fills the whole stage, the user's
   camera becomes a picture-in-picture tile, like a desktop video call. */
@media (min-width: 820px) {
  .call-stage { display: block; }
  .peer-pane { position: absolute; inset: 0; }
  .self-pane {
    position: absolute;
    right: 20px;
    bottom: 120px;
    width: 250px;
    height: 165px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    background: #000;
    z-index: 6;
  }
  #self-video { border-radius: 16px; }
  .self-placeholder { height: 100%; padding: 0; }
  /* Tile fills the whole PiP box, its corners clipped by the pane */
  .cam-tile {
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 0;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 1.4px;
    border-radius: 0;
  }
  .cam-ico { width: 40px; height: 40px; }
}

.video-feed { position: absolute; inset: 0; background: #17121c; overflow: hidden; animation: cam-shake 7s ease-in-out infinite; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; }
.b1 { width: 55vw; height: 55vw; min-width: 400px; min-height: 400px; background: var(--blob1, #8b2b4a); top: -10%; left: 8%; animation: drift1 11s ease-in-out infinite alternate; }
.b2 { width: 45vw; height: 45vw; min-width: 340px; min-height: 340px; background: var(--blob2, #3b2b6e); bottom: -5%; right: 5%; animation: drift2 13s ease-in-out infinite alternate; }
.b3 { width: 30vw; height: 30vw; min-width: 240px; min-height: 240px; background: var(--blob3, #b8506e); top: 35%; left: 40%; animation: drift1 9s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-5vw, -4vh) scale(0.95); } }
@keyframes cam-shake {
  0%, 100% { transform: translate(0, 0) scale(1.02); }
  30% { transform: translate(-4px, 3px) scale(1.03); }
  65% { transform: translate(3px, -3px) scale(1.02); }
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
}
.demo-tag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.video-feed.live { animation: none; }
/* Cover-crop: streams are landscape 16:9. The iframe is kept at exactly
   16:9 but sized to whichever dimension overflows the pane, then centered,
   so it always covers with no letterboxing (container units from
   .peer-pane's container-type: size). */
.video-feed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
}
.feed-catcher { position: absolute; inset: 0; cursor: pointer; }

.model-avatar img, .convert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.call-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 28px;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 60%, transparent);
}
.model-id {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff; /* pill glass is always dark, never inherit the light theme ink */
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
}
.model-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.model-name { font-weight: 700; font-size: 17px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.model-meta { font-size: 13px; color: rgba(255, 255, 255, 0.92); margin-top: 2px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.live-badge {
  background: var(--live);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 4px;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: 0.6; } }
.btn-next {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.btn-next:hover { background: rgba(255, 255, 255, 0.24); }

.chat-drawer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 40%);
}
.chat-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-width: 560px; }
.chat-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  animation: msg-in 0.3s ease;
}
.chat-msg.system { background: none; color: rgba(255, 255, 255, 0.5); font-size: 12.5px; padding: 2px 4px; }
.chat-msg.you {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
}
@keyframes msg-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.chat-input-row { display: flex; gap: 10px; max-width: 560px; }
#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 14px 20px;
  color: #fff;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
#chat-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.chat-send {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--cta);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Sits just below the stream pane on mobile so it never covers her face
   (performers frame themselves center-top). Docked bottom-right on desktop. */
.invite-toast {
  position: absolute;
  bottom: calc(44% + 12px);
  left: 50%;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(20, 20, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  color: #fff; /* toast glass is always dark, keep text light in both themes */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 7;
}
.invite-toast #invite-text { flex: 1 1 auto; }
.invite-toast .invite-emoji {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  animation: invite-wiggle 1.4s ease-in-out infinite;
}
@keyframes invite-wiggle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.15); }
}
.invite-toast .btn-cta.small { white-space: nowrap; flex-shrink: 0; }
.invite-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

@media (min-width: 820px) {
  .invite-toast {
    bottom: 305px;
    left: auto;
    right: 20px;
    width: auto;
    font-size: 15px;
    transform: translate(0, 12px);
    white-space: nowrap;
  }
  .invite-toast.show { transform: translate(0, 0); }
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal-backdrop.open { display: flex; }
.convert-card, .redirect-card {
  background: var(--card);
  color: var(--ink);
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 40px 32px 28px;
  text-align: center;
  animation: card-in 0.3s ease;
}
.convert-card h2, .redirect-card h2 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 12px; }
.convert-card .btn-cta { margin-top: 24px; }
.convert-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
}
.redirect-card code {
  display: block;
  margin-top: 18px;
  padding: 12px;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-all;
}
.spinner {
  width: 44px; height: 44px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .landing-inner h1 { font-size: 34px; }
  .queue-card { padding: 36px 24px 28px; }
  .queue-title { font-size: 26px; }
}

/* ============================================================
   LIGHT THEME EXPERIMENT (?theme=light) - Jerkmate-style white
   foundation, same purple brand system. The call screen stays
   dark because its UI overlays live video.
   ============================================================ */
body.theme-light {
  --bg: #F6F6F9;
  --card: #FFFFFF;
  --elev: #EFEFF4;
  --border: rgba(16, 16, 22, 0.08);
  --ink: #15151B;
  --ink-soft: #52525E;
  --ink-faint: #8A8A96;
  background: var(--bg);
  color: var(--ink);
}

body.theme-light #screen-landing {
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
              radial-gradient(900px 700px at 10% 110%, rgba(168, 85, 247, 0.08), transparent 60%);
}
body.theme-light .sub { color: var(--ink-soft); }
body.theme-light .fine-print { color: var(--ink-soft); text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7); }
body.theme-light .online-pill {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(16, 16, 22, 0.06);
}
body.theme-light .chip {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink-soft);
}
body.theme-light .kink-badge { color: var(--purple); }

body.theme-light .progress-track { background: rgba(16, 16, 22, 0.08); }
body.theme-light .quiz-option,
body.theme-light .quiz-circle {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 16, 22, 0.05);
}
body.theme-light .quiz-option:hover,
body.theme-light .quiz-circle:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: var(--violet);
}

body.theme-light .email-input {
  background: var(--card);
  border-color: rgba(16, 16, 22, 0.14);
  color: var(--ink);
}
body.theme-light .email-input::placeholder { color: var(--ink-faint); }

body.theme-light #screen-queue { background: rgba(246, 246, 249, 0.55); }
body.theme-light .queue-card,
body.theme-light .convert-card,
body.theme-light .redirect-card { box-shadow: 0 30px 80px rgba(16, 16, 22, 0.18); }
body.theme-light .queue-match { background: #FDF3D3; border: none; }
body.theme-light .queue-progress { background: #EFEFF4; }
body.theme-light .modal-backdrop { background: rgba(16, 16, 22, 0.45); }
