/* Casino Live — sellable demo kit overlays (keeps theme palette) */
:root {
  --cl-blue: #3e3ef4;
  --cl-gold: #e7a008;
  --cl-ink: #1d202b;
  --cl-control-h: 48px;
}

/* —— Header polish —— */
.header-top-ads {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  margin: 0;
  background: linear-gradient(90deg, #2a2fd4 0%, #3e3ef4 40%, #e7a008 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-top-ads::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: cl-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cl-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.header-top-ads .container {
  margin-block: 0;
}

.header-top-ads p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  line-height: 1.35;
}

header {
  background: linear-gradient(180deg, #4a4af6 0%, #3e3ef4 55%, #3535d8 100%);
  border-bottom: 1px solid rgba(231, 160, 8, 0.45);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

header.stickyHeader {
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(62, 62, 244, 0.96), rgba(41, 41, 180, 0.94));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.navbar {
  padding: 10px 0;
}

.navbar > .container {
  flex-wrap: nowrap;
  gap: 12px;
}

.navbar-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 180px;
  margin-right: 8px !important;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cl-gold), transparent);
  opacity: 0.85;
}

.navbar-brand img {
  width: auto !important;
  max-width: 160px !important;
  height: auto;
  max-height: 40px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
}

.navbar-expand-lg .navbar-nav {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin: 0 !important;
}

.navbar-expand-lg .navbar-nav .nav-item {
  flex: 0 0 auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.92;
  white-space: nowrap !important;
  padding: 8px 0 !important;
  line-height: 1.2;
}

.nav-link::before {
  background: linear-gradient(90deg, var(--cl-gold), #fff3);
  height: 2px;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 18px rgba(231, 160, 8, 0.45);
}

/* Desktop auth cluster: tight, single-line, never wraps */
.nav-right {
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 8px !important;
}

.cl-auth-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.nav-right .primary-btn,
.nav-right .cl-auth-actions .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  width: auto !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  .navbar > .container {
    flex-wrap: wrap;
  }

  .navbar-expand-lg .navbar-nav {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }

  #navbarContent .nav-right {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 12px !important;
    margin-top: 12px;
    margin-left: 0 !important;
  }

  #navbarContent .nav-right .cl-balance-chip {
    justify-content: space-between;
    width: 100%;
  }

  #navbarContent .nav-right .cl-auth-actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  #navbarContent .nav-right .cl-auth-actions .primary-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    text-align: center;
    justify-content: center;
  }
}

.nav-right .primary-btn.border-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.nav-right .primary-btn:not(.border-btn) {
  background: linear-gradient(135deg, #ffd56a, var(--cl-gold));
  color: #1d202b;
  border: 0;
  box-shadow: 0 10px 28px rgba(231, 160, 8, 0.35);
}

.nav-right .balance-wrapper.cl-balance-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.nav-right .balance-wrapper.cl-balance-chip span {
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 0 !important;
}

.nav-right .balance-wrapper.cl-balance-chip .primary-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 8px;
  font-size: 18px !important;
  line-height: 1 !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand {
    max-width: 140px;
  }

  .navbar-brand img {
    max-width: 130px !important;
    max-height: 34px;
  }

  .navbar-expand-lg .navbar-nav {
    gap: 0.4rem !important;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 12px;
  }

  .nav-right .primary-btn,
  .nav-right .cl-auth-actions .primary-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
}

@media (min-width: 1200px) {
  .navbar-expand-lg .navbar-nav {
    gap: 0.85rem !important;
  }
}

.toggle-menu-icon span {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* —— Partner / payment logos under Play Now —— */
.partner .client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.partner .client-logo:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.28);
}

.partner .client-logo img {
  max-height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

/* —— No white card borders —— */
.game-card,
.popular-game-card,
.promotion-card,
.blog-card,
.how-play-card,
.why-choose-card,
.horizontal-blog-card,
.vertical-blog-card,
.counter-card,
.vision-card,
.form-wrapper,
.user-detail-wrapper,
.dashboard-counter,
.game-video-card,
.about-ads,
.about-banner-left img {
  border: 0 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

.game-card:hover,
.popular-game-card:hover,
.promotion-card:hover,
.blog-card:hover,
.why-choose-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

/* —— Recent Blogs: equal-height cards only (not the section header) —— */
.blog .row.gy-3 > [class*="col-"] {
  display: flex;
}

.blog .row.justify-content-center > [class*="col-"] {
  display: block;
  text-align: center;
}

.blog .row.justify-content-center .section-title,
.blog .row.justify-content-center > [class*="col-"] > p {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.blog-content > a:first-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
  font-weight: 700;
}

.blog-content p {
  flex: 1 1 auto;
  margin-bottom: 16px;
}

.blog-content .primary-btn,
.blog-content a.primary-btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .header-top-ads::after {
    animation: none;
    display: none;
  }
}

.cl-disclaimer {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.5;
  margin-top: 10px;
}

.cl-toast {
  margin-top: 12px;
  font-size: 14px;
  color: var(--cl-gold);
}

.cl-toast.is-error {
  color: #ff8a8a;
}

.cl-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

/* Shared control height: inputs + action buttons stay matched */
.cl-filter-bar input[type="search"],
.cl-filter-bar select,
.cl-wallet-form .form-control:not(textarea),
.cl-spin-panel .form-control:not(textarea),
.form-wrapper .form-control:not(textarea),
.cl-inline-controls .form-control:not(textarea) {
  box-sizing: border-box;
  height: var(--cl-control-h);
  min-height: var(--cl-control-h);
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  min-width: 160px;
  font-size: 15px;
  line-height: 1.2;
}

.cl-spin-panel .primary-btn,
.cl-wallet-form .primary-btn,
.cl-inline-controls .primary-btn,
.form-wrapper .primary-btn,
.cl-spin-panel button.primary-btn {
  box-sizing: border-box;
  height: var(--cl-control-h);
  min-height: var(--cl-control-h);
  padding: 0 22px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cl-spin-panel .d-flex.align-items-end,
.cl-inline-controls {
  align-items: flex-end !important;
  gap: 10px !important;
}

.cl-spin-panel .form-group .form-label,
.cl-wallet-form label,
.cl-inline-controls .form-label {
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  color: #fff;
}

.game-tags {
  margin-top: 20px;
  padding-top: 4px;
  gap: 10px !important;
}

.game-tags span {
  border: 1px solid rgba(231, 160, 8, 0.55) !important;
  background: #151821 !important;
  color: #f5f5f5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.cl-filter-bar .chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cl-filter-bar .chip.is-active,
.cl-filter-bar .chip:hover {
  background: var(--cl-blue);
  border-color: var(--cl-blue);
}

.cl-wallet-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cl-wallet-steps span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  opacity: 0.7;
}

.cl-wallet-steps span.is-on {
  border-color: var(--cl-gold);
  color: var(--cl-gold);
  opacity: 1;
}

.cl-wallet-form .form-group {
  margin-bottom: 14px;
}

.cl-wallet-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  opacity: 0.8;
}

.cl-spin-panel {
  background: linear-gradient(160deg, rgba(62, 62, 244, 0.18), rgba(29, 32, 43, 0.9));
  border: 1px solid rgba(231, 160, 8, 0.35);
  border-radius: 16px;
  padding: 22px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.cl-spin-reels {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}

.cl-spin-reels span {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.cl-spin-result {
  text-align: center;
  min-height: 28px;
  color: var(--cl-gold);
  font-weight: 600;
}

.balance-wrapper.cl-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.balance-wrapper.cl-balance-chip .primary-btn {
  padding: 6px 12px;
  min-width: auto;
  text-decoration: none;
}

.profile-dropdown-menu .dropdown-item {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  color: inherit;
}

.popular-game-card[hidden],
.game-card[hidden] {
  display: none !important;
}

.cl-legal {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.cl-legal h2 {
  margin-top: 28px;
  font-size: 22px;
}

.cl-faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.cl-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.cl-faq p {
  margin: 10px 0 0;
  opacity: 0.85;
}

/* —— Footer 10/10 —— */
.cl-footer {
  position: relative;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(62, 62, 244, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(231, 160, 8, 0.16), transparent 50%),
    linear-gradient(180deg, #151821 0%, #1d202b 45%, #12151c 100%);
  border-top: 1px solid rgba(231, 160, 8, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.cl-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cl-gold), var(--cl-blue), var(--cl-gold), transparent);
  background-size: 200% 100%;
  animation: cl-footer-shine 7s linear infinite;
}

@keyframes cl-footer-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.cl-footer-aura {
  pointer-events: none;
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(62, 62, 244, 0.18), transparent 65%);
}

.cl-footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 0;
}

.cl-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 2fr);
  gap: 48px 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cl-footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.cl-footer-logo img {
  max-height: 52px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.cl-footer-logo:hover img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 12px 28px rgba(231, 160, 8, 0.35));
}

.cl-footer-tagline {
  max-width: 320px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.cl-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.cl-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cl-footer-btn--gold {
  background: linear-gradient(135deg, #ffd56a, var(--cl-gold));
  color: #1d202b;
  box-shadow: 0 10px 24px rgba(231, 160, 8, 0.28);
}

.cl-footer-btn--gold:hover {
  color: #1d202b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(231, 160, 8, 0.4);
}

.cl-footer-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cl-footer-btn--ghost:hover {
  color: #fff;
  border-color: rgba(231, 160, 8, 0.55);
  background: rgba(62, 62, 244, 0.22);
  transform: translateY(-2px);
}

.cl-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cl-footer-social a:hover {
  transform: translateY(-3px);
  background: var(--cl-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(62, 62, 244, 0.4);
}

.cl-footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 28px;
}

.cl-footer-col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-gold);
}

.cl-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-footer-col li + li {
  margin-top: 10px;
}

.cl-footer-col a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cl-footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cl-gold), transparent);
  transition: width 0.25s ease;
}

.cl-footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.cl-footer-col a:hover::after {
  width: 100%;
}

.cl-footer-col--trust p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.cl-footer-col--trust strong {
  color: #fff;
  font-weight: 700;
}

.cl-footer-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1d202b;
  background: linear-gradient(145deg, #ffd56a, var(--cl-gold));
  box-shadow:
    0 0 0 3px rgba(231, 160, 8, 0.2),
    0 12px 28px rgba(231, 160, 8, 0.28);
}

.cl-footer-link-gold {
  color: var(--cl-gold) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.cl-footer-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cl-footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.cl-footer-pay-label {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cl-footer-pay img {
  height: 28px;
  width: auto;
  max-width: 92px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cl-footer-pay img:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 160, 8, 0.4);
}

.cl-footer-promo {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.cl-footer-promo kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(231, 160, 8, 0.45);
  background: rgba(231, 160, 8, 0.12);
  color: var(--cl-gold);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.cl-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 0 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cl-footer-bottom p {
  margin: 0;
  padding: 0;
  background: none;
  font-size: inherit;
  text-align: left;
  color: inherit;
}

.cl-footer-sono {
  justify-self: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 160, 8, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cl-footer-sono:hover {
  color: var(--cl-gold);
  border-color: var(--cl-gold);
}

.cl-footer-fine {
  justify-self: end;
  text-align: right !important;
  max-width: 340px;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .cl-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cl-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-footer-tagline {
    max-width: none;
  }

  .cl-footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cl-footer-bottom p,
  .cl-footer-fine {
    text-align: center !important;
    justify-self: center;
    max-width: none;
  }

  .cl-footer-sono {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .cl-footer-inner {
    padding-top: 40px;
  }

  .cl-footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .cl-footer-col--trust {
    grid-column: 1 / -1;
  }

  .cl-footer-rail {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-footer::before {
    animation: none;
  }
}

/* —— Mobile app shell —— */
.cl-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  body.has-cl-bottom-nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .cl-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 21, 28, 0.96);
    border-top: 1px solid rgba(231, 160, 8, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.4);
  }

  .cl-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 4px 2px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .cl-bottom-nav__item i {
    font-size: 18px;
    line-height: 1;
  }

  .cl-bottom-nav__item.is-active,
  .cl-bottom-nav__item:hover {
    color: #fff;
    background: rgba(62, 62, 244, 0.28);
  }

  .cl-bottom-nav__item.is-active i {
    color: var(--cl-gold);
  }

  .header-top-ads p {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .inner-gap {
    padding-block: 40px !important;
  }

  .section-title {
    font-size: 26px !important;
  }

  /* Compact game tiles — app grid, not full-phone posters */
  .popular-game-card,
  .game-card {
    border-radius: 14px !important;
    max-height: 210px;
  }

  .popular-game-card .game-img,
  .game-card .game-img {
    aspect-ratio: 3 / 4;
    max-height: 210px;
    overflow: hidden;
  }

  .popular-game-card .game-img img,
  .game-card .game-img img,
  .game-card > img,
  .game-card img.img-fluid {
    width: 100%;
    height: 100%;
    max-height: 210px;
    object-fit: cover;
  }

  .popular-game-content {
    opacity: 1 !important;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    justify-content: flex-end !important;
    padding: 12px 10px !important;
  }

  .popular-game-content h3 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    text-align: center;
  }

  .popular-game-content .primary-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 34px;
    height: auto !important;
  }

  .popular-game-content .primary-btn img {
    max-height: 16px;
    width: auto;
  }

  .game-card a {
    font-size: 14px !important;
    bottom: 10px !important;
    left: 10px !important;
  }

  .promotion-card,
  .blog-card,
  .why-choose-card {
    border-radius: 14px !important;
  }

  .promotion-img img,
  .blog-img img {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
  }

  .banner-content h1 {
    font-size: 34px !important;
  }

  .banner-content img.img-fluid {
    max-height: 220px;
    width: auto;
    margin-inline: auto;
  }

  .page-title {
    padding-block: 36px !important;
  }

  .page-title h1 {
    font-size: 26px !important;
  }

  .game-video-card,
  .game-video-card img,
  .game-detail .game-img img,
  .col-lg-3 .game-img img {
    max-height: 280px;
    object-fit: cover;
  }

  .cl-spin-reels span {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .cl-filter-bar {
    gap: 8px;
    margin-bottom: 18px;
  }

  .cl-filter-bar input[type="search"] {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  /* App-like 2-up game grid */
  #gameGrid > [class*="col-"],
  .popular-game .row.gy-3 > [class*="col-"],
  section.banner + .partner + .top-game .row > [class*="col-"],
  .top-game .row.gy-3 > [class*="col-"],
  .top-game .row > [class*="col-md"],
  .top-game .row > [class*="col-sm"],
  .top-game .row > [class*="col-lg"],
  .top-game .row > [class*="col-xl"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .popular-game-card,
  .game-card {
    max-height: 168px;
  }

  .popular-game-card .game-img,
  .game-card .game-img {
    max-height: 168px;
  }

  .popular-game-card .game-img img,
  .game-card .game-img img,
  .game-card img.img-fluid {
    max-height: 168px;
  }

  .banner-content img.img-fluid {
    max-height: 160px;
  }

  .game-detail .row > .col-lg-3 img,
  .game-detail .game-img img {
    max-height: 220px;
    width: 100%;
    border-radius: 14px;
  }

  .cl-bottom-nav__item span {
    font-size: 9px;
  }

  .row.gy-3 {
    --bs-gutter-y: 0.75rem;
  }
}
