/* ============================================================
   Duelo — reveal dramático de resultados
   ============================================================ */

.du-stage {
  position: fixed;
  inset: 0;
  z-index: 301;
  background: #040404;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

/* Header */
.du-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.du-header-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* Arena: the two bar columns */
.du-arena {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 72px;
  margin-top: 20px;
}

.du-contestant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Score number — hidden until revealed */
.du-score-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: transparent;
  letter-spacing: 0.02em;
  min-height: 38px;
  line-height: 1;
  transition: color 0.45s ease;
}

.du-score-num.revealed {
  color: var(--ink);
}

.du-score-julian {
  /* Julian's number defaults to accent on reveal — override in .revealed */
}

.du-score-num.winner {
  color: var(--acento, var(--red));
  animation: du-num-pulse 2s ease-in-out infinite;
}

@keyframes du-num-pulse {
  0%, 100% { text-shadow: 0 0 10px var(--acento-glow, var(--red-glow)); }
  50%       { text-shadow: 0 0 24px var(--acento-glow, var(--red-glow)), 0 0 6px var(--acento-glow, var(--red-glow)); }
}

/* Bar track */
.du-bar-track {
  width: 52px;
  height: 240px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Bar fill — height animated via JS */
.du-bar-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0%;
  background: var(--ink-2);
  transition: box-shadow 0.3s;
}

.du-bar-fill.loading {
  animation: du-bar-pulse 1.4s ease-in-out infinite;
}

@keyframes du-bar-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.du-bar-julian {
  background: var(--acento, var(--red));
}

.du-bar-fill.winner {
  animation: du-bar-glow 2s ease-in-out infinite;
}

@keyframes du-bar-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(237,232,224,0.2) inset; }
  50%       { box-shadow: 0 0 28px rgba(237,232,224,0.45) inset; }
}

.du-bar-julian.winner {
  animation: du-bar-glow-acento 2s ease-in-out infinite;
}

@keyframes du-bar-glow-acento {
  0%, 100% { box-shadow: 0 0 14px var(--acento-glow, var(--red-glow)) inset; }
  50%       { box-shadow: 0 0 28px var(--acento-glow, var(--red-glow)) inset; }
}

/* Name labels */
.du-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.du-name-julian {
  color: var(--acento, var(--red));
}

/* VS separator */
.du-vs-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
  align-self: center;
  margin-bottom: 24px;
}

/* Julian reaction */
.du-reaction {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 400px;
  line-height: 1.7;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.6s ease;
  min-height: 44px;
  padding: 0 24px;
}

.du-reaction.visible { opacity: 1; }

/* CTA button */
.du-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 34px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, opacity 0.5s ease;
}

.du-cta:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Mobile */
@media (max-width: 600px) {
  .du-arena { gap: 36px; }
  .du-bar-track { width: 44px; height: 180px; }
  .du-score-num { font-size: 26px; }
  .du-stage { gap: 32px; }
}
