:root {
  color-scheme: light;
  --teal: #00796f;
  --teal-dark: #00584f;
  --teal-deep: #004b43;
  --pink: #cf3865;
  --pink-soft: #fff0f4;
  --orange: #ee8a24;
  --cream: #f7f5ef;
  --sand: #ebe4d8;
  --ink: #061d1c;
  --muted: #536260;
  --line: #ded8ca;
  --white: #ffffff;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.45;
}

a {
  color: var(--pink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: white;
}

.skip-link:focus { left: 8px; }

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 39px;
  padding: 8px 20px;
  background: var(--pink);
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.notice-bar a {
  color: white;
  font-weight: 900;
}

.notice-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--pink);
  font-weight: 950;
}

.draw-countdown {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: white;
  font-size: 0.82rem;
  white-space: nowrap;
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 40px;
  padding: 0 50px;
  background: var(--teal-dark);
}

.utility-bar nav,
.main-nav,
.nav-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-bar a {
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  display: grid;
  position: sticky;
  top: 0;
  z-index: 50;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  min-height: 80px;
  padding: 0 51px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  margin-top: 8px;
  border: 7px solid white;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, #ffef8f 0 12%, transparent 13%),
    conic-gradient(from 20deg, #e73658, #f69027, #ffe06a, #0bb287, #00796f, #e73658);
  box-shadow: var(--shadow);
  color: white;
  line-height: 0.88;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-8deg);
}

.brand-seal span {
  font-family: Georgia, serif;
  font-size: 1.26rem;
  font-style: italic;
  font-weight: 900;
}

.brand-seal strong {
  display: block;
  color: #fff1a7;
  font-size: 1.45rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.main-nav a,
.where-link {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a::after {
  content: "⌄";
  margin-left: 7px;
  color: var(--pink);
  font-weight: 900;
}

.where-link {
  color: var(--pink);
}

.brand {
  min-width: 0;
}

.brand-name {
  line-height: 1;
  white-space: nowrap;
}

.main-nav a,
.where-link {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  margin-left: 0;
  border-radius: 999px;
  background: transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.where-link:hover,
.where-link[aria-current="page"] {
  color: var(--teal-dark);
}

.main-nav a[aria-current="page"]::after {
  background: var(--pink);
}

.nav-actions {
  justify-content: flex-end;
  gap: 14px;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-lock {
  overflow-x: hidden;
}

.pink-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: white;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 31px;
  padding: 0 51px;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.game-hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: white;
}

.game-hero::before,
.game-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.game-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 2% 70%, rgba(255, 255, 255, 0.08) 0 90px, transparent 91px),
    radial-gradient(circle at 42% 15%, rgba(0, 77, 69, 0.4) 0 170px, transparent 171px);
}

.game-hero::after {
  right: -120px;
  top: 0;
  width: 700px;
  height: 440px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 22%, var(--orange) 23% 39%, transparent 40% 49%, var(--pink) 50% 58%, transparent 59% 100%);
  opacity: 0.98;
  transform: rotate(-17deg);
}

.leaf {
  position: absolute;
  z-index: 1;
  width: 280px;
  height: 170px;
  border-radius: 70% 30% 70% 30%;
  background: rgba(0, 80, 70, 0.42);
  transform: rotate(26deg);
}

.leaf-one {
  left: -70px;
  top: 40px;
}

.leaf-two {
  right: 120px;
  bottom: -80px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 384px;
  gap: clamp(38px, 9vw, 135px);
  align-items: start;
  max-width: 1248px;
  margin: 0 auto;
  padding: 48px 50px 26px;
}

.prize-panel {
  position: relative;
  min-height: 288px;
  overflow: hidden;
  border-radius: 6px;
  padding: 51px 32px;
  background: rgba(0, 72, 64, 0.88);
}

.prize-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 55%, rgba(255, 255, 255, 0.08) 0 170px, transparent 171px);
  pointer-events: none;
}

.panel-label,
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prize-panel time {
  display: block;
  margin-bottom: 7px;
  color: white;
  font-size: 1.25rem;
  font-weight: 950;
  text-transform: uppercase;
}

.top-prize {
  display: block;
  margin-bottom: 27px;
  color: white;
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.dark-button,
.soft-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 4px;
  background: var(--teal-deep);
  color: white;
  font-weight: 950;
  text-decoration: none;
}

.soft-button {
  min-height: 39px;
  margin-top: 18px;
  background: var(--pink-soft);
  color: var(--pink);
}

.money-burst {
  position: absolute;
  right: -18px;
  top: 42px;
  width: 230px;
  height: 220px;
  opacity: 0.78;
  pointer-events: none;
}

.draw-ball {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 950;
  box-shadow: inset -7px -9px 0 rgba(0, 0, 0, 0.08);
}

.ball-one { right: 62px; top: 33px; width: 48px; height: 48px; transform: rotate(-14deg); }
.ball-two { right: 102px; top: 82px; width: 56px; height: 56px; transform: rotate(8deg); }
.ball-three { right: 0; bottom: 0; width: 98px; height: 98px; font-size: 3rem; transform: rotate(-12deg); }

.bill {
  position: absolute;
  width: 76px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  background: rgba(144, 220, 190, 0.86);
  transform: rotate(-18deg);
}

.bill::after {
  content: "$";
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(0, 75, 67, 0.9);
  font-weight: 950;
}

.bill-one { left: 8px; top: 25px; }
.bill-two { left: 40px; top: 122px; transform: rotate(26deg); }

.today-card {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  padding: 41px 36px;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.game-logo,
.mini-game-logo {
  display: inline-grid;
  place-items: center;
  color: #00b98c;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 950;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 white, 2px 2px 0 var(--orange);
}

.game-logo {
  margin-bottom: 16px;
  font-size: 2.1rem;
}

.game-logo strong,
.mini-game-logo strong {
  color: #ff7c2b;
  font-size: 1.22em;
}

.today-card h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.today-number-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 22px;
}

.today-result {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.today-result p,
.past-number span {
  margin: 0;
  color: #0d2928;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.today-result span {
  color: #0d2928;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-result strong,
.past-number strong {
  display: grid;
  width: 39px;
  height: 39px;
  margin-top: 5px;
  place-items: center;
  border-radius: 50%;
  background: #f1eee7;
  color: var(--ink);
  font-weight: 950;
}

.today-result em,
.past-number em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.draw-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 675px;
  margin-left: 51px;
  padding: 14px 0 118px;
}

.draw-facts article {
  min-height: 132px;
  padding: 0 37px;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  text-align: center;
}

.draw-facts article:last-child { border-right: 0; }

.fact-icon {
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.75rem;
  font-weight: 950;
}

.draw-facts p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}

.draw-facts strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.18;
  text-transform: uppercase;
}

.answer-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1198px;
  margin: -44px auto 0;
  padding: 0 51px;
}

.answer-strip article {
  border-radius: 7px;
  padding: 16px 18px;
  background: white;
  box-shadow: var(--shadow);
}

.answer-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.answer-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.32;
}

.search-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -42px;
  display: grid;
  width: calc(100% - 102px);
  max-width: 1248px;
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.7fr) minmax(250px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}

.payout-calculator-panel {
  max-width: 1040px;
  grid-template-columns: minmax(210px, 0.9fr) minmax(160px, 0.75fr) minmax(250px, 1fr) auto;
  column-gap: 14px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.search-panel label span,
label span {
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
}

.search-panel strong {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #243230;
  font-weight: 500;
  text-transform: uppercase;
}

.calculator-panel-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.calculator-panel-title span {
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calculator-panel-title strong {
  min-height: 41px;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.05;
}

.quick-payout {
  display: flex;
  min-height: 41px;
  align-items: center;
  margin: 0;
  color: var(--pink);
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

input,
select {
  min-height: 41px;
  min-width: 0;
  border: 1px solid #d9d3c7;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
}

select,
input {
  width: 100%;
  max-width: 100%;
  padding: 8px 11px;
}

.reset-button {
  width: 44px;
  min-height: 41px;
  border: 0;
  background: white;
  color: var(--pink);
  font-size: 1.55rem;
  cursor: pointer;
}

.search-button {
  min-height: 64px;
}

.tabs-section {
  padding: 88px 51px 58px;
  background: var(--cream);
}

.content-tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  max-width: 1248px;
  margin: 0 auto 108px;
  border-bottom: 2px solid var(--line);
}

.content-tabs a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  padding: 0 6px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.content-tabs a.active {
  border: 2px solid var(--pink);
  border-bottom-color: var(--pink);
}

.past-heading {
  text-align: center;
}

.past-heading h1,
.past-heading h2,
.guide-section h2,
.faq-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.past-heading .eyebrow {
  color: var(--teal);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.past-heading .pink-button {
  margin-top: 33px;
}

.archive-copy {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

.range-label {
  max-width: 1024px;
  margin: 45px auto 15px;
  color: var(--ink);
  text-transform: uppercase;
}

.range-label strong {
  margin-right: 6px;
  font-weight: 950;
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  max-width: 1024px;
  margin: 0 auto 18px;
  padding: 14px;
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.history-filters,
.history-filters * {
  box-sizing: border-box;
}

.history-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.history-filters .pink-button,
.history-filters .reset-button {
  min-height: 41px;
}

.history-empty {
  padding: 22px;
  border-radius: 7px;
  background: white;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.history-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 1024px;
  margin: 20px auto 0;
}

.history-pagination button {
  min-height: 39px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.history-pagination button:disabled {
  background: #c9c2b5;
  cursor: default;
}

.history-pagination span {
  color: var(--muted);
  font-weight: 850;
}

.history-pagination span em {
  display: inline-block;
  margin-left: 8px;
  color: var(--teal);
  font-style: normal;
}

.archive-section {
  padding-top: 54px;
}

.results-archive-page .content-tabs {
  margin-bottom: 48px;
}

.results-archive-page .history-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
}

.results-archive-page .history-filters .reset-button,
.results-archive-page .history-filters .pink-button {
  width: 100%;
}

.history-table-shell {
  max-width: 1180px;
  margin: 22px auto 0;
  border: 1px solid rgba(16, 36, 34, 0.08);
  border-radius: 7px;
  background: white;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.history-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.history-table-toolbar strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.history-table-toolbar span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.ball-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.ball-legend span,
.table-ball {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.archive-status:not(:empty) {
  padding: 14px 20px 0;
}

.history-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.archive-results-table {
  min-width: 860px;
  margin-top: 0;
}

.archive-results-table th {
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.archive-results-table td {
  vertical-align: middle;
}

.archive-results-table tbody tr:nth-child(even) {
  background: #fbfaf6;
}

.archive-results-table tbody tr:hover {
  background: #fff4f7;
}

.table-subtext {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-number-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #f1eee7;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.history-empty-cell {
  padding: 22px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.history-pagination-top {
  margin-top: 14px;
  margin-bottom: 14px;
}

.history-table-shell .history-pagination {
  max-width: none;
  margin: 0;
  padding: 16px 22px 20px;
}

.history-table-shell .history-pagination-top {
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.history-mobile-list {
  display: none;
}

.past-results-list {
  display: grid;
  gap: 20px;
  max-width: 1024px;
  margin: 0 auto;
}

.past-card {
  display: grid;
  grid-template-columns: 150px 1fr 40px;
  gap: 30px;
  align-items: center;
  min-height: 156px;
  padding: 26px 31px;
  border-radius: 7px;
  background: white;
}

.mini-game-logo {
  font-size: 1.52rem;
}

.past-card h3 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.past-number-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 34px;
}

.past-number {
  display: grid;
  justify-items: center;
  min-width: 55px;
}

.details-toggle {
  border: 0;
  background: white;
  color: var(--pink);
  font-size: 1.8rem;
  cursor: pointer;
}

.info-grid,
.guide-section,
.faq-section {
  padding: 66px 51px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  background: white;
}

.info-grid article,
.guide-section article {
  border-radius: 7px;
  padding: 27px;
  background: var(--cream);
}

.info-grid h2,
.guide-section h2,
.faq-section h2 {
  margin-bottom: 22px;
}

.basics-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.basics-row strong {
  color: var(--teal);
}

label {
  display: block;
  margin: 13px 0 7px;
  font-weight: 850;
}

.payout {
  display: block;
  margin-top: 18px;
  color: var(--pink);
  font-size: 2.8rem;
  font-weight: 950;
}

.dream-results {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.dream-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 5px;
  background: white;
}

.dream-item strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #f1eee7;
}

.guide-section {
  background: var(--teal);
  color: white;
  text-align: center;
}

.guide-section h2,
.guide-section .eyebrow {
  color: white;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.guide-section article {
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
}

.guide-section article span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--teal);
  font-weight: 950;
}

.faq-section {
  max-width: 950px;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.site-footer {
  padding: 38px 51px;
  background: var(--teal-dark);
  color: white;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.site-footer a {
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 24px;
}

.page h1 {
  margin: 0 0 16px;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.page-lead {
  max-width: 760px;
  color: #34423d;
  font-size: 1.16rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.card {
  border-radius: 7px;
  padding: 18px;
  background: white;
}

.small-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  background: white;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 24px;
  }

  .main-nav,
  .nav-actions {
    flex-wrap: wrap;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .today-card {
    max-width: 560px;
  }

  .search-panel,
  .history-filters,
  .info-grid,
  .step-grid,
  .answer-strip {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 48px);
    margin: -60px auto 0;
    transform: none;
  }

  .answer-strip {
    margin-top: 18px;
  }

  .draw-facts {
    max-width: none;
    margin: 0;
    padding: 24px 24px 90px;
  }
}

@media (max-width: 760px) {
  .notice-bar,
  .utility-bar,
  .breadcrumb,
  .hero-inner,
  .answer-strip,
  .tabs-section,
  .info-grid,
  .guide-section,
  .faq-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .utility-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .utility-bar nav,
  .main-nav,
  .nav-actions,
  .content-tabs {
    gap: 14px;
    overflow-x: auto;
  }

  .brand-seal {
    width: 58px;
    height: 58px;
    border-width: 5px;
  }

  .site-header {
    padding-top: 8px;
    padding-bottom: 12px;
    min-height: 0;
    gap: 8px;
  }

  .brand-name {
    display: none;
  }

  .main-nav,
  .nav-actions {
    gap: 9px;
  }

  .pink-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .game-hero::after {
    right: -260px;
    opacity: 0.65;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .prize-panel {
    min-height: 252px;
    padding: 30px 22px;
  }

  .money-burst {
    opacity: 0.45;
    right: -20px;
  }

  .today-number-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
  }

  .today-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .draw-facts {
    grid-template-columns: 1fr;
    padding-bottom: 34px;
  }

  .draw-facts article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding: 20px;
  }

  .past-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .past-number-row {
    justify-content: center;
  }

  .details-toggle {
    justify-self: center;
  }

  .past-heading h2,
  .guide-section h2,
  .faq-section h2,
  .page h1 {
    font-size: 2.45rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .search-panel {
    width: calc(100% - 36px);
    margin-top: 18px;
  }

  .history-filters {
    grid-template-columns: 1fr;
  }

  .search-button {
    min-height: 48px;
  }
}

/* Cash Pot focused page refinements */
.main-nav button,
.where-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a::after,
.main-nav button::after {
  content: "" !important;
}

.game-hero {
  padding-bottom: 72px;
}

.game-hero::after {
  right: -150px;
  width: 640px;
  height: 420px;
}

.hero-inner {
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 430px);
  gap: clamp(34px, 6vw, 86px);
  padding-top: 38px;
  padding-bottom: 18px;
}

.payout-panel {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border-radius: 7px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(0, 68, 61, 0.96), rgba(0, 95, 82, 0.9)),
    var(--teal-deep);
}

.payout-panel h1 {
  max-width: 470px;
  margin: 0;
  color: white;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.payout-figure {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 2px 14px;
  align-items: end;
  padding: 14px 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.payout-figure span,
.payout-figure em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.payout-figure strong {
  grid-row: span 2;
  color: var(--gold, #ffd42a);
  font-size: 3rem;
  line-height: 0.9;
}

.today-card {
  min-height: 340px;
  align-self: start;
  padding: 28px 30px;
}

.today-card h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.today-number-grid {
  gap: 12px 12px;
}

.today-result {
  min-width: 0;
  gap: 1px;
}

.today-result strong {
  width: 38px;
  height: 38px;
  font-size: 1.08rem;
}

.today-result p,
.past-number span {
  font-size: 0.76rem;
}

.today-result span,
.today-result em {
  font-size: 0.7rem;
}

.bonus-row,
.bonus-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.bonus-balls.compact {
  gap: 5px;
  margin-top: 6px;
}

.bonus-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  color: #3d4743;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mini-ball {
  display: inline-grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  place-items: center;
  border: 1px solid rgba(6, 29, 28, 0.18);
  border-radius: 50%;
  background: #d8d2c6;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), 0 1px 3px rgba(0, 0, 0, 0.16);
}

.mini-ball.gold {
  border-color: #c59600;
  background: radial-gradient(circle at 32% 28%, #fff8b1 0 18%, #ffd636 36%, #d59b00 100%);
}

.mini-ball.red {
  border-color: #a8274d;
  background: radial-gradient(circle at 32% 28%, #ffd7e1 0 18%, #d93464 42%, #941d43 100%);
}

.mini-ball.white {
  background: radial-gradient(circle at 32% 28%, #ffffff 0 24%, #f5f2e8 55%, #d5cfc3 100%);
}

.mini-ball.pending {
  background: repeating-linear-gradient(45deg, #f4f0e7, #f4f0e7 3px, #ded7ca 3px, #ded7ca 6px);
}

.bonus-pill {
  display: inline-flex;
  justify-content: center;
  min-height: 17px;
  min-width: 0;
  align-items: center;
  border-radius: 999px;
  padding: 2px 5px;
  border: 1px solid #e6dfd2;
  background: #f8f5ec;
  color: #2b3634;
  font-size: 0.56rem;
  font-weight: 900;
}

.bonus-pill.gold {
  border-color: #e6be1c;
  background: #ffe680;
}

.bonus-pill.red {
  border-color: #cf3865;
  background: #ffe8ef;
}

.bonus-pill.white {
  background: white;
}

.bonus-pill.pending {
  color: #8a7e69;
}

.result-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.draw-facts {
  max-width: 930px;
  margin: 0 auto;
  padding: 14px 50px 18px;
}

.search-panel {
  position: relative;
  left: auto;
  bottom: auto;
  width: calc(100% - 102px);
  margin: 18px auto 0;
  transform: none;
}

.prediction-section {
  padding: 62px 51px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7f5ef 100%);
}

.prediction-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.prediction-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.prediction-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.prediction-heading > p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.prediction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.prediction-main,
.prediction-side {
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.prediction-main {
  padding: 24px;
  background: white;
}

.prediction-side {
  padding: 22px;
  background:
    linear-gradient(155deg, rgba(0, 121, 111, 0.98), rgba(0, 75, 67, 0.98));
  color: white;
}

.prediction-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prediction-topline span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--pink-soft);
  color: #a91f4c;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-topline strong {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.prediction-main h3,
.prediction-side h3 {
  margin: 0 0 16px;
  font-size: 1.28rem;
  text-transform: uppercase;
}

.prediction-picks {
  display: grid;
  gap: 10px;
}

.prediction-pick {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #ece5d8;
  border-radius: 7px;
  background: #fffdf8;
}

.prediction-pick.lead-pick {
  border-color: rgba(207, 56, 101, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 240, 244, 0.92), rgba(255, 253, 248, 0.92));
}

.prediction-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.prediction-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 20%, #fff2a8 30%, #ffd532 62%, #e69f16 100%);
  color: var(--ink);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.82), 0 8px 16px rgba(0, 0, 0, 0.14);
  font-size: 1.36rem;
  line-height: 1;
}

.prediction-copy {
  min-width: 0;
}

.prediction-copy h4 {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.04rem;
  text-transform: uppercase;
}

.prediction-copy p {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.prediction-chips,
.prediction-signal-grid,
.prediction-mini-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prediction-chips span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #f0ece2;
  color: #38423f;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-pick em {
  display: inline-flex;
  min-width: 72px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-loading {
  padding: 24px;
  border-radius: 7px;
  background: var(--cream);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.prediction-mobile-key {
  display: none;
}

.prediction-signal-grid {
  display: grid;
  gap: 10px;
}

.prediction-signal-grid > span,
.prediction-signal-card {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.prediction-signal-grid > span {
  min-height: 34px;
  align-content: center;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-signal-card {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.prediction-signal-card small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prediction-signal-card strong {
  color: white;
  font-size: 0.92rem;
  line-height: 1.25;
}

.prediction-mini-numbers span,
.muted-chip {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 950;
}

.muted-chip {
  width: auto;
  border-radius: 999px;
  padding: 0 10px;
  color: #766d5f;
}

.prediction-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
}

.reset-button {
  width: auto;
  padding: 0 14px;
  border: 1px solid #efe7da;
  border-radius: 5px;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 900;
}

.content-tabs {
  margin-bottom: 58px;
}

.content-tabs button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.content-tabs button.active {
  border: 2px solid var(--pink);
}

.past-card {
  grid-template-columns: 130px 1fr auto;
}

.past-number small {
  margin-top: 4px;
  color: #6b746f;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.details-toggle {
  width: auto;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  font-size: 0.88rem;
  font-weight: 900;
}

.cashpot-story,
.payout-section,
.dream-section {
  padding: 72px 51px;
}

.cashpot-story {
  background: white;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.dream-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.section-heading p:last-child {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.play-steps {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.play-steps article {
  display: grid;
  grid-template-columns: 54px 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 7px;
  background: var(--cream);
}

.play-steps span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-weight: 950;
}

.play-steps strong {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.play-steps p {
  margin: 0;
  color: var(--muted);
}

.payout-section {
  background: var(--cream);
}

.payout-stack {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 22px;
}

.payout-stack article {
  display: grid;
  grid-template-columns: 220px 1fr minmax(180px, auto);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 7px;
  background: white;
}

.payout-stack h3 {
  margin: 0;
  color: var(--teal);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.payout-stack p {
  margin: 0;
  color: var(--muted);
}

.payout-stack strong {
  color: var(--pink);
  font-size: 1.05rem;
}

.payout-links {
  max-width: 980px;
  margin: 28px auto 0;
}

.calculator-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 140px 160px 190px auto;
  gap: 12px;
  align-items: end;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 18px;
  border-radius: 7px;
  background: white;
}

.calculator-strip h3 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.calculator-strip label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.payout {
  margin: 0;
  white-space: nowrap;
}

.dream-section {
  background:
    linear-gradient(180deg, rgba(255, 227, 44, 0.92), rgba(255, 208, 31, 0.95)),
    #ffd61f;
}

.dream-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px minmax(220px, 320px);
  gap: 16px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.dream-hero p {
  max-width: 620px;
  color: #2f2b17;
}

.dream-results {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-width: 1180px;
  margin: 0 auto 22px;
}

.dream-item {
  align-items: start;
  background: rgba(255, 255, 255, 0.66);
}

.dream-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.dream-item strong {
  flex: 0 0 34px;
  background: var(--teal);
  color: white;
}

.dream-item span {
  font-weight: 950;
  text-transform: uppercase;
}

.dream-item em {
  color: #504a29;
  font-style: normal;
  font-size: 0.82rem;
}

.dream-search-note {
  width: 100%;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(82, 69, 4, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  color: #3f3715;
  font-weight: 850;
}

.dream-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.meaning-tile {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(82, 69, 4, 0.18);
  border-radius: 7px;
  background: rgba(255, 248, 143, 0.88);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.26), 0 8px 18px rgba(94, 68, 0, 0.08);
}

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

.meaning-art-wrap {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(0, 121, 111, 0.24);
  border-radius: 7px;
  background: radial-gradient(circle at 50% 42%, white 0 46%, rgba(255, 255, 255, 0.64) 72%, rgba(255, 255, 255, 0.18) 100%);
  overflow: hidden;
}

.meaning-art {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.14));
}

.meaning-number {
  order: -1;
  color: #2d2730;
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 0.9;
}

.meaning-tile h3 {
  margin: 0;
  color: #14120b;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
}

.meaning-list {
  display: grid;
  gap: 3px;
}

.meaning-list strong {
  color: #006056;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meaning-list p {
  margin: 0;
  color: #1e1a10;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.faq-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .today-card {
    max-width: none;
  }

  .search-panel {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 18px auto 0;
  }

  .payout-stack article,
  .calculator-strip,
  .dream-hero,
  .prediction-heading,
  .prediction-layout {
    grid-template-columns: 1fr;
  }

  .dream-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .notice-bar {
    justify-content: flex-start;
    text-align: left;
  }

  .draw-countdown {
    width: 100%;
    justify-content: center;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    grid-column: 1 / -1;
  }

  .nav-actions {
    display: none;
  }

  .game-hero {
    padding-bottom: 14px;
  }

  .hero-inner,
  .cashpot-story,
  .payout-section,
  .dream-section,
  .prediction-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dream-hero > label,
  .dream-hero > input {
    width: calc(100% - 44px);
    margin-inline: 22px;
  }

  .payout-panel {
    min-height: 0;
    padding: 20px;
  }

  .payout-panel h1 {
    font-size: 1.9rem;
    line-height: 1.02;
  }

  .hero-copy {
    margin: 10px 0 14px;
    font-size: 0.98rem;
  }

  .money-burst {
    display: none;
  }

  .payout-figure {
    grid-template-columns: auto 1fr;
    width: 100%;
    padding: 11px 13px;
  }

  .payout-figure strong {
    justify-self: end;
    font-size: 2.35rem;
  }

  .today-number-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .today-card {
    padding: 16px;
  }

  .today-card h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
  }

  .game-logo {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }

  .today-result {
    grid-template-columns: minmax(88px, 1fr) 42px minmax(80px, 1fr);
    grid-template-areas:
      "draw number meaning"
      "time number balls";
    align-items: center;
    min-height: 62px;
    padding: 8px 10px;
    border: 1px solid #f0eadf;
    border-radius: 7px;
    background: #fffdf8;
    text-align: left;
  }

  .today-result p {
    grid-area: draw;
    margin: 0;
  }

  .today-result > span {
    grid-area: time;
  }

  .today-result strong {
    grid-area: number;
    justify-self: center;
  }

  .today-result em {
    grid-area: meaning;
    justify-self: end;
    text-align: right;
  }

  .today-result .bonus-balls {
    grid-area: balls;
    justify-self: end;
    margin-top: 0;
  }

  .today-result strong {
    width: 34px;
    height: 34px;
  }

  .bonus-pair {
    font-size: 0.55rem;
  }

  .mini-ball {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .draw-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 36px 16px;
  }

  .draw-facts article {
    min-height: 0;
    padding: 10px 14px;
  }

  .fact-icon {
    display: none;
  }

  .draw-facts p {
    margin-bottom: 4px;
  }

  .draw-facts strong {
    font-size: 0.88rem;
  }

  .search-panel {
    width: calc(100% - 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px;
    margin-top: 16px;
    overflow: visible;
  }

  .payout-calculator-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .history-filters {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body:not(.results-archive-page) .tabs-section {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  body:not(.results-archive-page) .content-tabs {
    display: none;
  }

  body:not(.results-archive-page) .content-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #ded7c9;
    border-radius: 5px;
    background: white;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
  }

  body:not(.results-archive-page) .content-tabs button.active {
    border-color: var(--pink);
    background: var(--pink);
    color: white;
  }

  body:not(.results-archive-page) .past-heading {
    display: grid;
    gap: 9px;
    text-align: left;
  }

  body:not(.results-archive-page) .past-heading .eyebrow {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.25;
  }

  body:not(.results-archive-page) .past-heading h2 {
    max-width: 320px;
    font-size: 2.05rem;
    line-height: 1.02;
  }

  body:not(.results-archive-page) .past-heading .pink-button {
    justify-self: start;
    min-height: 40px;
    margin-top: 4px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  body:not(.results-archive-page) .tabs-section > .range-label {
    margin: 24px 0 10px;
    font-size: 0.82rem;
  }

  body:not(.results-archive-page) .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    padding: 24px 22px;
    border-radius: 8px;
    overflow: visible;
  }

  body:not(.results-archive-page) .history-filters label {
    min-width: 0;
  }

  body:not(.results-archive-page) .history-filters label:nth-of-type(1),
  body:not(.results-archive-page) .history-filters label:nth-of-type(2),
  body:not(.results-archive-page) .history-filters label:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  body:not(.results-archive-page) .history-filters input,
  body:not(.results-archive-page) .history-filters select {
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  body:not(.results-archive-page) .history-filters .reset-button,
  body:not(.results-archive-page) .history-filters .pink-button {
    width: 100%;
    min-height: 42px;
  }

  body:not(.results-archive-page) .past-results-list {
    gap: 18px;
  }

  body:not(.results-archive-page) .past-card {
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 24px 18px 26px;
    overflow: hidden;
    border: 1px solid rgba(16, 36, 34, 0.08);
    border-radius: 8px;
    background: white;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
    text-align: center;
  }

  body:not(.results-archive-page) .past-card .mini-game-logo {
    display: inline-grid;
    justify-self: center;
    font-size: 1.55rem;
  }

  body:not(.results-archive-page) .past-card h3 {
    margin: 0 0 20px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.94rem;
    letter-spacing: 0.01em;
    text-align: center;
  }

  body:not(.results-archive-page) .past-number-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    justify-content: center;
  }

  body:not(.results-archive-page) .past-number {
    display: grid;
    justify-items: center;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
      "draw"
      "time"
      "number"
      "meaning"
      "balls";
    gap: 6px;
    min-width: 0;
    padding: 0;
    border-top: 0;
  }

  body:not(.results-archive-page) .past-number:only-child {
    max-width: 180px;
    grid-column: 1 / -1;
    justify-self: center;
  }

  body:not(.results-archive-page) .past-number > span {
    grid-area: draw;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  body:not(.results-archive-page) .past-number > small {
    grid-area: time;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  body:not(.results-archive-page) .past-number > strong {
    grid-area: number;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #f1eee7;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
    justify-self: center;
  }

  body:not(.results-archive-page) .past-number > em {
    grid-area: meaning;
    color: var(--muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
  }

  body:not(.results-archive-page) .past-number .bonus-balls {
    grid-area: balls;
    justify-self: center;
    margin-top: 2px;
    gap: 5px;
  }

  body:not(.results-archive-page) .past-number .bonus-pair {
    gap: 3px;
  }

  body:not(.results-archive-page) .past-number .ball-name {
    font-size: 0.58rem;
  }

  .results-archive-page .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 24px 22px;
    border-radius: 8px;
    overflow: visible;
  }

  .results-archive-page .history-filters label {
    min-width: 0;
  }

  .results-archive-page .history-filters label:nth-of-type(1),
  .results-archive-page .history-filters label:nth-of-type(2),
  .results-archive-page .history-filters label:nth-of-type(3),
  .results-archive-page .history-filters .reset-button,
  .results-archive-page .history-filters .pink-button {
    grid-column: 1 / -1;
  }

  .results-archive-page .history-filters input,
  .results-archive-page .history-filters select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .results-archive-page .history-filters input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
  }

  .range-label {
    margin-top: 28px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .range-label strong {
    display: block;
    margin: 0 0 3px;
  }

  .history-table-shell {
    margin-top: 16px;
    border-radius: 7px;
  }

  .history-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .ball-legend {
    justify-content: flex-start;
  }

  .archive-results-table {
    min-width: 760px;
  }

  .results-archive-page .history-table-scroll {
    display: none;
  }

  .results-archive-page .history-mobile-list {
    display: grid;
    gap: 0;
  }

  .archive-result-card {
    display: grid;
    gap: 12px;
    padding: 16px 14px;
    border-top: 1px solid var(--line);
    background: white;
  }

  .archive-card-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }

  .archive-card-main > div {
    display: grid;
    gap: 3px;
  }

  .archive-card-date {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .archive-card-main strong {
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.15;
  }

  .archive-card-main em {
    color: var(--muted);
    font-style: normal;
    font-weight: 850;
  }

  .archive-card-meaning {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fbfaf6;
  }

  .archive-card-meaning span,
  .archive-card-drawno {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .archive-card-meaning strong {
    color: var(--ink);
    font-size: 0.96rem;
  }

  .archive-card-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
  }

  .archive-ball-slot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .archive-ball-slot small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .archive-card-drawno {
    margin-left: auto;
  }

  .history-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }

  .history-pagination button {
    width: 100%;
    flex: none;
    padding: 0 10px;
  }

  .history-pagination button:disabled {
    display: none;
  }

  .history-pagination span {
    grid-column: 1 / -1;
    text-align: center;
  }

  .history-table-shell .history-pagination,
  .history-table-shell .history-pagination-top {
    padding: 14px;
  }

  .search-button {
    min-height: 42px;
  }

  .play-steps article {
    grid-template-columns: 44px 1fr;
  }

  .play-steps p {
    grid-column: 2;
  }

  .past-card {
    grid-template-columns: 1fr;
  }

  .prediction-section {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .prediction-heading {
    gap: 12px;
  }

  .prediction-heading h2 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .prediction-heading > p {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .prediction-main,
  .prediction-side {
    padding: 14px;
  }

  .prediction-topline {
    gap: 8px;
    margin-bottom: 10px;
  }

  .prediction-topline span,
  .prediction-topline strong {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .prediction-main h3,
  .prediction-side h3 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .prediction-pick {
    grid-template-columns: 28px 44px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 0;
    padding: 10px;
  }

  .prediction-number {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .prediction-rank {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .prediction-copy h4 {
    font-size: 0.92rem;
  }

  .prediction-copy p {
    margin: 1px 0 6px;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .prediction-pick em {
    grid-column: auto;
    align-self: start;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .prediction-chips {
    display: none;
  }

  .prediction-side {
    box-shadow: none;
  }

  .prediction-mobile-key {
    display: none;
  }

  .prediction-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prediction-signal-card {
    padding: 10px;
  }

  .prediction-mini-numbers span,
  .muted-chip {
    min-width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }

  .payout-stack article {
    align-items: start;
  }

  .dream-board {
    grid-template-columns: 1fr;
  }

.meaning-tile {
    min-height: 0;
  }
}

/* SEO landing pages */
.seo-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 51px;
}

.seo-page h1 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.page-lead {
  max-width: 760px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.answer-box,
.content-panel {
  margin: 0 0 24px;
  padding: 20px 22px;
  border-left: 5px solid var(--pink);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.answer-box strong {
  color: var(--teal);
  text-transform: uppercase;
}

.seo-result-grid,
.schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.seo-result-grid article,
.schedule-list article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 18px;
  border-radius: 7px;
  background: white;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.seo-result-grid span,
.schedule-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seo-result-grid strong,
.schedule-list strong {
  color: var(--teal);
  max-width: 100%;
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.seo-result-grid em,
.schedule-list em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.seo-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.draw-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.draw-selector a {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.draw-selector a.active {
  border-color: var(--pink);
}

.draw-selector span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.draw-selector strong {
  color: var(--teal);
  font-size: 1.08rem;
}

.draw-page-balls {
  display: flex;
  justify-content: center;
}

.standalone-calculator {
  grid-template-columns: minmax(220px, 1fr) 140px 180px 190px auto;
  max-width: none;
}

.content-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  text-transform: uppercase;
}

.content-panel p {
  margin: 0;
  color: var(--muted);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stats-summary article,
.stat-card,
.frequency-row {
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.stats-summary article {
  padding: 18px;
}

.stats-summary span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stats-summary strong {
  display: block;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.stat-block {
  margin: 34px 0;
}

.compact-heading {
  margin-bottom: 16px;
}

.compact-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  min-height: 155px;
  align-content: center;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.stat-card strong {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 10px 0 8px;
  place-items: center;
  border-radius: 50%;
  background: #f2efe8;
  color: var(--ink);
  font-size: 1.65rem;
}

.stat-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 950;
}

.stat-card small {
  color: var(--muted);
  font-weight: 850;
}

.lead-stat {
  outline: 2px solid var(--pink);
}

.frequency-list {
  display: grid;
  gap: 8px;
}

.frequency-row {
  display: grid;
  grid-template-columns: 46px minmax(110px, 1fr) minmax(100px, 2fr) 80px 78px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.frequency-row strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #f2efe8;
  color: var(--ink);
}

.frequency-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.frequency-identity span {
  color: var(--teal);
  font-weight: 950;
}

.frequency-identity small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece6da;
}

.frequency-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--pink));
}

.frequency-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.draw-stat-list article {
  min-height: 130px;
}

.standalone-prediction {
  margin: 28px 0;
  padding: 0;
  background: transparent;
}

.standalone-prediction .prediction-shell {
  padding: 0;
}

.prediction-lab-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 121, 111, 0.09), transparent 280px),
    linear-gradient(180deg, #fbfaf6 0%, var(--cream) 42%, #fff 100%);
}

.prediction-lab-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 62px 24px 30px;
}

.prediction-lab-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.prediction-lab-hero p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 800;
}

.prediction-lab-shell {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto 70px;
  padding: 0 24px;
}

.prediction-lab-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(16, 36, 34, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
}

.prediction-lab-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-lab-filters input,
.prediction-lab-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.prediction-lab-filters .reset-button {
  align-self: end;
  min-height: 44px;
  padding: 0 18px;
}

.prediction-lab-metrics,
.prediction-lab-coverage,
.prediction-lab-health {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.prediction-lab-metrics article,
.prediction-lab-coverage article,
.prediction-lab-health article,
.prediction-lab-run {
  border: 1px solid rgba(16, 36, 34, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
}

.prediction-lab-metrics article,
.prediction-lab-coverage article,
.prediction-lab-health article {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 18px;
}

.prediction-lab-metrics span,
.prediction-lab-coverage span,
.prediction-lab-health span,
.prediction-lab-run-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-lab-metrics strong,
.prediction-lab-health strong {
  color: var(--teal);
  font-size: 2.25rem;
  line-height: 1;
}

.prediction-lab-metrics em,
.prediction-lab-coverage em,
.prediction-lab-health em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.prediction-lab-health article.good {
  border-color: rgba(0, 121, 111, 0.24);
  background: #e9fff4;
}

.prediction-lab-health article.middle {
  border-color: rgba(235, 145, 31, 0.28);
  background: #fff8e8;
}

.prediction-lab-health article.bad {
  border-color: rgba(207, 52, 102, 0.2);
  background: #fff3f7;
}

.prediction-lab-health article.bad strong {
  color: var(--pink);
}

.prediction-lab-health article.middle strong {
  color: #a75d00;
}

.prediction-lab-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 10px;
}

.prediction-lab-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.prediction-lab-section-head > span {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 950;
}

.prediction-lab-coverage {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prediction-lab-coverage article {
  min-height: 104px;
  box-shadow: none;
}

.prediction-lab-coverage article.on-track {
  border-color: rgba(0, 121, 111, 0.35);
  background: #f2fffb;
}

.prediction-lab-coverage strong {
  color: var(--pink);
  font-size: 1.8rem;
  line-height: 1;
}

.prediction-lab-runs {
  display: grid;
  gap: 14px;
}

.prediction-lab-local,
.prediction-lab-backtest,
.prediction-lab-consensus,
.prediction-lab-research {
  display: grid;
  gap: 14px;
}

.prediction-lab-local-card,
.prediction-lab-backtest-card,
.prediction-lab-consensus-head,
.prediction-lab-consensus-empty,
.prediction-lab-research-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(16, 36, 34, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
}

.prediction-lab-research-card.good {
  border-color: rgba(0, 121, 111, 0.22);
}

.prediction-lab-research-card.middle {
  border-color: rgba(235, 145, 31, 0.25);
}

.prediction-lab-research-card.bad {
  border-color: rgba(207, 52, 102, 0.22);
}

.prediction-lab-local-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(260px, auto);
  align-items: center;
}

.prediction-lab-local-card > div,
.prediction-lab-consensus-head > div,
.prediction-lab-consensus-empty > div,
.prediction-lab-backtest-head > div,
.prediction-lab-profile-grid > div {
  display: grid;
  gap: 5px;
}

.prediction-lab-local-card span,
.prediction-lab-consensus-head span,
.prediction-lab-consensus-empty span,
.prediction-lab-backtest-head span,
.prediction-lab-profile-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-lab-local-card strong,
.prediction-lab-consensus-head strong,
.prediction-lab-consensus-empty strong,
.prediction-lab-backtest-head strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.12;
}

.prediction-lab-local-card em,
.prediction-lab-consensus-head em,
.prediction-lab-consensus-empty em,
.prediction-lab-backtest-head em,
.prediction-lab-profile-grid em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.prediction-lab-consensus-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.prediction-lab-consensus-head mark {
  min-width: 126px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #e9fff4;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.prediction-lab-consensus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prediction-lab-consensus-grid article {
  position: relative;
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(16, 36, 34, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.055);
}

.prediction-lab-consensus-grid article.strong {
  border-color: rgba(0, 121, 111, 0.28);
  background: #f0fffa;
}

.prediction-lab-consensus-grid article.medium {
  border-color: rgba(207, 52, 102, 0.18);
  background: #fff7fa;
}

.consensus-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.consensus-ball {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f1eee7;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
}

.prediction-lab-consensus-grid article.strong .consensus-ball {
  background: var(--teal);
  color: white;
}

.prediction-lab-consensus-grid article.medium .consensus-ball {
  background: var(--pink);
  color: white;
}

.consensus-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.consensus-copy span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-lab-consensus-grid article.medium .consensus-copy span {
  color: var(--pink);
}

.consensus-copy strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.05;
}

.consensus-copy em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.consensus-models {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.consensus-models span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.prediction-lab-backtest-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.prediction-lab-backtest-head mark {
  min-width: 112px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9fff4;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.prediction-lab-daily-goal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prediction-lab-daily-goal > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 7px;
  background: #fbfaf6;
  border: 1px solid rgba(16, 36, 34, 0.08);
}

.prediction-lab-daily-goal > div.strong {
  background: #e9fff4;
  border-color: rgba(0, 124, 111, 0.18);
}

.prediction-lab-daily-goal > div.wide {
  background: #fff7fa;
  border-color: rgba(207, 52, 102, 0.16);
}

.prediction-lab-daily-goal span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-lab-daily-goal strong {
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.prediction-lab-daily-goal em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.prediction-lab-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prediction-lab-profile-grid > div {
  padding: 12px;
  border-radius: 7px;
  background: #fbfaf6;
}

.prediction-lab-profile-grid > div.good,
.research-strategies > div.good,
.research-draws > div.good {
  background: #e9fff4;
}

.prediction-lab-profile-grid > div.middle,
.research-strategies > div.middle {
  background: #fff8e8;
}

.prediction-lab-profile-grid > div.bad,
.research-strategies > div.bad,
.research-draws > div.bad {
  background: #fff3f7;
}

.prediction-lab-profile-grid strong {
  color: var(--pink);
  font-size: 1.35rem;
  line-height: 1;
}

.research-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prediction-lab-research-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--pink);
  border-radius: 7px;
  background: #fff7fa;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.prediction-lab-run {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.prediction-lab-run-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.prediction-lab-run-head div {
  display: grid;
  gap: 3px;
}

.prediction-lab-run-head span,
.prediction-lab-run-head em,
.prediction-lab-run footer {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.prediction-lab-run-head strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.1;
}

.prediction-lab-run-head mark {
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0ece2;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.prediction-lab-run.hit .prediction-lab-run-head mark {
  background: #e9fff4;
  color: var(--teal);
}

.prediction-lab-run.miss .prediction-lab-run-head mark {
  background: var(--pink-soft);
  color: var(--pink);
}

.prediction-lab-run-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(130px, 0.65fr);
  gap: 14px;
  align-items: center;
}

.prediction-lab-run-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.prediction-lab-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prediction-lab-numbers span {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f1eee7;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.prediction-lab-numbers.small span {
  width: 34px;
  height: 34px;
  font-size: 0.86rem;
}

.prediction-lab-numbers small {
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-size: 0.58rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.prediction-lab-numbers span.is-hit {
  background: var(--teal);
  color: white;
}

.prediction-lab-actual {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.prediction-lab-actual.is-pending {
  color: var(--muted);
  font-size: 0.9rem;
}

.prediction-lab-run footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .seo-page {
    padding: 44px 18px;
  }

  .seo-result-grid,
  .schedule-list,
  .standalone-calculator,
  .stats-summary {
    grid-template-columns: 1fr;
  }

  .calculator-strip,
  .standalone-calculator {
    gap: 12px;
    padding: 22px;
    overflow: visible;
  }

  .calculator-strip input,
  .calculator-strip select {
    width: 100%;
    max-width: 100%;
  }

  .frequency-row {
    grid-template-columns: 42px 1fr 64px;
  }

  .frequency-bar {
    grid-column: 1 / -1;
    order: 4;
  }

  .seo-links a {
    width: 100%;
    justify-content: center;
  }

  .prediction-lab-hero {
    padding: 40px 18px 22px;
  }

  .prediction-lab-hero h1 {
    font-size: 2.45rem;
  }

  .prediction-lab-hero p:last-child {
    font-size: 0.95rem;
  }

  .prediction-lab-shell {
    gap: 18px;
    margin-bottom: 42px;
    padding: 0 18px;
  }

  .prediction-lab-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  .prediction-lab-filters label:nth-of-type(3),
  .prediction-lab-filters label:nth-of-type(4),
  .prediction-lab-filters label:nth-of-type(5),
  .prediction-lab-filters label:nth-of-type(6),
  .prediction-lab-filters .reset-button {
    grid-column: 1 / -1;
  }

  .prediction-lab-filters input,
  .prediction-lab-filters select {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .prediction-lab-metrics,
  .prediction-lab-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-lab-metrics article,
  .prediction-lab-health article {
    min-height: 104px;
    padding: 14px;
  }

  .prediction-lab-metrics strong,
  .prediction-lab-health strong {
    font-size: 1.9rem;
  }

  .prediction-lab-health article:first-child {
    grid-column: 1 / -1;
  }

  .prediction-lab-section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .prediction-lab-section-head .pink-button {
    width: 100%;
    justify-content: center;
  }

  .prediction-lab-coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-lab-local-card,
  .prediction-lab-backtest-card,
  .prediction-lab-consensus-head,
  .prediction-lab-consensus-empty,
  .prediction-lab-backtest-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .prediction-lab-consensus-grid {
    grid-template-columns: 1fr;
  }

  .prediction-lab-consensus-grid article {
    grid-template-columns: 24px 52px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .consensus-ball {
    width: 52px;
    height: 52px;
    font-size: 1.28rem;
  }

  .consensus-rank {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .prediction-lab-consensus-head mark {
    width: 100%;
  }

  .prediction-lab-backtest-head {
    flex-direction: column;
  }

  .prediction-lab-backtest-head mark {
    width: 100%;
  }

  .prediction-lab-daily-goal {
    grid-template-columns: 1fr;
  }

  .research-metrics {
    grid-template-columns: 1fr;
  }

  .prediction-lab-profile-grid {
    grid-template-columns: 1fr;
  }

  .prediction-lab-coverage article {
    min-height: 98px;
    padding: 14px;
  }

  .prediction-lab-run {
    padding: 14px;
  }

  .prediction-lab-run-head {
    align-items: stretch;
    flex-direction: column;
  }

  .prediction-lab-run-head mark {
    width: 100%;
  }

  .prediction-lab-run-grid {
    grid-template-columns: 1fr;
  }

  .prediction-lab-numbers span {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .site-header {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
    gap: 14px 24px;
  }

  .main-nav {
    justify-content: flex-end;
    gap: 14px;
  }

  .nav-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 8px 16px 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-seal {
    width: 54px;
    height: 54px;
    margin-top: 0;
    border-width: 4px;
  }

  .brand-seal span {
    font-size: 0.78rem;
  }

  .brand-seal strong {
    font-size: 1rem;
  }

  .brand-name {
    display: inline;
    max-width: 120px;
    color: var(--ink);
    font-size: 0.9rem;
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header .main-nav,
  .site-header .nav-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    overflow: visible;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .nav-actions {
    display: grid;
  }

  .site-header .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
  }

  .site-header .main-nav a {
    min-height: 44px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfaf6;
    font-size: 0.82rem;
    text-align: center;
  }

  .site-header .main-nav a::after {
    display: none;
  }

  .site-header .main-nav a[aria-current="page"] {
    border-color: var(--teal);
    background: var(--teal);
    color: white;
  }

  .site-header .nav-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 2px;
  }

  .site-header .nav-actions a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 7px;
  }

  .site-header .where-link {
    border: 1px solid var(--line);
    color: var(--teal-dark);
  }

  .notice-bar {
    position: relative;
    z-index: 90;
  }

  .utility-bar {
    display: none;
  }

  .breadcrumb {
    gap: 7px;
    min-height: 38px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .notice-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 10px;
    align-items: center;
    min-height: 0;
    padding: 9px 16px;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: left;
  }

  .notice-icon {
    width: 20px;
    height: 20px;
  }

  .notice-bar > span:not(.notice-icon) {
    min-width: 0;
  }

  .draw-countdown {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 30px;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.76rem;
  }

  .notice-bar a {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 0.78rem;
  }
}

/* Final shared navigation polish */
body.nav-lock {
  overflow: hidden;
}

.site-footer a[aria-current="page"] {
  color: #ffe06a;
}

@media (min-width: 761px) {
  .site-header .main-nav,
  .site-header .nav-actions {
    overflow: visible;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .main-nav,
  .site-header .nav-actions {
    overflow: visible;
  }

  .site-header .main-nav a {
    min-width: 0;
    padding: 0 8px;
    line-height: 1.15;
    white-space: normal;
  }

  .site-header .nav-actions .pink-button {
    min-height: 46px;
  }

  .site-footer {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  .site-footer nav a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    line-height: 1.15;
    text-align: center;
  }

  .site-footer nav a[aria-current="page"] {
    border-color: #ffe06a;
    background: rgba(255, 224, 106, 0.14);
  }

  .site-footer p {
    margin-bottom: 0;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .page h1 {
    font-size: clamp(2.1rem, 12vw, 3.05rem);
  }
}

/* Learning center and editorial guides */
.learning-page main {
  display: block;
}

.learning-hero,
.guide-hero {
  position: relative;
  overflow: hidden;
  background: #006f65;
  color: white;
}

.learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
  padding: 64px max(5vw, 32px);
}

.learning-hero-copy,
.guide-heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.learning-hero .eyebrow,
.guide-hero .eyebrow {
  color: #ffe06a;
}

.learning-hero h1,
.guide-hero h1 {
  max-width: 820px;
  margin: 4px 0 20px;
  color: white;
  font-size: 3.45rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.learning-hero-copy > p:not(.eyebrow),
.guide-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.learning-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.learning-hero-actions .pink-button,
.learning-hero-actions .secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 900;
}

.learning-hero-actions .secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  text-decoration: none;
}

.guide-visual {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.guide-number {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 218px;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.guide-number span {
  z-index: 2;
  padding: 12px 14px 0;
  color: var(--pink);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.guide-number img {
  width: 112px;
  height: 112px;
  justify-self: end;
  align-self: center;
  object-fit: contain;
}

.guide-number figcaption {
  min-height: 48px;
  padding: 8px 12px 12px;
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1.2;
}

.guide-category-strip {
  display: flex;
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 18px 28px;
  scrollbar-width: thin;
}

.guide-category-strip span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-guides,
.all-guides,
.related-guides {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px;
}

.all-guides {
  border-top: 1px solid var(--line);
}

.featured-guides .section-heading,
.all-guides .section-heading,
.related-guides .section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.featured-guides .section-heading h2,
.all-guides .section-heading h2,
.related-guides .section-heading h2,
.learning-trust h2 {
  margin: 2px 0 10px;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.featured-guides .section-heading p:last-child,
.all-guides .section-heading p:last-child {
  color: var(--muted);
  font-size: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: grid;
  min-width: 0;
  min-height: 338px;
  grid-template-rows: 116px 1fr;
  overflow: hidden;
  border: 1px solid #d9ded9;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(4, 36, 32, 0.07);
}

.article-card-visual {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 8px 18px;
  background: #dff2ed;
  color: inherit;
  text-decoration: none;
}

.article-card:nth-child(3n + 2) .article-card-visual {
  background: #fff0f4;
}

.article-card:nth-child(3n) .article-card-visual {
  background: #fff4cf;
}

.article-card-visual span {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--teal-dark);
  font-size: 2.3rem;
  font-weight: 950;
  line-height: 1;
}

.article-card-visual img {
  width: 98px;
  height: 98px;
  object-fit: contain;
}

.article-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 19px 20px 21px;
}

.article-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.article-card-meta span {
  color: var(--pink);
  text-transform: uppercase;
}

.article-card h2 {
  margin: 11px 0 8px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-read-link {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 900;
}

.learning-trust {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr) auto;
  gap: 32px;
  align-items: center;
  padding: 52px max(5vw, 28px);
  background: #10251f;
  color: white;
}

.learning-trust .eyebrow {
  color: #ffe06a;
}

.learning-trust h2,
.learning-trust p {
  color: white;
}

.learning-trust p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
}

.learning-trust > a {
  color: #ffe06a;
  font-weight: 900;
  white-space: nowrap;
}

.guide-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 52px;
  align-items: center;
  max-width: 1240px;
  min-height: 460px;
  margin: 0 auto;
  padding: 64px 28px;
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-byline a {
  color: white;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 290px;
  gap: 58px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 28px 72px;
}

.guide-body {
  min-width: 0;
  font-family: Arial, sans-serif;
  font-size: 1.03rem;
  line-height: 1.75;
}

.guide-body a {
  font-weight: 700;
}

.guide-answer {
  margin: 0 0 42px;
  border-left: 5px solid var(--pink);
  padding: 20px 24px;
  background: white;
  box-shadow: 0 8px 22px rgba(4, 36, 32, 0.06);
}

.guide-answer span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-answer p {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.55;
}

.learning-page .guide-section {
  scroll-margin-top: 92px;
  margin: 0 0 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.learning-page .guide-section h2,
.guide-sources h2 {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.72rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.learning-page .guide-section p,
.guide-sources p {
  margin: 0 0 17px;
}

.learning-page .guide-section ul,
.learning-page .guide-section ol {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding-left: 24px;
}

.guide-table-wrap {
  width: 100%;
  margin: 22px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}

.guide-table th,
.guide-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e5e7e2;
  text-align: left;
  vertical-align: middle;
}

.guide-table td {
  background: white;
  color: var(--ink);
}

.guide-table td a {
  color: var(--pink);
}

.guide-table th {
  background: var(--teal);
  color: white;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.ticket-sample-frame {
  width: min(100%, 470px);
  margin: 22px auto 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 28px rgba(4, 36, 32, 0.08);
}

.ticket-sample-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ticket-sample-frame figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.ticket-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.ticket-callout-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.ticket-callout-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 950;
}

.ticket-callout-grid strong {
  display: block;
  color: var(--teal-dark);
  line-height: 1.25;
}

.ticket-callout-grid p {
  margin: 4px 0 0 !important;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table tbody tr:nth-child(even) {
  background: #f8faf8;
}

.guide-table tbody tr:nth-child(even) td {
  background: #f8faf8;
}

.guide-formula {
  display: flex;
  min-height: 66px;
  align-items: center;
  margin: 20px 0;
  border: 1px solid #f0cc5b;
  border-left: 5px solid #e2a500;
  padding: 14px 18px;
  background: #fff8dc;
  color: #2d2510;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.08rem;
}

.inline-ball {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 1px solid #bcb8ad;
  border-radius: 50%;
  vertical-align: -1px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.16);
}

.inline-ball.white { background: white; }
.inline-ball.gold { background: #f1c832; }
.inline-ball.red { background: #df315c; }

.guide-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.guide-toc,
.guide-takeaways {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
}

.guide-toc > strong,
.guide-takeaways > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.9rem;
}

.guide-toc ol,
.guide-takeaways ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

.guide-toc a {
  color: var(--ink);
  text-decoration: none;
}

.guide-tool-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  padding: 0 17px;
  background: var(--teal);
  color: white;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.guide-sources {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.guide-sources ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.guide-sources li {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7e4dc;
  padding: 10px 0;
}

.guide-sources li span {
  color: var(--muted);
  font-size: 0.75rem;
}

.responsible-note {
  margin-top: 34px;
  border: 1px solid #d8e5df;
  border-left: 5px solid var(--teal);
  padding: 19px 21px;
  background: #f3fbf7;
}

.responsible-note strong {
  color: var(--teal-dark);
}

.responsible-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.related-guides {
  border-top: 1px solid var(--line);
}

.related-grid .article-card {
  min-height: 326px;
}

.guide-all-link {
  display: inline-flex;
  margin-top: 24px;
}

@media (max-width: 1020px) {
  .learning-hero,
  .guide-hero-inner {
    grid-template-columns: 1fr;
  }

  .learning-hero {
    min-height: 0;
  }

  .guide-hero-inner {
    min-height: 0;
  }

  .guide-visual {
    max-width: 620px;
    justify-self: start;
  }

  .guide-number {
    min-height: 190px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-trust {
    grid-template-columns: 1fr 1.5fr;
  }

  .learning-trust > a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 860px;
  }

  .guide-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-tool-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .learning-page .notice-bar {
    display: block;
    padding: 6px 16px;
  }

  .learning-page .notice-bar > .notice-icon,
  .learning-page .notice-bar > span:not(.notice-icon),
  .learning-page .notice-bar > a {
    display: none;
  }

  .learning-page .notice-bar .draw-countdown {
    display: flex;
    min-height: 30px;
  }

  .learning-hero,
  .guide-hero-inner {
    gap: 30px;
    padding: 42px 20px 38px;
  }

  .learning-hero h1,
  .guide-hero h1 {
    margin-bottom: 16px;
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .learning-hero-copy > p:not(.eyebrow),
  .guide-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .learning-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .learning-hero-actions a {
    width: 100%;
  }

  .guide-visual {
    gap: 7px;
    max-width: none;
  }

  .guide-number {
    min-height: 150px;
  }

  .guide-number span {
    padding: 9px 9px 0;
    font-size: 1.35rem;
  }

  .guide-number img {
    width: 78px;
    height: 78px;
  }

  .guide-number figcaption {
    min-height: 42px;
    padding: 6px 8px 9px;
    font-size: 0.65rem;
  }

  .article-page .guide-hero-inner {
    gap: 22px;
    padding-bottom: 28px;
  }

  .article-page .guide-visual {
    display: flex;
    gap: 8px;
  }

  .article-page .guide-number {
    min-height: 72px;
    flex: 1 1 0;
    grid-template-columns: 24px minmax(44px, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    padding: 5px;
  }

  .article-page .guide-number span {
    align-self: start;
    padding: 7px 0 0 6px;
    font-size: 1rem;
  }

  .article-page .guide-number img {
    width: 56px;
    height: 56px;
    justify-self: end;
  }

  .article-page .guide-number figcaption {
    display: none;
  }

  .guide-category-strip {
    padding: 14px 20px;
  }

  .featured-guides,
  .all-guides,
  .related-guides {
    padding: 42px 20px;
  }

  .featured-guides .section-heading h2,
  .all-guides .section-heading h2,
  .related-guides .section-heading h2,
  .learning-trust h2 {
    font-size: 1.65rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 0;
  }

  .learning-trust {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 38px 20px;
  }

  .learning-trust > a {
    grid-column: auto;
    white-space: normal;
  }

  .guide-byline {
    display: grid;
    gap: 5px;
  }

  .guide-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 34px 20px 50px;
  }

  .guide-body {
    width: 100%;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .guide-aside {
    position: static;
    order: -1;
    width: 100%;
  }

  .guide-takeaways,
  .guide-tool-link {
    display: none;
  }

  .guide-toc {
    overflow: hidden;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .guide-toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 8px;
    list-style: none;
    scrollbar-width: thin;
  }

  .guide-toc li {
    flex: 0 0 auto;
  }

  .guide-toc a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    background: white;
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 850;
  }

  .guide-answer {
    margin-bottom: 34px;
    padding: 17px 18px;
  }

  .guide-answer p {
    font-size: 0.98rem;
  }

  .ticket-sample-frame {
    width: min(100%, 340px);
    margin: 18px auto 22px;
  }

  .ticket-callout-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ticket-callout-grid article {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .ticket-callout-grid article > span {
    width: 32px;
    height: 32px;
  }

  .learning-page .guide-section {
    margin-bottom: 38px;
  }

  .learning-page .guide-section h2,
  .guide-sources h2 {
    font-size: 1.42rem;
  }

  .guide-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .guide-table {
    display: block;
    min-width: 0;
    font-size: 0.82rem;
  }

  .guide-table thead {
    display: none;
  }

  .guide-table tbody {
    display: grid;
    gap: 10px;
  }

  .guide-table tbody tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 7px;
    background: white;
    box-shadow: 0 5px 14px rgba(4, 36, 32, 0.05);
  }

  .guide-table td {
    display: grid;
    gap: 4px;
    align-content: start;
    min-width: 0;
    border-right: 1px solid #e5e7e2;
    border-bottom: 0;
    padding: 11px 10px;
    background: white;
    color: var(--ink);
    line-height: 1.3;
  }

  .guide-table td:last-child {
    border-right: 0;
  }

  .guide-table td::before {
    content: attr(data-label);
    color: var(--teal-dark);
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .guide-table tbody tr:nth-child(even),
  .guide-table tbody tr:nth-child(even) td {
    background: white;
  }

  .guide-sources li {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 390px) {
  .learning-hero h1,
  .guide-hero h1 {
    font-size: 2.05rem;
  }

  .guide-number img {
    width: 66px;
    height: 66px;
  }

  .article-card-copy {
    padding-right: 17px;
    padding-left: 17px;
  }
}

/* Shared shell, navigation, loading, and statistics polish */
.brand-logo {
  display: block;
  width: 72px;
  height: 64px;
  object-fit: contain;
}

.mega-nav {
  position: static;
}

.mega-toggle {
  display: inline-flex;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.mega-toggle > span {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.mega-nav.is-open .mega-toggle > span {
  transform: rotate(225deg) translate(-2px, -2px);
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  z-index: 90;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-top: 4px solid var(--pink);
  border-radius: 0 0 8px 8px;
  padding: 22px;
  background: white;
  box-shadow: 0 22px 45px rgba(4, 36, 32, 0.18);
  transform: translateX(-50%);
}

.mega-nav.is-open .mega-menu {
  display: grid;
}

.mega-menu section {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.mega-menu section:first-child { padding-left: 0; }
.mega-menu section:last-child { padding-right: 0; border-right: 0; }

.mega-menu section > strong {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-header .mega-menu a {
  display: grid;
  min-height: 0;
  gap: 1px;
  border-radius: 5px;
  padding: 9px 10px;
  white-space: normal;
}

.site-header .mega-menu a:hover {
  background: var(--cream);
}

.site-header .mega-menu a::after { display: none; }
.mega-menu a span { color: var(--ink); font-size: 0.88rem; }
.mega-menu a small { color: var(--muted); font-size: 0.69rem; font-weight: 700; }

.content-tabs a {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.content-tabs a:hover,
.content-tabs a:focus-visible {
  border-color: var(--teal);
}

.site-footer {
  padding: 42px max(24px, 5vw) 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand > a {
  display: inline-flex;
  align-items: center;
  color: white;
  font-size: 1.08rem;
  font-weight: 950;
}

.footer-brand img {
  width: 76px;
  height: 68px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 300px;
  color: rgba(255,255,255,0.75);
  font-size: 0.86rem;
}

.site-footer .footer-main nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  margin: 0;
}

.site-footer nav section {
  display: grid;
  gap: 9px;
}

.site-footer nav section > strong {
  margin-bottom: 3px;
  color: #ffe06a;
  font-size: 0.73rem;
  text-transform: uppercase;
}

.site-footer nav section a {
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 30px auto 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 18px;
  color: rgba(255,255,255,0.7);
  font-size: 0.76rem;
}

.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }
.site-updated-at { text-align: right; }

.result-updated-at {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.skeleton-stack,
.result-skeleton-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.result-skeleton-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skeleton-stack > span,
.result-skeleton-grid > span {
  display: block;
  min-height: 92px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e8e5dd 20%, #f8f7f3 45%, #e8e5dd 70%);
  background-size: 260% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

.table-skeleton td { padding: 18px; }

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-stack > span,
  .result-skeleton-grid > span { animation: none; }
}

.watchlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px 22px;
  align-items: center;
  margin-bottom: 26px;
  border-left: 5px solid var(--pink);
  border-radius: 7px;
  padding: 20px;
  background: white;
  box-shadow: 0 9px 24px rgba(4,36,32,0.07);
}

.watchlist-panel h2 { margin: 2px 0 5px; font-size: 1.35rem; }
.watchlist-panel p { margin: 0; color: var(--muted); }
.watchlist-panel > small { grid-column: 1 / -1; color: var(--muted); }

.watchlist-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 110px;
}

.watchlist-saved span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 950;
}

.watchlist-saved em { color: var(--muted); font-size: 0.8rem; }
.alert-button,
.watch-number {
  min-height: 38px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  padding: 0 13px;
  background: white;
  color: var(--teal-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.watch-number.is-watched,
.alert-button:hover { background: var(--teal); color: white; }

.frequency-row .watch-number { justify-self: end; }

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-grid > article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  background: white;
}

.analytics-grid h3 { margin: 0 0 14px; font-size: 1rem; }
.mini-chart { display: grid; gap: 9px; }
.mini-chart > div { display: grid; gap: 4px; }
.mini-chart span { display: flex; justify-content: space-between; gap: 10px; font-size: 0.73rem; }
.mini-chart span strong { color: var(--ink); }
.mini-chart span em { color: var(--muted); }
.mini-chart i { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: #e7e3da; }
.mini-chart b { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

@media (max-width: 760px) {
  .brand-logo { width: 58px; height: 50px; }
  .brand-name { max-width: none; font-size: 0.92rem; white-space: nowrap; }
  .site-header .main-nav > a { min-height: 44px; }
  .mega-nav { grid-column: 1 / -1; }
  .mega-toggle { width: 100%; min-height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: #fbfaf6; font-size: 0.82rem; }
  .mega-menu { position: static; grid-template-columns: 1fr; width: 100%; max-height: min(55vh, 480px); overflow-y: auto; margin-top: 8px; border-top-width: 1px; padding: 8px; box-shadow: none; transform: none; }
  .mega-menu section { gap: 2px; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .mega-menu section:first-child { padding-left: 4px; }
  .mega-menu section:last-child { border-bottom: 0; padding-right: 4px; }
  .site-header .mega-menu a { grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 42px; padding: 7px 8px; text-align: left; }
  .mega-menu a small { text-align: right; }
  .content-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .content-tabs a { min-width: 0; border-color: var(--line); padding: 7px 8px; font-size: 0.76rem; line-height: 1.2; text-align: center; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .footer-main nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .site-footer nav section a { min-height: 34px; align-items: center; justify-content: flex-start; border: 0; padding: 0; background: transparent; text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .site-updated-at { text-align: left; }
  .result-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watchlist-panel { grid-template-columns: 1fr; }
  .watchlist-panel > small { grid-column: auto; }
  .alert-button { width: 100%; }
  .analytics-grid { grid-template-columns: 1fr; }
  .frequency-row .watch-number { justify-self: stretch; }
  .frequency-row .watch-number { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .site-footer .footer-main nav { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-main nav section:last-child { grid-column: 1 / -1; }
}

.history-summary-page .seo-page {
  max-width: 1120px;
}

.history-summary-page .breadcrumb {
  margin: -54px -24px 44px;
}

.summary-hero {
  margin-bottom: 30px;
}

.summary-hero h1 {
  max-width: 850px;
  margin: 4px 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.summary-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.summary-metrics article {
  display: grid;
  gap: 4px;
  min-height: 96px;
  align-content: center;
  border-left: 4px solid var(--teal);
  padding: 16px;
  background: white;
}

.summary-metrics span { color: var(--muted); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.summary-metrics strong { color: var(--teal-dark); font-size: 1.08rem; }

.summary-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
  margin: 28px 0 38px;
}

.summary-link-grid a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  background: white;
  text-decoration: none;
}

.summary-link-grid a:hover { border-color: var(--teal); }
.summary-link-grid strong { color: var(--ink); }
.summary-link-grid span { color: var(--muted); font-size: 0.76rem; }

.archive-summary-section { margin: 36px 0; }
.archive-summary-section h2,
.archive-summary-grid h2 { color: var(--teal-dark); font-size: 1.35rem; }

.archive-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.archive-summary-grid > article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  background: white;
}

.archive-summary-grid dl { display: grid; gap: 8px; margin: 0; }
.archive-summary-grid dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ece8df; padding-bottom: 6px; }
.archive-summary-grid dt { color: var(--muted); }
.archive-summary-grid dd { margin: 0; color: var(--teal-dark); font-weight: 900; }
.archive-summary-grid > article > strong { display: block; color: var(--pink); font-size: 2.5rem; }
.archive-summary-grid p { color: var(--muted); }

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 38px;
}

@media (max-width: 760px) {
  .history-summary-page .breadcrumb { margin: -44px -18px 34px; padding-right: 18px; padding-left: 18px; }
  .summary-metrics,
  .archive-summary-grid { grid-template-columns: 1fr; }
  .summary-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-actions { display: grid; }
  .summary-actions a { width: 100%; text-align: center; }
}

.draw-explainer,
.dream-reference-guide {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.draw-explainer > h2,
.dream-reference-guide > h2 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--teal-dark);
  font-size: 2.35rem;
  line-height: 1.08;
}

.draw-explainer > p,
.dream-reference-guide > p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.7;
}

.draw-answer-grid,
.dream-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.dream-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.draw-answer-grid article,
.dream-answer-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--pink);
  border-radius: 7px;
  background: #fff;
}

.draw-answer-grid h3,
.dream-answer-grid h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.draw-answer-grid p,
.dream-answer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.source-note {
  padding: 16px 18px;
  border-left: 4px solid #e2ad27;
  background: #fffaf0;
  color: #4e5754 !important;
}

.source-note a { color: var(--teal); font-weight: 900; }

.draw-neighbour-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.draw-neighbour-links a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--teal-dark);
  text-decoration: none;
}

.draw-neighbour-links a:last-child { text-align: right; }
.draw-neighbour-links span { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.draw-neighbour-links strong { overflow-wrap: anywhere; }

.monthly-result-section { margin-top: 42px; }
.monthly-result-section .section-heading { max-width: 860px; }
.monthly-result-table { min-width: 960px; }
.monthly-result-table .result-number-badge { margin: 0; }
.monthly-result-table .table-ball { white-space: nowrap; }

@media (max-width: 760px) {
  .draw-explainer,
  .dream-reference-guide { margin-top: 34px; padding-top: 26px; }
  .draw-explainer > h2,
  .dream-reference-guide > h2 { font-size: 1.85rem; }
  .draw-answer-grid,
  .dream-answer-grid,
  .draw-neighbour-links { grid-template-columns: 1fr; }
  .draw-neighbour-links a:last-child { text-align: left; }
  .monthly-result-table { min-width: 0; }
}
