/* ==========================================================================
   Cactus Casino — brand layer on top of Bootstrap 5
   Mobile first: base styles target the smallest viewport, media queries scale up
   Brand tokens sourced from cactus.casino (Minimal UI palette) + kaktuz.svg
   ========================================================================== */

:root {
  /* Brand */
  --cc-primary: #00ab55;
  --cc-primary-light: #5be584;
  --cc-primary-dark: #007b55;
  --cc-primary-darker: #005249;

  /* Surfaces */
  --cc-bg: #161c24;
  --cc-bg-alt: #1c242e;
  --cc-surface: #212b36;
  --cc-surface-2: #2a3644;
  --cc-border: #454f5b;

  /* Type */
  --cc-text: #ffffff;
  --cc-muted: #919eab;
  --cc-dim: #637381;

  /* One radius for every element on the site */
  --cc-radius: .375rem;
  --cc-glow: 0 0 0 1px rgba(0, 171, 85, .35), 0 8px 24px -8px rgba(0, 171, 85, .55);

  /* Bootstrap overrides */
  --bs-body-bg: var(--cc-bg);
  --bs-body-color: #d5dbe1;
  --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-primary: var(--cc-primary);
  --bs-primary-rgb: 0, 171, 85;
  --bs-link-color: var(--cc-primary-light);
  --bs-link-hover-color: var(--cc-primary);
  --bs-border-color: var(--cc-border);
  --bs-emphasis-color: var(--cc-text);

  /* Flatten Bootstrap's whole radius scale onto the same value, so its own
     components (badges, form controls, dropdowns, modals) stay consistent. */
  --bs-border-radius: var(--cc-radius);
  --bs-border-radius-sm: var(--cc-radius);
  --bs-border-radius-lg: var(--cc-radius);
  --bs-border-radius-xl: var(--cc-radius);
  --bs-border-radius-xxl: var(--cc-radius);
  --bs-border-radius-2xl: var(--cc-radius);
  --bs-border-radius-pill: var(--cc-radius);
}

/* --------------------------------------------------------- base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--cc-bg);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 171, 85, .16) 0%, transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(0, 123, 85, .10) 0%, transparent 70%);
  background-attachment: fixed;
  color: #d5dbe1;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
  body { font-size: 16px; }
}

.container { max-width: 1140px; }

/* --------------------------------------------------- typography ---------- */

h1, h2, h3, h4 {
  color: var(--cc-text);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}

h1, .h1 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

h2, .h2 {
  font-size: 1.4rem;
  color: var(--cc-primary-light);
  text-align: center;
  margin: 2.75rem 0 1rem;
}

h3, .h3 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1, .h1 { font-size: 2.75rem; }
  h2, .h2 { font-size: 1.85rem; margin: 3.5rem 0 1.25rem; }
  h3, .h3 { font-size: 1.3rem; }
}

.section-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: .75rem auto 0;
  border-radius: var(--cc-radius);
  background: linear-gradient(90deg, var(--cc-primary), var(--cc-primary-light));
}

strong, b { color: var(--cc-text); font-weight: 700; }

.text-muted-cc { color: var(--cc-muted) !important; }
.text-brand { color: var(--cc-primary-light) !important; }

/* Prose lists that mirror the source layout */
.prose ul, .prose ol { padding-left: 1.15rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--cc-primary); font-weight: 700; }
.prose p:last-child { margin-bottom: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 0;
  background: rgba(22, 28, 36, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(69, 79, 91, .5);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.burger {
  width: 26px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  flex: 0 0 auto;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--cc-radius);
  background: var(--cc-text);
  transition: background .2s ease;
}

.burger::before { top: 0; }
.burger span { top: 9px; }
.burger::after { bottom: 0; }

.burger:hover span,
.burger:hover::before,
.burger:hover::after { background: var(--cc-primary-light); }

.header__logo img {
  display: block;
  width: 108px;
  height: auto;
}

@media (min-width: 992px) {
  .header__logo img { width: 132px; }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

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

.btn {
  --bs-btn-font-weight: 700;
  border-radius: var(--cc-radius);
  white-space: nowrap;
}

.btn-cc {
  background: linear-gradient(180deg, var(--cc-primary-light) 0%, var(--cc-primary) 55%, var(--cc-primary-dark) 100%);
  border: 0;
  color: #06210f;
  font-weight: 800;
  box-shadow: var(--cc-glow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-cc:hover,
.btn-cc:focus-visible {
  color: #06210f;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 171, 85, .5), 0 12px 28px -8px rgba(0, 171, 85, .7);
}

.btn-cc-outline {
  background: var(--cc-surface);
  border: 1px solid rgba(0, 171, 85, .55);
  color: var(--cc-text);
  box-shadow: 0 0 12px -2px rgba(0, 171, 85, .45);
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-cc-outline:hover,
.btn-cc-outline:focus-visible {
  color: var(--cc-primary-light);
  border-color: var(--cc-primary);
  box-shadow: 0 0 18px -2px rgba(0, 171, 85, .7);
}

.btn-tg {
  background: #229ed9;
  border: 0;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(34, 158, 217, .55);
}

.btn-tg:hover,
.btn-tg:focus-visible { background: #1b8ec5; color: #fff; }

/* Floating "play now" button, mirrors the source layout */
.play-now {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 1040;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font-size: .95rem;
}

@media (min-width: 992px) {
  .play-now { left: auto; right: 1.5rem; bottom: 1.5rem; transform: none; }
}

/* ------------------------------------------------------ offcanvas -------- */

.offcanvas.sidenav {
  width: min(320px, 86vw);
  background: var(--cc-bg-alt);
  border-right: 1px solid var(--cc-border);
}

.sidenav .offcanvas-header { border-bottom: 1px solid rgba(69, 79, 91, .5); }
.sidenav .btn-close { filter: invert(1) grayscale(1); opacity: .7; }

.sidenav .menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.sidenav .menu a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cc-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.sidenav .menu a:hover,
.sidenav .menu a:focus-visible {
  color: var(--cc-text);
  background: rgba(0, 171, 85, .08);
  border-left-color: var(--cc-primary);
}

.sidenav .menu .is-current a {
  color: var(--cc-primary-light);
  border-left-color: var(--cc-primary);
}

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

.hero {
  padding: 2rem 0 .5rem;
}

.hero__lead {
  max-width: 760px;
  margin-inline: auto;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.stat {
  padding: .9rem .5rem;
  text-align: center;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: linear-gradient(180deg, var(--cc-surface) 0%, rgba(33, 43, 54, .35) 100%);
}

.stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cc-primary-light);
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: .78rem;
  color: var(--cc-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

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

.card-cc {
  height: 100%;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.card-cc:hover {
  border-color: rgba(0, 171, 85, .55);
  transform: translateY(-2px);
}

/* News thumbnail — generated art, no external image dependency */
.news__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(91, 229, 132, .35) 0%, transparent 55%),
    linear-gradient(135deg, var(--cc-primary-darker) 0%, #12222b 60%, #0d1620 100%);
}

.news__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px);
  pointer-events: none;
}

.news__thumb span {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.news__meta {
  font-size: .8rem;
  color: var(--cc-dim);
}

/* Games grid — mobile first: 2 up, then 3, then 4 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 576px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .games-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: .75rem;
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(160deg, var(--tile-a, #0f3a2a) 0%, #131b24 70%);
  transition: transform .2s ease, border-color .2s ease;
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, .18) 0%, transparent 70%);
}

.game-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 171, 85, .6);
}

.game-tile__name {
  position: relative;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.game-tile__provider {
  position: relative;
  font-size: .72rem;
  color: rgba(255, 255, 255, .68);
}

/* -------------------------------------------------------- articles ------- */

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--cc-dim);
  --bs-breadcrumb-item-active-color: var(--cc-muted);
  font-size: .8rem;
  margin: 1.25rem 0 .75rem;
}

.breadcrumb a { color: var(--cc-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cc-primary-light); }

/* Long-form copy reads better ranged left than centred like the landing blocks. */
.article h1,
.article h2,
.article h3 { text-align: left; }

.article h1 { margin-bottom: .75rem; }
.article h2 { margin: 2.25rem 0 .85rem; }

@media (min-width: 768px) {
  .article h2 { margin: 2.75rem 0 1rem; }
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: var(--cc-dim);
}

.article__tag {
  padding: .15rem .6rem;
  border: 1px solid rgba(0, 171, 85, .5);
  border-radius: var(--cc-radius);
  background: rgba(0, 171, 85, .12);
  color: var(--cc-primary-light);
  font-size: .75rem;
  font-weight: 700;
}

.article__lead {
  font-size: 1.05rem;
  color: var(--cc-text);
}

/* Hero art on an article page — same generated thumbnail, wider crop. */
.news__thumb--lg {
  aspect-ratio: 2 / 1;
  border-radius: var(--cc-radius);
  margin-bottom: 1.5rem;
}

.news__thumb--lg span { font-size: 1.5rem; }

@media (min-width: 768px) {
  .news__thumb--lg { aspect-ratio: 3 / 1; }
  .news__thumb--lg span { font-size: 2.4rem; }
}

/* ---------------------------------------------------------- table -------- */

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

.info-table {
  --bs-table-bg: transparent;
  --bs-table-color: #d5dbe1;
  --bs-table-border-color: var(--cc-border);
  --bs-table-striped-bg: rgba(255, 255, 255, .022);
  --bs-table-striped-color: #d5dbe1;
  margin: 0;
  font-size: .875rem;
}

.info-table th {
  width: 44%;
  padding: .7rem .75rem;
  background: var(--cc-surface);
  color: var(--cc-text);
  font-weight: 700;
  vertical-align: middle;
  border-right: 1px solid var(--cc-border);
}

.info-table td {
  padding: .7rem .75rem;
  text-align: center;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .info-table { font-size: .95rem; }
  .info-table th { width: 36%; padding: .85rem 1.1rem; }
  .info-table td { padding: .85rem 1.1rem; }
}

.info-table .site-pill {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: var(--cc-radius);
  background: rgba(0, 171, 85, .14);
  border: 1px solid rgba(0, 171, 85, .5);
  color: var(--cc-primary-light);
  font-weight: 800;
  text-decoration: none;
}

.info-table .site-pill:hover { background: rgba(0, 171, 85, .24); }

/* ------------------------------------------------------- content --------- */

.content-block {
  border-top: 1px solid rgba(69, 79, 91, .35);
  padding-top: .5rem;
}

.callout {
  border: 1px solid var(--cc-border);
  border-left: 3px solid var(--cc-primary);
  border-radius: var(--cc-radius);
  background: rgba(33, 43, 54, .6);
  padding: 1rem 1.1rem;
}

/* ------------------------------------------------------------ faq -------- */

.accordion-cc {
  --bs-accordion-bg: var(--cc-surface);
  --bs-accordion-color: #d5dbe1;
  --bs-accordion-border-color: var(--cc-border);
  --bs-accordion-border-radius: var(--cc-radius);
  --bs-accordion-inner-border-radius: var(--cc-radius);
  --bs-accordion-btn-color: var(--cc-text);
  --bs-accordion-btn-bg: var(--cc-surface);
  --bs-accordion-active-color: var(--cc-primary-light);
  --bs-accordion-active-bg: rgba(0, 171, 85, .1);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(0, 171, 85, .25);
  --bs-accordion-body-bg: var(--cc-bg-alt);
}

.accordion-cc .accordion-item { margin-bottom: .6rem; overflow: hidden; }

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

.accordion-cc .accordion-button::after {
  filter: invert(70%) sepia(60%) saturate(500%) hue-rotate(90deg);
}

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

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 6rem;
  border-top: 1px solid rgba(69, 79, 91, .5);
  background: rgba(18, 23, 30, .6);
}

@media (min-width: 992px) {
  .site-footer { padding-bottom: 2rem; }
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.footer__nav a {
  color: var(--cc-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer__nav a:hover { color: var(--cc-primary-light); }

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.pay-methods li {
  padding: .3rem .65rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-surface);
  font-size: .72rem;
  color: var(--cc-muted);
  white-space: nowrap;
}

.copyright {
  font-size: .7rem;
  line-height: 1.55;
  color: var(--cc-dim);
}

.copyright a { color: var(--cc-muted); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: var(--cc-radius);
  border: 2px solid var(--cc-dim);
  color: var(--cc-dim);
  font-size: .72rem;
  font-weight: 800;
}

/* --------------------------------------------------------- a11y ---------- */

:focus-visible {
  outline: 2px solid var(--cc-primary-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
