/* Homepage structure and navigation contract, v5.4.3.
   Loaded last so the page has one authoritative venue and offer system. */

:root {
  --home-ink: #14233a;
  --home-muted: #66758b;
  --home-line: #dce4ee;
  --home-surface: #fff;
  --home-soft: #f5f8fc;
  --home-blue: #1769e0;
  --home-blue-soft: #edf5ff;
  --home-green: #1da879;
}

/* The header uses a standalone mark beside a typeset wordmark. Earlier rules
   cropped the full square logo inside a shorter, narrower frame. */
.shelf-home .site-header .brand {
  display: inline-flex;
  width: auto !important;
  min-width: 0;
  height: 64px;
  align-items: center;
  gap: 9px;
  overflow: visible;
}

.shelf-home .site-header .brand-art {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: visible;
}

.shelf-home .site-header .brand-art .brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  align-self: auto;
  object-fit: contain;
  transform: none;
  filter: none;
}

.shelf-home .site-header .brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}

.shelf-home .site-header .brand-copy b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.shelf-home .site-header .brand-copy small {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (max-width: 768px) {
  .shelf-home .site-header .brand {
    height: 52px;
    gap: 7px;
  }

  .shelf-home .site-header .brand-art {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .shelf-home .site-header .brand-art .brand-logo {
    width: 42px;
    height: 42px;
  }

  .shelf-home .site-header .brand-copy b {
    font-size: 16px;
  }

  .shelf-home .site-header .brand-copy small {
    font-size: 7px;
  }
}

#offers,
#game-center {
  scroll-margin-top: 88px;
}

/* One authoritative content order for every breakpoint. Older layout sheets
   assign orders to only some sections, which otherwise lets new sections jump
   ahead of the hero on desktop. */
.shelf-home main > .hero { order: 1; }
.shelf-home main > .notice-strip { order: 2; }
.shelf-home main > .mobile-account-strip { order: 3; }
.shelf-home main > .quick-actions { order: 4; }
.shelf-home main > .offers-section { order: 5; }
.shelf-home main > .game-section { order: 6; }
.shelf-home main > #live { order: 7; }
.shelf-home main > .download-section { order: 8; }
.shelf-home main > .service-section { order: 9; }

.offers-section {
  padding-top: 52px;
}

.offers-heading {
  display: flex;
  max-width: none;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  text-align: left;
}

.offers-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -.035em;
}

.offers-heading p {
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 13px;
}

.offers-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-muted);
  font-size: 12px;
}

.offers-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-green);
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.offer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: var(--home-surface);
}

.offer-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 5.2 / 1;
  object-fit: contain;
  background: #eef5fb;
}

.offer-card-copy {
  position: relative;
  padding: 14px 16px 16px;
}

.offer-card-copy h3 {
  margin: 7px 0 4px;
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 680;
}

.offer-card-copy p {
  margin: 0;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.55;
}

.offer-card-state {
  display: inline-flex;
  align-items: center;
  color: var(--home-green);
  font-size: 10px;
  font-weight: 680;
}

.offer-list-loading,
.offer-list-empty {
  grid-column: 1 / -1;
  min-height: 96px;
  padding: 24px;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
}

.offer-list-empty b,
.offer-list-empty span {
  display: block;
}

.offer-list-empty b {
  margin-bottom: 5px;
  color: var(--home-ink);
}

.venue-heading {
  align-items: end;
}

.venue-heading-copy h2 em {
  color: var(--home-blue);
  font-style: normal;
}

.shelf-home .venue-browser {
  padding-top: 16px;
}

.shelf-home .game-type-filters button,
.shelf-home .game-tabs button,
.shelf-home .game-tabs button.active {
  box-shadow: none !important;
}

.shelf-home .game-type-filters button.active {
  border-color: #142d54 !important;
  background: #142d54 !important;
}

.shelf-home .game-tabs button,
.shelf-home .game-tabs button.active {
  width: 232px;
  min-width: 232px;
  height: 128px;
  transition: border-color .16s ease, background-color .16s ease;
}

.shelf-home .game-tabs button.active {
  border-color: var(--home-blue) !important;
  background: var(--home-surface) !important;
  box-shadow: inset 0 0 0 1px var(--home-blue) !important;
}

.shelf-home .game-tabs button.unavailable {
  opacity: .66;
}

.shelf-home .venue-enter {
  white-space: nowrap;
}

.shelf-home .game-tabs button.unavailable .venue-enter {
  border-color: var(--home-line);
  color: var(--home-muted);
}

.footer-links [data-venue-type],
.footer-links [data-action="offers"] {
  cursor: pointer;
}

@media (max-width: 1024px) {
  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #offers,
  #game-center {
    scroll-margin-top: 66px;
  }

  .shelf-home main > .offers-section {
    order: 5;
  }

  .shelf-home main > .game-section {
    order: 6;
  }

  .shelf-home main > #live {
    order: 7;
  }

  .shelf-home main > .download-section {
    order: 8;
  }

  .shelf-home main > .service-section {
    order: 9;
  }

  .offers-section {
    width: calc(100% - 22px) !important;
    margin-inline: auto !important;
    padding-top: 22px !important;
  }

  .offers-heading {
    margin-bottom: 11px;
    align-items: center;
  }

  .offers-heading h2 {
    font-size: 20px;
  }

  .offers-heading p,
  .offers-status {
    display: none;
  }

  .offer-list {
    display: flex;
    width: 100%;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .offer-list::-webkit-scrollbar {
    display: none;
  }

  .offer-card {
    width: min(82vw, 344px);
    min-width: min(82vw, 344px);
    flex: 0 0 min(82vw, 344px);
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .offer-card > img {
    aspect-ratio: 5.2 / 1;
  }

  .offer-card-copy {
    padding: 11px 12px 13px;
  }

  .offer-card-copy h3 {
    margin-top: 5px;
    font-size: 13px;
  }

  .offer-card-copy p {
    display: none;
  }

  .shelf-home .game-section {
    padding-top: 30px !important;
  }

  .shelf-home .venue-heading {
    margin-bottom: 12px;
  }

  .shelf-home .venue-heading-copy h2 {
    font-size: 21px;
  }

  .shelf-home .game-type-filters button {
    width: 70px !important;
    min-width: 70px !important;
    flex-basis: 70px !important;
    border-radius: 8px !important;
  }

  .shelf-home .game-tabs > button,
  .shelf-home .game-tabs > button.active {
    width: 100% !important;
    min-width: 0 !important;
    height: 124px !important;
    min-height: 124px !important;
    border-radius: 9px !important;
  }

  .shelf-home .game-tabs > button.active {
    box-shadow: inset 0 0 0 1px var(--home-blue) !important;
  }

  .shelf-home .mobile-bottom-nav > [aria-current="page"] {
    color: var(--home-blue) !important;
  }

  .shelf-home .mobile-bottom-nav > [aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--home-blue);
  }

  .shelf-home .mobile-bottom-nav > [aria-current="page"] img {
    opacity: 1;
  }
}

@media (max-width: 390px) {
  .offer-card {
    width: 84vw;
    min-width: 84vw;
    flex-basis: 84vw;
  }

  .shelf-home .game-type-filters button {
    width: 66px !important;
    min-width: 66px !important;
    flex-basis: 66px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-list {
    scroll-behavior: auto;
  }
}

/* H5 keeps promotions behind the Offers entry instead of inserting them in the home feed. */
@media (max-width: 768px) {
  .shelf-home #mainContent > .offers-section {
    display: none !important;
  }

  .shelf-home.mobile-offers-view #mainContent > :not(.offers-section) {
    display: none !important;
  }

  .shelf-home.mobile-offers-view #mainContent > .offers-section {
    display: block !important;
    min-height: calc(100dvh - 128px);
    padding-top: 24px !important;
  }

  .shelf-home.mobile-offers-view .offer-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
  }

  .shelf-home.mobile-offers-view .offer-card {
    width: 100%;
    min-width: 0;
  }
}
