.ranking-game { padding: clamp(12px,3vw,28px); }
#onlinePlay[data-kind="ranking"] > .game-header h2,
.ranking-game h2,.ranking-game h3 {
  font-family:"Reggae One","Segoe UI",sans-serif;
  font-weight:400;
  text-align:center;
  overflow-wrap:anywhere;
}
.ranking-current { display:grid; justify-items:center; gap:6px; margin:8px auto 14px; }
.ranking-current p { margin:0; font-weight:800; }
.ranking-art { display:grid; gap:6px; width:100%; min-width:0; text-align:center; overflow-wrap:anywhere; }
.ranking-art img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; border:2px solid var(--ink); }
.ranking-current .ranking-art { width:auto; justify-items:center; font-weight:900; }
.ranking-current img { width:clamp(80px,20vw,128px); }
.ranking-board { min-width:0; width:min(100%,660px); margin:0 auto; }
.ranking-slots {
  --ranking-columns: 5;
  --ranking-gap: 10px;
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:var(--ranking-gap); margin:0; padding:0; list-style:none;
}
.ranking-slots > .ranking-slot {
  flex:0 0 calc((100% - (var(--ranking-columns) - 1) * var(--ranking-gap)) / var(--ranking-columns));
}
@media (max-width:600px) {
  .ranking-slots { --ranking-columns: 3; }
}
.ranking-slot,.ranking-choice { min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; }
.ranking-slot { padding:6px; background:var(--panel-2); border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); }
.ranking-slot:has(.ranking-choice) { padding:0; border:0; box-shadow:none; }
.ranking-choice {
  width:100%; flex:1 0 auto; padding:6px; background:var(--panel-2);
  border:2px dashed var(--line); box-shadow:3px 3px 0 var(--ink);
  color:var(--text); text-transform:none; letter-spacing:normal;
}
.ranking-choice[aria-pressed=true] { border:2px solid var(--yellow); }
.ranking-choice:focus-visible { outline:3px solid var(--yellow); outline-offset:2px; }
.ranking-choice::after { display:none; }
.ranking-number { font:400 14px "Reggae One","Segoe UI",sans-serif; color:var(--yellow); }
/* Empty, provisional and locked spots share a portrait and a two-line caption. */
.ranking-slot { --ranking-caption-line: clamp(15px,2.5vw,17.5px); font-size:clamp(12px,2vw,14px); }
.ranking-slot .ranking-choice { font-size:inherit; }
.ranking-slot .ranking-art { font-weight:800; }
.ranking-slot .ranking-art > span {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-height:var(--ranking-caption-line);
  height:calc(2 * var(--ranking-caption-line));
  overflow:hidden;
}
.ranking-slot .ranking-empty {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:3/4;
  margin-bottom:calc(6px + 2 * var(--ranking-caption-line));
  color:var(--muted);
  background:var(--panel);
  text-align:center;
  overflow-wrap:anywhere;
}
.ranking-actions { position:sticky; bottom:0; z-index:2; text-align:center; background:var(--panel); margin:12px auto 0; padding:6px; }
.ranking-actions p { margin:4px 0 10px; }
.ranking-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:18px; }
