/* Arena V22 — MOBILE ONLY. Desktop V21 remains visually unchanged.
   Loaded after page styles to resolve conflicting legacy responsive rules. */
@media (max-width:900px) {
  .buygames-container, .arena-library, .arena-orders-page, .arena-v16-order {min-width:0;}
  :is(.arena-products,.buygames-product-grid,.arena-category-masthead__main,.arena-category-masthead__aside,.arena-product-media-rail,.arena-product-buy-card,.checkout-left,.arena-receipt,.arena-v16-layout,.arena-orders-main)>* {min-width:0;}
  img,video,iframe {max-width:100%;}
  :is(.centralcart-content,.arena-product-buy-card,.arena-v16-order,.arena-orders-page) {overflow-wrap:anywhere;}
  .buygames-navbar__results {max-height:min(65dvh,480px);overflow-y:auto;overscroll-behavior:contain;}
  .arena-checkout .checkout-field input,.arena-checkout .checkout-field select {font-size:16px;}
  .buygames-navbar__mobile-menu {max-height:min(66dvh,540px);overflow-y:auto;overscroll-behavior:contain;}
  #support-menu,#profile-menu {max-width:calc(100vw - 18px);max-height:calc(100dvh - 84px);overflow-y:auto;}
  .arena-category-masthead__preview strong,.arena-category-masthead__titlewrap h1 {overflow-wrap:anywhere;}
  .arena-orders-grid {gap:14px;}
  .arena-v16-order .arena-v16-hero__receipt {min-width:0;}
}
@media (max-width:767px) {
  /* Navigation: keep every shopping action usable, including 320px devices. */
  #site-navbar .buygames-navbar__main {gap:7px;min-height:60px;}
  #site-navbar .buygames-navbar__brand {flex-shrink:1;min-width:0;gap:6px;}
  #site-navbar .buygames-navbar__wordmark {font-size:19px;white-space:nowrap;}
  #site-navbar .buygames-navbar__logo {width:29px;height:29px;flex:none;}
  #site-navbar .buygames-navbar__actions {gap:3px;flex-shrink:0;}
  #site-navbar .buygames-navbar__icon,#site-navbar .buygames-navbar__cart,#site-navbar #support-button,#site-navbar #profile-button {display:inline-flex;align-items:center;justify-content:center;width:39px;min-width:39px;height:42px;min-height:42px;padding:0;}
  #site-navbar #profile-button .size-7 {width:26px;height:26px;}
  #site-navbar .buygames-navbar__mobile-search {padding:7px 0 10px;}
  #site-navbar #search-bar-mobile {min-height:46px;font-size:16px;}
  #site-navbar .buygames-navbar__results {left:0;right:0;width:100%;max-width:100%;}
  #buygames-mobile-menu .buygames-container {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:12px;padding-bottom:12px;}
  #buygames-mobile-menu a {display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:10px;background:#16271e;border:1px solid #314839;color:#edf7ec;font-size:12px;font-weight:800;}

  /* Home: show relevant products sooner and make product cards easier to scan. */
  .arena-home .arena-hero {min-height:500px!important;}
  .arena-home .arena-hero__copy {padding:24px 20px 25px!important;}
  .arena-home .arena-hero h1 {font-size:clamp(45px,11.7vw,66px)!important;margin-top:16px!important;margin-bottom:12px!important;line-height:.91;}
  .arena-home .arena-hero__actions {margin-top:14px!important;gap:10px!important;}
  .arena-home .arena-hero__meta {margin-top:14px!important;gap:9px;}
  .arena-home .arena-hero__poster {height:195px!important;bottom:-32px!important;}
  .arena-home .arena-hero__poster-heading {font-size:clamp(66px,18vw,95px)!important;}
  .arena-home .arena-feature {min-height:150px!important;padding:13px!important;}
  .arena-home .arena-feature__body strong {font-size:clamp(22px,6.7vw,33px)!important;}
  .arena-home .arena-strip {overflow:hidden;}
  .arena-home .arena-strip__inner {display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;min-height:58px;padding:9px 0;}
  .arena-home .arena-strip__inner span:not(.arena-strip__separator) {font-size:10px!important;white-space:nowrap;}
  .arena-home .buygames-section {margin-top:38px!important;}
  .arena-home .buygames-section__header {display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;}
  .arena-home .arena-section__header h2 {font-size:clamp(32px,8.2vw,45px)!important;}
  .arena-home .arena-view-all {min-height:42px;padding:0 11px;font-size:10px!important;}
  .arena-home :is(.buygames-product-grid,.arena-products) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px;}
  .arena-home .buygames-product__details {padding:11px!important;}
  .arena-home .buygames-product__title {font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere;}
  .arena-home .buygames-product__bottom {gap:6px;}
  .arena-home .buygames-product__price {font-size:21px!important;}
  .arena-home .buygames-product__action {min-height:40px;padding:0 10px;font-size:11px;}
  .arena-home .arena-collection.buygames-collection:nth-child(n) {min-height:165px!important;}
  .arena-home .arena-editorial-wrap,.arena-home .arena-how-wrap {margin-top:45px!important;}
  .arena-home .arena-editorial__copy {padding:24px 20px!important;}
  .arena-home .arena-editorial__copy h2 {font-size:clamp(38px,10vw,48px)!important;}

  /* Product: avoid a 410px image and deep blank spacing on narrow devices. */
  .package-wrapper {padding-top:10px!important;}
  .package-wrapper .arena-product-page {gap:14px;}
  .package-wrapper .arena-product-stage {gap:14px;}
  .package-wrapper .arena-product-media-card {padding:14px!important;gap:12px!important;}
  .package-wrapper .arena-product-media-card .package-media-frame {height:clamp(330px,94vw,390px)!important;min-height:clamp(330px,94vw,390px)!important;max-height:390px!important;padding:10px!important;}
  .package-wrapper .arena-product-buy-card {padding:18px!important;}
  .package-wrapper #package-name {font-size:clamp(35px,10vw,46px)!important;line-height:1!important;}
  .package-wrapper .arena-product-subtitle {font-size:12px;line-height:1.6;}
  .package-wrapper .arena-price-and-benefits {gap:10px;margin-top:12px;}
  .package-wrapper .arena-price-area,.package-wrapper .arena-value-points {padding:14px;}
  .package-wrapper .arena-variation-wrap {margin-top:12px;}
  .package-wrapper .package-cta-card {padding:12px!important;gap:12px;margin-top:12px;}
  .package-wrapper .arena-cta-actions {grid-template-columns:1fr!important;gap:10px;}
  .package-wrapper #purchase-button,.package-wrapper #add-to-cart-button {min-height:48px!important;}
  .package-wrapper .arena-media-specs--compact {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  .package-wrapper .arena-media-specs--compact>div {padding:10px!important;}
  .package-wrapper .arena-media-specs strong {font-size:11px;line-height:1.45;}
  .package-wrapper .arena-product-notices {gap:9px!important;}
  .package-wrapper .arena-product-notices #package-feedbacks-mount>.p-4 {padding:13px!important;}
  .package-wrapper .package-description-header {padding:19px!important;}
  .package-wrapper #package-description {padding:11px!important;gap:10px!important;}
  .package-wrapper #package-description>.package-description-section {padding:14px!important;}
  .package-wrapper .arena-related-section {padding:12px!important;}
  .package-wrapper .arena-related-section__head {align-items:flex-start;gap:7px;}
  .package-wrapper .arena-related-section__controls button {width:44px;height:44px;}
  .package-wrapper .arena-related-card__add {min-height:42px;}
  .package-wrapper .arena-reputation-strip {min-height:54px;}
  .package-wrapper .arena-steam-help {padding:16px;}

  /* Category: remove tall stacked statistics and make each list row scannable. */
  .arena-library {padding:13px 12px 42px!important;}
  .arena-library .arena-category-masthead {padding:15px!important;gap:12px!important;}
  .arena-category-masthead__titlewrap {margin-top:10px!important;gap:9px!important;}
  .arena-category-masthead__titlewrap h1 {font-size:clamp(36px,10vw,53px)!important;line-height:.96;}
  .arena-category-masthead__subtitle {font-size:12px;line-height:1.6;}
  .arena-category-masthead__micro {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:11px!important;}
  .arena-category-masthead__micro>div {padding:10px!important;}
  .arena-category-masthead__micro>div:last-child {grid-column:1/-1;}
  .arena-category-masthead__micro strong {font-size:18px!important;line-height:1.15;overflow-wrap:anywhere;}
  .arena-category-masthead__aside {padding:12px!important;gap:10px;}
  .arena-category-masthead__aside-head {flex-direction:row!important;align-items:center!important;}
  .arena-category-masthead__aside-count {justify-items:end!important;text-align:right!important;}
  .arena-category-masthead__preview {grid-template-columns:68px minmax(0,1fr)!important;padding:9px!important;gap:10px!important;}
  .arena-category-masthead__preview img {width:68px!important;height:78px!important;}
  .arena-category-masthead__preview strong {font-size:18px!important;max-height:40px;}
  .arena-category-masthead__preview em {font-size:20px!important;margin-top:6px!important;}
  .arena-category-masthead__tags {gap:7px;}
  .arena-category-masthead__tags a {min-height:38px;padding:8px 10px;}
  .arena-library__intro {gap:10px!important;margin-top:10px!important;}
  .arena-library__spotlight {margin-top:12px;}
  .arena-library__spotlight-art {min-height:180px!important;max-height:260px!important;}
  .arena-library__spotlight-info {padding:16px!important;}
  .arena-library__shelf {margin-top:23px!important;}
  .arena-library__shelf-head {gap:12px!important;padding:15px!important;}
  .arena-library__shelf-panel {padding:12px!important;}
  .arena-library__shelf-copy h2 {font-size:35px!important;}
  .arena-library__row {gap:9px!important;padding:12px!important;border-radius:15px!important;}
  .arena-library__row-index {flex:0 0 28px!important;width:28px!important;height:32px!important;font-size:16px!important;}
  .arena-library__row .buygames-product {gap:10px!important;}
  .arena-library__row .buygames-product__link {flex:0 0 74px!important;width:74px!important;height:94px!important;}
  .arena-library__row .buygames-product__media {width:74px!important;height:94px!important;}
  .arena-library__row .buygames-product__title {font-size:14px!important;line-height:1.35!important;}
  .arena-library__row .buygames-product__bottom {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
  .arena-library__row .buygames-product__price-wrap {padding:9px 10px!important;min-width:0!important;}
  .arena-library__row .buygames-product__price {font-size:24px!important;}
  .arena-library__row .buygames-product__action {min-height:42px!important;min-width:72px!important;font-size:12px!important;}

  /* Checkout: compact receipt first, without concealing totals or payment actions. */
  #checkout.arena-checkout {margin:8px 8px 26px!important;padding:12px!important;max-width:calc(100% - 16px)!important;}
  .arena-checkout .arena-checkout-head {padding:14px!important;gap:10px;}
  .arena-checkout .arena-checkout-head__title h1 {font-size:clamp(32px,9vw,43px)!important;}
  .arena-checkout .arena-checkout-head__title p {font-size:12px;line-height:1.5;}
  .arena-checkout .arena-checkout-progress {gap:5px;}
  .arena-checkout .checkout-summary.arena-receipt {grid-column:1!important;grid-row:1!important;position:static!important;min-width:0;}
  .arena-checkout .checkout-left {grid-column:1!important;grid-row:2!important;min-width:0;}
  .arena-checkout .arena-receipt__head {padding:14px 14px 10px!important;}
  .arena-checkout .arena-receipt__head h2 {margin-top:8px!important;font-size:28px!important;}
  .arena-checkout .arena-receipt__body {padding:0 14px 12px!important;}
  .arena-checkout .arena-receipt__bottom {padding:13px 14px!important;}
  .arena-checkout #packages-list .checkout-cart-item {gap:7px 10px!important;padding:11px 0!important;}
  .arena-checkout #packages-list .checkout-item-image {width:52px!important;height:64px!important;}
  .arena-checkout #packages-list .checkout-item-name {font-size:12px!important;}
  .arena-checkout #packages-list .checkout-item-price {font-size:20px!important;margin-top:3px!important;}
  .arena-checkout #packages-list [data-controls] {margin-top:6px!important;}
  .arena-checkout #packages-list [data-controls] button {min-width:36px;min-height:36px;}
  .arena-checkout .arena-receipt-extras {margin:9px 0!important;}
  .arena-checkout .arena-receipt-extras summary {min-height:43px;padding:10px!important;}
  .arena-checkout .arena-receipt__coupon {padding-top:9px!important;}
  .arena-checkout #pricing li:last-child {margin-top:10px!important;padding-top:10px!important;}
  .arena-checkout #pricing .total-value {font-size:30px!important;}
  .arena-checkout .checkout-card__title {min-height:54px!important;padding:14px!important;}
  .arena-checkout .checkout-contact-body {padding:14px!important;gap:11px;}
  .arena-checkout input:not([type="checkbox"]),.arena-checkout select {min-height:46px;font-size:16px;}
  .arena-checkout .checkout-payment .payment-options {padding:13px 14px 6px!important;}
  .arena-checkout [data-payment-method] {min-height:66px!important;}
  .arena-checkout .checkout-payment .terms-row {margin:9px 14px!important;min-height:48px;}
  .arena-checkout #pay-button {width:calc(100% - 28px)!important;margin:0 14px!important;min-height:54px!important;}
  .arena-checkout .arena-stripe-confidence {gap:10px!important;padding:14px!important;}
  .arena-checkout .arena-stripe-confidence__points {gap:7px!important;}
  .arena-checkout .arena-stripe-confidence__point {padding:9px!important;}
  .arena-checkout .arena-stripe-confidence__foot {flex-wrap:wrap;}
  .arena-checkout .arena-trustpilot-card {padding:14px!important;}

  /* Full catalog / search: collection chips should not consume several screen rows. */
  #arena-full-catalog {padding-bottom:45px;}
  #arena-full-catalog .arena-catalog-heading {margin:14px 0 14px;padding:18px!important;}
  #arena-full-catalog .arena-catalog-heading h1 {font-size:clamp(36px,9vw,47px)!important;}
  #arena-full-catalog .arena-catalog-categories {display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 2px 11px;margin-bottom:10px;}
  #arena-full-catalog .arena-catalog-categories::-webkit-scrollbar {display:none;}
  #arena-full-catalog .arena-catalog-categories a {flex:0 0 auto;min-height:44px;scroll-snap-align:start;}
  #arena-full-catalog .buygames-product-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  /* Footer: keep support and account paths readable on compact screens. */
  .buygames-footer .buygames-footer__upper {column-gap:17px;row-gap:18px;}
  .buygames-footer .buygames-footer__col a {display:block;min-height:36px;padding:6px 0;overflow-wrap:anywhere;}
  .buygames-footer .buygames-footer__bottom {gap:12px;line-height:1.5;}

  /* Cart: free more height for items without hiding the final CTA. */
  #cart-drawer .arena-cart-top {padding:12px 15px!important;}
  #cart-drawer .arena-cart-title-row {margin-top:9px;}
  #cart-drawer .arena-cart-title-row h4 {font-size:34px!important;}
  #cart-drawer .arena-cart-timeline {margin-top:12px;}
  #cart-drawer .arena-cart-timeline b {width:21px;height:21px;min-width:21px;}
  #cart-drawer .arena-cart-scroll {padding:12px!important;gap:9px;}
  #cart-drawer .arena-cart-item {padding:11px!important;}
  #cart-drawer .arena-cart-footer {padding:11px 14px max(12px,env(safe-area-inset-bottom))!important;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;}
  #cart-drawer .arena-cart-coupon label {margin-bottom:5px;}
  #cart-drawer .arena-cart-invoice {margin-top:9px;padding:10px 13px;}
  #cart-drawer .arena-cart-invoice > div {margin-top:4px;}
  #cart-drawer .arena-cart-invoice__total {margin-top:7px;}
  #cart-drawer #cart-checkout-btn {height:48px;min-height:48px;margin-top:9px;}
  #cart-drawer .arena-cart-note {margin-top:5px;}
  #cart-drawer .arena-cart-terms {margin-top:7px;padding-top:8px;}

  /* My orders: compress profile sidebar and show status / actions earlier. */
  .arena-orders-page {padding:13px 12px 40px!important;}
  .arena-account-shell {padding:12px!important;gap:10px;border-radius:16px;}
  .arena-account-shell__hero {grid-template-columns:48px minmax(0,1fr);gap:10px!important;padding:10px!important;align-items:center;}
  .arena-account-shell__avatar {width:48px;height:48px;border-radius:13px;}
  .arena-account-shell__copy h3 {margin:2px 0 2px;font-size:20px!important;}
  .arena-account-shell__copy p {font-size:11px;line-height:1.4;}
  .arena-account-shell__nav {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .arena-account-shell__link {grid-template-columns:26px minmax(0,1fr);padding:9px;gap:8px;min-height:49px;}
  .arena-account-shell__icon {width:28px;height:28px;border-radius:8px;}
  .arena-account-shell__link>svg {display:none;}
  .arena-account-shell__link strong {font-size:12px;}
  .arena-account-shell__link small {display:none;}
  .arena-account-shell__footer {display:none;}
  .arena-orders-main {gap:12px;}
  .arena-orders-hero {padding:14px!important;gap:12px;}
  .arena-orders-hero__copy h1 {font-size:42px!important;margin:10px 0 5px;}
  .arena-orders-hero__copy p {font-size:12px;line-height:1.6;}
  .arena-orders-hero__stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;}
  .arena-orders-stat {padding:10px!important;border-radius:12px;}
  .arena-orders-stat strong {font-size:27px!important;}
  .arena-orders-stat p {display:none;}
  .arena-order-card {gap:12px;padding:14px;}
  .arena-order-card__top {flex-direction:row!important;gap:12px;align-items:start;}
  .arena-order-card__status strong {font-size:15px;}
  .arena-order-card__status small {font-size:10px;overflow-wrap:anywhere;}
  .arena-order-card__price {text-align:right!important;}
  .arena-order-card__price strong {font-size:23px;}
  .arena-order-card__price span {font-size:10px;}
  .arena-order-card__meta {gap:6px;}
  .arena-order-pill {padding:6px 9px;min-height:32px;font-size:10px;}
  .arena-order-card__action .btn-primary,.arena-order-card__action .btn-outline {min-height:44px;}

  /* Order details: stack cards and keep access actions easy to tap. */
  .arena-v16-order {padding:12px!important;}
  .arena-v16-hero__primary,.arena-v16-hero__receipt {padding:14px!important;}
  .arena-v16-hero__primary h1 {font-size:clamp(36px,10vw,46px)!important;}
  .arena-v16-progress {padding:12px!important;}
  .arena-v16-section-heading {padding:15px!important;}
  .arena-v16-access-list {padding:10px!important;}
  .arena-v16-order .delivery-product-card.arena-v16-access-item {padding:10px!important;gap:9px!important;}
  .arena-v16-order .delivery-product-card button {min-height:44px;}
  /* Vault: preserve the V21 approved design and working independent scroll. */
  #order-details [id^="dialog-redeem-"] {padding-left:7px!important;padding-right:7px!important;}
  #order-details [id^="dialog-redeem-"] > div {width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;}
}
@media (max-width:359px) {
  #site-navbar .buygames-navbar__wordmark {font-size:16px!important;}
  #site-navbar .buygames-navbar__logo {width:25px!important;height:25px!important;}
  #site-navbar .buygames-navbar__icon,#site-navbar .buygames-navbar__cart,#site-navbar #support-button,#site-navbar #profile-button {width:34px!important;min-width:34px!important;height:40px;min-height:40px;}
  #site-navbar .buygames-navbar__main {gap:4px;}
  .arena-home :is(.buygames-product-grid,.arena-products),#arena-full-catalog .buygames-product-grid {grid-template-columns:1fr!important;}
  .arena-home .arena-hero h1 {font-size:45px!important;}
  .arena-home .arena-feature__body strong {font-size:21px!important;}
  .arena-category-masthead__micro {grid-template-columns:1fr 1fr!important;}
  .arena-library__row-index {display:none!important;}
  .arena-library__row .buygames-product__link {flex-basis:65px!important;width:65px!important;height:84px!important;}
  .arena-library__row .buygames-product__media {width:65px!important;height:84px!important;}
  .arena-library__row .buygames-product__bottom {flex-wrap:wrap;}
  .arena-orders-hero__stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .arena-order-card__top {flex-direction:column!important;}
  .arena-order-card__price {text-align:left!important;}
}
@media (max-width:767px) and (max-height:650px) {
  #cart-drawer .arena-cart-footer {max-height:51dvh;}
  #cart-drawer .arena-cart-top {padding:10px 12px!important;}
  #cart-drawer .arena-cart-timeline {margin-top:8px;}
  .arena-home .arena-hero {min-height:455px!important;}
}

/* ARENA V24 — PRODUCT PAGE MOBILE ORDER FIX ONLY.
   The CentralCart review component was rendered inside the image rail,
   before the purchasing panel. Flatten that rail at mobile sizes, and put
   the price/purchase panel before reviews. Keep the actual reviews visible
   and do not change the approved desktop layout. */
@media (max-width:767px) {
  .package-wrapper .arena-product-stage {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    align-items:start!important;
    gap:14px!important;
  }
  .package-wrapper .arena-product-stage > .arena-product-media-rail {
    display:contents!important;
  }
  .package-wrapper .arena-product-stage > .arena-product-media-rail > .arena-product-media-card {
    order:1!important;
    min-width:0!important;
  }
  .package-wrapper .arena-product-stage > .arena-product-buy-card {
    order:2!important;
    min-width:0!important;
  }
  .package-wrapper .arena-product-stage > .arena-product-media-rail > .arena-product-notices {
    order:3!important;
    min-width:0!important;
    margin:0!important;
  }
  .package-wrapper .arena-product-buy-card .arena-price-area {
    min-width:0!important;
    display:block!important;
  }
  .package-wrapper .arena-product-buy-card .arena-price-area .package-price-block {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:7px!important;
  }
  .package-wrapper .arena-product-buy-card #package-price {
    display:block!important;
    position:relative!important;
    width:auto!important;
    height:auto!important;
    min-height:38px!important;
    visibility:visible!important;
    opacity:1!important;
    font-size:clamp(37px,10vw,52px)!important;
    line-height:1.04!important;
    color:#caff54!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  .package-wrapper .arena-product-stage > .arena-product-media-rail > .arena-product-notices #package-feedbacks-mount {
    max-width:100%!important;
    width:100%!important;
    overflow:hidden!important;
  }
}
