/* ============================================================
   style.css — Love Landing
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:           #FDF4F8;
  --surface:      #FFFFFF;
  --rose:         #E8607A;
  --rose-dark:    #C84060;
  --rose-light:   #FCDEE6;
  --rose-xlight:  #FEF0F5;
  --text:         #2A0E1A;
  --text-soft:    #9A6878;
  --font:         'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card:  28px;
  --radius-btn:   50px;
  --shadow-card:  0 12px 48px rgba(200, 60, 100, 0.13), 0 2px 8px rgba(200, 60, 100, 0.06);
  --tr:           0.28s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Particle background ─────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -40px;
  opacity: 0;
  user-select: none;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(0)      rotate(0deg)  scale(1);    opacity: 0; }
  8%   { opacity: 0.7; }
  85%  { opacity: 0.25; }
  100% { transform: translateY(-108vh) rotate(25deg) scale(0.75); opacity: 0; }
}

/* ── Screens wrapper ─────────────────────────────────────── */
.screens {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* ── Individual screen ───────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 80px;
  opacity: 0;
  transform: scale(0.93) translateY(18px);
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.screen.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.screen.leaving {
  opacity: 0;
  transform: scale(1.05) translateY(-16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 48px 36px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

/* Top gradient stripe */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #F4A0B8, #E8607A, #F090A8, #FDA0C0);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card__emoji {
  display: block;
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.card__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.card__title--big {
  font-size: 34px;
  margin-bottom: 16px;
}

.card__sub {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}

.card__sub--big {
  font-size: 15.5px;
  margin-bottom: 0;
}

/* Final card */
.card-final {
  background: linear-gradient(150deg, #FFF5F8 0%, #FFFFFF 60%);
  border: 1.5px solid #F9D4DF;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  min-height: 50px;
  align-items: center;
}

.btn {
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 26px;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), opacity var(--tr), font-size var(--tr);
  white-space: nowrap;
  position: relative;
}

.btn:active { transform: scale(0.93) !important; }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232, 96, 120, 0.42);
}

.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232, 96, 120, 0.52);
}

.btn-ghost {
  background: var(--rose-light);
  color: var(--rose);
}

.btn-ghost:hover {
  background: #F5C4D2;
  transform: translateY(-2px);
}

/* ── Hint text ───────────────────────────────────────────── */
.hint {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 14px;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

/* ── Progress dots ───────────────────────────────────────── */
.dots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-light);
  transition: background 0.35s ease, width 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), border-radius 0.35s ease;
  flex-shrink: 0;
}

.dot-active {
  background: var(--rose);
  width: 24px;
  border-radius: 4px;
}

/* ── Confetti layer ──────────────────────────────────────── */
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  animation: confettiBurst ease-out forwards;
  opacity: 0;
}

@keyframes confettiBurst {
  0%   { opacity: 0; transform: translateY(0)   rotate(0deg)   scale(0.3); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60vh) rotate(200deg) scale(0.6); }
}

/* ── Float / pulse animations ────────────────────────────── */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseAnim {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

.anim-float { animation: floatAnim 3.2s ease-in-out infinite; }
.anim-pulse { animation: pulseAnim 1.1s ease-in-out infinite; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 420px) {
  .card {
    padding: 40px 24px 32px;
    border-radius: 22px;
  }

  .card__emoji  { font-size: 48px; }
  .card__title  { font-size: 23px; }
  .card__title--big { font-size: 29px; }

  .btn { font-size: 14px; padding: 11px 20px; }
}
