/* ================= phones & touch devices ================= */
.pw-toggle { display: grid; place-items: center; }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: #dfe3fa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nav-actions .nav-sign-up { display: none; }
@media (max-width: 820px) {
  .nav-actions .nav-rent-desktop { display: none; }
  .nav-actions .nav-sign-up { display: inline-flex; white-space: nowrap; }
  .ad-consent { z-index: 44; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 8px; }
  .nav-inner .logo { gap: 7px; }
  .nav-inner .logo-mark { width: 29px; height: 29px; }
  .nav-inner .wordmark { font-size: 17px; }
  .nav-actions .nav-sign-up { padding-inline: 9px; font-size: 12px; }
}

/* ---------- performance: on touch screens drop the effects that make phones stutter ----------
   (huge animated blur blobs, backdrop-filter on many elements, endless decorative animations) */
@media (hover: none), (max-width: 820px) {
  html { scroll-behavior: auto; }
  .noise { display: none; }
  .blob { animation: none; filter: none; opacity: 1; display: none; }
  .bg-fx { position: absolute; bottom: auto; height: 880px; background:
      radial-gradient(60% 40% at 15% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
      radial-gradient(50% 35% at 95% 20%, rgba(46, 230, 255, 0.16), transparent 70%),
      radial-gradient(60% 40% at 50% 100%, rgba(255, 79, 160, 0.12), transparent 70%); }
  .btn-glass, .hud, .float-chip, .tag, .calc, .gta-badge, .gta-perks li, .gta-price.deal,
  .game-card-modal .modal-x { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 6, 13, 0.94); }
  .modal-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(3, 4, 10, 0.88); }
  .btn-glass { background: rgba(255, 255, 255, 0.08); }
  .float-chip { background: rgba(15, 17, 32, 0.92); }
  .grad-text, .pad, .float-chip, .gta-poster, .gta-grid, .gta-glow, .hud-bar i, .console-art .glow, .marquee-track,
  .logo-mark .wind path, .live, .sg-badge i { animation: none !important; }
  .gta-glow, .gta-bg img, .plan::after, .device::before, .rental::after, .console-img, .pad { filter: none; }
  .gta-glow { opacity: 0.15; }
  .gta-bg img { opacity: 0.32; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gm-bg.soft { filter: none; opacity: 0.25; transform: none; }
  #gamesGrid .game { animation: none; transition: none; }
  #gamesGrid .cover, #gamesGrid .game-play { transition: none; }
  #gamesGrid .game:hover .cover { filter: none; transform: none; }
  .game:hover { transform: none; }
}

.games-paging { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; width: min(440px, 100%); }
.games-paging button { min-height: 44px; padding: 8px; font-size: 13px; }
.games-paging span { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- compact dialogs on phones ---------- */
@media (max-width: 560px) {
  .modal { padding: 10px; }
  .modal-card { padding: 20px 16px 18px; border-radius: 22px; }
  .modal-card h3 { font-size: 20px; margin-bottom: 14px; }
  .modal-x { top: 10px; right: 10px; width: 34px; height: 34px; }
  .modal-card .btn-lg { padding-top: 13px; padding-bottom: 13px; font-size: 16px; }

  /* sign in / sign up */
  .auth-tabs { margin: 0 40px 16px 0; padding: 4px; }
  .auth-tab { padding: 8px; font-size: 14px; }
  .auth-tab-ind { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); }
  .field { gap: 5px; margin-bottom: 11px; }
  .field > span { font-size: 13px; }
  /* 16px stops iOS from zooming the whole page in when a field is tapped */
  .field input, .field select { padding: 11px 14px; font-size: 16px; border-radius: 12px; }
  .strength { margin-top: 2px; }
  .check { margin: 2px 0 14px; font-size: 13px; }
  .auth-switch { margin-top: 12px; font-size: 13px; }

  /* rent checkout */
  .co-plan { padding: 10px 12px 10px 10px; margin-bottom: 12px; }
  .co-thumb { width: 52px; height: 60px; }
  .co-thumb img { width: 36px; height: 52px; }
  .co-rows { gap: 7px; margin-bottom: 14px; }
  .co-rows .sum-total b, .sum-total b { font-size: 30px; }
  .pay-methods .pm-box { height: 54px; }
}
