/* Responsive refinements loaded after the main theme stylesheet. */
.desktop-quick-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 8px;
}

.desktop-quick-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.desktop-quick-nav a:hover,
.desktop-quick-nav a:focus-visible,
.desktop-quick-nav a[aria-current="page"] {
  color: #669af3;
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}

body.menu-open .desktop-quick-nav { opacity: 0; pointer-events: none; }

.casino-category-rail::before {
  content: "";
  top: 6px;
  width: min(342px, 52vw);
  height: 47px;
  background: url("rail-ornament.svg") center / contain no-repeat;
}

@media (min-width: 861px) {
  body[data-page="bonus"] .casino-hero[data-slide-index] .hero-copy {
    width: min(520px, 39vw);
    margin-left: clamp(34px, 4.8vw, 86px);
    margin-right: auto;
  }

  body[data-page="bonus"] .casino-hero[data-slide-index] {
    background-position: 74% 50%;
  }
}

@media (max-width: 860px) {
  .desktop-quick-nav { display: none; }

  .casino-hero::before {
    background:
      linear-gradient(rgba(8,25,53, .14), rgba(8,25,53, .14)),
      linear-gradient(0deg, rgba(20,45,88, .92), rgba(29,60,113, .28) 72%);
  }

  body[data-page="home"] .content-column > :not(.casino-hero):not(.casino-category-rail),
  body[data-page="bonus"] .content-column > :not(.casino-hero):not(.casino-category-rail),
  body[data-page="app"] .content-column > :not(.casino-hero):not(.casino-category-rail) {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .casino-category-rail {
    width: calc(100% - 20px);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    background:
      url("rail-ornament.svg") center 7px / min(342px, 88vw) 47px no-repeat,
      radial-gradient(ellipse at 50% -5%, rgba(255,255,255,.78), transparent 38%),
      linear-gradient(165deg, #d0e8fb 0%, #b3d9f9 58%, #a7d4f8 100%);
    background-attachment: scroll, scroll, scroll;
  }

  .casino-category-rail::-webkit-scrollbar { display: none; }
  .casino-category-rail::before { display: none; }

  body[data-page="bonus"] .casino-hero[data-slide-index] .hero-copy {
    width: min(66%, 390px);
    margin-left: 12px;
    margin-right: auto;
  }

  body[data-page="bonus"] .casino-hero[data-slide-index] { background-position: 78% 50%; }

  .header-inner { padding-inline: 12px; gap: 7px; }
  .header-bonus-trigger {
    width: 38px;
    min-width: 38px;
    padding-inline: 6px;
    overflow: hidden;
  }
  .header-bonus-trigger .dock-trigger-label,
  .header-bonus-trigger .dock-trigger-count { display: none; }

  .content-section,
  .games-rail,
  .promo-banner,
  .lobby-module { min-width: 0; }
}

@media (max-width: 640px) {
  .casino-hero {
    min-height: 545px;
    padding: 142px 14px 105px;
  }

  .casino-hero[data-slide-index] .hero-copy {
    width: calc(100% - 24px);
    max-width: 360px;
    margin-inline: auto;
  }

  .casino-hero .hero-eyebrow {
    max-width: 100%;
    font-size: clamp(15px, 4.8vw, 19px);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .casino-hero .hero-overline { font-size: clamp(14px, 4.5vw, 17px); }

  .casino-hero .hero-title strong {
    max-width: 100%;
    font-size: clamp(46px, 14vw, 60px);
    line-height: .94;
    overflow-wrap: anywhere;
  }

  .casino-hero[data-slide-index="1"] .hero-title strong { font-size: clamp(39px, 11.8vw, 51px); }

  .casino-hero .hero-detail {
    max-width: 100%;
    font-size: clamp(16px, 4.8vw, 21px);
    line-height: 1.03;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .casino-hero .hero-cta { width: 100%; grid-template-columns: 1fr; }
  .casino-hero .hero-cta .btn { min-height: 44px; }
  .casino-hero .hero-dots { margin-top: 10px; }

  body[data-page="bonus"] .casino-hero[data-slide-index] .hero-copy,
  body[data-page="app"] .casino-hero[data-slide-index="0"] .hero-copy,
  body[data-page="app"] .casino-hero[data-slide-index="2"] .hero-copy {
    width: min(68%, 286px);
    margin-left: 2px;
    margin-right: auto;
  }

  body[data-page="app"] .casino-hero[data-slide-index="1"] .hero-copy {
    width: min(68%, 286px);
    margin-left: auto;
    margin-right: 2px;
  }

  body[data-page="bonus"] .casino-hero .hero-title strong,
  body[data-page="app"] .casino-hero .hero-title strong { font-size: clamp(37px, 10.8vw, 47px); }

  body[data-page="bonus"] .casino-hero .hero-detail,
  body[data-page="app"] .casino-hero .hero-detail { font-size: clamp(16px, 4.7vw, 21px); }

  .lobby-game-grid,
  .lobby-shelf-grid,
  .lobby-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lobby-tile { aspect-ratio: .91; border-radius: 11px; }
  .lobby-tile strong { padding: 26px 8px 16px; font-size: clamp(12px, 3.8vw, 16px); }
  .lobby-tile > span { min-height: 40px; }
  .lobby-game-wall { gap: 12px; }
  .lobby-all-games { min-height: 40px; }

  .lobby-feature-row { gap: 12px; }
  .latest-winners,
  .lobby-jackpot { min-height: 215px; border-radius: 12px; }
  .lobby-jackpot { padding: 24px 104px 24px 18px; }
  .lobby-jackpot > span { font-size: 18px; }
  .lobby-jackpot > strong { font-size: clamp(24px, 7.3vw, 34px); }
  .lobby-jackpot img { right: 8px; width: 108px; }

  .games-rail,
  .content-section,
  .promo-banner { border-radius: 13px; }
  .games-rail { padding: 15px 12px; }
  .component-head { margin-bottom: 12px; }
  .component-head h2 { font-size: 20px; line-height: 1.15; }
  .promo-banner,
  .promo-banner.focus-left { min-height: 330px; padding: 20px 16px; }
  .promo-copy h2 { font-size: 22px; line-height: 1.16; }
  .promo-copy p { font-size: 14px; }
  .content-section { padding: 17px 15px; }
  .content-section p,
  .content-section li { font-size: 15px; line-height: 1.6; }
}

/* v33: intrinsic download buttons and readable mobile hero copy. */
.store-pair {
  width: fit-content !important;
  max-width: 100% !important;
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
}

.store-btn {
  width: max-content;
  max-width: 100%;
  grid-template-columns: 34px max-content;
}

.store-copy { width: max-content; }
.hero-store-pair { justify-content: center; }

@media (max-width: 640px) {
  body[data-page] .casino-hero[data-slide-index]::before {
    background: linear-gradient(rgba(9,25,53, .44), rgba(9,25,53, .44));
  }

  .store-btn {
    min-height: 56px;
    grid-template-columns: 30px max-content;
    gap: 8px;
    padding: 7px 10px;
  }

  .store-icon { width: 30px; height: 30px; }
  .store-icon img { width: 23px; height: 23px; }
  .store-copy span:first-child { font-size: 10px; }
  .store-copy span:last-child { font-size: 13px; }
}
