/* ==========================================================================
   slot-landing.css
   Layout and components for the slot landing page.
   Colours/fonts come from slot-theme.css — do not hard-code them here.

   1. Base
   2. Layout helpers
   3. Buttons
   4. Header & navigation
   5. Announcement bar
   6. Breadcrumb
   7. Hero
   8. Content cards (overview, article)
   9. Game grid
   10. FAQ
   11. Info blocks (tables, steps, checklist, glossary, highlights, notice)
   12. CTA band
   13. Footer
   14. Bottom nav (mobile) & back-to-top
   15. Responsive
   ========================================================================== */

/* 1. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(253, 98, 18, .10), transparent 70%),
    var(--color-bg);
  color: var(--color-text-soft);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .6em; color: var(--color-text); line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
strong { color: var(--color-text); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 2. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 36px 0 0; }

.section__title { margin-bottom: 22px; text-align: center; }
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 99px;
  background: var(--gradient-primary);
}

.section__intro {
  max-width: 640px;
  margin: -8px auto 22px;
  color: var(--color-muted);
  text-align: center;
}

/* Shared card surface */
.toc__box,
.game-review,
.content-card,
.faq__item,
.feature-card,
.glossary__item,
.steps__item,
.game-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
}

/* 3. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.btn--primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--secondary { background: var(--color-surface); border-color: var(--color-border); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--block { width: 100%; }

/* 4. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 20, 36, .96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 140px; height: auto; }
.site-header__actions { display: flex; flex: 0 0 auto; gap: 8px; margin-left: auto; }

.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-text-soft);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__link:hover { background: var(--color-surface); color: #fff; text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  content: "";
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* 5. Announcement bar ----------------------------------------------------- */
.announce { padding-top: 14px; }
.announce__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-header);
  overflow: hidden;
}
.announce__icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--color-primary); }
.announce__track { flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.announce__text {
  display: inline-block;
  padding-left: 100%;
  font-size: .88rem;
  color: var(--color-text-soft);
  animation: announce-scroll 30s linear infinite;
  animation-delay: -8s; /* start with text already in view */
}
@keyframes announce-scroll { to { transform: translateX(-100%); } }

/* 6. Breadcrumb ----------------------------------------------------------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  font-size: .85rem;
  color: var(--color-muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--color-text-soft); }

/* 7. Hero ----------------------------------------------------------------- */
.hero { padding-top: 16px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(253, 98, 18, .14), transparent 70%),
    linear-gradient(160deg, var(--color-card), var(--color-header));
}
.hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  aspect-ratio: 1 / 1;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__info h1 { margin-bottom: 12px; }
.hero__lead { margin: 0; font-size: 1.02rem; color: rgba(240, 243, 252, .78); }
.page-meta { margin: 10px 0 0; font-size: .8rem; color: var(--color-muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats__item { padding: 0 8px; text-align: center; }
.stats__item + .stats__item { border-left: 1px solid var(--color-border-strong); }
.stats__label { display: block; font-size: .78rem; color: var(--color-muted); }
.stats__value { display: block; margin: 2px 0 0; font-size: 1.1rem; font-weight: 800; color: #fff; }

.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__actions .btn--block { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-surface);
  font-size: .82rem;
  color: var(--color-text-soft);
}
.chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* 8. Content cards -------------------------------------------------------- */
.content-card { padding: 30px 34px; }
.content-card p { color: rgba(240, 243, 252, .84); }
.content-card p:last-child { margin-bottom: 0; }
.content-card a { font-weight: 600; }
.content-card h3 {
  margin-top: 1.6em;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  color: #fff;
}

/* Long-form text: keep lines at a comfortable reading width */
.content-card--prose { max-width: 920px; margin-right: auto; margin-left: auto; }
.content-card--prose > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }

/* Table of contents */
.toc { max-width: 920px; margin: 0 auto; }
.toc__box { padding: 4px 22px; border-radius: var(--radius); }
.toc__title {
  padding: 14px 0;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.toc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0 0 18px 20px;
}
.toc__list a { color: rgba(240, 243, 252, .84); font-size: .93rem; }
.toc__list a:hover { color: var(--color-primary); }
.toc__list li::marker { color: var(--color-primary); font-weight: 700; }

/* Game reviews */
.game-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game-review { padding: 22px; }
.game-review__title { margin: 0 0 10px; font-size: 1.12rem; }
.game-review__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.game-review__meta li {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--color-surface);
  font-size: .78rem;
  color: var(--color-text-soft);
}
.game-review__meta li:first-child { background: rgba(253, 98, 18, .16); color: var(--color-primary); font-weight: 700; }
.game-review p { margin: 0; font-size: .94rem; color: rgba(240, 243, 252, .84); }

/* 9. Game grid ------------------------------------------------------------ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-card {
  display: block;
  height: 100%;
  overflow: hidden;
  color: var(--color-text-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  text-decoration: none;
}
.game-card__thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--color-surface);
  transition: transform .3s ease;
}
.game-card:hover .game-card__thumb { transform: scale(1.04); }
/* Icons that ship with a built-in white app-icon frame (PG): zoom past the frame */
.game-card__thumb--framed { transform: scale(1.2); }
.game-card:hover .game-card__thumb--framed { transform: scale(1.25); }
.game-card__body { position: relative; display: block; padding: 10px 10px 12px; background: var(--color-card); text-align: center; }
.game-card__title {
  display: block;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card__tag { display: block; margin-top: 2px; font-size: .74rem; color: var(--color-muted); }

/* 10. FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 920px; margin: 0 auto; }
.faq__item { border-radius: var(--radius); transition: border-color .2s ease; }
.faq__item[open] { border-color: rgba(253, 98, 18, .45); }
.faq__question {
  position: relative;
  padding: 16px 56px 16px 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-surface);
  color: #fff;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
}
.faq__item[open] .faq__question::after { content: "−"; background: var(--gradient-primary); }
.faq__answer { padding: 0 20px 18px; color: rgba(240, 243, 252, .84); }
.faq__answer p { margin: 0; }

/* 11. Info blocks -------------------------------------------------------- */
/* Tables (slot types, providers) */
.table-wrap {
  margin: 18px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.data-table th,
.data-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--color-surface); color: #fff; font-size: .85rem; white-space: nowrap; }
.data-table tbody tr + tr { border-top: 1px solid var(--color-border); }
.data-table tbody th { color: #fff; font-weight: 700; white-space: nowrap; }
.data-table td { color: rgba(240, 243, 252, .84); }
.data-table--wide { min-width: 640px; }
.table-note { margin-top: 10px; font-size: .82rem; color: var(--color-muted); }

/* Numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps__item { position: relative; padding: 22px 18px 18px; counter-increment: step; }
.steps__item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
}
.steps__title { margin: 0 0 6px; font-size: 1.02rem; }
.steps__item p { margin: 0; font-size: .92rem; color: rgba(240, 243, 252, .8); }

/* Checklist */
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; color: rgba(240, 243, 252, .88); }
.checklist li::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(253, 98, 18, .16);
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 800;
}

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.glossary__item { padding: 16px 18px; border-radius: var(--radius); }
.glossary__item dt { margin-bottom: 4px; font-weight: 700; color: var(--color-primary); }
.glossary__item dd { margin: 0; font-size: .93rem; color: rgba(240, 243, 252, .84); }

/* Highlights */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 22px; border-top: 3px solid var(--color-primary); }
.feature-card__title { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: .93rem; color: rgba(240, 243, 252, .8); }

/* Responsible-play notice */
.notice {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 26px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-header);
}
.notice__title { margin: 0 0 8px; font-size: 1.2rem; }
.notice p { color: rgba(240, 243, 252, .84); }
.notice ul { margin: 0; padding-left: 20px; color: rgba(240, 243, 252, .84); }
.notice li + li { margin-top: 4px; }

/* 12. CTA band ------------------------------------------------------------ */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border: 1px solid rgba(253, 98, 18, .35);
  border-radius: 22px;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(253, 98, 18, .18), transparent 70%),
    linear-gradient(135deg, var(--color-surface), var(--color-card));
}
.cta-band__title { margin: 0 0 4px; font-size: 1.35rem; }
.cta-band__text { margin: 0; color: rgba(240, 243, 252, .75); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 13. Footer -------------------------------------------------------------- */
.site-footer { margin-top: 48px; background: var(--color-header); border-top: 1px solid var(--color-border); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 24px;
}
.site-footer__title { margin: 0 0 12px; font-size: 1rem; color: #fff; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__list a { color: rgba(240, 243, 252, .75); font-size: .92rem; }
.site-footer__list a:hover { color: var(--color-primary); }
.site-footer__about { max-width: 360px; margin: 0; color: var(--color-muted); font-size: .9rem; }
.site-footer__logo { width: 130px; margin-bottom: 14px; }
.site-footer__legal {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--color-border);
  font-size: .82rem;
  color: var(--color-muted);
  text-align: center;
}
.site-footer__legal p { margin: 0; }

/* 14. Bottom nav (mobile) & back-to-top ----------------------------------- */
.bottom-nav { display: none; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* 15. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav__link { padding: 8px 7px; font-size: .85rem; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  /* Nav becomes a dropdown under the header */
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 6px var(--gutter) 12px;
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { padding: 12px 4px; border-bottom: 1px solid var(--color-border); border-radius: 0; font-size: .95rem; }
  .site-nav__list li:last-child .site-nav__link { border-bottom: 0; }
  .site-nav__link:hover { background: transparent; color: var(--color-primary); }

  .hero__grid { gap: 26px; padding: 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { padding-bottom: var(--bottom-nav-h); }

  .site-header__inner { gap: 10px; }
  .site-header__logo img { width: 116px; }

  .section { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; padding: 14px 14px 20px; border-radius: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .stats__item:nth-child(3) { border-left: 0; }
  .content-card { padding: 22px 18px; }
  .glossary,
  .game-review-grid,
  .toc__list { grid-template-columns: 1fr; }
  .notice { padding: 18px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-card { border-radius: 12px; }
  .game-card__body { padding: 7px 6px 9px; }
  .game-card__title { font-size: .8rem; }
  .game-card__tag { font-size: .68rem; }
  .cta-band { justify-content: center; padding: 22px 18px; text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--bottom-nav-h);
    background: var(--color-header);
    border-top: 1px solid var(--color-border);
  }
  .bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--color-text-soft);
    font-size: .7rem;
    font-weight: 700;
  }
  .bottom-nav__link:hover { text-decoration: none; color: var(--color-primary); }
  .bottom-nav__link svg { width: 24px; height: 24px; }
  .bottom-nav__link--active { color: var(--color-primary); }
  .back-to-top { bottom: calc(var(--bottom-nav-h) + 14px); }
}

@media (max-width: 480px) {
  :root { --gutter: 12px; }
  .site-header__logo img { width: 100px; }
  .site-header__actions { gap: 6px; }
  .site-header__actions .btn { min-height: 36px; padding: 6px 10px; font-size: .8rem; }
  .announce__inner { min-height: 38px; padding: 0 12px; }
  .hero__actions .btn { min-height: 48px; font-size: .98rem; }
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .announce__text { animation: none; padding-left: 0; }
  .btn, .game-card, .game-card__thumb { transition: none; }
}
