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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bb-font);
  background: var(--bb-bg);
  color: var(--bb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bb-accent);
}

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

.bb-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.bb-header {
  background: var(--bb-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.bb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 64px;
}

.bb-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bb-header__logo img {
  height: 40px;
  width: auto;
}

.bb-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--bb-radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bb-btn--login {
  background: var(--bb-btn-login-bg);
  color: var(--bb-btn-login-text);
  border-color: var(--bb-btn-login-bg);
}

.bb-btn--login:hover {
  background: var(--bb-accent-hover);
  border-color: var(--bb-accent-hover);
  color: #fff;
}

.bb-btn--reg {
  background: var(--bb-btn-reg-bg);
  color: var(--bb-btn-reg-text);
  border-color: var(--bb-btn-reg-border);
}

.bb-btn--reg:hover {
  background: color-mix(in srgb, var(--bb-accent) 18%, transparent);
}

.bb-btn--cta {
  color: rgb(17, 17, 17) !important;
  font-weight: 700;
  background: var(--bb-secondary);
  border-color: var(--bb-secondary);
}

.bb-btn--cta:hover {
  background: var(--bb-secondary-hover);
}

/* Banner */
.bb-banner {
  display: block;
  margin: 0 auto;
  padding: 16px 0 0;
}

.bb-banner__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.bb-banner__img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* Intro under banner */
.bb-tpm-intro {
  padding: 20px 0 8px;
}

.bb-tpm-intro__inner {
  background: var(--bb-surface);
  border-radius: 12px;
  padding: 20px 16px;
}

.bb-tpm-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bb-text);
}

.bb-tpm-intro p {
  margin: 0 0 12px;
  color: var(--bb-text-muted);
  font-size: 15px;
}

.bb-tpm-intro a {
  color: var(--bb-secondary);
}

/* Games / Popular */
.bb-popular {
  padding: 16px 0 8px;
}

.bb-popular__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bb-popular__fire {
  width: 28px;
  height: 28px;
}

.bb-popular__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--bb-secondary);
}

.bb-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .bb-games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .bb-games {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.bb-game {
  background: var(--bb-surface);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.bb-game:hover {
  transform: translateY(-2px);
}

.bb-game__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bb-game__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bb-surface-alt);
}

.bb-game__name {
  margin: 0;
  padding: 8px 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--bb-text);
  line-height: 1.3;
}

/* SEO article block */
.bb-tpm-seo {
  padding: 12px 0 32px;
}

.bb-tpm-seo__inner {
  background: var(--bb-surface);
  border-radius: 12px;
  padding: 20px 16px 24px;
  font-size: 15px;
  color: var(--bb-text-muted);
}

.bb-tpm-seo a {
  color: var(--bb-secondary);
  text-underline-offset: 2px;
}

.bb-tpm-seo .entry-content__heading {
  margin: 24px 0 12px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--bb-secondary);
}

.bb-tpm-seo .entry-content__heading:first-child {
  margin-top: 0;
}

.bb-tpm-seo p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.bb-tpm-seo strong,
.bb-tpm-seo b {
  color: var(--bb-text);
  font-weight: 600;
}

.bb-tpm-seo ul,
.bb-tpm-seo ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.bb-tpm-seo li {
  margin-bottom: 6px;
}

.bb-tpm-seo .anchors-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.bb-tpm-seo .anchors-block a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bb-surface-alt);
  color: var(--bb-text);
  text-decoration: none;
  font-size: 13px;
}

.bb-tpm-seo .anchors-block a:hover {
  background: var(--bb-accent);
}

/* Images in article */
.bb-tpm-seo img,
.bb-tpm-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px auto;
}

.bb-tpm-seo figure {
  margin: 16px 0;
}

.bb-tpm-seo figcaption {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 6px;
}

/* Tables */
.bb-tpm-seo-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.bb-tpm-seo table,
.bb-tpm-intro table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.bb-tpm-seo th,
.bb-tpm-seo td,
.bb-tpm-intro th,
.bb-tpm-intro td {
  padding: 10px 12px;
  border: 1px solid var(--bb-border);
  text-align: left;
  vertical-align: top;
}

.bb-tpm-seo th,
.bb-tpm-intro th {
  background: var(--bb-surface-alt);
  color: var(--bb-text);
  font-weight: 600;
}

.bb-tpm-seo td,
.bb-tpm-intro td {
  background: var(--bb-bg);
  color: var(--bb-text-muted);
}

.bb-tpm-seo tbody tr:nth-child(even) td,
.bb-tpm-intro tbody tr:nth-child(even) td {
  background: #151d28;
}

/* FAQ */
.bb-tpm-faq {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-tpm-faq__label {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bb-secondary);
}

.bb-tpm-faq__item {
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.bb-tpm-faq__question {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bb-text);
  line-height: 1.35;
}

.bb-tpm-faq__answer {
  color: var(--bb-text-muted);
  font-size: 14px;
}

.bb-tpm-faq__answer p {
  margin: 0 0 8px;
}

.bb-tpm-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Footer (385bet-inspired) */
.bb-footer {
  background: var(--bb-footer-bg);
  color: var(--bb-text);
  padding: 64px 0 32px;
  margin-top: 24px;
}

.bb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.bb-footer__logo {
  display: inline-flex;
  margin-bottom: 16px;
  text-decoration: none;
}

.bb-footer__logo img {
  height: 40px;
  width: auto;
}

.bb-footer__about {
  color: var(--bb-text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.bb-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bb-footer__social a {
  color: var(--bb-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.bb-footer__social a:hover {
  color: var(--bb-text);
}

.bb-footer__col-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bb-text);
}

.bb-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-footer__list li {
  margin-bottom: 8px;
}

.bb-footer__list a {
  color: var(--bb-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.bb-footer__list a:hover {
  color: var(--bb-text);
}

.bb-footer__bottom {
  border-top: 1px solid var(--bb-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bb-footer__copy {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.bb-footer__badges {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #9ca3af;
  font-size: 13px;
}

.bb-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--bb-border);
  border-radius: 6px;
  color: var(--bb-text-muted);
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 640px) {
  .bb-footer {
    padding: 48px 0 24px;
  }

  .bb-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bb-footer__social,
  .bb-footer__badges {
    justify-content: center;
  }

  .bb-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .bb-header__logo img {
    height: 32px;
  }
}
/* ===== Main banner like content block ===== */

.bb-container.bb-banner {
  width: calc(100% - 44px);
  max-width: 1120px;
  margin: 18px auto 20px;
  padding: 0;
}

.bb-banner__link {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.bb-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .bb-container.bb-banner {
    width: calc(100% - 16px);
    margin: 16px auto 18px;
  }

  .bb-banner__link,
  .bb-banner__img {
    border-radius: 10px;
  }
}
/* ===== Force main banner full width ===== */

.bb-main .bb-container.bb-banner {
  display: block !important;
  width: calc(100% - 44px) !important;
  max-width: 1120px !important;
  margin: 18px auto 20px !important;
  padding: 0 !important;
}

.bb-main .bb-banner__link {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.bb-main .bb-banner__img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 12px !important;
  object-fit: fill !important;
}