/* ─────────────────────────────────────────────────────────────────────────
   home-celebration  –  full-screen confetti + two-line announcement banner
   ───────────────────────────────────────────────────────────────────────── */

.home-celebration {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
  overflow: hidden;
}


/* ── message wrapper (no card — text floats freely) ─────────────────────── */
.home-celebration__message {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px);
}

/* ── line 1 — "LEAGUE MATCHES ARE OVER" ────────────────────────────────── */
.home-celebration__line1 {
  position: relative;
  z-index: 2;
  font-family: "Rubik Mono One", "Archivo Black Local", "Archivo Black", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.9rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.25),
    0 3px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: hcLine1In 680ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}

/* ── glowing divider ────────────────────────────────────────────────────── */
.home-celebration__divider {
  position: relative;
  z-index: 2;
  height: 2px;
  width: 0;
  margin: clamp(14px, 2.2vw, 26px) 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 204, 21, 0.75) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(168, 85, 247, 0.75) 75%,
    transparent
  );
  box-shadow:
    0 0 8px rgba(250, 204, 21, 0.5),
    0 0 20px rgba(168, 85, 247, 0.35);
  animation: hcDividerExpand 600ms cubic-bezier(0.16, 1, 0.3, 1) 230ms forwards;
}

/* ── line 2 — "VOTE FOR THE BALLON D'OR" ───────────────────────────────── */
.home-celebration__line2 {
  position: relative;
  z-index: 2;
  font-family: "Rubik Mono One", "Archivo Black Local", "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 5.8vw, 5.4rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.18),
    0 4px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  animation: hcLine2In 780ms cubic-bezier(0.16, 1, 0.3, 1) 370ms forwards;
}

/* ── golden accent ("BALLON D'OR") ─────────────────────────────────────── */
.home-celebration__accent {
  color: #facc15;
  text-shadow:
    0 0  18px rgba(250, 204, 21, 0.9),
    0 0  55px rgba(250, 204, 21, 0.5),
    0 0 100px rgba(250, 204, 21, 0.22),
    0 4px 28px rgba(0, 0, 0, 0.65);
  animation: hcAccentPulse 2.6s ease-in-out 1.4s infinite;
}

/* ── is-leaving ─────────────────────────────────────────────────────────── */
.home-celebration.is-leaving .home-celebration__message {
  animation: hcExit 650ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.home-celebration.is-leaving .home-celebration__line1,
.home-celebration.is-leaving .home-celebration__line2,
.home-celebration.is-leaving .home-celebration__divider,
.home-celebration.is-leaving .home-celebration__accent {
  animation: none;
}

/* ── keyframes ──────────────────────────────────────────────────────────── */

@keyframes hcLine1In {
  0%   { opacity: 0; transform: translateX(-36px); filter: blur(8px);  }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0);      filter: blur(0);  }
}

@keyframes hcLine2In {
  0%   { opacity: 0; transform: translateY(28px) scale(0.86); filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0)     scale(1);   filter: blur(0);  }
}

@keyframes hcDividerExpand {
  from { width: 0;                   opacity: 0; }
  to   { width: min(380px, 88%);     opacity: 1; }
}


@keyframes hcAccentPulse {
  0%, 100% {
    text-shadow:
      0 0  18px rgba(250, 204, 21, 0.9),
      0 0  55px rgba(250, 204, 21, 0.5),
      0 0 100px rgba(250, 204, 21, 0.22),
      0 4px 28px rgba(0, 0, 0, 0.65);
  }
  50% {
    text-shadow:
      0 0  26px rgba(250, 204, 21, 1.0),
      0 0  80px rgba(250, 204, 21, 0.7),
      0 0 140px rgba(250, 204, 21, 0.35),
      0 4px 28px rgba(0, 0, 0, 0.65);
  }
}

@keyframes hcExit {
  from { opacity: 1; transform: scale(1);    filter: blur(0); }
  to   { opacity: 0; transform: scale(0.94); filter: blur(5px); }
}

/* ── reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .home-celebration__line1,
  .home-celebration__line2 {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .home-celebration__divider {
    width: min(380px, 88%);
    opacity: 1;
    animation: none;
  }

  .home-celebration__accent {
    animation: none;
  }

}
