/* Keep ordinary mobile-page scrolling on the document, including desktop wheels. */
@media (max-width: 1100px) {
  html {
    overflow-x: clip;
    overflow-y: auto;
  }
  /* hidden on the x axis implicitly makes y auto, creating a second scroll
     container on body. Its old overscroll:none swallowed wheel chaining. */
  body {
    overflow-x: clip;
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }
  /* Existing modal/menu scroll locks keep precedence over ordinary page flow. */
  body.mobile-nav-open,
  body.refopen,
  body.popup-open,
  body.overflow-hidden {
    overflow: hidden !important;
  }
  .mobile-drawer__brand.mobile-brand {
    gap: 8px;
    text-decoration: none;
  }
  .mobile-drawer__brand.mobile-brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  /* Cancel the drawer's old small, block-level subtitle styles. The same
     mobile-brand markup and typography are used in the page header. */
  .mobile-drawer__brand.mobile-brand span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  .mobile-drawer__brand.mobile-brand > span { color: #fff; }
  .mobile-drawer__brand.mobile-brand > span > span { color: var(--mobile-accent); }
}
@media (max-width: 340px) {
  .mobile-drawer__brand.mobile-brand > span { font-size: 14px; }
}

/* Recommendation list preserves desktop cards and uses a compact mobile grid. */
.game__recommendations-list { display: contents; }
@media (max-width: 1100px) {
  .mobile-drawer__brand.mobile-brand {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 3px;
    align-items: center;
  }
  .mobile-drawer__brand.mobile-brand img { grid-column: 1; grid-row: 1 / 3; }
  .mobile-drawer__brand.mobile-brand .mobile-drawer__wordmark { grid-column: 2; grid-row: 1; }
  .mobile-drawer__brand.mobile-brand .mobile-drawer__tagline {
    grid-column: 2;
    grid-row: 2;
    display: block;
    color: #b2b2bc;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
  }
  .game-info-section--discount,
  .game-info-section--international { display: none !important; }
  body .game__recommendations {
    display: block !important;
    padding: 14px !important;
    min-width: 0 !important;
  }
  body .game__recommendations .game__descr-title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1.35;
  }
  body .game__recommendations-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body .game__recommendations .cases__item {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }
  body .game__recommendations .cases__link {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-width: 0;
    padding: 10px !important;
  }
  body .game__recommendations .cases__name_2 {
    order: 1;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #f2f3f6;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    letter-spacing: 0;
  }
  body .game__recommendations .cases__name_2::after { display: none !important; }
  body .game__recommendations .cases__image-wrapper {
    order: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: clamp(76px, 24vw, 120px) !important;
    min-height: 0 !important;
    max-height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  body .game__recommendations .cases__image {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
    margin: 0 !important;
  }
  body .game__recommendations .cases__price-wrapper {
    order: 2;
    display: flex !important;
    justify-content: flex-start !important;
    position: static !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  body .game__recommendations .cases__price-inner { padding: 0 !important; background: none !important; }
  body .game__recommendations .cases__price { font-size: 16px !important; line-height: 1.4 !important; }
}

/* Account heading matches the 16px catalog card titles on mobile. */
@media (max-width: 1100px) {
  body .cases__name_game {
    font-size: 16px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  body .game__screens .game__screens-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 12px !important;
    padding: 12px 12px 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
  body .game__screens .game__screens-title > i {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  body .game__screens .game__screens-title > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 1100px) {
  body .cases__name_game { text-transform: none !important; }
  body .game__specs-content > .game__specs-val.guarantee,
  body .game__specs-content > .game__specs-val.unbound {
    justify-self: end;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 2px 6px !important;
    text-align: center !important;
  }
}
