:root {
  --bg: #09111f;
  --bg-soft: #111c2f;
  --card: rgba(10, 18, 33, 0.82);
  --card-strong: #0f1c33;
  --line: rgba(167, 193, 255, 0.14);
  --text: #f5f7ff;
  --muted: #99abc9;
  --accent: #35d0ff;
  --accent-warm: #ffd166;
  --success: #5df2a0;
  --danger: #ff6b8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 208, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.14), transparent 22%),
    linear-gradient(180deg, #0a1324 0%, #08101c 100%);
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}

.page-shell::before {
  top: 6rem;
  left: -6rem;
  background: rgba(0, 183, 255, 0.14);
}

.page-shell::after {
  right: -6rem;
  bottom: 8rem;
  background: rgba(255, 209, 102, 0.12);
}

.hero-section {
  padding-bottom: 1.5rem;
}

.hero-card,
.toolbar-card,
.summary-card,
.match-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  border-radius: 2rem;
  padding: 2rem;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.hero-title,
.section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.hero-aside {
  display: flex;
}

.next-match-panel {
  width: 100%;
  border-radius: 1.6rem;
  padding: 1.5rem;
  background:
    linear-gradient(160deg, rgba(53, 208, 255, 0.18), rgba(53, 208, 255, 0.04)),
    rgba(9, 20, 39, 0.9);
  border: 1px solid rgba(53, 208, 255, 0.18);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.countdown-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
}

.countdown-text,
.updated-at {
  color: var(--muted);
}

.updated-at {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.summary-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
  border-radius: 1.35rem;
  padding: 1.2rem 1.25rem;
}

.summary-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin-bottom: 0.55rem;
}

.summary-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.summary-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar-card {
  border-radius: 1.6rem;
  padding: 1.35rem;
}

.toolbar-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-control,
.form-select {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(53, 208, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(53, 208, 255, 0.15);
  color: var(--text);
}

.form-control::placeholder {
  color: rgba(201, 212, 235, 0.5);
}

.form-select option {
  color: #08101c;
}

.btn-refresh {
  border: 0;
  border-radius: 1rem;
  color: #07111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #7de3ff);
}

.btn-refresh:hover,
.btn-refresh:focus {
  color: #07111f;
  background: linear-gradient(135deg, #5edbff, #a1ecff);
}

.custom-alert {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 209, 102, 0.18);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe8ad;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.results-counter {
  color: var(--muted);
  font-weight: 700;
}

.match-card {
  border-radius: 1.6rem;
  padding: 1.15rem;
  height: 100%;
  position: relative;
}

.match-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.match-phase {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-live {
  background: rgba(255, 107, 138, 0.14);
  color: #ff9fb4;
}

.status-completed {
  background: rgba(93, 242, 160, 0.14);
  color: #9ef7c7;
}

.status-scheduled {
  background: rgba(53, 208, 255, 0.14);
  color: #96ebff;
}

.match-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.teams-board {
  display: grid;
  gap: 0.85rem;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.team-logo {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem;
  flex: 0 0 auto;
}

.team-logo.is-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.team-text {
  min-width: 0;
}

.team-name {
  font-weight: 800;
  line-height: 1.15;
}

.team-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.team-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.team-row.is-winner {
  border-color: rgba(93, 242, 160, 0.35);
  background: rgba(93, 242, 160, 0.08);
}

.match-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  border-radius: 1.8rem;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.empty-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.empty-copy {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .hero-card,
  .toolbar-card,
  .summary-card,
  .match-card {
    border-radius: 1.3rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr auto;
  }
}

.featured-match-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.2fr) auto;
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  border-radius: 1.7rem;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 209, 102, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(53, 208, 255, 0.14), rgba(93, 242, 160, 0.06)),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.featured-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: featuredShine 5s ease-in-out infinite;
  pointer-events: none;
}

.featured-match-helper {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.featured-match-content {
  position: relative;
  z-index: 1;
  border-radius: 1.35rem;
  padding: 1rem;
  background: rgba(4, 11, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-status-row,
.featured-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.featured-reason {
  color: var(--accent-warm);
  font-weight: 800;
  font-size: 0.86rem;
}

.featured-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.featured-team {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.featured-team.is-away {
  justify-content: flex-end;
  text-align: right;
}

.featured-team-name {
  font-weight: 900;
  line-height: 1.1;
}

.featured-team-abbr {
  color: var(--muted);
  font-size: 0.82rem;
}

.featured-vs {
  display: grid;
  place-items: center;
  min-width: 5.6rem;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.08em;
}

.featured-date,
.featured-venue {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-goal-test {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
  color: #07101e;
  background: linear-gradient(135deg, var(--accent-warm), #fff2b0);
  box-shadow: 0 14px 32px rgba(255, 209, 102, 0.22);
}

.btn-goal-test:hover,
.btn-goal-test:focus {
  color: #07101e;
  transform: translateY(-1px);
}

.goal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at center, rgba(53, 208, 255, 0.28), transparent 34%),
    radial-gradient(circle at 30% 25%, rgba(255, 209, 102, 0.22), transparent 24%),
    rgba(4, 10, 19, 0.88);
}

.goal-overlay.is-active {
  visibility: visible;
  animation: goalOverlayIn 2.55s ease-in-out forwards;
}

.goal-content {
  position: relative;
  z-index: 3;
  text-align: center;
  transform: scale(0.7);
}

.goal-overlay.is-active .goal-content {
  animation: goalContentPop 2.35s cubic-bezier(0.18, 0.89, 0.3, 1.18) forwards;
}

.goal-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 20vw, 16rem);
  line-height: 0.82;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow:
    0 0 24px rgba(53, 208, 255, 0.9),
    0 0 60px rgba(255, 209, 102, 0.55),
    0 16px 0 rgba(0, 0, 0, 0.18);
}

.goal-teams-text {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  color: #07101e;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.goal-wave {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  opacity: 0;
}

.goal-overlay.is-active .goal-wave-one {
  animation: goalWave 1.7s ease-out 0.08s forwards;
}

.goal-overlay.is-active .goal-wave-two {
  animation: goalWave 1.7s ease-out 0.34s forwards;
}

.goal-burst {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    -46vw -21vh 0 5px #35d0ff,
    -34vw 28vh 0 4px #ffd166,
    -20vw -33vh 0 5px #5df2a0,
    -8vw 35vh 0 4px #fff,
    12vw -29vh 0 5px #ffd166,
    24vw 30vh 0 4px #35d0ff,
    39vw -14vh 0 5px #5df2a0,
    47vw 22vh 0 4px #fff;
}

.goal-overlay.is-active .goal-burst {
  animation: goalConfetti 2.4s ease-out forwards;
}

.goal-stadium-lights {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 0deg, transparent, rgba(53, 208, 255, 0.18), transparent, rgba(255, 209, 102, 0.18), transparent);
  opacity: 0;
}

.goal-overlay.is-active .goal-stadium-lights {
  animation: goalLights 2.4s linear forwards;
}

@keyframes featuredShine {
  0%, 45% { transform: translateX(-110%); }
  70%, 100% { transform: translateX(110%); }
}

@keyframes goalOverlayIn {
  0% { opacity: 0; }
  10%, 82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes goalContentPop {
  0% { transform: scale(0.45) rotate(-4deg); opacity: 0; }
  16% { transform: scale(1.08) rotate(1deg); opacity: 1; }
  36% { transform: scale(0.98) rotate(0deg); }
  78% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes goalWave {
  0% { transform: scale(0.2); opacity: 0.85; }
  100% { transform: scale(4.8); opacity: 0; }
}

@keyframes goalConfetti {
  0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: scale(1.25) rotate(180deg); opacity: 0; }
}

@keyframes goalLights {
  0% { transform: rotate(0deg) scale(0.85); opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { transform: rotate(165deg) scale(1.2); opacity: 0; }
}

@media (max-width: 991.98px) {
  .featured-match-card {
    grid-template-columns: 1fr;
  }

  .featured-match-actions {
    width: 100%;
  }

  .btn-goal-test {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .featured-match-card {
    border-radius: 1.3rem;
    padding: 1rem;
  }

  .featured-scoreboard {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .featured-team.is-away {
    justify-content: flex-start;
    text-align: left;
  }

  .featured-vs {
    justify-self: start;
  }
}

/* Hero-integrated featured match + flip countdown */
.hero-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: stretch;
}

.hero-aside {
  min-width: 0;
}

.hero-aside .featured-match-section {
  width: 100%;
}

.hero-aside .featured-match-card {
  height: 100%;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 209, 102, 0.28), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(53, 208, 255, 0.24), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 15, 31, 0.82);
}

.hero-aside .featured-match-copy .section-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.hero-aside .featured-match-helper {
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-aside .featured-match-content {
  background: rgba(2, 9, 19, 0.62);
}

.hero-aside .next-match-panel {
  padding: 1rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(4, 12, 25, 0.74);
}

.countdown-flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.35rem 0 0.85rem;
}

.countdown-flip-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 5.9rem;
  padding: 0.65rem 0.35rem;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.045) 48%, rgba(0, 0, 0, 0.25) 49%, rgba(255, 255, 255, 0.06) 100%),
    #12233e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 14px 30px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
}

.countdown-flip-card::before,
.countdown-flip-card::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.countdown-flip-card::after {
  left: 50%;
  right: auto;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: -2.15rem 0 0 rgba(255, 255, 255, 0.22), 2.15rem 0 0 rgba(255, 255, 255, 0.22);
}

.flip-number {
  position: relative;
  z-index: 1;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.86;
  letter-spacing: 0.045em;
  color: #fff;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 22px rgba(53, 208, 255, 0.35);
}

.flip-label {
  position: relative;
  z-index: 3;
  margin-top: 0.35rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 900;
}

.countdown-flip-card.is-flipping .flip-number {
  animation: flipNumberChange 0.58s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.countdown-flip-card.is-flipping {
  animation: flipCardPulse 0.58s ease;
}

@keyframes flipNumberChange {
  0% { transform: rotateX(0deg) translateY(0); opacity: 1; filter: brightness(1); }
  46% { transform: rotateX(-88deg) translateY(-0.12rem); opacity: 0.38; filter: brightness(1.8); }
  54% { transform: rotateX(88deg) translateY(0.12rem); opacity: 0.38; filter: brightness(1.8); }
  100% { transform: rotateX(0deg) translateY(0); opacity: 1; filter: brightness(1); }
}

@keyframes flipCardPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 14px 30px rgba(0, 0, 0, 0.22); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 34px rgba(53, 208, 255, 0.28); }
}

/* Fullscreen Google-like goal celebration */
.goal-overlay {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.25), transparent 16%),
    radial-gradient(circle at 50% 58%, rgba(53, 208, 255, 0.35), transparent 34%),
    linear-gradient(180deg, rgba(13, 43, 82, 0.98), rgba(5, 13, 25, 0.96));
}

.goal-overlay.is-active {
  animation: goalOverlayIn 3.8s ease-in-out forwards;
}

.goal-net {
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.65) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(64deg) translateY(22%);
  transform-origin: bottom;
}

.goal-ball {
  position: absolute;
  z-index: 4;
  width: clamp(4.6rem, 10vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  bottom: -12vh;
  opacity: 0;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 17%, transparent 18%),
    radial-gradient(circle at 64% 65%, #111 0 12%, transparent 13%),
    conic-gradient(from 12deg, #111 0 12%, #fff 12% 25%, #111 25% 38%, #fff 38% 55%, #111 55% 68%, #fff 68% 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42), 0 0 44px rgba(255, 255, 255, 0.28);
}

.goal-overlay.is-active .goal-ball {
  animation: goalBallKick 3.2s cubic-bezier(0.18, 0.9, 0.25, 1) forwards;
}

.goal-content {
  transform: scale(0.3) translateY(5vh);
}

.goal-overlay.is-active .goal-content {
  animation: goalContentGooglePop 3.55s cubic-bezier(0.16, 0.95, 0.18, 1) forwards;
}

.goal-label {
  font-size: clamp(5rem, 19vw, 17rem);
  letter-spacing: 0.04em;
  color: #fff;
  -webkit-text-stroke: clamp(2px, 0.5vw, 7px) rgba(53, 208, 255, 0.9);
  text-shadow:
    0 0 0 #35d0ff,
    0 8px 0 #154b8a,
    0 18px 0 rgba(0, 0, 0, 0.2),
    0 0 60px rgba(255, 209, 102, 0.9),
    0 0 120px rgba(53, 208, 255, 0.72);
}

.goal-teams-text {
  background: linear-gradient(135deg, #fff, #dff7ff);
  transform: translateY(-0.3rem);
}

.goal-overlay.is-active .goal-burst {
  animation: goalConfetti 3.45s ease-out forwards;
}

.goal-burst {
  box-shadow:
    -47vw -27vh 0 6px #35d0ff, -39vw 20vh 0 5px #ffd166, -31vw -8vh 0 8px #fff,
    -20vw -34vh 0 5px #5df2a0, -10vw 30vh 0 7px #35d0ff, 0 -37vh 0 6px #ffd166,
    11vw 33vh 0 5px #fff, 19vw -29vh 0 8px #5df2a0, 31vw 22vh 0 6px #35d0ff,
    40vw -13vh 0 8px #ffd166, 48vw 28vh 0 6px #fff;
}

.goal-overlay.is-active .goal-wave-one {
  animation: goalWave 2.65s ease-out 0.08s forwards;
}

.goal-overlay.is-active .goal-wave-two {
  animation: goalWave 2.65s ease-out 0.42s forwards;
}

@keyframes goalContentGooglePop {
  0% { transform: scale(0.12) translateY(10vh) rotate(-7deg); opacity: 0; filter: blur(5px); }
  18% { transform: scale(1.18) translateY(-1vh) rotate(2deg); opacity: 1; filter: blur(0); }
  31% { transform: scale(0.92) translateY(0) rotate(-1deg); }
  43% { transform: scale(1.03) rotate(0deg); }
  76% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.45) translateY(-3vh); opacity: 0; }
}

@keyframes goalBallKick {
  0% { transform: translate(-50%, 0) scale(0.55) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  36% { transform: translate(-50%, -48vh) scale(1) rotate(420deg); opacity: 1; }
  58% { transform: translate(-50%, -37vh) scale(0.72) rotate(720deg); opacity: 0.55; }
  100% { transform: translate(-50%, -110vh) scale(0.28) rotate(1080deg); opacity: 0; }
}

@media (max-width: 1199.98px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .countdown-flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-flip-card {
    min-height: 5.25rem;
  }
}
