.reveal {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}

.reveal-song {
  display: grid;
  gap: 28px;
  margin: 0;
}

.reveal-song img {
  width: min(100%, 56vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  animation: reveal-cover 900ms var(--ease-out) both;
}

.reveal-title {
  font-size: clamp(40px, 4.6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: rise 600ms 200ms var(--ease-out) both;
}

.reveal-artist {
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  animation: rise 600ms 280ms var(--ease-out) both;
}

.reveal-hits {
  margin-top: 16px;
  font-size: 20px;
  animation: rise 600ms 360ms var(--ease-out) both;
}

.reveal-board {
  display: grid;
  gap: 24px;
  align-content: center;
}

.reveal-board h2 {
  font-size: clamp(32px, 3vw, 56px);
}

.ranking {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.4ch minmax(0, 1fr) auto 6ch;
  gap: 16px;
  align-items: baseline;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--ground-2);
  font-size: clamp(20px, 1.6vw, 28px);
  font-variant-numeric: tabular-nums;
  animation: rise 500ms var(--ease-out) both;
}

.rank-row:nth-child(1) {
  background: var(--ink);
  color: var(--ground);
}

.rank-row:nth-child(2) {
  animation-delay: 60ms;
}

.rank-row:nth-child(3) {
  animation-delay: 120ms;
}

.rank-row:nth-child(n + 4) {
  animation-delay: 180ms;
}

.rank-pos {
  font-weight: 800;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.rank-gain {
  color: var(--ok);
  font-weight: 800;
}

.rank-row:nth-child(1) .rank-gain {
  color: #3d5a00;
}

.rank-score {
  text-align: right;
  font-weight: 800;
}

.reveal-board .btn-big {
  justify-self: start;
}

.final {
  grid-template-rows: auto auto auto auto;
  gap: clamp(24px, 3vh, 40px);
  align-content: start;
}

.final-title {
  font-size: clamp(44px, 5vw, 96px);
  max-width: 20ch;
  animation: rise 700ms var(--ease-out) both;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podium-step {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 24px 28px;
  border-radius: 28px 28px 8px 8px;
  background: var(--ground-3);
  animation: podium-up 900ms var(--ease-out) both;
  transform-origin: bottom;
}

.podium-1 {
  min-height: 46vh;
  background: var(--accent);
  color: var(--accent-ink);
  animation-delay: 900ms;
}

.podium-2 {
  min-height: 34vh;
  background: var(--ink);
  color: var(--ground);
  animation-delay: 450ms;
}

.podium-3 {
  min-height: 26vh;
}

.podium-name {
  font-size: clamp(28px, 3vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.podium-score {
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
}

.podium-rank {
  margin-top: 8px;
  font-size: clamp(64px, 8vw, 160px);
  font-weight: 800;
  line-height: 0.8;
}

.ranking-rest {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
  }
}

@keyframes bop {
  50% {
    transform: translateY(-6px) rotate(-2deg) scale(1.02);
  }
}

@keyframes reveal-cover {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-2deg);
  }
}

@keyframes podium-up {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
}

@media (max-width: 900px) {
  .stage-art {
    display: none;
  }

  .reveal {
    grid-template-columns: 1fr;
  }

  .podium {
    gap: 8px;
  }

  .podium-step {
    padding: 16px;
  }
}
