:root {
  color-scheme: dark;
  --navy-950: #05070c;
  --navy-900: #080b12;
  --navy-850: #0d1220;
  --navy-800: #121a2b;
  --jade-600: #08785d;
  --jade-500: #0d9b74;
  --jade-300: #63d7b0;
  --gold-500: #f3b51b;
  --gold-300: #ffd864;
  --brand-blue: #175cff;
  --cream-100: #fff4da;
  --cream-50: #fff9ed;
  --text-muted: #a4adbc;
  --hairline: rgba(255, 216, 100, 0.18);
  --page-width: 1220px;
  --focus-ring: 0 0 0 2px #05070c, 0 0 0 5px #ffd864;
  font-family: var(--merxi-font-ui);
  background: var(--navy-950);
  color: var(--cream-100);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-950);
  color: var(--cream-100);
}

button,
a,
select {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--cream-50);
  color: var(--navy-950);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.page-shell {
  min-height: 100vh;
  overflow: clip;
  background: var(--navy-950);
}

.site-header {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(5, 7, 12, 0.96);
  backdrop-filter: blur(18px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 32px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 42px;
  height: auto;
  display: block;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}

.brand-lockup strong,
.hero-wordmark strong {
  color: #fff;
  font-family: Montserrat, Inter, "Arial Black", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #dce5e2;
  font-size: 14px;
}

.primary-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gold-300);
  border-color: var(--gold-500);
}

.demo-balance {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 216, 100, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #e8ecf2;
  font-size: 13px;
  font-weight: 700;
}

.locale-picker {
  position: relative;
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 199, 120, 0.42);
  border-radius: 999px;
  background: var(--navy-900);
  color: #dce5e2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.locale-short {
  pointer-events: none;
}

.locale-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.locale-picker:hover,
.locale-picker:focus-within {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.brand:focus-visible,
.primary-nav a:focus-visible,
.demo-balance:focus-visible,
.locale-picker select:focus-visible,
.primary-cta:focus-visible,
.game-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-balance strong {
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

.demo-balance:hover,
.demo-balance:focus-visible {
  background: var(--navy-800);
  border-color: var(--jade-300);
}

.demo-balance[aria-busy="true"] {
  cursor: progress;
}

.demo-balance[aria-busy="true"] strong {
  opacity: 0.58;
}

.hero {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 520px;
  margin: 24px auto 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 100, 0.2);
  border-radius: 30px;
  background: #03050a;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(52%, 630px);
  min-height: 520px;
  padding: 60px 0 54px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-kicker,
.section-heading > p {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: Montserrat, Inter, "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 540px;
  color: #f7f7f5;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.12;
  text-wrap: balance;
}

html:lang(hi-IN) .hero h1 {
  font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", Inter, sans-serif;
  font-size: clamp(32px, 2.9vw, 43px);
  line-height: 1.18;
}

html:lang(es-ES) .hero h1 { font-size: clamp(32px, 3vw, 45px); line-height: 1.12; }

.hero-multiplier {
  margin: 20px 0 26px;
  display: inline-flex;
  align-items: baseline;
  color: #ffd25e;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.72);
}

.hero-multiplier strong {
  font-family: Montserrat, Inter, "Arial Black", sans-serif;
  font-size: clamp(84px, 8vw, 116px);
  font-weight: 900;
  letter-spacing: -0.075em;
}

.hero-multiplier span {
  margin-left: 10px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 850;
}

.primary-cta {
  min-width: 184px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid #ffe08a;
  border-radius: 12px;
  background: var(--gold-500);
  color: #080a0f;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  font-weight: 850;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  background: var(--gold-300);
  transform: translateY(-2px);
}

.primary-cta:active {
  transform: translateY(0) scale(0.985);
}

.hero-browse {
  min-height: 44px;
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  color: #adb5c4;
  font-size: 13px;
  font-weight: 650;
}

.hero-browse:hover,
.hero-browse:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.games-section {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 82px 0 94px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 82px;
}

.section-heading {
  margin: 0 0 34px;
  text-align: center;
}

.section-heading > p {
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(38px, 4.3vw, 58px);
}

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

.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(198, 139, 60, 0.72);
  border-radius: 22px;
  background: var(--cream-50);
  color: var(--navy-900);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.27);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold-300);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  outline: none;
}

.game-card:active {
  transform: translateY(-2px) scale(0.992);
}

.game-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-850);
}

.game-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.game-card:hover .game-card-media img,
.game-card:focus-visible .game-card-media img {
  transform: scale(1.035);
}

.game-card-body {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 23px 24px;
}

.game-card-title h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 26px;
  line-height: 1.1;
  min-height: 2.2em;
  display: flex;
  align-items: flex-end;
}

.game-card-title p {
  margin: 7px 0 0;
  color: #607176;
  font-size: 14px;
  line-height: 1.4;
  min-height: 2.8em;
}

.game-card-action {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  background: var(--jade-600);
  color: var(--cream-50);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-footer {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 216, 100, 0.22);
  background: #020305;
  scroll-margin-top: 82px;
}

.footer-frame {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding-top: 88px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 56px clamp(48px, 8vw, 120px);
  align-items: start;
}

.footer-company {
  max-width: 760px;
}

.footer-brand {
  width: max-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 56px;
  height: auto;
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-family: Montserrat, Inter, "Arial Black", sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.footer-group > summary {
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-eyebrow {
  margin: 28px 0 14px;
  color: var(--gold-300);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 780;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.footer-company-copy {
  max-width: 720px;
  margin: 0;
  color: #abb3c0;
  font-size: 15px;
  line-height: 1.75;
}

.footer-location {
  margin: 25px 0 0;
  color: #6f7b8f;
  font-size: 13px;
}

.footer-group {
  min-width: 0;
  margin: 0;
}

.footer-games {
  width: 100%;
  max-width: 300px;
  justify-self: end;
}

.footer-group > summary {
  min-height: 44px;
  align-items: center;
  padding: 10px 0;
  list-style-position: inside;
  cursor: pointer;
}

.footer-group > summary::marker {
  color: var(--gold-300);
}

.footer-link-list {
  display: grid;
}

.footer-link-list a {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f3f7;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-link-list a:last-child {
  border-bottom-color: transparent;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  border-bottom-color: rgba(255, 216, 100, 0.58);
  color: var(--gold-300);
  transform: translateX(3px);
}

.footer-brand:focus-visible,
.footer-group > summary:focus-visible,
.footer-link-list a:focus-visible,
.footer-locale-picker select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.footer-legal {
  grid-column: 1 / -1;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-legal > summary {
  min-height: 62px;
  padding: 18px 2px;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: none;
}

.footer-legal > summary::marker {
  color: #5e6879;
}

.footer-legal-content {
  max-width: 1060px;
  padding: 0 2px 34px;
}

.footer-legal-content > p {
  margin: 0 0 14px;
  color: #7f899a;
  font-size: 12px;
  line-height: 1.75;
}

.footer-legal-content > p:last-child {
  margin-bottom: 0;
}

.footer-legal-closing {
  margin-top: 24px !important;
  padding-top: 20px;
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #929baa !important;
}

.footer-legal-closing strong {
  color: #a6afbd;
  font-weight: 650;
}

.footer-meta {
  min-height: 94px;
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(243, 181, 27, 0.72);
  color: #6f7b8f;
  font-size: 12px;
}

.footer-meta > :nth-child(2) {
  justify-self: center;
}

.footer-locale-picker {
  min-height: 46px;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dce2ec;
}

.footer-locale-picker > span {
  color: #7f899a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-locale-picker select {
  min-width: 142px;
  min-height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(255, 216, 100, 0.32);
  border-radius: 8px;
  background: #080b12;
  color: #f1f3f7;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero-copy {
    width: 64%;
    padding-inline: 52px 0;
  }

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

  .footer-frame {
    width: min(var(--page-width), calc(100% - 48px));
    padding-top: 72px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 54px;
  }

  .footer-company {
    grid-column: 1 / -1;
  }

  .footer-company {
    max-width: 680px;
  }

  .footer-company-copy {
    max-width: 650px;
  }

  .footer-meta {
    margin-top: 40px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
  }

  .games-section,
  .site-footer {
    width: 100%;
  }

  .games-section {
    width: calc(100% - 32px);
  }

  .site-header {
    width: 100%;
    min-height: 64px;
    padding: calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-bottom-color: rgba(255, 216, 100, 0.14);
  }

  .primary-nav {
    display: none;
  }

  .brand {
    min-height: 44px;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 28px;
    flex-basis: 34px;
  }

  .brand-mark img {
    width: 34px;
    height: auto;
  }

  .brand-lockup {
    gap: 5px;
  }

  .brand-lockup strong {
    font-size: 19px;
  }

  .demo-balance {
    min-height: 44px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .demo-balance > span {
    display: none;
  }

  .demo-balance::before {
    content: "DEMO";
    color: var(--gold-300);
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .header-actions {
    gap: 6px;
  }

  .locale-picker {
    width: 44px;
    height: 44px;
  }

  .hero {
    width: 100%;
    min-height: 620px;
    margin-top: 0;
    border-inline: 0;
    border-radius: 0;
  }

  .hero-copy {
    width: 100%;
    min-height: 620px;
    padding: 68px 28px 26px;
  }

  .hero-kicker {
    margin-bottom: 18px;
    display: block;
    font-size: 11px;
  }

  .hero h1 {
    max-width: 310px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
  }

  html:lang(hi-IN) .hero h1 { max-width: 330px; font-size: clamp(26px, 7.4vw, 31px); line-height: 1.18; }
  html:lang(es-ES) .hero h1 { max-width: 330px; font-size: clamp(26px, 7.4vw, 31px); line-height: 1.14; }

  .hero-multiplier {
    margin: 22px 0 18px;
  }

  .hero-multiplier strong {
    font-size: clamp(76px, 23vw, 94px);
  }

  .hero-multiplier span {
    margin-left: 8px;
    font-size: 42px;
  }

  .primary-cta {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    border-radius: 12px;
    font-size: 17px;
  }

  .hero-browse {
    min-height: 42px;
    margin: 8px auto 0;
    color: #a7afbc;
  }

  .games-section {
    padding: 72px 0 64px;
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card-body {
    min-height: 104px;
    padding: 18px 18px 20px;
  }

  .game-card-title h3 {
    font-size: 24px;
  }

  .game-card-action {
    min-width: 96px;
    justify-content: center;
    padding-inline: 12px;
  }

  .site-footer {
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
  }

  .footer-frame {
    width: 100%;
    padding: 48px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .footer-grid {
    display: block;
  }

  .footer-company {
    max-width: none;
    padding: 0 4px 38px;
  }

  .footer-brand {
    min-height: 48px;
    gap: 12px;
  }

  .footer-brand img {
    width: 48px;
  }

  .footer-brand strong {
    font-size: 26px;
  }

  .footer-eyebrow {
    margin-top: 24px;
  }

  .footer-company-copy {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.72;
  }

  .footer-location {
    margin-top: 20px;
  }

  .footer-group {
    border-top: 1px solid rgba(243, 181, 27, 0.54);
  }

  .footer-games {
    max-width: none;
    justify-self: stretch;
  }

  .footer-group > summary {
    min-height: 62px;
    padding: 20px 4px;
    list-style-position: inside;
    cursor: pointer;
  }

  .footer-group > summary::marker {
    color: var(--gold-300);
  }

  .footer-legal {
    margin-top: 8px;
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .footer-legal > summary {
    min-height: 64px;
    padding: 20px 4px;
    color: #8f98a8;
  }

  .footer-legal > summary::marker {
    color: #5e6879;
  }

  .footer-legal-content {
    max-width: none;
    padding: 0 4px 28px;
  }

  .footer-legal-content > p {
    font-size: 12px;
    line-height: 1.72;
  }

  .footer-link-list {
    padding: 0 4px 18px;
  }

  .footer-link-list a {
    min-height: 52px;
    font-size: 15px;
  }

  .footer-meta {
    min-height: 0;
    margin-top: 24px;
    padding: 24px 4px 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    border-top-color: rgba(243, 181, 27, 0.54);
    line-height: 1.5;
  }

  .footer-meta > :nth-child(2) {
    justify-self: auto;
  }

  .footer-locale-picker {
    width: 100%;
    min-height: 58px;
    order: -1;
    justify-self: auto;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .footer-locale-picker select {
    min-width: min(190px, 58vw);
  }
}

@media (max-width: 390px) {
  .brand-lockup strong { font-size: 18px; }
  .demo-balance { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
