/* The rankings page and block (modules/rankings): the weekly rewards (the board and the countdown, a prize a place,
   last week's podium as three steps) over the boards. Every colour comes from the skin (--text-*, --line, the accent),
   so it reads on dark cloth and on parchment alike; only the medals keep their metals. */
.rk-page { display: grid; gap: 28px; }
.rk-rewards { display: grid; gap: 18px; }
.rk-rewards-lead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; text-align: center; }
.rk-rewards-lead p { margin: 0; color: var(--text-1); }
.rk-when { display: inline-flex; margin: 0; padding: 0; list-style: none; color: var(--text-0); font-weight: 600; font-variant-numeric: tabular-nums; }
.rk-when time { color: var(--text-1); font-weight: 500; }
.rk-when li.is-on b { color: rgb(var(--accent-rgb)); }
.rk-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rk-prize { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(var(--accent-rgb), 0.04); text-align: center; }
.rk-prize.is-1 { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.1); }
.rk-prize-lines { color: var(--text-0); font-size: 14px; line-height: 1.5; }
.rk-medal { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d0, #e3b448 55%, #8a6214);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); color: #1c1306; font: 700 15px var(--font-display); }
.is-2 > .rk-medal { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d2dc 55%, #6d7885); }
.is-3 > .rk-medal { background: radial-gradient(circle at 35% 30%, #ffe2c8, #c98b5a 55%, #6e4122); }
.rk-podium { display: grid; justify-items: center; gap: 10px; padding-top: 4px; }
.rk-podium-title { color: var(--text-2); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.rk-podium ol { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rk-step { display: grid; justify-items: center; gap: 6px; width: 128px; min-width: 0; }
.rk-face { --size: 50px; }
.rk-step.is-1 .rk-face { --size: 62px; }
.rk-step-name { max-width: 100%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rk-step-block { display: grid; place-items: center; width: 100%; height: 34px; border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: 8px 8px 2px 2px;
  background: linear-gradient(rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.05)); color: var(--text-0); font: 700 18px var(--font-display); }
.rk-step.is-1 .rk-step-block { height: 62px; }
.rk-step.is-2 .rk-step-block { height: 46px; }
/* the landing page's block: the prizes as rows, the podium smaller */
.rk-rewards.is-compact { gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rk-rewards.is-compact .rk-prizes { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rk-rewards.is-compact .rk-prize { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; padding: 8px 10px; text-align: left; }
.rk-rewards.is-compact .rk-medal { width: 26px; height: 26px; font-size: 13px; }
.rk-rewards.is-compact .rk-prize-lines { font-size: 13px; }
.rk-rewards.is-compact .rk-step { width: 96px; }
.rk-rewards.is-compact .rk-face { --size: 40px; }
.rk-rewards.is-compact .rk-step.is-1 .rk-face { --size: 48px; }
.rk-rewards.is-compact .rk-step-block { height: 24px; font-size: 14px; }
.rk-rewards.is-compact .rk-step.is-1 .rk-step-block { height: 42px; }
.rk-rewards.is-compact .rk-step.is-2 .rk-step-block { height: 32px; }
@media (max-width: 640px) {
  .rk-prizes { grid-template-columns: minmax(0, 1fr); }
  .rk-prize { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
  .rk-step { width: 96px; }
}
/* both panels of the page as wide as each other */
.rk-page > .rk-panel { width: min(100%, 1000px); max-width: none; margin-inline: auto; }
