/* Player profile refresh: stats strip, best-pull showcase, compact 2-col set grid. */
.prof-stats { display: flex; gap: 8px; margin: 14px 0 4px; }
.prof-stat { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; }
.prof-stat b { display: block; font-size: 1.3rem; }
.prof-stat span { font-size: .75rem; color: var(--muted); }
.prof-best { margin: 8px 0 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.prof-best .pb-top { font-size: .75rem; color: var(--muted); }
.prof-best b { display: block; font-size: 1.05rem; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-best .pb-sub { font-size: .8rem; color: var(--muted); }
.prof-coll-h { display: flex; align-items: center; justify-content: space-between; }
.prof-coll-h .btn { margin: 0; }
.prof-sets.cols2 { grid-template-columns: 1fr 1fr; }
.prof-sets.cols2 .prof-set { padding: 8px 10px; min-width: 0; }
.prof-sets.cols2 .prof-set-top { font-size: .8rem; margin-bottom: 6px; }
.prof-sets.cols2 .prof-set-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-sets.cols2 .prof-set .bar { height: 6px; }
@media (max-width: 420px) {
  .prof-stats { gap: 6px; }
  .prof-stat b { font-size: 1.1rem; }
}

/* ---------- favorites manager ---------- */
.favmgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.favmgr-item { position: relative; cursor: grab; touch-action: none; }
.favmgr-x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: #4a2c2c; color: #ffb3b3; border: 1px solid #7a4444; font-size: 16px; line-height: 1; cursor: pointer; }
.favmgr-item.dragging { opacity: 0.55; cursor: grabbing; }
.favmgr-grid.drag-active { user-select: none; -webkit-user-select: none; }
.favmgr-grid.drag-active .favmgr-item { cursor: grabbing; }
.favmgr-search input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: inherit; font-size: 1rem; }
.favmgr-results { display: grid; gap: 6px; margin-top: 10px; max-height: 40vh; overflow-y: auto; }
.favmgr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.favmgr-row-t { min-width: 0; }
.favmgr-row-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favmgr-row .btn { margin: 0; flex-shrink: 0; }

/* Phones: the profile set grid goes single-column so set names have room */
@media (max-width: 560px) { .prof-sets.cols2 { grid-template-columns: 1fr; } }

/* ---------- profile hub + trophy case (2026-10-13) ---------- */
.prof-nav { display: grid; gap: 8px; margin-top: 14px; }
.prof-nav-btn { width: 100%; margin: 0; padding: 12px 14px; font-size: 1rem; text-align: left; }
.prof-nav-btn .muted { float: right; }
.prof-back { margin: 0 0 10px; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; margin-top: 12px; }
.trophy { text-align: center; min-width: 0; }
.trophy-medal { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; border: 4px solid #8a8f98; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 2.3rem; }
.trophy-medal.prism { border-color: transparent; background: linear-gradient(var(--panel2), var(--panel2)) padding-box, conic-gradient(#ff4fa3, #ffb21e, #38c97f, #3f8cff, #b35cff, #ff4fa3) border-box; }
.trophy-img { width: 84px; height: 84px; margin: 0 auto; display: block; border-radius: 20px; border: 4px solid #8a8f98; object-fit: cover; background: var(--panel2); }
.trophy.locked .trophy-medal, .trophy.locked .trophy-img { filter: grayscale(1); opacity: .55; }
.trophy-title { font-weight: 700; font-size: .85rem; margin-top: 8px; }
.trophy-desc { color: var(--muted); font-size: .75rem; margin-top: 2px; }

/* trophy case v2: sections, earn dates, locked/progress states */
.trophy-count { color: var(--muted); font-size: .85rem; margin: 2px 0 4px; }
.trophy-sec { margin: 18px 0 2px; font-size: .95rem; }
.trophy-date { color: #7fc98f; font-size: .72rem; margin-top: 2px; }
.trophy.locked .trophy-medal { filter: grayscale(1); opacity: .45; }
.trophy.locked .trophy-title { color: var(--muted); }
.trophy-bar { display: block; height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin: 5px 4px 0; overflow: hidden; }
.trophy-bar i { display: block; height: 100%; background: #38c97f; }

/* Spacing cleanup 2026-10-25 (Franklin's screenshot: "the boxes up
   top are touching"). Measured on his screenshot: the two rows of
   header buttons sat ~2px apart (they were bare inline buttons with
   no gap control), and the stat tiles read as one merged bar. The
   header actions become a real flex row with an 8px gap both ways,
   and the tiles get a wider seam + slightly smaller numbers on
   phones so they stop crowding their edges. */
.prof-head > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prof-head h2 { flex: 0 0 100%; margin: 0; }
.prof-head .btn { margin: 0; }
.prof-stats { gap: 12px; }
.prof-stat { min-width: 0; }
@media (max-width: 480px) {
  .prof-stats { gap: 10px; }
  .prof-stat b { font-size: 1.12rem; }
}
