:root {
  --bg: #f4f1ea;
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f7f8fb;
  --text: #11213c;
  --text-muted: #64718a;
  --line: #dce3ee;
  --shadow-sm: 0 10px 22px rgba(17, 33, 60, 0.08);
  --shadow-lg: 0 28px 60px rgba(17, 33, 60, 0.14);
  --navy: #0f1f42;
  --navy-2: #173166;
  --navy-3: #2652a2;
  --red: #d94057;
  --red-2: #ef6d5b;
  --green: #109172;
  --green-2: #2dd0a2;
  --blue: #2475e1;
  --blue-2: #66c5ff;
  --purple: #6c4ae6;
  --purple-2: #b271ff;
  --orange: #ed8820;
  --orange-2: #ffbf59;
  --pink: #e44886;
  --pink-2: #ff90ab;
  --teal: #139e9e;
  --teal-2: #72e1d5;
  --container: 1280px;
  --radius-sm: 20px;
  --radius-md: 28px;
  --radius-lg: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 199, 124, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(83, 147, 255, 0.14), transparent 24%),
    var(--bg);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.8), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.52), transparent 20%);
  opacity: 0.7;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 42px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 34, 65, 0.06);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero-card .section-kicker,
.auth-side-card .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-title {
  margin: 0;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.section-copy {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted);
}

.section-controls {
  display: flex;
  gap: 10px;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-circle:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 82, 162, 0.35);
  background: var(--bg-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 54px;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 28px rgba(15, 31, 66, 0.16);
}

.button-dark:hover {
  background: #153065;
}

.button-light {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.button-light:hover {
  border-color: rgba(38, 82, 162, 0.35);
  background: #fff;
}

.button-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.button-soft:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start, var(--red)), var(--accent-end, var(--orange-2)));
  box-shadow: 0 18px 28px rgba(17, 33, 60, 0.16);
}

.button-block {
  width: 100%;
}

.ghost-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-3);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 227, 238, 0.9);
}

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

.header-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 18, 38, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 34;
}

.menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(12, 25, 52, 0.16));
}

.footer-brand .brand-mark {
  width: 72px;
  height: 72px;
}

.brand-name {
  display: block;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-item.has-menu .nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-item:hover .nav-link,
.nav-link.is-active {
  color: var(--navy);
  background: var(--surface-alt);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-muted);
}

.nav-submenu a:hover {
  background: var(--surface-alt);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle,
.menu-close {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  padding: 0;
}

.menu-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.menu-close {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-left: auto;
}

.cart-button {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(228, 72, 134, 0.28);
}

.hero-section {
  padding: 34px 0 20px;
}

.hero-stage {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.hero-feature,
.promo-slider {
  min-height: 465px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-feature {
  position: relative;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(135deg, rgba(207, 55, 82, 0.92) 0%, rgba(239, 110, 89, 0.82) 54%, rgba(255, 181, 92, 0.74) 100%),
    url("assets/images/hero-desert-jackpot.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, right -54px center;
  color: #fff;
}

.hero-feature::before,
.hero-feature::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-feature::before {
  width: 320px;
  height: 320px;
  right: -70px;
  top: -50px;
}

.hero-feature::after {
  width: 220px;
  height: 220px;
  left: 40%;
  bottom: -120px;
}

.hero-feature > * {
  position: relative;
  z-index: 1;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-pill,
.game-token {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.game-token {
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin-bottom: 18px;
  font-weight: 800;
}

.game-token::before {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: center / contain no-repeat url("assets/images/desert-millions-mark.png");
}

.hero-feature h1 {
  max-width: 7.5ch;
  margin: 0;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.92;
}

.hero-feature p {
  max-width: 610px;
  margin: 16px 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.03rem;
}

.timer-label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-cell {
  padding: 12px 10px;
  border-radius: 18px;
  text-align: center;
  background: rgba(8, 18, 38, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.countdown-value {
  display: block;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
}

.countdown-label {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
}

.metric {
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 18, 38, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric strong {
  font-size: 1rem;
}

.promo-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.promo-slider {
  position: relative;
}

.promo-slide {
  position: absolute;
  inset: 0;
  padding: 30px;
  color: #fff;
  display: grid;
  align-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.promo-slide.theme-indigo {
  background: linear-gradient(135deg, #10224a 0%, #24488e 58%, #53a1dc 100%);
}

.promo-slide.theme-teal {
  background: linear-gradient(135deg, #0f3f4e 0%, #12817b 54%, #6adfcd 100%);
}

.promo-slide::before,
.promo-slide::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.promo-slide > * {
  position: relative;
  z-index: 1;
}

.promo-slide::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -70px;
}

.promo-slide::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -30px;
}

.promo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-slide h2 {
  max-width: 8.2ch;
  margin: 14px 0 12px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
}

.promo-slide p {
  max-width: 320px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
}

.promo-art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 280px);
  display: grid;
  gap: 12px;
  align-items: end;
}

.promo-orb {
  width: 170px;
  height: 170px;
  margin-left: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 26px 32px rgba(10, 18, 34, 0.22));
}

.promo-slide.theme-indigo .promo-orb {
  width: 210px;
  height: 210px;
  background-image: url("assets/images/promo-bonus-capsule.png");
}

.promo-slide.theme-teal .promo-orb {
  width: 226px;
  height: 276px;
  background-image: url("assets/images/promo-vip-card.png");
}

.promo-meta {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.promo-meta strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.2rem;
}

.slider-arrow {
  position: absolute;
  top: 24px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
}

.slider-arrow.prev {
  right: 78px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  left: 30px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.slider-dot.is-active {
  width: 30px;
  background: #fff;
}

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

.trust-tile {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.trust-tile span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.trust-tile strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.08rem;
}

.purchase-widget {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 40px));
  margin: -56px auto 0;
  padding: 26px 28px;
  border-radius: 30px;
  border: 1px solid rgba(220, 227, 238, 0.94);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 24px;
  backdrop-filter: blur(14px);
}

.widget-copy h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.6rem;
}

.widget-copy p {
  margin: 0;
  color: var(--text-muted);
}

.widget-body {
  display: grid;
  grid-template-columns: 1.05fr 1.6fr minmax(220px, 1fr);
  gap: 18px;
}

.widget-field {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.widget-field label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 800;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

.picked-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.number-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #edf2f8);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
}

.widget-total {
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 18px;
}

.purchase-widget .button-block {
  padding-inline: 28px;
}

.games-section {
  padding-top: 68px;
}

.games-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.games-track::-webkit-scrollbar,
.winners-track::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 calc((100% - 72px) / 5);
  position: relative;
  min-height: 320px;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.game-card::before {
  width: 240px;
  height: 240px;
  top: -110px;
  right: -80px;
}

.game-card::after {
  width: 140px;
  height: 140px;
  left: -25px;
  bottom: -40px;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.theme-red {
  background: linear-gradient(135deg, #c8344d, #ea6457 54%, #ffb45c);
}

.theme-green {
  background: linear-gradient(135deg, #0f7f67, #22bb92 56%, #6be0bb);
}

.theme-blue {
  background: linear-gradient(135deg, #154fb3, #2f86f1 58%, #69cdfd);
}

.theme-purple {
  background: linear-gradient(135deg, #5a3fd0, #8d60f1 55%, #d48eff);
}

.theme-orange {
  background: linear-gradient(135deg, #d96818, #f19a26 55%, #ffd36d);
}

.theme-pink {
  background: linear-gradient(135deg, #bc2e7d, #e94986 58%, #ff98ae);
}

.theme-teal {
  background: linear-gradient(135deg, #0d7180, #15a8aa 56%, #72ddd2);
}

.game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.game-logo::before {
  content: "";
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 14px rgba(13, 23, 48, 0.2));
}

.game-card.theme-red .game-logo::before {
  background-image: url("assets/images/desert-millions-mark.png");
}

.game-card.theme-green .game-logo::before {
  background-image: url("assets/images/emirates-weekly-mark.png");
}

.game-card.theme-blue .game-logo::before {
  background-image: url("assets/images/blue-falcon-pick-mark.png");
}

.game-card.theme-purple .game-logo::before {
  background-image: url("assets/images/golden-hour-mark.png");
}

.game-card.theme-orange .game-logo::before {
  background-image: url("assets/images/royal-souq-raffle-mark.png");
}

.game-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.game-card h3 {
  margin: 14px 0 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.9rem;
  line-height: 0.98;
}

.game-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.game-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.meta-box {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 38, 0.12);
}

.meta-box span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.meta-box strong {
  font-size: 1rem;
}

.game-card .countdown-cell {
  background: rgba(8, 18, 38, 0.12);
}

.game-card .countdown-grid {
  gap: 8px;
}

.game-card .countdown-cell {
  min-width: 0;
  padding: 10px 6px;
}

.game-card .countdown-value {
  font-size: 1rem;
}

.game-card .countdown-label {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.game-card .button {
  margin-top: 18px;
}

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

.result-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-name {
  margin: 0;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.35rem;
}

.result-time {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.result-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(16, 34, 65, 0.06);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 20px;
}

.result-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 22px rgba(17, 33, 60, 0.16);
}

.ball-red {
  background: linear-gradient(135deg, #c8344d, #ef6d5b);
}

.ball-green {
  background: linear-gradient(135deg, #0f7f67, #2fd2a3);
}

.ball-blue {
  background: linear-gradient(135deg, #154fb3, #5abffd);
}

.ball-purple {
  background: linear-gradient(135deg, #5a3fd0, #bb73ff);
}

.ball-orange {
  background: linear-gradient(135deg, #dc6f19, #ffca69);
}

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

.result-stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.result-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-stat strong {
  font-size: 1rem;
}

.results-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--navy-3);
  font-weight: 800;
}

.raffles-section {
  position: relative;
  margin: 40px 0;
  padding: 62px 0;
  background: linear-gradient(135deg, #08162f 0%, #102855 58%, #16356d 100%);
  color: #fff;
}

.raffles-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.09), transparent 18%),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: auto, auto, 16px 16px;
  opacity: 0.26;
  pointer-events: none;
}

.raffles-section .section-kicker,
.raffles-section .section-title {
  color: #fff;
}

.raffles-section .section-kicker {
  background: rgba(255, 255, 255, 0.12);
}

.raffles-section .section-copy {
  color: rgba(255, 255, 255, 0.76);
}

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

.raffle-card {
  position: relative;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.22);
}

.raffle-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -90px;
  right: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.raffle-card::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 92px;
  width: 188px;
  height: 188px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 22px 28px rgba(7, 16, 34, 0.28));
  pointer-events: none;
}

.raffle-card > * {
  position: relative;
  z-index: 1;
}

.raffle-card.theme-pink::after {
  background-image: url("assets/images/royal-souq-prize.png");
}

.raffle-card.theme-teal::after {
  background-image: url("assets/images/skyline-keys-prize.png");
}

.raffle-card.theme-orange::after {
  background-image: url("assets/images/pearl-escape-prize.png");
}

.raffle-card h3 {
  margin: 14px 0 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.8rem;
  line-height: 0.98;
}

.raffle-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.raffle-progress {
  height: 10px;
  margin: 18px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.raffle-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.raffle-price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.raffle-price-row span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.76);
}

.raffle-price-row strong {
  font-size: 1rem;
}

.raffle-total {
  margin: 12px 0 18px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.75rem;
}

.winners-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.winner-card {
  flex: 0 0 calc((100% - 72px) / 5);
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.winner-avatar {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.avatar-red {
  background: linear-gradient(135deg, #c8344d, #ef6d5b);
}

.avatar-blue {
  background: linear-gradient(135deg, #154fb3, #53b5f4);
}

.avatar-green {
  background: linear-gradient(135deg, #0f7f67, #2fd2a3);
}

.avatar-purple {
  background: linear-gradient(135deg, #5a3fd0, #bb73ff);
}

.avatar-orange {
  background: linear-gradient(135deg, #dc6f19, #ffca69);
}

.winner-flag {
  position: absolute;
  right: -4px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.flag-uae {
  background: linear-gradient(90deg, #d0394d 0 28%, #ffffff 28% 54%, #17a15b 54% 78%, #1a1a1a 78%);
}

.flag-india {
  background: linear-gradient(#f7a33d 0 33%, #ffffff 33% 66%, #0f9451 66%);
}

.flag-egypt {
  background: linear-gradient(#d34444 0 33%, #ffffff 33% 66%, #1a1a1a 66%);
}

.flag-pakistan {
  background: linear-gradient(90deg, #ffffff 0 24%, #0f8a55 24%);
}

.flag-ph {
  background: linear-gradient(135deg, #ffffff 0 30%, #1f5cb8 30% 65%, #c53443 65%);
}

.winner-card h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.15rem;
}

.winner-meta {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.winner-amount {
  display: block;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.winner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-banner {
  padding: 28px 0 52px;
}

.cta-banner-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #0d1836 0%, #192f62 58%, #2c4d99 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-banner-card::before,
.cta-banner-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-banner-card::before {
  width: 360px;
  height: 360px;
  top: -180px;
  right: -80px;
}

.cta-banner-card::after {
  width: 180px;
  height: 180px;
  left: 42%;
  bottom: -90px;
}

.cta-banner-card h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.cta-banner-card p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  padding: 38px 0 24px;
  background: #0d1833;
  color: #dae3f0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badges,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-badge,
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-badge:nth-child(1)::before {
  background-image: url("assets/images/verification-shield.png");
}

.footer-badge:nth-child(2)::before {
  background-image: url("assets/images/secure-draw-badge.png");
}

.footer-badge:nth-child(3)::before {
  background-image: url("assets/images/responsible-play-badge.png");
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0;
}

.footer-brand p {
  color: #b8c5dc;
  max-width: 340px;
}

.footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #b8c5dc;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9fb1ce;
  font-size: 0.88rem;
}

.footer-safety-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
  padding-bottom: 22px;
}

.footer-safety-link,
.footer-safety-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 22px;
  background: #fff1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.footer-safety-link {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-safety-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: #0a1730;
}

.footer-safety-link img,
.footer-safety-badge img {
  display: block;
  width: auto;
  max-height: 34px;
  height: 60px;
}

.footer-safety-badge img {
  max-width: 46px;
  max-height: 46px;
}

.play-page {
  --accent-start: #c8344d;
  --accent-mid: #ef6d5b;
  --accent-end: #ffb45c;
}

.play-page.theme-desert {
  --accent-start: #c8344d;
  --accent-mid: #ef6d5b;
  --accent-end: #ffb45c;
}

.play-page.theme-emerald {
  --accent-start: #0f7f67;
  --accent-mid: #2ebf95;
  --accent-end: #76dfba;
}

.play-stage {
  padding: 36px 0 30px;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
}

.play-hero-strip {
  position: sticky;
  top: 116px;
  min-height: 680px;
  padding: 30px;
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: var(--shadow-lg);
}

.play-hero-strip::before,
.play-hero-strip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.play-hero-strip::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -90px;
}

.play-hero-strip::after {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: -50px;
}

.play-hero-strip > * {
  position: relative;
  z-index: 1;
}

.play-page.theme-desert .play-hero-strip {
  background-image:
    linear-gradient(150deg, rgba(200, 52, 77, 0.92) 0%, rgba(239, 109, 91, 0.84) 52%, rgba(255, 180, 92, 0.78) 100%),
    url("assets/images/desert-millions-side-visual.png");
}

.play-page.theme-emerald .play-hero-strip {
  background-image:
    linear-gradient(150deg, rgba(15, 127, 103, 0.92) 0%, rgba(46, 191, 149, 0.84) 52%, rgba(118, 223, 186, 0.76) 100%),
    url("assets/images/emirates-weekly-side-visual.png");
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-badge::before {
  content: "";
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.play-page.theme-desert .page-badge::before {
  background-image: url("assets/images/desert-millions-mark.png");
}

.play-page.theme-emerald .page-badge::before {
  background-image: url("assets/images/emirates-weekly-mark.png");
}

.play-hero-strip h1 {
  margin: 16px 0 14px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.play-hero-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.countdown-panel {
  margin: 24px 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 38, 0.14);
}

.strip-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.strip-stat {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 38, 0.12);
}

.strip-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.mini-proof {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 38, 0.14);
}

.mini-proof span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.play-builder-card {
  padding: 28px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.play-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.play-card-head h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 2rem;
}

.play-card-head p {
  margin: 0;
  color: var(--text-muted);
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(16, 34, 65, 0.06);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-builder {
  display: grid;
  gap: 20px;
}

.ticket-board-list {
  display: grid;
  gap: 18px;
}

.ticket-board {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.ticket-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ticket-label {
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.ticket-tools {
  display: flex;
  gap: 10px;
}

.tool-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
}

.tool-button.is-active {
  background: rgba(16, 34, 65, 0.08);
  border-color: rgba(38, 82, 162, 0.24);
}

.board-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.readiness-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.selected-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.slot {
  min-height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--text-muted);
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.slot.is-filled {
  border-style: solid;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.number-chip {
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.number-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.number-chip.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 16px 28px rgba(17, 33, 60, 0.16);
}

.play-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.draw-select {
  min-width: 220px;
}

.draw-select label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draw-select select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
}

.price-summary {
  margin-left: auto;
  text-align: right;
}

.price-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-summary strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.price-summary small {
  color: var(--text-muted);
}

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

.info-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.prize-table td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.prize-table td:last-child {
  text-align: right;
  font-weight: 800;
}

.visually-muted {
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .hero-grid,
  .play-layout,
  .results-layout,
  .raffles-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .purchase-widget {
    margin-top: 20px;
    grid-template-columns: 1fr;
  }

  .widget-body,
  .trust-strip,
  .hero-metrics,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card,
  .winner-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .play-hero-strip {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 960px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    min-height: 82px;
    padding: 14px 0;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand-lockup {
    flex: 1;
    min-width: 0;
    gap: 12px;
  }

  .brand-lockup > span {
    min-width: 0;
  }

  .brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .brand-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    padding: 20px 18px 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 40;
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }

  .header-panel.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 32px rgba(15, 31, 66, 0.16);
  }

  .menu-toggle,
  .menu-close {
    display: block;
  }

  .menu-toggle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    gap: 10px;
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
    padding: 14px 16px;
    background: var(--surface-alt);
  }

  .nav-item.has-menu .nav-link::after {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .nav-item.has-menu.is-open .nav-link::after {
    transform: rotate(225deg) translateY(2px);
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    display: none;
    padding: 8px 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.has-menu.is-open .nav-submenu {
    display: grid;
    gap: 8px;
  }

  .nav-submenu a {
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--surface-alt);
  }

  .header-actions {
    width: 100%;
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions .button,
  .header-actions .cart-button {
    width: 100%;
  }

  .header-actions .cart-button {
    height: 56px;
    border-radius: 20px;
  }

  .section-header,
  .footer-top,
  .cta-banner-card,
  .play-card-head,
  .play-actions-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-summary {
    margin-left: 0;
    text-align: left;
  }

  .draw-select {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container,
  .purchase-widget {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero-feature,
  .promo-slide,
  .play-hero-strip,
  .auth-side-card,
  .auth-form-card,
  .play-builder-card,
  .cta-banner-card {
    padding: 22px;
  }

  .hero-feature h1,
  .play-hero-strip h1 {
    font-size: 2.4rem;
  }

  .hero-feature {
    background-size: cover, 96% auto;
    background-position: center, center bottom;
  }

  .promo-slide.theme-teal .promo-orb {
    width: 180px;
    height: 220px;
  }

  .raffle-card::after {
    width: 144px;
    height: 144px;
    right: -6px;
    bottom: 116px;
  }

  .slider-arrow {
    top: auto;
    bottom: 24px;
  }

  .slider-arrow.prev {
    right: 82px;
  }

  .widget-body,
  .results-layout,
  .raffles-grid,
  .auth-grid,
  .hero-metrics,
  .trust-strip,
  .footer-grid,
  .strip-stat-grid,
  .result-stats,
  .game-meta,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .game-card,
  .winner-card {
    flex-basis: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-safety-link,
  .footer-safety-badge {
    width: 100%;
    justify-content: center;
  }

  .auth-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-subtitle {
    display: none;
  }

  .header-panel {
    width: 100%;
    padding-inline: 16px;
  }
}

.legal-hero {
  padding: 36px 0 18px;
}

.legal-hero-card {
  position: relative;
  overflow: hidden;
  padding: 32px 34px;
  border-radius: 34px;
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: var(--shadow-lg);
}

.legal-hero-card > * {
  position: relative;
  z-index: 1;
}

.info-page .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(12, 24, 56, 0.92) 0%, rgba(24, 54, 112, 0.84) 58%, rgba(71, 128, 212, 0.72) 100%);
}

.info-support .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(12, 24, 56, 0.9) 0%, rgba(22, 50, 106, 0.82) 58%, rgba(67, 118, 196, 0.68) 100%),
    url("assets/images/hero-desert-jackpot.png");
  background-size: cover, cover;
  background-position: center, center;
}

.info-company .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(10, 42, 64, 0.9) 0%, rgba(16, 83, 112, 0.82) 58%, rgba(50, 168, 170, 0.7) 100%),
    url("assets/images/promo-vip-card.png");
  background-size: cover, 26% auto;
  background-position: center, right 42px center;
}

.legal-privacy .legal-hero-card,
.legal-cookie .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(13, 24, 54, 0.9) 0%, rgba(26, 50, 104, 0.82) 58%, rgba(45, 93, 177, 0.7) 100%),
    url("assets/images/privacy-hero.png");
}

.legal-responsible .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(8, 41, 58, 0.9) 0%, rgba(14, 92, 114, 0.82) 58%, rgba(77, 176, 186, 0.72) 100%),
    url("assets/images/responsible-play-hero.png");
}

.legal-terms .legal-hero-card {
  background-image:
    linear-gradient(135deg, rgba(14, 26, 56, 0.9) 0%, rgba(30, 56, 112, 0.82) 58%, rgba(78, 116, 198, 0.7) 100%),
    url("assets/images/terms-hero.png");
}

.legal-hero-card h1 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.legal-hero-card p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 46px;
}

.legal-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 26px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-nav {
  display: grid;
  gap: 8px;
}

.legal-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid transparent;
  font-weight: 700;
}

.legal-nav a:hover {
  color: var(--navy);
  border-color: rgba(38, 82, 162, 0.18);
  background: #fff;
}

.legal-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 31, 66, 0.06), rgba(38, 82, 162, 0.08));
  border: 1px solid rgba(38, 82, 162, 0.12);
}

.legal-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1rem;
}

.legal-prose section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-prose h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.55rem;
}

.legal-prose h3 {
  margin: 18px 0 10px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1.05rem;
}

.legal-prose p {
  margin: 0 0 14px;
  color: var(--text);
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 14px 20px;
  padding: 0;
  color: var(--text);
}

.legal-prose li + li {
  margin-top: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.legal-table th,
.legal-table td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 32%;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 0.98rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-weight: 700;
}

.auth-stage {
  padding: 36px 0 48px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.auth-side-card,
.auth-form-card {
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.auth-side-card {
  position: relative;
  min-height: 620px;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 28px 52px rgba(15, 31, 66, 0.16);
}

.auth-side-card::before,
.auth-side-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.auth-side-card::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -80px;
}

.auth-side-card::after {
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: -60px;
}

.auth-side-card > * {
  position: relative;
  z-index: 1;
}

.auth-register .auth-side-card {
  background-image:
    linear-gradient(140deg, rgba(16, 34, 74, 0.88) 0%, rgba(31, 67, 139, 0.74) 58%, rgba(83, 161, 220, 0.44) 100%),
    url("assets/images/hero-desert-jackpot.png");
  background-size: cover, cover;
  background-position: center, center;
}

.auth-login .auth-side-card {
  background-image:
    linear-gradient(140deg, rgba(11, 31, 71, 0.92) 0%, rgba(17, 68, 104, 0.84) 56%, rgba(33, 144, 160, 0.58) 100%),
    url("assets/images/promo-vip-card.png");
  background-size: cover, 52% auto;
  background-position: center, right 28px bottom 36px;
}

.auth-side-card h1 {
  margin: 12px 0 14px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.auth-side-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.auth-feature {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 38, 0.14);
}

.auth-feature span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-feature strong {
  display: block;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

.auth-form-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.auth-form-head h2 {
  margin: 12px 0 10px;
  font-family: "Space Grotesk", "Bahnschrift", sans-serif;
  font-size: 2rem;
}

.auth-form-head p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.auth-form {
  display: grid;
  gap: 18px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-check label {
  color: var(--navy);
  font-weight: 700;
}

.form-field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input::placeholder {
  color: #8595b0;
}

.form-field input:focus {
  outline: none;
  border-color: rgba(38, 82, 162, 0.36);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 82, 162, 0.08);
}

.form-field.is-error input {
  border-color: rgba(198, 52, 77, 0.45);
  background: #fff7f8;
  box-shadow: 0 0 0 4px rgba(198, 52, 77, 0.08);
}

.field-error {
  min-height: 18px;
  color: #b0324b;
  font-size: 0.82rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.form-check.is-error {
  border-color: rgba(198, 52, 77, 0.32);
  background: #fff7f8;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.form-check label {
  display: block;
  font-size: 0.94rem;
  line-height: 1.55;
}

.form-check label a {
  color: var(--navy);
  text-decoration: underline;
}

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #0e6b44;
  border-color: #c7e8d1;
  background: #ecf8f0;
}

.form-status.is-warning {
  color: #8b5a00;
  border-color: #f0d18a;
  background: #fff4db;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-switch {
  margin: 0;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .auth-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .auth-side-card {
    min-height: 440px;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .auth-side-card,
  .auth-form-card {
    padding: 22px;
  }

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

  .auth-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-login .auth-side-card {
    background-size: cover, 58% auto;
    background-position: center, right 18px bottom 22px;
  }
}
