/* big display titles */
.logo,
.winner-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 11vw, 48px);
  font-weight: 900;
}

/* setup */
.logo {
  display: flex;
  flex-direction: column;
  margin: 24px 0 8px;
  line-height: 1.05;
  transform: rotate(-3deg);
}
.logo .pink { text-shadow: 0 0 22px var(--glow-pink-strong); }
.logo .lime { text-shadow: 0 0 22px var(--glow-lime-strong); }

.player-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.player-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
  cursor: grab;
  touch-action: none; /* the row is draggable: don't scroll the page while dragging it */
  user-select: none;
  -webkit-user-select: none;
}
.player-list li.is-dragging {
  z-index: 1;
  scale: 1.03;
  cursor: grabbing;
  background: var(--color-card);
  box-shadow: var(--shadow-lift), 0 0 0 2px var(--player-color);
}
.drag-grip { color: var(--color-text-muted); cursor: grab; }
.player-list .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.start-button { margin-top: auto; }

/* turn */
.turn-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: inherit; font-weight: inherit; }
.turn-header-actions { flex: none; }
.current-player { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display); font-size: clamp(22px, 7vw, 28px); font-weight: 900; }
.current-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.race { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-md); background: var(--color-panel); }
.race-lanes { display: flex; flex-direction: column; gap: 8px; }
.race-lane { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); }
.race-lane.is-current { color: var(--color-text); font-weight: 700; }
.race-name { width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-track { position: relative; flex: 1; height: 4px; margin-right: 8px; border-radius: 2px; background: var(--color-track); }
.race-token {
  position: absolute;
  top: -6px;
  left: var(--progress);
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--player-color);
  box-shadow: 0 0 10px var(--player-color);
  transition: left 0.6s var(--ease-bounce);
}
.race-lane.is-current .race-token { outline: 2px solid var(--color-text); }
.race-score { width: 22px; text-align: right; font-weight: 700; color: var(--color-text); }

/* crazy card */
.crazy-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 12vw, 46px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}
.crazy-title .lime { text-shadow: 0 0 22px var(--glow-lime-strong); }
.crazy-title .pink { text-shadow: 0 0 22px var(--glow-pink-strong); }
.card-crazy { justify-content: center; border: 2px dashed var(--color-lime); box-shadow: 0 0 30px var(--glow-lime-soft); transform: none; }
.card-crazy .card-text { font-size: clamp(22px, 7.4vw, 30px); }

/* finished */
.winner-title {
  margin: 8px 0;
  text-align: center;
  color: var(--player-color);
  text-shadow: 0 0 26px var(--player-color);
  overflow-wrap: anywhere;
}
.ranking { display: flex; flex: 1; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-panel); font-weight: 700; }
.ranking .name { flex: 1; }

/* very narrow phones: the player name matters more than the mode chip */
@media (max-width: 359px) {
  .turn-header-actions .chip { display: none; }
}
