:root {
  --navy: #000066;
  --blue: #00309e;
  --gold: #ffcc66;
  --pale-gold: #ffe7b6;
  --cream: #fdf6e7;
  --line-dark: rgba(0, 0, 102, 0.18);
  --line-light: rgba(255, 204, 102, 0.34);
  --shadow: 0 16px 38px rgba(0, 0, 102, 0.13);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shell: 1180px;
  --section-space: 64px;
  --sans: Arial, Helvetica, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin-top: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: clamp(2.55rem, 6vw, 4.45rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.25;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

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

.site-header {
  z-index: 30;
  border-bottom: 1px solid var(--line-light);
  background: var(--navy);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding-block: 12px;
}

.brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand-logo svg {
  width: auto;
  height: 28px;
  overflow: visible;
}

.logo-emblem {
  fill: var(--gold);
}

.logo-train {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.logo-word {
  fill: var(--gold);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.header-ctas {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.header-bonus {
  color: var(--gold);
}

.header-login {
  background: var(--gold);
  color: var(--navy);
}

.site-nav {
  grid-column: 1 / -1;
  min-width: 0;
}

.site-nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 5px;
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.header-bonus:hover {
  background: var(--gold);
  color: var(--navy);
}

.header-login:hover {
  background: var(--pale-gold);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 48, 158, 0.95), transparent 42%),
    var(--navy);
}

.hero-layout {
  display: grid;
  gap: 24px 32px;
  align-items: center;
  padding-block: 48px 40px;
}

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

.hero-lede {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--pale-gold);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
}

.button-primary:hover {
  background: var(--pale-gold);
}

.button-dark:hover {
  background: #1c1ca0;
  color: var(--cream);
}

.button-secondary {
  border-color: var(--gold);
  color: var(--gold);
}

.button-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

.button-dark {
  background: var(--navy);
  color: var(--cream);
}

.hero-mosaic {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: 100 / 60;
}

.hero-mosaic::before {
  position: absolute;
  inset: 12% 5%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 210, 90, 0.2);
  filter: blur(46px);
  content: "";
}

.hero-slot {
  position: absolute;
  width: 31%;
  height: auto;
  aspect-ratio: 752 / 648;
  object-fit: cover;
  border: 2px solid rgba(255, 243, 205, 0.86);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.hero-slot-1 {
  top: 2%;
  left: 1.5%;
  z-index: 2;
  transform: rotate(-4deg);
}

.hero-slot-2 {
  top: 0;
  left: 34.5%;
  z-index: 3;
  transform: rotate(2deg);
}

.hero-slot-3 {
  top: 2%;
  right: 1.5%;
  z-index: 2;
  transform: rotate(4deg);
}

.hero-slot-4 {
  bottom: 2%;
  left: 1.5%;
  z-index: 2;
  transform: rotate(3deg);
}

.hero-slot-5 {
  bottom: 0;
  left: 34.5%;
  z-index: 3;
  transform: rotate(-2deg);
}

.hero-slot-6 {
  right: 1.5%;
  bottom: 2%;
  z-index: 2;
  transform: rotate(-4deg);
}

.section {
  padding-block: var(--section-space);
}

.section-cream {
  background: var(--cream);
  color: var(--navy);
}

.section-paper {
  border-block: 1px solid var(--line-dark);
  background: var(--pale-gold);
  color: var(--navy);
}

.section-navy {
  background:
    linear-gradient(145deg, rgba(0, 48, 158, 0.78), transparent 58%),
    var(--navy);
  color: var(--cream);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.section-heading > p:last-child,
.media-intro > div > p:last-child,
.media-banner > div > p:last-child {
  margin-bottom: 0;
}

.welcome-details h3 {
  margin: 22px 0 6px;
  font-size: 1.15rem;
}

.welcome-details p {
  margin: 0;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.heading-with-cta {
  display: grid;
  gap: 18px 32px;
  align-items: center;
  margin-bottom: 30px;
}

.heading-with-cta .section-heading {
  margin-bottom: 0;
}

.cta-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--navy);
  text-align: center;
}

.cta-panel p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 820px) {
  .heading-with-cta {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }
}

.split-heading {
  display: grid;
  max-width: none;
  gap: 24px;
  align-items: start;
}

.route-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--pale-gold);
}

.route-card img {
  width: 100%;
  height: auto;
  align-self: start;
  border-radius: 10px;
}

.route-card span {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--cream);
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.info-card,
.promo-card,
.lobby-card,
.money-card,
.control-card,
.company-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.info-card,
.promo-card,
.lobby-card,
.money-card,
.control-card,
.company-card {
  padding: 22px;
}

.info-card p:last-child,
.promo-card p:last-child,
.lobby-card p:last-child,
.money-card p:last-child,
.control-card p:last-child,
.company-card p:last-child {
  margin-bottom: 0;
}

.featured-card {
  border-color: var(--line-dark);
  background: var(--pale-gold);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--navy);
}

.section-cta p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.media-intro {
  display: grid;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.portrait-art {
  width: 100%;
  height: auto;
  align-self: start;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.promo-grid {
  align-items: stretch;
}

.promo-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  border-color: var(--line-light);
}

.promo-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 752 / 648;
  flex: 0 0 auto;
  object-fit: cover;
}

.promo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.mini-facts {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.mini-facts div {
  display: flex;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  border-top: 1px solid var(--line-dark);
}

.mini-facts dt {
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-facts dd {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  text-align: right;
}

.lobby-panels {
  display: grid;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 28px;
}

.lobby-card {
  box-shadow: none;
}

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

.game-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.game-tile img {
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
  aspect-ratio: 752 / 648;
  object-fit: contain;
  background: var(--navy);
}

.game-tile figcaption {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.media-banner {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.account-art-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  align-items: start;
}

.account-art-row img {
  width: 100%;
  height: auto;
  align-self: start;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
}

.account-grid {
  align-items: stretch;
}

.payments-block {
  margin-top: var(--section-space);
}

.compact-heading {
  margin-bottom: 22px;
}

.payment-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.payment-logo {
  display: flex;
  width: 116px;
  height: 60px;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 102, 0.1);
  border-radius: 8px;
  background: #fff;
}

.payment-logo img {
  width: auto;
  height: auto;
  max-width: 92px;
  max-height: 34px;
  object-fit: contain;
}

.payment-method figcaption {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.money-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.money-card {
  box-shadow: none;
}

.deposit-card {
  background: var(--cream);
}

.withdrawal-card {
  border-color: var(--line-dark);
  background: var(--navy);
  color: var(--cream);
}

.safety-intro {
  color: var(--navy);
}

.safety-intro .portrait-art {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.safety-grid {
  align-items: stretch;
}

.control-card {
  box-shadow: none;
}

.company-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.company-card {
  border-color: var(--line-light);
}

.support-column {
  min-width: 0;
}

.company-column > h2,
.support-column > h2 {
  margin-bottom: 16px;
}

.section-lede {
  margin-bottom: 24px;
}

.vip-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.support-column strong {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.support-column .button {
  margin-top: 6px;
}

.faq-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.faq-list details {
  height: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.faq-list summary {
  display: flex;
  min-height: 56px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

.site-footer {
  border-top: 1px solid var(--line-light);
  background: var(--navy);
  color: var(--cream);
}

.footer-content {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-block: 32px;
  text-align: center;
}

.footer-logo svg {
  height: 24px;
}

.responsible-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cream);
  font-weight: 700;
}

.site-footer .footer-legal a {
  color: var(--pale-gold);
  font-size: 0.92rem;
  font-weight: 600;
}

.copyright {
  margin: 0;
  color: var(--pale-gold);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.back-to-top[hidden] {
  display: none;
}

@media (min-width: 620px) {
  .route-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-card img {
    grid-column: 1 / -1;
  }

  .route-card span {
    display: grid;
    min-height: 66px;
    place-items: center;
    text-align: center;
  }

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

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

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

  .money-grid,
  .account-grid,
  .safety-grid,
  .lobby-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  :root {
    --section-space: 52px;
  }

  .header-button {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.84rem;
  }

  .hero-mosaic {
    height: clamp(170px, 52vw, 190px);
  }

  .hero-slot {
    width: 49%;
    border-radius: 11px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
  }

  .hero-slot-1 {
    top: 13%;
    left: 7%;
    transform: rotate(-6deg);
  }

  .hero-slot-2 {
    top: 2%;
    left: 26%;
    transform: rotate(2deg);
  }

  .hero-slot-3 {
    top: 13%;
    right: 7%;
    transform: rotate(6deg);
  }

  .hero-slot:nth-child(n + 4) {
    display: none;
  }
}

@media (min-width: 820px) {
  .hero-layout {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  }

  .split-heading {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }

  .media-intro {
    grid-template-columns: minmax(0, 1.7fr) minmax(170px, 0.3fr);
  }

  .media-banner {
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  }

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

  .company-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .account-grid,
  .safety-grid,
  .lobby-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1040px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-bar {
    display: flex;
    min-height: 76px;
    gap: 16px;
    padding-block: 8px;
  }

  .site-nav {
    grid-column: auto;
    margin-inline: auto;
  }

  .site-nav ul {
    display: flex;
    gap: 0;
  }

  .site-nav a {
    padding-inline: 10px;
    font-size: clamp(0.85rem, 0.5rem + 0.6vw, 1.05rem);
  }

  .header-ctas {
    flex: 0 0 auto;
  }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
