.game-end .screen-header h1 {
  font-size: 3rem;
}

.history-table {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.history-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.history-header {
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.history-header span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.history-row span {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.history-meld {
  background: rgba(58, 187, 165, 0.15);
  border: 1px solid var(--teal);
}

.history-meld-cell {
  width: 100%;
}

.game-end .waiting-msg {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

@keyframes history-row-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.juice-history-stagger .history-row:not(.history-header) {
  animation: history-row-in 0.25s ease-out both;
}
.juice-history-stagger .history-row:nth-child(2)  { animation-delay: 0ms; }
.juice-history-stagger .history-row:nth-child(3)  { animation-delay: 50ms; }
.juice-history-stagger .history-row:nth-child(4)  { animation-delay: 100ms; }
.juice-history-stagger .history-row:nth-child(5)  { animation-delay: 150ms; }
.juice-history-stagger .history-row:nth-child(6)  { animation-delay: 200ms; }
.juice-history-stagger .history-row:nth-child(7)  { animation-delay: 250ms; }
.juice-history-stagger .history-row:nth-child(8)  { animation-delay: 300ms; }
.juice-history-stagger .history-row:nth-child(9)  { animation-delay: 350ms; }
.juice-history-stagger .history-row:nth-child(10) { animation-delay: 400ms; }
.juice-history-stagger .history-row:nth-child(11) { animation-delay: 450ms; }
.juice-history-stagger .history-row:nth-child(12) { animation-delay: 500ms; }
.juice-history-stagger .history-row:nth-child(13) { animation-delay: 550ms; }
.juice-history-stagger .history-row:nth-child(14) { animation-delay: 600ms; }
.juice-history-stagger .history-row:nth-child(15) { animation-delay: 650ms; }
.juice-history-stagger .history-row:nth-child(16) { animation-delay: 700ms; }
.juice-history-stagger .history-row:nth-child(17) { animation-delay: 750ms; }
.juice-history-stagger .history-row:nth-child(18) { animation-delay: 800ms; }
.juice-history-stagger .history-row:nth-child(19) { animation-delay: 850ms; }
.juice-history-stagger .history-row:nth-child(20) { animation-delay: 900ms; }
.juice-history-stagger .history-row:nth-child(21) { animation-delay: 950ms; }
