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

:root {
  --shell-fill: #061020;
  --canvas-color: #0E1E3D;
  --highlight-tone: linear-gradient(135deg, #F6C21A 0%, #F4A620 100%);
  --panel-fill: #0E1E3D;
  --title-color: #F3F7FF;
  --copy-color: #AEB6C5;
  --edge-color: rgba(243, 247, 255, 0.12);
}

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(--copy-color);
  min-height: 100vh;
  line-height: 1.55;
}

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

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

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

.top-shell {
  background: var(--shell-fill);
  border-bottom: 1px solid var(--edge-color);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

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

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

.account-actions {
  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);
}

.session-btn--ghost {
  background: transparent;
  color: var(--title-color);
  border: 1px solid var(--edge-color);
}

.account-btn--primary {
  background: var(--highlight-tone);
  color: var(--title-color);
  border: none;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--edge-color);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--title-color);
  position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }

.main-nav {
  border-top: 1px solid var(--edge-color);
}

.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(--title-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(--title-color);
}

/* Menu icons (SVG from winnerisland.com menu) instead of emoji */
.main-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-nav-list .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}

[data-out] {
  cursor: pointer;
}

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

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

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

.hero-scrim {
  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;
}

.opener-frame > .frame {
  position: relative;
  z-index: 1;
}

.lead-body {
  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(--title-color);
}

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

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

.opener-offer-amount {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--title-color);
}

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

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

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

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

.hero-actions {
  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);
}

.opener-btn--solid {
  background: var(--highlight-tone);
  color: var(--title-color);
  border: none;
}

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

/* ---------- Buttons styled like winnerisland.com (3D: face + lip + soft shadow) ---------- */
/* wi-btn: dark = "Sign in", gold = "Create account" / "Join the crew" */

.session-btn,
.hero-btn {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.25;
  transition: transform 0.05s ease, box-shadow 0.05s ease, filter 0.15s ease;
}

.session-btn {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.hero-btn {
  padding: 12px 32px;
  font-size: 1rem;
}

.session-btn--ghost,
.opener-btn--ghost {
  background: linear-gradient(180deg, #1e3a5f 0%, #152a45 100%);
  color: #ffffff;
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(7, 18, 32, 0.9),
    inset 0 0 0 2px rgba(65, 199, 217, 0.25),
    0 3px 0 #172a45,
    0 4px 6px rgba(0, 0, 0, 0.4);
}

.account-btn--primary,
.opener-btn--solid {
  background: linear-gradient(180deg, #f6c21a 0%, #f08a24 100%);
  color: #451a03;
  border: none;
  box-shadow:
    inset 0 0 0 1px #451a03,
    inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 3px 0 #663c00,
    0 4px 6px rgba(0, 0, 0, 0.4);
}

.hero-btn.opener-btn--solid,
.hero-btn.opener-btn--ghost {
  box-shadow:
    inset 0 0 0 1px var(--wi-ring, #451a03),
    inset 0 0 0 2px var(--wi-ring2, rgba(255, 255, 255, 0.4)),
    0 4px 0 var(--wi-lip, #663c00),
    0 5px 8px rgba(0, 0, 0, 0.4);
}

.hero-btn.opener-btn--ghost {
  --wi-ring: rgba(7, 18, 32, 0.9);
  --wi-ring2: rgba(65, 199, 217, 0.25);
  --wi-lip: #172a45;
}

.session-btn:hover,
.hero-btn:hover {
  filter: brightness(1.1);
  transform: none;
}

.session-btn:active,
.hero-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25),
    0 0 0 transparent,
    0 1px 2px rgba(0, 0, 0, 0.4);
}

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

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

.casino-shelf-head {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.titles-strip-caption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--title-color);
  border-bottom: 2px solid var(--title-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(--edge-color) transparent;
}

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

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

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

/* Shared class from build.py — styled inside .titles-scroll */
.titles-scroll .reel-card {
  position: relative;
  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 .slot-tile-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 216 / 282;
  overflow: hidden;
  border-radius: 12px;
  background: #1a2d4d;
}

/* Bottom shade so the in-card title stays readable (as on winnerisland.com) */
.titles-scroll .slot-tile-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a1729 10%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  z-index: 1;
}

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

.titles-scroll .reel-card:hover .slot-tile-thumb img {
  transform: scale(1.04);
}

.titles-scroll .lobby-tile-hover {
  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;
  z-index: 2;
}

.titles-scroll .lobby-tile-hover .lobby-tile-btn {
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--title-color);
  background: var(--highlight-tone);
  border: none;
}

@media (hover: hover) {
  .titles-scroll .reel-card:hover .lobby-tile-hover {
    opacity: 1;
  }
}

.titles-scroll .slot-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  word-break: break-word;
  pointer-events: none;
  z-index: 3;
}

/* ---------- Top Providers rail (under Popular Games) ---------- */

.titles-strip--providers {
  padding-top: 0;
}

.titles-scroll .provider-tile {
  flex: 0 0 180px;
  scroll-snap-align: start;
  aspect-ratio: 5 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--edge-color);
  background: linear-gradient(to left, #0a1729 0%, #102541 8%, #102541 92%, #0a1729 100%);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.titles-scroll .provider-tile:hover {
  border-color: rgba(243, 247, 255, 0.35);
}

.titles-scroll .provider-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 720px) {
  .titles-scroll .provider-tile {
    flex: 0 0 140px;
    padding: 12px 14px;
  }
}

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

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

.opening-copy-inner {
  max-width: 820px;
}

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

.opening-copy-inner p:last-child {
  margin-bottom: 0;
}

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

.article-section {
  padding: 40px 0 80px;
}

.content-band-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.content-band-inner h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge-color);
}

.content-band-inner h2:first-child {
  margin-top: 0;
}

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

.content-band-inner p {
  margin-bottom: 18px;
  line-height: 1.75;
}

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

.content-band-inner ul {
  list-style: square;
}

.content-band-inner 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(--edge-color);
}

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

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

.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) ==================== */

.answers-block {
  padding: 0 0 80px;
}

.answers-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* Shared class from build.py */
.answers-inner .faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--edge-color);
}

.answers-inner .faq-item:first-child {
  border-top: 2px solid var(--title-color);
}

.answers-inner .faq-item:last-child {
  border-bottom: 1px solid var(--edge-color);
}

.answers-inner .faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--title-color);
}

.answers-inner .faq-item p {
  color: var(--copy-color);
  line-height: 1.7;
}

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

.site-footer {
  background: var(--shell-fill);
  border-top: 1px solid var(--edge-color);
  padding: 44px 0;
}

.site-footer-inner {
  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;
}

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

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

.bottom-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bottom-shell-nav a {
  color: var(--title-color);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.bottom-shell-nav a:hover {
  text-decoration: underline;
}

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

.footer-block-disclaimer,
.page-foot-copyright {
  font-size: 0.76rem;
  color: var(--copy-color);
  line-height: 1.6;
}

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

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

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

  .nav-burger {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .account-actions {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

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

  .main-nav {
    display: none;
  }

  .top-shell.menu-open .main-nav {
    display: block;
  }

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

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

  .banner-features {
    gap: 12px 20px;
    margin-bottom: 22px;
  }

  .banner-features li {
    font-size: 0.88rem;
  }

  .banner-features li::before {
    font-size: 1.1rem;
  }

  .titles-strip {
    padding: 36px 0 20px;
  }

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

  .intro-band {
    padding: 20px 0 40px;
  }

  .article-section {
    padding: 32px 0 60px;
  }

  .content-band-inner {
    font-size: 0.98rem;
  }
}
