/* ============================================================
   OUTSKIRT — small site-wide mobile fixes (all pages).
   ============================================================ */

@media (max-width: 767px) {
  /* scroll-to-top bubble: smaller, out of the content's way */
  #wpfront-scroll-top-container {
    right: 10px !important;
    bottom: 12px !important;
    opacity: .72;
  }
  #wpfront-scroll-top-container img {
    width: 42px !important;
    height: 42px !important;
  }

  /* ---------- /players/{tag}/ profile ---------- */
  body.osp-profile .hero-title {
    font-size: clamp(28px, 8.6vw, 38px);
    line-height: 1.15;
  }
  /* view pills → one-line scrollable bar */
  body.osp-profile .osp-tabs {
    justify-content: flex-start !important;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 12px 8px;
  }
  body.osp-profile .osp-tabs::-webkit-scrollbar { display: none; }
  body.osp-profile .osp-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px !important;
    padding: 10px 16px !important;
    margin: 0 !important;
  }
  /* stat chip lists → two-column grid */
  body.osp-profile .osp-stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: stretch;
  }
  body.osp-profile .osp-stat-list .osp-stat-row {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    font-size: 12.5px;
    padding: 8px 10px !important;
  }
  body.osp-profile .osp-stat-list .osp-stat-row img {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 767px) {
  /* Weekly Ranked Group: ribbon/status images at icon size, not raw size */
  body.osp-profile .osp-lr-row img,
  body.osp-profile .lr-status img {
    width: 26px !important;
    max-width: 26px !important;
    height: auto !important;
  }
  /* odd chip counts: first chip (League) spans both grid columns */
  body.osp-profile .osp-stat-list > .osp-stat-row:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  /* War-stats panels (ClashSpot/ClashKing/ClashPerk): these load after
     the RUCSS crawl, so their sizing rules get stripped — enforce icon
     sizes here (this file is safelisted). */
  body.osp-profile .osp-ws-panel img {
    max-width: 44px !important;
    height: auto !important;
  }
  body.osp-profile .osp-ws-cs-summary-row img,
  body.osp-profile .osp-ws-panel .osp-stat-row img {
    width: 22px !important;
  }
  body.osp-profile .osp-ws-cs-row-label img,
  body.osp-profile .osp-ws-panel [class*="row-label"] img {
    width: 44px !important;
  }
  body.osp-profile .osp-ws-cs-th-data img,
  body.osp-profile .osp-ws-panel thead img {
    width: 26px !important;
  }
  body.osp-profile .osp-ws-panel table { width: 100%; }
  body.osp-profile .osp-ws-panel td,
  body.osp-profile .osp-ws-panel th {
    padding: 6px 4px !important;
    vertical-align: middle;
  }
}

/* ── compact sticky nav on phones (2026-07-19) ─────────────────────
   The theme's fixto bar pinned a ~113px header to the top of every
   phone screen ("scrolling feels off"). When fixed, shrink it to a
   slim ~56px bar: smaller logo, tighter padding, soft shadow. */
@media (max-width: 767px) {
  .navigation-bar.fixto-fixed {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    box-shadow: 0 1px 6px rgba(20, 30, 55, .12);
  }
  .navigation-bar.fixto-fixed img {
    max-height: 40px !important;
    width: auto !important;
  }
}
