/* Overview page (templates/dashboard.html). Shared components live in site.css. */

/* Hero: period title and filters */
.ov-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; padding: clamp(22px, 3vw, 34px); }
.ov-hero h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1; letter-spacing: -.03em; }
.ov-hero-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.ov-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.ov-active-filters b { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.ov-active-filters a { margin-left: 4px; font-size: 12px; }

/* The hero's filter form sits inside the hero card, so it drops the standalone toolbar chrome. */
.ov-filters.filters { display: grid; grid-template-columns: repeat(4, minmax(128px, 1fr)) auto; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.ov-filters.filters label { min-width: 0; }
.ov-filter-actions { display: flex; align-items: center; gap: 12px; min-height: 40px; }

/* Leaderboard */
.ov-table tbody tr { animation: fade .45s ease both; animation-delay: calc(.2s + min(var(--i, 0), 16) * 28ms); }
.ov-rank-col, .ov-rank { width: 46px; }
.ov-rank { color: var(--muted); font: 700 13px var(--font-display); }
.ov-rank-badge { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 50%; }
.ov-leaderboard tbody tr:nth-child(1) .ov-rank-badge { color: #1d1505; background: linear-gradient(135deg, #f8d77f, #d8a03c); box-shadow: 0 0 0 3px color-mix(in srgb, #f2bd68 22%, transparent); }
.ov-leaderboard tbody tr:nth-child(2) .ov-rank-badge { color: #121a20; background: linear-gradient(135deg, #e3ebf0, #9fb0bc); }
.ov-leaderboard tbody tr:nth-child(3) .ov-rank-badge { color: #1e1209; background: linear-gradient(135deg, #e7a873, #b06a37); }
.ov-mobile-games { display: none; }
.ov-record { font-weight: 700; }
.ov-wld { color: var(--muted); }
.ov-wld span { font-weight: 700; }

/* Lane archive */
.ov-lane-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px; }
.ov-lane-card { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 14px 14px 10px; border: 1px solid var(--soft-line); border-radius: 12px; background: color-mix(in srgb, var(--surface-raised) 55%, var(--surface)); transition: transform .22s var(--ease-out), border-color .22s ease; animation: rise .5s var(--ease-out) both; animation-delay: calc(.25s + min(var(--i, 0), 12) * 40ms); }
.ov-lane-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.ov-lane-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ov-lane-card > header .avatar { width: 34px; height: 34px; flex-basis: 34px; }
.ov-lane-card > header a { display: block; overflow: hidden; color: var(--ink); font: 700 15px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.ov-lane-card > header a:hover { color: var(--accent); }
.ov-lane-card > header small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.ov-lane-pct { font: 700 24px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ov-lane-card .lane-rows { border-top: 1px solid var(--soft-line); }

/* Recent performances */
.ov-lane-label { color: var(--ink); }

@media (max-width: 1240px) {
  .ov-hero { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .ov-filters.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ov-hero { padding: 20px 18px; }
  .ov-rank-col, .ov-rank { width: 34px; }
  .player-cell span { white-space: normal; }
  .ov-leaderboard .tag { display: none; }
  .ov-mobile-games { display: block; color: var(--muted); font-size: 11px; }
  .ov-table th { letter-spacing: .5px; }
  .ov-lane-grid { grid-template-columns: 1fr; padding: 12px; }
}
