:root {
  --cb-bg: #12080b;
  --cb-bg-2: #1a0d12;
  --cb-panel: #241018;
  --cb-panel-2: #2e1620;
  --cb-line: rgba(255, 214, 160, 0.14);
  --cb-gold: #e4b84a;
  --cb-gold-2: #f3d589;
  --cb-crimson: #b41f36;
  --cb-crimson-2: #e0344d;
  --cb-mint: #2bb673;
  --cb-text: #f7efe6;
  --cb-muted: #c4a99a;
  --cb-dark-ink: #1a0a0e;
  --cb-radius: 14px;
  --cb-radius-sm: 8px;
  --cb-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --cb-max: 1180px;
  --cb-font-display: "Cinzel", "Times New Roman", serif;
  --cb-font-body: "Barlow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cb-font-body);
  color: var(--cb-text);
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(180, 31, 54, 0.28), transparent 55%),
    radial-gradient(800px 380px at 90% 0%, rgba(228, 184, 74, 0.14), transparent 50%),
    linear-gradient(180deg, var(--cb-bg), var(--cb-bg-2) 45%, #0d0608);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--cb-gold-2);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

.cb-wrap {
  width: min(100% - 1.5rem, var(--cb-max));
  margin-inline: auto;
}

/* Header */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 8, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cb-line);
}

.cb-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.cb-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cb-text);
  font-family: var(--cb-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cb-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--cb-line);
}

.cb-logo span {
  font-size: 1.15rem;
  color: var(--cb-gold);
}

.cb-nav {
  display: none;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cb-nav a {
  color: var(--cb-muted);
}

.cb-nav a:hover {
  color: var(--cb-gold);
}

.cb-actions {
  display: flex;
  gap: 0.5rem;
}

.cb-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: 0.15s ease;
  text-decoration: none;
}

.cb-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cb-btn--gold {
  background: linear-gradient(180deg, var(--cb-gold-2), var(--cb-gold));
  color: var(--cb-dark-ink);
  box-shadow: 0 8px 20px rgba(228, 184, 74, 0.25);
}

.cb-btn--crimson {
  background: linear-gradient(180deg, var(--cb-crimson-2), var(--cb-crimson));
  color: #fff;
}

.cb-btn--ghost {
  background: transparent;
  border-color: var(--cb-line);
  color: var(--cb-text);
}

/* Hero — brand casino, not lab */
.cb-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.cb-hero::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 184, 74, 0.18), transparent 68%);
  pointer-events: none;
}

.cb-hero__grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.cb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--cb-line);
  background: rgba(180, 31, 54, 0.25);
  color: var(--cb-gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.cb-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--cb-font-display);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.cb-hero h1 em {
  font-style: normal;
  color: var(--cb-gold);
}

.cb-lede {
  margin: 0 0 1.25rem;
  color: var(--cb-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.cb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cb-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cb-trust-pill {
  background: rgba(36, 16, 24, 0.9);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius-sm);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--cb-shadow);
}

.cb-trust-pill strong {
  display: block;
  color: var(--cb-gold);
  font-size: 0.92rem;
}

.cb-trust-pill span {
  color: var(--cb-muted);
  font-size: 0.84rem;
}

.cb-hero-card {
  background:
    linear-gradient(160deg, rgba(180, 31, 54, 0.35), rgba(36, 16, 24, 0.92) 45%),
    var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 1.25rem;
  box-shadow: var(--cb-shadow);
}

.cb-hero-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--cb-font-display);
  font-size: 1.25rem;
  color: var(--cb-gold-2);
}

.cb-hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--cb-muted);
}

.cb-hero-card li + li {
  margin-top: 0.4rem;
}

/* Sections */
.cb-section {
  padding: 2rem 0;
}

.cb-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cb-section__head h2 {
  margin: 0;
  font-family: var(--cb-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.03em;
}

.cb-section__head p {
  margin: 0.35rem 0 0;
  color: var(--cb-muted);
}

.cb-panel {
  background: rgba(36, 16, 24, 0.88);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 1rem;
  box-shadow: var(--cb-shadow);
}

/* Promo cards */
.cb-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.cb-promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-line);
  background: linear-gradient(145deg, #3a1520, #1a0d12 60%);
  padding: 1.1rem;
  min-height: 150px;
}

.cb-promo::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 184, 74, 0.22), transparent 70%);
}

.cb-promo strong {
  display: block;
  font-family: var(--cb-font-display);
  color: var(--cb-gold);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cb-promo p {
  margin: 0;
  color: var(--cb-muted);
  position: relative;
  z-index: 1;
}

/* Home games rail */
.cb-rail {
  overflow: auto;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: rgba(18, 8, 11, 0.55);
}

.cb-rail__track {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem;
  min-width: max-content;
}

.cb-game {
  width: 140px;
  color: inherit;
  text-decoration: none;
}

.cb-game:hover {
  text-decoration: none;
}

.cb-game__thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cb-panel-2);
  border: 1px solid var(--cb-line);
}

.cb-game__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-game__num,
.cb-game__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
}

.cb-game__badge.is-new {
  left: auto;
  right: 6px;
  background: var(--cb-crimson);
  color: #fff;
}

.cb-game__title {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Demo play slot */
.cb-play {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0406;
  border: 1px solid var(--cb-line);
  aspect-ratio: 16 / 9;
}
.cb-play__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-play__start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  color: #1a1008;
  background: linear-gradient(180deg, var(--cb-gold-2, #f3d589), var(--cb-gold, #e4b84a));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.cb-play__start:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  color: #eee;
  background: #444;
}
.cb-play__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.cb-play--lab {
  aspect-ratio: 4 / 5;
  min-height: 560px;
}
@media (min-width: 760px) {
  .cb-play--lab {
    aspect-ratio: 16 / 11;
    min-height: 640px;
  }
}
.cb-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.cb-card__body h3 a {
  color: inherit;
  text-decoration: none;
}
.cb-card__body h3 a:hover {
  color: var(--cb-gold-2, #f3d589);
}

.cb-review {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cb-line);
}
.cb-review:last-child { border-bottom: 0; }
.cb-review header {
  font-weight: 700;
  color: var(--cb-gold-2, #f3d589);
  margin-bottom: 0.35rem;
}
.cb-review p { margin: 0; color: var(--cb-muted); }

/* Simulator — same weight as games block */
.cb-featured {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-line);
  background:
    linear-gradient(180deg, rgba(18, 8, 11, 0.25), rgba(18, 8, 11, 0.88)),
    var(--cb-sim-cover, var(--cb-panel)) center / cover no-repeat;
}

.cb-featured__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(10, 4, 6, 0.62);
}

.cb-featured__veil strong {
  font-family: var(--cb-font-display);
  font-size: 1.35rem;
  color: var(--cb-gold-2);
}

.cb-featured__veil span {
  color: var(--cb-muted);
  max-width: 28rem;
  margin-inline: auto;
}

.cb-featured.is-live .cb-featured__veil {
  display: none;
}

.cb-featured__frame {
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #000;
  display: none;
}

.cb-featured.is-live .cb-featured__frame {
  display: block;
}

.cb-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.cb-card {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  overflow: hidden;
  background: var(--cb-panel);
}

.cb-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--cb-panel-2);
}

.cb-card__body {
  padding: 0.85rem 0.95rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.cb-card__body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-family: var(--cb-font-display);
}

.cb-card__body p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 0.88rem;
}

.cb-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--cb-line);
  color: var(--cb-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Services / trust */
.cb-service-grid,
.cb-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.cb-service,
.cb-why {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 1rem;
}

.cb-service h3,
.cb-why h3 {
  margin: 0 0 0.4rem;
  font-family: var(--cb-font-display);
  font-size: 1.05rem;
  color: var(--cb-gold-2);
}

.cb-service p,
.cb-why p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 0.92rem;
}

.cb-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.cb-review {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 1rem;
}

.cb-review__stars {
  color: var(--cb-gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.cb-review p {
  margin: 0 0 0.65rem;
  color: var(--cb-muted);
}

.cb-review strong {
  color: var(--cb-text);
  font-size: 0.9rem;
}

.cb-faq details {
  border-top: 1px solid var(--cb-line);
  padding: 0.9rem 0;
}

.cb-faq details:last-child {
  border-bottom: 1px solid var(--cb-line);
}

.cb-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.cb-faq p {
  margin: 0.5rem 0 0;
  color: var(--cb-muted);
}

.cb-contact-grid {
  display: grid;
  gap: 0.85rem;
}

.cb-map {
  border: 0;
  width: 100%;
  min-height: 260px;
  border-radius: var(--cb-radius);
  background: var(--cb-panel-2);
}

/* Inner page */
.cb-page {
  padding: 2rem 0 3rem;
}

.cb-page h1 {
  font-family: var(--cb-font-display);
  margin: 0 0 0.75rem;
}

.cb-page .cb-lede {
  margin-bottom: 1.25rem;
}

.cb-legal {
  display: grid;
  gap: 0.85rem;
}

.cb-legal .cb-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--cb-font-display);
  font-size: 1.15rem;
  color: var(--cb-gold);
  letter-spacing: 0.02em;
}

.cb-legal .cb-panel p,
.cb-legal .cb-panel li {
  color: var(--cb-muted);
  line-height: 1.55;
}

.cb-legal .cb-panel p {
  margin: 0 0 0.65rem;
}

.cb-legal .cb-panel p:last-child {
  margin-bottom: 0;
}

.cb-legal .cb-panel ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}

.cb-legal .cb-panel li + li {
  margin-top: 0.35rem;
}

.cb-legal .cb-panel a {
  color: var(--cb-gold-2);
}

.cb-form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}

.cb-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.cb-form input,
.cb-form textarea {
  padding: 0.75rem 0.85rem;
  border-radius: var(--cb-radius-sm);
  border: 1px solid var(--cb-line);
  background: #0f070a;
  color: var(--cb-text);
  font: inherit;
}

/* Footer */
.cb-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--cb-line);
  background: #0c0508;
  padding: 2rem 0 5.5rem;
  color: var(--cb-muted);
  font-size: 0.9rem;
}

.cb-footer__grid {
  display: grid;
  gap: 1.25rem;
}

.cb-footer h3 {
  margin: 0 0 0.55rem;
  color: var(--cb-gold);
  font-family: var(--cb-font-display);
  font-size: 1rem;
}

.cb-footer a {
  color: var(--cb-muted);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.cb-footer a:hover {
  color: var(--cb-gold-2);
}

.cb-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cb-featured {
  padding: 0.55rem;
}

.cb-featured__frame {
  min-height: 640px;
}

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

  .cb-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .cb-trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cb-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .cb-contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 720px) {
  .cb-header__bar {
    min-height: 60px;
    gap: 0.5rem;
  }

  .cb-actions .cb-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  .cb-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-featured {
    padding: 0.35rem;
  }

  .cb-featured__frame {
    min-height: min(78vh, 620px);
  }

  /* Avoid covering the simulator on small screens */
  .cb-float {
    right: 0.65rem;
    bottom: 0.65rem;
    flex-direction: row;
  }

  .cb-float .cb-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  body.is-sim-open .cb-float {
    display: none;
  }
}
