/* Champion mastery page. Builds on the site theme and member.css; usable at 360px. */

.mastery-main { max-width: 780px; }
.mastery-header { margin-bottom: 18px; }
.mastery-header h1 { margin: 0 0 6px; font-size: clamp(1.5em, 4vw, 2.1em); }
.mastery-header p { margin: 0; color: var(--text-dim); }
.mastery-search-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); color: var(--text); font: inherit; font-size: 1.02em; color-scheme: dark; }
.mastery-search-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.mastery-summary { margin: 12px 0 14px; color: var(--text-dim); font-size: .9em; }
.mastery-empty { margin: 8px 0 2px; text-align: center; }
.mastery-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.mastery-row { display: grid; grid-template-columns: 2.8em 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 5px 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elev); }
.mastery-row .champion-icon { grid-row: 1 / span 2; }
.mastery-rank { grid-row: 1 / span 2; color: var(--text-dim); font-size: .85em; font-weight: 600; text-align: right; }
.mastery-name { font-weight: 600; overflow-wrap: anywhere; }
.mastery-points { font-size: 1.05em; font-weight: 700; text-align: right; white-space: nowrap; }
.mastery-points small { margin-left: 4px; color: var(--text-dim); font-size: .78em; font-weight: 500; }
.mastery-bar { grid-column: 3 / -1; height: 4px; overflow: hidden; border-radius: 2px; background: var(--border); }
.mastery-bar span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.mastery-row.unplayed { opacity: .6; }
@media (max-width: 520px) {
  .mastery-row { grid-template-columns: 2.2em 36px minmax(0, 1fr) auto; gap: 4px 9px; padding: 8px 10px; }
  .mastery-row .champion-icon { width: 36px; height: 36px; }
  .mastery-card { padding: 15px; }
}
