/* ============================================================
   Homepage — betpinnacle-homepage-redesign (1440) / home-mobile (390)
   ============================================================ */

/* ---------- hero ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero-wrap { position: relative; padding: 40px 0; }
.hero-bgword {
  position: absolute; left: 0; top: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 100px;
  line-height: 1; color: var(--ink); opacity: 0.05;
  pointer-events: none; user-select: none;
}
.hero-title { display: flex; flex-direction: column; gap: 2px; }
.hero-title span {
  font-family: var(--font-display); font-weight: 700; font-size: 48px;
  line-height: 1; letter-spacing: -1px;
}
.hero-title .ht-top { color: var(--ink); }
.hero-title .ht-bottom { color: var(--brown); }
.hero-text { font-size: 13px; line-height: 1.4; color: var(--ink); margin-top: 12px; max-width: 560px; }
.hero-content .arrow-link { margin-top: 12px; gap: 6px; }
.hero-athlete-m {
  width: 100%; height: 240px; object-fit: cover; border-radius: 8px; margin-top: 24px;
}
@media (min-width: 992px) {
  .hero-wrap { padding: 96px 0; min-height: 564px; }
  .hero-bgword { top: 120px; font-size: 220px; letter-spacing: -8px; line-height: 0.85; opacity: 0.06; }
  .hero-title { gap: 8px; }
  .hero-title span { font-size: 96px; letter-spacing: -2px; }
  .hero-text { font-size: 14px; line-height: 1.5; margin-top: 24px; width: 560px; }
  .hero-content { width: 560px; position: relative; z-index: 1; }
  .hero-content .arrow-link { margin-top: 24px; gap: 8px; }
  .hero-athlete {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 520px; height: 680px;
    background: url('../../img/hero-afl.webp') center / cover no-repeat;
  }
}

/* ---------- markets ---------- */
.markets { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.markets-header { display: flex; flex-direction: column; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.league-boards { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.league { display: flex; flex-direction: column; gap: 14px; }
.league-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; }
.league-header .lh-left { display: flex; align-items: center; gap: 8px; }
.league-header .lh-name { font-family: var(--font-ui); font-weight: 800; font-size: 15px; color: var(--ink); }
.league-header .lh-markets { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--muted); }
.league-header .lh-viewall { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--ink); }
.league-events { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 992px) {
  .markets-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .filters { gap: 12px; }
  .league-boards { gap: 40px; margin-top: 40px; }
  .league { gap: 24px; }
  .league-header { padding-bottom: 0; }
  .league-header .lh-left { gap: 12px; }
  .league-header .lh-name { font-size: 14px; }
  .league-header .lh-markets { font-weight: 800; color: var(--ink); }
  .league-header .lh-viewall { font-size: 13px; }
  .league-events { flex-direction: row; gap: 24px; }
  .league-events .event-card { flex: 1 1 0; }
}

/* ---------- next to jump ---------- */
.next-to-jump { background: var(--card); padding-bottom: 40px; }
.ntj-wrap { position: relative; width: 100%; }
.ntj-photo {
  width: 100%; height: 179px;
  background: linear-gradient(rgba(17,17,17,0.1), rgba(17,17,17,0.1)), url('../../img/racing-night.webp') center / cover no-repeat;
}
.race-dock {
  width: min(1200px, 100% - 32px); margin: 20px auto 0;
  background: var(--ink);
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
}
.race {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--hairline); padding: 12px; min-height: 56px;
}
.race-top { display: flex; align-items: center; gap: 10px; }
.race-num {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  font-family: var(--font-mono); font-weight: 900; font-size: 11px; color: var(--ink);
}
.race-time { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--accent); order: 2; }
.race-track { font-family: var(--font-ui); font-weight: 800; font-size: 14px; color: #ffffff; }
.race-detail { font-family: var(--font-ui); font-size: 11px; color: var(--slate); }
.race-view {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 800; font-size: 13px; color: var(--accent);
}
.race-view svg { width: 16px; height: 16px; }
/* mobile: rebuild the row layout */
.race { position: relative; padding-left: 48px; }
.race .race-num { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.race .race-track { display: block; }
.race .race-detail { display: block; margin-top: 2px; }
.race .race-top { position: static; }
.race .race-time { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.race-text-col { display: flex; flex-direction: column; }
@media (max-width: 991.98px) {
  .race { flex-direction: column; align-items: flex-start; justify-content: center; }
  .race-top { display: contents; }
}
@media (min-width: 992px) {
  .next-to-jump { padding-bottom: 0; }
  .ntj-wrap { width: min(1200px, 100% - 48px); }
  .ntj-photo {
    height: 560px;
    background-image: linear-gradient(rgba(17,17,17,0.08), rgba(17,17,17,0.08)), url('../../img/racing-night.webp');
  }
  .race-dock {
    position: absolute; left: 0; right: 0; top: 96px; width: auto; margin: 0;
    flex-direction: row; align-items: center; gap: 16px;
    height: 136px; padding: 0 24px;
  }
  .race {
    flex: 1 1 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    border: 0; border-left: 1px solid var(--hairline);
    padding: 16px; gap: 6px; min-height: 136px; height: 136px;
  }
  .race.is-featured { border-left: 0; }
  .race .race-num { position: static; transform: none; width: 34px; height: 34px; font-size: 14px; }
  .race .race-time { position: static; transform: none; font-size: 14px; color: #ffffff; }
  .race.is-featured .race-time { color: var(--accent); }
  .race-top { display: flex; }
  .race .race-track { font-size: 16px; margin-top: 6px; }
  .race .race-detail { font-size: 13px; margin-top: 6px; }
  .race-view { margin-top: 6px; }
}

/* ---------- choose your game ---------- */
.choose-game { background: var(--card); }
.game-rows { margin-top: 24px; }
.game-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; min-height: 58px;
  border-bottom: 1px solid var(--line);
}
.game-row:first-child { border-top: 1px solid var(--line); }
.gr-left { display: flex; align-items: baseline; gap: 8px; }
.gr-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.gr-markets { font-family: var(--font-mono); font-weight: 800; font-size: 12px; color: var(--muted); }
.gr-explore {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-weight: 800; font-size: 12px; color: var(--ink);
}
.gr-explore svg { width: 12px; height: 12px; }
@media (min-width: 992px) {
  .game-rows { margin-top: 40px; }
  .game-row { padding: 24px 0; min-height: 107px; }
  .game-row:first-child { border-top: 0; padding-top: 0; min-height: 83px; }
  .gr-left { align-items: center; gap: 12px; }
  .gr-name { font-size: 44px; }
  .gr-markets { font-weight: 900; font-size: 14px; color: var(--ink); }
  .gr-explore { gap: 8px; font-size: 13px; }
  .gr-explore svg { width: 16px; height: 16px; }
}

/* ---------- responsible wagering ---------- */
.responsible { background: var(--card); }
.rw-text { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 20px; }
.rw-divider { height: 1px; background: var(--line); margin-top: 40px; }
.tools { margin-top: 20px; }
.tool { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--muted); }
.tool-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tool-text { font-size: 13px; line-height: 1.25; color: var(--muted); }
.tool-link { font-family: var(--font-ui); font-weight: 800; font-size: 12px; color: var(--ink); margin-top: 4px; }
@media (min-width: 992px) {
  .responsible { padding-top: 0; }
  .rw-text { font-size: 16px; line-height: 1.5; max-width: 760px; color: var(--ink); }
  .tools { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
  .tool { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; gap: 12px; }
  .tool:last-child { border-bottom: 0; padding-bottom: 0; }
  .tool-num { font-size: 14px; letter-spacing: 1px; color: var(--ink-2); text-transform: uppercase; }
  .tool-title { font-size: 24px; }
  .tool-text { font-size: 14px; line-height: 1.5; color: var(--ink); }
  .tool-link { font-size: 13px; margin-top: 0; }
}

/* ---------- loss warning ---------- */
.loss-warning { background: var(--accent); padding: 40px 0; }
.lw-wrap { display: flex; flex-direction: column; gap: 24px; }
.lw-kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.lw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1.05; color: var(--ink); margin-top: 12px; text-transform: uppercase;
}
.lw-line1 { font-size: 13px; line-height: 1.4; color: var(--ink); margin-top: 12px; }
.lw-line2 { font-weight: 700; font-size: 13px; color: var(--ink); margin-top: 12px; }
.betstop-module {
  background: var(--ink); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #ffffff; }
.bm-text { font-size: 12px; line-height: 1.4; color: #ffffff; opacity: 0.9; }
.bm-link { font-family: var(--font-ui); font-weight: 800; font-size: 12px; color: var(--accent); }
@media (min-width: 992px) {
  .loss-warning { padding: 96px 0; }
  .lw-wrap { flex-direction: row; gap: 24px; }
  .lw-left { flex: 1; }
  .lw-title { font-size: 64px; margin-top: 16px; }
  .lw-line1 { font-size: 14px; line-height: 1; margin-top: 16px; }
  .lw-line2 { font-size: 14px; margin-top: 16px; }
  .betstop-module { width: 360px; flex: none; border-radius: 24px; padding: 24px; gap: 12px; }
  .bm-title { font-size: 44px; letter-spacing: -1px; }
  .bm-text { font-size: 14px; line-height: 1.2; opacity: 1; }
  .bm-link { font-size: 13px; color: #ffffff; }
}
