/* ================================================
   BRAWL TRACKER — Design System v2
   Barlow (400/500/600/700) + Barlow Condensed (700)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:          #0d0f14;
  --bg-2:        #141720;
  --bg-3:        #1c2030;
  --bg-4:        #242840;
  --border:      rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.04);

  --text:        #e8eaf2;
  --text-2:      #9099b8;
  --text-3:      #5a6280;

  /* Accent: amber */
  --amber:       oklch(75% 0.20 48);
  --amber-dim:   oklch(55% 0.18 48);
  --amber-glow:  oklch(75% 0.20 48 / 0.18);
  --amber-bg:    oklch(75% 0.20 48 / 0.10);

  /* Win: teal */
  --win:         oklch(72% 0.18 175);
  --win-dim:     oklch(52% 0.16 175);
  --win-bg:      oklch(72% 0.18 175 / 0.12);

  /* Loss: red */
  --loss:        oklch(64% 0.22 25);
  --loss-dim:    oklch(44% 0.20 25);
  --loss-bg:     oklch(64% 0.22 25 / 0.12);

  /* Discord */
  --discord:     #5865f2;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow:      0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);

  --topbar-h:    56px;
  --container:   1100px;

  /* Back-compat with older dynamic templates. */
  --accent:      var(--amber);
  --accent-2:    var(--win);
  --accent-3:    var(--win);
  --danger:      var(--loss);
  --surface:     var(--bg-2);
  --surface-2:   var(--bg-3);
  --muted:       var(--text-2);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Topbar ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(13,15,20,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amber);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.brand-mark {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(255,138,34,0.24));
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
  flex: 1;
}
.navlinks a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.navlinks a:hover { color: var(--text); background: var(--bg-3); }
.navlinks a.active,
.navlinks a[aria-current="page"] { color: var(--amber); }

.topbar .nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.poll-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.username {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-4); color: var(--text); border-color: rgba(255,255,255,0.14); }
.btn.primary {
  background: var(--amber);
  color: #0d0f14;
  border-color: transparent;
  font-weight: 700;
}
.btn.primary:hover { filter: brightness(1.1); }
.btn-discord {
  background: var(--discord);
  color: #fff;
  border-color: transparent;
  font-size: 0.925rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}
.btn-discord:hover { filter: brightness(1.12); }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }

/* ── Container + Layout ──────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ── Page title ─────────────────────────────── */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 0 4px;
}
.page-title svg { color: var(--amber); }

/* ── Eyebrow ─────────────────────────────────── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Badges ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-win { background: var(--win-bg); color: var(--win); }
.badge-loss { background: var(--loss-bg); color: var(--loss); }
.badge-icon { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Icons ────────────────────────────────────── */
.icon-inline { width: 16px; height: 16px; flex-shrink: 0; }
.section-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hero-stat-icon { width: 22px; height: 22px; flex-shrink: 0; }
.page-title-icon { width: 28px; height: 28px; color: var(--amber); flex-shrink: 0; }

/* ── Asset tokens ─────────────────────────────── */
.asset-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.asset-token img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.token-letter {
  font-weight: 700;
  font-size: 0.7em;
  color: var(--text-3);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.asset-token.tiny  { width: 28px; height: 28px; }
.asset-token.small { width: 36px; height: 36px; }
.asset-token.medium{ width: 48px; height: 48px; }
.asset-token.large { width: 64px; height: 64px; }
.asset-token.profile-avatar { width: 80px; height: 80px; border: 3px solid var(--amber); box-shadow: 0 0 20px var(--amber-glow); }
.asset-token.framed { border: 2px solid rgba(255,255,255,0.12); }
.asset-token.profile-avatar.framed {
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.30), 0 10px 28px rgba(0,0,0,0.35);
}
.asset-token.profile-icon > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.34);
  transform-origin: center;
}
.asset-token.profile-avatar.profile-icon > img {
  transform: scale(1.48);
}
.asset-token.profile-icon.framed {
  --profile-frame: var(--role-color, var(--amber));
  border: 1px solid color-mix(in oklch, var(--profile-frame) 62%, rgba(255,255,255,0.12));
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.35),
    0 0 18px color-mix(in oklch, var(--profile-frame) 32%, transparent);
}
.asset-token.profile-icon.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid color-mix(in oklch, var(--profile-frame) 78%, white);
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.10);
  z-index: 3;
}
.asset-token.profile-avatar.profile-icon.framed::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 215deg,
    transparent 0 18%,
    color-mix(in oklch, var(--profile-frame) 82%, white) 28%,
    transparent 42%,
    var(--profile-frame) 62%,
    transparent 78% 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
}
.asset-token.signature-art { width: 56px; height: 56px; border: none; border-radius: 50%; background: transparent; }
.asset-token.favorite-art  { width: 112px; height: 112px; border: none; border-radius: 50%; background: transparent; }
.brawler-token img { object-fit: cover; }

/* game assets */
.brand-asset  { width: 36px; height: 36px; object-fit: contain; }
.login-brand-mark { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
.mode-asset   { width: 24px; height: 24px; object-fit: contain; }
.rank-asset   { height: 20px; object-fit: contain; }
.brag-rank-asset { height: 28px; }
.mini-resource-asset { height: 16px; object-fit: contain; }
.loadout-icon { width: 32px; height: 32px; object-fit: contain; }
.loadout-asset { width: 28px; height: 28px; object-fit: contain; }
.hyper-icon   { filter: drop-shadow(0 0 4px oklch(72% 0.22 290 / 0.6)); }

/* ── Data tables ──────────────────────────────── */
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data th {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data tbody tr:last-child td { border-bottom: none; }
.data tbody tr { transition: background 0.12s; }
.data tbody tr:hover { background: var(--bg-3); }
.data .time  { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; }
.data .muted { color: var(--text-2); }

/* ── Match rows ────────────────────────────────── */
.match-row { position: relative; }
.match-row.res-win td:first-child { border-left: 3px solid var(--win); }
.match-row.res-loss td:first-child { border-left: 3px solid var(--loss); }

.table-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.table-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}
.team-win {
  border-color: oklch(72% 0.18 175 / 0.38);
  background: oklch(72% 0.18 175 / 0.06);
}
.team-loss {
  border-color: oklch(64% 0.22 25 / 0.30);
  background: oklch(64% 0.22 25 / 0.04);
}
.team-win .player { opacity: 1; }
.team-loss .player { opacity: 0.6; }

.player {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-copy { display: flex; flex-direction: column; line-height: 1.2; }
.player-copy a { font-weight: 600; font-size: 0.8rem; }
.player-copy a:hover { color: var(--amber); }
.player-copy small { font-size: 0.7rem; color: var(--text-3); }
.is-member .player-copy a { color: var(--amber); }
.is-self .player-copy a { color: var(--win); }

.result td { white-space: nowrap; }
.trophy { font-size: 0.8rem; font-weight: 700; }

/* ── Pos / neg colors ─────────────────────────── */
.pos { color: var(--win) !important; }
.neg { color: var(--loss) !important; }
.muted { color: var(--text-2); }

/* ── Filter pills ─────────────────────────────── */
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: var(--bg-3);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.filter-pill.active { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-dim); }

/* ── Progress bars ────────────────────────────── */
.mini-progress {
  display: block;
  height: 4px;
  background: var(--bg-4);
  border-radius: 4px;
  overflow: hidden;
}
.mini-progress span {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.bar {
  height: 6px;
  background: var(--bg-4);
  border-radius: 6px;
  overflow: hidden;
  margin: 4px 0;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  border-radius: 6px;
  transform-origin: left;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ── KPI row ──────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kpi-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

/* ── Forms ────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--amber-dim);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
input::placeholder { color: var(--text-3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%235a6280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }

/* ── Invite form ──────────────────────────────── */
.invite-form {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr auto;
  gap: 8px;
  align-items: end;
}
.invite-list { display: flex; flex-direction: column; gap: 10px; }
.invite {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: flex-start;
}
.invite > div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.invite strong { font-size: 0.9rem; }
.invite .muted { font-size: 0.78rem; }
.invite p { font-size: 0.82rem; color: var(--text-2); }
.invite-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.invite-actions a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  padding: 3px 8px;
  border: 1px solid var(--amber-dim);
  border-radius: 20px;
  transition: all 0.14s;
}
.invite-actions a:hover { background: var(--amber-bg); }
.game-room-link { color: var(--win) !important; border-color: var(--win-dim) !important; }
.game-room-link:hover { background: var(--win-bg) !important; }

/* ── Hero section ─────────────────────────────── */
.clubhouse-hero {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.clubhouse-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, oklch(75% 0.20 48 / 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-copy { display: flex; flex-direction: column; gap: 10px; }
.hero-copy h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 4px;
}
.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-stats strong { color: var(--text); font-weight: 700; }
.hero-brawlers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.hero-brawlers > .asset-token {
  width: 36px;
  height: 36px;
}
.my-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: all 0.15s;
  min-width: 200px;
  max-width: 260px;
}
.my-card:hover { border-color: var(--amber-dim); background: var(--bg-4); }
.my-card > .asset-token { flex-shrink: 0; }
.my-card > .my-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.my-card strong { font-size: 0.95rem; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-card small { font-size: 0.73rem; color: var(--text-2); display: block; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-card .pos { font-size: 0.73rem; }

/* ── Roster grid ──────────────────────────────── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.roster-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 4px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
  align-items: center;
}
.roster-card:hover { border-color: var(--amber-dim); background: var(--bg-4); }
.roster-card .asset-token { grid-row: 1 / 4; }
.roster-main { display: flex; flex-direction: column; gap: 2px; }
.roster-name-line { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.roster-main strong { font-weight: 700; font-size: 0.95rem; }
.roster-main small { font-size: 0.75rem; color: var(--text-2); }
.roster-card .mini-progress { grid-column: 2; align-self: center; }
.roster-card > small { grid-column: 2; font-size: 0.72rem; color: var(--text-3); }

/* ── Profile head ─────────────────────────────── */
.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.profile-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.profile-head h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
}
.profile-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.club-role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--role-color, var(--amber)) 46%, transparent);
  background: color-mix(in oklch, var(--role-color, var(--amber)) 14%, transparent);
  color: color-mix(in oklch, var(--role-color, var(--amber)) 78%, white);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.club-role-chip.small,
.club-role-chip.table-role {
  min-height: 17px;
  padding: 2px 6px;
  font-size: 0.58rem;
}
.club-role-chip.table-role { margin-left: 4px; }
.role-president { --role-color: oklch(78% 0.20 72); }
.role-vice      { --role-color: oklch(70% 0.22 304); }
.role-senior    { --role-color: oklch(72% 0.18 196); }
.role-member    { --role-color: oklch(72% 0.05 255); }

/* ── Favorite panel ───────────────────────────── */
.favorite-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
}
.favorite-copy h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.favorite-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.favorite-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.favorite-stats strong { color: var(--text); }
.skin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 6px;
}
.skin-chip span { color: var(--text-3); }
.skin-chip strong { color: var(--amber); }
.skin-chip.compact { margin-top: 4px; }

/* ── Progress grid ─────────────────────────────── */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.stat-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.progress-line { display: flex; justify-content: space-between; align-items: baseline; }
.progress-line span { font-size: 0.78rem; color: var(--text-3); }
.progress-line strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; color: var(--amber); }
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.metric-row span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.metric-row strong { color: var(--text); font-weight: 700; }

/* ── Brag grid ─────────────────────────────────── */
.brag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.brag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brag span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; }
.brag strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}
.brag small { font-size: 0.75rem; color: var(--text-3); }

/* ── Loadout grid ─────────────────────────────── */
.loadout-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.loadout-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.loadout-grid strong { font-weight: 700; color: var(--amber); margin-right: 2px; }
.loadout-grid span { color: var(--text-2); font-size: 0.78rem; }

/* ── Signature cards ──────────────────────────── */
.signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.signature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}
.signature-card:hover { border-color: rgba(255,255,255,0.15); }
.signature-top { display: flex; align-items: center; gap: 10px; }
.signature-top span { display: flex; flex-direction: column; gap: 2px; }
.signature-top strong { font-weight: 700; }
.signature-top small { font-size: 0.75rem; color: var(--text-3); }
.item-strip {
  /* Grid de colunas fixas: alinhamento regular mesmo com 6+ engrenagens.
     `auto-fill` enche a linha ate o limite do card; chips sobrando descem
     pra linha de baixo, sempre na mesma coluna. */
  display: grid;
  grid-template-columns: repeat(auto-fill, 34px);
  gap: 6px;
  justify-content: start;
}
.item-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.item-chip > img {
  /* loadout-asset default e 28px (.loadout-asset). Mantemos como esta;
     o chip de 34x34 da 3px de respiro dos lados. */
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}
.item-chip.hyper {
  border-color: oklch(72% 0.22 290 / 0.4);
  background: oklch(72% 0.22 290 / 0.08);
}

/* ── Brawler collection ───────────────────────── */
.brawler-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.brawler-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.14s;
}
.brawler-chip:hover { border-color: rgba(255,255,255,0.15); }
.brawler-chip.is-favorite { border-color: var(--amber-dim); }
.brawler-chip.is-power-11 { border-color: rgba(255,255,255,0.13); }
.brawler-chip.is-maxed {
  border-color: var(--border);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--amber) 8%, transparent), transparent 42%),
    var(--bg-3);
}
.brawler-chip > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.brawler-chip strong { font-size: 0.875rem; font-weight: 700; }
.brawler-chip small { font-size: 0.72rem; color: var(--text-3); }
.brawler-chip-meta { display: flex; flex-direction: column; gap: 1px; text-align: right; }
.brawler-chip-meta strong { font-size: 0.9rem; font-weight: 700; color: var(--amber); }
.brawler-chip-meta small { font-size: 0.68rem; color: var(--text-3); }
.brawler-chip-meta .complete-chip {
  align-self: flex-end;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--amber) 42%, transparent);
  background: color-mix(in oklch, var(--amber) 10%, transparent);
  color: var(--amber);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Chart shell ──────────────────────────────── */
.chart-shell {
  position: relative;
  height: 180px;
  min-height: 180px;
}
.chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}
.chart-skeleton {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-3) 0px,
    var(--bg-3) 2px,
    transparent 2px,
    transparent 40px
  );
  border-radius: 4px;
  opacity: 0.5;
}

/* ── Login page ──────────────────────────────── */
.center { max-width: 600px; margin: 0 auto; align-items: center; text-align: center; }
.center h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; text-transform: uppercase; }
.center code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--amber);
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  text-align: left;
}
.login-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.login-option h2 { font-size: 1.05rem; font-weight: 700; }
.login-option p { font-size: 0.85rem; color: var(--text-2); }
.login-option form { display: flex; flex-direction: column; gap: 10px; }

/* ── Footer ──────────────────────────────────── */
.legal {
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}
.legal a { color: var(--text-2); text-decoration: underline; }

/* ── Forms (invite) ──────────────────────────── */
.poll-form button { padding: 0; }

/* ── Favorite-copy fix + explicacao ──────────── */
.favorite-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.favorite-explainer {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
  margin: 0;
}

/* ── Asset token: zoom da imagem + esconder letra ─
   Os tokens (avatar, brawler) tem uma letra fallback no DOM pro caso da
   imagem nao carregar. Quando ela carrega, escondemos. Tambem usamos
   `object-fit: cover` pra preencher o frame inteiro sem espaco vazio. */
.asset-token > img {
  object-fit: cover;
}
.asset-token > img + .token-letter {
  /* visibility (nao display:none) pra a letra nao desaparecer da layout —
     ela e o que dimensiona o `.asset-token` quando nao ha size modifier
     (caso do hero-brawlers no dashboard). */
  visibility: hidden;
}

/* Artes grandes usam assets sem moldura; mantemos `contain` para nao cortar
   personagem e evitamos desenhar uma segunda borda por cima da imagem. */
.asset-token.signature-art > img,
.asset-token.favorite-art > img {
  object-fit: cover;
}

/* ── Tier borders nos brawler tokens ──────────────
   Anel via pseudo-elemento (sempre acima da img graças ao z-index).
   Aplicados pelo template em funcao do rank/trofeus do brawler. */
.brawler-token,
.signature-art,
.favorite-art {
  position: relative;
  --tier-color: rgba(255,255,255,0.10);
  --tier-glow: transparent;
  --power-color: rgba(255,255,255,0.18);
  --frame-speed: 5.5s;
  isolation: isolate;
}
.brawler-token::before,
.signature-art::before,
.favorite-art::before,
.brawler-token::after,
.signature-art::after,
.favorite-art::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.brawler-token::before,
.signature-art::before,
.favorite-art::before {
  inset: 0;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    transparent 0 18%,
    var(--power-color) 26%,
    var(--tier-color) 40%,
    transparent 52%,
    var(--tier-color) 68%,
    var(--power-color) 82%,
    transparent 100%
  );
  opacity: 0;
  z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.brawler-token::after,
.signature-art::after,
.favorite-art::after {
  inset: 0;
  border: 1px solid var(--tier-color);
  z-index: 3;
  box-shadow: 0 0 14px var(--tier-glow);
}

.tier-rookie    { --tier-color: rgba(255,255,255,0.12); --tier-glow: transparent; }
.tier-bronze    { --tier-color: #c87f5b; --tier-glow: rgba(200,127,91,0.32); }
.tier-silver    { --tier-color: #c1c5cc; --tier-glow: rgba(193,197,204,0.28); }
.tier-gold      { --tier-color: #f1b942; --tier-glow: rgba(241,185,66,0.34); }
.tier-diamond   { --tier-color: #5cc1f1; --tier-glow: rgba(92,193,241,0.36); }
.tier-mythic    { --tier-color: #c060cf; --tier-glow: rgba(192,96,207,0.38); }
.tier-legendary { --tier-color: #d9415c; --tier-glow: rgba(217,65,92,0.40); }
.tier-masters   { --tier-color: #ffd33d; --tier-glow: rgba(255,211,61,0.55); }

.power-7,
.power-8 { --power-color: rgba(92,193,241,0.42); }
.power-9,
.power-10 { --power-color: rgba(192,96,207,0.48); }
.power-max { --power-color: rgba(255,255,255,0.62); }
.has-hypercharge { --power-color: #f45cff; }

.brawler-token.power-max::before,
.signature-art.power-max::before,
.favorite-art.power-max::before { opacity: 0.42; }
.brawler-token.is-elite::after,
.signature-art.is-elite::after,
.favorite-art.is-elite::after {
  border-width: 2px;
}
.brawler-token.is-maxed::before,
.signature-art.is-maxed::before,
.favorite-art.is-maxed::before {
  opacity: 0.96;
  animation: brawler-frame-spin var(--frame-speed) linear infinite;
}
.brawler-token.is-maxed::after,
.signature-art.is-maxed::after,
.favorite-art.is-maxed::after {
  border-color: color-mix(in oklch, var(--tier-color) 82%, white);
  box-shadow:
    0 0 12px var(--tier-glow),
    inset 0 0 10px rgba(255,255,255,0.10);
}
.signature-art::before,
.favorite-art::before { padding: 3px; }
.signature-art::after,
.favorite-art::after { border-width: 2px; }

.brawler-token.tier-masters:not(.is-maxed)::after,
.signature-art.tier-masters:not(.is-maxed)::after,
.favorite-art.tier-masters:not(.is-maxed)::after {
  animation: tier-masters-pulse 2.6s ease-in-out infinite;
}
@keyframes brawler-frame-spin {
  to { transform: rotate(360deg); }
}
@keyframes tier-masters-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,211,61,0.40); }
  50%      { box-shadow: 0 0 24px rgba(255,211,61,0.70); }
}

@media (prefers-reduced-motion: reduce) {
  .brawler-token::before,
  .signature-art::before,
  .favorite-art::before,
  .brawler-token::after,
  .signature-art::after,
  .favorite-art::after { animation: none !important; }
}

/* ── Animations ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--amber-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.anim-up   { animation: fadeUp  0.4s ease both; }
.anim-in   { animation: fadeIn  0.35s ease both; }

/* Staggered children */
.stagger > *:nth-child(1) { animation: fadeUp 0.4s 0.05s ease both; }
.stagger > *:nth-child(2) { animation: fadeUp 0.4s 0.10s ease both; }
.stagger > *:nth-child(3) { animation: fadeUp 0.4s 0.15s ease both; }
.stagger > *:nth-child(4) { animation: fadeUp 0.4s 0.20s ease both; }
.stagger > *:nth-child(5) { animation: fadeUp 0.4s 0.25s ease both; }
.stagger > *:nth-child(6) { animation: fadeUp 0.4s 0.30s ease both; }
.stagger > *:nth-child(7) { animation: fadeUp 0.4s 0.35s ease both; }
.stagger > *:nth-child(8) { animation: fadeUp 0.4s 0.40s ease both; }
.stagger > *:nth-child(n+9) { animation: fadeUp 0.4s 0.45s ease both; }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════════════════════════════════════
   MOBILE — Bottom nav + responsive fixes
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  :root { --topbar-h: 52px; }

  .navlinks { display: none; }
  .topbar .nav .username { display: none; }
  .topbar .nav .poll-status span:not(.icon-inline) { display: none; }

  /* Bottom nav bar */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(20,23,32,0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 0 max(8px, env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--text-3);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.14s;
  }
  .bottom-nav a.active { color: var(--amber); }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .container { padding-bottom: 90px; }

  /* Hero stacks vertically */
  .clubhouse-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .clubhouse-hero::before { display: none; }
  .my-card { min-width: 0; }
  .hero-copy h1 { font-size: 1.8rem; }

  /* Roster & grids */
  .roster-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr 1fr; }
  .brag-grid { grid-template-columns: 1fr 1fr; }
  .signature-grid { grid-template-columns: 1fr; }
  .brawler-collection-grid { grid-template-columns: 1fr; }

  /* Invite form stacks */
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form .btn { grid-column: span 2; }

  /* Profile */
  .profile-head { padding: 20px; }
  .favorite-panel {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .favorite-panel .favorite-art { display: none; }

  /* Tables → cards on very small screens */
  .data-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kpis { grid-template-columns: repeat(3, 1fr); }

  /* Login */
  .login-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .progress-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop: hide bottom nav ─────────────────── */
@media (min-width: 701px) {
  .bottom-nav { display: none; }
}

/* ── Medium screens: shrink topbar ───────────── */
@media (max-width: 1080px) and (min-width: 701px) {
  .navlinks { margin-left: 10px; }
  .navlinks a span { display: none; }
  .navlinks a { padding: 6px 8px; }
  .username { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
  .topbar .nav { gap: 4px; }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .brand span:last-child { display: none; }
  .brand { gap: 0; }
}

/* Dynamic app compatibility and extracted page polish */
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.logout button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}

.logout button:hover {
  background: var(--bg-4);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

.icon-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.game-asset {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  color: var(--text-3);
  text-align: center;
}

.empty-asset {
  width: 64px;
  height: 64px;
  opacity: 0.8;
}

.badge-draw {
  background: rgba(144,153,184,0.12);
  color: var(--text-2);
}

.data-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-wrap > .data {
  min-width: 760px;
}

code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--amber);
}

.page-title-icon {
  width: 28px;
  height: 28px;
}

.section-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber);
}

.badge-icon {
  width: 14px;
  height: 14px;
}

.icon-inline {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-only {
  width: 18px;
  height: 18px;
}

.invite-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invite-form-field label,
.field-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-form-action {
  display: flex;
  align-items: flex-end;
}

.invite-form-action .btn {
  width: 100%;
  justify-content: center;
}

.login-option h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.matches-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stats-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.chart-donut-wrap {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.synergy-bar {
  height: 6px;
  width: 80px;
  background: var(--bg-4);
  border-radius: 6px;
  overflow: hidden;
}

.synergy-fill {
  height: 100%;
  background: var(--win);
  border-radius: 6px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.player-details summary,
.brawler-details summary {
  font-size: 0.75rem;
  color: var(--text-3);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.player-details summary::-webkit-details-marker,
.brawler-details summary::-webkit-details-marker {
  display: none;
}

.player-details[open] summary,
.brawler-details[open] summary {
  color: var(--amber);
}

.player-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 8px;
  background: var(--bg-4);
  border-radius: var(--radius-sm);
}

.player-breakdown > div {
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.player-link,
.data a {
  color: var(--amber);
  font-weight: 600;
}

.chart-skeleton {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent),
    var(--bg-3);
  background-size: 180% 100%;
  animation: shimmer 1.4s infinite;
}

.chart-shell.is-ready .chart-skeleton,
.chart-shell.is-empty .chart-skeleton {
  display: none;
}

@keyframes shimmer {
  to { background-position: -180% 0; }
}

@media (max-width: 700px) {
  .invite-form > .invite-form-field:nth-child(3),
  .invite-form > .invite-form-action {
    grid-column: span 2;
  }

  .matches-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .matches-filters .filters {
    margin-left: 0 !important;
  }

  .mode-pill {
    display: none;
  }

  .mode-pill[data-mode="all"],
  .mode-pill[data-mode="Ranqueada"] {
    display: inline-flex;
  }

  .chart-donut-wrap {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
  }

  .chart-donut-wrap canvas {
    width: 160px !important;
    height: 160px !important;
  }
}
