:root {
  --bg: oklch(0.965 0.014 253);
  --bg-raised: oklch(0.925 0.03 253);
  --bg-deep: oklch(0.875 0.046 255);
  --surface: oklch(0.99 0.006 250);
  --surface-muted: oklch(0.925 0.022 251);
  --ink: oklch(0.19 0.04 263);
  --ink-soft: oklch(0.43 0.035 260);
  --light: oklch(0.97 0.012 95);
  --light-soft: oklch(0.43 0.035 260);
  --blue: oklch(0.49 0.22 264);
  --blue-bright: oklch(0.66 0.205 255);
  --red: oklch(0.58 0.23 28);
  --red-dark: oklch(0.43 0.19 28);
  --gold: oklch(0.83 0.16 89);
  --gold-deep: oklch(0.65 0.15 76);
  --hero-gold: oklch(0.53 0.14 76);
  --success: oklch(0.7 0.17 150);
  --danger: oklch(0.66 0.2 28);
  --focus: oklch(0.88 0.17 91);
  --container: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 10;
  --z-splash: 30;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, oklch(0.82 0.09 250 / 0.3), transparent 27rem),
    radial-gradient(circle at 76% 16%, oklch(0.85 0.085 265 / 0.36), transparent 31rem),
    linear-gradient(148deg, var(--bg-raised), var(--bg) 46%, var(--bg-deep));
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-kerning: normal;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: "Barlow Condensed", Impact, sans-serif;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-splash) + 1);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  display: none;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, oklch(0.95 0.04 258) 0, var(--bg) 42%, var(--bg-deep) 100%);
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.js:not(.intro-ready) {
  overflow: hidden;
}

.js:not(.intro-ready) .splash {
  display: grid;
}

.js.intro-ready .splash {
  display: grid;
  visibility: hidden;
  opacity: 0;
}

.splash-logo {
  position: relative;
  z-index: 2;
  width: clamp(190px, 28vw, 330px);
  height: auto;
  transform-origin: top left;
  animation: splash-pulse 900ms var(--ease-out) both;
  will-change: transform;
}

.splash p {
  position: absolute;
  bottom: max(11vh, 56px);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.splash-rings,
.splash-rings span {
  position: absolute;
  border-radius: 50%;
}

.splash-rings {
  width: min(72vw, 580px);
  aspect-ratio: 1;
}

.splash-rings span {
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: oklch(0.83 0.16 89 / 0.18);
  animation: ring-spin 1.25s var(--ease-out) both;
}

.splash-rings span:nth-child(2) {
  inset: 13%;
  border-top-color: var(--red);
  border-right-color: oklch(0.58 0.23 28 / 0.18);
  animation-delay: 70ms;
  animation-direction: reverse;
}

.splash-rings span:nth-child(3) {
  inset: 26%;
  border-top-color: var(--blue-bright);
  border-right-color: oklch(0.66 0.205 255 / 0.18);
  animation-delay: 140ms;
}

.site-header {
  position: relative;
  z-index: var(--z-nav);
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
  background: var(--surface);
  box-shadow: inset 0 -1px 0 oklch(0.83 0.16 89 / 0.68);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 116px;
  min-height: 48px;
}

.brand img {
  display: block;
  width: clamp(118px, 11vw, 148px);
  height: auto;
}

.site-header .header-nav a {
  color: var(--ink-soft);
}

.site-header .header-nav a:hover {
  color: var(--ink);
}

.header-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.header-nav a,
.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--light-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.header-nav a:hover,
.site-footer a:hover {
  color: var(--light);
}

.header-action,
.button,
.test-button,
.refresh-button,
.route-link {
  min-height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    background 180ms ease,
    color 180ms ease;
}

.header-action {
  padding: 0 20px;
  color: var(--ink);
  background: var(--gold);
}

.header-action:hover,
.button-primary:hover,
.test-button:hover {
  transform: translateY(-2px);
  background: oklch(0.89 0.15 91);
}

main {
  position: relative;
}

.hero {
  width: min(100% - 40px, var(--container));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 76px 0 110px;
}

.gateway-label {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.gateway-label span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px oklch(0.7 0.17 150 / 0.14);
}

.hero h1 {
  max-width: 9.5ch;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 5.7vw, 5.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.93;
}

.hero-title-line {
  display: block;
}

.hero-title-line:nth-child(2) {
  padding-inline-start: 0.32em;
}

.hero h1 strong {
  display: block;
  padding-inline-start: 0.7em;
  color: var(--hero-gold);
  font: inherit;
  font-size: 1.08em;
  letter-spacing: -0.012em;
  line-height: 0.9;
}

.hero-title-period {
  color: var(--red-dark);
}

.hero-summary {
  max-width: 420px;
  margin-bottom: 30px;
  color: var(--light-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 0 22px;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-quiet {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px oklch(0.49 0.08 260 / 0.28);
}

.button-quiet:hover {
  color: var(--blue);
  background: oklch(0.955 0.03 253);
  transform: translateY(-2px);
}

.responsible-note {
  margin: 20px 0 0;
  color: var(--light-soft);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-halo {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    oklch(0.59 0.18 264 / 0.3),
    oklch(0.39 0.14 263 / 0.12) 42%,
    transparent 69%
  );
  filter: blur(4px);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(920px, 130%);
  max-width: none;
  height: auto;
  transform: translateX(4%);
  filter: drop-shadow(0 24px 22px oklch(0.06 0.03 263 / 0.48));
}

.intro-ready .hero-visual img {
  animation: hero-enter 650ms 180ms var(--ease-out) both;
}

.routes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100% - 40px, var(--container));
  margin: -44px auto 104px;
  padding: clamp(28px, 4vw, 48px);
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, oklch(0.88 0.1 251 / 0.58), transparent 24rem),
    linear-gradient(145deg, oklch(0.995 0.006 250), oklch(0.955 0.03 253));
  border-radius: 14px;
  box-shadow: 0 18px 42px oklch(0.32 0.07 260 / 0.14);
}

.routes::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22px;
  right: -48px;
  width: 180px;
  height: 180px;
  border: 24px solid oklch(0.83 0.16 89 / 0.14);
  border-radius: 50%;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1;
}

.test-button,
.refresh-button {
  padding: 0 20px;
  border: 0;
}

.test-button {
  color: var(--ink);
  background: var(--gold);
}

.test-button:disabled,
.refresh-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.route-status {
  min-height: 1.6em;
  margin: 18px 0 24px;
  color: var(--light-soft);
  font-size: 0.9rem;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  --route-accent: var(--blue);
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  min-height: 190px;
  padding: 20px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(155deg, oklch(1 0 0), oklch(0.965 0.02 253));
  box-shadow: 0 4px 8px oklch(0.26 0.055 261 / 0.1);
  display: flex;
  flex-direction: column;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease,
    background 220ms ease;
}

.route-card:nth-child(2) {
  --route-accent: var(--red);
}

.route-card:nth-child(3) {
  --route-accent: var(--gold-deep);
}

.route-card:nth-child(4) {
  --route-accent: var(--blue-bright);
}

.route-card:nth-child(5) {
  --route-accent: oklch(0.46 0.13 282);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--route-accent);
}

.route-card:not(.is-best):hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 8px oklch(0.26 0.055 261 / 0.14);
}

.route-card.is-best {
  --route-accent: var(--gold);
  grid-column: span 4;
  grid-row: span 2;
  min-height: 396px;
  color: var(--light);
  background:
    radial-gradient(circle at 88% 12%, oklch(0.62 0.2 264 / 0.55), transparent 42%),
    linear-gradient(155deg, oklch(0.27 0.105 263), oklch(0.18 0.075 263));
  box-shadow: inset 0 0 0 2px var(--gold-deep);
}

.route-card.is-best::before {
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.route-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-node {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--route-accent);
  background: color-mix(in oklch, var(--route-accent) 14%, white);
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.route-card.is-best .route-node {
  color: var(--ink);
  background: var(--gold);
}

.route-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-card.is-best .route-label {
  color: oklch(0.84 0.03 255);
}

.route-state {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.route-card.is-best .route-state,
.route-state.is-online {
  color: oklch(0.28 0.12 150);
  background: oklch(0.9 0.1 150);
}

.route-state.is-offline {
  color: oklch(0.41 0.17 28);
  background: oklch(0.91 0.065 28);
}

.route-host {
  margin: 18px 0 8px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}

.route-card.is-best .route-host {
  max-width: 10ch;
  margin-top: 30px;
  color: var(--light);
  font-size: clamp(2.4rem, 4vw, 3.35rem);
}

.route-performance {
  margin-top: auto;
}

.route-speed {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.route-speed strong {
  color: var(--ink);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.route-speed span {
  font-size: 0.75rem;
  font-weight: 700;
}

.route-card.is-best .route-speed {
  color: oklch(0.82 0.025 255);
}

.route-card.is-best .route-speed strong {
  color: var(--gold);
  font-size: 2.45rem;
}

.route-signal-track {
  position: relative;
  overflow: hidden;
  height: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: oklch(0.88 0.026 254);
}

.route-signal-track > span {
  display: block;
  width: var(--signal);
  height: 100%;
  border-radius: inherit;
  background: var(--route-accent);
  transition: width 520ms var(--ease-out);
}

.route-card.is-best .route-signal-track {
  background: oklch(0.42 0.09 263);
}

.route-card.is-best .route-signal-track > span {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.route-grid.is-testing .route-signal-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.84), transparent);
  transform: translateX(-100%);
  animation: link-scan 620ms var(--ease-out) both;
  animation-delay: var(--route-delay);
}

.route-link {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 14px;
  color: var(--light);
  background: var(--blue);
  justify-content: space-between;
}

.route-card.is-best .route-link {
  color: var(--light);
  background: var(--red);
}

.route-link:not(.is-disabled):hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.route-link::after {
  content: "↗";
  font-size: 1.05rem;
  line-height: 1;
}

.route-link.is-disabled {
  cursor: default;
  color: var(--light);
  background: var(--blue);
}

.route-link.is-disabled::after {
  content: "↗";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.route-card.is-best .route-link.is-disabled {
  color: var(--light);
  background: var(--red);
}

.route-card.is-best .route-link.is-disabled::after {
  background: transparent;
  box-shadow: none;
}

.route-grid.is-ranked .route-card {
  animation: route-settle 420ms var(--ease-out) both;
  animation-delay: var(--route-delay);
}

.draws {
  padding: 94px max(20px, calc((100% - var(--container)) / 2)) 100px;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--surface), oklch(0.95 0.018 251));
}

.draw-heading p {
  color: var(--red);
}

.refresh-button {
  color: var(--light);
  background: var(--blue);
}

.refresh-button:hover {
  transform: translateY(-2px);
  background: var(--red);
}

.results-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.draw-card {
  overflow: hidden;
  border-radius: 14px;
  background: oklch(1 0 0);
  box-shadow: 0 6px 8px oklch(0.19 0.04 263 / 0.11);
}

.draw-card-header {
  min-height: 84px;
  padding: 16px 20px;
  color: var(--light);
  background: oklch(0.28 0.1 263);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.draw-card-header .live-label {
  color: oklch(0.86 0.025 255);
}

.game-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-name img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.game-name h3 {
  margin-bottom: 2px;
  font-size: 1.7rem;
  line-height: 1;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--light-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.live-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.number-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lotto-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  box-shadow: inset -4px -5px 0 oklch(0.65 0.15 76 / 0.55);
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.draw-card-body {
  padding: 22px 20px 24px;
}

.draw-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.meta-block span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.meta-block strong {
  display: block;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.countdown {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--surface-muted);
  color: var(--blue);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.drawing-note {
  margin: 10px 0 0;
  color: var(--red-dark);
  font-size: 0.8rem;
}

.data-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer {
  width: min(100% - 40px, var(--container));
  min-height: 180px;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.site-footer img {
  width: 112px;
  height: auto;
}

.site-footer p {
  max-width: 62ch;
  margin: 0;
  color: var(--light-soft);
  font-size: 0.84rem;
}

.mobile-nav {
  display: none;
}

@keyframes ring-spin {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.72);
  }
  to {
    opacity: 1;
    transform: rotate(260deg) scale(1);
  }
}

@keyframes splash-pulse {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  55% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0.4;
    transform: translate(4%, 20px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate(4%, 0) scale(1);
  }
}

@keyframes link-scan {
  to {
    transform: translateX(100%);
  }
}

@keyframes route-settle {
  from {
    opacity: 0.84;
    transform: translateY(10px);
  }
}

@media (max-width: 1020px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
    margin-inline: auto;
    padding: 24px 0 72px;
    text-align: center;
  }

  .hero h1 {
    margin-inline: auto;
  }

  .hero-title-line:nth-child(2),
  .hero h1 strong {
    padding-inline-start: 0;
  }

  .gateway-label,
  .hero-actions {
    justify-content: center;
  }

  .hero-summary {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
    margin-top: 28px;
    align-self: auto;
    align-items: center;
    justify-content: center;
  }

  .hero-visual img {
    width: min(680px, 84%);
    max-width: 100%;
    margin: 0 auto;
    transform: translateX(0);
  }

  .routes {
    margin-top: -18px;
  }

  .route-card,
  .route-card.is-best,
  .route-card:nth-child(n + 4) {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 210px;
  }

  .route-card.is-best:last-child:nth-child(odd),
  .route-card:last-child:nth-child(odd) {
    grid-column: 4 / span 6;
  }

  .route-card.is-best .route-host {
    max-width: none;
    margin-top: 18px;
    font-size: 2rem;
  }

  @keyframes hero-enter {
    from {
      opacity: 0.4;
      transform: translateY(20px) scale(0.975);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .site-header {
    width: 100%;
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand img {
    width: 110px;
  }

  .header-nav,
  .header-action {
    display: none;
  }

  .hero {
    width: min(100% - 28px, var(--container));
  }

  .hero-copy {
    padding: 24px 0 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero-visual {
    order: -1;
    min-height: 0;
    margin-top: 20px;
    align-self: auto;
    align-items: center;
    justify-content: center;
  }

  .hero-visual img {
    width: min(520px, 88%);
    max-width: 100%;
  }

  .routes {
    width: min(100% - 28px, var(--container));
    margin-top: -4px;
    margin-bottom: 64px;
    padding: 24px 16px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading h2 {
    font-size: 2.65rem;
  }

  .test-button,
  .refresh-button {
    width: 100%;
  }

  .route-grid {
    gap: 10px;
  }

  .route-card,
  .route-card.is-best,
  .route-card:nth-child(n + 4),
  .route-card.is-best:last-child:nth-child(odd),
  .route-card:last-child:nth-child(odd) {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 190px;
    padding: 14px;
  }

  .route-card.is-best {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .route-host {
    font-size: 1.42rem;
  }

  .route-card.is-best .route-host {
    font-size: 2.2rem;
  }

  .draws {
    padding: 64px 14px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .site-footer {
    width: min(100% - 28px, var(--container));
    min-height: 220px;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .site-footer img {
    width: 100px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-nav);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 12px env(safe-area-inset-bottom);
    background: oklch(0.99 0.008 250 / 0.97);
    box-shadow:
      inset 0 1px 0 oklch(0.49 0.08 260 / 0.16),
      0 -3px 12px oklch(0.32 0.07 260 / 0.14);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-nav a {
    position: relative;
    min-height: 52px;
    display: grid;
    place-items: center;
    color: var(--light-soft);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--gold-deep);
  }

  .mobile-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 4px;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold-deep);
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .route-card,
  .route-card:nth-child(n + 4),
  .route-card.is-best,
  .route-card.is-best:last-child:nth-child(odd),
  .route-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 190px;
  }

  .route-card.is-best {
    min-height: 220px;
  }

  .draw-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .number-row {
    justify-content: flex-start;
  }

  .draw-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .splash-rings {
    display: none;
  }
}
