/* Bhuchi Arcade V155 — mobile visibility and Traffic Unblock corrections. */

/* The compact header has room for the brand and Settings only. An older
   Favorites chip could collapse into an empty circle and cover ARCADE. */
@media (max-width: 700px) {
  .ambient-stage {
    display: none !important;
  }

  #hub .hub-header-inner {
    min-height: 64px !important;
    gap: 10px !important;
  }

  #hub .reference-brand {
    flex: 1 1 auto !important;
    max-width: calc(100% - 58px) !important;
    overflow: visible !important;
  }

  #hub .reference-brand-text,
  #hub .wordmark {
    min-width: 0 !important;
    overflow: visible !important;
  }

  #hub .wordmark {
    font-size: clamp(17px, 5.2vw, 21px) !important;
    white-space: nowrap !important;
  }

  #hub .reference-header-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  #hub .reference-header-actions .reference-favorites {
    display: none !important;
  }

  #hub .reference-header-actions #btn-settings {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
  }

  /* Restore the intended editorial hero after legacy #hub rules win the
     cascade. The Play control stays a compact pill instead of stretching
     into the artwork and covering the title. */
  #hub .hero {
    min-height: 390px !important;
    padding: 0 !important;
  }

  #hub .hero-copy {
    left: 18px !important;
    right: 18px !important;
    top: auto !important;
    bottom: 88px !important;
    width: auto !important;
  }

  #hub .hero-line {
    max-width: 10ch !important;
    font-size: clamp(2rem, 10vw, 2.45rem) !important;
    line-height: .96 !important;
  }

  #hub #hero-action.feature-play {
    position: absolute !important;
    z-index: 4 !important;
    left: 16px !important;
    right: auto !important;
    bottom: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 122px !important;
    max-width: calc(100% - 32px) !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--v153-lime, #b9ff39) !important;
    color: #071005 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .36) !important;
    backdrop-filter: none !important;
  }

  #hub #hero-action :is(.feature-play-label, .feature-icon, .feature-copy, .feature-arrow) {
    display: none !important;
  }

  #hub #hero-action .feature-cta {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #071005 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* Keep search, category and active-state labels readable in sunlight and
     on dim mobile displays. */
  #hub #search {
    color: #f7fbff !important;
  }

  #hub #search::placeholder {
    color: #b8c3d4 !important;
    opacity: 1 !important;
  }

  #hub .cat-pill {
    color: #e8eef7 !important;
  }

  #hub .cat-pill[aria-selected="true"] {
    color: #071005 !important;
    background: var(--v153-lime, #b9ff39) !important;
    border-color: var(--v153-lime, #b9ff39) !important;
  }

  #hub .category-scroll-hint {
    color: #f7fbff !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 370px) {
  #hub .reference-brand-mark {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    font-size: 29px !important;
  }

  #hub .wordmark {
    font-size: 16px !important;
  }

  #hub .hero {
    min-height: 360px !important;
  }
}
