:root {
  --bg-1: #14040b;
  --bg-2: #2b0a18;
  --pink: #ff4d7e;
  --pink-soft: #ff7ba1;
  --pink-glow: rgba(255, 77, 126, 0.45);
  --text: #ffeef4;
  --text-dim: rgba(255, 238, 244, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-2) 0%, var(--bg-1) 70%);
  overflow: hidden;
  user-select: none;
}

/* ---------- screens ---------- */

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.screen.active {
  display: flex;
  animation: screen-in 0.5s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- hearts ---------- */

.heart-svg {
  width: 100%;
  height: 100%;
  fill: var(--pink);
  filter: drop-shadow(0 0 18px var(--pink-glow));
}

.heart-svg.small {
  filter: drop-shadow(0 0 12px var(--pink-glow));
}

/* ---------- landing ---------- */

.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 420px;
}

.logo-heart {
  width: 96px;
  height: 96px;
  animation: heartbeat 1.6s ease-in-out infinite;
}

.app-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.btn-primary {
  margin-top: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, #e0356b 100%);
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--pink-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px var(--pink-glow);
}

.fineprint {
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- radar / scanning ---------- */

.scan-inner,
.broadcast-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.radar {
  position: relative;
  width: min(64vw, 280px);
  height: min(64vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar.small-radar {
  width: min(50vw, 220px);
  height: min(50vw, 220px);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pink);
  opacity: 0;
  animation: pulse 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.ring.r2 { animation-delay: 1s; }
.ring.r3 { animation-delay: 2s; }

@keyframes pulse {
  0%   { transform: scale(0.25); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

.radar-heart {
  width: 64px;
  height: 64px;
  z-index: 1;
}

.radar-heart.beating,
.logo-heart,
.big-heart {
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.12); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.08); }
  48%      { transform: scale(1); }
}

.scan-status {
  color: var(--text-dim);
  font-size: 0.95rem;
  min-height: 1.4em;
}

.scan-count {
  font-size: 1rem;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: rgba(255, 77, 126, 0.18);
  border: 1px solid rgba(255, 77, 126, 0.5);
  color: var(--pink-soft);
  font-weight: 700;
}

/* ---------- ringing ---------- */

#screen-ring {
  background: radial-gradient(120% 100% at 50% 30%, #4a0f26 0%, var(--bg-1) 75%);
}

.ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 1;
}

.burst {
  position: relative;
  width: min(64vw, 280px);
  height: min(64vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.burst-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--pink);
  opacity: 0;
  animation: pulse 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.burst-ring.b2 { animation-delay: 0.45s; }
.burst-ring.b3 { animation-delay: 0.9s; }

.big-heart {
  width: 130px;
  height: 130px;
  animation-duration: 0.9s;
}

.ring-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.ring-badge {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-soft);
  background: rgba(255, 77, 126, 0.16);
  border: 1px solid rgba(255, 77, 126, 0.5);
  border-radius: 999px;
  padding: 8px 26px;
}

.ring-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* floating hearts */

.floating-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  bottom: -10vh;
  font-size: 22px;
  animation: float-up linear forwards;
}

@keyframes float-up {
  from { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  to   { transform: translateY(-115vh) rotate(40deg); opacity: 0; }
}

/* ---------- broadcast ---------- */

.broadcast-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.broadcast-status {
  color: var(--text-dim);
  font-size: 0.95rem;
  min-height: 1.4em;
}
