/* Release 487 (owner's phone design review: "less text, more visual ... I don't want to change the template"). Phones only:
   Games small cards show the sport, both teams with jerseys and one team's chance as two bars; Home shows short chips,
   visual game cards and the founders right after them. Desktop is unchanged: every phone-only part is hidden above 640px. */
.gxm, .gxm-sp, .gxm-short, .hm-chips, .hm-team, .hn-sp, .hn-p, .hn-ts { display: none; }
html, body { -webkit-tap-highlight-color: rgba(86, 99, 240, .12); }
.lvk-btn, .gxk-save, .bt-page button, .bt-page a, .hm-team a { touch-action: manipulation; }
.hm-team a:focus-visible, .hm-card:focus-visible { outline: 2px solid #4647E5; outline-offset: 2px; }

@media (max-width: 640px) {
  .gxm-long { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gxm-short { display: inline; }

  /* Games: small card */
  html body .gxk .lvk-btn { padding: 11px 11px 9px !important; border-radius: 14px; }
  html body .gxk .lvk-top { margin-bottom: 0 !important; }
  html body .gxk .lvk-val { display: flex; align-items: center; gap: 4px; font-size: 15px !important; font-weight: 800; line-height: 1.2; }
  html body .gxk .gxm-sp { display: inline; font-size: 13px; font-weight: 400; }
  html body .gxk .lvk-pill { margin-left: auto; font-size: 11px !important; }
  html body .gxk .lvk-head { width: 100%; }
  html body .gxk .lvk-label, html body .gxk .lvk-list { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body .gxk .lvk-jerseys { display: none !important; }
  html body .gxk .gxm { display: block; margin-top: 6px; }
  .gxm-teams { display: grid; gap: 3px; }
  .gxm-t { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px; color: #303131; }
  .gxm-t .lvk-j, .gxm-t .lv-kit { display: inline-flex; flex: none; }
  .gxm-t svg { width: 22px; height: 22px; display: block; }
  .gxm-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .gxm-fav { display: block; font-size: 11px; color: #646867; font-weight: 600; margin: 8px 0 3px; }
  .gxm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; align-items: center; gap: 5px; font-size: 11px; margin: 3px 0; }
  .gxm-lab { color: #646867; }
  .gxm-row b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: #303131; }
  .gxm-bar { height: 8px; background: #EEF0F4; border-radius: 99px; overflow: hidden; }
  .gxm-bar i { display: block; height: 100%; border-radius: 99px; }
  .gxm-nil { grid-column: 2 / 4; justify-self: start; }
  .gxm-nil .lvk-none { font-size: 11px; font-weight: 700; color: #4647E5; background: #EEF0FF; border-radius: 6px; padding: 2px 6px; }
  html body .gxk .lvk-ou { font-size: 10px !important; color: #8A8F98 !important; margin-top: 6px !important; }
  html body .gxk .lvk-ou b { font-weight: 600; color: inherit; }
  html body .gxk .lvk-foot { margin-top: 8px !important; }
  html body .gxk .lvk-btn .lvk-foot { padding-right: 34px !important; min-width: 0; }
  html body .gxk .lvk-btn .lvk-foot .bt-badge { font-size: 10px !important; border-radius: 7px; white-space: nowrap !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding-left: 6px !important; padding-right: 6px !important; }
  html body .gxk .lvk-btn .lvk-foot .lvk-sig { font-size: 11px; }
  html body .gxk-save { width: 28px; height: 28px; right: 10px; bottom: 10px; }
  html body.bt-page .gx-fresh, html body.bt-page .gx-src { font-size: 12px; }
  html body .gxk-save svg { width: 15px; height: 15px; }

  /* Home: hero chips and visual game cards, founders right after */
  .hm-lead { display: none; }
  .hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; padding: 0; list-style: none; }
  .hm-chips li { font-size: 12.5px; font-weight: 600; background: #F3F4F8; border-radius: 999px; padding: 6px 10px; color: #303131; }
  .hm-team { display: block; background: #F7F7FB; margin: 18px -16px 0; padding: 22px 16px; }
  .hm-team h2 { font-size: 22px; line-height: 1.2; margin: 0 0 4px; text-wrap: balance; }
  .hm-team p { margin: 0 0 14px; color: #646867; font-size: 14px; }
  .hm-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .hm-faces li { text-align: center; min-width: 0; }
  .hm-faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
  .hm-faces b { display: block; font-size: 13px; margin-top: 6px; }
  .hm-faces span { display: block; font-size: 10.5px; line-height: 1.25; color: #646867; }
  .hm-trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
  .hm-trust li { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid #E6E8EF; border-radius: 999px; padding: 6px 10px; }
  .hm-team a { display: inline-block; margin-top: 12px; color: #4647E5; font-weight: 700; font-size: 14px; text-decoration: none; }
  .hm-team a:hover { text-decoration: underline; }
  html body .bh-hero-side { display: none; }
  .hn-sp { display: inline; }
  html body .home-next .hn-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px !important; border-radius: 14px; }
  html body .home-next .hn-k { grid-column: 1; grid-row: 1; min-width: 0; }
  html body .home-next .hn-t { grid-column: 1; grid-row: 2; min-width: 0; white-space: normal; }
  html body .home-next .hn-t .hn-ts { display: inline; }
  html body .home-next .hn-t .hn-tl:not(:only-child) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body .home-next .hn-t { font-size: 15px; font-weight: 800; }
  html body .home-next .hn-l { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body .home-next .hn-p { display: block; grid-column: 2; grid-row: 1 / 3; text-align: right; }
  .hn-p b { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; color: #4647E5; font-variant-numeric: tabular-nums; }
  .hn-p small { font-size: 11px; color: #646867; white-space: nowrap; }
  html body .home-next .hn-m { grid-column: 1 / 3; grid-row: 3; display: block; font-size: 12px; font-weight: 700; color: #15803D; background: #ECFDF3; border-radius: 8px; padding: 5px 8px; margin-top: 6px; }
  html body .home-next .hn-at { grid-column: 1 / 3; grid-row: 4; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .gxm-bar i { transition: none; } }
