/* Platform differences of the gym page (docs/design/WEB_APP.md, "One
   codebase, three apps"). Every rule is scoped to body.web, which only
   platform.js sets and only in a browser: the Mac and Windows apps load
   this file and nothing in it applies to them. */

/* Desktop-only controls in a browser: the payout wallet lives on the
   player's computer (its 24 backup words never leave it), the recovery
   words are shown only in the app, and the gym-on-this-computer strip is
   the app's own miner. */
body.web #w-setup, body.web .web-export .actions, body.web .web-export #w-export-warn,
body.web .web-export #w-export-words, body.web .web-export #w-export-meta { display: none !important; }
body.web #acct-earn { display: none !important; }
/* Store apps (ios/android) until the store review allows them: no Fighter
   Exchange checkout, listing or gifting, and no withdrawals. */
body.web.no-checkout #m-d-buy, body.web.no-checkout #m-form, body.web.no-checkout #m-review,
body.web.no-checkout #m-sell-note { display: none !important; }
body.web.no-withdrawals #w-out { display: none !important; }

body.web .web-note { margin: 14px 0 0; }
body.web .web-note a, body.web .web-note-inline a { font-weight: 600; }
body.web .web-note-inline { margin: 8px 0 12px; }
body.web .web-mine { margin-top: 14px; }
body.web .web-link-btn { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 10px; background: var(--gold); color: var(--bg); font-weight: 700; }
body.web-popup .welcome { max-width: 420px; margin: 0 auto; }
body.web-popup .brand-logo { width: 52px; height: 52px; }

/* Phones: touch-size targets, no sideways scrolling, safe-area insets. */
@media (max-width: 600px) {
  body.web { overflow-x: hidden; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  body.web .topbar { padding: 12px 16px; gap: 10px 14px; }
  body.web .brand-logo { width: 40px; height: 40px; }
  body.web .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  body.web .subnav { margin: 2px -16px -12px; padding: 0 16px; scrollbar-width: none; }
  body.web .nav::-webkit-scrollbar, body.web .subnav::-webkit-scrollbar { display: none; }
  body.web .nav .sec, body.web .subnav .tab, body.web .subnav .soon { flex: 0 0 auto; white-space: nowrap; }
  body.web button, body.web .tab, body.web .sec, body.web input, body.web select { min-height: 44px; }
  body.web input, body.web select { font-size: 16px; }
  body.web .app { padding: 18px 16px 48px; }
  body.web .signed-out { padding: 48px 16px; }
  body.web .gym-attn { flex-direction: column; align-items: stretch; }
  body.web .gym-attn .actions button { width: 100%; }
  body.web .acct-menu { max-width: calc(100vw - 16px); }
  body.web img, body.web svg { max-width: 100%; }
  body.web .review p, body.web .addr-line, body.web .status { overflow-wrap: anywhere; }
}
