@font-face {
  font-family: 'MicrogrammaD';
  src: url('../font/Microgramma D Extended Bold.otf') format('opentype');
}
@font-face {
  font-family: 'AmericanCaptain';
  src: url('../font/American Captain Patrius 02 FRE.otf') format('opentype');
}

:root {
  --espresso-black: #120A05;
  --dark-brown: #1A1009;
  --shadow-brown: #2A160A;
  --gold-bright: #F2A900;
  --gold-warm: #E69500;
  --gold-burnt: #C87400;
  --text-light: #F2F2F2;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  font-family: 'MicrogrammaD', sans-serif;
}

#elim-card-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  perspective: 1000px;
}

.elim-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center top;
  background: linear-gradient(135deg, var(--espresso-black) 0%, var(--dark-brown) 100%);
  max-width: 520px;
  min-width: 520px;
  border-radius: 12px;
  border: 2px solid var(--gold-bright);
  z-index: 10;
}

/* Slide In Animation - Professional entrance from top */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-100px) scale(0.95);
    filter: blur(5px);
  }
  60% {
    transform: translateY(5px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Breathing animation during hold state */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

/* Border pulse animation */
@keyframes borderPulse {
  0%, 100% {
    border-color: var(--gold-bright);
  }
  50% {
    border-color: var(--gold-warm);
  }
}

/* Slide Out Animation - Clean upward exit */
@keyframes slideOutToTop {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.95);
    filter: blur(5px);
  }
}

.elim-card.slide-in {
  animation: slideInFromTop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.elim-card.breathing {
  animation: breathe 3s ease-in-out infinite;
}

.elim-card.slide-out {
  animation: slideOutToTop 0.7s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Gold accent bar at top */
.gold-accent-bar {
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-warm));
  opacity: 0;
}

@keyframes barSweep {
  0% {
    width: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

.gold-accent-bar.sweep {
  animation: barSweep 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Main content container */
.elim-content {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  gap: 20px;
}

/* Team logo styling */
.team-logo-container {
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.team-logo-container.reveal {
  animation: logoReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.team-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  border: 3px solid var(--gold-warm);
  background: var(--shadow-brown);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  padding: 8px;
}

/* Text content area */
.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Eliminated text styling */
.eliminated-text {
  font-family: 'AmericanCaptain', 'MicrogrammaD', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-bright);
  text-align: left;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
}

@keyframes letterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.eliminated-text.reveal {
  opacity: 1;
}

.eliminated-text span {
  display: inline-block;
  opacity: 0;
  animation: letterFadeIn 0.3s ease-out forwards;
}

/* Team name styling */
.team-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-light);
  text-align: left;
  line-height: 1.2;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
}

@keyframes teamNameSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-name.reveal {
  animation: teamNameSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Divider line under team name */
.divider-line {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-warm), transparent);
  margin-top: 4px;
  opacity: 0;
}

@keyframes dividerGrow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 80%;
    opacity: 1;
  }
}

.divider-line.grow {
  animation: dividerGrow 0.4s ease-out forwards;
}
