/* ================================================================
   ALLSTAR GALAXY V246 — FINAL PHONE HOMEPAGE MICRO-POLISH
   Loaded after css/styles.css. This file intentionally replaces the
   broken V240/V241/V242 homepage override chain.
   ================================================================ */

/* Remove accidental page-top spacing on the homepage. */
html,
html body.page-home {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body.page-home .site-shell,
html body.page-home .site-top {
  margin-top: 0 !important;
}

/* HOME is the only active destination on index.html. */
html body.page-home .site-top nav > a[href="index.html"].active,
html body.page-home .site-top nav.site-nav-v3 > a[href="index.html"].active {
  color: #fff !important;
  border-color: #ffe276 !important;
  background: linear-gradient(180deg, rgba(255,221,94,.60), rgba(74,47,2,.98)) !important;
  box-shadow: 0 0 13px #f5c542, 0 0 24px rgba(245,197,66,.50), inset 0 0 11px rgba(255,240,174,.20) !important;
  text-shadow: 0 0 7px rgba(255,235,142,.95) !important;
  filter: none !important;
}

/* Shuffle must be a normal inactive GOLD homepage button in every
   interaction state. This also defeats retained iOS hover/focus and
   page-global orange shuffle selectors. */
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"],
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:link,
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:visited,
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:hover,
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:focus,
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:focus-visible,
html body.page-home .site-top nav > a[href="galaxy-shuffle.html"]:active,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"],
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:link,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:visited,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:hover,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:focus,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:focus-visible,
html body.page-home .site-top nav.site-nav-v3 > a[href="galaxy-shuffle.html"]:active {
  color: #fff !important;
  border-color: rgba(245,197,66,.72) !important;
  background: rgba(5,4,2,.80) !important;
  box-shadow: inset 0 0 0 1px rgba(245,197,66,.07) !important;
  text-shadow: none !important;
  filter: none !important;
  outline: none !important;
}

/* The homepage feature hub follows the HOME gold identity. */
html body.page-home .homepage-feature-card.feature-shuffle,
html body.page-home .homepage-feature-card.feature-shuffle:hover,
html body.page-home .homepage-feature-card.feature-shuffle:focus,
html body.page-home .homepage-feature-card.feature-shuffle:active {
  border-color: #f5c542 !important;
  background: radial-gradient(circle at 80% 18%, rgba(245,197,66,.20), transparent 33%), linear-gradient(145deg, rgba(36,27,4,.96), rgba(4,4,3,.98)) !important;
  box-shadow: 0 0 12px rgba(245,197,66,.42), inset 0 0 20px rgba(245,197,66,.08) !important;
}
html body.page-home .homepage-feature-card.feature-shuffle strong,
html body.page-home .homepage-feature-card.feature-shuffle .feature-icon,
html body.page-home .homepage-feature-card.feature-shuffle em {
  color: #f5c542 !important;
  text-shadow: 0 0 9px rgba(245,197,66,.72) !important;
}
html body.page-home .homepage-feature-card.feature-shuffle .homepage-live-stat {
  color: #ffe79a !important;
  border-color: rgba(245,197,66,.75) !important;
  background: rgba(73,51,3,.46) !important;
  box-shadow: 0 0 9px rgba(245,197,66,.28) !important;
}

@media (max-width: 700px) {
  /* Balanced phone title row: taller than V241, but without the V240
     vertical distortion. */
  html body.page-home .site-top .hero-bar {
    grid-template-columns: 45px minmax(0,1fr) 44px !important;
    height: 57px !important;
    min-height: 57px !important;
    padding: 1px 8px !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  html body.page-home .site-top .hero-logo,
  html body.page-home .site-top .hero-logo img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  html body.page-home .site-top .hero-title {
    height: 54px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    transform: translateY(-1px) !important;
  }

  html body.page-home .site-top .hero-title img {
    display: block !important;
    width: 100% !important;
    height: 47px !important;
    min-height: 47px !important;
    max-height: 47px !important;
    object-fit: fill !important;
    object-position: center !important;
    transform: scaleY(1.13) !important;
    transform-origin: center center !important;
  }
}


/* V245 final micro-polish: keep the Search control visually balanced with
   the left logo and soften the hero-to-content transition. */
@media (max-width: 700px) {
  html body.page-home .site-top .mobile-search-button {
    transform: translateX(-3px) !important;
  }
}

html body.page-home .hero-image.hero-home {
  position: relative !important;
}
html body.page-home .hero-image.hero-home::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 45%, transparent 42%, rgba(0,0,0,.22) 100%),
    linear-gradient(to bottom, transparent 78%, rgba(7,4,2,.18) 88%, rgba(12,7,4,.72) 100%) !important;
  opacity: 1 !important;
}


/* V246 approved final micro-adjustments. */
@media (max-width: 700px) {
  /* Slightly tighten the title horizontally without changing its height. */
  html body.page-home .site-top .hero-title img {
    transform: translateY(-1px) scaleX(.975) scaleY(1.13) !important;
    transform-origin: center center !important;
  }

  /* Shift the hero composition upward by three pixels. */
  html body.page-home .hero-image.hero-home {
    background-position: center calc(38% - 3px) !important;
  }
  html body.page-home .hero-image.hero-home::before {
    background-position: center calc(38% - 3px) !important;
  }
}

/* ================================================================
   ALLSTAR GALAXY V247 — FINAL PHONE HOMEPAGE DETAIL POLISH
   Custom galaxy hero indicators and a unified ticker icon treatment.
   ================================================================ */

/* Replace generic hero dots with miniature glowing galaxy planets. */
html body.page-home .hero-rotation-dots {
  gap: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(245,197,66,.24) !important;
  background: radial-gradient(circle at 50% 45%, rgba(22,14,2,.76), rgba(0,0,0,.58)) !important;
  box-shadow: 0 0 12px rgba(245,197,66,.15), inset 0 0 9px rgba(245,197,66,.08) !important;
  opacity: .92 !important;
}
html body.page-home .hero-rotation-dot {
  position: relative !important;
  width: 12px !important;
  height: 12px !important;
  border: 1px solid rgba(255,231,145,.88) !important;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.88) 0 8%, transparent 9%),
    radial-gradient(circle at 42% 42%, #f5c542 0 20%, #8a5a00 45%, #1c0f00 72%, #050200 100%) !important;
  box-shadow: 0 0 6px rgba(245,197,66,.45), inset -2px -2px 3px rgba(0,0,0,.58) !important;
  transform: none !important;
}
html body.page-home .hero-rotation-dot::after {
  content: "" !important;
  position: absolute !important;
  left: -3px !important;
  top: 4px !important;
  width: 16px !important;
  height: 4px !important;
  border: 1px solid rgba(255,219,94,.72) !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  transform: rotate(-12deg) !important;
  opacity: .66 !important;
  pointer-events: none !important;
}
html body.page-home .hero-rotation-dot.is-active {
  transform: scale(1.22) !important;
  border-color: #fff4bd !important;
  background:
    radial-gradient(circle at 34% 30%, #fff 0 9%, transparent 10%),
    radial-gradient(circle at 42% 42%, #ffe98b 0 21%, #f5c542 42%, #6e4200 72%, #140900 100%) !important;
  box-shadow: 0 0 8px #f5c542, 0 0 16px rgba(245,197,66,.9), inset -2px -2px 3px rgba(0,0,0,.45) !important;
}

/* Give all ticker icons one consistent framed, gold-glow presentation. */
html body.page-home .asg-status-message [data-asg-status-icon] {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 2px 0 0 !important;
  padding: 2px !important;
  border: 1px solid rgba(245,197,66,.72) !important;
  border-radius: 8px !important;
  background: radial-gradient(circle at 50% 45%, rgba(245,197,66,.18), rgba(2,2,4,.84)) !important;
  box-shadow: 0 0 8px rgba(245,197,66,.42), inset 0 0 6px rgba(245,197,66,.12) !important;
  color: #ffe58b !important;
  font-size: 19px !important;
  line-height: 1 !important;
  text-shadow: 0 0 7px rgba(245,197,66,.75) !important;
  overflow: hidden !important;
}

@media (max-width: 700px) {
  html body.page-home .hero-rotation-dots {
    gap: 7px !important;
    padding: 5px 8px !important;
    bottom: 9px !important;
  }
  html body.page-home .hero-rotation-dot {
    width: 10px !important;
    height: 10px !important;
  }
  html body.page-home .hero-rotation-dot::after {
    left: -3px !important;
    top: 3px !important;
    width: 14px !important;
  }
  html body.page-home .asg-status-message [data-asg-status-icon] {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    font-size: 17px !important;
    border-radius: 7px !important;
  }
}


/* ================================================================
   ALLSTAR GALAXY V248 — LOCKED PHONE HOMEPAGE FINAL DETAILS
   Smaller hero planets, slightly wider title, lighter ticker icon,
   and improved feature-card icon breathing room.
   ================================================================ */
@media (max-width: 700px) {
  /* Widen the approved title very slightly without changing its height. */
  html body.page-home .site-top .hero-title img {
    transform: translateY(-1px) scaleX(1.015) scaleY(1.13) !important;
    transform-origin: center center !important;
  }

  /* Make the custom hero planets quieter and subordinate to the artwork. */
  html body.page-home .hero-rotation-dots {
    gap: 6px !important;
    padding: 4px 7px !important;
    opacity: .76 !important;
    box-shadow: 0 0 7px rgba(245,197,66,.10), inset 0 0 6px rgba(245,197,66,.06) !important;
  }
  html body.page-home .hero-rotation-dot {
    width: 7px !important;
    height: 7px !important;
    border-width: 1px !important;
    box-shadow: 0 0 3px rgba(245,197,66,.30), inset -1px -1px 2px rgba(0,0,0,.52) !important;
    opacity: .78 !important;
  }
  html body.page-home .hero-rotation-dot::after {
    left: -2px !important;
    top: 2px !important;
    width: 10px !important;
    height: 3px !important;
    opacity: .46 !important;
  }
  html body.page-home .hero-rotation-dot.is-active {
    transform: scale(1.18) !important;
    opacity: 1 !important;
    box-shadow: 0 0 5px #f5c542, 0 0 10px rgba(245,197,66,.62), inset -1px -1px 2px rgba(0,0,0,.42) !important;
  }

  /* Reduce ticker icon visual weight by roughly ten percent. */
  html body.page-home .asg-status-message [data-asg-status-icon] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 1px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 6px rgba(245,197,66,.32), inset 0 0 4px rgba(245,197,66,.09) !important;
  }

  /* Pull the upper-right feature icon inward for cleaner breathing room. */
  html body.page-home .homepage-feature-card.feature-shuffle .feature-icon {
    top: 18px !important;
    right: 18px !important;
  }
}

/* ================================================================
   ALLSTAR GALAXY V249 — FINAL PHONE HOMEPAGE MICRO-POLISH
   Slightly relax the title height, lift the hero planets, and add
   more inset spacing around the Galaxy Shuffle thumbnail.
   ================================================================ */
@media (max-width: 700px) {
  /* Reduce the V248 title height by roughly 2–3% while preserving width. */
  html body.page-home .site-top .hero-title img {
    transform: translateY(-1px) scaleX(1.015) scaleY(1.102) !important;
    transform-origin: center center !important;
  }

  /* Move the custom galaxy indicators upward within the hero. */
  html body.page-home .hero-rotation-dots {
    bottom: 16px !important;
  }

  /* Give the Shuffle card thumbnail more breathing room from the edge. */
  html body.page-home .homepage-feature-card.feature-shuffle .feature-icon {
    top: 18px !important;
    right: 23px !important;
  }
}

/* ================================================================
   ALLSTAR GALAXY V250 — FINAL DESKTOP HOMEPAGE NAVIGATION
   Widen and enlarge the desktop navigation so it visually spans the
   header between the two Allstar Galaxy logos. Phone styling is locked.
   ================================================================ */
@media (min-width: 901px) {
  html body.page-home .site-top nav,
  html body.page-home .site-top nav.site-nav-v3 {
    width: calc(100% - clamp(100px, 10vw, 150px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 7px 0 10px !important;
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: clamp(7px, .8vw, 12px) !important;
    align-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  html body.page-home .site-top nav > a,
  html body.page-home .site-top nav.site-nav-v3 > a,
  html body.page-home .site-top nav.site-nav-v3 > .site-search-button-desktop {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 10px 8px !important;
    border-radius: 8px !important;
    font-size: clamp(.76rem, .82vw, .9rem) !important;
    letter-spacing: .045em !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body.page-home .site-top nav.site-nav-v3 > .site-search-button-desktop {
    gap: 5px !important;
  }
}


/* ================================================================
   ALLSTAR GALAXY V251 — HOMEPAGE LOCK
   Final desktop-only polish: extend the navigation slightly farther
   toward both header logos and lift the carousel indicators.
   Phone styling and all homepage content remain unchanged.
   ================================================================ */
@media (min-width: 901px) {
  html body.page-home .site-top nav,
  html body.page-home .site-top nav.site-nav-v3 {
    width: calc(100% - clamp(60px, 6vw, 110px)) !important;
  }

  html body.page-home .hero-rotation-dots {
    bottom: 24px !important;
  }

  html body.page-home .hero-rotation-dots button,
  html body.page-home .hero-rotation-dots .dot {
    transform: scale(1.1) !important;
    box-shadow: 0 0 5px rgba(245,197,66,.34) !important;
  }

  html body.page-home .hero-rotation-dots button.active,
  html body.page-home .hero-rotation-dots .dot.active {
    box-shadow: 0 0 7px rgba(245,197,66,.48) !important;
  }
}

/* ================================================================
   ALLSTAR GALAXY V252 — FINAL FEATURE-CARD ALIGNMENT
   Gives every homepage feature card the same internal row structure,
   keeping the live-status badges and action links perfectly aligned.
   ================================================================ */
html body.page-home .homepage-feature-grid .homepage-feature-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  align-content: stretch !important;
}

html body.page-home .homepage-feature-grid .homepage-feature-card > strong {
  grid-row: 1 !important;
}

html body.page-home .homepage-feature-grid .homepage-feature-card > p {
  grid-row: 2 !important;
  align-self: start !important;
}

html body.page-home .homepage-feature-grid .homepage-feature-card > .homepage-live-stat {
  grid-row: 3 !important;
  align-self: end !important;
  justify-self: start !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

html body.page-home .homepage-feature-grid .homepage-feature-card > em {
  grid-row: 4 !important;
  align-self: end !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* Keep the badge/action baselines uniform across the three-column PC grid. */
@media (min-width: 701px) {
  html body.page-home .homepage-feature-grid .homepage-feature-card {
    min-height: 270px !important;
  }

  html body.page-home .homepage-feature-grid .homepage-feature-card > strong {
    min-height: 72px !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  html body.page-home .homepage-feature-grid .homepage-feature-card > p {
    min-height: 66px !important;
  }
}

/* On phones retain natural card height while preserving badge alignment. */
@media (max-width: 700px) {
  html body.page-home .homepage-feature-grid .homepage-feature-card > .homepage-live-stat {
    margin-top: 18px !important;
  }
}
