/* Dice Arena v7.9.56 — mobile + tablet portrait only. */
@media (orientation: portrait) and (max-width: 1199px) {
  /* Lower the hero copy without affecting character anchoring or background. */
  body.home .dah-page .dah-hero__content {
    padding-top: clamp(24px, 4.2vw, 48px) !important;
  }
  /* Why Play: left-aligned title/description and 2x2 cards. */
  body.home .dah-page .dah-why-play .dah-heading,
  body.home .dah-page .dah-why-play .dah-heading--center {
    text-align: left !important;
    align-items: flex-start !important;
  }
  body.home .dah-page .dah-why-play .dah-heading h2,
  body.home .dah-page .dah-why-play .dah-heading p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .dah-page .dah-why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(8px, 2vw, 16px) !important;
  }
  body.home .dah-page .dah-why-card {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    padding: clamp(12px, 2vw, 20px) !important;
  }
  body.home .dah-page .dah-why-card__icon {
    flex: none !important;
    width: clamp(29px, 5vw, 42px) !important;
    height: clamp(29px, 5vw, 42px) !important;
  }
  body.home .dah-page .dah-why-card h3 {font-size: clamp(15px, 2vw, 19px) !important;}
  body.home .dah-page .dah-why-card p {font-size: clamp(11px, 1.45vw, 13px) !important; line-height: 1.5 !important;}
  /* Preserve orange/yellow button lettering on hover, no mint-green color switch. */
  body.home .dah-page .dah-btn--gold:hover,
  body.home .dah-page .dah-hero__actions .dah-btn--gold:hover,
  body.home .dah-page .dah-mode-card .dah-btn--gold:hover,
  body.home .dah-page .dah-cta .dah-btn--gold:hover,
  body.home .dah-page a.dah-btn--gold:hover {
    color: #1b1205 !important;
    -webkit-text-fill-color: #1b1205 !important;
  }
  /* Replace only portrait CTA artwork; preserve the full-bleed geometry. */
  body.home .dah-page .dah-cta {
    background-image:
      linear-gradient(to bottom,
        #0b1019 0%, rgba(11,16,25,.76) 9%,
        rgba(11,16,25,0) 33%, rgba(11,16,25,0) 67%,
        rgba(11,16,25,.72) 91%, #0b1019 100%),
      url('../images/backgroundcta.webp') !important;
  }
  /* Compact new logo stays inside existing logo footprint; never stretches the header. */
  .site-header .site-logo .da-responsive-brand-icon {display: inline-flex;flex: 0 0 auto;align-items:center;justify-content:center;}
  .site-header .site-logo .da-responsive-brand-icon img {
    display: block !important;
    width: clamp(28px, 5vw, 39px) !important;
    height: clamp(28px, 5vw, 39px) !important;
    object-fit: contain !important;
    margin-right: 5px !important;
  }
  /* White portrait footer with dark shadow along the top boundary. */
  body .site-footer {
    background: #fff !important;
    color: #253142 !important;
    border-top: 1px solid rgba(11,16,25,.12) !important;
    box-shadow: 0 -16px 32px rgba(11,16,25,.48) !important;
  }
  body .site-footer .footer-grid h3 {color: #101827 !important;}
  body .site-footer .footer-about p,
  body .site-footer .footer-note,
  body .site-footer .footer-bottom {color: #566273 !important;}
  body .site-footer .footer-grid a {color: #243246 !important;}
  body .site-footer .footer-grid a:hover {color: #9a5b00 !important;}
  body .site-footer .site-logo .logo-white {color: #131b29 !important;}
  body .site-footer .footer-bottom {border-top-color: #e2e7ef !important;}
  /* Header changes only after the visitor scrolls. */
  body.da-portrait-scrolled .site-header {
    background: rgba(6, 20, 24, .55) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    border-bottom-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.3) !important;
  }
  body.da-portrait-scrolled .site-header .site-logo,
  body.da-portrait-scrolled .site-header .site-logo span,
  body.da-portrait-scrolled .site-header .main-nav a {
    text-shadow: 0 2px 5px #000, 0 0 12px rgba(0,0,0,.9) !important;
  }
  .site-header .da-desktop-login,
  .site-header .da-drawer-auth a {font-weight: 400 !important;}
}
@media (orientation: portrait) and (max-width: 767px) {
  body.home .dah-page .dah-hero__content {padding-top: 30px !important;}
  body.home .dah-page .dah-why-play .dah-heading h2 {font-size: clamp(24px, 6.5vw, 34px) !important;}
  body.home .dah-page .dah-why-card {padding: 13px 10px !important;}
  body.home .dah-page .dah-why-card h3 {font-size: 15px !important;}
  body.home .dah-page .dah-why-card p {font-size: 11px !important;}
  body.home .dah-page .dah-cta {
    background-image:
      linear-gradient(rgba(11,16,25,.70), rgba(11,16,25,.70)),
      url('../images/backgroundcta.webp') !important;
    background-size: 100% 100%, cover !important;
    background-position: center, center !important;
  }
}

/* v7.9.57: approved header/footer treatment across ALL viewport sizes. */
body .site-footer {
  background: #fff !important;
  color: #253142 !important;
  border-top: 1px solid rgba(11,16,25,.12) !important;
  box-shadow: 0 -16px 32px rgba(11,16,25,.48) !important;
}
body .site-footer .footer-grid h3 {color: #101827 !important;}
body .site-footer .footer-about p,
body .site-footer .footer-note,
body .site-footer .footer-bottom {color: #566273 !important;}
body .site-footer .footer-grid a {color: #243246 !important;}
body .site-footer .footer-grid a:hover {color: #9a5b00 !important;}
body .site-footer .site-logo .logo-white {color: #131b29 !important;}
body .site-footer .footer-bottom {border-top-color: #e2e7ef !important;}
.site-header .site-logo .da-responsive-brand-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.site-header .site-logo .da-responsive-brand-icon img {
  display: block !important;
  width: clamp(28px, 3vw, 39px) !important;
  height: clamp(28px, 3vw, 39px) !important;
  object-fit: contain !important;
  margin-right: 5px !important;
}
body.da-portrait-scrolled .site-header {
  background: rgba(6,20,24,.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.3) !important;
}
body.da-portrait-scrolled .site-header .site-logo,
body.da-portrait-scrolled .site-header .site-logo span,
body.da-portrait-scrolled .site-header .main-nav a {
  text-shadow: 0 2px 5px #000, 0 0 12px rgba(0,0,0,.9) !important;
}
.site-header .da-desktop-login,
.site-header .da-drawer-auth a {font-weight: 400 !important;}

/* Mobile ONLY: left-align Explore Modes section heading and supporting copy. */
@media (max-width: 767px) {
  body.home .dah-page #explore-modes .dah-heading,
  body.home .dah-page #explore-modes .dah-heading--center {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .dah-page #explore-modes .dah-heading h2,
  body.home .dah-page #explore-modes .dah-heading p,
  body.home .dah-page #explore-modes .dah-eyebrow {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* Give moving glow breathing room inside the scroll viewport. The actual cards
   and desktop grid remain unchanged; clipping at carousel edges is avoided. */
@media (max-width: 767px),
       (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  body.home .dah-page #featured-dice-pets .dah-pet-grid {
    padding: 24px 24px 34px !important;
    margin: -12px -24px -16px !important;
    scroll-padding-inline: 24px !important;
    box-sizing: border-box !important;
  }
  body.home .dah-page #featured-dice-pets .dah-pet-grid > .dah-pet-card {
    flex-shrink: 0 !important;
  }
}


/* v7.9.58 — homepage overlay header at top, glass on scroll; other pages retain dark sticky header. */
body:not(.home) .site-header.da-nav-v723 {
  position: sticky !important;
  top: 0 !important;
  background: #071b1c !important;
  background-color: #071b1c !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
/* Keep non-home header dark even when the shared scroll listener sets a class. */
body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 {
  background: #071b1c !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.home .site-header.da-nav-v723 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease !important;
}
body.home .site-header.da-nav-v723::before,
body.home .site-header.da-nav-v723::after {
  background: transparent !important;
  box-shadow: none !important;
}
body.home.da-portrait-scrolled .site-header.da-nav-v723 {
  position: fixed !important;
  top: 0 !important;
  background: rgba(3,17,20,.66) !important;
  background-color: rgba(3,17,20,.66) !important;
  -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
  backdrop-filter: blur(18px) saturate(155%) !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
}
body.home .site-header.da-nav-v723 .site-logo,
body.home .site-header.da-nav-v723 .site-logo span,
body.home .site-header.da-nav-v723 .da-nav-center a {
  text-shadow: 0 1px 3px rgba(0,0,0,.85),0 2px 8px rgba(0,0,0,.55) !important;
}
/* Header is out of flow on the homepage: reserve only safe space for hero text. */
body.home .dah-page .dah-hero {
  margin-top: 0 !important;
}
body.home .dah-page .dah-hero__content {
  padding-top: max(92px, calc(70px + 16px)) !important;
}
@media (max-width: 760px) {
  body.home .dah-page .dah-hero__content {
    padding-top: 90px !important;
  }
  body.home.da-portrait-scrolled .site-header.da-nav-v723 {
    background: rgba(3,17,20,.76) !important;
  }
}
@media (orientation: portrait) and (min-width: 761px) and (max-width: 1199px) {
  body.home .dah-page .dah-hero__content {
    padding-top: 104px !important;
  }
}
/* All gold buttons keep original dark text in every state, including hover/focus/visited. */
body.home .dah-page a.dah-btn--gold,
body.home .dah-page a.dah-btn--gold:hover,
body.home .dah-page a.dah-btn--gold:focus,
body.home .dah-page a.dah-btn--gold:focus-visible,
body.home .dah-page a.dah-btn--gold:visited,
body.home .dah-page button.dah-btn--gold,
body.home .dah-page button.dah-btn--gold:hover,
body.home .dah-page button.dah-btn--gold:focus-visible,
body.home .dah-page .dah-hero__actions .dah-btn--gold,
body.home .dah-page .dah-cta .dah-btn--gold {
  color: #1b1205 !important;
  -webkit-text-fill-color: #1b1205 !important;
}
body.home .dah-page .dah-btn--gold:hover,
body.home .dah-page .dah-btn--gold:focus-visible {
  background: linear-gradient(180deg,#ffbf45,#ff9514) !important;
}
body.home .dah-page .dah-btn--gold *,
body.home .dah-page .dah-btn--gold:hover *,
body.home .dah-page .dah-btn--gold:focus-visible * {
  color: #1b1205 !important;
  -webkit-text-fill-color: #1b1205 !important;
}
/* Approved orange guest login with readable medium-bold lettering. */
body .site-header.da-nav-v723 a.da-desktop-login,
body .site-header.da-nav-v723 a.da-desktop-login:hover,
body .site-header.da-nav-v723 a.da-desktop-login:focus-visible {
  font-weight: 700 !important;
  color: #1b1205 !important;
  -webkit-text-fill-color: #1b1205 !important;
  text-shadow: none !important;
  background: linear-gradient(180deg,#ffbf45,#ff9514) !important;
}
@media (prefers-reduced-motion: reduce) {
  body.home .site-header.da-nav-v723 { transition: none !important; }
}
@media screen and (min-width: 783px) {
  body.admin-bar.home .site-header.da-nav-v723,
  body.admin-bar:not(.home) .site-header.da-nav-v723 { top: 32px !important; }
}
@media screen and (max-width: 782px) {
  body.admin-bar.home .site-header.da-nav-v723,
  body.admin-bar:not(.home) .site-header.da-nav-v723 { top: 46px !important; }
}


/* v7.9.62 — glassmorphism on scroll for all other pages;
   homepage transparent-at-top and its scroll treatment remain untouched. */
body:not(.home) .site-header.da-nav-v723 {
  position: sticky !important;
  top: 0 !important;
  background: #080224 !important;
  background-color: #080224 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease !important;
}
body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 {
  position: sticky !important;
  background: rgba(3,17,20,.66) !important;
  background-color: rgba(3,17,20,.66) !important;
  -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
  backdrop-filter: blur(18px) saturate(155%) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
}
body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 .site-logo,
body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 .site-logo span,
body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 .da-nav-center a {
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55) !important;
}
@media (max-width:760px) {
  body:not(.home).da-portrait-scrolled .site-header.da-nav-v723 {
    background: rgba(3,17,20,.76) !important;
  }
}

/* v7.9.69 — Approved homepage CTA and Why Play refinements.
   Keep original card background, typography, section sizes and layout. */
body.home .dah-page .dah-why-play,
body.home .dah-page .dah-why-play > .container,
body.home .dah-page .dah-why-grid {
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}
body.home .dah-page .dah-why-grid > .dah-why-card {
  box-shadow:none !important;
  filter:none !important;
}
/* Shared desktop, tablet and phone CTA artwork; bottom-only fade. */
body.home .dah-page .dah-cta {
  background-image:
    linear-gradient(rgba(11,16,25,.20),rgba(11,16,25,.20)),
    linear-gradient(to bottom,transparent 0%,transparent 64%,rgba(11,16,25,.12) 73%,rgba(11,16,25,.38) 83%,rgba(11,16,25,.76) 93%,#0b1019 100%),
    url('../images/ctabackgroundimage.webp') !important;
  background-position:center center,center center,center center !important;
  background-size:100% 100%,100% 100%,cover !important;
  background-repeat:no-repeat !important;
}
body.home .dah-page .dah-cta::before,
body.home .dah-page .dah-cta::after {
  content:none !important;display:none !important;
}
