/* ISR Dashboard · Colloquium winner page — builds on isr-public.css tokens */

#fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.winner-stage,
.winner-chart,
.winner-back {
  position: relative;
  z-index: 1;
  width: min(940px, 100% - 2 * var(--pad-x));
  margin-inline: auto;
}

/* ─── The winner ─── */
.winner-stage {
  text-align: center;
  padding: 56px 0 40px;
}

.winner-trophy {
  font-size: 60px;
  line-height: 1;
  animation: trophy-in 900ms cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.winner-stage .kicker { margin-top: 18px; }

.winner-eyebrow {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.winner-name {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise-in 700ms ease-out 160ms both;
}

.winner-title {
  margin: 14px auto 0;
  max-width: 640px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  animation: rise-in 700ms ease-out 300ms both;
}

.winner-meta {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  animation: rise-in 700ms ease-out 420ms both;
}

.winner-score {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

/* ─── Score chart ─── */
.winner-chart {
  padding: 28px 0 8px;
  border-top: 1px solid var(--rule);
}

.winner-chart h2 {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.chart-note,
.chart-basis {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.chart-basis {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-row);
  font-size: 12.5px;
  color: var(--muted-2);
}

.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(10px, 3vw, 34px);
  align-items: end;
  margin-top: 30px;
  padding: 0 2px;
}

.bar-col { text-align: center; }

.bar-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.bar-track {
  height: 240px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(var(--rule-row), var(--rule-row)) bottom / 100% 1px no-repeat;
}

.bar-fill {
  width: 100%;
  height: var(--h);
  background: var(--alt);
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: bar-grow 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d);
}

.bar-label {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted-2);
}

.bar-label .anon { color: var(--muted-3); font-style: italic; }

.bar-col.is-winner .bar-value {
  color: var(--accent);
  font-weight: 500;
}

.bar-col.is-winner .bar-fill {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.bar-col.is-winner .bar-label {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Back link ─── */
.winner-back {
  padding: 26px 0 10px;
  font-family: var(--sans);
  font-size: 13.5px;
}

.winner-back a { color: var(--text-3); text-decoration: none; }
.winner-back a:hover { color: var(--accent); }

@keyframes trophy-in {
  from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes bar-grow {
  from { transform: scaleY(0); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 620px) {
  .bar-track { height: 170px; }
  .bar-value { font-size: 12px; }
  .bar-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .winner-trophy,
  .winner-name,
  .winner-title,
  .winner-meta,
  .bar-fill { animation: none; }
}
