/* TournamentModal — the fullscreen "grand tournament" beat. Reuses the Duel's
   stepper (.duel-hire-stepper / .duel-hire-chevron from DuelModal.css) and the
   global .gift-count-badge; everything else (the 3-column Coffers→Prize row, the
   2-column Festival row, and the scrim/win outcome bar) lives here. See
   ui/modals/TournamentModal.js. */

.modal-fullscreen .tournament-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0 0;
  box-sizing: border-box;
}

/* Section prompt ("Commit Coffers to increase the prize."). Body copy → ≥1rem. */
.tournament-section-label {
  font-size: 1rem;
  text-align: center;
  color: var(--font-color-1);
  margin: 0.25rem 0 0;
  max-width: 90%;
}

/* A row of commit cells, centered with even spacing. */
.tournament-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}
.tournament-coffers-row { gap: 1.25rem; }

.tournament-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 5.5rem;
}

/* Uppercase chrome caption sitting directly above a big number / icon (YOU HAVE /
   COMMIT / PRIZE). Documented sub-1rem exception (anchored to the value below it,
   not read as body copy) — mirrors the play-tab meter captions + .duel-hire-cap. */
.tournament-cap {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--font-color-2);
}

.tournament-coffers-have,
.tournament-coffers-value {
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--font-color-1);
}

/* Row-align the three Coffers columns. The COMMIT column's stepper is tall (the
   chevron tap targets are 2.75rem), which pushes its value + "Coffers" label down
   relative to the plain-text YOU HAVE column. Give all three middle-row elements
   the same height and center their contents, so the values line up horizontally
   and the "Coffers" unit labels beneath them do too. */
.tournament-coffers-row .tournament-coffers-have,
.tournament-coffers-row .duel-hire-stepper,
.tournament-coffers-row .tournament-prize {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prize cell — the Jubilee icon with a ×N count badge pinned to the corner. */
.tournament-prize,
.tournament-festival-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tournament-prize-icon { width: 3rem; height: 3rem; }
.tournament-festival-icon img { width: 2.5rem; height: 2.5rem; }
.tournament-prize-badge,
.tournament-festival-have-badge,
.tournament-festival-value {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
}

/* Vertical breathing room between the two commit blocks. */
.tournament-spacer { flex: 0 0 0.5rem; }

/* ----- Outcome bar: scrim (fail) | win | scrim (fail), with the lone dagger. */
.tournament-outcome {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.tournament-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 86%;
  max-width: 32rem;
  height: 7rem;
}
/* The gold contest line runs across the full width, behind the scrims. */
.tournament-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--gold, #c8a24a);
  border-radius: 2px;
  z-index: 0;
}
/* Fail bands. Coral wash so they read as danger zones; widths animate as the
   win band grows/shrinks with committed Festivals. */
.tournament-scrim {
  position: relative;
  z-index: 1;
  height: 100%;
  background: rgba(196, 78, 66, 0.55);
  transition: width 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.tournament-scrim-left { border-radius: 0.5rem 0 0 0.5rem; }
.tournament-scrim-right { border-radius: 0 0.5rem 0.5rem 0; }
/* The open WIN band — no scrim. */
.tournament-win {
  position: relative;
  z-index: 1;
  height: 100%;
  background: transparent;
  transition: width 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* The single dagger marker — rides the full 0-100% of the bar, starts centered. */
.tournament-dagger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.tournament-dagger img {
  width: 1.5rem;
  height: auto;
  display: block;
}

.tournament-action-row {
  margin-top: auto;
  width: 100%;
}
