@import url("https://fonts.googleapis.com/css2?family=Titan+One&display=swap");

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

:root {
  --chrome-tint: #011918;
  --surface-primary: #001114;
  --brand-accent: linear-gradient(180deg, #479C56 0%, #267934 100%);
  --surface-alt: #112F2E;
  --display-color: #EDEEEE;
  --copy-color: #808080;
  --rule-color: #233E3E;
}

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

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

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

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

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

.page-top {
  background: var(--chrome-tint);
  border-bottom: 1px solid var(--rule-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;
}

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

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

.header-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-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;
}

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

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

.account-btn--primary {
  background: var(--brand-accent);
  color: var(--display-color);
  border: none;
}

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

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

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

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

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

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

.header-nav-items a {
  color: var(--display-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;
}

.header-nav-items a:hover {
  border-bottom-color: var(--display-color);
}

[data-goto] {
  cursor: pointer;
}

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

.hero-block {
  background: var(--surface-primary);
}

.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;
}

.lead-shade {
  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;
}

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

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

.lead-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);
}

.showcase-highlight-value {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--display-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(--display-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: "💎"; }

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

.showcase-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;
}

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

.hero-btn--filled {
  background: var(--brand-accent);
  color: var(--display-color);
  border: none;
}

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

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

.games-strip {
  padding: 48px 0 24px;
  background: var(--surface-primary);
}

.games-strip-head {
  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(--display-color);
  border-bottom: 2px solid var(--display-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(--rule-color) transparent;
}

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

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

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

/* Shared class from build.py — styled inside .titles-scroll */
.titles-scroll .slot-tile {
  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 .title-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule-color);
}

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

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

.titles-scroll .title-card-overlay {
  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 .title-card-overlay .reel-card-play {
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--display-color);
  background: var(--brand-accent);
  border: none;
}

@media (hover: hover) {
  .titles-scroll .slot-tile:hover .title-card-overlay {
    opacity: 1;
  }
}

.titles-scroll .title-card-name {
  font-size: 0.78rem;
  color: var(--copy-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 ---------- */

.opening-copy {
  padding: 24px 0 60px;
  background: var(--surface-primary);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-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) ==================== */

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

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

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

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

.questions-body .faq-item:last-child {
  border-bottom: 1px solid var(--rule-color);
}

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

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

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

.endnote-band {
  background: var(--chrome-tint);
  border-top: 1px solid var(--rule-color);
  padding: 44px 0;
}

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

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

.endnote-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(--display-color);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--display-color);
  letter-spacing: 0.06em;
}

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

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

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

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

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

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

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

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

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

  .header-auth {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

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

  .main-nav {
    display: none;
  }

  .page-top.is-open .main-nav {
    display: block;
  }

  .header-nav-items {
    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;
  }

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

  .titles-scroll .slot-tile {
    flex: 0 0 140px;
  }

  .opening-copy {
    padding: 20px 0 40px;
  }

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

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

/* ---------- Rivo-style buttons (header auth + hero CTA) ---------- */

.auth-btn {
  border-radius: 999px;
  padding: 10px 24px;
  font-family: "Titan One", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #FFFFFF;
}

.account-btn--primary {
  background: linear-gradient(180deg, #3CB864 0%, #229047 60%, #1B7A3B 100%);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 4px 14px rgba(34, 144, 71, 0.35);
  color: #FFFFFF;
}

.account-btn--primary:hover {
  filter: brightness(1.08);
}

.account-btn--ghost {
  background: #12302E;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.account-btn--ghost:hover {
  background: #183D3A;
}

.showcase-btn {
  font-family: "Titan One", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #FFFFFF;
}

.hero-btn--filled {
  position: relative;
  gap: 8px;
  padding: 16px 44px;
  border-radius: 0;
  background: linear-gradient(180deg, #46CC72 0%, #23A04F 50%, #197E3C 100%);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  box-shadow: inset 0 0 0 2px rgba(196, 255, 170, 0.55), inset 0 0 0 4px rgba(20, 90, 44, 0.9), inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hero-btn--filled::before {
  content: "";
  width: 12px;
  height: 18px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath fill='%23FFFFFF' d='M8 0 1 10h4l-2 8 8-11H7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-btn--filled:hover {
  filter: brightness(1.08);
}

.opener-btn--ghost {
  padding: 14px 30px;
  border-radius: 999px;
  background: #12302E;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.opener-btn--ghost:hover {
  background: #183D3A;
}
