:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #10131b;
  --muted: #5d6574;
  --accent: #d82758;
  --accent-dark: #bd1748;
  --soft-accent: #fff0f5;
  --border: #dfe2e7;
  --border-strong: #b9bec8;
  --display: Georgia, "Times New Roman", ui-serif, serif;
  --sans: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  --page: 82.5rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --focus: 0 0 0 3px #fafafa, 0 0 0 6px #10131b;
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --duration: 200ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.page-width {
  width: min(100%, calc(var(--page) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  font-weight: 700;
  transition: transform var(--duration) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: #f7f7f8;
  color: #343946;
  font-size: 0.75rem;
}

.trust-strip__inner {
  min-height: 2.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.trust-strip p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.trust-strip svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgb(250 250 250 / 94%);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  min-height: 2.75rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.brand span {
  color: var(--accent);
}

.icon-button {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--duration) ease, color var(--duration) ease, background var(--duration) ease;
}

.icon-button:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.icon-button svg {
  width: 1.35rem;
  height: 1.35rem;
}

.menu-button .close-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .close-icon {
  display: block;
}

.primary-nav {
  position: absolute;
  z-index: 45;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 7.4rem);
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--border);
  background: #fafafa;
  box-shadow: 0 2rem 4rem rgb(16 19 27 / 8%);
}

.primary-nav.is-open,
.primary-nav.open {
  display: flex;
}

.primary-nav a {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--accent-dark);
}

.hero {
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy h1,
.section h2,
.trust-section h2,
.result-board__heading h2,
.site-footer .brand {
  font-family: var(--display);
}

.hero__copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.3rem, 10vw, 5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero__copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__copy > p {
  max-width: 39rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero__actions,
.install-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color var(--duration) ease, background var(--duration) ease, border-color var(--duration) ease, transform var(--duration) ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: white;
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--ink);
  color: white;
}

.hero__visual {
  position: relative;
  min-height: 20rem;
  display: grid;
  align-items: center;
}

.hero__visual > img {
  width: 100%;
  opacity: 0.66;
}

.next-draw-card {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  width: min(22rem, 92%);
  min-height: 6.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 94%);
}

.next-draw-card > svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.next-draw-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.next-draw-card strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.1;
}

.next-draw-card a {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.next-draw-card a:hover {
  background: var(--soft-accent);
  color: var(--accent-dark);
}

.national {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.result-board {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.result-board__heading {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.result-board__heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-board__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.draw-row {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
}

.draw-row + .draw-row {
  border-top: 1px solid var(--border);
}

.draw-row__game {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.game-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.game-mark--powerball {
  border: 1px solid #10131b;
  background: #fff;
}

.game-mark--mega {
  background: var(--accent);
  color: #fff;
}

.draw-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.draw-row__game p,
.draw-row__numbers p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.favorite-button {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
}

.favorite-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-dark);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 2vw, 0.75rem);
}

.balls span {
  width: clamp(2.65rem, 11vw, 3.5rem);
  height: clamp(2.65rem, 11vw, 3.5rem);
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-family: var(--display);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 700;
}

.balls .ball--special {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.balls .special {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.draw-row__jackpot {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.draw-row__jackpot > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.draw-row__jackpot > strong {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.draw-row__jackpot a,
.section-heading a,
.text-link,
.trust-links a {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-weight: 700;
  transition: color var(--duration) ease, gap var(--duration) ease;
}

.draw-row__jackpot a:hover,
.section-heading a:hover,
.text-link:hover,
.trust-links a:hover {
  gap: 0.9rem;
  color: var(--ink);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.checker-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.checker-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.checker-panel h2,
.states-section h2,
.install-section h2,
.trust-section h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.section-intro,
.install-copy > p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

#number-checker {
  margin-top: 2rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.game-switch legend,
.number-fields legend {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.game-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.game-switch legend {
  grid-column: 1 / -1;
}

.game-switch label {
  position: relative;
}

.game-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.game-switch span {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.game-switch label:first-of-type span {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.game-switch label:last-of-type span {
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.game-switch input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.game-switch input:focus-visible + span {
  box-shadow: var(--focus);
}

.game-switch button {
  min-height: 3.5rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.game-switch button:first-of-type {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.game-switch button:last-of-type {
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.game-switch button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.field-label,
.special-field > span {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

select,
.number-fields input {
  width: 100%;
  min-height: 3.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

select {
  padding: 0 1rem;
}

.number-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.number-fields__main {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.number-fields label:not(.special-field) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.number-fields input {
  appearance: textfield;
  padding: 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 700;
  text-align: center;
}

.number-fields input::-webkit-inner-spin-button,
.number-fields input::-webkit-outer-spin-button {
  appearance: none;
}

.number-fields input:user-invalid,
.number-fields input.is-invalid,
.number-fields input[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff5f4;
}

.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.3rem;
  color: #8f1d16;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.special-field {
  margin: 0;
}

.special-field > span {
  margin-top: 0;
}

.special-field input {
  border-color: var(--accent);
}

.checker-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.privacy-note svg {
  width: 1.1rem;
  height: 1.1rem;
}

.checker-status {
  min-height: 3.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--border-strong);
  background: #f5f6f7;
  color: var(--muted);
  font-size: 0.9rem;
}

.checker-status[data-state="error"] {
  border-color: #b42318;
  background: #fff5f4;
  color: #7a271a;
}

.checker-status[data-state="success"] {
  border-color: #17734f;
  background: #eefaf5;
  color: #155b42;
}

.ticket-preview {
  position: relative;
  width: min(100%, 30rem);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgb(25 28 38 / 8%);
  text-align: center;
}

.ticket-preview::before,
.ticket-preview::after {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 0.55rem;
  content: "";
  background: radial-gradient(circle at 0.55rem 0.45rem, transparent 0.27rem, #fff 0.29rem) 0 0 / 0.55rem 0.9rem repeat-y;
}

.ticket-preview::before {
  left: -0.55rem;
}

.ticket-preview::after {
  right: -0.55rem;
  transform: scaleX(-1);
}

.ticket-preview__brand {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.ticket-preview__brand span {
  color: var(--accent);
}

.ticket-preview > p,
.ticket-preview small {
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.ticket-preview > p {
  margin: 0.2rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.ticket-preview hr {
  border: 0;
  border-top: 1px solid var(--border-strong);
}

.ticket-preview time {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket-preview__numbers {
  margin: 2rem 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  font-weight: 700;
  word-spacing: 0.45rem;
}

.ticket-preview__numbers b {
  color: var(--accent);
}

.barcode {
  height: 3rem;
  margin: 2rem 0;
  background: repeating-linear-gradient(90deg, #10131b 0 1px, transparent 1px 4px, #10131b 4px 6px, transparent 6px 9px);
}

.ticket-preview small {
  color: var(--muted);
  font-size: 0.58rem;
}

.states-section {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.state-rail {
  display: grid;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-strong);
}

.state-rail a {
  min-height: 13rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 0.9rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) ease, padding var(--duration) ease;
}

.state-rail a:hover {
  padding-inline: 0.75rem;
  background: var(--surface);
}

.state-code {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  grid-row: span 2;
  place-items: center;
  background: #eceef1;
  font-size: 0.75rem;
  font-weight: 800;
}

.state-rail strong {
  font-size: 1.1rem;
}

.state-rail small {
  color: var(--muted);
}

.state-rail time,
.state-rail em {
  grid-column: 1 / -1;
}

.state-rail time {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  font-style: normal;
}

.state-rail em {
  width: fit-content;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  margin-top: 0.8rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.install-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.install-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.install-copy h2 {
  max-width: 11ch;
}

.install-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.phone-visual {
  position: relative;
  min-height: 28rem;
  display: grid;
  place-items: center;
}

.phone-halo {
  position: absolute;
  width: min(30rem, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fde3ec;
}

.phone-visual img {
  position: relative;
  z-index: 1;
  width: min(22rem, 77vw);
  max-height: 38rem;
  object-fit: contain;
  filter: drop-shadow(0 1.75rem 2.2rem rgb(16 19 27 / 12%));
}

.trust-section {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.trust-section h2 {
  max-width: none;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.trust-section p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-links {
  display: grid;
  gap: 1rem;
}

.trust-links a {
  width: 100%;
  justify-content: space-between;
  color: var(--ink);
}

.site-footer {
  background: var(--bg);
  padding-block: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer .brand {
  font-size: 2.8rem;
}

.footer-brand p,
.footer-meta p {
  max-width: 20rem;
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.site-footer nav h2 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-transform: none;
}

.site-footer nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-meta p:last-child {
  margin-top: 1.5rem;
  color: var(--ink);
}

.reveal {
  animation: reveal 220ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 36rem) {
  .hero__actions,
  .install-actions {
    flex-direction: row;
    align-items: center;
  }

  .number-fields {
    grid-template-columns: minmax(0, 4fr) minmax(6rem, 1fr);
  }

  .special-field {
    padding-left: 1rem;
    border-left: 1px solid var(--border);
  }

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

  .state-rail a:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
  }

  .state-rail a:nth-child(even) {
    padding-left: 1.5rem;
  }

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

@media (min-width: 48rem) {
  .trust-strip {
    font-size: 0.84rem;
  }

  .site-header__inner {
    min-height: 5.3rem;
  }

  .menu-button {
    display: none;
  }

  .primary-nav,
  .primary-nav.is-open {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    padding: 0;
    background: transparent;
  }

  .primary-nav a {
    min-height: 3rem;
    border: 0;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .draw-row {
    grid-template-columns: minmax(14rem, 1fr) minmax(22rem, 1.4fr);
    padding: 1.8rem;
  }

  .favorite-button {
    top: 1.8rem;
    right: 1.8rem;
  }

  .draw-row__jackpot {
    grid-column: 1 / -1;
  }

  .checker-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  }

  .section-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .install-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.8fr);
    align-items: end;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 3.25rem 2.75rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(25rem, 0.84fr);
    min-height: 26.5rem;
  }

  .hero__copy h1 {
    max-width: 14ch;
    font-size: clamp(4.75rem, 6.25vw, 6.2rem);
  }

  .result-board__heading {
    padding-inline: 1.8rem;
  }

  .draw-row {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(27rem, 1.25fr) minmax(16rem, 0.8fr);
    align-items: center;
  }

  .draw-row__jackpot {
    grid-column: auto;
    padding: 0 0 0 1.8rem;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .draw-row__jackpot > strong {
    font-size: clamp(2.2rem, 3vw, 3.25rem);
  }

  .state-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .state-rail a,
  .state-rail a:nth-child(odd),
  .state-rail a:nth-child(even) {
    padding: 1.6rem;
    border-right: 1px solid var(--border);
  }

  .state-rail a:first-child {
    padding-left: 0;
  }

  .state-rail a:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1.7fr repeat(3, 1fr) 1.4fr;
    gap: 2rem;
  }

  .footer-grid > * + * {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }

  .footer-meta {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.row-status {
  display: inline-flex;
  margin-top: 0.45rem;
  color: #25704f;
  font-size: 0.78rem;
  font-weight: 800;
}

.row-status.status-cached {
  color: #8b5d16;
}

.draw-row__numbers > small,
.draw-row__jackpot > small,
.cash-value {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}

.result-links .source-link {
  color: var(--muted);
  font-size: 0.78rem;
}

.jackpot-stale [data-jackpot-value] {
  color: #8b5d16;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
}

.checker-result {
  min-height: 3.5rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f7f7f8;
  color: var(--muted);
  font-size: 0.85rem;
}

.checker-result strong,
.checker-result span {
  display: block;
}

.checker-result.warning {
  border-color: #d49b3a;
  background: #fff9eb;
  color: #704a0d;
}

.checker-result.has-match {
  border-color: #52a47d;
  background: #effaf4;
  color: #185b3d;
}

.checker-result.no-match {
  border-color: var(--border-strong);
  color: var(--ink);
}

.checker-disclaimer {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.checker-disclaimer strong {
  color: var(--ink);
}

.footer-link-button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-compliance {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-compliance p {
  margin: 0;
}

.footer-compliance strong {
  color: var(--ink);
}

.responsible-strip {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.responsible-strip strong,
.responsible-strip span {
  display: block;
}

.responsible-strip span,
.responsible-strip a {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.responsible-strip a {
  color: var(--accent-dark);
  font-weight: 800;
}

.legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.button[hidden] {
  display: none !important;
}

.result-unavailable {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity var(--duration) ease, transform var(--duration) ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.analytics-consent {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.9rem;
  max-width: 58rem;
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 1.25rem 4rem rgb(16 19 27 / 18%);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent strong,
.analytics-consent p {
  display: block;
  margin: 0;
}

.analytics-consent p {
  color: var(--muted);
  font-size: 0.78rem;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-consent .button {
  min-height: 2.75rem;
  font-size: 0.8rem;
}

.analytics-consent > a {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (min-width: 48rem) {
  .primary-nav.open {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    padding: 0;
    background: transparent;
  }

  .footer-compliance {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .responsible-strip,
  .legal {
    flex-direction: row;
    align-items: center;
  }

  .analytics-consent {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
}
