/* Buygames.gg Arena V60 | focused mobile refinement.
   Checkout, account, product, footer, catalog, cart and secure delivery only.
   Home page-specific styles remain untouched. */
@media (max-width:767px) {
  /* Footer: one continuous navigation region, not four oversized cards. */
  .buygames-footer {border-top:1px solid #304539!important;background:#0d1515!important;}
  .buygames-footer .buygames-container {width:calc(100% - 30px)!important;max-width:520px!important;margin-inline:auto!important;}
  .buygames-footer .buygames-footer__upper {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px 22px!important;padding:25px 0 22px!important;
  }
  .buygames-footer .buygames-footer__about {
    grid-column:1/-1;display:grid!important;align-content:start;gap:9px!important;
    padding:0 0 18px!important;margin:0!important;background:transparent!important;
    border:0!important;border-bottom:1px solid #2d443a!important;border-radius:0!important;
  }
  .buygames-footer .buygames-footer__brand {font-size:25px!important;line-height:1.05!important;gap:9px!important;text-decoration:none!important;}
  .buygames-footer .buygames-footer__brand .buygames-logo-icon {width:33px!important;height:33px!important;}
  .buygames-footer .buygames-footer__about p {max-width:43ch!important;margin:0!important;font-size:11px!important;line-height:1.55!important;color:#acbdb0!important;}
  .buygames-footer .buygames-footer__gateway-list {display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:2px!important;}
  .buygames-footer .buygames-footer__gateway-list span {min-height:25px!important;display:inline-flex;align-items:center;padding:3px 8px!important;font-size:9px!important;border-radius:7px!important;}
  .buygames-footer .buygames-footer__col {
    display:grid!important;align-content:start!important;justify-items:start!important;gap:9px!important;
    padding:0!important;border:0!important;border-radius:0!important;
    background:transparent!important;min-width:0!important;
  }
  .buygames-footer .buygames-footer__col h3 {margin:0 0 2px!important;color:#d3e9d6!important;font-size:10px!important;letter-spacing:.12em!important;}
  .buygames-footer .buygames-footer__col a {display:inline-block!important;min-height:30px!important;height:auto!important;padding:4px 0!important;margin:0!important;color:#aabbad!important;font-size:11px!important;line-height:1.5!important;overflow-wrap:anywhere;text-decoration:none!important;}
  .buygames-footer .buygames-footer__col:last-child {
    grid-column:1/-1;display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    gap:8px 16px!important;padding:14px 0 0!important;border-top:1px solid #2d443a!important;
  }
  .buygames-footer .buygames-footer__col:last-child h3 {flex:0 0 100%;margin:0!important;}
  .buygames-footer .buygames-footer__bottom {
    display:flex!important;flex-direction:column!important;gap:5px!important;
    padding:14px 0 max(20px,env(safe-area-inset-bottom))!important;
    line-height:1.55!important;font-size:10px!important;color:#7e9989!important;align-items:flex-start!important;text-align:left!important;
  }
  .buygames-footer .buygames-footer__bottom span {max-width:100%!important;}

  /* Product: a compact editorial storefront, clearly grouped purchase actions. */
  .package-wrapper > .container.arena-product-page {gap:14px!important;}
  .package-wrapper .arena-product-stage {gap:11px!important;}
  .package-wrapper .arena-product-media-card {
    padding:11px!important;gap:9px!important;
    background:linear-gradient(145deg,#192b23,#101b17)!important;
    border-color:#375643!important;border-radius:17px!important;
  }
  .package-wrapper .arena-product-media-head .arena-mini-kicker {font-size:9px!important;letter-spacing:.08em!important;}
  .package-wrapper .arena-product-media-card .package-media-frame {
    height:212px!important;min-height:212px!important;max-height:212px!important;
    border-radius:12px!important;border-color:#47624d!important;
    background:#17231d!important;padding:7px!important;
  }
  .package-wrapper .arena-product-media-card #package-image {object-fit:contain!important;max-width:100%!important;}
  .package-wrapper .arena-product-media-card .arena-media-specs--compact {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
  .package-wrapper .arena-product-media-card .arena-media-specs>div {min-height:44px!important;padding:8px 10px!important;background:#12211b!important;border-color:#2c483a!important;}
  .package-wrapper .arena-product-buy-card {
    gap:10px!important;padding:17px 15px 15px!important;
    border:1px solid #385345!important;border-radius:17px!important;
    background:linear-gradient(175deg,#16261f,#0f1c17 72%)!important;
  }
  .package-wrapper .arena-product-title-block {padding-bottom:1px!important;}
  .package-wrapper #package-name {font-size:clamp(32px,9.7vw,42px)!important;line-height:.96!important;letter-spacing:-.01em!important;}
  .package-wrapper .arena-product-subtitle {font-size:11px!important;line-height:1.5!important;max-width:42ch!important;}
  .package-wrapper .arena-product-facts {gap:8px!important;}
  .package-wrapper .arena-product-facts .arena-fact {min-height:58px!important;padding:9px 10px!important;border-radius:12px!important;}
  .package-wrapper .arena-fact__copy strong {font-size:21px!important;}
  .package-wrapper .arena-product-buy-card .arena-price-area {
    align-self:stretch!important;min-height:91px!important;padding:13px 15px!important;
    border-radius:13px!important;background:linear-gradient(110deg,#1c3924,#13291e)!important;
    border:1px solid #4f7444!important;
  }
  .package-wrapper .arena-product-buy-card #package-price {font-size:clamp(44px,13.4vw,59px)!important;color:#caff54!important;line-height:.92!important;}
  .package-wrapper .arena-price-caption {color:#aacf9e!important;font-size:10px!important;}
  .package-wrapper .arena-variation-wrap {margin:0!important;}
  .package-wrapper #variation-list {
    max-height:none!important;overflow-y:visible!important;
    display:grid!important;gap:7px!important;margin:0!important;
  }
  .package-wrapper #variation-list > button {
    height:auto!important;min-height:58px!important;padding:10px 11px!important;
    border-radius:12px!important;gap:9px!important;
    border-color:#345244!important;background:#13231d!important;color:#f3f8ee!important;
  }
  .package-wrapper #variation-list > button[data-selected="true"] {background:#2d4729!important;border-color:#caff54!important;box-shadow:inset 3px 0 #caff54!important;}
  .package-wrapper #variation-list > button .flex {min-width:0!important;}
  .package-wrapper #variation-list > button .flex-1 {min-width:0!important;}
  .package-wrapper #variation-list > button .line-clamp-1 {
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
    overflow:hidden!important;white-space:normal!important;line-height:1.25!important;font-size:11px!important;
  }
  .package-wrapper #variation-list > button .font-medium:last-child {font-size:12px!important;}
  .package-wrapper #variation-list > button .text-xs {font-size:10px!important;}
  .package-wrapper .arena-clarity-row {gap:8px!important;}
  .package-wrapper .arena-access-clarity__summary,.package-wrapper .arena-coverage-quick {min-height:46px!important;font-size:11px!important;}
  .package-wrapper .arena-access-clarity__text {font-size:12px!important;line-height:1.65!important;}
  .package-wrapper .arena-cta-actions {gap:8px!important;}
  .package-wrapper #purchase-button,
  .package-wrapper #add-to-cart-button {min-height:52px!important;height:auto!important;padding:11px 9px!important;border-radius:12px!important;font-size:12px!important;white-space:normal!important;line-height:1.25!important;}
  .package-wrapper #purchase-button:focus-visible,
  .package-wrapper #add-to-cart-button:focus-visible {outline:2px solid #caff54!important;outline-offset:3px!important;}
  .package-wrapper .package-trust-inline {flex-wrap:wrap!important;font-size:10px!important;line-height:1.35!important;padding:4px 0!important;}
  .package-wrapper .package-payment-strip {min-height:28px!important;}
  .package-wrapper .arena-reputation-strip {min-height:54px!important;padding:10px!important;}
  .package-wrapper .arena-product-details {gap:12px!important;}
  .package-wrapper .package-description-header {padding:16px!important;}
  .package-wrapper .package-description-header h4 {font-size:clamp(29px,8.8vw,38px)!important;line-height:1!important;}
  .package-wrapper .arena-help-grid {gap:8px!important;}
  .package-wrapper .arena-mini-card {padding:12px!important;}

  /* Catalog: readable prices and tap targets, with every long title contained. */
  .arena-library .edition-card,.buygames-category-page .edition-card {min-height:167px!important;grid-template-columns:100px minmax(0,1fr)!important;}
  .arena-library .edition-card__content,.buygames-category-page .edition-card__content {min-width:0!important;padding:10px 11px!important;}
  .arena-library .edition-card__name,.buygames-category-page .edition-card__name {font-size:17px!important;line-height:1.18!important;}
  .arena-library .edition-card__price,.buygames-category-page .edition-card__price {font-size:23px!important;white-space:normal!important;overflow-wrap:anywhere;}
  .arena-library .edition-card__footer,.buygames-category-page .edition-card__footer {gap:8px!important;align-items:end!important;flex-wrap:wrap!important;}
  .arena-library .edition-card__action,.buygames-category-page .edition-card__action {min-height:40px!important;}

  /* Cart overlay: fully reachable actions on devices with short viewports. */
  #cart-drawer .arena-cart-shell {width:100%!important;max-width:520px!important;height:100dvh!important;max-height:100dvh!important;}
  #cart-drawer .arena-cart-top {padding:14px 15px 12px!important;flex:none!important;}
  #cart-drawer .arena-cart-title-row {margin-top:9px!important;align-items:center!important;}
  #cart-drawer .arena-cart-title-row h4 {font-size:35px!important;}
  #cart-drawer .arena-cart-title-row p {margin-top:5px!important;font-size:10px!important;}
  #cart-drawer .arena-cart-close {min-height:40px!important;width:40px!important;height:40px!important;border-radius:11px!important;}
  #cart-drawer .arena-cart-timeline {margin-top:12px!important;gap:5px!important;}
  #cart-drawer .arena-cart-scroll {min-height:80px!important;flex:1 1 auto!important;padding:12px 13px!important;overscroll-behavior:contain;}
  #cart-drawer .arena-cart-item {padding:12px!important;border-radius:13px!important;}
  #cart-drawer .arena-cart-item__img {width:57px!important;height:70px!important;flex-basis:57px!important;border-radius:8px!important;}
  #cart-drawer .arena-cart-item__top {gap:10px!important;}
  #cart-drawer .arena-cart-item__actions button,#cart-drawer .arena-cart-item__actions input {min-height:38px!important;height:38px!important;min-width:38px!important;width:38px!important;border-radius:9px!important;}
  #cart-drawer .arena-cart-footer {
    flex:0 1 auto!important;max-height:min(48dvh,375px)!important;min-height:0!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    padding:12px 14px max(14px,env(safe-area-inset-bottom))!important;
  }
  #cart-drawer .arena-cart-invoice {margin-top:9px!important;padding:10px 13px!important;border-radius:11px!important;}
  #cart-drawer .arena-cart-invoice>div {font-size:11px!important;}
  #cart-drawer #cart-checkout-btn {min-height:50px!important;height:auto!important;padding:10px!important;border-radius:11px!important;line-height:1.3!important;}
  #cart-drawer .arena-cart-terms {margin-top:9px!important;padding-top:9px!important;}

  /* Checkout: show the receipt and selected games immediately below the heading on mobile. */
  #checkout.arena-checkout {margin:10px 10px 28px!important;padding:14px 12px 22px!important;border-radius:18px!important;max-width:none!important;}
  #checkout .arena-checkout-head {padding:4px 2px 14px!important;margin-bottom:14px!important;gap:10px!important;}
  #checkout .arena-checkout-head__title h1 {font-size:clamp(35px,10.5vw,45px)!important;line-height:.97!important;margin-top:7px!important;}
  #checkout .arena-checkout-head__title p {font-size:11px!important;margin-top:7px!important;line-height:1.55!important;}
  #checkout .arena-checkout-progress {gap:5px!important;}
  #checkout .arena-checkout-progress>span {padding:6px 8px!important;font-size:9px!important;}
  #checkout .arena-checkout-grid {display:flex!important;flex-direction:column!important;gap:13px!important;}
  #checkout .checkout-left {order:2!important;display:flex!important;gap:12px!important;width:100%!important;min-width:0!important;}
  #checkout .checkout-summary.arena-receipt {order:1!important;width:100%!important;min-width:0!important;position:static!important;}
  #checkout .checkout-card {border-radius:14px!important;}
  #checkout .checkout-card__title {min-height:54px!important;padding:13px!important;gap:9px!important;}
  #checkout .checkout-card__title h4 {font-size:17px!important;}
  #checkout .checkout-contact-body {padding:13px!important;gap:11px!important;}
  #checkout .checkout-payment .payment-options {padding:13px 13px 4px!important;gap:8px!important;}
  #checkout [data-payment-method] {min-height:66px!important;border-radius:11px!important;}
  #checkout .checkout-payment .terms-row {margin:10px 13px!important;padding:11px!important;}
  #checkout #pay-button {margin:0 13px!important;width:calc(100% - 26px)!important;min-height:50px!important;height:auto!important;line-height:1.3!important;}
  #checkout .arena-checkout-stripe {margin:4px 13px!important;}
  #checkout .arena-stripe-confidence {gap:9px!important;padding:13px!important;}
  #checkout .arena-stripe-confidence__points {gap:6px!important;}
  #checkout .arena-stripe-confidence__point {padding:10px!important;}
  #checkout .arena-trustpilot-card {padding:14px!important;gap:11px!important;}
  #checkout .arena-receipt__head {padding:15px 15px 11px!important;}
  #checkout .arena-receipt__body {padding:3px 15px 15px!important;}
  #checkout .arena-receipt__bottom {padding:14px 15px 17px!important;}
  #checkout #packages-list .checkout-cart-item {padding:12px 0!important;}
  #checkout #packages-list .checkout-item-image {width:54px!important;height:72px!important;}
  #checkout .arena-receipt-extras {margin:10px 0!important;}
  #checkout .arena-receipt__bottom #pricing .total-value {font-size:33px!important;}

  /* Account: important actions remain visible and orders don't turn into huge panels. */
  .arena-orders-page {padding-top:13px!important;}
  .arena-orders-hero {gap:12px!important;padding:15px!important;}
  .arena-orders-hero__copy h1 {font-size:clamp(36px,11vw,45px)!important;}
  .arena-orders-hero__stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .arena-orders-stat {padding:10px!important;border-radius:12px!important;}
  .arena-orders-stat small {font-size:9px!important;}
  .arena-orders-stat strong {font-size:29px!important;margin-top:5px!important;overflow-wrap:anywhere;}
  .arena-orders-stat p {display:none!important;}
  .arena-account-shell__nav {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .arena-account-shell__link {min-height:51px!important;padding:10px!important;gap:6px!important;}
  .arena-account-shell__link small {display:none!important;}
  .arena-order-card__meta {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
  .arena-order-pill {min-width:0!important;width:auto!important;min-height:34px!important;font-size:10px!important;padding:6px 9px!important;justify-content:flex-start!important;overflow-wrap:anywhere;}
  .arena-order-card__price strong {font-size:28px!important;}
  .arena-game-library__grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .arena-game-library__cover {height:126px!important;}
  .arena-game-library__info h3 {font-size:12px!important;line-height:1.3!important;}

  /* Order details: shorter title block and accessible vault scrolling. */
  #order-details {width:min(100% - 20px,650px)!important;padding:10px 0 30px!important;margin-inline:auto!important;}
  #order-details .bg-order-snapshot {padding:12px!important;gap:10px!important;border-radius:15px!important;}
  #order-details .bg-order-snapshot__marker {width:34px!important;height:34px!important;}
  #order-details .bg-order-snapshot h1 {font-size:clamp(23px,7.5vw,29px)!important;}
  #order-details .bg-order-snapshot__payment > strong {font-size:clamp(24px,8vw,30px)!important;white-space:normal!important;overflow-wrap:anywhere;}
  #order-details .bg-order-snapshot__copy p {font-size:10px!important;}
  #order-details .arena-v16-progress {gap:5px!important;padding:10px!important;}
  #order-details .arena-v16-progress__step strong {font-size:10px!important;}
  #order-details .arena-v16-progress__step small {font-size:9px!important;}
  #order-details .arena-v16-section-heading {padding:16px!important;}
  #order-details .arena-v16-section-heading h2 {font-size:clamp(27px,8.5vw,36px)!important;}
  #order-details .arena-v16-access-list {padding:12px!important;}
  #order-details .arena-v16-access-item {border-radius:14px!important;padding:12px!important;}
  #order-details .arena-v16-access-cover {min-width:0!important;}
  #order-details .arena-v16-reveal {min-height:45px!important;width:100%!important;justify-content:center!important;}
  #order-details .arena-v16-support-section {margin-top:12px!important;}
  #order-details [id^="dialog-redeem-"] > div > .p-6 {overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;}
  #order-details [id^="dialog-redeem-"] .vault-v18__layout {grid-template-columns:minmax(0,1fr)!important;min-width:0!important;}
  #order-details [id^="dialog-redeem-"] .vault-v18__main,#order-details [id^="dialog-redeem-"] .vault-v18__side {min-width:0!important;}
  #order-details [id^="dialog-redeem-"] .vault-v18__value-box {overflow-wrap:anywhere!important;min-width:0!important;}

  /* Login / PIX payment: normal form-sized buttons, responsive long codes. */
  #arena-login-locale {padding:33px 15px 46px!important;align-items:flex-start!important;}
  #arena-login-locale > div {width:100%!important;max-width:460px!important;}
  #arena-login-locale h1 {font-size:30px!important;}
  #arena-login-locale .rounded-xl {border-radius:18px!important;padding:17px!important;background:#13211b!important;border:1px solid #365142!important;}
  #arena-login-locale input {min-height:48px!important;font-size:16px!important;}
  #arena-login-locale button[type="submit"] {min-height:48px!important;border-radius:11px!important;}
  #arena-payment-locale {padding:15px 12px 38px!important;}
  #arena-payment-locale .max-w-lg {max-width:480px!important;}
  #arena-payment-locale .bg-muted {padding:17px!important;border-radius:18px!important;}
  #arena-payment-locale h2 {font-size:24px!important;}
  #arena-payment-locale h3 {font-size:21px!important;}
  #arena-payment-locale img[alt="QR Code PIX"] {max-width:100%!important;height:auto!important;}
  #arena-payment-locale input[readonly] {min-width:0!important;font-size:12px!important;}
  #arena-payment-locale [data-action="copy"] {min-width:48px!important;min-height:44px!important;}
  #arena-payment-locale #go-to-order a {min-height:46px!important;}
}
@media (max-width:359px){
  .buygames-footer .buygames-footer__upper {gap:16px 12px!important;}
  .package-wrapper .arena-product-media-card .package-media-frame {height:190px!important;min-height:190px!important;max-height:190px!important;}
  .package-wrapper .arena-product-facts .arena-fact {padding:8px!important;gap:6px!important;}
  .package-wrapper .arena-cta-actions {grid-template-columns:1fr!important;}
  .arena-orders-hero__stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .arena-library .edition-card,.buygames-category-page .edition-card {grid-template-columns:90px minmax(0,1fr)!important;}
}


/* Arena V65: checkout receipt is encountered before payment on all narrow
   screens, including small tablets (the 768–1000px interval). Desktop preserved. */
@media (min-width:768px) and (max-width:1000px) {
  #checkout.arena-checkout .arena-checkout-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:18px!important;
  }
  #checkout.arena-checkout .checkout-summary.arena-receipt {
    grid-column:1!important;
    grid-row:1!important;
    order:0!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
  }
  #checkout.arena-checkout .checkout-left {
    grid-column:1!important;
    grid-row:2!important;
    order:0!important;
    min-width:0!important;
    width:100%!important;
  }
}
@media (max-width:767px) {
  #checkout.arena-checkout .arena-checkout-grid > .checkout-summary.arena-receipt {order:0!important;}
  #checkout.arena-checkout .arena-checkout-grid > .checkout-left {order:1!important;}
  #checkout.arena-checkout .arena-receipt {max-width:100%!important;}
  #checkout.arena-checkout .arena-receipt__items,
  #checkout.arena-checkout .arena-receipt__body {min-width:0!important;}
}
