/* /collectors (views/collectors/*). Gotya dark: black ground, panels, yellow accent,
   Barlow Condensed for headlines and numbers. Uses the --g-* brand tokens from bridge.css. */
.cl-page { max-width: 1240px; margin: 0 auto; padding-block: 8px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.cl-page > * { min-width: 0; }
.cl-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cl-eyebrow { font-family: var(--g-cond, 'Barlow Condensed', sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: 5px; font-size: .8rem; color: var(--g-gold, #FFC629); }

/* Hero */
.cl-hero { position: relative; overflow: hidden; border: 1px solid var(--g-line, #26272b); border-radius: 18px; padding: 30px 28px 24px;
  background: radial-gradient(700px 260px at 85% -10%, rgba(255, 198, 41, .16), transparent 70%), linear-gradient(180deg, #15140f, #0d0d0c); }
.cl-title { margin: 8px 0 10px; font-family: var(--g-cond, 'Barlow Condensed', sans-serif); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: .92; letter-spacing: -.5px; color: #fff; text-wrap: balance; }
.cl-title span { color: var(--g-gold, #FFC629); }
.cl-lead { margin: 0; max-width: 60ch; color: #cfcabb; font-size: 1rem; line-height: 1.55; }
.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cl-stat { background: rgba(255, 255, 255, .03); border: 1px solid var(--g-line, #26272b); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.cl-stat b { display: block; font-family: var(--g-cond, 'Barlow Condensed', sans-serif); font-size: 1.9rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cl-stat span { display: block; margin-top: 4px; font-size: .82rem; color: var(--g-mut, #9a9ca2); line-height: 1.35; }
.cl-search { margin-top: 18px; display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 6px 6px 6px 14px;
  background: #121210; border: 1px solid #34312a; border-radius: 999px; }
.cl-search:focus-within { border-color: rgba(255, 198, 41, .7); box-shadow: 0 0 0 3px rgba(255, 198, 41, .14); }
.cl-search-at { color: var(--g-gold, #FFC629); font-weight: 700; }
.cl-search input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: #fff; font: 500 16px/1 var(--g-sans, 'Barlow', sans-serif); }
.cl-search input::placeholder { color: #6b6658; }
.cl-search button, .cl-btn { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  background: linear-gradient(180deg, #FFE27A, #F6B81F); color: #161206; font: 700 .9rem/1 var(--g-cond, 'Barlow Condensed', sans-serif); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.cl-search button:focus-visible, .cl-btn:focus-visible, .cl-follow:focus-visible, .cl-tab:focus-visible, .cl-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Collector of the week */
.cl-cotw { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 22px;
  border: 1px solid rgba(255, 198, 41, .35); border-radius: 18px; background: linear-gradient(120deg, rgba(255, 198, 41, .1), rgba(255, 198, 41, .02) 55%, transparent), #101010; }
.cl-cotw-card { display: block; border-radius: 12px; overflow: hidden; background: #0b0b0b; box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 198, 41, .18); }
.cl-cotw-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cl-cotw-body { min-width: 0; display: grid; gap: 8px; }
.cl-cotw-who { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.6rem/1 var(--g-cond, 'Barlow Condensed', sans-serif); word-break: break-all; }
.cl-cotw-ava { width: 44px; height: 44px; }
.cl-cotw-line { margin: 0; color: #cfcabb; line-height: 1.5; }
.cl-cotw-line b { color: #fff; }
.cl-cotw-line em { font-style: normal; color: var(--g-gold, #FFC629); font-weight: 600; }
.cl-cotw-line strong { color: var(--g-gold, #FFC629); }
.cl-cotw-note { margin: 0; font-size: .82rem; color: var(--g-mut, #9a9ca2); }
.cl-cotw-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }

/* Tabs, chips, period */
.cl-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--g-line, #26272b); }
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tab { flex: none; padding: 12px 14px; color: var(--g-mut, #9a9ca2); text-decoration: none; font: 700 1rem/1 var(--g-cond, 'Barlow Condensed', sans-serif);
  text-transform: uppercase; letter-spacing: 1.2px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cl-tab:hover { color: #fff; }
.cl-tab.is-on { color: #fff; border-bottom-color: var(--g-gold, #FFC629); }
.cl-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
.cl-chips::-webkit-scrollbar { display: none; }
.cl-chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid #34312a; color: #cfcabb; text-decoration: none; font-size: .88rem; font-weight: 600; }
.cl-chip:hover { border-color: #5a5444; color: #fff; }
.cl-chip.is-on { background: rgba(255, 198, 41, .12); border-color: rgba(255, 198, 41, .6); color: var(--g-gold, #FFC629); }
.cl-seg { display: inline-flex; padding: 3px; border: 1px solid #34312a; border-radius: 999px; }
.cl-seg a { padding: 6px 14px; border-radius: 999px; color: var(--g-mut, #9a9ca2); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.cl-seg a.is-on { background: #26241d; color: #fff; }
.cl-sub { margin: -8px 0 0; color: var(--g-mut, #9a9ca2); font-size: .9rem; }
.cl-h2 { margin: 6px 0 0; font: 700 1.3rem/1.1 var(--g-cond, 'Barlow Condensed', sans-serif); text-transform: uppercase; letter-spacing: .6px; color: #fff; }
.cl-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; }
.cl-link { color: var(--g-gold, #FFC629); font-size: .9rem; }
.cl-empty { margin: 0; padding: 26px 20px; text-align: center; color: var(--g-mut, #9a9ca2); border: 1px dashed #2f2c25; border-radius: 14px; }
.cl-empty p { margin: 0; }
.cl-empty a { color: var(--g-gold, #FFC629); }
.cl-foot { margin: 8px 0 0; font-size: .8rem; color: var(--g-mut2, #8a8d94); line-height: 1.5; max-width: 80ch; }
.cl-foot a { color: inherit; text-decoration: underline; }

/* Pull tiles */
.cl-grid-pulls { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cl-pull { display: flex; flex-direction: column; min-width: 0; background: #111110; border: 1px solid var(--g-line, #26272b); border-radius: 14px; overflow: hidden; }
.cl-pull-img { position: relative; display: block; background: radial-gradient(120% 80% at 50% 0%, #1d1b16, #0c0c0b); padding: 12px 12px 6px; }
.cl-pull-img img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.cl-pull-val { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 10, .85); border: 1px solid rgba(255, 198, 41, .55);
  color: var(--g-gold, #FFC629); font: 700 .9rem/1.2 var(--g-cond, 'Barlow Condensed', sans-serif); font-variant-numeric: tabular-nums; }
.cl-pull-body { display: grid; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.cl-pull-name { color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-pull-meta { color: var(--g-mut, #9a9ca2); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-who { display: flex; align-items: center; gap: 7px; margin-top: 4px; text-decoration: none; min-width: 0; }
.cl-who-ava { width: 24px; height: 24px; flex: none; }
.cl-who-txt { color: #cfcabb; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-who-verb { color: var(--g-mut, #9a9ca2); }
.cl-who b { color: #fff; font-weight: 600; }
.cl-pull-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--g-mut2, #8a8d94); font-size: .74rem; }

/* Collector cards */
.cl-grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cl-card { display: flex; flex-direction: column; min-width: 0; background: #111110; border: 1px solid var(--g-line, #26272b); border-radius: 16px; overflow: hidden; }
.cl-card-banner { position: relative; display: block; height: 64px; background-size: cover; background-position: center; }
.cl-card-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55)); }
.cl-rank { position: absolute; z-index: 1; top: 8px; left: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(10, 10, 10, .8);
  color: var(--g-gold, #FFC629); font: 700 .95rem/1.3 var(--g-cond, 'Barlow Condensed', sans-serif); }
.cl-card-head { display: flex; align-items: flex-end; gap: 10px; padding: 0 14px; margin-top: -26px; position: relative; z-index: 1; min-width: 0; }
.cl-card-ava { flex: none; display: block; border-radius: 50%; }
.cl-ava { width: 58px; height: 58px; }
.cl-card-ava > :not(.gf-ava), .cl-card-ava .cl-ava { box-shadow: 0 0 0 3px #111110; }
.cl-card-id { flex: 1; min-width: 0; padding-bottom: 2px; }
.cl-card-name { display: block; color: #fff; text-decoration: none; font: 700 1.2rem/1.1 var(--g-cond, 'Barlow Condensed', sans-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-follow-form { margin: 0; flex: none; }
.cl-follow { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255, 198, 41, .65); background: transparent; color: var(--g-gold, #FFC629); font: 700 .82rem/1 var(--g-cond, 'Barlow Condensed', sans-serif); letter-spacing: 1.2px; text-transform: uppercase; }
.cl-follow:hover { background: rgba(255, 198, 41, .1); }
.cl-follow.is-on { background: #26241d; border-color: #3a362c; color: #cfcabb; }
.cl-follow[disabled] { opacity: .6; cursor: default; }
.cl-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 14px 4px; }
.cl-card-stats div { min-width: 0; }
.cl-card-stats b { display: block; color: #fff; font: 700 1.2rem/1 var(--g-cond, 'Barlow Condensed', sans-serif); font-variant-numeric: tabular-nums; }
.cl-card-stats .is-gold b { color: var(--g-gold, #FFC629); }
.cl-card-stats span { color: var(--g-mut, #9a9ca2); font-size: .74rem; }
.cl-card-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 14px 4px; }
.cl-mini { display: block; border-radius: 8px; background: #0b0b0a; padding: 5px; border: 1px solid #1f1e1a; }
.cl-mini img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cl-card-best { padding: 8px 14px 0; font-size: .8rem; color: #cfcabb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card-best span { color: var(--g-mut, #9a9ca2); }
.cl-card-best b { color: #fff; font-weight: 600; }
.cl-card-best em { font-style: normal; color: var(--g-mut, #9a9ca2); }
.cl-card-best strong { color: var(--g-gold, #FFC629); }
.cl-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.cl-badge { padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #cfcabb; background: #1a1916; border: 1px solid #2c2a24; }
.cl-badge.is-gold { color: var(--g-gold, #FFC629); border-color: rgba(255, 198, 41, .4); background: rgba(255, 198, 41, .08); }
.cl-card > :last-child { padding-bottom: 14px; }

@media (max-width: 760px) {
  .cl-hero { padding: 22px 16px 18px; }
  .cl-stats { grid-template-columns: 1fr; gap: 8px; }
  .cl-stat { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
  .cl-stat b { font-size: 1.5rem; flex: none; }
  .cl-stat span { margin: 0; }
  .cl-cotw { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .cl-cotw-who { font-size: 1.3rem; }
  .cl-cotw-ava { width: 36px; height: 36px; }
  .cl-grid-pulls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cl-grid-people { grid-template-columns: minmax(0, 1fr); }
  .cl-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .cl-chips { width: 100%; }
  .cl-seg, .cl-shuffle { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .cl-page * { transition: none !important; } }

/* Avatars (user_avatar / player_avatar output: a span, with an img inside when uploaded). */
.cl-ava, .cl-who-ava, .cl-cotw-ava { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden;
  font-family: var(--g-cond, 'Barlow Condensed', sans-serif); font-weight: 700; line-height: 1; color: #fff; }
.cl-ava.has-img img, .cl-who-ava.has-img img, .cl-cotw-ava.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl-ava { font-size: 1.6rem; }
.cl-cotw-ava { font-size: 1.3rem; }
.cl-who-ava { font-size: .8rem; }
