@font-face {
  font-family: "Dash Fallback";
  src: local("Liberation Sans"), local("Arial");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
body.home-dash {
  --dash-ink: #07101c;
  --dash-paper: #e7eef6;
  --dash-card: #f7f9fc;
  --dash-muted: #5c6b7e;
  --dash-line: rgba(16, 32, 51, 0.12);
  --dash-focus: #d6ff6a;
  --dash-font: "Outfit", "Dash Fallback", sans-serif;
  --pb: #e11d3a;
  --mm: #1d4ed8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 8.75rem);
}
body.home-dash {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dash-font);
  color: #e7eef8;
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(56, 120, 220, 0.35), transparent 60%),
    radial-gradient(700px 420px at 10% 20%, rgba(225, 29, 58, 0.16), transparent 55%),
    var(--dash-ink);
}
body.home-dash.is-mm {
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(29, 78, 216, 0.42), transparent 60%),
    radial-gradient(700px 420px at 8% 16%, rgba(214, 255, 106, 0.08), transparent 50%),
    var(--dash-ink);
}
body.home-dash .hero img,
body.home-dash .sheet img { max-width: 100%; }
body.home-dash .hero button,
body.home-dash .sheet button,
body.home-dash .sheet input { font: inherit; }
body.home-dash .hero :focus-visible,
body.home-dash .sheet :focus-visible,
body.home-dash .dash-nav :focus-visible,
body.home-dash #detail :focus-visible,
body.home-dash #motion-toggle:focus-visible,
body.home-dash .float-ball:focus-visible {
  outline: 3px solid var(--dash-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #102033;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 8px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.preview-compliance {
  margin: 0;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  text-align: center;
  background: #102033;
  color: #d5deea;
  font-size: 0.92rem;
}
.preview-compliance a { color: #ffd56a; }

.nav-wrap {
  position: sticky;
  top: max(8px, env(safe-area-inset-top, 0px));
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.dash-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  width: min(1120px, 100%);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.dash-nav a, .preview-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: #f4f7fb;
  text-decoration: none;
}
.dash-nav a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.dash-nav .brand,
body.home-dash .header-top .brand { gap: 8px; font-weight: 650; padding-right: 4px; }
.dash-nav .brand img,
body.home-dash .header-top .brand img { display: block; }
body.home-dash .site-header .header-bar {
  width: min(1120px, calc(100% - 16px));
  max-width: calc(100vw - 16px);
  margin: 8px auto 0;
  padding: 6px 10px;
  border-radius: 24px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
}
body.home-dash .header-top,
body.home-dash .header-actions {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
body.home-dash .header-bar:not(.nav-collapsed) > .nav a,
body.home-dash .header-bar.nav-collapsed > .nav.is-open a {
  color: #f4f7fb;
  min-height: 44px;
}
body.home-dash .header-bar.nav-collapsed > .nav.is-open {
  background: #10192a;
  z-index: 60;
}
body.home-dash .nav-menu-btn,
body.home-dash .display-toggle { min-height: 44px; }
body.home-dash .tip-chip,
body.home-dash .tip-chip:hover { color: #1a1404; text-decoration: none; }
.preview-tag {
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d5e6;
  font-size: 0.85rem;
}

.hero, .sheet { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: end;
  padding: 36px 0 18px;
}
.hero .kicker, #detail-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9eb0c8;
}
.hero h1,
.hero .lede,
.hero .kicker,
.hero .controls,
.hero .window-note,
.float-head p { font-family: Outfit, "Dash Fallback", sans-serif; }
.hero h1 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}
.hero .lede { max-width: 42rem; color: #c5d2e4; font-size: 1.08rem; line-height: 1.45; }
.hero .controls { display: grid; gap: 10px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 8.75rem); }
.hero .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .seg-btn, .sheet .pool-btn, .count-ball {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7fb;
  padding: 0 16px;
  cursor: pointer;
}
.hero .seg-btn.is-on { background: #f4f7fb; color: #102033; border-color: transparent; }
.hero .seg-btn.is-on[data-game="POWERBALL"] { background: var(--pb); color: #fff; }
.hero .seg-btn.is-on[data-game="MEGAMILLIONS"] { background: var(--mm); color: #fff; }
.window-note { margin: 0; color: #b7c6da; min-height: 2.6em; }

.sheet {
  background: var(--dash-paper);
  color: #142033;
  border-radius: 32px;
  padding: 22px 18px 48px;
  margin-bottom: 36px;
  color-scheme: light;
}
.sheet a { color: #1d4ed8; }
body.home-dash .site-header {
  z-index: 40;
  background: rgba(7, 16, 28, 0.94);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-dash .sheet .key-facts,
body.home-dash .sheet .panel {
  background: #ffffff;
  color: #142033;
  border: 1px solid rgba(16, 32, 51, 0.12);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-dash .sheet .stat-value,
body.home-dash .sheet .tone-gold,
body.home-dash .sheet .tone-success,
body.home-dash .sheet .tone-warn,
body.home-dash .sheet .key-facts h2 { color: #142033; }
body.home-dash .sheet .lm-help { color: #3d4d63; }
.sheet .loading, .sheet .error {
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
}
.sheet .error { border: 1px solid #e11d3a; }

.bento {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  grid-template-areas:
    "lead count range"
    "lead overdue bonus";
  gap: 14px;
}
.metric {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--dash-card);
  border: 1px solid var(--dash-line);
  min-width: 0;
}
.metric h2, .method h2 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 650; }
.metric p, .method p { margin: 0; line-height: 1.45; }
.metric .num {
  display: block;
  margin: 8px 0 4px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-size: clamp(3rem, 7vw, 5.4rem);
}
.metric-lead { grid-area: lead; background: #fff; }
.metric-count { grid-area: count; background: #12315f; color: #f4f7fb; }
.metric-range { grid-area: range; }
.metric-overdue { grid-area: overdue; background: #121826; color: #f4f7fb; }
.metric-bonus { grid-area: bonus; }
body.home-dash.is-pb .metric-bonus { background: #ffe8ec; }
body.home-dash.is-mm .metric-bonus { background: #e7eeff; }
.sheet .meta { color: var(--dash-muted); font-size: 0.92rem; }
.metric-count .meta, .metric-overdue .meta { color: #c5d0e0; }

.pool-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 12px;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 8.75rem);
}
.sheet .pool-btn,
.sheet th button {
  background: #ffffff;
  color: #142033;
  border: 1px solid #4d5d72;
}
.sheet .pool-btn:hover,
.sheet th button:hover { background: #d5e0ec; color: #102033; }
.sheet .pool-btn:focus-visible,
.sheet th button:focus-visible { outline: 3px solid #102033; outline-offset: 3px; }
.sheet .pool-btn.is-on,
.sheet .pool-btn.is-on:hover {
  background: #142033;
  color: #ffffff;
  border-color: #142033;
}
.sheet .pool-btn,
.sheet .count-ball,
.sheet th button { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 8.75rem); }
.sheet .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}
.count-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 4px;
  border-radius: 16px;
  background: #fff;
  color: #142033;
  border: 1px solid var(--dash-line);
}
.count-ball .ball-n { font-weight: 700; font-size: 1.05rem; }
.count-ball .ball-c { font-size: 0.72rem; color: var(--dash-muted); }
.count-ball.is-top { box-shadow: inset 0 0 0 2px currentColor; }
body.home-dash.is-pb .count-ball.is-top { color: var(--pb); }
body.home-dash.is-mm .count-ball.is-top { color: var(--mm); }
.bonus-grid .count-ball { border-radius: 999px; }

.viz-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-top: 28px; }
.bars { display: grid; gap: 8px; margin: 12px 0 18px; }
.bar-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; }
.bar-track { height: 14px; border-radius: 999px; background: rgba(16, 32, 51, 0.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--pb); border-radius: inherit; }
body.home-dash.is-mm .bar-fill { background: var(--mm); }
.sheet .table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--dash-line); background: #fff; }
.sheet table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sheet th, .sheet td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dash-line); vertical-align: middle; }
.sheet th button {
  border-radius: 8px;
  padding: 0 4px;
  min-height: 44px;
}
.row-bar { display: inline-block; height: 8px; border-radius: 999px; background: #12315f; vertical-align: middle; }
body.home-dash.is-pb .row-bar { background: var(--pb); }
body.home-dash.is-mm .row-bar { background: var(--mm); }
.sheet caption { text-align: left; padding: 12px; font-weight: 650; color: #142033; }

.method { margin-top: 28px; max-width: 72ch; }
.method h2 { font-size: 1.4rem; }

#detail {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100% - 24px));
}
#detail::backdrop { background: rgba(7, 16, 28, 0.62); }
.detail-card {
  background: #f7f9fc;
  color: #142033;
  border-radius: 24px;
  padding: 18px;
}
.detail-card h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 550; letter-spacing: -0.04em; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.detail-facts div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.detail-facts dt { color: var(--dash-muted); font-size: 0.82rem; }
.detail-facts dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 650; }
#detail-recent { margin: 8px 0 16px; padding-left: 1.1rem; }
#detail-recent li { margin: 6px 0; }
.hit { font-weight: 750; }
.btn-dark { background: #142033; color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
#detail-close { margin-bottom: 8px; background: #fff; color: #142033; }

.float-stage {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.float-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.float-head p { margin: 0; max-width: 46rem; color: #c5d2e4; font-size: 0.95rem; }
#motion-toggle {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f4f7fb;
  padding: 0 16px;
  cursor: pointer;
}
.float-bounds {
  position: relative;
  height: 148px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.float-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.float-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-weight: 700;
  color: #1a1408;
  background:
    radial-gradient(circle at 32% 26%, #ffffff 0%, #fff8ee 18%, transparent 34%),
    radial-gradient(circle at 32% 28%, #ffffff 0%, #f3ecdf 42%, #c9bfae 100%);
  box-shadow: inset 0 -10px 14px rgba(70, 48, 20, 0.22), inset 0 2px 4px #ffffff, 0 8px 16px rgba(12, 18, 32, 0.16);
}
.float-ball.kind-pb .float-face {
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 32% 30%, #ffb3be 0%, #e11d3a 46%, #7a0c1e 100%);
  box-shadow: inset 0 -12px 14px rgba(0, 0, 0, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.45), 0 8px 16px rgba(122, 12, 30, 0.28);
}
.float-ball.kind-mm .float-face {
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 32% 30%, #b9d0ff 0%, #1d4ed8 48%, #14275f 100%);
  box-shadow: inset 0 -12px 14px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.4), 0 8px 16px rgba(12, 24, 90, 0.28);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.preview-motion-off) .float-face { transition: transform 180ms ease, box-shadow 180ms ease; }
  html:not(.preview-motion-off) .float-ball:hover .float-face,
  html:not(.preview-motion-off) .float-ball:focus-visible .float-face {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 16px 22px rgba(0, 0, 0, 0.32), inset 0 -10px 14px rgba(70, 48, 20, 0.22), inset 0 2px 4px #ffffff;
  }
}
html.preview-motion-off .float-ball:hover .float-face,
html.preview-motion-off .float-ball:focus-visible .float-face,
html.preview-reduced .float-ball:hover .float-face,
html.preview-reduced .float-ball:focus-visible .float-face {
  box-shadow: 0 0 0 3px #d6ff6a, inset 0 -10px 14px rgba(70, 48, 20, 0.22), inset 0 2px 4px #ffffff;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .dash-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    max-width: calc(100vw - 24px);
    scrollbar-width: thin;
  }
  .dash-nav a, .dash-nav .preview-tag, .dash-nav .tip-chip { flex: none; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.55rem); }
  .lede { font-size: 1rem; margin-bottom: 0.4rem; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "count" "range" "overdue" "bonus";
  }
  .float-bounds { height: 64px; }
  .float-ball, .float-ball .float-face { width: 48px; height: 48px; }
  .float-ball:nth-child(n + 4) { display: none; }
  .hero { padding-bottom: 8px; }
}
.home-dash .analytics-choice,
.home-dash .ads-notice,
.home-dash .guarantee-bar {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 8.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
