/* =============================================================================
   Rank Valorant — estilos da página.
   Base: design system do elorank-games.com.br (/ds/elorank.css), carregado
   antes deste arquivo. Aqui ficam só os componentes próprios do Valorant
   (perfil, rank, partidas, comandos), e TODA cor vem de um token do design
   system — é o que faz a página funcionar nos temas claro e escuro.
   Os nomes de classe são os mesmos que o app.js usa; não renomeie sem mudar lá.
   ========================================================================== */

:root {
  --gap: 16px;
  --pad-card: var(--s3);
  --aviso: #f5c542;
}
:root[data-theme="light"] {
  --aviso: #b07d00;
}

.app { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) var(--s10); overflow-x: clip; } /* clip: o brilho do hero passa da largura; não cria rolagem e não quebra o sticky */

/* Só para leitores de tela. */
.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;
}

.label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11px; font-weight: 500; color: var(--text-3);
}
.muted { color: var(--text-3); font-weight: 400; font-size: 14px; }

/* ============================ Idioma (no menu) ============================ */
.lang .lang__btn--active { background: var(--card); color: var(--text); box-shadow: var(--key-soft); }

/* ============================ Balão de status ============================ */
.hint {
  position: sticky; top: 76px; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  width: fit-content; max-width: calc(100% - 32px); margin: var(--s2) auto 0;
  padding: 4px; background: var(--card); border-radius: var(--r-pill);
  box-shadow: var(--key), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  animation: hint-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hint__link {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 2px 2px 2px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px;
}
.hint__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hint__text { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hint__cta {
  flex: none; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: 13px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hint__link:hover .hint__cta { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.hint__close {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-3);
  font-size: 18px; line-height: 1; cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease;
}
.hint__close:hover { color: var(--text); background: var(--recessed); }
@keyframes hint-in { from { opacity: 0; transform: translateY(-6px); } }

/* ============================ Hero ============================ */
.hero { position: relative; isolation: isolate; padding: var(--s10) 0 var(--s5); }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 120%; height: 160%;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 35%, var(--accent-glow), transparent 70%),
    radial-gradient(45% 50% at 70% 30%, var(--atmos-wash), transparent 75%);
  filter: blur(20px); opacity: 0.7;
}
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--s3); }
.hero__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.hero__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero__title { margin: 0; font-weight: 500; font-size: clamp(36px, 7vw, 60px); line-height: 1.08; letter-spacing: 0.004em; max-width: 14em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero__subtitle { margin: var(--s2) 0 0; color: var(--text-2); max-width: 46ch; font-size: 18px; line-height: 1.55; }

/* ============================ Busca ============================ */
.search { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; padding: 8px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--key); }
.search__field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.search__input {
  width: 100%; height: 44px; padding: 0 40px 0 14px; border: 0; border-radius: var(--r-ctrl);
  background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--slate); color: var(--text);
  font: 400 16px/1 var(--font); transition: box-shadow 0.15s ease;
}
.search__input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.search__input::placeholder { color: var(--text-3); }
.search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border: 0;
  border-radius: 50%; background: transparent; color: var(--text-3);
  font-size: 18px; line-height: 1; cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease;
}
.search__clear:hover { color: var(--text); background: var(--recessed); }
.search__select {
  flex: none; height: 44px; padding: 0 32px 0 12px; border: 0; border-radius: var(--r-ctrl);
  background-color: var(--field-bg); box-shadow: inset 0 0 0 1px var(--slate); color: var(--text);
  font: 500 13px/1 var(--mono); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8b90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.search__select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.search__select option { background: var(--card); color: var(--text); }
.search__btn {
  flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-ctrl);
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--lift);
  font: 500 14px/1 var(--font); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.search__btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.search__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.search__hint { margin: 0 0 var(--s5); color: var(--text-3); font-size: 14px; }
.search__hint-arrow { font-family: var(--mono); }

/* ============================ Mensagens ============================ */
.message {
  margin-bottom: var(--s3); padding: 14px 16px; border-radius: 12px; background: var(--card);
  box-shadow: var(--key-soft), inset 3px 0 0 var(--text-3); font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start; color: var(--text-2);
}
.message--error { box-shadow: var(--key-soft), inset 3px 0 0 var(--erro); color: var(--text); }
.message--warn { box-shadow: var(--key-soft), inset 3px 0 0 var(--aviso); color: var(--text); }
.message--info { box-shadow: var(--key-soft), inset 3px 0 0 var(--text-3); }

/* ============================ Estado inicial ============================ */
.empty { padding: var(--s4); border-radius: var(--r-card); background: var(--card); box-shadow: var(--key); }
.empty__title { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.empty__text { margin: 0 0 var(--s4); color: var(--text-2); font-size: 16px; max-width: 52ch; }
.empty__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-bottom: var(--s3); }
.step { padding: var(--s2); border-radius: 12px; background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.step__n::before { content: "0"; }
.step:first-child .step__n { color: var(--accent); }
.step__t { margin: 0; font-size: 14px; color: var(--text-2); }
.step__t b { color: var(--text); font-weight: 500; }
.empty__note { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ============================ Carregando ============================ */
.skeleton { display: grid; gap: var(--s2); }
.sk-block { padding: var(--pad-card); border-radius: var(--r-card); background: var(--card); box-shadow: var(--key); }
.sk-row { display: flex; align-items: center; gap: var(--s2); }
.sk-col { flex: 1; min-width: 0; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s3); }
.sk, .skeleton__line {
  border-radius: var(--r-ctrl);
  background: linear-gradient(90deg, var(--recessed) 25%, var(--badge) 37%, var(--recessed) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
.sk--circle { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.sk--title { height: 22px; width: 55%; }
.sk--line { height: 12px; width: 80%; margin-top: 10px; }
.sk--tile { height: 72px; }
.skeleton__line { height: 18px; margin-bottom: 14px; }
.skeleton__line--lg { height: 32px; width: 60%; }
.skeleton__line--sm { width: 40%; margin-bottom: 0; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ============================ Cards ============================ */
.card { padding: var(--pad-card); border-radius: var(--r-card); background: var(--card); box-shadow: var(--key); }
.section-title { margin: 0 0 var(--s3); font-size: 20px; font-weight: 500; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.section-title .muted { font-family: var(--mono); font-size: 12px; }

/* ============================ Abas (Comando | Status) ============================ */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--s3);
  border-radius: var(--r-pill); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge);
}
.tab-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn--active, .tab-btn--active:hover { background: var(--card); color: var(--text); box-shadow: var(--key); }
.tab-panel { display: flex; flex-direction: column; gap: var(--gap); }
.tab-panel[hidden] { display: none; }
#profile { scroll-margin-top: 140px; }

/* ============================ Banner ============================ */
.banner { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--card); background-size: cover; background-position: center; box-shadow: var(--key); }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 0% 100%, var(--accent-tint), transparent 70%); opacity: 0.8; }
.banner--art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--card) 96%, transparent) 0%,
    color-mix(in srgb, var(--card) 78%, transparent) 55%,
    color-mix(in srgb, var(--card) 35%, transparent) 100%);
}
.banner__overlay { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); padding: var(--s5) var(--pad-card); min-height: 168px; }
.banner__identity { min-width: 0; }
.banner__name { margin: 0; font-size: 40px; font-weight: 500; line-height: 1.1; word-break: break-word; }
.banner__meta { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.puuid {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); max-width: 100%;
  padding: 6px 10px; border: 0; border-radius: var(--r-ctrl); cursor: pointer; text-align: left; word-break: break-all;
  background: color-mix(in srgb, var(--recessed) 85%, transparent); box-shadow: inset 0 0 0 1px var(--slate);
  color: var(--text-2); font: 400 12px/1.4 var(--mono); transition: color 0.15s ease, box-shadow 0.15s ease;
}
.puuid:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge {
  padding: 4px 10px; border-radius: var(--r-badge); white-space: nowrap;
  background: var(--badge); color: var(--text-2); font: 500 12px/1.4 var(--mono);
}

/* ============================ Rank ============================ */
.card__rank { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--badge); }
.card__rank-icon { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 8px 24px var(--accent-glow)); }
.card__rank-info { flex: 1; min-width: 0; }
.card__tier { margin: 6px 0 var(--s2); font-size: 40px; font-weight: 500; line-height: 1.1; }
.card__leaderboard { margin: 12px 0 0; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.rr { display: flex; align-items: center; gap: var(--s2); }
.rr__bar { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); overflow: hidden; }
.rr__fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rr__text { font-family: var(--mono); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============================ Estatísticas ============================ */
.card__grid, .perf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.perf__grid { margin-bottom: var(--s4); }
.stat, .perf__stat { padding: 14px 16px; border-radius: 12px; background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); }
.stat__value { margin: 8px 0 0; font-size: 24px; font-weight: 500; line-height: 1.2; }
.stat__sub { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.up { color: var(--ok); }
.down { color: var(--erro); }
.perf__value { margin: 8px 0 0; font-size: 30px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.perf__split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); }
.chip__icon { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--badge); }
.chip__label { font-weight: 500; font-size: 14px; }
.chip__meta { font-family: var(--mono); color: var(--text-3); font-size: 12px; }
.chip--btn {
  height: 30px; padding: 0 12px; border: 0; cursor: pointer; color: var(--text);
  font: 400 12px/1 var(--mono); transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.chip--btn:hover { color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-glow); }

/* ============================ Tendência de RR ============================ */
.trend__chart { padding: var(--s2); margin-bottom: var(--s2); border-radius: 12px; background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); color: var(--accent); }
.spark { width: 100%; height: 88px; display: block; }
.trend__list { display: flex; flex-wrap: wrap; gap: 8px; }
.trend__item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); font-size: 14px; }
.trend__tier { color: var(--text-2); }
.trend__chg { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ============================ Partidas ============================ */
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.match {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 10px 14px; border-radius: 12px; background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge), inset 3px 0 0 var(--slate);
  transition: background-color 0.15s ease;
}
.match:hover { background: var(--badge); }
.match--win { box-shadow: inset 0 0 0 1px var(--badge), inset 3px 0 0 var(--ok); }
.match--loss { box-shadow: inset 0 0 0 1px var(--badge), inset 3px 0 0 var(--erro); }
.match__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.match__agent { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--badge); flex-shrink: 0; }
.match__info { min-width: 0; }
.match__map { font-weight: 500; }
.match__sub { color: var(--text-3); font-size: 12px; }
.match__right { text-align: right; flex-shrink: 0; }
.match__result { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--text-3); }
.match--win .match__result { color: var(--ok); }
.match--loss .match__result { color: var(--erro); }
.match__kda { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.match__extra { color: var(--text-3); font-size: 12px; }

/* ============================ Histórico por ato ============================ */
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--badge); }
.seasons-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seasons-table th, .seasons-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--badge); white-space: nowrap; }
.seasons-table tr:last-child td { border-bottom: none; }
.seasons-table td { font-variant-numeric: tabular-nums; }
.seasons-table th { font: 500 11px/1.4 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; background: var(--recessed); }

.field-label { display: block; margin-top: var(--s3); }

/* ============================ Identificar por (PUUID | Nome#Tag) ============================ */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--key); }
.seg-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: var(--s2); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); }
.seg__opt { position: relative; display: inline-flex; }
.seg__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__label {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.seg__opt:hover input:not(:disabled) + .seg__label { color: var(--text); }
.seg__opt input:checked + .seg__label { background: var(--card); color: var(--text); box-shadow: var(--key); }
.seg__opt input:disabled + .seg__label { opacity: 0.4; cursor: not-allowed; }
.seg__opt input:focus-visible + .seg__label { outline: 2px solid var(--text); outline-offset: 2px; }
.seg-note { color: var(--text-3); font-size: 14px; }

/* ============================ Comandos ============================ */
.twitch-list { display: grid; gap: 8px; }
.twitch__row { padding: 14px 16px; border-radius: 12px; background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge); }
.twitch__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.twitch__cmd { font-family: var(--mono); font-size: 14px; color: var(--text); }
.twitch__cmd::before { content: "!"; color: var(--accent); }
.twitch__desc { color: var(--text-3); font-size: 14px; }
.copy { display: flex; align-items: stretch; gap: 8px; }
.twitch__code {
  display: block; flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-ctrl); cursor: pointer; word-break: break-all;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--badge); color: var(--text-2);
  font: 400 12px/1.6 var(--mono); transition: color 0.15s ease, box-shadow 0.15s ease;
}
.twitch__code:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.twitch__code--ok { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.copy__btn {
  flex-shrink: 0; width: 44px; border: 0; border-radius: var(--r-ctrl); cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--slate); color: var(--text-2);
  font-size: 16px; display: grid; place-items: center; transition: color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.copy__btn:hover { color: var(--text); background: var(--recessed); box-shadow: inset 0 0 0 1px var(--line); }
.copy__btn--ok { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }

/* Construtor de comando personalizado */
.custom__textarea {
  width: 100%; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: var(--r-ctrl); resize: vertical;
  background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--slate); color: var(--text);
  font: 400 14px/1.6 var(--mono); transition: box-shadow 0.15s ease;
}
.custom__textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.custom__preview {
  margin-top: 10px; padding: 12px 16px; border-radius: 12px; min-height: 1.2rem; word-break: break-word; font-size: 16px;
  background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge), inset 3px 0 0 var(--accent); color: var(--text);
}

/* Aviso das aspas retas: o comando depende delas (o StreamElements separa a URL
   por espaço, e só a aspa reta junta tudo num pedaço só). */
.warn {
  display: flex; align-items: flex-start; gap: 10px; margin-top: var(--s2); padding: 12px 14px; border-radius: 12px;
  background: var(--recessed); box-shadow: inset 0 0 0 1px var(--badge), inset 3px 0 0 var(--aviso);
  color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.warn__ico { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--aviso); color: var(--canvas); font: 700 12px/18px var(--mono); text-align: center; }

/* ============================ Rodapé ============================ */
.er-footer .legal { margin: 0 0 var(--s2); max-width: 720px; line-height: 1.6; }

/* ============================ Celular ============================ */
@media (max-width: 720px) {
  :root { --pad-card: 18px; }
  .hero { padding: var(--s8) 0 var(--s3); }
  .search { flex-wrap: wrap; }
  .search__field { flex: 1 1 100%; }
  .search__select { flex: 1 1 0; }
  .search__btn { flex: 1 1 100%; }
  .search__hint { margin-bottom: var(--s4); }
  .hint { top: 72px; }
  .hint__text { white-space: normal; font-size: 13px; line-height: 1.3; }
  .empty__steps { grid-template-columns: 1fr; }
  .card__grid, .perf__grid { grid-template-columns: repeat(2, 1fr); }
  .perf__split { grid-template-columns: 1fr; gap: var(--s3); }
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
  .banner__name { font-size: 30px; }
  .card__tier { font-size: 30px; }
  .card__rank-icon { width: 72px; height: 72px; }
  .match { padding: 10px; gap: 10px; }
  .match__agent { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .card__grid { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tab-btn { flex: 1; justify-content: center; }
}

/* Tabela de atos no celular: colunas mais justas; o resto rola dentro do card. */
@media (max-width: 560px) {
  #seasons { min-width: 0; max-width: 100%; }
  .seasons-table th, .seasons-table td { padding: 10px 12px; }
}
