:root {
  --pink-50:  #fff1f5;
  --pink-100: #ffe0ec;
  --pink-200: #ffc4dc;
  --pink-300: #ff9ec2;
  --pink-400: #ff7aac;
  --pink-500: #ff4d8b;
  --pink-600: #e63875;

  --peach:   #ffd9c4;
  --lilac:   #e0c8ff;
  --mint:    #c8f0e1;
  --cream:   #fff7ef;

  --ink:     #4a1f3a;
  --ink-2:   #7a3d61;
  --bg:      #fff5f9;

  --glass:   rgba(255, 255, 255, .55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- aurora mesh background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(at 20% 20%, #ffe4ee 0%, transparent 50%),
    radial-gradient(at 80% 10%, #f3e1ff 0%, transparent 55%),
    radial-gradient(at 70% 80%, #ffe3d5 0%, transparent 50%),
    radial-gradient(at 30% 90%, #ffd7e6 0%, transparent 55%),
    linear-gradient(180deg, #fff6fa 0%, #fff0f6 100%);
}
.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}
.a1 { width: 560px; height: 560px; background: #ff8fb8; top: -120px;  left: -160px;  animation: drift 22s ease-in-out infinite;  }
.a2 { width: 500px; height: 500px; background: #c89bff; top:  10%;    right: -140px; animation: drift 26s ease-in-out infinite reverse; }
.a3 { width: 460px; height: 460px; background: #ffb88a; bottom: 5%;   left:  -100px; animation: drift 28s ease-in-out infinite;  animation-delay: -6s;}
.a4 { width: 380px; height: 380px; background: #ffd1dc; bottom: -90px; right:  20%;  animation: drift 24s ease-in-out infinite reverse; animation-delay: -10s;}

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  25%     { transform: translate(60px, -40px) scale(1.08); }
  50%     { transform: translate(-30px, 60px) scale(.96); }
  75%     { transform: translate(-50px, -20px) scale(1.04); }
}

/* ---------- subtle pattern overlay ---------- */
.pattern {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 77, 139, .12) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ---------- sparkles ---------- */
.sparkles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 200, 230, .9);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(.5); }
  50%     { opacity: 1; transform: scale(1.2); }
}

/* ---------- falling Лерко ---------- */
.lerko-rain {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.lerko {
  position: absolute;
  top: -80px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: #ff5e9a;
  text-shadow:
    0 2px 14px rgba(255, 94, 154, .4),
    0 0 30px rgba(255, 158, 194, .25);
  animation: lerko-fall linear forwards;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
@keyframes lerko-fall {
  0%   { transform: translateY(0)     rotate(var(--rot, 0deg)); opacity: 0; }
  8%   { opacity: var(--op, .7); }
  92%  { opacity: var(--op, .7); }
  100% { transform: translateY(115vh) rotate(var(--rot-end, 0deg)); opacity: 0; }
}

/* ---------- falling petals ---------- */
.petals { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -40px;
  font-size: 22px; opacity: .85;
  animation: fall linear forwards;
  user-select: none;
}
@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: .2; }
}

/* ---------- layout ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 80px;
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  position: relative;
  padding: 32px 12px 24px;
}

.floaters {
  position: absolute; inset: 0;
  pointer-events: none; overflow: visible;
}
.float {
  position: absolute;
  font-size: 28px;
  animation: floaty 6s ease-in-out infinite;
  opacity: .85;
  filter: drop-shadow(0 4px 8px rgba(255, 77, 139, .25));
}
.float:nth-child(1) { top: 6%;  left: 8%;   animation-delay: 0s;   }
.float:nth-child(2) { top: 12%; right: 10%; animation-delay: -1s; font-size: 32px; }
.float:nth-child(3) { top: 60%; left: 4%;   animation-delay: -2s; }
.float:nth-child(4) { top: 70%; right: 6%;  animation-delay: -3s; font-size: 24px; }
.float:nth-child(5) { top: 30%; right: 22%; animation-delay: -4s; font-size: 20px; }
.float:nth-child(6) { top: 45%; left: 18%;  animation-delay: -5s; }

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

.kicker {
  text-transform: lowercase;
  letter-spacing: .25em;
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 8px;
}

h1 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1.05;
  margin: 0 0 14px;
  text-shadow: 0 4px 30px rgba(255, 158, 194, .35);
}

.gradient {
  background: linear-gradient(90deg, var(--pink-500), var(--pink-400) 50%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.paw { display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(12deg); } }

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 26px;
}

.cta {
  display: flex; gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  user-select: none;
}
.btn:active { transform: scale(.96); }

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-400));
  box-shadow:
    0 10px 24px -8px rgba(255, 77, 139, .55),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.primary:hover { box-shadow: 0 16px 36px -8px rgba(255, 77, 139, .75); transform: translateY(-2px); }

.btn.ghost {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pink-600);
  border: 1.5px solid rgba(255, 158, 194, .5);
}
.btn.ghost:hover {
  background: white;
  border-color: var(--pink-300);
  transform: translateY(-2px);
}

.btn.big { padding: 16px 30px; font-size: 17px; }

.compliment {
  min-height: 28px;
  margin: 14px auto 0;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--pink-600);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  max-width: 520px;
}
.compliment.show { opacity: 1; transform: translateY(0); }

/* ---------- cards ---------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  padding: 30px 28px;
  margin: 26px 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 24px 50px -22px rgba(91, 45, 73, .28);
  position: relative;
  overflow: hidden;
  animation: rise .7s ease both;
}
.card:nth-of-type(2) { animation-delay: .05s; }
.card:nth-of-type(3) { animation-delay: .1s;  }
.card:nth-of-type(4) { animation-delay: .15s; }
.card:nth-of-type(5) { animation-delay: .2s;  }

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

.card.pinky::before, .card.lilac::before,
.card.mint::before, .card.peach::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: .8;
}
.card.pinky::before  { background: linear-gradient(160deg, rgba(255,234,242,.85), rgba(255,246,250,.75)); }
.card.lilac::before  { background: linear-gradient(160deg, rgba(241,230,255,.85), rgba(251,246,255,.75)); }
.card.mint::before   { background: linear-gradient(160deg, rgba(227,247,238,.85), rgba(245,251,248,.75)); }
.card.peach::before  { background: linear-gradient(160deg, rgba(255,234,221,.85), rgba(255,247,241,.75)); }

.card.peach { text-align: center; }

.card-emoji {
  font-size: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(255, 77, 139, .25));
}

.card h2 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 14px;
  color: var(--ink);
}

.card p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
  color: var(--ink-2);
}

.quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  border-left: 3px solid var(--pink-300);
  padding-left: 16px;
  margin: 6px 0 16px !important;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.checklist li {
  background: white;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding-left: 32px;
  box-shadow: 0 6px 14px -8px rgba(91,45,73,.22);
  transition: transform .2s ease;
}
.checklist li:hover { transform: translateY(-2px); }
.checklist li::before {
  content: "🌸";
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* ---------- brawl ---------- */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: white;
  font-size: 14px;
}
.chip.colette { background: linear-gradient(135deg, #ff5e9a, #d63384); }
.chip.edgar   { background: linear-gradient(135deg, #6b3fa0, #3a1d6e); }

.brawlers {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 18px 0 12px;
  flex-wrap: wrap;
}
.brawler {
  background: white;
  border-radius: 22px;
  padding: 14px 18px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 10px 22px -14px rgba(91,45,73,.35);
  transition: transform .25s ease;
}
.brawler:hover { transform: translateY(-4px) rotate(-2deg); }
.brawler-ava {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 6px;
  box-shadow: 0 6px 16px -6px rgba(91,45,73,.3);
}
.colette-ava { background: linear-gradient(135deg, #ffd1e0, #ff8fb5); }
.edgar-ava   { background: linear-gradient(135deg, #d1c4e9, #7e57c2); }
.brawler-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.brawler-tag  { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.vs {
  font-family: 'Caveat', cursive;
  font-size: 40px;
  color: var(--pink-500);
  font-weight: 700;
}
.small { font-size: 14px !important; text-align: center; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 14px;
}
.footer p { margin: 4px 0; }
.sign {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--pink-600);
}
.heartbeat {
  display: inline-block;
  animation: beat 1.2s ease-in-out infinite;
}
@keyframes beat {
  0%,100% { transform: scale(1); }
  20%     { transform: scale(1.25); }
  40%     { transform: scale(.95); }
  60%     { transform: scale(1.15); }
}

/* ---------- hearts on click ---------- */
.heart-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 50;
  overflow: hidden;
}
.heart {
  position: absolute;
  font-size: 24px;
  user-select: none;
  animation: heart-rise 1.6s ease-out forwards;
  filter: drop-shadow(0 2px 6px rgba(255, 77, 139, .45));
}
@keyframes heart-rise {
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  20%  { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, -50%), -260%) scale(1.4) rotate(var(--rot, 0deg)); }
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .wrap { padding: 30px 16px 60px; }
  .card { padding: 22px 18px; border-radius: 24px; }
  .float { font-size: 22px !important; }
}

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