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

:root {
  --frame-color: #0B0A09;
  --canvas-color: #1C1A17;
  --emphasis-gradient: linear-gradient(135deg, #186374 0%, #0F4A57 100%);
  --surface-alt: #312E2A;
  --emphasis-color: #D6B878;
  --paragraph-color: #F7F7F7;
  --hairline: rgba(255, 255, 255, 0.06);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--canvas-color);
  color: var(--paragraph-color);
  min-height: 100vh;
  line-height: 1.55;
}

main h1,
main h2,
main h3,
main h4 {
  color: var(--emphasis-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ==================== Masthead ==================== */

.global-header {
  background: var(--frame-color);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand-anchor img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.session-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.session-btn {
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.session-btn:active {
  transform: translateY(1px);
}

.account-btn--ghost {
  background: transparent;
  color: var(--emphasis-color);
  border: 1px solid var(--hairline);
}

.user-btn--filled {
  background: var(--emphasis-gradient);
  color: var(--emphasis-color);
  border: none;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn span,
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--emphasis-color);
  position: relative;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-btn span::before { top: -6px; }
.mobile-menu-btn span::after  { top:  6px; }

.site-nav {
  border-top: 1px solid var(--hairline);
}

.main-nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 14px 0;
  flex-wrap: wrap;
}

.main-nav-list a {
  color: var(--emphasis-color);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.main-nav-list a:hover {
  border-bottom-color: var(--emphasis-color);
}

[data-open] {
  cursor: pointer;
}

/* ==================== Stage (hero canvas + inline games + lede) ==================== */

.showcase {
  background: var(--canvas-color);
}

.banner-frame {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: min(64vh, 560px);
  padding: 64px 0 72px;
  overflow: hidden;
}

.banner-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 13, 11, 0.75) 0%, rgba(15, 13, 11, 0.55) 55%, rgba(15, 13, 11, 0.85) 100%);
  pointer-events: none;
}

.banner-frame > .container-inner {
  position: relative;
  z-index: 1;
}

.showcase-copy {
  max-width: 640px;
  margin: 0 auto 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: calc(min(64vh, 560px) - 136px);
}

.showcase-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--emphasis-color);
}

.opener-offer {
  margin: 4px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-offer-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.65);
}

.banner-promo-value {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--emphasis-color);
}

.lead-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  margin-top: auto;
}

.lead-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emphasis-color);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0;
  background: transparent;
  border: none;
}

.lead-benefits li::before {
  content: "⭐";
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.lead-benefits li:nth-child(1)::before { content: "🎁"; }
.lead-benefits li:nth-child(2)::before { content: "🎰"; }
.lead-benefits li:nth-child(3)::before { content: "🏆"; }
.lead-benefits li:nth-child(4)::before { content: "💎"; }

.banner-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.showcase-btn--filled {
  background: var(--emphasis-gradient);
  color: var(--emphasis-color);
  border: none;
}

.opener-btn--ghost {
  background: transparent;
  color: var(--emphasis-color);
  border: 1px solid var(--emphasis-color);
}

/* ---------- Games rail inside stage ---------- */

.casino-shelf {
  padding: 48px 0 24px;
  background: var(--canvas-color);
}

.titles-strip-header {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.lobby-band-caption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emphasis-color);
  border-bottom: 2px solid var(--emphasis-color);
  padding-bottom: 6px;
}

.titles-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.titles-scroll::-webkit-scrollbar {
  height: 8px;
}

.titles-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.titles-scroll::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 4px;
}

/* Shared class from build.py — styled inside .titles-scroll */
.titles-scroll .title-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
}

.titles-scroll .lobby-tile-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.titles-scroll .lobby-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.titles-scroll .title-card:hover .lobby-tile-cover img {
  transform: scale(1.04);
}

.titles-scroll .casino-card-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 11, 0.7);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.titles-scroll .casino-card-veil .casino-card-cta {
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emphasis-color);
  background: var(--emphasis-gradient);
  border: none;
}

@media (hover: hover) {
  .titles-scroll .title-card:hover .casino-card-veil {
    opacity: 1;
  }
}

.titles-scroll .reel-card-name {
  font-size: 0.78rem;
  color: var(--paragraph-color);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
  word-break: break-word;
}

/* ---------- Lede (hero-intro) — placed after games, outside image area ---------- */

.prelude-section {
  padding: 24px 0 60px;
  background: var(--canvas-color);
}

.intro-band-inner {
  max-width: 820px;
}

.intro-band-inner p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--paragraph-color);
  margin-bottom: 16px;
}

.intro-band-inner p:last-child {
  margin-bottom: 0;
}

/* ==================== Column (long-form content) ==================== */

.content-band {
  padding: 40px 0 80px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  margin: 32px 0 10px;
}

.article-body p {
  margin-bottom: 18px;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 22px;
  display: grid;
  gap: 8px;
  line-height: 1.65;
}

.article-body ul {
  list-style: square;
}

.article-body img {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  display: block;
}

/* Shared classes from build.py */
.table-wrapper {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--hairline);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--emphasis-color);
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}

.data-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(244, 236, 216, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==================== Register (FAQ) ==================== */

.queries-section {
  padding: 0 0 80px;
}

.help-body {
  max-width: 820px;
  margin: 0 auto;
}

/* Shared class from build.py */
.help-body .faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.help-body .faq-item:first-child {
  border-top: 2px solid var(--emphasis-color);
}

.help-body .faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.help-body .faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--emphasis-color);
}

.help-body .faq-item p {
  color: var(--paragraph-color);
  line-height: 1.7;
}

/* ==================== Colophon (footer) ==================== */

.page-foot {
  background: var(--frame-color);
  border-top: 1px solid var(--hairline);
  padding: 44px 0;
}

.footer-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-block-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.site-footer-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.age-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--emphasis-color);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emphasis-color);
  letter-spacing: 0.06em;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-links a {
  color: var(--emphasis-color);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.endnote-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-foot-disclaimer,
.bottom-shell-copyright {
  font-size: 0.76rem;
  color: var(--paragraph-color);
  line-height: 1.6;
}

/* ==================== Responsive ==================== */

@media (max-width: 900px) {
  .footer-block-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .site-bar-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .session-controls {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .session-btn {
    flex: 1;
    padding: 12px;
  }

  .site-nav {
    display: none;
  }

  .global-header.nav-visible .site-nav {
    display: block;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .banner-frame {
    min-height: 480px;
    padding: 48px 0 56px;
  }

  .lead-benefits {
    gap: 12px 20px;
    margin-bottom: 22px;
  }

  .lead-benefits li {
    font-size: 0.88rem;
  }

  .lead-benefits li::before {
    font-size: 1.1rem;
  }

  .casino-shelf {
    padding: 36px 0 20px;
  }

  .titles-scroll .title-card {
    flex: 0 0 140px;
  }

  .prelude-section {
    padding: 20px 0 40px;
  }

  .content-band {
    padding: 32px 0 60px;
  }

  .article-body {
    font-size: 0.98rem;
  }
}

/* ---------- Betmica source-style overrides (manual, 2026-09-26) ---------- */

/* Hero: bonus span + 4 chips in white */
.opener-offer .banner-promo-value,
.lead-benefits li { color: #ffffff; }

/* Header: Login / Sign Up */
.session-controls .session-btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.session-controls .user-btn--filled {
  background: #2FD5FE;
  color: #000000;
  border: 1px solid #2FD5FE;
}
.session-controls .account-btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* Hero: Play Now / Claim Bonus */
.banner-cta-row .hero-btn {
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.banner-cta-row .showcase-btn--filled {
  background: #2FD5FE;
  color: #000000;
  border: 1px solid #2FD5FE;
}
.banner-cta-row .opener-btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}
.session-controls .session-btn:hover,
.banner-cta-row .hero-btn:hover { filter: brightness(1.08); }

/* Popular Games — gold-framed portrait cards with a plinth, as on betmica.com */
.casino-shelf {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(214, 184, 120, 0.08), transparent 60%),
    #0B0A09;
}
.lobby-band-caption {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff;
  border-bottom: none;
  padding-bottom: 0;
}
.titles-scroll { gap: 14px; }
.titles-scroll .title-card { flex: 0 0 170px; gap: 0; align-items: center; }
.titles-scroll .lobby-tile-cover {
  aspect-ratio: 3 / 4;
  border: none;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(160deg, #f3dca4 0%, #b8894a 30%, #e9cf94 55%, #8a6334 80%, #d9bb7c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.5), 0 6px 14px rgba(0, 0, 0, 0.55);
}
.titles-scroll .lobby-tile-cover img {
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(60, 40, 15, 0.55);
}
.titles-scroll .casino-card-veil {
  inset: 4px;
  border-radius: 18px;
  background: rgba(11, 10, 9, 0.65);
}
.titles-scroll .casino-card-veil .casino-card-cta {
  border-radius: 999px;
  padding: 9px 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #000000;
  background: #2FD5FE;
}
.titles-scroll .bm-plinth {
  display: block;
  width: 58%;
  height: 12px;
  margin-top: -3px;
  border-radius: 0 0 4px 4px;
  background:
    repeating-linear-gradient(90deg, rgba(90, 62, 25, 0.45) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #e2c68a 0%, #b08447 60%, #7d5a2c 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.titles-scroll .reel-card-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: #c9ccd2;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}
.titles-scroll .bm-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47CD89;
}
@media (max-width: 768px) {
  .titles-scroll .title-card { flex: 0 0 132px; }
  .lobby-band-caption { font-size: 1.25rem; }
}
.titles-scroll .reel-card-name { display: block; text-align: center; }
.titles-scroll .bm-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
