:root {
  --navy: #061b49;
  --navy-2: #0b2f7b;
  --blue: #0058d6;
  --blue-2: #0b75ff;
  --red: #d7192b;
  --red-2: #ff3348;
  --ink: #102143;
  --muted: #69748a;
  --line: #dfe6f2;
  --surface: #f7f9fd;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(6, 27, 73, 0.15);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(6, 27, 73, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  padding: 96px clamp(18px, 7vw, 96px) 54px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(11, 117, 255, 0.38), transparent 34%),
    linear-gradient(135deg, #021139 0%, #06327f 54%, #021139 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% -10%;
  height: 42%;
  background:
    linear-gradient(160deg, transparent 0 34%, rgba(255, 255, 255, 0.94) 35% 53%, transparent 54%),
    linear-gradient(152deg, transparent 0 46%, rgba(215, 25, 43, 0.94) 47% 64%, transparent 65%);
  opacity: 0.95;
  transform: rotate(-4deg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-content,
.live-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  animation: rise 620ms ease both;
}

.hero-logo {
  width: min(390px, 82vw);
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 690px;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 570px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.button,
.icon-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  padding: 0 22px;
}

.button:hover,
.icon-button:hover,
.result-card:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 28px rgba(215, 25, 43, 0.24);
}

.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.store {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.14);
}

.ghost-dark {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(6, 27, 73, 0.08);
}

.live-panel {
  min-height: 350px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), var(--shadow);
  backdrop-filter: blur(18px);
  animation: floatIn 720ms ease 120ms both;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #31f38b;
  box-shadow: 0 0 0 0 rgba(49, 243, 139, 0.55);
  animation: pulse 1.8s ease infinite;
}

.hero-balls {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ball {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 950;
  font-size: 2.5rem;
  box-shadow: inset -10px -12px 18px rgba(0, 0, 0, 0.2), inset 8px 8px 16px rgba(255, 255, 255, 0.5), 0 16px 26px rgba(0, 0, 0, 0.18);
}

.ball.blue {
  background: linear-gradient(145deg, #0b75ff, #003f9e);
  color: var(--white);
}

.ball.white {
  background: linear-gradient(145deg, #ffffff, #dce4ef);
  color: var(--ink);
}

.ball.red {
  background: linear-gradient(145deg, #ff3348, #b90e20);
  color: var(--white);
}

.mini-copy {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.toolbar-section,
.lottery-strip,
.app-section {
  padding: 62px clamp(18px, 6vw, 82px);
}

.toolbar-section {
  margin-top: -16px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading span,
.eyebrow {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px) 52px;
  gap: 12px;
  align-items: center;
}

.search,
select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(6, 27, 73, 0.06);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search span {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
}

select {
  padding: 0 14px;
}

.icon-button {
  width: 52px;
  color: var(--white);
  background: var(--blue);
  font-size: 1.35rem;
}

.meta-row {
  min-height: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.error-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #7b1020;
  background: #fff0f2;
  border: 1px solid #ffd2d8;
  font-weight: 750;
}

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

.result-card {
  min-height: 252px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(6, 27, 73, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.lottery-name img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: contain;
  background: #eef3fb;
}

.lottery-name strong {
  display: block;
  font-size: 1.05rem;
}

.lottery-name span,
.date-pill,
.draw-label,
.disclaimer {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.date-pill {
  white-space: nowrap;
  padding-top: 4px;
}

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

.number-ball {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 950;
  background: linear-gradient(145deg, #0b75ff, #003c96);
  box-shadow: inset -8px -9px 14px rgba(0, 0, 0, 0.2), inset 6px 7px 12px rgba(255, 255, 255, 0.36), 0 9px 18px rgba(6, 27, 73, 0.18);
}

.number-ball:nth-child(2) {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #dce4ef);
}

.number-ball:nth-child(3),
.number-ball:nth-child(6) {
  background: linear-gradient(145deg, #ff3348, #b90e20);
}

.disclaimer {
  margin-top: 22px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.verified-pill {
  color: #0a7a44;
  background: #e9fff3;
  border: 1px solid #bcefd2;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.share-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.share-button:hover {
  transform: translateY(-1px);
  background: var(--navy-2);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px 22px;
  text-align: center;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 750;
}

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

.logo-tile {
  min-height: 118px;
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(6, 27, 73, 0.07);
}

.logo-tile img {
  max-height: 58px;
  object-fit: contain;
}

.download-section {
  margin: 10px clamp(18px, 6vw, 82px) 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(11, 117, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #061b49 0%, #0b2f7b 58%, #061b49 100%);
  box-shadow: var(--shadow);
}

.download-copy {
  max-width: 740px;
}

.download-copy p {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.download-section .eyebrow {
  color: #ffffff;
}

.download-actions,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.download-actions {
  justify-content: flex-end;
}

.store-badge {
  min-width: 210px;
  min-height: 64px;
  border-radius: 8px;
  padding: 10px 18px;
  display: grid;
  align-content: center;
  color: var(--white);
  background: #111827;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #020617;
}

.store-badge span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.store-badge strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.app-section {
  margin: 0 clamp(18px, 6vw, 82px) 60px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 25, 43, 0.92), rgba(215, 25, 43, 0.72)),
    linear-gradient(135deg, var(--navy), var(--blue));
}

.app-section > div:first-child {
  max-width: 720px;
}

.app-section .eyebrow,
.app-section p {
  color: rgba(255, 255, 255, 0.84);
}

.app-section p {
  margin-top: 16px;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 82px);
  color: rgba(255, 255, 255, 0.78);
  background: #031238;
  font-weight: 750;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 16px rgba(49, 243, 139, 0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .live-panel {
    min-height: 280px;
  }

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

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

  .download-section {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 66px;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 10px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .toolbar {
    grid-template-columns: 1fr 52px;
  }

  select {
    grid-column: 1 / -1;
    order: 3;
  }

  .results-grid,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .meta-row,
  .app-section,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions,
  .app-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .download-actions .button,
  .app-actions .button,
  .store-badge {
    width: 100%;
  }

  .hero-balls {
    min-height: 170px;
  }

  .ball {
    width: 68px;
    height: 68px;
    font-size: 2rem;
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share-button,
  .verified-pill {
    width: 100%;
    text-align: center;
  }
}
