@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

@font-face {
  font-family: 'Gonstet';
  src: url('../gonstet.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body, .top-alive-status, .team-card, .team-info, .team-name, .team-finishes, .team-alive-section, .top-alive-label, .wwcd-percentage, .wwcd-label, .wwcd-value {
  font-family: 'Gonstet', 'Montserrat', Arial, sans-serif !important;
}

.top-alive-status {
  background: #F2F2F2;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.top-alive-status-cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  gap: 16px;
  margin: 0 auto;
}

.top-alive-status-cards-wrapper.slide-down {
  animation: slideDownIn 0.5s cubic-bezier(.77,0,.18,1);
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card {
  background: #120A05;
  border-radius: 12px;
  box-shadow: 0 4px 24px #120A05cc;
  border: 2px solid #F2A900;
  padding: 12px 10px 10px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 400px;
  height: 150px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s, opacity 0.4s;
  flex-shrink: 0;
}

.team-card.eliminating {
  opacity: 0;
  transform: translateY(-60px) scale(0.98);
  pointer-events: none;
  transition: transform 0.4s, opacity 0.4s;
}

.team-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #F2A900;
  color: #120A05;
  font-weight: 900;
  font-size: 1.6rem;
  border-radius: 8px;
  padding: 6px 18px;
  box-shadow: 0 2px 8px #F2A900;
  z-index: 2;
  letter-spacing: 1px;
}

.team-logo {
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 10px;
  margin-right: 18px;
  margin-left: 8px;
  box-shadow: 0 2px 8px #E69500;
  flex-shrink: 0;
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F2F2F2;
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.1;
  word-break: break-word;
}

.team-finishes {
  font-size: 1.4rem;
  font-weight: 800;
  color: #F2A900;
  margin-bottom: 10px;
  text-align: left;
}

.team-alive-section {
  margin-top: 2px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-alive-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2A900;
  margin-right: 4px;
}

.top-alive-rectangles {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: flex-start;
  height: 25px;
  position: relative;
}

.top-alive-rect-bar {
  width: 30px;
  height: 30px;
  background: url('../assets/helmet.png') no-repeat center center;
  background-size: contain;
  filter: brightness(1.5) saturate(3) hue-rotate(180deg) sepia(0.6) contrast(1.2);
  opacity: 1;
  transition: all 0.3s ease;
}

.top-alive-rect-bar.dead {
  filter: brightness(0.3) saturate(1.2) hue-rotate(0deg) sepia(1) contrast(0.8);
  opacity: 0.8;
}

/* WWCD Percentage Rectangle */
.wwcd-percentage {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #F2A900;
  border: 2px solid #E69500;
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(242, 169, 0, 0.3);
  min-width: 80px;
  justify-content: center;
}

.wwcd-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #120A05;
  letter-spacing: 0.5px;
}

.wwcd-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #120A05;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}