/* Homepage open-layout treatment. Keep every rule scoped to .page-home. */

.page-home {
  --home-content-width: 1320px;
  --home-gutter: clamp(20px, 4vw, 48px);
  --home-rule: #d8dee9;
  background: #ffffff;
}

.page-home .site-glow {
  display: none;
}

.page-home .site-topbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #dfe4ec;
  backdrop-filter: blur(14px);
}

.page-home .desktop-nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .nav-chip {
  position: relative;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .nav-chip:hover,
.page-home .nav-chip.active {
  background: transparent;
  box-shadow: none;
}

.page-home .nav-chip.active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: -8px;
  left: 11px;
  height: 3px;
  background: var(--snap-yellow-deep);
}

.page-home .site-main {
  display: block;
  max-width: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-home .home-open-inner {
  width: min(100%, var(--home-content-width));
  margin-inline: auto;
  padding-inline: var(--home-gutter);
}

/* Open command area */
.page-home .home-command-shell {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.page-home .home-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(32px, 6vw, 82px);
  min-height: 340px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(44px, 6vw, 76px);
  align-items: stretch;
}

.page-home .home-command-copy {
  align-self: center;
}

.page-home .home-command-kicker {
  color: #4d5b73;
}

.page-home .home-command-copy h1 {
  max-width: 720px;
  margin: 14px 0 14px;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.page-home .home-command-copy p {
  max-width: 700px;
  font-size: 1.05rem;
}

.page-home .home-command-actions {
  margin-top: 24px;
}

.page-home .home-next-draw {
  align-self: stretch;
  justify-content: center;
  padding: 24px 0 24px clamp(32px, 5vw, 68px);
  border: 0;
  border-left: 1px solid var(--home-rule);
  border-radius: 0;
  background: transparent;
  color: var(--snap-navy);
  box-shadow: none;
}

.page-home .home-next-draw > span {
  color: #c89e00;
}

.page-home .home-next-draw-heading strong,
.page-home .home-next-draw-amount {
  color: #101a31;
}

.page-home .home-next-draw-heading small {
  color: #536078;
}

.page-home .home-next-draw-amount {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  letter-spacing: 0;
}

.page-home .home-next-draw a {
  color: #101a31;
}

/* Shared open sections */
.page-home .home-open-section {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--home-rule);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
}

.page-home .home-section-heading-band {
  border-bottom: 1px solid var(--home-rule);
  background: #ffffff;
}

.page-home .home-section-heading-band.is-yellow {
  border-color: #e6c600;
  background: var(--snap-yellow);
}

.page-home .home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.page-home .home-section-heading h2 {
  margin: 0;
  color: #101a31;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
  text-transform: uppercase;
}

.page-home .home-section-heading .panel-link {
  flex: 0 0 auto;
}

.page-home .home-section-body {
  padding-top: 0;
  padding-bottom: 0;
}

/* Results become two open columns separated by rules. */
.page-home .results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.page-home .result-card {
  display: block;
  min-width: 0;
  padding: 28px 22px 30px;
  border: 0;
  border-bottom: 1px solid var(--home-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .result-card:nth-child(odd) {
  border-right: 1px solid var(--home-rule);
}

.page-home .result-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.page-home .result-card:hover {
  transform: none;
  border-color: var(--home-rule);
  box-shadow: none;
}

.page-home .result-card-head {
  padding: 0;
  background: transparent;
  color: #101a31;
  font-family: "Sora", "Outfit", sans-serif;
  font-size: 1.1rem;
}

.page-home .result-card-head span:last-child {
  color: #445168;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.page-home .result-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  padding: 0;
}

.page-home .result-meta {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 13px 0 14px;
}

.page-home .result-card .lottery-row {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.page-home .result-card .alert {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 14px;
}

.page-home .result-card-actions {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  white-space: nowrap;
}

.page-home .btn-result-open,
.page-home .btn-result-secondary {
  padding: 4px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101a31;
  font-weight: 800;
}

.page-home .btn-result-open:hover,
.page-home .btn-result-secondary:hover {
  background: transparent;
  color: #d62831;
}

.page-home .btn-result-secondary {
  border-left: 1px solid #aeb7c6;
}

/* Predictions become one continuous three-column ledger. */
.page-home .predictions-home-shell .home-section-heading-band {
  border-bottom: 0;
}

.page-home .predictions-home-shell .home-section-heading {
  padding-top: 12px;
}

.page-home .prediction-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.page-home a.prediction-home-card,
.page-home article.prediction-home-card {
  min-height: 190px;
  padding: 24px 28px 30px;
  border: 0;
  border-right: 1px solid var(--home-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .prediction-home-card:last-child {
  border-right: 0;
}

.page-home .prediction-home-card::before {
  right: 18px;
  left: 18px;
  height: 4px;
  border-radius: 0;
}

.page-home a.prediction-home-card:hover,
.page-home a.prediction-home-card:focus-visible,
.page-home article.prediction-home-card:hover {
  transform: none;
  border-color: var(--home-rule);
  background: #fbfcfe;
  box-shadow: none;
}

.page-home .prediction-home-head {
  margin: 8px 0 14px;
}

.page-home .prediction-home-head h3 {
  margin: 0;
  color: #101a31;
  font-size: 1.35rem;
}

.page-home .prediction-home-card .prediction-draw-meta {
  margin-top: 16px;
}

.page-home .predictions-home-shell .home-section-body > .text-muted,
.page-home .home-results-panel .home-section-body > .alert {
  margin: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Promotional draw is a full-width band, not a floating page card. */
.page-home .home-promo-section {
  margin: 0;
  border-top: 1px solid #e1c300;
  background: var(--snap-yellow);
}

.page-home .promo-draw-banner {
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: clamp(32px, 6vw, 76px);
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 64px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .promo-draw-banner::before {
  display: none;
}

.page-home .promo-draw-kicker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #101a31;
}

.page-home .promo-draw-title {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: 0;
}

.page-home .promo-draw-pill {
  border-color: rgba(19, 30, 53, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.page-home .promo-draw-prize-card {
  border-radius: 10px;
  box-shadow: none;
}

.page-home .promo-draw-step-grid {
  gap: 0;
  border-top: 1px solid rgba(19, 30, 53, 0.35);
}

.page-home .promo-draw-step-card {
  min-height: 0;
  padding: 18px 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .promo-draw-step-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.page-home .site-footer {
  margin-top: 0 !important;
}

/* Open spotlight sheet */
.page-home .floating-spotlight-shell {
  padding: 32px;
}

.page-home .floating-spotlight-shell.is-hidden {
  display: none;
}

.page-home .floating-spotlight-backdrop {
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(4px);
}

.page-home .floating-spotlight-card {
  --spotlight-text: #101a31;
  --spotlight-muted: #59667c;
  --spotlight-pill-bg: transparent;
  --spotlight-pill-color: #556278;
  --spotlight-subcard-text: #101a31;
  --spotlight-subcard-muted: #59667c;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  align-items: stretch;
  width: min(1120px, calc(100vw - 64px));
  max-height: min(88vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #cfd6e1;
  border-top: 4px solid var(--spotlight-accent);
  border-radius: 4px;
  background: #ffffff !important;
  box-shadow: 0 28px 72px rgba(6, 15, 31, 0.28);
  backdrop-filter: none;
}

.page-home .floating-spotlight-card::before,
.page-home .floating-spotlight-card::after {
  display: none;
}

.page-home .floating-spotlight-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid #cfd6e1;
  border-radius: 4px;
  background: #ffffff;
  color: #26334a;
  box-shadow: none;
}

.page-home .floating-spotlight-close:hover {
  transform: none;
  border-color: #d33b3f;
  color: #d33b3f;
  box-shadow: none;
}

.page-home .floating-spotlight-main {
  justify-content: center;
  gap: 22px;
  min-height: 520px;
  padding: 54px 52px 48px;
  padding-right: 72px;
  background: #ffffff;
}

.page-home .floating-spotlight-kicker,
.page-home .floating-subcard-kicker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #56637a;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.page-home .floating-spotlight-heading {
  display: block;
}

.page-home .floating-spotlight-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: #101a31;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  font-weight: 800;
  text-shadow: none;
  text-wrap: balance;
}

.page-home .floating-spotlight-heading p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #59667c;
  font-size: 1.05rem;
  line-height: 1.55;
  text-shadow: none;
}

.page-home .floating-spotlight-badge {
  margin-top: 16px;
  padding: 7px 10px;
  border: 1px solid #d6a600;
  border-radius: 4px;
  background: #fff5bf;
  color: #5f4d00;
}

.page-home .floating-spotlight-amount {
  color: #101a31;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.page-home .floating-spotlight-contact {
  max-width: 13ch;
  color: #101a31;
  font-size: clamp(2.25rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  white-space: normal;
  text-shadow: none;
}

.page-home .floating-spotlight-meta {
  gap: 14px 22px;
  padding: 17px 0;
  border-top: 1px solid #d8dee9;
  border-bottom: 1px solid #d8dee9;
  color: #4f5d74;
  font-size: 0.96rem;
  text-shadow: none;
}

.page-home .floating-spotlight-actions,
.page-home .floating-subcard-actions {
  gap: 10px;
}

.page-home .floating-spotlight-card .btn-snap-primary {
  border-radius: 6px;
  background: #d83b3f !important;
  color: #ffffff;
  box-shadow: none !important;
}

.page-home .floating-spotlight-card .btn-snap-ghost {
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.page-home .floating-spotlight-subcard {
  justify-content: center;
  gap: 18px;
  min-height: 520px;
  margin: 0;
  padding: 56px 36px 42px;
  border: 0;
  border-left: 1px solid #d8dee9;
  border-radius: 0;
  background: #f7f8fb;
  box-shadow: none;
  backdrop-filter: none;
}

.page-home .floating-spotlight-subcard h3 {
  max-width: 14ch;
  margin: 0;
  color: #101a31;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.page-home .floating-spotlight-subcard p {
  color: #59667c;
  font-size: 0.96rem;
  line-height: 1.55;
}

.page-home .floating-subcard-links {
  gap: 10px;
  color: #4f5d74;
}

.page-home .floating-jackpot-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid #cfd6e1;
  border-bottom: 1px solid #cfd6e1;
  border-radius: 0;
  background: transparent;
}

.page-home .floating-jackpot-row:hover {
  transform: none;
  border-color: #aeb8c7;
  background: transparent;
  color: #d33b3f;
  box-shadow: none;
}

.page-home .floating-jackpot-row span {
  color: #101a31;
  font-size: 1.15rem;
}

.page-home .floating-sponsor-media-wrap {
  border-radius: 4px;
  background: #ffffff;
}

@media (max-width: 991px) {
  .page-home .home-command-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .page-home .home-next-draw {
    padding: 30px 0 0;
    border-top: 1px solid var(--home-rule);
    border-left: 0;
  }

  .page-home .promo-draw-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-home {
    --home-gutter: 18px;
  }

  .page-home .floating-spotlight-shell {
    display: block;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 76px) 0 calc(env(safe-area-inset-bottom, 0px) + 92px);
  }

  .page-home .floating-spotlight-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .page-home .floating-spotlight-main {
    min-height: 0;
    gap: 18px;
    padding: 34px 22px 30px;
    padding-right: 64px;
  }

  .page-home .floating-spotlight-heading h2 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 11vw, 3.15rem);
  }

  .page-home .floating-spotlight-heading p {
    font-size: 0.98rem;
  }

  .page-home .floating-spotlight-contact {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page-home .floating-spotlight-meta {
    display: grid;
    gap: 10px;
  }

  .page-home .floating-spotlight-actions,
  .page-home .floating-subcard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-home .floating-spotlight-actions a,
  .page-home .floating-subcard-actions a {
    width: 100%;
    justify-content: center;
  }

  .page-home .floating-spotlight-subcard {
    min-height: 0;
    padding: 30px 22px 34px;
    border-left: 0;
    border-top: 1px solid #d8dee9;
    border-radius: 0;
  }

  .page-home .floating-spotlight-close {
    top: 14px;
    right: 14px;
  }

  .page-home .home-command-layout {
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .page-home .home-command-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .page-home .home-command-actions {
    grid-template-columns: 1fr;
  }

  .page-home .home-command-actions .btn-snap-primary,
  .page-home .home-command-actions .btn-snap-ghost {
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .page-home .home-next-draw-amount {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .page-home .home-section-heading {
    min-height: 58px;
  }

  .page-home .home-section-heading h2 {
    font-size: 1rem;
  }

  .page-home .home-section-heading .panel-link {
    font-size: 0.78rem;
  }

  .page-home .results-grid,
  .page-home .prediction-home-grid {
    grid-template-columns: 1fr;
  }

  .page-home .result-card {
    padding: 24px 0 26px;
  }

  .page-home .result-card:nth-child(odd) {
    border-right: 0;
  }

  .page-home .result-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--home-rule);
  }

  .page-home .result-card:last-child {
    border-bottom: 0;
  }

  .page-home .result-card-body {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .page-home .result-card .lottery-row,
  .page-home .result-card-actions {
    grid-column: 1;
  }

  .page-home .result-card-actions {
    grid-row: 3;
    justify-self: start;
  }

  .page-home .result-card .alert {
    grid-row: 4;
  }

  .page-home a.prediction-home-card,
  .page-home article.prediction-home-card {
    min-height: 0;
    padding: 24px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--home-rule);
  }

  .page-home .prediction-home-card:last-child {
    border-bottom: 0;
  }

  .page-home .prediction-home-card::before {
    right: 0;
    left: 0;
  }

  .page-home .promo-draw-banner {
    gap: 30px;
  }

  .page-home .promo-draw-title {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .page-home .promo-draw-step-grid {
    grid-template-columns: 1fr;
  }

  .page-home .promo-draw-step-card {
    grid-template-columns: 34px 1fr;
    gap: 5px 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(19, 30, 53, 0.16);
  }

  .page-home .promo-draw-step-card:last-child {
    border-bottom: 0;
  }

  .page-home .promo-draw-step-card span {
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .result-card,
  .page-home .prediction-home-card,
  .page-home .promo-draw-step-card {
    transition: none;
  }
}
