/* ===============================
   GLOBAL
================================ */
body {
  margin: 0;
  background: radial-gradient(circle at top, #250000, #000 75%);
  font-family: "Courier New", monospace;
  color: white;
  overflow: hidden;
}

/* ===============================
   SCREEN NOISE
================================ */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 999;
}

/* ===============================
   HEADER
================================ */
.header {
  text-align: center;
  padding-top: 20px;
}

.glitch {
  margin: 12px auto 0 auto;
  color: #ff3b3b;
  letter-spacing: 4px;
  font-size: 100px;
  font-weight: bolder;
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

#roundText{
  font-size: 14px;
  margin: 0px;
  letter-spacing: 2px;
}
/* ===============================
   SCALE
================================ */
.scale-area {
  position: relative;
  width: 80%;
  height: 50px;
  margin: 20px auto 0 auto;
}

.scale-line {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, #fff, transparent);
}

.needle {
  position: absolute;
  left: 50%;
  width: 4px;
  height: 50px;
  background: red;
  transform: translateX(-50%);
  box-shadow: 0 0 20px red;
  transition: transform 1.5s ease;
}

.xvalue {
  position: absolute;
  font-size: 24px;
  font-weight: bolder;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b6b;
}

/* ===============================
   RESULT TEXT
================================ */
.result-text {
  margin: 3vh auto 30vh auto;
  text-align: center;
  font-size: 40px;
  letter-spacing: 2px;
  opacity: 0.85;
}

/* ===============================
   TEAM BAR
================================ */
.team-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 18px;
  border-top: 1px solid #3a0000;
}

/* ===============================
   TEAM CARDS
================================ */
.team-card-info {
  width: 175px;
  aspect-ratio: 2.5 / 3.7;
  background-image: url("Assets/All-in-One.webp");
  background-size: cover;
  background-position: center;
  border: 1px solid #4a0000;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.85);
  position: relative;
  animation: breathe 4s infinite;
}

@keyframes breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.team-card-info::before {
  content: "";
  position: absolute;
  inset: 0;
}

.team-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-id {
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  color: #ff0000;
  font-weight: bold;
}

.team-score {
  color: black;
  font-size: 50px;
  font-weight: bolder;
}

/* ===============================
   STATES
================================ */
.team-out {
  opacity: 0.3;
  filter: grayscale(100%);
}

.team-highlight {
  border: 2px solid red;
  box-shadow: 0 0 30px red;
}

/* ===============================
   PICK DISPLAY
================================ */
.team-pick {
  margin-top: 6px;
  font-size: 18px;
  color: red;
  font-weight: bolder;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.team-pick.show {
  opacity: 1;
}

/* ===============================
   CENTER CALCULATION
================================ */
.calc-box {
  text-align: center;
  margin-top: 20px;
  font-size: 22px;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 1s ease;
}

.calc-box.show {
  opacity: 1;
}

.calc-label {
  color: #ff6b6b;
  font-size: 14px;
}

.calc-value {
  font-size: 32px;
  margin-top: 6px;
}

/* ===============================
   FADE LOSERS
================================ */
.team-fade {
  opacity: 0.4;
}
