/* Reveal finale (views/reveal.js). Only the three type tokens; no radii. */

.reveal { background: var(--ink); }

.reveal .rv-body {
  padding-top: calc(var(--gap) + 8px);
  padding-bottom: calc(var(--gap) + 128px + var(--sab));
  min-height: 100%;
}

/* ---- footer ---- */
.rv-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 8px max(var(--gap), var(--sar)) calc(10px + var(--sab)) max(var(--gap), var(--sal));
}
.rv-footer-in {
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rv-counter {
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rv-buttons { display: flex; gap: 12px; }
.rv-back { flex: none; min-width: 96px; }
.rv-next { flex: 1 1 auto; min-height: 56px; }

/* ---- shared ---- */
.rv-heading { overflow-wrap: anywhere; }
.rv-mega { overflow-wrap: anywhere; hyphens: none; }
.rv-center {
  min-height: calc(100vh - 220px - var(--sab) - var(--sat));
  min-height: calc(100dvh - 220px - var(--sab) - var(--sat));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap);
}
.rv-close { align-self: flex-start; }

.rv-fade { animation: rv-fade 200ms ease-out both; }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

.rv-in { animation: rv-in 250ms ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rv-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---- team step ---- */
.rv-faces { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-player { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.rv-player-head { display: flex; align-items: center; gap: 12px; min-width: 0; }

.rv-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: var(--gap);
  background: var(--ink-2);
  border-left: 4px solid var(--line);
}
.rv-card.done { border-left-color: var(--mint); }
.rv-card.void, .rv-card.rejected { border-left-color: var(--pink); }
.rv-card.open { border-left-color: var(--butter-dim); }

.rv-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.rv-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--butter);
  color: var(--ink);
}
.rv-card-title { min-width: 0; overflow-wrap: anywhere; align-self: center; }
.rv-text { overflow-wrap: anywhere; }
.rv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rv-target { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rv-open { background: transparent; }
.rv-seen { overflow-wrap: anywhere; }

/* ---- accusations ---- */
.rv-accuse { gap: 8px; }
.rv-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rv-acc-names { min-width: 0; overflow-wrap: anywhere; }
.rv-accuse p { overflow-wrap: anywhere; }
.rv-accuse .chip { white-space: normal; max-width: 100%; }
.rv-accuse .chip.muted { color: var(--butter-dim); }

/* ---- points ---- */
.rv-deltas { gap: 8px; }
.rv-deltas:empty { display: none; }
.rv-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap);
  padding: 6px 12px;
  background: var(--ink-2);
}
.rv-delta-names { min-width: 0; overflow-wrap: anywhere; }

/* ---- winners ---- */
.rv-winners { gap: 20px; }
.rv-winner { gap: 16px; }
.rv-winner + .rv-winner { padding-top: 24px; border-top: 1px solid var(--line); }
.rv-photos { display: flex; gap: 8px; }
.rv-photo { flex: 1 1 0; min-width: 0; max-width: 220px; aspect-ratio: 1; }
.rv-photo .avatar { width: 100% !important; height: 100% !important; }
.rv-final { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .rv-in, .rv-fade { animation: none; }
}
