/* ============================================================
   START HERE — the two lists

   Same reel as the front door: photographs dissolving into black,
   glass sitting in the dark. What's new here is rank. A ranking
   only reads as a ranking in one column, so these lists stay a
   single narrow measure even on a wide screen — the numerals run
   straight down the left edge and you can read the order at a
   glance instead of hunting it across a grid.

   Amber marks the things that change. Lake blue — lifted from the
   drawn-sky stops on the arcade — marks the things that keep.
============================================================ */

:root {
  --lake: #7FB6DC;
  --lake-soft: rgba(127, 182, 220, 0.13);
  --gold-soft: rgba(232, 163, 61, 0.14);
}

.lists { max-width: 820px; margin: 0 auto; }

/* ---- the list header, on black between the frames ---- */
.list-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
}
.list-rule {
  width: 44px;
  height: 2px;
  border-radius: 2px;
  margin-bottom: 0.3rem;
}
.daily .list-rule { background: var(--gold); }
.keeps .list-rule { background: var(--lake); }

.list-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin: 0;
}
.daily .list-kicker { color: var(--gold); }
.keeps .list-kicker { color: var(--lake); }

.list-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.list-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---- the ranked rows ---- */
ol.ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 0.9rem;
  padding: 0.85rem 1.05rem 0.9rem 0.75rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.rank:hover, .rank:focus-visible {
  background: var(--glass);
  border-color: var(--glass-edge);
  transform: translateY(-1px);
  outline: none;
}
.rank:focus-visible { box-shadow: 0 0 0 2px var(--gold); }

.rank-n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
/* The podium carries the section's colour; everything below is quiet. */
.daily .rank:nth-child(-n+3) .rank-n { color: var(--gold); }
.keeps .rank:nth-child(-n+3) .rank-n { color: var(--lake); }

.rank-body { min-width: 0; display: flex; flex-direction: column; gap: 0.22rem; }

.rank-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.003em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.rank:hover .rank-name .arrow { opacity: 1; transform: translateX(2px); }
.rank-name .arrow {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.keeps .rank-name .arrow { color: var(--lake); }

.rank p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.chip {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: var(--pill);
  white-space: nowrap;
}
.daily .chip { background: var(--gold-soft); color: var(--gold); }
.keeps .chip { background: var(--lake-soft); color: var(--lake); }

/* ---- the bench under each list ---- */
.bench {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.bench h3 {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.bench p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; }
.bench a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.bench a:hover, .bench a:focus-visible { border-bottom-color: var(--gold); outline: none; }
.bench .sep { color: var(--ink-faint); padding: 0 0.3rem; }

/* ---- the "how to use this" note above the first list ---- */
.howto {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.howto b { color: var(--ink); font-weight: 600; }

@media (max-width: 480px) {
  .rank { grid-template-columns: 1.9rem 1fr; padding-left: 0.5rem; }
  .rank-n { font-size: 1.4rem; }
}
