/* Paddock — Home (Main.dc.html / HomeMobile.dc.html). Page scope: .pd-home */

.pd-home {
  color: var(--pd-ink);
  font-family: "Archivo", sans-serif !important;
  font-stretch: 100%;
}

/* legacy home.css forces a font on body/button/input with !important */
.pd-home :is(button, input, select, textarea) { font-family: inherit !important; }
.pd-home :is(.pd-btn, .pd-slanttab, .pd-pos, .pd-d) { font-family: var(--pd-display) !important; }
.pd-home :is(.pd-chip, .pd-m, .pd-kicker, .pd-link) { font-family: var(--pd-mono) !important; }
.pd-home .pd-btn { color: #fff !important; }
.pd-home .pd-btn--ghost { color: var(--pd-ink) !important; }
.pd-home .pd-btn--white { color: var(--pd-bg) !important; }
.pd-home .pd-btn--white:hover { color: var(--pd-red) !important; }
.pd-home .pd-btn--black,
.pd-home .pd-btn--black:hover { color: var(--pd-yellow) !important; }
.pd-home .pd-chip { color: var(--pd-soft) !important; }
.pd-home .pd-chip.is-on { color: var(--pd-bg) !important; }
.pd-home .pd-ib { color: var(--pd-ink) !important; }
.pd-home a { color: var(--pd-ink); text-decoration: none; }
.pd-home a:hover { color: var(--pd-red-hi); }
.pd-home .pd-btn:hover { color: #fff; }
.pd-home h1,
.pd-home h2 { margin: 0; }

.pd-home-wrap {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 0 var(--pd-gutter);
  box-sizing: border-box;
}

.pd-home-wrap--after { padding-top: 80px; }

/* ---------- ticker ---------- */
.pd-home-ticker {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 9px var(--pd-gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
  background: var(--pd-panel);
  border-bottom: 1px solid var(--pd-line);
  color: var(--pd-mute);
  font-family: var(--pd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-home-ticker::-webkit-scrollbar { display: none; }
.pd-home-ticker > span { flex: none; }
.pd-home-ticker a { color: var(--pd-mute); }
.pd-home-ticker a:hover { color: var(--pd-red-hi); }

.pd-home-live {
  padding: 3px 8px;
  background: var(--pd-red);
  color: #fff;
  letter-spacing: 0.2em;
}

/* ---------- hero ---------- */
.pd-home-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 64px 0 72px;
}

.pd-home-ghost {
  position: absolute;
  top: 6px;
  left: -12px;
  font-size: 380px;
  line-height: 1;
  z-index: 0;
}

.pd-home-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pd-home-hero-title {
  font-size: clamp(48px, 6.4vw, 96px);
  overflow-wrap: anywhere;
}

.pd-home-hero-text {
  max-width: 520px;
  margin: 0;
  color: var(--pd-soft);
  font-size: 18px;
  line-height: 1.5;
}

.pd-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pd-home-save {
  width: 56px !important;
  height: 56px !important;
}

.pd-home-save.is-saved {
  background: var(--pd-red) !important;
  border-color: var(--pd-red) !important;
  color: #fff !important;
}

.pd-home-save.is-saved svg path { fill: currentColor; }

.pd-home-hero-mobilelink { display: none; }

/* timing tower */
.pd-home-tower {
  position: relative;
  z-index: 1;
  flex: 1 1 400px;
  min-width: 0;
  background: var(--pd-panel);
  border: 1px solid var(--pd-line);
}

.pd-home-tower-stripe { height: 10px; }

.pd-home-tower-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.pd-home-tower-label { letter-spacing: 0.3em; }
.pd-home-tower .pd-row { padding: 12px 22px; }

.pd-home-tower-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-home-tower-name.is-lead { font-weight: 800; }
.pd-home-tower-pts { font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
.pd-home-tower-delta { width: 44px; text-align: right; flex: none; }

.pd-home-tower-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--pd-panel-2);
  border-top: 1px solid var(--pd-line);
  color: var(--pd-soft);
  font-size: 14px;
}

.pd-home-tower-foot strong { color: var(--pd-ink); }

.pd-home-skel-line {
  display: block;
  flex: 1;
  height: 14px;
  min-width: 80px;
}

/* ---------- unfinished business + season ---------- */
.pd-home-resume {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 72px;
}

.pd-home-resume-main {
  flex: 2 1 640px;
  min-width: 0;
}

.pd-home-resume .pd-section-head { margin-bottom: 20px; }

.pd-home-resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.pd-home-resume-skel { height: 130px; }

.pd-home-resume-card {
  position: relative;
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: var(--pd-panel);
  border: 1px solid var(--pd-line);
  color: var(--pd-ink);
}

.pd-home-resume-card:hover { border-color: var(--pd-ink) !important; }

.pd-home-resume-cover {
  flex: none;
  width: 72px;
  height: 96px;
}

.pd-home-resume-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pd-home-resume-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pd-home-resume-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pd-home-resume-empty { grid-column: 1 / -1; padding: 32px 28px; }
.pd-home-empty-title { font-size: 26px; color: var(--pd-ink); }

.pd-home-quests {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--pd-panel);
  border: 1px solid var(--pd-line);
}

.pd-home-quests-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pd-home-quests-head h2 { font-size: 24px; }
.pd-home-quests-copy { margin: 0; color: var(--pd-soft); font-size: 14px; line-height: 1.5; }
.pd-home-quests .pd-btn { align-self: flex-start; }

.pd-home-quest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-home-quest-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pd-home-quest-title { font-size: 14px; font-weight: 600; }
.pd-home-quests-link { margin-top: auto; }

/* ---------- posters (trending) ---------- */
.pd-home-trending { padding-bottom: 80px; }
.pd-home-trending .pd-section-head { margin-bottom: 24px; }

.pd-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-home-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.pd-home-poster-skel { aspect-ratio: 4 / 5; }

.pd-home-poster,
.pd-home-off-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: var(--pd-ink);
}

.pd-home-poster-cover { aspect-ratio: 4 / 5; }
.pd-home-poster-title { font-size: 30px; line-height: 1.12; }

.pd-cover.has-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(11 11 12 / 0) 45%, rgb(11 11 12 / 0.55));
  content: "";
}

.pd-home-poster:hover .pd-tt,
.pd-home-off-card:hover .pd-tt { background: var(--pd-red); color: #fff; }

.pd-home-poster-by {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pd-home-poster-by a {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-home-poster-by .pd-m { flex: none; }

/* finish-later toggle on posters: under the category tag */
.pd-home .list-finish-later-button {
  top: 48px !important;
  right: auto !important;
  left: 14px !important;
  width: 38px;
  height: 38px;
  clip-path: none !important;
}

.pd-home .pd-home-resume-card .list-finish-later-button {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 32px;
  height: 32px;
}

.pd-home .pd-home-off-card .list-finish-later-button {
  top: 12px !important;
  right: 14px !important;
  left: auto !important;
}

.pd-home .list-finish-later-button.is-saved { background: var(--pd-red) !important; border-color: var(--pd-red) !important; }

/* ---------- red band (Lya Premium) ---------- */
.pd-home-band {
  position: relative;
  overflow: hidden;
  background: var(--pd-red);
  color: #fff;
}

.pd-home-band-stripe {
  height: 14px;
  background: linear-gradient(90deg, #0b0b0c 0 6%, transparent 6% 9%, #ffd100 9% 12%, transparent 12% 18%, #0b0b0c 18% 30%, transparent 30% 33%, #0b0b0c 33% 35%, transparent 35% 52%, #ffd100 52% 54%, transparent 54% 60%, #0b0b0c 60% 74%, transparent 74% 80%, #0b0b0c 80% 82%, transparent 82% 90%, #0b0b0c 90%);
}

.pd-home-band-vs {
  position: absolute;
  right: -20px;
  bottom: -40px;
  color: #c8000e;
  font-size: 240px;
  line-height: 1;
  pointer-events: none;
}

.pd-home-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 56px var(--pd-gutter) 64px;
  box-sizing: border-box;
}

.pd-home-band-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pd-home .pd-home-band-kicker { color: #fff; letter-spacing: 0.42em; }
.pd-home-band-title { font-size: clamp(40px, 5.4vw, 80px); color: #fff; }

.pd-home-band-digits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pd-home-band-digit {
  padding: 10px 14px;
  background: var(--pd-bg);
  color: var(--pd-yellow);
  font: 700 40px var(--pd-mono);
  line-height: 1.1;
}

.pd-home-band-sep { font-size: 32px; }
.pd-home .pd-home-band-caption { margin-left: 12px; color: #fff; }

.pd-home-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-home-band-panel {
  flex: 1 1 420px;
  min-width: 0;
  padding: 26px;
  background: var(--pd-bg);
  color: var(--pd-ink);
}

.pd-home-band-names,
.pd-home-band-values,
.pd-home-band-notes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pd-home-band-names { margin: 18px 0 12px; }
.pd-home-band-names .pd-d { font-size: 26px; }
.pd-home-band-names .pd-d:last-child { text-align: right; }

.pd-home-band-split {
  display: flex;
  gap: 4px;
  height: 20px;
}

.pd-home-band-split-a {
  background: var(--pd-ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.pd-home-band-split-b {
  flex: 1;
  background: var(--pd-red);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.pd-home-band-values { margin-top: 12px; }
.pd-home-band-values .pd-d { font-size: 44px; }
.pd-home-band-notes { margin-top: 6px; }

/* ---------- official ---------- */
.pd-home-official { padding-bottom: 80px; }
.pd-home-official .pd-section-head { margin-bottom: 24px; }

.pd-home-official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pd-home-official-skel { aspect-ratio: 16 / 10; }
.pd-home-off-cover { aspect-ratio: 16 / 10; }
.pd-home-off-title { bottom: 20px; font-size: 28px; }

.pd-home-off-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--pd-bg);
  color: #fff;
  font-size: 12px;
  clip-path: var(--pd-slant-sm);
}

.pd-home-off-badge.is-white { background: var(--pd-ink); color: var(--pd-bg); }

/* ---------- leaderboards ---------- */
.pd-home-boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 96px;
}

.pd-home-board[hidden] { display: none !important; }
.pd-home-board .pd-panel-head { padding: 20px 22px; }

.pd-home-board-name {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-home-avatar-lead { background: var(--pd-ink); color: var(--pd-bg); }
.pd-home-avatar-live { background: var(--pd-red); color: #fff; }

.pd-home-rival {
  flex: 1;
  min-width: 0;
}

.pd-home .pd-home-rival-status {
  display: block;
  overflow: hidden;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.pd-home-rival-link { padding: 12px 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-home-ghost { font-size: 240px; }
  .pd-home-hero { gap: 36px; padding: 44px 0 56px; }
  .pd-home-band-vs { font-size: 160px; }
}

@media (max-width: 640px) {
  .pd-home-wrap--after { padding-top: 56px; }

  .pd-home-ticker { gap: 14px; padding: 8px 16px; font-size: 10px; letter-spacing: 0.14em; }

  .pd-home-hero { gap: 20px; padding: 20px 0 32px; }
  .pd-home-ghost { top: -8px; font-size: 150px; }
  .pd-home-hero-copy { flex-basis: 100%; gap: 14px; }
  .pd-home-hero-copy .pd-kicker { letter-spacing: 0.3em; }
  .pd-home-hero-title { font-size: 40px; }
  .pd-home-hero-text { font-size: 15px; }
  .pd-home-hero-stats { gap: 14px; }
  .pd-home-hero-stats .pd-stat strong { font-size: 26px; }
  .pd-home-hero-stats .pd-stat span { margin-top: 2px; font-size: 10px; letter-spacing: 0.14em; }
  .pd-home-hero-stats .pd-slash { height: 36px; }
  .pd-home-hero-stats > :nth-child(n + 6) { display: none; }
  .pd-home-hero-actions { flex-wrap: nowrap; }
  .pd-home-play { flex: 1; min-height: 52px; padding: 0 20px; font-size: 15px; }
  .pd-home-standings { display: none; }
  .pd-home-save { width: 52px !important; height: 52px !important; }
  .pd-home-hero-mobilelink { display: block; align-self: center; padding: 8px; text-align: center; }
  .pd-home-tower { display: none; }

  .pd-home-resume { gap: 26px; padding-bottom: 40px; }
  .pd-home-resume-main { flex-basis: 100%; }
  .pd-home-resume-grid {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pd-home-resume-grid::-webkit-scrollbar { display: none; }
  .pd-home-resume-card { flex: none; width: 290px; max-width: 86vw; gap: 12px; padding: 12px; scroll-snap-align: start; }
  .pd-home-resume-cover { width: 56px; height: 72px; }
  .pd-home-resume-title { font-size: 15px; }
  .pd-home-resume-empty { flex: 1; }
  .pd-home-resume-skel { flex: none; width: 290px; }
  .pd-home-quests { flex-basis: 100%; padding: 18px; }

  .pd-home .pd-section-head h2 { font-size: 22px; }
  .pd-home .pd-section-head { margin-bottom: 14px; }

  .pd-home-trending { padding-bottom: 48px; }
  .pd-home-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pd-home-poster:nth-child(n + 5) { display: none; }
  .pd-home-poster-cover { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
  .pd-home-poster .pd-cover-tag { top: 10px; left: 10px; padding: 3px 6px; font-size: 10px; }
  .pd-home-poster .pd-cover-num { top: 8px; right: 10px; font-size: 22px; }
  .pd-home-poster-title { right: 10px; bottom: 16px; left: 10px; font-size: 19px; line-height: 1.15; }
  .pd-home-poster-title .pd-tt { padding: 2px 6px; }
  .pd-home-poster-by .pd-m { display: none; }
  .pd-home-poster-by a { font-size: 13px; }
  .pd-home-poster-meta { font-size: 10px; letter-spacing: 0.1em; }
  .pd-home .list-finish-later-button { top: 40px !important; left: 10px !important; width: 34px; height: 34px; }

  .pd-home-band-inner { gap: 28px; padding: 40px 16px 44px; }
  .pd-home-band-copy { flex-basis: 100%; }
  .pd-home-band-panel { flex-basis: 100%; padding: 20px; }
  .pd-home-band-digit { padding: 8px 10px; font-size: 26px; }
  .pd-home-band-sep { font-size: 22px; }
  .pd-home .pd-home-band-caption { flex-basis: 100%; margin-left: 0; }
  .pd-home-band-actions .pd-btn { flex: 1; }
  .pd-home-band-names .pd-d { font-size: 20px; }
  .pd-home-band-values .pd-d { font-size: 32px; }

  .pd-home-official { padding-bottom: 48px; }
  .pd-home-official-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd-home-off-title { font-size: 22px; }

  .pd-home-boards { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .pd-home-board .pd-panel-head,
  .pd-home-board .pd-row { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 380px) {
  .pd-home-hero-stats .pd-stat strong { font-size: 22px; }
  .pd-home-hero-stats { gap: 10px; }
}

.pd-home-resume-body > .pd-m:first-child { padding-right: 36px; }

/* ---------- members only: subscriptions band, unfinished business ---------- */
body:not(.site-authenticated) [data-home-band="premium"],
body.site-authenticated [data-home-band="guest"],
body:not(.site-authenticated) .pd-home-resume { display: none !important; }
.pd-home-resume[hidden],
.pd-home-resume-main[hidden] { display: none !important; }

.pd-home-resume.is-solo .pd-home-quests {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 28px;
}

.pd-home-resume.is-solo .pd-home-quests-head,
.pd-home-resume.is-solo .pd-home-quests-copy,
.pd-home-resume.is-solo .pd-home-quests-link { grid-column: 1 / -1; }

/* ---------- visitors: race format band ---------- */
.pd-home-how-text {
  max-width: 560px;
  margin: -6px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}

.pd-home-how-steps {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--pd-bg);
  color: var(--pd-ink);
}

.pd-home-how-steps li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--pd-line);
}

.pd-home-how-steps li:last-child { border-bottom: 0; }

.pd-home .pd-home-how-num {
  color: transparent !important;
  font-size: 52px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--pd-red);
}

.pd-home .pd-home-how-num.is-p1 { color: var(--pd-yellow) !important; -webkit-text-stroke: 0; }

.pd-home-how-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  text-transform: uppercase;
}

.pd-home-how-steps span:not(.pd-home-how-num) { color: var(--pd-soft); font-size: 14px; line-height: 1.45; }

@media (max-width: 760px) {
  .pd-home-how-steps li { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; }
  .pd-home .pd-home-how-num { font-size: 40px; }
}
