/* Brutal Casino — design system per brand spec
   Base: deep purple #200636 | Accent buttons: #4c2991 | Gold CTA: #fdcc06→#ffea00
   Secondary text: #c2c0ce / #a29eb6 | Borders: #262646 | Radius: 10px */

:root {
  --main-bg: #200636;
  --surface: #1f2738;
  --surface-dark: #11182c;
  --accent: #4c2991;
  --gold-1: #fdcc06;
  --gold-2: #ffea00;
  --lime-1: #f2f55d;
  --lime-2: #fbff21;
  --text: #ffffff;
  --text-muted: #c2c0ce;
  --text-dim: #a29eb6;
  --border: #262646;
  --table-bg: #000000;
  --radius: 10px;
}

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

html { background: var(--main-bg); scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--main-bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.text-balance { text-wrap: balance; }

h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.65rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: #1a0b2e;
}
.btn--lime {
  background: linear-gradient(180deg, var(--lime-1) 0%, var(--lime-2) 100%);
  color: #1a0b2e;
}
.btn--outline {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--xl { padding: 1rem 2.75rem; font-size: 1.15rem; }
.btn--sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 6, 54, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header__logo img { width: 120px; height: 34px; object-fit: contain; }
.header__nav {
  display: none;
  gap: 1.25rem;
  flex: 1;
}
.header__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.header__nav a:hover { color: var(--gold-2); }
.header__actions {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}
.header__actions .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

@media (min-width: 900px) {
  .header__nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("/images/brutal-casino-hero.webp") center / cover no-repeat;
  opacity: 0.35;
}
.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__lead { font-size: 1.05rem; color: var(--text-muted); }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
}
.hero__chips li {
  background: rgba(76, 41, 145, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- TOC ---------- */
.toc {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.toc a::before {
  content: counter(toc) ".";
  color: var(--gold-2);
  font-weight: bold;
  min-width: 1.4rem;
}
.toc a:hover { color: var(--gold-2); }

@media (min-width: 640px) {
  .toc { margin-left: auto; margin-right: auto; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .toc ol { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .toc { margin-left: 1rem; margin-right: 1rem; }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.section--final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 4.5rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  /* prevent block from overflowing its parent on narrow screens */
  max-width: 100%;
  min-width: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--table-bg);
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: none; }
thead th {
  background: var(--accent);
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody th { color: var(--text-dim); font-weight: normal; width: 40%; }
td { color: var(--text-muted); }

/* ---------- Banners ---------- */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #1f35fa 0%, #4e17a5 100%);
}
.banner--alt {
  background: linear-gradient(100deg, #ff5f1b 0%, #ff422d 100%);
}
.banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.banner__text strong { font-size: 1.3rem; }
.banner__text span { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }

/* ---------- Games grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0;
}
@media (min-width: 700px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .games { grid-template-columns: repeat(4, 1fr); } }

.game {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-dark);
}
.game img { width: 100%; aspect-ratio: 480 / 340; object-fit: cover; }
.game__name {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.game__name small { color: var(--text-dim); font-size: 0.75rem; }
.game__overlay {
  position: absolute;
  inset: 0 0 2.9rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(32, 6, 54, 0.82);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game:hover .game__overlay,
.game:focus-within .game__overlay { opacity: 1; }
@media (hover: none) {
  .game__overlay {
    position: static;
    opacity: 1;
    background: none;
    flex-direction: row;
    padding: 0.6rem 0.75rem 0;
  }
}

/* ---------- Logo grids ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 1.25rem 0;
}
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid li {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 84px;
}
.logo-grid img { max-height: 48px; width: auto; object-fit: contain; }

/* ---------- Split layouts ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  /* prevent flex children from overflowing the container */
  min-width: 0;
  width: 100%;
}
.split > div {
  min-width: 0;
  width: 100%;
}
.split__img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
  align-self: center;
}
.split__img--noborder {
  border: none;
  border-radius: 0;
  background: transparent;
  max-width: 460px;
}
@media (min-width: 860px) {
  .split { flex-direction: row; }
  .split--reverse { flex-direction: row-reverse; }
  .split > div { flex: 1.4; width: auto; }
  .split__img { flex: 1; max-width: 380px; align-self: flex-start; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #1a0b2e;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review p { color: var(--text-muted); font-size: 0.95rem; }
.review footer { color: var(--text-dim); font-size: 0.85rem; }
.review cite { color: var(--gold-2); font-style: normal; font-weight: bold; }

/* ---------- FAQ ---------- */
details {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--gold-2);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
details[open] summary::after { content: "−"; }
details p { padding: 0 1.25rem 1.25rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer p { font-size: 0.88rem; color: var(--text-dim); }
.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ff422d;
  color: #ff422d;
  border-radius: 50%;
  width: 2.1rem;
  height: 2.1rem;
  font-weight: bold;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.footer__copy { padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.65rem 1rem;
  background: rgba(17, 24, 44, 0.97);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta--visible { transform: translateY(0); }
.sticky-cta__text { color: var(--text-muted); font-size: 0.92rem; }
.sticky-cta__text strong { color: var(--gold-2); }
.sticky-cta .btn { padding: 0.6rem 2rem; }
