/* ===== Header: proper 3-zone layout — logo | centered nav | language+buttons right ===== */
.header .navbar{
  justify-content: space-between !important;
}
.navbar-collapse.collapse{
  flex: 1 1 auto !important;
}
.navbar-nav.nav-menu{
  justify-content: center !important;
  flex: 1 1 auto;
}
.header-right{
  margin-left: 16px;
}
.top-button{
  gap: 14px;
}

/* ===== Remove the decorative diagonal mask/shape behind "Our Awesome Games" ===== */
.games-section-content::before,
.games-section-content::after{
  display: none !important;
  content: none !important;
}
.games-section-content{
  padding: 20px 0 !important;
  outline: none !important;
}

/* ===== Hero: small archer accent image, top-right of the text column ===== */
.banner-content{ position: relative; }
.ar-hero-accent{
  position: absolute;
  top: -30px;
  right: 0;
  width: 130px;
  opacity: .95;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(139,92,246,.45));
}
@media (max-width: 991px){
  .ar-hero-accent{ width: 90px; top: -18px; opacity: .9; }
}
@media (max-width: 575px){
  .ar-hero-accent{ width: 70px; top: -12px; }
}
.banner-content > *:not(.ar-hero-accent){ position: relative; z-index: 1; }

/* ===== Winners: contain the ticker fully inside its card, no overflow above ===== */
.winner-section .section-heading{ margin-bottom: 24px; }
.latest-winner{ overflow: hidden !important; }
.latest-winner__list{ overflow: hidden !important; }

.latest-winner-item__amount, .ar-winner-amt{
  background: none !important;
  -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: var(--ar-good) !important;
  color: var(--ar-good) !important;
}

.games-section-content{
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.header .navbar{ width: 100% !important; }

/* ===== Floating, rounded, glassy top bar ===== */
.header{
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
  top: 12px !important;
  border-radius: 18px !important;
  background: rgba(15,11,29,.5) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06) !important;
  transition: top .25s, background .25s;
}
.header.fixed-header{
  top: 10px !important;
  background: rgba(12,9,24,.68) !important;
}
.header .container{ max-width: 100%; }
@media (max-width: 575px){
  .header{ left: 10px !important; right: 10px !important; top: 8px !important; border-radius: 14px !important; }
}

#header.fixed-header{
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
  top: 10px !important;
  border-radius: 18px !important;
  background: rgba(12,9,24,.68) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
}
@media (max-width: 575px){
  #header.fixed-header{ left: 10px !important; right: 10px !important; top: 8px !important; border-radius: 14px !important; }
}

/* ===== Games grid: bulletproof CSS Grid on mobile, guaranteed 3 columns ===== */
@media (max-width: 991px){
  .games-section-wrapper{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .game-item{
    width: auto !important;
    min-width: 0 !important;
  }
  .game-item__title{
    font-size: 11px !important;
    padding: 6px 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 400px){
  .games-section-wrapper{ gap: 8px !important; }
}

/* ===== Winner row: force flex layout to win over Slick's inline display style,
   amount on the right, light divider under each entry ===== */
.latest-winner-item.ar-winner-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-sizing: border-box !important;
}
.ar-winner-row .ar-winner-text{
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.ar-winner-row .ar-winner-amt{
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  text-align: right !important;
}

/* ===== Footer polish: smaller Aptheralive logo, responsive game-icon strip, remove payment-method logos ===== */
.footer-area__thumb{
  overflow: hidden;
}
.footer-area__thumb img{
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}
.payment-method{
  display: none !important;
}

/* ===== Smaller footer logo + newsletter box, MOBILE ONLY ===== */
@media (max-width: 767px){
  .footer-bottom__logo img{
    width: 140px !important;
    height: auto !important;
  }
  .newsletter__input{
    height: 48px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
  }
  .newsletter__btn.subscribe-btn{
    height: 48px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
  }
}

/* ===== Inner-page hero (breadcrumb) — same dark theme as homepage, site-wide ===== */
.breadcrumb{
  background: var(--ar-bg-1) !important;
  position: relative;
  overflow: hidden;
}
.breadcrumb__overlay{ display: none !important; }
.breadcrumb::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(139,92,246,.22), transparent 55%),
              radial-gradient(circle at 85% 60%, rgba(236,72,153,.16), transparent 55%);
  pointer-events: none;
}
.breadcrumb__title{
  font-family: 'Space Grotesk', sans-serif !important;
  position: relative; z-index: 1;
}
.breadcrumb__list{ position: relative; z-index: 1; }
.breadcrumb__link, .breadcrumb__item{
  color: var(--ar-ink-1) !important;
  font-family: 'Inter', sans-serif !important;
}
.breadcrumb__item-text{
  color: var(--ar-pink) !important;
  font-weight: 700;
}

.breadcrumb::before{
  display: none !important;
  content: none !important;
}

/* ===== Subtle dot-grid texture behind the breadcrumb hero, matching theme ===== */
.breadcrumb{
  background-image:
    radial-gradient(rgba(139,92,246,.28) 1px, transparent 1.5px) !important;
  background-size: 26px 26px !important;
  background-position: 0 0 !important;
  background-color: var(--ar-bg-1) !important;
}
.breadcrumb::after{
  background:
    radial-gradient(circle at 12% 15%, rgba(139,92,246,.30), transparent 50%),
    radial-gradient(circle at 88% 75%, rgba(236,72,153,.22), transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(251,191,36,.12), transparent 40%) !important;
}

/* ===== Real site image as a subtle, darkened background for the breadcrumb hero ===== */
.breadcrumb{
  background-image:
    linear-gradient(180deg, rgba(8,6,15,.88), rgba(15,11,29,.93)),
    url('http://aptheralive.com/assets/images/frontend/footer/658adaf2e91771703598834.png') !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
}

/* ===== Inner-page content: everything was oversized, scale it down site-wide ===== */
.section-heading__title{
  font-size: 36px !important;
  line-height: 1.2 !important;
}
.about-section__shape img{
  max-width: 340px !important;
  width: 100% !important;
  height: auto !important;
}
.winstep-item{
  width: 180px !important;
  height: 180px !important;
}
.about-card{
  padding: 14px 20px !important;
}
.about-card__title{
  font-size: 15px !important;
}
.about-card__icon{
  font-size: 20px !important;
}
@media (max-width: 575px){
  .section-heading__title{ font-size: 26px !important; }
  .winstep-item{ width: 130px !important; height: 130px !important; }
  .about-section__shape img{ max-width: 220px !important; }
}

/* ===== Mobile nav: transparent blurred overlay, MOBILE ONLY (never affects desktop) ===== */
@media (max-width: 1199px){
  .header:has(.navbar-collapse.show){
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100vh !important; max-height: none !important;
    border-radius: 0 !important;
    background: rgba(8,6,15,.45) !important;
    backdrop-filter: blur(28px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9999 !important;
    animation: ar-menu-fade-in .25s ease;
  }
  .header:has(.navbar-collapse.show) .navbar{
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    min-height: 100vh !important;
    align-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .header:has(.navbar-collapse.show) .navbar-brand.logo{
    order: 1;
    flex: 0 0 auto;
  }
  .header:has(.navbar-collapse.show) .navbar-toggler{
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header:has(.navbar-collapse.show) .navbar-collapse{
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 24px;
  }
  body:has(.navbar-collapse.show){ overflow-x: hidden !important; }
}

.header{
  transition: background .3s ease, backdrop-filter .3s ease, border-radius .2s ease;
}
@keyframes ar-menu-fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
