/* Tie-Breaker Hole Popup — FULL-SCREEN emerald takeover (matches the
   leaderboard intro / selfie / rating popups). Same class names so the
   controller logic (closeTiebreakerPopup, .active toggle) is untouched. */

.tiebreaker-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 18%, rgba(52,211,153,.22) 0%, transparent 60%),
    linear-gradient(160deg, #04130d 0%, #052e26 45%, #064e3b 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tiebreaker-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tiebreaker-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: #ecfdf5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
}

.tiebreaker-overlay.active .tiebreaker-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tiebreaker-icon {
  font-size: 88px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
  animation: tbBob 3s ease-in-out infinite;
}

/* Eyebrow above the title (added to the HTML). */
.tiebreaker-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 10px;
}

.tiebreaker-title {
  color: #ffffff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  text-shadow: none;
  max-width: 13ch;
}

.tiebreaker-message {
  color: #d1fae5;
  font-size: 19px;
  line-height: 1.55;
  margin: 0 auto 30px;
  max-width: 32ch;
}

.tiebreaker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 62px;
  padding: 0 40px;
  border: none;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 800;
  color: #04130d;
  background: linear-gradient(135deg, #6ee7b7, #34d399, #10b981);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
  box-shadow: 0 14px 34px -8px rgba(16,185,129,.55);
}

.tiebreaker-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px -8px rgba(16,185,129,.75);
}

.tiebreaker-button:active {
  transform: translateY(0);
}

@keyframes tbBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* Responsive */
@media (max-width: 480px) {
  .tiebreaker-title { font-size: 32px; }
  .tiebreaker-message { font-size: 16px; }
  .tiebreaker-icon { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .tiebreaker-icon { animation: none; }
}
