/* Sticky header requires every ancestor to avoid overflow:hidden. */
.site-shell {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
}

/* The hidden attribute must override the default flex layout of TOC links. */
.toc nav[hidden] {
  display: none !important;
}

.toc nav .toc-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  appearance: none;
  background: #1d192a;
  border: 1px solid rgba(145, 96, 255, .22);
  border-radius: 20px;
  padding: 8px 13px;
  color: #c5c1d0;
  cursor: pointer;
  font-size: 11px;
}

.toc nav .toc-item::after {
  content: "↘";
  color: #a886ff;
  font-size: 10px;
}

.toc nav .toc-item:hover,
.toc nav .toc-item:focus-visible {
  background: #29203d;
  border-color: #8758ff;
  color: #fff;
  transform: translateY(-1px);
}

[data-link] {
  cursor: pointer;
}

.promo-slider button {
  display: block;
  width: 20px;
  height: 2px;
  padding: 0;
  border: 0;
  background: #777184;
  cursor: pointer;
}

.promo-slider button.active {
  width: 42px;
  background: #c05cff;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.hero-promo-banner[data-promo-carousel] {
  touch-action: pan-y;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.offer-grid--single-side > .offer-card:not(.offer-main) {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .offer-grid--single-side > .offer-card:not(.offer-main) {
    grid-column: auto;
  }
}

/* Keep the country/language selector visible in the compact header. */
@media (max-width: 980px) {
  .header-inner {
    gap: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .language-dropdown {
    display: block;
  }

  .header-actions .language-dropdown .geo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 7px;
  }

  .language-menu {
    top: calc(100% + 10px);
    right: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 7px;
  }

  .brand {
    font-size: 19px;
    margin-right: auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-actions > .button-primary {
    display: none;
  }

  .menu-toggle {
    padding: 5px 0 5px 5px;
  }

  .menu-toggle span {
    width: 21px;
  }
}
/* Keep the countdown label and digits together inside the hero bonus card. */
.bonus-card-top { align-items: flex-start; gap: 20px; }
.bonus-countdown { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.bonus-countdown > span { white-space: nowrap; }
.bonus-countdown .timer { margin: 5px 0 22px; justify-content: flex-end; }

/* Add/remove .image-left to reverse the reusable text + image hero block. */
.hero-two-grid.image-left .platform-visual { order: -1; }
.pros-section.is-hidden { display: none !important; }

/* This section follows the same left-aligned, full-container layout as the others. */
.pros-section .section-heading.centered { text-align: left; justify-content: flex-start; }
.pros-section .pros-grid { width: 100%; max-width: none; margin: 0; }
.pros-card summary { display: block; list-style: none; }
.pros-card summary::marker { content: ""; display: none; }
.pros-card summary::-webkit-details-marker { display: none; }
.pros-card summary h3 { display: flex; align-items: center; }
.pros-chevron { display: none; margin-left: auto; color: #d7d3df; font-style: normal; font-size: 20px; line-height: 1; }
.pros-chevron::before { content: "+"; }
.pros-card[open] .pros-chevron::before { content: "−"; }

@media (max-width: 760px) {
  .site-header { height: auto; }

  .header-inner {
    min-height: 118px;
    padding: 8px 0 10px;
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    grid-template-rows: 42px 48px;
    gap: 8px 10px;
  }

  .menu-toggle { grid-column: 1; grid-row: 1; display: block; }
  .brand { grid-column: 2 / 4; grid-row: 1; justify-self: center; margin: 0; }
  .header-actions { display: contents; }
  .header-actions .language-dropdown { grid-column: 4; grid-row: 1; justify-self: end; }

  .header-actions > .button {
    display: inline-flex;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 900;
  }

  .header-actions > .button-ghost {
    grid-column: 1 / 3;
    grid-row: 2;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(110deg, #20b96b, #35cd7c);
    box-shadow: 0 9px 24px rgba(32, 185, 107, .25);
  }

  .header-actions > .button-primary {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .main-nav { top: 100%; }

  /* Prevent neighbouring sections from doubling their vertical spacing. */
  main > .section:not(.compact-section) { padding-top: 48px; padding-bottom: 48px; }
  main > .section + .section:not(.compact-section) { padding-top: 18px; }
  main > .compact-section { padding-bottom: 42px; }

  .hero-two-points {
    gap: 28px;
  }

  .hero-two-points b {
    font-size: 24px;
    line-height: 1.1;
  }

  .hero-two-points small {
    max-width: 130px;
    margin-top: 6px;
    color: #c8c3d2;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
  }

  .variant-link:has(> svg:only-child) {
    display: none;
  }

  .bonus-card-top { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .bonus-countdown { width: 100%; margin-left: 0; align-items: center; text-align: center; }
  .bonus-countdown > span { display: block; }
  .bonus-countdown .timer { width: 100%; margin: 7px 0 18px; justify-content: center; gap: 7px; }
  .bonus-countdown .timer b { font-size: 20px; }

  /* Compact two-column information table on phones. */
  .brand-table-wrap { padding: 6px; border-radius: 18px; }
  .table-title { padding: 15px 12px; gap: 10px; align-items: center; }
  .table-title span { font-size: 13px; }
  .table-title i { font-size: 8px; text-align: center; }
  .brand-table { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 13px; }
  .brand-table > div { min-width: 0; padding: 13px 11px; }
  .brand-table > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .brand-table dt { font-size: 8px; line-height: 1.35; }
  .brand-table dd { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }

  /* Native details keep both lists compact and collapsible on mobile. */
  .pros-section .section-heading { margin-bottom: 24px; }
  .pros-section .pros-grid { gap: 10px; }
  .pros-card { padding: 18px; }
  .pros-card summary { cursor: pointer; }
  .pros-card summary h3 { margin: 0; font-size: 17px; }
  .pros-chevron { display: inline-block; }
  .pros-card p { margin: 12px 0 0; padding-top: 12px; }

  /* Registration steps need only as much height as their content. */
  .reviews-section .reviews-head { margin-bottom: 24px; }
  .reviews-section .reviews-grid { gap: 10px; }
  .reviews-section .review-card { padding: 18px; }
  .reviews-section .review-card p { min-height: 0; margin: 13px 0 0; }

  /* Stronger secondary text for small screens. */
  .hero-copy > p,
  .hero-two-copy > p,
  .promo-copy p,
  .offer-card p,
  .promo-feature-content p,
  .content-copy .lead,
  .feature-list p,
  .pros-card p,
  .review-card p,
  .faq-grid p,
  .flex-content-copy p,
  .numbered-info-grid p,
  .game-card small,
  .quick-card small {
    color: #cbc7d7;
    font-weight: 600;
  }

  .promo-feature-timer span,
  .promo-feature-timer i {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .28);
    background: rgba(255, 255, 255, .22);
  }
}

/* Compact vertical rhythm on phones and narrow tablets. */
@media (max-width: 760px) {
  main > .section:not(.compact-section) {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  main > .section + .section:not(.compact-section) {
    padding-top: 0 !important;
  }

  main > .compact-section {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }

  .compact-cta-section { padding-top: 20px !important; }
  .reviews-section .reviews-head,
  .faq-section .faq-grid > div:first-child { margin-top: 0; }
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-flag-image {
  display: inline-block;
  object-fit: cover;
}

.dropdown-menu a.active {
  color: #fff;
  background: rgba(134, 84, 255, .18);
}
