/* ==========================================================================
   Cactus Casino — design system
   Brand tokens taken from cactus.casino / brandbook
   Built on top of Bootstrap 5.3 (dark theme)
   ========================================================================== */

:root {
  /* Brand */
  --cs-green: #00ab55;
  --cs-green-dark: #007b3d;
  --cs-green-light: #5be49b;
  --cs-gold-1: #ffcf04;
  --cs-gold-2: #ff8b20;

  /* Surfaces */
  --cs-bg: #10161c;
  --cs-bg-2: #161c24;
  --cs-surface: #212b36;
  --cs-surface-2: #2a3742;
  --cs-line: rgba(145, 158, 171, 0.18);
  --cs-line-strong: rgba(145, 158, 171, 0.32);

  /* Text */
  --cs-text: #ffffff;
  --cs-muted: #919eab;

  --cs-radius: 0.375rem;
  --cs-radius-sm: 0.375rem;
  --cs-radius-lg: 0.375rem;

  /* Bootstrap overrides */
  --bs-primary: var(--cs-green);
  --bs-primary-rgb: 0, 171, 85;
  --bs-body-bg: var(--cs-bg);
  --bs-body-color: #e4e8ec;
  --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-color: var(--cs-line);
  --bs-link-color: var(--cs-green-light);
  --bs-link-hover-color: #8ff0bb;
  --bs-border-radius: var(--cs-radius);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background-color: var(--cs-bg);
  background-image:
    radial-gradient(60rem 40rem at 78% -8%, rgba(0, 171, 85, 0.16), transparent 62%),
    radial-gradient(48rem 34rem at 4% 14%, rgba(255, 139, 32, 0.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .cs-display {
  font-family: "Oswald", "Nunito", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h4, h5, h6 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

p { text-wrap: pretty; }

::selection {
  background: var(--cs-green);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cs-green-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fluid display sizes — mobile first */
.cs-h1 { font-size: clamp(1.85rem, 7.2vw, 3.6rem); line-height: 1.06; }
.cs-h2 { font-size: clamp(1.5rem, 5.4vw, 2.5rem); line-height: 1.14; }
.cs-h3 { font-size: clamp(1.2rem, 4.2vw, 1.6rem); line-height: 1.22; }

.cs-lead {
  font-size: clamp(0.98rem, 3.4vw, 1.14rem);
  line-height: 1.65;
  color: #c9d2da;
}

.cs-muted { color: var(--cs-muted) !important; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.cs-gold {
  background: linear-gradient(177deg, var(--cs-gold-1) 35%, var(--cs-gold-2) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Small uppercase section label with a green tick */
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-green-light);
  margin-bottom: 0.75rem;
}

.cs-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--cs-green);
  border-radius: 2px;
}

.cs-section { padding-block: clamp(2.75rem, 9vw, 5.5rem); }

.cs-panel {
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
}

/* Thin divider that fades out */
.cs-rule {
  height: 1px;
  border: 0;
  opacity: 1;
  background: linear-gradient(90deg, var(--cs-line-strong), transparent);
}

.cs-stat-value {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1;
  color: #fff;
}

.cs-stat-label {
  font-size: 0.78rem;
  color: var(--cs-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --bs-btn-border-radius: var(--cs-radius-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-inline: 1.25rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

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

.btn-cactus {
  background: var(--cs-green);
  border: 1px solid var(--cs-green);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 171, 85, 0.25);
}

.btn-cactus:hover,
.btn-cactus:focus {
  background: #00c162;
  border-color: #00c162;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 171, 85, 0.38);
}

.btn-gold {
  background: linear-gradient(177deg, var(--cs-gold-1) 30%, var(--cs-gold-2) 100%);
  border: 0;
  color: #241a00;
  box-shadow: 0 8px 16px rgba(255, 139, 32, 0.24);
}

.btn-gold:hover,
.btn-gold:focus {
  color: #241a00;
  filter: brightness(1.07);
  box-shadow: 0 10px 22px rgba(255, 139, 32, 0.36);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--cs-line-strong);
  color: #e4e8ec;
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--cs-green);
  background: rgba(0, 171, 85, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.cs-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(16, 22, 28, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cs-line);
}

.cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

/* Официальный вордмарк 108x24 — масштабируется по высоте */
.cs-logo img {
  height: 24px;
  width: auto;
  display: block;
  flex: none;
}

/* Подпись отделена вертикальной чертой; на узких экранах скрыта */
.cs-logo__sub {
  display: none;
  padding-left: 0.7rem;
  border-left: 1px solid var(--cs-line-strong);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cs-muted);
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 576px) {
  .cs-logo__sub { display: block; }
}

.cs-footer .cs-logo img { height: 26px; }
.cs-footer .cs-logo__sub { display: block; }

/* Desktop nav */
.cs-nav-link {
  color: #cdd5dc;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.4rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.cs-nav-link:hover,
.cs-nav-link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--cs-green);
}

/* Offcanvas menu */
.cs-offcanvas {
  background: var(--cs-bg-2);
  border-left: 1px solid var(--cs-line);
  width: min(88vw, 22rem);
}

.cs-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.25rem;
  color: #dbe2e8;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--cs-line);
}

.cs-menu-link:hover { color: var(--cs-green-light); }

.cs-menu-link img {
  width: 48px;
  height: 30px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--cs-line);
}

.cs-menu-link::after {
  content: "›";
  margin-left: auto;
  color: var(--cs-muted);
  font-size: 1.15rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.cs-hero { padding-block: clamp(2rem, 8vw, 4.5rem); }

.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0, 171, 85, 0.45);
  background: rgba(0, 171, 85, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cs-green-light);
}

.cs-bonus-figure {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 12vw, 4.6rem);
  line-height: 0.98;
  display: block;
}

/* Hero artwork on category pages */
.cs-hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cs-radius-lg);
  border: 1px solid var(--cs-line);
}

/* --------------------------------------------------------------------------
   Game cards
   -------------------------------------------------------------------------- */

.cs-game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs-game-card:hover,
.cs-game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 171, 85, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  color: inherit;
}

.cs-game-card__art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--cs-bg-2);
}

.cs-game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.15rem;
}

.cs-game-card__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  color: #fff;
}

.cs-game-card__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cs-muted);
  margin-bottom: 0.9rem;
  flex: 1 1 auto;
}

.cs-game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-line);
  font-size: 0.78rem;
  color: var(--cs-muted);
}

.cs-game-card__meta b {
  color: var(--cs-green-light);
  font-weight: 800;
}

.cs-game-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--cs-green-light);
}

.cs-game-card:hover .cs-game-card__more { gap: 0.6rem; }

/* Compact link card used for "related categories" rows */
.cs-related {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  text-decoration: none;
  color: #e4e8ec;
  font-weight: 800;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.cs-related:hover,
.cs-related:focus-visible {
  border-color: rgba(0, 171, 85, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

.cs-related img {
  width: 64px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--cs-line);
}

/* --------------------------------------------------------------------------
   Chips / pills (providers, payments, tags)
   -------------------------------------------------------------------------- */

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-chip {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  background: rgba(33, 43, 54, 0.7);
  font-size: 0.84rem;
  font-weight: 700;
  color: #d4dbe1;
  white-space: nowrap;
}

.cs-chip--accent {
  border-color: rgba(0, 171, 85, 0.45);
  color: var(--cs-green-light);
}

/* --------------------------------------------------------------------------
   Bonus ladder
   -------------------------------------------------------------------------- */

.cs-bonus-step {
  position: relative;
  padding: 1.05rem 1.15rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  height: 100%;
}

.cs-bonus-step__n {
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.cs-bonus-step__v {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Feature list (no boxes — icon + text)
   -------------------------------------------------------------------------- */

.cs-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.cs-feature__ico {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--cs-radius-sm);
  background: rgba(0, 171, 85, 0.12);
  border: 1px solid rgba(0, 171, 85, 0.28);
  color: var(--cs-green-light);
}

.cs-feature h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.cs-feature p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cs-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Steps (how to play)
   -------------------------------------------------------------------------- */

.cs-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.cs-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.35rem 3.1rem;
}

.cs-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 171, 85, 0.14);
  border: 1px solid rgba(0, 171, 85, 0.4);
  color: var(--cs-green-light);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* vertical connector */
.cs-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--cs-line-strong);
}

.cs-steps li:last-child { padding-bottom: 0; }

.cs-steps h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.cs-steps p { font-size: 0.92rem; line-height: 1.6; color: var(--cs-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Provider cards
   -------------------------------------------------------------------------- */

.cs-provider {
  height: 100%;
  padding: 1.1rem 1.15rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  border-left: 3px solid var(--cs-green);
}

.cs-provider h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  color: #fff;
}

.cs-provider__tag {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-green-light);
  font-weight: 800;
  display: block;
  margin-bottom: 0.55rem;
}

.cs-provider p { font-size: 0.9rem; line-height: 1.6; color: var(--cs-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.cs-table-wrap {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
}

.cs-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cs-table {
  width: 100%;
  min-width: 34rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cs-table thead th {
  background: var(--cs-surface-2);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 0.9rem;
  white-space: nowrap;
  text-align: left;
}

.cs-table tbody td {
  padding: 0.8rem 0.9rem;
  border-top: 1px solid var(--cs-line);
  color: #d4dbe1;
  vertical-align: top;
}

.cs-table tbody tr:nth-child(odd) { background: rgba(33, 43, 54, 0.5); }
.cs-table tbody tr:hover { background: rgba(0, 171, 85, 0.07); }

.cs-table td:first-child { color: #fff; font-weight: 800; }

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--cs-line);
  --bs-accordion-border-radius: var(--cs-radius);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: var(--cs-surface);
  --bs-accordion-active-bg: rgba(0, 171, 85, 0.12);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-body-padding-y: 1rem;
}

.accordion-button {
  font-weight: 800;
  font-size: 1rem;
}

.accordion-body {
  color: var(--cs-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  background: rgba(33, 43, 54, 0.45);
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cs-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--cs-radius-lg);
  border: 1px solid rgba(0, 171, 85, 0.35);
  background:
    radial-gradient(38rem 22rem at 88% 18%, rgba(0, 171, 85, 0.3), transparent 68%),
    linear-gradient(160deg, #1d2731, #141b22);
  padding: clamp(1.5rem, 6vw, 3rem);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--cs-muted);
  --bs-breadcrumb-item-active-color: var(--cs-muted);
  font-size: 0.85rem;
  margin: 0;
}

.breadcrumb a { color: var(--cs-green-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Prose (long-form article text)
   -------------------------------------------------------------------------- */

.cs-prose { font-size: 1rem; line-height: 1.75; color: #c9d2da; }
.cs-prose > * + * { margin-top: 1rem; }
.cs-prose h2 { margin-top: 2.25rem; color: #fff; }
.cs-prose h3 { margin-top: 1.75rem; color: #fff; }
.cs-prose strong { color: #fff; }
.cs-prose ul, .cs-prose ol { padding-left: 1.15rem; }
.cs-prose li + li { margin-top: 0.45rem; }
.cs-prose li::marker { color: var(--cs-green); }

/* Callout inside prose */
.cs-note {
  border-left: 3px solid var(--cs-gold-1);
  background: rgba(255, 207, 4, 0.06);
  border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.94rem;
  color: #d8dee4;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.cs-footer {
  background: #0c1116;
  border-top: 1px solid var(--cs-line);
  padding-block: clamp(2.25rem, 7vw, 3.5rem) 1.5rem;
}

.cs-footer h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: 0.9rem;
}

.cs-footer a {
  color: #b6c0c9;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  padding-block: 0.22rem;
}

.cs-footer a:hover { color: var(--cs-green-light); }

.cs-age {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--cs-muted);
  border-radius: 50%;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--cs-muted);
}

/* --------------------------------------------------------------------------
   Sticky mobile CTA bar
   -------------------------------------------------------------------------- */

.cs-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(16, 22, 28, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--cs-line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.cs-sticky-cta.is-visible { transform: translateY(0); }

@media (min-width: 992px) {
  .cs-sticky-cta { display: none; }
}

/* Give the sticky bar room so it never covers the footer text */
@media (max-width: 991.98px) {
  body { padding-bottom: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cs-game-card:hover { transform: none; }
}
