/* US-31 home page (kindacritic/ui_home.py). Tokens only: every colour, radius, pad and
 * type size comes from kindacritic/assets/tokens.css. Tier colours appear only on the
 * platinum label and the chip, which are badges, never on charts or links. */

.home-tagline { margin: 20px 0 18px; font-size: 26px; line-height: 1.2; font-weight: 800;
                letter-spacing: -.02em; }

/* Overview strip: four tiles in one row, on desktop and phone alike. */
.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
              margin-bottom: 18px; }
.home-stat { min-width: 0; background: var(--surface); border: 1px solid var(--hairline);
             border-radius: var(--r-lg); padding: 14px 16px; }
.home-stat b { display: block; color: var(--accent); font-size: 28px; font-weight: 800;
               line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-stat span { display: block; margin-top: 4px; color: var(--ink-2); font-size: var(--t-meta); }

/* Countdown hero: the list's key art (16:9), its title, a spoiler-free line, the way in, and
 * the platinum medallion as decoration. It never shows a ranked game. */
.home-top100 { position: relative; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr) auto;
               gap: 28px; align-items: center; margin: 0 0 30px; padding: 16px; }
.home-keyart { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
               border-radius: var(--r-md); background: linear-gradient(145deg, #2a2e36, #14161a); }
.home-keyart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                   display: block; }
.home-kicker { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em;
               font-size: var(--t-label); font-weight: 700; }
.home-top100-title { margin: 4px 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.home-top100-title a { color: var(--ink); }
.home-top100 .meta { margin-bottom: 14px; }
.home-more { color: var(--accent); font-size: var(--t-meta); font-weight: 600; white-space: nowrap; }
.home-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
            border-radius: 999px; background: var(--accent); color: var(--page);
            font-weight: 700; text-decoration: none; }
.home-cta:hover { text-decoration: none; filter: brightness(1.08); }
.home-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.badge-deco { display: block; padding-right: 8px; }
.badge-deco .badge-medal { width: 88px; height: 88px; }

/* Section headings that carry a link or a chip on the right or left. */
.home-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
           flex-wrap: wrap; }
.home-h2-main { display: inline-flex; align-items: center; gap: 8px; }

/* Critic cards: portrait, name, count and average, with the one trophy at the top right. */
.home-critics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-critic { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr);
               gap: 12px; align-items: start; min-width: 0; padding: 14px; }
.home-critic-face .art { width: 52px; }
.home-critic-body { min-width: 0; padding-right: 28px; }
.home-critic-name { color: var(--ink); font-weight: 700; }
.home-critic-cap { margin-top: 6px; color: var(--accent); font-size: var(--t-meta); font-weight: 600; }
.home-critic-trophy { position: absolute; top: 12px; right: 12px; }

@media (max-width: 640px) {
  /* Room under the header so the tagline does not sit flush against it (image-model pass). */
  .home-tagline { font-size: 22px; margin-top: 18px; }
  .home-stats { gap: 8px; }
  .home-stat { padding: 12px 8px; text-align: center; }
  .home-stat b { font-size: 20px; }
  .home-stat span { font-size: 12px; }

  .home-top100 { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .home-top100-title { font-size: 22px; }
  .home-top100 .meta { margin-bottom: 12px; }
  .badge-deco { position: absolute; top: 20px; right: 20px; padding: 0;
                filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); }
  .badge-deco .badge-medal { width: 56px; height: 56px; }

  .home-critics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-critic { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .home-critic-face .art { width: 40px; }
  .home-critic-trophy { top: 10px; right: 10px; }
}

/* A compact second card under the hero: a personal list, shown by portrait and title only. */
.home-list { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px;
             align-items: center; margin: -14px 0 30px; padding: 14px 16px; }
.home-list-face .art { width: 64px; }
.home-list-title { margin: 2px 0 0; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.home-list-title a { color: var(--ink); }
.home-list .home-kicker { margin: 0; }
@media (max-width: 640px) {
  .home-list { grid-template-columns: 52px minmax(0, 1fr); margin-top: -18px; }
  .home-list-face .art { width: 52px; }
  .home-list .home-cta { grid-column: 1 / -1; justify-content: center; }
}
