:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.55);
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius2: 22px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  color: var(--text);
  background: #0b1020; /* fallback */
}

/* Smooth anchor jumps across the site */
html {
  scroll-behavior: smooth;
}

/* Floating "Return to top" button (injected by static/site.js) */
.toTopBtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 20, 32, 0.78);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 9999;
}
.toTopBtn.isVisible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toTopBtn:hover {
  filter: brightness(1.08);
}
.toTopBtn:active {
  transform: translateY(1px);
}

/* SSR results pagination */
.paginationBar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 0 0 14px;
}
.rangeIndicator {
  color: var(--muted);
  font-size: 13px;
}
.pageSize select {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text);
}
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.pageNumbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pageBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.pageBtn:hover {
  filter: brightness(1.08);
}
.pageBtn.current {
  background: rgba(86, 110, 255, 0.25);
  border-color: rgba(86, 110, 255, 0.55);
  font-weight: 800;
}
.pageBtn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.pageEllipsis {
  color: var(--muted2);
  padding: 0 6px;
}

/* SSR results list "chevron" cards */
.resultsCards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 6px;
}
.resultCard {
  display: grid;
  grid-template-columns: 230px 1fr 44px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    border-color 0.12s ease;
}
.resultCard:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.resultCard:active {
  transform: translateY(0px);
}
.rcDateText {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.rcNumbers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rcBalls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.rcMultiplier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(255, 99, 132, 0.22);
  border: 1px solid rgba(255, 99, 132, 0.35);
}
.rcChevron {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 860px) {
  .resultCard {
    grid-template-columns: 1fr;
  }
  .rcChevron {
    justify-content: flex-end;
  }
  .rcNumbers {
    align-items: flex-start;
  }
  .rcBalls {
    justify-content: flex-start;
  }
}

/* Subtle highlight when jumping to a section */
.flashTarget {
  animation: flashTargetBg 1.2s ease;
}
@keyframes flashTargetBg {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  20% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* Seamless, symmetric background layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* The key: symmetric (0% == 100%), with the “change” centered */
  background:
    /* symmetric base */
    linear-gradient(
      180deg,
      #0b1020 0%,
      #0a1225 25%,
      #08102a 50%,
      #0a1225 75%,
      #0b1020 100%
    ),
    /* soft symmetric glows (positions mirrored) */
    radial-gradient(
        1100px 800px at 18% 22%,
        rgba(86, 110, 255, 0.18),
        transparent 70%
      ),
    radial-gradient(
      1100px 800px at 82% 78%,
      rgba(86, 110, 255, 0.18),
      transparent 70%
    ),
    radial-gradient(
      900px 650px at 84% 18%,
      rgba(255, 99, 132, 0.12),
      transparent 72%
    ),
    radial-gradient(
      900px 650px at 16% 82%,
      rgba(255, 99, 132, 0.12),
      transparent 72%
    ),
    radial-gradient(
      900px 650px at 50% 20%,
      rgba(54, 162, 235, 0.1),
      transparent 74%
    ),
    radial-gradient(
      900px 650px at 50% 80%,
      rgba(54, 162, 235, 0.1),
      transparent 74%
    );

  /* Helps prevent banding and makes transitions feel smoother */
  filter: saturate(1.05) contrast(1.02);
}

/* Optional: subtle grain to hide any remaining banding on some monitors */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(86, 110, 255, 0.9),
    rgba(255, 99, 132, 0.85)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.brand h1 {
  font-size: 14px;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.2px;
}
.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  margin-top: 14px;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
/* Sidebar nav (scaffold v2) */
.navItem,
.navGroupBtn,
.navSubGroupBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.navItem:hover,
.navGroupBtn:hover,
.navSubGroupBtn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.navItem.isActive,
.navSubItem.isActive {
  background: rgba(86, 110, 255, 0.2);
  color: var(--text);
  border: 1px solid rgba(86, 110, 255, 0.35);
}
.navItem__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.navIcon {
  width: 18px;
  height: 18px;
  opacity: 0.95;
  flex: 0 0 auto;
}
.navChevron {
  width: 16px;
  height: 16px;
  opacity: 0.75;
  flex: 0 0 auto;
}
.navDivider {
  height: 1px;
  background: var(--border);
  margin: 10px 6px;
  opacity: 0.8;
}
.navEmpty {
  padding: 6px 10px;
  color: var(--muted2);
  font-size: 12px;
}

.navGroup {
  margin-top: 4px;
}

.navGroupPanel {
  padding: 0 6px 0;
  /* smooth slide open/close */
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}
.navGroup.isOpen > .navGroupPanel {
  padding: 2px 6px 6px;
  max-height: 900px; /* big enough for all items */
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.navGroup.isOpen > .navGroupBtn .navChevron {
  transform: rotate(180deg);
}
.navSubGroup {
  margin-top: 6px;
}
.navSubGroupBtn {
  padding: 8px 10px;
}
.navGroupPanel .navSubGroupBtn {
  padding-left: 18px;
}

.navSubGroupPanel {
  /* smooth slide open/close */
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  visibility: hidden;
  pointer-events: none;
  padding: 0 6px 0 44px; /* increased indent for child links */
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}
.navSubGroup.isOpen > .navSubGroupPanel {
  padding: 2px 6px 6px 44px;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.navSubGroup.isOpen > .navSubGroupBtn .navChevron {
  transform: rotate(180deg);
}
.navGameName {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.navSubItem {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  padding-left: 50px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}
.navSubItem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--muted2);
}

/* Main */
.main {
  padding: 22px 18px 56px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.titleblock h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.titleblock p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.45;
  font-size: 14px;
}

.mobileToggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

section.card {
  border-radius: var(--radius2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cardHeader {
  padding: 16px 16px 0;
}
.cardHeader h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.cardHeader p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  max-width: 90ch;
}

.cardBody {
  padding: 14px 16px 16px;
}

.chartShell {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 360px;
}
.chartShell.tall {
  min-height: 520px;
}
.chartShell.short {
  min-height: 320px;
}

.status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--muted2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  display: none;
}
.status.show {
  display: inline-flex;
}

.footerNote {
  margin-top: 14px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}

/* Mobile sidebar overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.overlay.show {
  display: block;
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    z-index: 50;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobileToggle {
    display: inline-flex;
  }
}

/* Latest card */
.latestGrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
}
.latestPanel {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.latestTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.latestTitle {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14px;
}
.latestMeta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.ballsRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.ball {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1);
}
.ball.bonus {
  background: rgba(255, 99, 132, 0.22);
  border-color: rgba(255, 99, 132, 0.35);
}

/* Mega Millions: Mega Ball should be gold (not Powerball-red). */
.ball.bonus.gold {
  background: rgba(255, 211, 77, 0.24);
  border-color: rgba(255, 211, 77, 0.45);
}

.latestStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.stat {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.stat .label {
  color: var(--muted2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat .value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}

.latestLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.linkPill {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}
.linkPill:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn {
  border: 1px solid rgba(86, 110, 255, 0.35);
  background: rgba(86, 110, 255, 0.18);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.btn:hover {
  background: rgba(86, 110, 255, 0.24);
}

.btnGhost {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.btnGhost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Forms (feedback + future account pages) */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field .label {
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input,
.field textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(86, 110, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(86, 110, 255, 0.18);
}

.notice {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.notice--ok {
  border-color: rgba(60, 200, 140, 0.45);
}
.notice--err {
  border-color: rgba(255, 99, 132, 0.45);
}

.quickLinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 980px) {
  .latestGrid {
    grid-template-columns: 1fr;
  }
  .latestStats {
    grid-template-columns: 1fr;
  }
}

/* Data freshness badge */
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.freshness-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.freshness-badge.stale {
  color: rgba(255, 210, 120, 0.95);
  border-color: rgba(255, 210, 120, 0.28);
}
.freshness-badge[data-status='confirmed'] {
  color: rgba(140, 230, 170, 0.95);
  border-color: rgba(140, 230, 170, 0.35);
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}
.card-h h2 {
  margin: 0 0 6px;
}
.muted {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-24 {
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wtn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
.wtn-table--tight {
  min-width: 420px;
}
.wtn-table th,
.wtn-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}
.wtn-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}
.wtn-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Engagement + SEO blocks (Overview / Odds) --- */
.wtn-caption{
  caption-side: top;
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}

.wtn-summary{
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.wtn-summary > summary{
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}
.wtn-summary ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.wtn-mythlist{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.wtn-myth{font-weight: 800; color: var(--text);}
.wtn-fact{font-weight: 800; color: var(--text);}

.wtn-bars{display:flex; flex-direction:column; gap:10px;}
.wtn-barrow{display:grid; grid-template-columns: 180px 1fr 120px; gap:10px; align-items:center;}
.wtn-barlabel{font-size:12px; color: var(--muted);}
.wtn-barnote{font-size:12px; color: var(--muted2); text-align:right;}
.wtn-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.wtn-bar::after{
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--w) * 1%);
  background: rgba(255,255,255,0.38);
  border-radius: 999px;
}
@media (max-width: 520px){
  .wtn-barrow{grid-template-columns: 1fr; gap:6px;}
  .wtn-barnote{text-align:left;}
}

.wtn-faq details{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  margin: 0 0 10px;
}
.wtn-faq summary{cursor:pointer; font-weight: 800; color: var(--text);}
.wtn-faq .muted{margin-top: 8px;}

/* Mega Millions content images */
.mm-img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Match-balls layout */
.match-balls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 170px; /* keeps column stable */
}

/* White ball (CSS-only) */
.wb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    #f3f4f6 45%,
    #e5e7eb 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Powerball SVG sizing */
.pb {
  width: 22px;
  height: 22px;
  display: block;
}

/* “hit” vs “miss” styling */
.hit {
  opacity: 1;
  transform: translateZ(0);
}
.miss {
  opacity: 0.28;
  filter: grayscale(1);
}

/* Optional: slightly shrink on small screens */
@media (max-width: 520px) {
  .wb,
  .pb {
    width: 18px;
    height: 18px;
  }
  .match-balls {
    min-width: 140px;
    gap: 5px;
  }
}
.plus-sign {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
}

.wtn-helpbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.wtn-helpbar__label {
  font-weight: 700;
  margin-right: 2px;
}

.tip {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.tip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tipbox {
  position: absolute;
  z-index: 50;
  max-width: 360px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(20, 20, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.tipbox p {
  margin: 0 0 8px;
}
.tipbox p:last-child {
  margin-bottom: 0;
}

/* Power Play toggle */
.pp-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}
.pp-label {
  font-weight: 700;
}

.pp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 700;
}
.pp-pill:hover {
  background: rgba(255, 255, 255, 0.09);
}
.pp-pill.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

/* Hide/show payout columns cleanly */
.pp-fade {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.pp-hidden {
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  position: absolute;
  left: -99999px;
}

/* Powerball-style Draw Cards */
.pb-drawcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 520px));
  gap: 18px;
  align-items: stretch;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .pb-drawcards {
    grid-template-columns: 1fr;
  }
}

.pb-card {
  background:
    radial-gradient(
      1200px 500px at 20% -20%,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(180deg, #0f1b2d 0%, #0b1524 100%);

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  color: #e6e9ef;
}

.pb-latest-card,
.pb-next-card {
  max-width: 520px;
}

/* Small eyebrow header used on dashboard cards (e.g., "Next Drawing"). */
.pb-card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(159, 179, 209, 0.95);
  margin-bottom: 10px;
}

.pb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pb-game-logo {
  display: flex;
  align-items: center;
  height: 32px; /* locks header height */
}

.pb-game-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.pb-title-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 20px;
}

.pb-label {
  color: #9fb3d1;
}

.pb-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e6e9ef;
}

.pb-status--confirmed {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.14);
  color: rgba(167, 243, 208, 0.95);
}

.pb-status--provisional {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.14);
  color: rgba(253, 230, 138, 0.95);
}

.pb-status--unknown {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.92);
}

.pb-card-subtitle {
  text-align: center;
  margin-top: 14px;
  font-size: 26px;
  font-weight: 900;
  color: #e6e9ef;
}

.pb-next-date {
  color: rgba(230, 233, 239, 0.92);
  font-weight: 900;
}

.pb-countdown {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pb-countbox {
  width: 86px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 10px 8px;
  text-align: center;
}

.pb-countnum {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.pb-countlabel {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.pb-jackpot-block {
  margin-top: 18px;
  text-align: center;
}

.pb-jackpot-chip,
.pb-cash-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.pb-jackpot-amount {
  font-size: 56px;
  font-weight: 1100;
  margin: 12px 0 14px;
  color: #e11d48; /* red emphasis */
}

.pb-cash-chip {
  margin-top: 4px;
}

.pb-cash-amount {
  font-size: 34px;
  font-weight: 1000;
  margin-top: 10px;
  color: #e11d48;
}

.pb-balls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.pb-ball {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #cfd6e4);
  color: #0b1524;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.pb-ball--bonus {
  background: #c8102e;
  color: #fff;
}

/* Mega Millions bonus ball (gold) */
.pb-ball--gold {
  background: #f2c84b;
  color: #0b1524;
}

/* Mega Ball SVG sizing (used in Mega Millions prize chart) */
.mb {
  width: 22px;
  height: 22px;
  display: block;
}

/* -------------------------------
   Game logos (Powerball / Mega Millions)
----------------------------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wtn-game-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wtn-game-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.wtn-game-logo--nav {
  height: 18px;
  max-width: 120px;
}

.wtn-game-logo--top {
  height: 28px;
  max-width: 200px;
}

.wtn-game-h2 {
  line-height: 1.1;
}

.wtn-game-h2-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wtn-game-h2-text {
  font-weight: 900;
}

.wtn-game-link-text {
  font-weight: 900;
}

.pb-multiplier {
  background: #e10600;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  margin: 6px auto 22px;
  width: fit-content;
}

.pb-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Wrap-friendly actions (used on result detail) */
.pb-actions--wrap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}

.pb-actions--wrap .pb-btn {
  flex: 1 1 220px;
  min-width: 220px;
}

@media (max-width: 520px) {
  .pb-actions--wrap .pb-btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* Result detail nav + insights */
.navRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 12px;
}

.navCol {
  flex: 1 1 240px;
}

.navLabel {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.insightIntro {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.insightSection {
  margin: 18px 0 10px;
  font-size: 18px;
}

.insightGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.insightCard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.insightBallRow {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.insightBall {
  width: 50px;
  height: 50px;
  font-size: 20px;
}

.insightStats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insightStat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.insightStat span {
  color: rgba(255, 255, 255, 0.72);
}
.insightStat b {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
}

.pb-btn {
  display: block;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.pb-dashboard-latest {
  max-width: none;
}

.pb-btn--primary {
  background: linear-gradient(180deg, #1f2f52, #182647);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pb-btn--primary:hover {
  filter: brightness(1.05);
}

.pb-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  opacity: 0.92;
}

.pb-btn--secondary:hover {
  opacity: 1;
}

@media (max-width: 520px) {
  .pb-card {
    padding: 18px;
  }
  .pb-title-pill {
    font-size: 18px;
  }
  .pb-card-subtitle {
    font-size: 22px;
  }
  .pb-ball {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
  .pb-jackpot-amount {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navGroupPanel,
  .navSubGroupPanel {
    transition: none;
    transform: none;
  }
}

.analysis-intro {
  margin-bottom: 24px;
}

.analysis-intro__lead {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.analysis-intro__list {
  margin-left: 1.2rem;
  margin-bottom: 16px;
}

.analysis-intro__list li {
  margin-bottom: 6px;
}

.analysis-intro__disclaimer {
  font-size: 0.9rem;
  color: var(--muted-text, #666);
}
.dropdownMenu {
  position: relative;
  display: inline-block;
  border: 1px solid rgba(86, 110, 255, 0.35);
  background: rgba(86, 110, 255, 0.18);
  color: var(--text);
}