/* ==========================================================================
   NoGamStop Casinos — base stylesheet
   Palette: "Sand & Rust" — warm sand bg + coffee ink + terracotta accent.
   No gradients, no AI-blue/purple, small consistent radius, thin lines
   over heavy shadow. Swap the tokens below to reskin the whole site.
   ========================================================================== */

:root {
  --bg: #f6f0e6;
  --surface: #ffffff;
  --ink: #2b2118;
  --ink-soft: #5c4f3e;
  --ink-faint: #8c7f6a;
  --line: #e6dcc8;
  --line-strong: #d2c3a4;
  --accent: #c1603a;
  --accent-soft: #f7e3d6;
  --accent-ink: #ffffff;
  --brick: #9c3b2a;
  --gold: #6b7a4f;

  --radius: 6px;
  --radius-sm: 4px;

  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 800;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #1a3d2d;
  border-color: #1a3d2d;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--surface);
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo__text span {
  color: var(--accent);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before { top: -5px; position: absolute; }
.nav-toggle span::after { top: 5px; position: absolute; }

/* ---------- hero / intro ---------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.hero__meta strong {
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  max-width: 18ch;
}

.hero__lead {
  max-width: 640px;
  font-size: 17px;
}

/* ---------- listing ---------- */

.listing {
  padding: 48px 0 16px;
}

.listing__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.listing__head h2 {
  font-size: 26px;
  margin: 0;
}

.listing__sort {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.casino-card {
  display: grid;
  grid-template-columns: 104px 1.3fr 1fr 200px 170px;
  align-items: center;
  gap: 22px;
  padding: 22px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.casino-card--top {
  border-color: var(--accent);
}

.card-rank {
  position: absolute;
  transform: translate(-8px, -30px);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}

.brand-mark {
  position: relative;
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a.brand-mark {
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.brand-mark:hover {
  border-color: var(--accent);
}

.casino-card__info h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.casino-name-link {
  color: inherit;
  text-decoration: none;
}

.casino-name-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rating-inline__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.rating-inline__text {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.3;
}

.rating-inline__score {
  font-weight: 700;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

.tag--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.pill-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-soft);
}

.pill strong {
  color: var(--ink);
  font-size: 13px;
}

.pill__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.bonus-box {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.bonus-box .headline {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.bonus-box .sub {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: center;
}

.listing__footnote {
  font-size: 12px;
  color: var(--ink-faint);
  padding: 12px 0 0;
}

/* ---------- editorial / seo text ---------- */

.editorial {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.editorial__body {
  max-width: 760px;
}

.editorial__block {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.editorial__block:first-child {
  padding-top: 0;
  border-top: none;
}

.editorial__block h2 {
  font-size: 24px;
}

.editorial__block h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 1em;
}

.editorial__block p {
  max-width: 68ch;
}

.table-wrap {
  margin: 20px 0;
  max-width: 68ch;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.data-table th:last-child,
.data-table td:last-child {
  border-right: none;
}

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

.data-table th {
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}

.data-table td {
  color: var(--ink-soft);
}

.figure {
  margin: 28px 0;
  padding: 20px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 68ch;
}

.figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  fill: var(--ink);
}

.figure-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink-soft);
}

.figure-value {
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
}

.figure-note {
  font-size: 11px;
  fill: var(--ink-faint);
}

.figure-bar {
  fill: var(--line);
}

.figure-bar--fast {
  fill: var(--accent);
}

.figure-bar--mid {
  fill: #5c8a75;
}

.figure-bar--slow {
  fill: #96b3a4;
}

.figure-col-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.figure-col-head--good {
  fill: var(--accent);
}

.figure-col-head--bad {
  fill: var(--brick);
}

.figure-item {
  font-size: 13px;
  fill: var(--ink-soft);
}

.figure-dot--good {
  fill: var(--accent);
}

.figure-dot--bad {
  fill: var(--brick);
}

.figure figcaption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- casino profiles ---------- */

.profile-list {
  margin-top: 8px;
}

.profile {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.profile:first-of-type {
  border-top: none;
  padding-top: 0;
}

.profile__shot {
  flex: 0 0 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.profile__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.profile__body h3 {
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.profile__body p {
  font-size: 14px;
  max-width: 62ch;
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 8px 0 56px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 20px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.faq-item summary h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 18px;
  max-width: 68ch;
  margin: 0;
}

/* ---------- disclaimer band ---------- */

.disclaimer-band {
  background: var(--ink);
  color: #cfcdbf;
  padding: 28px 0;
}

.disclaimer-band__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.disclaimer-band__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid #4a493d;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: #f3f1ea;
}

.disclaimer-band p {
  color: #a9a795;
  font-size: 13px;
  margin: 0;
  max-width: 80ch;
}

.disclaimer-band a {
  color: #f3f1ea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- footer ---------- */

.site-footer {
  background: #100f0a;
  color: #7d7c6e;
  padding: 36px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a22;
  align-items: start;
}

.footer-brand .logo__text {
  color: #f3f1ea;
}

.footer-brand p {
  color: #7d7c6e;
  font-size: 13px;
  margin-top: 14px;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f3f1ea;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 13px;
  color: #a9a795;
}

.footer-col a:hover {
  color: #f3f1ea;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
  color: #5f5e52;
}

.footer-bottom a {
  color: #7d7c6e;
  text-decoration: none;
}

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .casino-card {
    grid-template-columns: 92px 1fr 1fr;
    grid-template-areas:
      "logo info info"
      "pills pills bonus"
      "cta cta cta";
    row-gap: 16px;
  }

  .brand-mark { width: 92px; height: 92px; grid-area: logo; }
  .casino-card__info { grid-area: info; }
  .pill-group { grid-area: pills; }
  .bonus-box { grid-area: bonus; }
  .cta-stack { grid-area: cta; flex-direction: row; }
  .cta-stack .btn { flex: 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .profile {
    flex-direction: column;
    gap: 14px;
  }

  .profile__shot {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    border-top: 1px solid var(--line);
    z-index: 30;
  }

  body.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
  }

  .main-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .casino-card {
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
    grid-template-areas:
      "logo info"
      "pills pills"
      "bonus bonus"
      "cta cta";
    padding: 18px;
  }

  .brand-mark { width: 96px; height: 96px; }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .cta-stack {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .disclaimer-band__inner {
    align-items: flex-start;
  }
}
