:root {
  color-scheme: dark;
  --bg: #101817;
  --sidebar: #131c1a;
  --panel: #18211f;
  --panel-raised: #1d2724;
  --border: #293430;
  --text: #f1f2e9;
  --muted: #899590;
  --lime: #d6fc57;
  --orange: #ff784e;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Barlow Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 236px; padding: 29px 18px 15px; border-right: 1px solid #27312e; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 7px 48px; }
.brand-mark { display: flex; align-items: center; gap: 2px; width: 23px; height: 23px; transform: skew(-13deg); }
.brand-mark span { display: block; width: 6px; height: 22px; border-radius: 2px; background: var(--lime); }
.brand-mark span:nth-child(2) { height: 16px; opacity: .77; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .53; }
.brand-name { font: 800 19px var(--font-display); letter-spacing: .7px; }
.brand-name span { margin-left: 4px; color: var(--lime); }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #78837e; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.primary-nav { display: grid; gap: 5px; margin: 12px 0 33px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 11px; border-radius: 7px; color: #a1aaa5; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.nav-link:hover, .nav-link.active { background: #242e2a; color: var(--text); }
.nav-link.active { box-shadow: inset 2px 0 var(--lime); }
.nav-link svg, .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active svg { color: var(--lime); }
.nav-count { display: grid; place-items: center; width: 19px; height: 19px; margin-left: auto; border-radius: 50%; background: #34402d; color: var(--lime); font-size: 10px; }
.league-label { margin-bottom: 13px; }
.icon-button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #9ca7a1; cursor: pointer; }
.add-league { width: 21px; height: 21px; border: 1px solid #37423d; border-radius: 50%; color: #bac4bd; font-size: 16px; line-height: 1; }
.league-choice { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #adb5b0; text-align: left; font-size: 11px; cursor: pointer; }
.league-choice.selected { background: #222c28; color: #f0f2e9; }
.league-choice.upcoming { color: #85908a; }
.league-choice:hover { background: #202a26; }
.league-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; font: 800 11px var(--font-display); }
.nascar-icon { background: #29342d; color: var(--lime); font-size: 13px; font-style: italic; }
.f1-icon { background: #352b26; color: #ff8865; font-size: 12px; font-style: italic; }
.more-icon { border: 1px dashed #49544e; color: #9da7a0; font: 400 15px var(--font-body); }
.league-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--lime); }
.soon-tag { margin-left: auto; color: #7d8982; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.sidebar-bottom { margin-top: auto; }
.season-card { margin-bottom: 17px; padding: 13px 12px 11px; border: 1px solid #2c3732; border-radius: 8px; background: #19221f; }
.season-label { color: #afb9b2; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.season-progress { height: 4px; margin: 11px 0 8px; overflow: hidden; border-radius: 4px; background: #354039; }
.season-progress span { display: block; width: 83%; height: 100%; border-radius: inherit; background: var(--lime); }
.season-foot { display: flex; justify-content: space-between; color: #8d9992; font-size: 9px; }
.season-foot span:last-child { color: var(--lime); }
.profile-button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 4px 4px; border: 0; border-top: 1px solid #2c3632; background: transparent; text-align: left; cursor: pointer; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-size: 9px; font-weight: 700; }
.avatar-user { background: #c1d78a; color: #263522; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { font-size: 10px; font-weight: 600; }
.profile-copy small { color: #85908a; font-size: 9px; }
.profile-menu { margin-left: auto; color: #8a958f; font-size: 19px; letter-spacing: 1px; }

.main-content { min-height: 100vh; margin-left: 236px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 45px; border-bottom: 1px solid #26302d; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #7f8a84; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.breadcrumb strong { color: #d2d9d1; font-weight: 700; }
.crumb-slash { color: #536059; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.notification-button { position: relative; width: 30px; height: 30px; }
.notification-button svg { width: 17px; }
.notification-dot { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border: 1px solid var(--bg); border-radius: 50%; background: var(--orange); }
.admin-link { color: #aeb9b0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.admin-link:hover { color: var(--lime); }
.join-button { height: 32px; padding: 0 12px; border: 1px solid #3d4a43; border-radius: 5px; background: #222d28; color: #e0e6dc; font-size: 10px; font-weight: 700; cursor: pointer; }
.join-button:hover { border-color: var(--lime); }
.join-button span { margin-right: 5px; color: var(--lime); font-size: 15px; vertical-align: -1px; }
.mobile-menu { display: none; }
.content-wrap { max-width: 1440px; margin: 0 auto; padding: 34px 45px 18px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 23px; }
.eyebrow, .section-eyebrow { color: #89958e; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.eyebrow-line { display: inline-block; width: 14px; height: 2px; background: var(--lime); }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 34px/1.1 var(--font-display); letter-spacing: .1px; }
.lime-period { color: var(--lime); }
.welcome-subtitle { margin-top: 7px; color: #929d96; font-size: 11px; }
.season-select { display: flex; align-items: center; gap: 7px; height: 31px; padding: 0 10px; border: 1px solid #34403b; border-radius: 5px; background: #19221f; color: #b7c0b9; font-size: 9px; font-weight: 700; letter-spacing: .7px; cursor: pointer; }
.season-select-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chevron { margin-left: 5px; color: #8d9991; font-size: 15px; }

.race-hero { position: relative; display: flex; min-height: 255px; overflow: hidden; border: 1px solid #3a463d; border-radius: 9px; background: linear-gradient(106deg, #28352c 0%, #25332c 47%, #1d2925 73%, #18221f 100%); }
.hero-texture { position: absolute; inset: 0 0 0 50%; opacity: .16; background-image: repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(213,252,87,.15) 15px, transparent 17px), radial-gradient(ellipse at 88% 35%, rgba(213,252,87,.2), transparent 45%); mask-image: linear-gradient(90deg, transparent, black 38%); }
.hero-content { position: relative; z-index: 1; padding: 25px 28px; }
.race-kicker { display: flex; align-items: center; gap: 8px; color: #b8c4b9; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.live-dot, .status-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px #d6fc5780; }
.race-kicker-divider { margin: 0 1px; color: #6f7b71; }
.round-tag { margin-left: 2px; padding: 4px 7px; border: 1px solid #65744970; border-radius: 3px; color: var(--lime); font-size: 8px; letter-spacing: .7px; }
.race-hero h2 { margin-top: 13px; font: 800 43px/.88 var(--font-display); letter-spacing: .3px; }
.race-hero h2 span { color: var(--lime); }
.race-meta { display: flex; align-items: center; gap: 13px; margin-top: 15px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: #c4cdc3; font-size: 9px; font-weight: 600; letter-spacing: .25px; }
.meta-item svg { width: 13px; height: 13px; fill: none; stroke: #9dab96; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.meta-divider { width: 1px; height: 12px; background: #647064; }
.track-icon { color: var(--lime); font-size: 13px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 151px; height: 35px; margin-top: 18px; padding: 0 13px; border: 0; border-radius: 4px; background: var(--lime); color: #182116; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s; }
.primary-button:hover { transform: translateY(-1px); background: #e2ff7f; }
.primary-button span { font-size: 15px; }
.hero-right { position: absolute; z-index: 1; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 32%; height: 100%; padding-left: 23px; border-left: 1px solid #77827145; }
.track-watermark { position: absolute; top: -48px; right: 11px; color: #d6fc570b; font: 900 240px/.95 var(--font-display); transform: skew(-8deg); pointer-events: none; }
.countdown-label { position: relative; color: #9da99f; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.countdown { position: relative; display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; }
.countdown div { display: grid; justify-items: center; gap: 2px; }
.countdown strong { font: 700 31px/.95 var(--font-display); }
.countdown div span { color: #95a197; font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.countdown i { padding-top: 2px; color: #819087; font-style: normal; font-weight: 600; }
.picks-status { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #c2cbbf; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.picks-status .status-indicator { width: 5px; height: 5px; }
.hero-race-number { position: absolute; right: 32%; bottom: -27px; color: #ffffff08; font: 900 150px/.9 var(--font-display); transform: skew(-8deg); pointer-events: none; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stat-card { display: flex; align-items: center; min-height: 75px; padding: 12px 14px; border: 1px solid #293430; border-radius: 7px; background: #171f1d; }
.stat-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; margin-right: 11px; border-radius: 7px; }
.stat-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.green-icon { background: #293729; color: var(--lime); }
.orange-icon { background: #382b25; color: #ff9269; }
.purple-icon { background: #302b3a; color: #c49aff; }
.stat-copy { display: grid; gap: 4px; }
.stat-copy > span { color: #8c9991; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.stat-copy strong { font: 700 23px/.95 var(--font-display); letter-spacing: .2px; }
.stat-copy strong small { color: #8d9992; font: 500 10px var(--font-body); }
.stat-trend, .stat-note { margin-left: auto; color: var(--lime); font-size: 9px; font-weight: 700; text-align: right; white-space: nowrap; }
.stat-trend small, .stat-note small { display: block; margin-top: 4px; color: #79867f; font-size: 8px; font-weight: 500; }
.stat-note { color: #d1d8d0; }

.lower-grid { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(430px, 1.55fr); gap: 13px; margin-top: 14px; }
.panel { min-width: 0; border: 1px solid #293430; border-radius: 7px; background: #171f1d; }
.picks-panel { padding: 18px 17px 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-eyebrow { font-size: 8px; letter-spacing: .9px; }
h3 { margin-top: 4px; font: 700 22px/1 var(--font-display); letter-spacing: .1px; }
.open-pill { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #4f613d; border-radius: 3px; color: var(--lime); font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.open-pill span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.panel-description { margin-top: 9px; color: #929d96; font-size: 9px; }
.pick-label { display: flex; justify-content: space-between; margin-top: 19px; color: #aab4ab; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.pick-points { color: var(--lime); }
.driver-select-wrap { position: relative; margin-top: 7px; }
.driver-select-wrap select { width: 100%; height: 37px; appearance: none; padding: 0 34px 0 11px; border: 1px solid #39443e; border-radius: 4px; outline: none; background: #1d2723; color: #d5ddd4; font-size: 10px; cursor: pointer; }
.driver-select-wrap select:focus, .modal-card input:focus { border-color: var(--lime); box-shadow: 0 0 0 2px #d6fc5720; }
.driver-select-wrap select:invalid { color: #8b9790; }
.select-chevron { position: absolute; top: 7px; right: 12px; color: #9ca89f; font-size: 17px; pointer-events: none; }
.pick-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.save-message { color: #87928b; font-size: 8px; }
.submit-picks { height: 30px; padding: 0 10px; border: 1px solid #46513e; border-radius: 4px; background: #303a2c; color: var(--lime); font-size: 9px; font-weight: 700; cursor: pointer; }
.submit-picks span { margin-left: 6px; font-size: 12px; }
.submit-picks:disabled { border-color: #343d38; background: #222b27; color: #65736b; cursor: not-allowed; }
.pick-confirmation { min-height: 0; color: var(--lime); font-size: 9px; }
.pick-confirmation:not(:empty) { margin-top: 10px; }
.leaderboard-panel { padding: 18px 17px 8px; }
.leaderboard-heading { margin-bottom: 13px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #bdc6bc; font-size: 9px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.text-button:hover { color: var(--lime); }
.text-button span { margin-left: 4px; color: var(--lime); font-size: 12px; }
.leaderboard-table { width: 100%; }
.leaderboard-header, .leaderboard-row { display: grid; grid-template-columns: 48px minmax(135px, 1fr) 75px 82px; align-items: center; }
.leaderboard-header { min-height: 25px; border-top: 1px solid #293430; border-bottom: 1px solid #293430; color: #7d8982; font-size: 7px; font-weight: 700; letter-spacing: .7px; }
.leaderboard-header span:nth-child(3), .leaderboard-header span:nth-child(4) { text-align: right; }
.leaderboard-row { min-height: 39px; border-bottom: 1px solid #26312c; font-size: 9px; }
.leaderboard-row:last-child { border-bottom: 0; }
.your-row { margin: 0 -6px; padding: 0 6px; border-radius: 4px; background: #293429; }
.rank { color: #a3ada5; font: 600 12px var(--font-display); }
.rank-gold { color: #f2cc66; }
.rank-silver { color: #bec9c3; }
.rank-bronze { color: #db9c6a; }
.player-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.player-cell strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.player-cell .avatar { width: 23px; height: 23px; font-size: 7px; }
.avatar-1 { background: #814d43; color: #ffe4d4; }
.avatar-2 { background: #435b77; color: #d9e9ff; }
.avatar-3 { background: #61517e; color: #ece0ff; }
.avatar-4 { background: #687b4b; color: #edffd0; }
.you-tag { padding: 2px 4px; border-radius: 2px; background: #3b4934; color: var(--lime); font-size: 6px; font-weight: 700; letter-spacing: .4px; }
.points-cell { text-align: right; font-size: 9px; }
.last-race { color: #a4afa6; text-align: right; font-size: 9px; }
.last-race.positive { color: var(--lime); }
.last-race.negative { color: #d9b189; }
.page-footer { display: flex; justify-content: space-between; margin-top: 20px; color: #66736b; font-size: 7px; font-weight: 700; letter-spacing: .8px; }
.page-footer span:last-child { color: #66736b; font-weight: 500; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #070b0ae8; backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { position: relative; width: min(100%, 390px); padding: 30px; border: 1px solid #39453e; border-radius: 10px; background: #19221f; box-shadow: 0 25px 80px #0008; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; font-size: 22px; }
.modal-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 18px; border-radius: 8px; background: #293729; font-size: 19px; }
.modal-card h2 { margin-top: 5px; font: 700 31px var(--font-display); }
.modal-card > p { margin-top: 8px; color: #9aa59d; font-size: 11px; line-height: 1.6; }
.modal-label { display: block; margin-top: 20px; color: #adb8ae; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.modal-card input { width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; border: 1px solid #39443e; border-radius: 4px; outline: none; background: #111a17; color: var(--text); font-size: 11px; text-transform: uppercase; }
.modal-message { min-height: 16px; margin-top: 7px; color: var(--orange); font-size: 9px; }
.modal-message.success { color: var(--lime); }
.modal-submit { width: 100%; margin-top: 3px; }
.modal-foot { margin-top: 17px; color: #8c9991; text-align: center; font-size: 9px; }
.modal-foot button { border: 0; background: transparent; color: var(--lime); font-size: inherit; cursor: pointer; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 22px; max-width: calc(100vw - 48px); padding: 12px 16px; transform: translateY(20px); border: 1px solid #4b5b40; border-radius: 6px; background: #273426; color: var(--lime); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (min-width: 1500px) {
  .content-wrap { padding-right: 58px; padding-left: 58px; }
  .topbar { padding-right: 58px; padding-left: 58px; }
}
@media (max-width: 1120px) {
  .sidebar { width: 206px; }
  .main-content { margin-left: 206px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .content-wrap { padding-right: 28px; padding-left: 28px; }
  .lower-grid { grid-template-columns: minmax(255px, .8fr) minmax(390px, 1.4fr); }
  .leaderboard-header, .leaderboard-row { grid-template-columns: 38px minmax(115px, 1fr) 65px 70px; }
}
@media (max-width: 850px) {
  .sidebar { width: 68px; align-items: center; padding-right: 9px; padding-left: 9px; }
  .brand { padding: 1px 0 44px; }
  .brand-name, .sidebar-label, .nav-link:not(.active)::after, .nav-link, .league-choice span:not(.league-icon), .season-card, .profile-copy, .profile-menu { display: none; }
  .primary-nav { width: 100%; margin: 0 0 24px; }
  .nav-link { display: grid; place-items: center; width: 48px; height: 46px; margin: 0 auto; padding: 0; font-size: 0; }
  .nav-link svg { width: 19px; height: 19px; }
  .nav-count { position: absolute; margin: -27px 0 0 24px; width: 15px; height: 15px; font-size: 8px; }
  .league-choice { justify-content: center; width: 48px; padding: 0; }
  .league-choice .league-icon { display: grid !important; }
  .league-dot { position: absolute; margin: -22px 0 0 28px; }
  .sidebar-bottom { display: flex; justify-content: center; width: 100%; }
  .profile-button { justify-content: center; padding-top: 13px; }
  .main-content { margin-left: 68px; }
  .lower-grid { grid-template-columns: 1fr; }
  .picks-panel { order: 0; }
  .leaderboard-panel { order: 1; }
  .race-hero { min-height: 245px; }
  .hero-right { width: 34%; }
}
@media (max-width: 600px) {
  .sidebar { width: 56px; padding: 19px 5px 10px; }
  .brand { padding-bottom: 35px; }
  .brand-mark { transform: scale(.87) skew(-13deg); }
  .nav-link { width: 42px; height: 42px; }
  .league-choice { width: 42px; height: 39px; }
  .main-content { margin-left: 56px; }
  .topbar { height: 57px; padding: 0 15px; }
  .breadcrumb { gap: 6px; font-size: 8px; }
  .topbar-actions { gap: 9px; }
  .notification-button { display: none; }
  .admin-link { font-size: 8px; }
  .join-button { height: 30px; padding: 0 9px; font-size: 9px; }
  .mobile-menu { display: none; }
  .content-wrap { padding: 26px 15px 15px; }
  .welcome-row { align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  h1 { max-width: 260px; font-size: 29px; }
  .welcome-subtitle { max-width: 255px; font-size: 10px; line-height: 1.5; }
  .season-select { flex: 0 0 auto; gap: 5px; height: 27px; padding: 0 6px; font-size: 7px; }
  .season-select-dot { width: 5px; height: 5px; }
  .season-select .chevron { margin-left: 0; }
  .race-hero { min-height: 351px; }
  .hero-content { padding: 20px 17px; }
  .race-kicker { flex-wrap: wrap; gap: 6px; font-size: 8px; }
  .round-tag { font-size: 7px; }
  .race-hero h2 { margin-top: 13px; font-size: 38px; }
  .race-meta { flex-wrap: wrap; gap: 8px; max-width: 280px; margin-top: 12px; }
  .meta-item { font-size: 8px; }
  .meta-divider { height: 10px; }
  .primary-button { margin-top: 13px; }
  .hero-right { top: auto; right: auto; bottom: 0; left: 0; align-items: flex-start; justify-content: center; width: 100%; height: 105px; padding: 8px 17px; border-top: 1px solid #77827145; border-left: 0; }
  .countdown { gap: 8px; margin-top: 5px; }
  .countdown strong { font-size: 25px; }
  .countdown-label { font-size: 7px; }
  .picks-status { position: absolute; right: 16px; bottom: 22px; margin: 0; font-size: 7px; }
  .track-watermark { top: -45px; right: 0; font-size: 140px; }
  .hero-race-number { right: 10%; bottom: 65px; font-size: 100px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
  .stat-card { min-height: 69px; padding: 10px 8px; }
  .stat-card:last-child { grid-column: span 2; }
  .stat-icon { width: 29px; height: 29px; margin-right: 8px; }
  .stat-copy > span { font-size: 7px; }
  .stat-copy strong { font-size: 21px; }
  .stat-trend, .stat-note { font-size: 8px; }
  .lower-grid { gap: 9px; margin-top: 9px; }
  .picks-panel, .leaderboard-panel { padding: 15px 12px 11px; }
  h3 { font-size: 21px; }
  .leaderboard-heading { align-items: flex-end; }
  .text-button { font-size: 8px; }
  .leaderboard-header, .leaderboard-row { grid-template-columns: 32px minmax(95px, 1fr) 50px 58px; }
  .leaderboard-header { font-size: 6px; letter-spacing: .3px; }
  .leaderboard-row { min-height: 37px; }
  .player-cell { gap: 5px; }
  .player-cell strong { font-size: 8px; }
  .player-cell .avatar { width: 21px; height: 21px; }
  .last-race, .points-cell { font-size: 8px; }
  .page-footer { gap: 10px; font-size: 6px; }
  .page-footer span:last-child { text-align: right; }
}
@media (max-width: 390px) {
  .content-wrap { padding-right: 10px; padding-left: 10px; }
  .topbar { padding-right: 10px; padding-left: 10px; }
  .welcome-row { flex-direction: column; }
  .season-select { align-self: flex-end; margin-top: -2px; }
  .race-kicker { max-width: 230px; }
  .leaderboard-header, .leaderboard-row { grid-template-columns: 26px minmax(86px, 1fr) 44px 53px; }
}
