/* Shared chrome for pages that only load rail-layout.css (e.g. list pages).
   Game/home pages also load home-game-hero.css — keep this aligned, no max-width squeeze. */
.note-label {
  display: none !important;
}

.rail-box,
.rail-box.rail-box--end {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  margin-bottom: 12px;
  text-align: center;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

.panel-leader {
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 14px;
  margin-bottom: 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.panel-leader .note-label {
  text-align: center;
  margin-bottom: 2px;
}

.GAMES-layout__main > .page-leader,
.GAMES-section .page-leader {
  margin-top: 0;
  margin-bottom: 16px;
}

.GAMES-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 28px;
  align-items: start;
}

.GAMES-layout__main {
  min-width: 0;
}

.GAMES-layout__rail {
  width: 336px;
  max-width: 336px;
  position: sticky;
  top: 88px;
}

.GAMES-layout__rail .rail-box {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 336px;
  padding: 0;
  background: transparent;
  border: 0;
}

.GAMES-layout__rail .note-label {
  text-align: center;
  margin-bottom: 2px;
}

.GAMES-layout--no-rail {
  grid-template-columns: 1fr;
}

.sidebar-local-games-grid > .unit-sq {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 8px auto;
}

.unit-sq {
  width: 336px;
  height: 280px;
  min-width: 336px;
  min-height: 280px;
  max-width: 336px;
  max-height: 280px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 0;
  text-align: center;
}

.unit-sq ins.adsbygoogle {
  display: inline-block !important;
  width: 336px !important;
  height: 280px !important;
  min-width: 336px !important;
  min-height: 280px !important;
  max-width: 336px !important;
  max-height: 280px !important;
  margin: 0 auto;
}

.panel-leader.panel-leader-size {
  min-height: 90px;
  align-items: center;
  overflow: visible;
}

#unit-primary {
  display: inline-block;
  width: 728px;
  height: 90px;
  margin: 0 auto;
  border: 0;
}

.GAMES-layout__main > .panel-leader.panel-leader-size {
  margin-top: 0;
  margin-bottom: 16px;
}

.expanded-mode .col-sidebar,
.expanded-mode .unit-sq {
  display: none !important;
}

@media (max-width: 1180px) {
  .GAMES-layout {
    grid-template-columns: 1fr;
  }
  .GAMES-layout__rail {
    width: 100%;
    max-width: 336px;
    position: static;
    margin: 16px auto 0;
  }
}

@media (max-width: 767px) {
  .page-grid,
  .site-main.site-game-shell .page-grid,
  .GAMES-main,
  .guide-page {
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }
  .col-left,
  .col-sidebar,
  .GAMES-layout,
  .GAMES-layout__main,
  .GAMES-layout__rail,
  .guide-layout,
  .guide-layout__main,
  .guide-layout__rail {
    min-width: 0;
    max-width: 100%;
  }
  .panel-leader.panel-leader-size {
    width: 336px;
    max-width: 100%;
    min-height: 280px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow: visible;
  }
  #unit-primary,
  .panel-leader.panel-leader-size #unit-primary {
    display: inline-block !important;
    width: 336px !important;
    height: 280px !important;
    min-width: 336px !important;
    min-height: 280px !important;
    max-width: none !important;
    max-height: none !important;
  }
  .unit-sq,
  .unit-sq ins.adsbygoogle {
    max-width: none;
  }
}

@media (max-width: 359px) {
  .page-grid,
  .site-main.site-game-shell .page-grid,
  .GAMES-main,
  .guide-page {
    padding-left: 0;
    padding-right: 0;
  }
}
