:root {
  color-scheme: light;
  --ink: #141923;
  --muted: #606b7b;
  --line: #dce3ec;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --ivory: #fffaf0;
  --night: #101624;
  --night-2: #18243a;
  --lotto: #1268c9;
  --super: #df6319;
  --ten: #137a59;
  --gold: #bd861c;
  --shadow: 0 18px 55px rgba(20, 25, 35, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 99, 25, .09), transparent 27rem),
    radial-gradient(circle at 87% 16%, rgba(18, 104, 201, .1), transparent 24rem),
    linear-gradient(180deg, #fffaf2 0, #f5f8fb 44%, #ffffff 100%);
  overflow-x: hidden;
}

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

.site-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
  background: transparent;
  pointer-events: none;
}

.header-inner,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 58px;
  pointer-events: none;
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 190px;
  pointer-events: auto;
  text-shadow: 0 8px 28px rgba(0,0,0,.32);
}

.brand strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  color: #d8e0ea;
  font-size: 13px;
}

.menu-panel {
  position: relative;
  pointer-events: auto;
}

.menu-panel[open] {
  z-index: 40;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 9px 8px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 16px 42px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.34);
}

.menu-label {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hamburger {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.hamburger span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--night);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 22px; }

.menu-panel[open] .hamburger span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.menu-panel[open] .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-panel[open] .hamburger span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

.nav {
  position: absolute;
  z-index: 110;
  top: calc(100% + 16px);
  right: 0;
  width: min(620px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 215, 139, .26), transparent 12rem),
    radial-gradient(circle at 88% 18%, rgba(47, 135, 211, .24), transparent 14rem),
    linear-gradient(135deg, #111827, #163a4f);
  color: #fff;
  box-shadow: 0 28px 84px rgba(0,0,0,.38);
  transform-origin: 92% 0;
  animation: menuBloom .28s ease-out both;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  pointer-events: none;
}

.nav a {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  color: #edf2f8;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 68%);
}

.nav a:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-3px) rotate(-1deg);
}

.nav a span {
  position: absolute;
  top: 13px;
  left: 15px;
  color: #ffd98f;
  font-size: 13px;
  font-weight: 900;
}

.nav a strong {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.nav a small {
  position: relative;
  z-index: 1;
  color: #cfd8e5;
  font-size: 13px;
}

.hero {
  position: relative;
  padding: 128px 0 52px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(16, 22, 36, .97), rgba(19, 53, 89, .88) 45%, rgba(18, 87, 65, .84)),
    radial-gradient(circle at 70% 20%, rgba(255, 211, 116, .45), transparent 22rem),
    linear-gradient(135deg, #15386c, #145d55 62%, #8a4b14);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.8), rgba(0,0,0,.12));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255,255,255,0) 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
  gap: 34px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #ffd98f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 870px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #e8eef7;
  font-size: 18px;
  line-height: 1.55;
}

.compact-hero {
  padding: 124px 0 40px;
}

.compact-hero .wrap {
  position: relative;
  z-index: 1;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  color: #f7fbff;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.hero-visual {
  position: relative;
  min-height: 330px;
}

.mega-ball {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.72) 0 8%, transparent 9% 21%, #d9951c 22% 100%);
  color: #352208;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
  box-shadow: 0 22px 42px rgba(0, 0, 0, .28), inset -12px -16px 26px rgba(111, 59, 0, .22);
  animation: floatBall 6s ease-in-out infinite;
}

.ball-a { left: 16%; top: 4%; }
.ball-b { right: 9%; top: 15%; animation-delay: -.9s; background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.72) 0 8%, transparent 9% 21%, #2d78cb 22% 100%); color: #082747; }
.ball-c { left: 4%; bottom: 12%; animation-delay: -1.7s; background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.72) 0 8%, transparent 9% 21%, #df6319 22% 100%); color: #431603; }
.ball-d { right: 20%; bottom: 3%; animation-delay: -2.5s; background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.72) 0 8%, transparent 9% 21%, #14906a 22% 100%); color: #063323; }

.draw-ticket {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(270px, 78vw);
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0,0,0,.32);
  animation: ticketIn .7s ease-out both;
}

.draw-ticket::before,
.draw-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #193757;
}

.draw-ticket::before { left: -11px; }
.draw-ticket::after { right: -11px; }

.draw-ticket span,
.draw-ticket small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.draw-ticket strong {
  display: block;
  margin: 6px 0;
  font-size: 30px;
  line-height: 1;
}

.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(220, 227, 236, .92);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(20,25,35,.03);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lotto), var(--gold));
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -55%;
  width: 80%;
  height: 180%;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.54), transparent 72%);
  transform: rotate(10deg);
  transition: translate .42s ease;
  opacity: 0;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 104, 201, .28);
  box-shadow: var(--shadow);
}

.card:hover::after {
  translate: 220% 0;
  opacity: 1;
}

.card.lotto::before { background: linear-gradient(90deg, var(--lotto), #8fbfff); }
.card.super::before { background: linear-gradient(90deg, var(--super), var(--gold)); }
.card.ten::before { background: linear-gradient(90deg, var(--ten), #7ed8b5); }

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

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

.card-kicker,
.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-kicker {
  margin-bottom: 7px;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ball {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e9eef6);
  border: 1px solid #d4dde8;
  color: #273244;
  font-weight: 900;
  box-shadow: inset -4px -5px 10px rgba(17, 24, 39, .08), 0 5px 12px rgba(20,25,35,.08);
  animation: ballSettle .24s ease both;
}

.ball::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
}

.lotto .ball { background: linear-gradient(145deg, #ffffff, #dcecff); border-color: #b8d2f5; color: var(--lotto); }
.super .ball { background: linear-gradient(145deg, #ffffff, #ffe5d4); border-color: #f1c3a5; color: var(--super); }
.ten .ball { background: linear-gradient(145deg, #ffffff, #dff8ee); border-color: #b3e1cf; color: var(--ten); }
.gold { background: linear-gradient(145deg, #fffdf2, #ffe08a); border-color: #e8c85b; color: #79540b; }

.wheel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(20,25,35,.08);
}

.wheel-table th,
.wheel-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.wheel-table th {
  background: #eef3f8;
  color: #344054;
  font-size: 13px;
  text-transform: uppercase;
}

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

.wheel-table tr:hover td {
  background: #fbfdff;
}

.inline-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--night), var(--night-2));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(16,22,36,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16,22,36,.22);
}

.note {
  background: #fff8e8;
  border: 1px solid #edd98b;
  border-radius: 8px;
  padding: 14px 16px;
  color: #5d450e;
}

.footer {
  margin-top: 34px;
  padding: 30px 0;
  background: var(--night);
  color: #cfd8e5;
  font-size: 14px;
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(7deg); }
}

@keyframes ticketIn {
  from { transform: translate(-50%, -45%) rotate(-1deg) scale(.96); }
  to { transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
}

@keyframes ballSettle {
  from { transform: scale(.96); }
  to { transform: scale(1); }
}

@keyframes menuBloom {
  from { transform: translateY(-8px) scale(.96); }
  to { transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
    flex-direction: row;
    padding: 16px 0;
  }

  .nav {
    width: min(520px, calc(100vw - 24px));
  }

  .hero {
    padding-top: 128px;
  }

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

  .hero-visual {
    min-height: 250px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .brand strong {
    font-size: 22px;
  }

  .nav a {
    min-height: 116px;
    padding: 14px;
  }

  .nav a strong {
    font-size: 18px;
    overflow-wrap: normal;
  }

  .nav a small {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.5vw, 42px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .mega-ball {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }

  .draw-ticket {
    width: min(245px, 88vw);
  }

  .section {
    padding: 32px 0;
  }

  .wheel-table th,
  .wheel-table td {
    padding: 11px 10px;
  }

  .ball {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

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