/**
 * Spokane Tribe Casino — venue screen, winners
 *
 * Read from across a loud room while the MC says the same thing over the
 * speakers. A podium: first place centre and tallest, second and third
 * flanking it, so the result is legible before anyone reads a word.
 *
 * Layered on contest-display.css, which owns the kiosk shell — the fixed
 * full-bleed root, hiding theme chrome, the background art and the colour
 * tokens. Nothing here repeats any of it.
 */

.stc-screen--winners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vh 3vw;
  box-sizing: border-box;
}

.stc-winners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  width: 100%;
}

.stc-winners[hidden] { display: none !important; }
.stc-screen--winners [hidden] { display: none !important; }

.stc-winners-title {
  margin: 0;
  /* Dwarfed by the podium at 7vh. This is the line the room looks at while
     the MC is talking, so it holds its own against a 52vh photo. */
  font-size: 10vh;
  line-height: 1;
  text-transform: uppercase;
  color: var(--stc-screen-accent);
  text-shadow: 3px 3px 0 #050405;
}

/*
 * align-items: flex-end puts the three on a shared floor, so first place is
 * taller rather than merely bigger — the shape reads as a podium at a glance.
 */
.stc-winners-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stc-winner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vh;
  /* Sized off the photo height below, so one number tunes the whole row. */
  width: calc(var(--stc-win-h) * 0.75);
}

.stc-winner-shot {
  position: relative;
  width: 100%;
  height: var(--stc-win-h);
  border-radius: 1.6vh;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.stc-winner-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stc-winner-num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.7em;
  height: 1.5em;
  padding: 0 0.25em;
  background: var(--stc-screen-accent);
  color: var(--stc-screen-on-accent);
  /* Sized off the card, so it stays proportional whether this is a 60vh
      solo card or a 40vh honorable mention. Deliberately restrained: the
      number has to be readable from the floor, but it is a label on the
      photo, not the subject of it. */
  font-size: calc(var(--stc-win-h) * 0.11);
  font-weight: 800;
  line-height: 1;
  border-radius: 1.6vh 0 1.6vh 0;
  font-variant-numeric: tabular-nums;
}

.stc-winner-label {
  margin: 0;
  font-size: calc(var(--stc-win-h) * 0.075);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: var(--stc-screen-text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* --- the podium itself ------------------------------------------------- */

.stc-winner--1 { --stc-win-h: 52vh; order: 2; }
.stc-winner--2 { --stc-win-h: 38vh; order: 1; }
.stc-winner--3 { --stc-win-h: 38vh; order: 3; }

/* Only the win gets the ring. Second and third are large; first is marked. */
.stc-winner--1 .stc-winner-shot {
  outline: 0.7vh solid var(--stc-screen-accent);
  outline-offset: -0.7vh;
}

.stc-winner--1 .stc-winner-label { color: var(--stc-screen-accent); }

/* Portrait panels: stack rather than squeeze three across. */
@media (orientation: portrait) {
  .stc-winners-podium { flex-direction: column; align-items: center; gap: 2vh; }
  .stc-winner--1, .stc-winner--2, .stc-winner--3 { order: 0; }
  .stc-winner--1 { --stc-win-h: 34vh; }
  .stc-winner--2, .stc-winner--3 { --stc-win-h: 22vh; }
}

/* ==========================================================================
   Theme: Spokane Dead 2026
   ========================================================================== */

.stc-screen--winners.stc-contest--halloween-2026 .stc-winners-title,
.stc-screen--winners.stc-contest--halloween-2026 .stc-winner-num {
  font-family: var(--stc-screen-display);
  font-weight: 400;
}

/* The place captions and the reveal's kicker were still falling back to
   system-ui while everything around them wore the event face, which is the
   one thing on the card a guest reads as a word rather than a number. Scoped
   to the theme, like the rules above, so a contest on another theme is not
   handed a Halloween font. */
.stc-screen--winners.stc-contest--halloween-2026 .stc-winner-label,
.stc-screen--winners.stc-contest--halloween-2026 .stc-reveal-kicker {
  font-family: var(--stc-screen-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.stc-screen--winners.stc-contest--halloween-2026 .stc-winner-num {
  font-size: calc(var(--stc-win-h) * 0.13);
  background: linear-gradient(180deg, #d8df25, #90c73e);
}

.stc-screen--winners.stc-contest--halloween-2026 .stc-winners-holding {
  font-family: var(--stc-screen-display);
  font-size: 6vh;
  text-transform: uppercase;
  color: var(--stc-screen-accent);
  text-shadow: 2px 2px 0 #050405;
}

/* ==========================================================================
   MC-driven reveal (mode="reveal")
   Layered on everything above: the cards are the same .stc-winner, so the
   finale is literally the podium from the other screen.
   ========================================================================== */

.stc-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  width: 100%;
}

.stc-reveal[hidden] { display: none !important; }

.stc-reveal-kicker {
  margin: 0;
  font-size: 7vh;
  line-height: 1;
  text-transform: uppercase;
  color: var(--stc-screen-accent);
  text-shadow: 3px 3px 0 #050405;
  text-align: center;
}

.stc-reveal-kicker[hidden] { display: none !important; }

.stc-reveal-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ranks 4 and 5 have no --stc-win-h of their own: the podium only ever needed
   1, 2 and 3. Without this the honorable-mention cards compute a width and
   height from an undefined custom property and collapse to nothing. */
.stc-reveal-stage .stc-winner--4,
.stc-reveal-stage .stc-winner--5 { --stc-win-h: 40vh; }

/* One place, alone, with the room looking at it. Bigger than anything on the
   podium, because nothing is competing with it. Specificity here deliberately
   beats the per-rank sizes above. */
.stc-reveal-stage--solo .stc-winner { --stc-win-h: 60vh; }

/* The finale sets no sizes at all, so .stc-winner--1/2/3 apply and the shape
   is the podium exactly as the other screen draws it: first tallest, centred
   by `order`. */

/* No buttons. What is left is a step counter, small and dim: legible to
   whoever is at the machine, invisible from the floor. pointer-events off so
   it can never swallow a click meant for the click-anywhere fallback. */
.stc-reveal-controls {
  position: fixed;
  right: 2vw;
  bottom: 2vh;
  display: flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.stc-reveal-controls[hidden] { display: none !important; }

/* Last step: the counter gets out of the way so the podium owns the screen
   while the photographs are taken. The keyboard always works, so stepping
   back is still possible. */
.stc-screen--reveal.is-final .stc-reveal-controls { opacity: 0.08; }

/* The screen takes keyboard focus so the arrows reach it. That must not draw
   a focus ring across the whole TV. */
.stc-screen--reveal:focus { outline: none; }

.stc-reveal-step {
  font-size: 1.8vh;
  color: #ffffff;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
