:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-alt: #101c30;
  --panel: rgba(8, 17, 30, 0.36);
  --panel-strong: rgba(10, 20, 34, 0.82);
  --panel-border: rgba(122, 160, 220, 0.14);
  --text: #eff6ff;
  --text-muted: #9fb2cf;
  --gold: #d4aa43;
  --blue: #3b82f6;
  --blue-strong: #1d4ed8;
  --red: #ef4444;
  --red-strong: #b91c1c;
  --green: #22c55e;
  --danger: #fb7185;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --glass-surface: rgba(8, 17, 31, 0.48);
  --glass-surface-strong: rgba(7, 15, 28, 0.7);
  --glass-border: rgba(184, 215, 255, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px) saturate(138%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 180ms ease;
  --container-width: 1320px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(3, 8, 16, 0.42) 0%, rgba(4, 10, 19, 0.58) 58%, rgba(3, 8, 15, 0.7) 100%),
    url("../assets/team-randomizer-background-v2.png") center top / cover fixed,
    #08111f;
  color: var(--text);
}

button,
input,
dialog {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}

.app-shell {
  position: relative;
  overflow: hidden;
  padding: 28px 0 48px;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(240px, 30vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.38;
}

.app-shell::before {
  top: 96px;
  left: -14vw;
  background: radial-gradient(circle at 65% 38%, rgba(61, 143, 255, 0.5), transparent 68%);
  animation: ambient-glow 16s ease-in-out infinite alternate;
}

.app-shell::after {
  top: 42vh;
  right: -16vw;
  background: radial-gradient(circle at 35% 55%, rgba(212, 170, 67, 0.34), transparent 68%);
  animation: ambient-glow 19s ease-in-out -5s infinite alternate-reverse;
}

.hero,
.layout-grid {
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 28px;
}

.hero__badge,
.status-pill,
.nav-chip,
.team-card__badge,
.summary-card span,
.result-item__lane,
.info-list li::before {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  border-radius: 999px;
  background: rgba(9, 17, 30, 0.72);
  color: var(--gold);
  font-size: 0.78rem;
  backdrop-filter: blur(6px);
}

.hero__content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(239, 68, 68, 0.08), transparent 26%),
    rgba(7, 15, 28, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero__eyebrow,
.panel__eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.player-entry h3,
.list-header h3,
.dialog h3 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.hero__description {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: 280px;
}

.nav-chip,
.status-pill,
.team-card__badge,
.result-item__lane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-chip {
  padding: 12px 16px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  background: rgba(7, 16, 28, 0.72);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.nav-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 160, 220, 0.36);
  background: rgba(18, 30, 48, 0.88);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel--glass {
  position: relative;
  overflow: hidden;
}

.panel--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(59, 130, 246, 0.06), transparent 36%),
    linear-gradient(305deg, rgba(239, 68, 68, 0.05), transparent 32%);
  pointer-events: none;
}

.panel__header,
.player-entry__top,
.list-header,
.draw-controls,
.result-actions,
.dialog__actions,
.player-entry__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel__header--controls {
  justify-content: flex-end;
  min-height: 42px;
}

.setup-panel {
  min-width: 0;
}

.info-panel {
  align-self: start;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 16px;
  background: rgba(6, 13, 22, 0.92);
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.field input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}

.field--search {
  min-width: min(100%, 320px);
}

.team-name-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

.team-name-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.player-entry {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 22px;
  background: rgba(5, 11, 20, 0.8);
}

.autocomplete {
  position: relative;
  margin-top: 18px;
}

.autocomplete__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  max-height: 280px;
  padding: 12px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  border-radius: 18px;
  background: rgba(8, 15, 24, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.autocomplete__dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(122, 160, 220, 0.1);
  border-radius: 14px;
  background: rgba(12, 23, 39, 0.94);
  color: var(--text);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.suggestion-item:hover,
.suggestion-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(16, 28, 46, 1);
}

.suggestion-item small {
  color: var(--text-muted);
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  transition:
    transform var(--transition),
    filter var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  overflow: hidden;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: saturate(0.6);
}

.button--primary {
  background: linear-gradient(135deg, #c48a19, #e8c56d);
  color: #0d1626;
  box-shadow: 0 12px 24px rgba(212, 170, 67, 0.22);
}

.button--secondary {
  background: rgba(20, 31, 47, 0.92);
  color: var(--text);
  border: 1px solid rgba(122, 160, 220, 0.14);
}

.button--blue {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.button--red {
  background: linear-gradient(135deg, #dc2626, #f87171);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.26);
}

.button--ghost {
  background: rgba(9, 17, 29, 0.94);
  color: var(--text);
  border: 1px solid rgba(122, 160, 220, 0.12);
}

.button--success {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.button--danger {
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.ripple-target::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 54%);
  transform: scale(0);
  opacity: 0;
  transition:
    transform 380ms ease,
    opacity 380ms ease;
}

.ripple-target:active::after {
  transform: scale(3.4);
  opacity: 1;
  transition: 0s;
}

.status-pill {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(10, 18, 30, 0.92);
  border: 1px solid rgba(122, 160, 220, 0.14);
  color: var(--text-muted);
}

.status-pill--muted {
  color: var(--gold);
}

.list-header {
  margin-top: 28px;
}

.list-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
}

.player-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.player-card,
.history-card,
.toast,
.summary-card,
.result-item {
  animation: fadeUp 280ms ease;
}

.player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.1);
  border-radius: 20px;
  background: rgba(8, 15, 27, 0.9);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 160, 220, 0.22);
  background: rgba(13, 22, 38, 0.96);
}

.player-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.player-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.player-card__rank {
  color: var(--text-muted);
}

.selected-player-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.selected-player-badge {
  display: inline-grid;
  width: 24px;
  height: 24px;
  object-fit: contain;
  place-items: center;
  border: 1px solid rgba(244, 202, 98, 0.3);
  border-radius: 8px;
  background: rgba(113, 78, 17, 0.2);
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 28, 45, 0.88);
  border: 1px solid rgba(122, 160, 220, 0.12);
}

.chip--leader {
  color: #ffdd8a;
}

.chip--inactive {
  color: var(--text-muted);
}

.player-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
  background: rgba(17, 29, 47, 0.94);
  color: var(--text);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button--remove:hover {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(74, 18, 32, 0.54);
}

.draw-controls {
  margin-top: 24px;
}

.draw-controls .button,
.result-actions .button {
  flex: 1;
}

.empty-state {
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed rgba(122, 160, 220, 0.2);
  border-radius: 22px;
  background: rgba(7, 14, 25, 0.62);
  color: var(--text-muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state--large {
  min-height: 260px;
  display: grid;
  place-content: center;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-list li::before {
  content: ">";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.summary-grid {
  margin-top: 28px;
}

.summary-card {
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 20px;
  background: rgba(8, 15, 27, 0.84);
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.summary-card--blue {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 62%),
    rgba(8, 15, 27, 0.84);
}

.summary-card--red {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.12), transparent 62%),
    rgba(8, 15, 27, 0.84);
}

.result-panel,
.history-panel,
.ranking-panel {
  grid-column: 1 / -1;
}

.result-content {
  margin-top: 22px;
}

.result-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  background: rgba(8, 15, 27, 0.88);
}

.team-card--blue {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 58%),
    rgba(8, 15, 27, 0.88);
}

.team-card--red {
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.16), transparent 58%),
    rgba(8, 15, 27, 0.88);
}

.team-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-card__subtitle {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.team-card__badge {
  min-width: 86px;
  min-height: 40px;
  background: rgba(7, 16, 29, 0.7);
  border: 1px solid rgba(122, 160, 220, 0.14);
}

.team-card__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 18, 31, 0.94);
  border: 1px solid rgba(122, 160, 220, 0.12);
}

.result-item__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.result-item__leader {
  color: var(--gold);
}

.result-item__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.result-item--red .result-item__name {
  justify-content: flex-end;
  text-align: right;
}

.result-item--red .result-item__meta {
  justify-content: flex-start;
}

.rating-caption,
.balance-banner small,
.rating-cell small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.balance-banner small {
  display: block;
  margin-top: 4px;
}

.rating-cell {
  display: grid;
  gap: 5px;
}

.result-item__lane {
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  background: rgba(17, 29, 47, 0.92);
  color: var(--text-muted);
}

.result-item__lane img {
  width: 19px;
  height: 19px;
  margin-right: 6px;
  object-fit: contain;
}

.result-actions {
  margin-top: 20px;
}

.history-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.history-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  background: rgba(8, 15, 27, 0.88);
}

.history-card__top,
.history-card__teams,
.history-card__actions,
.history-card__winner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.history-card__top {
  align-items: flex-start;
}

.history-card__date {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.history-card__mode {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 29, 47, 0.92);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-card__teams {
  margin-top: 18px;
}

.history-card__team {
  flex: 1;
  min-width: 240px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  background: rgba(11, 20, 35, 0.96);
}

.history-card__team--blue {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.history-card__team--red {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.history-card__team h3 {
  margin: 0 0 12px;
}

.history-card__players {
  display: grid;
  gap: 8px;
}

.history-card__players span {
  color: var(--text-muted);
}

.history-card__winner {
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(122, 160, 220, 0.12);
}

.history-card__winner strong {
  color: var(--text);
}

.history-card__actions {
  margin-top: 18px;
}

.history-card__actions .button {
  flex: 1;
  min-width: 170px;
}

.table-wrapper {
  margin-top: 22px;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  border-radius: 20px;
  overflow: hidden;
}

.ranking-table thead {
  background: rgba(15, 27, 44, 0.92);
}

.ranking-table th,
.ranking-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(122, 160, 220, 0.08);
}

.ranking-table tbody tr {
  background: rgba(8, 15, 27, 0.86);
  transition: background var(--transition);
}

.ranking-table tbody tr:hover {
  background: rgba(13, 22, 38, 0.98);
}

.ranking-table tbody tr.rank-1 td:first-child {
  color: #f7d36f;
  font-weight: 800;
}

.ranking-table tbody tr.rank-2 td:first-child {
  color: #d2d9e6;
  font-weight: 800;
}

.ranking-table tbody tr.rank-3 td:first-child {
  color: #ce8d53;
  font-weight: 800;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.spinner-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 320px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  background: rgba(9, 17, 29, 0.96);
  box-shadow: var(--shadow);
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(122, 160, 220, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  gap: 12px;
  width: min(100% - 2rem, 360px);
}

.toast {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  background: rgba(9, 17, 29, 0.98);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.34);
}

.toast--error {
  border-color: rgba(251, 113, 133, 0.38);
}

.toast--info {
  border-color: rgba(96, 165, 250, 0.38);
}

.toast__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast__title {
  font-weight: 800;
}

.toast__message {
  color: var(--text-muted);
  line-height: 1.55;
}

.toast__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.toast__close {
  border: 0;
  background: none;
  color: var(--text-muted);
}

.dialog {
  width: min(100% - 2rem, 460px);
  padding: 0;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 26px;
  background: rgba(7, 15, 28, 0.98);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(3, 7, 14, 0.74);
  backdrop-filter: blur(10px);
}

.dialog__content {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.dialog__message {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.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;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .panel__header,
  .player-entry__top,
  .list-header,
  .draw-controls,
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding-top: 20px;
  }

  .hero__content,
  .panel {
    padding: 22px;
  }

  .team-name-grid,
  .result-teams {
    grid-template-columns: 1fr;
  }

  .draw-controls,
  .result-actions,
  .dialog__actions,
  .history-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .player-card,
  .result-item,
  .history-card__top,
  .history-card__winner {
    flex-direction: column;
    align-items: stretch;
  }

  .player-card__actions {
    justify-content: stretch;
  }

  .player-card__actions > * {
    flex: 1;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Campeonato */
.championship-panel {
  grid-column: 1 / -1;
}

.championship-page__heading,
.championship-overview__header,
.championship-roster-heading,
.championship-draw-result__header,
.admin-championship-section__intro,
.admin-championship-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.championship-page__heading h2,
.championship-overview h2,
.championship-roster-heading h3,
.championship-draw-result h2,
.championship-team-card h3,
.admin-championship-card h3,
.admin-championship-section h3 {
  margin: 0;
}

.championship-switcher {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  padding-bottom: 4px;
  overflow-x: auto;
}

.championship-switcher__item {
  display: grid;
  flex: 0 0 min(280px, 82vw);
  gap: 6px;
  padding: 15px 17px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 18px;
  background: rgba(7, 15, 27, 0.78);
  color: var(--text);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.championship-switcher__item:hover,
.championship-switcher__item.is-active {
  border-color: rgba(212, 170, 67, 0.56);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.4), rgba(8, 15, 27, 0.88));
  transform: translateY(-1px);
}

.championship-switcher__item span,
.championship-overview p,
.championship-login-note,
.championship-draw-result__hint,
.admin-championship-card p,
.admin-championship-section__intro p {
  color: var(--text-muted);
}

.championship-switcher__item span {
  font-size: 0.8rem;
}

.championship-overview {
  padding: 24px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), transparent 52%),
    rgba(7, 15, 27, 0.78);
}

.championship-overview__header {
  align-items: flex-start;
}

.championship-overview__header p:last-child {
  max-width: 680px;
  margin: 9px 0 0;
  line-height: 1.55;
}

.championship-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: min(100%, 300px);
}

.championship-overview__stats span {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 15px;
  background: rgba(6, 13, 24, 0.6);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.championship-overview__stats strong {
  color: var(--gold);
  font-size: 1.35rem;
}

.championship-role-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 18px;
}

.championship-role-guide--viewer {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(7, 15, 27, 0.56));
}

.championship-role-guide--admin {
  border-color: rgba(212, 170, 67, 0.28);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.18), rgba(7, 15, 27, 0.56));
}

.championship-role-guide strong {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
}

.championship-role-guide p:last-child {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.championship-role-guide__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.championship-add-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(122, 160, 220, 0.12);
}

.championship-add-player__hint {
  grid-column: 1 / -1;
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.championship-login-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(113, 78, 17, 0.12);
  line-height: 1.5;
}

.championship-roster-heading {
  margin-top: 28px;
}

.championship-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.championship-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 16px;
  background: rgba(7, 15, 27, 0.8);
}

.championship-player strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-player__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.77rem;
}

.championship-player .icon-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.championship-actions {
  display: flex;
  margin-top: 22px;
}

.championship-actions .button {
  width: 100%;
}

.championship-draw-result {
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(122, 160, 220, 0.14);
}

.championship-draw-result__hint {
  margin: 9px 0 0;
  line-height: 1.5;
}

.championship-draw-preview__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.championship-saved-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: rgba(25, 135, 84, 0.12);
  color: var(--text-muted);
  line-height: 1.5;
}

.championship-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.championship-team-card {
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 21px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 64%),
    rgba(7, 15, 27, 0.88);
}

.championship-team-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.championship-team-card header span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.championship-team-card > header > strong {
  color: var(--gold);
  font-size: 0.86rem;
}

.championship-team-card__players {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.championship-team-card .championship-player {
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(5, 11, 20, 0.72);
}

.championship-left-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(212, 170, 67, 0.34);
  border-radius: 18px;
  background: rgba(113, 78, 17, 0.1);
}

.championship-left-out h3 {
  margin: 0;
}

.championship-left-out__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.championship-empty-draw {
  margin-top: 24px;
}

.admin-championship-section,
.admin-championship-card {
  display: grid;
  gap: 18px;
}

.admin-championship-section__intro,
.admin-championship-card {
  align-items: flex-start;
}

.admin-championship-section__intro p,
.admin-championship-card p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.admin-championship-list {
  display: grid;
  gap: 12px;
}

.admin-championship-card {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 17px;
  border: 1px solid rgba(122, 160, 220, 0.13);
  border-radius: 17px;
  background: rgba(7, 15, 27, 0.72);
}

.admin-championship-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 700px) {
  .championship-page__heading,
  .championship-overview__header,
  .championship-role-guide,
  .championship-roster-heading,
  .championship-draw-result__header,
  .admin-championship-section__intro,
  .championship-left-out,
  .admin-championship-card {
    align-items: stretch;
    flex-direction: column;
  }

  .championship-add-player,
  .admin-championship-card {
    grid-template-columns: 1fr;
  }

  .championship-draw-preview__actions {
    grid-template-columns: 1fr;
  }

  .admin-championship-card__actions {
    justify-content: flex-start;
  }

  .admin-championship-card__actions .button {
    flex: 1 1 auto;
  }

  .championship-overview__stats {
    width: 100%;
  }

  .championship-role-guide__badge {
    align-self: flex-start;
  }

  .championship-left-out__list {
    justify-content: flex-start;
  }
}

/* Configuração e acompanhamento de formatos de campeonato */
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 16px;
  background: rgba(6, 13, 22, 0.92);
  color: var(--text);
  outline: none;
}

.field select:focus,
.field textarea:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.championship-creation-settings {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 18px;
  background: rgba(5, 11, 20, 0.58);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.championship-phase-series,
.championship-points-grid,
.championship-playoffs-settings,
.championship-tiebreakers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.championship-points-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.championship-playoffs-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  border-left: 3px solid rgba(212, 170, 67, 0.62);
  border-radius: 0 14px 14px 0;
  background: rgba(113, 78, 17, 0.09);
}

.championship-tiebreakers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.championship-tiebreakers > span {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.championship-tournament {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(122, 160, 220, 0.14);
}

.championship-tournament__header,
.tournament-round > header,
.tournament-standings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.championship-tournament__header h2,
.tournament-round h3,
.tournament-standings h2,
.championship-team-roster h3 {
  margin: 0;
}

.championship-tournament__header > div > p:last-child {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.championship-tournament__summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.4fr);
  gap: 14px;
}

.championship-tournament__progress,
.championship-tournament__rules {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid rgba(122, 160, 220, 0.13);
  border-radius: 18px;
  background: rgba(5, 11, 20, 0.62);
}

.championship-tournament__progress > div {
  display: grid;
  gap: 4px;
}

.championship-tournament__progress span,
.championship-tournament__rules > span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.championship-tournament__progress strong {
  color: var(--text);
  font-size: 0.94rem;
}

.championship-tournament__progress small {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
}

.championship-tournament__progress progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(122, 160, 220, 0.14);
  accent-color: var(--gold);
}

.championship-tournament__progress progress::-webkit-progress-bar {
  background: rgba(122, 160, 220, 0.14);
}

.championship-tournament__progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--gold), #ffe4a2);
}

.championship-tournament__progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--gold), #ffe4a2);
}

.championship-tournament__settings {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.championship-tournament__settings span,
.tournament-round > header > span,
.tournament-match__status,
.tournament-standing-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 999px;
  background: rgba(7, 15, 27, 0.76);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.championship-next-match,
.championship-champion {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid rgba(212, 170, 67, 0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.28), rgba(7, 15, 27, 0.82));
}

.championship-next-match > span,
.championship-champion > span,
.championship-next-match small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.championship-next-match > strong,
.championship-champion > strong {
  color: #ffe4a2;
  font-size: 1.35rem;
}

.championship-team-roster {
  padding: 20px;
  border: 1px solid rgba(122, 160, 220, 0.13);
  border-radius: 20px;
  background: rgba(7, 15, 27, 0.7);
}

.championship-team-roster summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.championship-team-roster summary::-webkit-details-marker {
  display: none;
}

.championship-team-roster summary > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.championship-team-roster[open] summary {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.12);
}

.tournament-standings,
.tournament-round {
  padding: 20px;
  border: 1px solid rgba(122, 160, 220, 0.13);
  border-radius: 20px;
  background: rgba(7, 15, 27, 0.7);
}

.tournament-standings__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.tournament-standings__table th,
.tournament-standings__table td {
  padding: 13px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.1);
  text-align: left;
}

.tournament-standing-status--qualified {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(21, 128, 61, 0.16);
  color: #86efac;
}

.tournament-standing-status--eliminated {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(190, 18, 60, 0.15);
  color: #fda4af;
}

.tournament-rounds {
  display: grid;
  gap: 16px;
}

.tournament-round > header {
  align-items: flex-start;
}

.tournament-round__matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tournament-match {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 17px;
  background: rgba(5, 11, 20, 0.72);
}

.tournament-match.is-available {
  border-color: rgba(212, 170, 67, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 162, 0.08);
}

.tournament-match--completed {
  opacity: 0.75;
}

.tournament-match__header,
.tournament-match__teams,
.tournament-match__score-inputs,
.tournament-match__side-choice > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tournament-match__header > span:first-child {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.tournament-match__teams {
  padding: 12px;
  border-radius: 13px;
  background: rgba(14, 25, 41, 0.82);
  text-align: center;
}

.tournament-match__teams strong {
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-match__teams span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.tournament-match__winner,
.tournament-match__side,
.tournament-match__side-choice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.tournament-match__winner strong,
.tournament-match__side strong,
.tournament-match__side-choice strong {
  color: var(--text);
}

.tournament-match__result {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 160, 220, 0.1);
}

.tournament-match__admin-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
}

.tournament-match__score-inputs > span {
  align-self: flex-end;
  min-height: 52px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}

.championship-fearless-draft {
  padding: 12px;
  border: 1px solid rgba(212, 170, 67, 0.2);
  border-radius: 14px;
  background: rgba(113, 78, 17, 0.08);
}

.championship-fearless-draft summary {
  color: #ffe4a2;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.championship-fearless-draft p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.championship-fearless-draft__game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.championship-fearless-draft__game > strong {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .championship-phase-series,
  .championship-points-grid,
  .championship-playoffs-settings,
  .championship-tiebreakers,
  .championship-fearless-draft__game {
    grid-template-columns: 1fr;
  }

  .championship-tournament__header,
  .tournament-round > header,
  .tournament-standings__header {
    align-items: stretch;
    flex-direction: column;
  }

  .championship-tournament__summary {
    grid-template-columns: 1fr;
  }

  .championship-team-roster summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tournament-match__teams {
    gap: 7px;
    font-size: 0.86rem;
  }

  .tournament-match__side-choice > div {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero__badge,
  .nav-chip,
  .status-pill,
  .button,
  .icon-button,
  .team-card__badge,
  .result-item__lane {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .summary-card strong {
    font-size: 1.72rem;
  }
}

/* Version 2.1 layout refinements */
.hero {
  margin-bottom: 24px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: url("../assets/team-randomizer-header-v2.png") center 48% / cover;
}

.hero__topbar {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(4, 10, 20, 0.72), rgba(4, 12, 25, 0.34) 48%, rgba(4, 10, 20, 0.68));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.hero__topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.15);
  background: rgba(4, 10, 20, 0.14);
  backdrop-filter: blur(4px);
}

.hero__topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero__brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(234, 190, 91, 0.58);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.hero__brand strong,
.hero__brand small {
  display: block;
}

.hero__brand strong {
  font-size: 0.98rem;
}

.hero__brand small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero__content {
  position: relative;
  display: block;
  z-index: 0;
  margin-top: 12px;
  padding: 25px 30px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(4, 10, 20, 0.58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(2rem, 4vw, 3.05rem);
}

.hero__description {
  max-width: 620px;
  line-height: 1.55;
}

.hero__nav {
  justify-content: flex-end;
  min-width: 0;
}

.hero__topbar .nav-chip,
.hero__topbar .button--compact {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.auth-bar,
.auth-user-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-user-panel__identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.auth-user-panel__avatar {
  display: none;
}

.auth-user-panel__email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-chip {
  min-height: 42px;
  padding: 0 14px;
}

.players-directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.player-directory-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.player-directory-filters .field {
  margin: 0;
}

.player-directory-stars-filter {
  min-width: 175px;
}

.player-directory-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 16px;
  background: rgba(6, 14, 26, 0.58);
  color: var(--text);
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.player-directory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 170, 67, 0.5);
  background: rgba(14, 27, 45, 0.7);
}

.player-directory-card__top,
.player-directory-card__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 700px) {
  .players-directory-panel .panel__header--controls {
    align-items: stretch;
    flex-direction: column;
  }

  .player-directory-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .player-directory-filters .field,
  .player-directory-stars-filter {
    width: 100%;
  }
}

.player-directory-card__top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-directory-card__details {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.layout-grid {
  grid-template-columns: minmax(0, 1fr);
}

.setup-panel {
  grid-column: 1 / -1;
}

body.is-visitor .requires-admin,
body.is-visitor .requires-admin-nav {
  display: none !important;
}

.history-card {
  padding: 0;
  border-color: rgba(122, 160, 220, 0.14);
  overflow: hidden;
}

.history-card--blue-win {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(105deg, rgba(21, 78, 172, 0.38), rgba(8, 15, 27, 0.92) 55%);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.15);
}

.history-card--red-win {
  border-color: rgba(239, 68, 68, 0.58);
  background: linear-gradient(255deg, rgba(164, 29, 40, 0.46), rgba(8, 15, 27, 0.92) 55%);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.24);
}

.history-card__top,
.history-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.history-card__top {
  border-bottom: 1px solid rgba(122, 160, 220, 0.12);
}

.history-card__top h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.history-card__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.history-card__battle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  padding: 22px;
}

.history-card__team {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 18px;
  background: rgba(6, 13, 23, 0.72);
}

.history-card__team--blue {
  border-color: rgba(96, 165, 250, 0.28);
}

.history-card__team--red {
  border-color: rgba(248, 113, 113, 0.3);
  text-align: right;
}

.history-card__team.is-winner {
  transform: translateY(-2px);
}

.history-card__team--blue.is-winner {
  border-color: rgba(96, 165, 250, 0.9);
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.48), rgba(8, 18, 36, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.history-card__team--red.is-winner {
  border-color: rgba(248, 113, 113, 0.92);
  background: linear-gradient(215deg, rgba(185, 28, 28, 0.55), rgba(39, 10, 17, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.history-card__team-heading span,
.history-card__winner span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-card__team-heading h3 {
  margin: 6px 0 14px;
  font-size: 1.2rem;
}

.history-card__team--red .history-card__players {
  justify-items: end;
}

.history-player__name {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #cddbf0;
  font-size: 0.88rem;
}

.history-player {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.history-card__team--red .history-player {
  justify-content: flex-end;
}

.history-champion-button,
.history-champion-icon,
.history-lane-button,
.history-lane-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(122, 160, 220, 0.24);
  border-radius: 8px;
  background: rgba(5, 11, 20, 0.82);
}

.history-champion-button,
.history-lane-button {
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.history-champion-button:hover,
.history-champion-button:focus-visible,
.history-lane-button:hover,
.history-lane-button:focus-visible {
  border-color: rgba(212, 170, 67, 0.9);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(212, 170, 67, 0.16);
}

.history-champion-button.is-selected,
.history-champion-icon.is-selected,
.history-lane-button.is-selected,
.history-lane-icon.is-selected {
  border-color: rgba(212, 170, 67, 0.58);
}

.history-champion-button img,
.history-champion-icon img,
.history-lane-button img,
.history-lane-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champion-picker-dialog {
  width: min(100% - 2rem, 820px);
  max-height: min(820px, calc(100dvh - 2rem));
}

.champion-picker-dialog .dialog__content {
  max-height: calc(100dvh - 4rem);
  overflow: auto;
}

.champion-picker {
  display: grid;
  width: 100%;
  flex-basis: 100%;
  gap: 10px;
  margin-top: 3px;
  padding: 12px;
  border: 1px solid rgba(212, 170, 67, 0.32);
  border-radius: 12px;
  background: rgba(4, 10, 18, 0.97);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.champion-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.champion-picker header > div {
  display: grid;
  gap: 2px;
}

.champion-picker header small {
  color: var(--text-muted);
}

.champion-picker__search {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(122, 160, 220, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef5ff;
}

.champion-picker__search:focus {
  border-color: rgba(212, 170, 67, 0.82);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 170, 67, 0.14);
}

.champion-picker__clear {
  justify-self: start;
  padding: 6px 8px;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
  cursor: pointer;
}

.champion-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  max-height: 360px;
  gap: 7px;
  overflow-y: auto;
  padding-right: 4px;
}

.champion-picker__option {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7f7;
  cursor: pointer;
  text-align: center;
}

.champion-picker__option[hidden] {
  display: none !important;
}

.champion-picker__option:hover,
.champion-picker__option:focus-visible {
  border-color: rgba(212, 170, 67, 0.75);
  outline: none;
  background: rgba(212, 170, 67, 0.14);
}

.champion-picker__option img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
}

.champion-picker__option span {
  overflow: hidden;
  color: inherit;
  font-size: 0.66rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-picker__empty {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

.lane-picker-dialog {
  width: min(100% - 2rem, 520px);
  max-height: min(520px, calc(100dvh - 2rem));
}

.lane-picker {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(122, 160, 220, 0.32);
  border-radius: 12px;
  background: rgba(4, 10, 18, 0.97);
  text-align: left;
}

.lane-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lane-picker header > div {
  display: grid;
  gap: 2px;
}

.lane-picker header small {
  color: var(--text-muted);
}

.lane-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lane-picker__option {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(122, 160, 220, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7f7;
  cursor: pointer;
}

.lane-picker__option:hover,
.lane-picker__option:focus-visible,
.lane-picker__option.is-selected {
  border-color: rgba(212, 170, 67, 0.78);
  outline: none;
  background: rgba(212, 170, 67, 0.14);
}

.lane-picker__option img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.lane-picker__option span {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}

.history-card__versus {
  display: grid;
  align-self: center;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(212, 170, 67, 0.36);
  border-radius: 50%;
  background: #111d30;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.history-card__footer {
  border-top: 1px solid rgba(122, 160, 220, 0.12);
}

.history-card--has-pending-changes {
  border-color: rgba(212, 170, 67, 0.66);
}

.history-card__pending-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 22px 2px;
  padding: 13px 14px;
  border: 1px solid rgba(212, 170, 67, 0.38);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(212, 170, 67, 0.16), rgba(212, 170, 67, 0.04));
  color: #f8e3a1;
  font-size: 0.82rem;
  font-weight: 800;
}

.history-card__pending-save > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-card__winner {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.history-card--blue-win .history-card__winner strong {
  color: #93c5fd;
}

.history-card--red-win .history-card__winner strong {
  color: #fda4af;
}

.history-card__actions {
  margin: 0;
}

.history-card__actions .button {
  min-width: auto;
}

.ranking-table {
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 15px 14px;
}

.admin-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 640px);
  visibility: hidden;
  pointer-events: none;
}

.admin-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.admin-panel__backdrop {
  grid-column: 1;
  background: rgba(2, 7, 14, 0.7);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 180ms ease;
}

.admin-panel__drawer {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  border-left: 1px solid rgba(122, 160, 220, 0.18);
  background: #0b1423;
  box-shadow: -24px 0 56px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.admin-panel.is-open .admin-panel__backdrop {
  opacity: 1;
}

.admin-panel.is-open .admin-panel__drawer {
  transform: translateX(0);
}

.admin-panel__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-panel__header h2 {
  margin: 0;
}

.admin-panel__nav {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 24px 0 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-panel__nav button,
.ranking-tab {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 10px;
  background: rgba(18, 30, 49, 0.84);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-panel__nav button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-panel__nav button.is-active,
.ranking-tab.is-active {
  border-color: rgba(212, 170, 67, 0.52);
  background: rgba(113, 78, 17, 0.42);
  color: #ffe4a2;
}

/* Perfil do jogador */
.profile-layout {
  display: grid;
  gap: 16px;
}

.profile-layout > * {
  animation: profile-reveal 460ms both;
}

.profile-layout > :nth-child(2) {
  animation-delay: 45ms;
}

.profile-layout > :nth-child(3) {
  animation-delay: 85ms;
}

.profile-layout > :nth-child(4) {
  animation-delay: 125ms;
}

.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(29, 78, 216, 0.2), transparent 42%),
    linear-gradient(300deg, rgba(212, 170, 67, 0.14), transparent 38%),
    rgba(8, 15, 27, 0.9);
}

.profile-hero::after {
  position: absolute;
  z-index: -1;
  top: -115%;
  right: -20%;
  width: min(500px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 68%);
  filter: blur(8px);
  animation: profile-ambient-glow 12s ease-in-out infinite alternate;
  content: "";
  pointer-events: none;
}

.profile-hero__header,
.profile-ratings,
.profile-teammates .panel__header,
.profile-champions .panel__header,
.profile-recent .panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-hero h2 {
  margin: 2px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.profile-hero__status {
  margin: 8px 0 0;
  color: #c5d4e9;
  font-size: 0.9rem;
}

.profile-ratings {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-ratings > div {
  display: grid;
  gap: 7px;
  min-width: 156px;
  padding: 11px 14px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 14px;
  background: rgba(3, 10, 21, 0.34);
}

.profile-rating--lane strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.profile-rating--lane img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.profile-ratings > div > span,
.profile-streak__eyebrow,
.profile-record > span,
.profile-form > span,
.profile-teammates__count,
.profile-badges__count {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 12px;
}

.profile-stats-grid .summary-card {
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
}

.profile-stats-grid .summary-card strong {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.profile-metric {
  position: relative;
  overflow: hidden;
}

.profile-metric::after {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 78px;
  height: 78px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
  content: "";
}

.profile-metric--positive {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
}

.profile-metric--accent {
  color: #f7d36f;
  border-color: rgba(212, 170, 67, 0.28);
}

.profile-tabs {
  display: flex;
  gap: 7px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
  background: rgba(5, 12, 22, 0.56);
  scrollbar-width: thin;
}

.profile-tab {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.profile-tab:hover,
.profile-tab:focus-visible {
  border-color: rgba(122, 160, 220, 0.3);
  color: var(--text);
  outline: none;
}

.profile-tab.is-active {
  border-color: rgba(212, 170, 67, 0.46);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.42), rgba(23, 39, 64, 0.62));
  color: #ffe4a2;
  box-shadow: inset 0 1px 0 rgba(255, 236, 181, 0.16);
}

.profile-tab:active {
  transform: translateY(1px);
}

.profile-tab-panel {
  min-width: 0;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(185px, 1fr));
  gap: 12px;
}

.profile-overview-card {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 18px;
  background: rgba(8, 15, 27, 0.86);
}

.profile-overview-card > span,
.profile-overview-card > div > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-overview-card > strong,
.profile-overview-card > div > strong {
  font-size: 1.25rem;
}

.profile-overview-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.profile-favorite-champion {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent 72%), rgba(8, 15, 27, 0.86);
}

.profile-favorite-champion > img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(212, 170, 67, 0.38);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

.profile-best-teammate {
  border-color: rgba(212, 170, 67, 0.22);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.14), transparent 72%), rgba(8, 15, 27, 0.86);
}

.profile-overview-card.is-empty {
  background: rgba(8, 15, 27, 0.64);
}

.summary-card--green {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.15), transparent 65%),
    rgba(8, 15, 27, 0.84);
}

.profile-momentum {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(145px, 0.9fr) minmax(220px, 1.2fr);
  gap: 12px;
}

.profile-streak,
.profile-record,
.profile-form {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 145px;
  padding: 20px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 18px;
  background: rgba(8, 15, 27, 0.86);
}

.profile-streak {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
}

.profile-streak::before {
  grid-row: 1 / span 3;
  width: 10px;
  height: 10px;
  align-self: center;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: none;
  content: "";
}

.profile-streak__eyebrow {
  grid-column: 2;
}

.profile-streak strong {
  grid-column: 2;
  grid-row: 2;
  color: #cbd5e1;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.profile-streak > span:last-child {
  grid-column: 2;
  grid-row: 3;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.profile-streak--win {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(125deg, rgba(22, 163, 74, 0.22), transparent 68%), rgba(8, 15, 27, 0.9);
}

.profile-streak--win::before {
  color: #86efac;
  background: #22c55e;
}

.profile-record--win strong {
  color: #86efac;
}

.profile-streak--win strong {
  color: #bbf7d0;
}

.profile-streak--loss {
  border-color: rgba(251, 113, 133, 0.38);
  background: linear-gradient(125deg, rgba(190, 24, 93, 0.22), transparent 68%), rgba(8, 15, 27, 0.9);
}

.profile-streak--loss::before {
  color: #fda4af;
  background: #fb7185;
}

.profile-record--loss strong {
  color: #fda4af;
}

.profile-streak--loss strong {
  color: #fecdd3;
}

.profile-record {
  position: relative;
  overflow: hidden;
}

.profile-record::after {
  position: absolute;
  right: -25px;
  bottom: -42px;
  width: 104px;
  height: 104px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
  content: "";
}

.profile-record strong {
  font-size: 2.25rem;
  line-height: 1;
}

.profile-record small,
.profile-form small,
.profile-teammates__note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.profile-record--win {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}

.profile-record--loss {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.26);
}

.profile-form {
  align-content: center;
}

.profile-form__results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-form__result {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
}

.profile-form__result--win {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.profile-form__result--loss {
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.profile-form__empty {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.profile-teammates .panel__header {
  margin-bottom: 18px;
}

.profile-teammates__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(212, 170, 67, 0.28);
  border-radius: 999px;
  color: #f7d36f;
  white-space: nowrap;
}

.profile-badges .panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-badges__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(212, 170, 67, 0.28);
  border-radius: 999px;
  color: #f7d36f;
  white-space: nowrap;
}

.profile-badges__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.profile-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(244, 202, 98, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.2), transparent 78%), rgba(5, 12, 22, 0.62);
}

.profile-badge__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(244, 202, 98, 0.15);
  font-size: 1.3rem;
}

.profile-badge__icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.profile-badge p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.profile-champions .panel__header {
  margin-bottom: 18px;
}

.profile-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.profile-champions__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(212, 170, 67, 0.28);
  border-radius: 999px;
  color: #f7d36f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-champions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.profile-champion-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent 78%), rgba(5, 12, 22, 0.62);
  animation: profile-reveal 420ms both;
  animation-delay: calc(var(--profile-item-index, 0) * 42ms);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.profile-champion-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 170, 67, 0.42);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent 78%), rgba(5, 12, 22, 0.72);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.profile-champion-card > img {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(212, 170, 67, 0.28);
  border-radius: 12px;
  object-fit: cover;
}

.profile-champion-card__details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-champion-card__details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-champion-card__details span,
.profile-champion-card__record span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.profile-champion-card__record {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.profile-champion-card__record strong {
  color: #86efac;
  font-size: 1rem;
}

.profile-champions__empty {
  margin: 0;
}

.profile-teammates__table-wrapper {
  margin-top: 0;
}

.profile-teammates__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.profile-teammates__table th,
.profile-teammates__table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(122, 160, 220, 0.1);
}

.profile-teammates__table th {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-teammates__table tbody tr:last-child td {
  border-bottom: 0;
}

.profile-teammates__table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.profile-win-rate {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-win-rate--positive {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.profile-win-rate--negative {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

.profile-win-rate--pending {
  background: rgba(122, 160, 220, 0.1);
  color: var(--text-muted);
}

.profile-teammates__note {
  margin: 13px 0 0;
}

.profile-teammates__empty {
  margin: 0;
}

.profile-recent .panel__header {
  margin-bottom: 18px;
}

.profile-recent__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-match-list {
  display: grid;
  gap: 10px;
  position: relative;
}

.profile-match-item {
  display: grid;
  grid-template-columns: 8px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 13px;
  background: rgba(4, 11, 21, 0.42);
  animation: profile-reveal 420ms both;
  animation-delay: calc(var(--profile-item-index, 0) * 42ms);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.profile-match-item:hover {
  transform: translateX(3px);
  background: rgba(15, 30, 50, 0.66);
}

.profile-match-item__marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.profile-match-item__champion {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(122, 160, 220, 0.22);
  border-radius: 10px;
  object-fit: cover;
}

.profile-match-item__details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-match-item__details small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.profile-match-item__details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-match-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-match-item__outcome {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(122, 160, 220, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-match-item--win {
  border-color: rgba(34, 197, 94, 0.28);
}

.profile-match-item--win .profile-match-item__marker,
.profile-match-item--win .profile-match-item__outcome {
  background: rgba(34, 197, 94, 0.14);
}

.profile-match-item--win .profile-match-item__marker {
  background: #22c55e;
}

.profile-match-item--win .profile-match-item__outcome {
  color: #86efac;
}

.profile-match-item--loss {
  border-color: rgba(251, 113, 133, 0.3);
}

.profile-match-item--loss .profile-match-item__marker {
  background: #fb7185;
}

.profile-match-item--loss .profile-match-item__outcome {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

.profile-match-item--pending {
  border-color: rgba(212, 170, 67, 0.3);
}

.profile-match-item--pending .profile-match-item__marker {
  background: var(--gold);
}

.profile-match-item--pending .profile-match-item__outcome {
  background: rgba(212, 170, 67, 0.14);
  color: #f7d36f;
}

@keyframes profile-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-ambient-glow {
  from {
    transform: translate3d(-8%, -5%, 0) scale(0.9);
  }

  to {
    transform: translate3d(12%, 12%, 0) scale(1.1);
  }
}

@media (max-width: 1080px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .profile-momentum {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

  .profile-overview-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-hero__header,
  .profile-teammates .panel__header,
  .profile-champions .panel__header,
  .profile-recent .panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero__header .button {
    width: 100%;
  }

  .profile-ratings > div {
    flex: 1;
  }

  .profile-stats-grid,
  .profile-momentum {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-section-actions {
    justify-content: flex-start;
  }

  .profile-match-item {
    grid-template-columns: 8px 38px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-match-item__champion {
    width: 38px;
    height: 38px;
  }

  .profile-match-item__outcome {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .profile-streak,
  .profile-record,
  .profile-form {
    min-height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-layout > *,
  .profile-champion-card,
  .profile-match-item,
  .profile-hero::after {
    animation: none;
  }

  .profile-tab,
  .profile-champion-card,
  .profile-match-item {
    transition: none;
  }
}

.admin-panel__content {
  flex: 1 1 0;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
}

.rating-audit {
  display: grid;
  gap: 16px;
}

.rating-audit__intro h3 {
  margin: 0;
}

.rating-audit__intro p:last-child {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.rating-audit__notice {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(212, 170, 67, 0.3);
  border-radius: 12px;
  background: rgba(113, 78, 17, 0.2);
  color: #f7dfaa;
  font-size: 0.84rem;
}

.rating-audit__notice span {
  color: var(--text-muted);
}

.rating-audit__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
  background: rgba(8, 15, 27, 0.52);
}

.rating-audit__filters .field:last-child {
  grid-column: 1 / -1;
}

.rating-audit__filters .field[hidden] {
  display: none;
}

.rating-audit__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rating-audit__table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
}

.rating-audit__table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
}

.rating-audit__table th,
.rating-audit__table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.1);
  text-align: left;
  vertical-align: middle;
}

.rating-audit__table tr:last-child td {
  border-bottom: 0;
}

.rating-audit__table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating-audit__empty {
  margin: 0;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.1);
  text-align: left;
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-rating-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-rating-card__punishment {
  display: block;
  margin-top: 4px;
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 700;
}

.punishment-dialog__options {
  display: grid;
  gap: 10px;
}

.punishment-dialog__options .button {
  width: 100%;
}

.admin-ranking-excluded-note {
  display: block;
  margin-top: 4px;
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-ranking-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.admin-ranking-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-ranking-switch__track {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(122, 160, 220, 0.34);
  border-radius: 999px;
  background: #26354a;
  transition: background var(--transition), border-color var(--transition);
}

.admin-ranking-switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9e7f7;
  content: "";
  transition: transform var(--transition), background var(--transition);
}

.admin-ranking-switch input:checked + .admin-ranking-switch__track {
  border-color: rgba(251, 113, 133, 0.85);
  background: var(--red-strong);
}

.admin-ranking-switch input:checked + .admin-ranking-switch__track::after {
  transform: translateX(18px);
  background: #fff1f2;
}

.admin-ranking-switch input:focus-visible + .admin-ranking-switch__track {
  outline: 3px solid rgba(59, 130, 246, 0.62);
  outline-offset: 3px;
}

.admin-ranking-switch__copy {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

.admin-ranking-switch__copy strong {
  font-size: 0.76rem;
}

.admin-ranking-switch__copy small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.ranking-scoring {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-player-section,
.admin-information {
  display: grid;
  gap: 16px;
}

.admin-player-section__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.58);
}

.admin-player-section__intro h3,
.admin-information h3,
.admin-info-card h4 {
  margin: 0;
}

.admin-player-section__intro p:not(.panel__eyebrow),
.admin-info-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-player-create {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 8px;
  width: min(100%, 430px);
}

.admin-player-create input {
  min-width: 0;
}

.admin-rating-card,
.admin-section-copy,
.manual-match-form {
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.58);
}

.admin-ratings-list {
  display: grid;
  gap: 12px;
}

.admin-ratings-sticky {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 0 8px;
  background: linear-gradient(180deg, #0b1423 82%, rgba(11, 20, 35, 0));
  box-shadow: 0 14px 18px -18px rgba(0, 0, 0, 0.9);
}

.admin-ratings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 202, 98, 0.28);
  border-radius: var(--radius-md);
  background: rgba(5, 12, 22, 0.58);
}

.admin-ratings-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-ratings-toolbar p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-ratings-filters {
  display: grid;
  grid-template-columns: minmax(145px, 1.7fr) repeat(4, minmax(66px, 1fr)) auto;
  gap: 6px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 14px;
  background: rgba(5, 12, 22, 0.76);
}

.admin-ratings-filter {
  display: grid;
  min-width: 0;
}

.admin-ratings-filter--search {
  grid-column: auto;
}

.admin-ratings-filter input,
.admin-ratings-filter select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(122, 160, 220, 0.2);
  border-radius: 9px;
  background: #09121f;
  color: var(--text);
}

.admin-ratings-filters [data-admin-reset-rating-filters] {
  min-height: 34px;
  align-self: end;
  padding-inline: 10px;
  white-space: nowrap;
}

.admin-ratings-filter-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-ratings-filter-empty {
  margin: 0;
}

.admin-rating-card {
  display: grid;
  gap: 14px;
}

.admin-rating-card__soloqueue-editor {
  display: grid;
  gap: 9px;
}

.admin-rating-card__lanes {
  display: grid;
  grid-template-columns: minmax(115px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 13px;
  background: rgba(4, 11, 21, 0.32);
}

.admin-rating-card__lanes > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-rating-card__lanes > div:first-child > span {
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-rating-card__lanes small {
  color: var(--text-muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.admin-rating-card__lane-pickers {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.admin-lane-picker {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.admin-lane-picker__label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-lane-picker__current,
.admin-lane-picker__option {
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 160, 220, 0.22);
  background: rgba(9, 18, 31, 0.84);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.admin-lane-picker__current {
  width: 47px;
  height: 47px;
  padding: 7px;
  border-radius: 13px;
}

.admin-lane-picker__current:hover,
.admin-lane-picker__current:focus-visible,
.admin-lane-picker__current[aria-expanded="true"] {
  border-color: rgba(102, 178, 255, 0.82);
  background: rgba(22, 71, 130, 0.38);
  box-shadow: 0 7px 18px rgba(3, 10, 23, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.admin-lane-picker__current img,
.admin-lane-picker__option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-lane-picker__options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(102, 178, 255, 0.34);
  border-radius: 13px;
  background: rgba(5, 14, 28, 0.98);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
}

.admin-lane-picker__options[hidden] {
  display: none;
}

.admin-lane-picker__option {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 10px;
}

.admin-lane-picker__option:hover,
.admin-lane-picker__option:focus-visible,
.admin-lane-picker__option.is-selected {
  border-color: rgba(244, 202, 98, 0.8);
  background: rgba(244, 202, 98, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.admin-rating-card__soloqueue-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(102, 178, 255, 0.48);
  border-radius: 13px;
  background:
    linear-gradient(105deg, rgba(37, 99, 235, 0.28), rgba(10, 24, 46, 0.74) 54%, rgba(212, 170, 67, 0.12)),
    rgba(8, 18, 32, 0.72);
  box-shadow: inset 0 1px 0 rgba(220, 241, 255, 0.14), 0 9px 22px rgba(3, 10, 23, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.admin-rating-card__soloqueue-toggle:hover,
.admin-rating-card__soloqueue-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(147, 205, 255, 0.8);
  background:
    linear-gradient(105deg, rgba(37, 99, 235, 0.4), rgba(17, 42, 76, 0.82) 54%, rgba(212, 170, 67, 0.2)),
    rgba(8, 18, 32, 0.8);
  box-shadow: inset 0 1px 0 rgba(236, 248, 255, 0.2), 0 13px 28px rgba(20, 86, 180, 0.2);
}

.admin-rating-card__soloqueue-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(137, 202, 255, 0.5);
  border-radius: 9px;
  background: rgba(28, 105, 205, 0.3);
  color: #d8efff;
  font-size: 0.86rem;
}

.admin-rating-card__soloqueue-label {
  color: #eff8ff;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-rating-card__soloqueue-toggle small {
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(184, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 12, 27, 0.35);
  color: #bcd8f5;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rating-card__soloqueue-chevron {
  color: var(--gold);
  font-size: 1rem;
  transition: transform var(--transition);
}

.is-soloq-editor-open .admin-rating-card__soloqueue-chevron {
  transform: rotate(180deg);
}

.admin-rating-card__soloqueue-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 12px;
  background: rgba(4, 11, 21, 0.32);
}

.admin-rating-card__soloqueue-fields[hidden] {
  display: none;
}

.admin-rating-card__soloqueue-fields [data-soloq-division-field][hidden],
.admin-rating-card__soloqueue-fields [data-soloq-pdl-field][hidden] {
  display: none !important;
}

.admin-rating-card__soloqueue {
  gap: 5px;
}

.admin-rating-card__soloqueue > span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-rating-card__soloqueue select,
.admin-rating-card__soloqueue input {
  min-height: 40px;
  padding-inline: 10px;
}

.admin-rating-card.is-filtered-out,
.admin-ratings-filter-empty[hidden] {
  display: none !important;
}

.admin-rating-card.is-modified {
  border-color: rgba(244, 202, 98, 0.72);
  box-shadow: 0 0 0 1px rgba(244, 202, 98, 0.18);
}

.admin-information__intro {
  padding-bottom: 20px;
}

.admin-info-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-info-stats article,
.admin-info-card {
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
  background: rgba(5, 12, 22, 0.5);
}

.admin-info-stats article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.admin-info-stats span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-info-stats strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.admin-information__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-info-card {
  padding: 16px;
}

.admin-info-card .info-list {
  gap: 8px;
  margin-top: 14px;
}

.admin-info-card .info-list li {
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-season-card {
  border-color: rgba(244, 202, 98, 0.3);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.2), transparent 70%), rgba(5, 12, 22, 0.62);
}

.admin-season-card__heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-season-card__heading .panel__eyebrow {
  margin: 0 0 4px;
}

.admin-season-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(244, 202, 98, 0.35);
  border-radius: 12px;
  color: var(--gold);
  background: rgba(244, 202, 98, 0.1);
}

.admin-season-card__reset {
  width: 100%;
  margin-top: 18px;
}

.admin-season-card small {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-season-history {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.42);
}

.admin-season-history__heading,
.season-history-card__header,
.season-history-card__stats,
.season-history-card__top li,
.season-history-card__rewards li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-season-history__heading h3,
.season-history-card h4 {
  margin: 0;
}

.admin-season-history__heading > span {
  padding: 5px 9px;
  border: 1px solid rgba(122, 160, 220, 0.2);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-season-history__list {
  display: grid;
  gap: 10px;
}

.admin-season-history__empty {
  margin: 0;
}

.season-history-card {
  padding: 15px;
  border: 1px solid rgba(212, 170, 67, 0.2);
  border-radius: 14px;
  background: rgba(8, 15, 27, 0.65);
}

.season-history-card__header time,
.season-history-card__top p,
.season-history-card__top small,
.season-history-card__rewards span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.season-history-card__stats {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 14px 0;
}

.season-history-card__stats span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.season-history-card__stats strong {
  color: #dbeafe;
}

.season-history-card__top > strong {
  display: block;
  margin-bottom: 9px;
}

.season-history-card__top ol,
.season-history-card__rewards ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
}

.season-history-card__top li,
.season-history-card__rewards li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(122, 160, 220, 0.08);
}

.season-history-card__top li:last-child,
.season-history-card__rewards li:last-child {
  border-bottom: 0;
}

.season-history-card__rewards {
  margin-top: 14px;
}

.season-history-card__rewards summary {
  cursor: pointer;
  color: #f7d36f;
  font-size: 0.84rem;
  font-weight: 800;
}

.season-history-card__rewards ul {
  margin-top: 10px;
}

@media (max-width: 620px) {
  .admin-ratings-toolbar,
  .admin-player-section__intro {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-ratings-toolbar__actions {
    justify-content: stretch;
  }

  .admin-ratings-toolbar__actions .button {
    flex: 1;
  }

  .admin-player-create,
  .admin-information__grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-ratings-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ratings-filter--search {
    grid-column: 1 / -1;
  }

  .admin-rating-card__soloqueue-toggle {
    width: 100%;
  }

  .admin-rating-card__lanes {
    grid-template-columns: 1fr;
  }

  .admin-rating-card__lane-pickers {
    justify-content: flex-start;
  }

  .admin-info-stats {
    grid-template-columns: 1fr;
  }

  .admin-season-history__heading,
  .season-history-card__header,
  .season-history-card__top li,
  .season-history-card__rewards li {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Histórico de bans e radar de estatísticas */
.history-card__bans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 16px 22px;
  border-top: 1px solid rgba(122, 160, 220, 0.12);
  background: linear-gradient(90deg, rgba(20, 75, 160, 0.12), transparent 48%, rgba(160, 31, 43, 0.12));
}

.history-card__ban-team {
  display: grid;
  gap: 9px;
}

.history-card__ban-team > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-card__ban-team--red {
  justify-items: end;
}

.history-card__ban-list {
  display: flex;
  gap: 7px;
}

.history-ban-slot {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(159, 178, 207, 0.28);
  border-radius: 10px;
  background: rgba(4, 10, 18, 0.62);
}

button.history-ban-slot {
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

button.history-ban-slot:hover,
button.history-ban-slot:focus-visible {
  border-color: rgba(212, 170, 67, 0.9);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(212, 170, 67, 0.16);
}

.history-ban-slot.is-selected {
  border-style: solid;
  border-color: rgba(212, 170, 67, 0.62);
}

.history-ban-slot:not(.is-selected) img {
  opacity: 0.2;
  filter: grayscale(1);
}

.history-ban-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-mode-tabs {
  display: inline-flex;
  gap: 5px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid rgba(122, 160, 220, 0.2);
  border-radius: 14px;
  background: rgba(4, 10, 18, 0.58);
}

.ranking-mode-tab {
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.ranking-mode-tab:hover,
.ranking-mode-tab:focus-visible {
  color: var(--text);
  outline: none;
}

.ranking-mode-tab.is-active {
  background: linear-gradient(135deg, rgba(40, 104, 211, 0.9), rgba(29, 78, 216, 0.66));
  color: #fff;
  box-shadow: 0 7px 16px rgba(29, 78, 216, 0.32);
}

.statistics-dashboard {
  display: grid;
  gap: 22px;
}

.statistics-dashboard__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(194, 167, 84, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 24%, rgba(59, 130, 246, 0.22), transparent 32%),
    radial-gradient(circle at 95% 90%, rgba(212, 170, 67, 0.18), transparent 30%),
    rgba(5, 13, 25, 0.82);
  overflow: hidden;
}

.statistics-dashboard__header h2 {
  margin: 2px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.statistics-dashboard__header > div > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--text-muted);
}

.statistics-summary {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
}

.statistics-summary span {
  padding: 8px 11px;
  border: 1px solid rgba(159, 178, 207, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.statistics-summary strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.statistics-spotlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.statistics-spotlight {
  position: relative;
  min-height: 196px;
  padding: 17px;
  border: 1px solid rgba(159, 178, 207, 0.18);
  border-radius: 18px;
  background: rgba(5, 13, 25, 0.72);
  overflow: hidden;
}

.statistics-spotlight::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -50px;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(5px);
}

.statistics-spotlight--red::after { background: var(--red); }
.statistics-spotlight--blue::after { background: var(--blue); }
.statistics-spotlight--green::after { background: var(--green); }
.statistics-spotlight--violet::after { background: #a855f7; }

.statistics-spotlight.is-empty { min-height: 145px; }

.statistics-spotlight__eyebrow {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-spotlight__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.statistics-champion-portrait {
  display: inline-grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: #0b1525;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.statistics-champion-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statistics-spotlight h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.statistics-spotlight strong {
  color: #fff;
  font-size: 1.22rem;
}

.statistics-spotlight p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.statistics-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.statistics-list-card {
  padding: 18px;
  border: 1px solid rgba(159, 178, 207, 0.18);
  border-radius: 18px;
  background: rgba(5, 13, 25, 0.68);
}

.statistics-list-card--blue { border-top-color: rgba(96, 165, 250, 0.66); }
.statistics-list-card--red { border-top-color: rgba(248, 113, 113, 0.66); }
.statistics-list-card--gold { border-top-color: rgba(212, 170, 67, 0.72); }

.statistics-list-card header p:last-child,
.statistics-list-card__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.statistics-list-card ol {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.statistics-list-card li {
  display: grid;
  grid-template-columns: 23px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.statistics-list-card__position {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.statistics-list-card__portrait {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.statistics-list-card li strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-list-card li > span:last-child {
  color: var(--text-muted);
  font-size: 0.73rem;
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .statistics-spotlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-lists { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .history-card__bans { grid-template-columns: 1fr; gap: 16px; }
  .history-card__ban-team--red { justify-items: start; }
  .history-card__pending-save { align-items: stretch; flex-direction: column; margin-inline: 16px; }
  .history-card__pending-save > div { justify-content: stretch; }
  .history-card__pending-save .button { flex: 1; }
  .statistics-dashboard__header { display: grid; padding: 20px; }
}

@media (max-width: 480px) {
  .history-card__bans { padding: 14px; }
  .history-card__ban-list { gap: 5px; }
  .history-ban-slot { width: 35px; height: 35px; }
  .statistics-spotlights { grid-template-columns: 1fr; }
  .statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-summary span { white-space: normal; }
}

.admin-rating-card p,
.admin-section-copy p {
  margin: 7px 0 0;
  color: var(--text-muted);
}

.admin-ranking-test {
  display: grid;
  gap: 14px;
}

.admin-ranking-test__intro,
.admin-ranking-test__controls,
.admin-ranking-test__table-wrapper {
  border: 1px solid rgba(122, 160, 220, 0.16);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.58);
}

.admin-ranking-test__intro {
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(244, 202, 98, 0.11), transparent 44%),
    rgba(5, 12, 22, 0.58);
}

.admin-ranking-test__intro h3 {
  margin: 0;
}

.admin-ranking-test__intro p:not(.panel__eyebrow) {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-ranking-test__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 11px;
}

.admin-ranking-test__controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(122, 160, 220, 0.12);
  border-radius: 13px;
  background: rgba(3, 10, 20, 0.42);
}

.admin-ranking-test__controls label > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-ranking-test__controls label > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.admin-ranking-test__controls strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(244, 202, 98, 0.35);
  border-radius: 10px;
  background: rgba(244, 202, 98, 0.11);
  color: var(--gold);
  font-size: 1.1rem;
}

.admin-ranking-test__controls input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(122, 160, 220, 0.24);
  border-radius: 10px;
  background: #09121f;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.admin-ranking-test__controls input:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.42);
  outline-offset: 2px;
}

.admin-ranking-test__controls small {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.admin-ranking-test__rule {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(244, 202, 98, 0.25);
  border-radius: 999px;
  background: rgba(244, 202, 98, 0.08);
  color: #f7d36f;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-ranking-test__table-wrapper {
  overflow-x: auto;
}

.admin-ranking-test__table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
}

.admin-ranking-test__table th,
.admin-ranking-test__table td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(122, 160, 220, 0.1);
  text-align: left;
}

.admin-ranking-test__table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-ranking-test__table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-ranking-test__table td:last-child strong {
  color: var(--gold);
}

.admin-ranking-test__rank-1 {
  background: linear-gradient(90deg, rgba(244, 202, 98, 0.14), transparent 72%);
}

.admin-ranking-test__rank-2 {
  background: linear-gradient(90deg, rgba(206, 223, 240, 0.1), transparent 72%);
}

.admin-ranking-test__rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.12), transparent 72%);
}

.admin-ranking-test__empty {
  margin: 0;
}

@media (max-width: 620px) {
  .admin-ranking-test__controls {
    grid-template-columns: 1fr;
  }
}

.star-selector {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  width: 100%;
  gap: 4px;
}

.star-selector__star {
  min-width: 0;
  padding: 6px 2px;
  border: 1px solid rgba(116, 138, 170, 0.34);
  border-radius: 8px;
  background: rgba(8, 18, 32, 0.58);
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.star-selector__star:hover,
.star-selector__star:focus-visible {
  border-color: rgba(244, 202, 98, 0.7);
  color: #f8d87c;
  transform: translateY(-1px);
}

.star-selector__star.is-active {
  border-color: #f4ca62;
  background: rgba(244, 202, 98, 0.16);
  color: #f4ca62;
}

.star-selector__star--supreme {
  min-width: 0;
  border-color: rgba(231, 169, 255, 0.52);
  color: #e7b6fb;
}

.star-selector__star--beginner {
  border-color: rgba(125, 211, 252, 0.42);
  color: #9edfff;
}

.star-selector__value,
.star-selector__special {
  display: block;
}

.star-selector__special {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52627a;
  line-height: 1;
}

.star-rating--mirrored {
  flex-direction: row-reverse;
}

.star-rating__track {
  position: relative;
  display: inline-grid;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.star-rating__empty,
.star-rating__filled {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.star-rating__empty {
  color: #52627a;
}

.star-rating__filled {
  width: var(--star-fill);
  overflow: hidden;
  color: #f4ca62;
}

.star-rating--compact .star-rating__track {
  font-size: 0.88rem;
}

.star-rating__special {
  min-width: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.star-rating--supreme .star-rating__special {
  color: #f2a8ff;
}

.star-rating--beginner .star-rating__special {
  color: #8edfff;
}

.ranking-discord-handle {
  color: #7da8ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field-hint {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.manual-match-form,
.match-editor-teams {
  display: grid;
  gap: 16px;
}

.manual-team-list,
.manual-team-selected {
  margin-top: 10px;
}

.manual-team-selected {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.match-editor-teams {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-editor-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 0.45fr);
  gap: 8px;
  margin-top: 9px;
}

.match-editor-player input,
.match-editor-player select,
.manual-match-form select {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 10px;
  background: #09121f;
  color: var(--text);
}

@media (max-width: 780px) {
  .hero__topbar-main,
  .history-card__top,
  .history-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__topbar-actions,
  .hero__nav {
    justify-content: flex-start;
  }

  .hero__content {
    padding: 22px;
  }

  .history-card__meta {
    justify-content: flex-start;
  }

  .history-card__battle,
  .match-editor-teams {
    grid-template-columns: 1fr;
  }

  .history-card__versus {
    justify-self: center;
  }

  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-panel__drawer {
    grid-column: 1;
    border-left: 0;
  }
}

/* Leitura de MMR do confronto (sem expor MMR individual) */
.matchmaking-insight {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.35fr) minmax(150px, 1fr);
  align-items: stretch;
  gap: 12px;
  margin: 14px 0 20px;
}

.matchmaking-insight__team,
.matchmaking-insight__center {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(122, 160, 220, 0.18);
  background: rgba(8, 15, 27, 0.82);
}

.matchmaking-insight__team {
  border-radius: 18px;
}

.matchmaking-insight__team--blue {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), transparent 75%), rgba(8, 15, 27, 0.88);
}

.matchmaking-insight__team--red {
  justify-items: end;
  border-color: rgba(251, 113, 133, 0.4);
  background: linear-gradient(225deg, rgba(220, 38, 38, 0.2), transparent 75%), rgba(8, 15, 27, 0.88);
  text-align: right;
}

.matchmaking-insight__team > span,
.matchmaking-insight__center > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.matchmaking-insight__team > strong {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1;
}

.matchmaking-insight__team > small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.matchmaking-insight__center {
  justify-items: center;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.13), transparent 42%, rgba(220, 38, 38, 0.13)),
    rgba(8, 15, 27, 0.9);
  text-align: center;
}

.matchmaking-insight__center > strong {
  color: var(--gold);
  font-size: 0.93rem;
}

.matchmaking-insight__chance-track {
  display: flex;
  width: min(100%, 280px);
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(122, 160, 220, 0.18);
  border-radius: 999px;
  background: rgba(3, 8, 17, 0.72);
}

.matchmaking-insight__chance-blue,
.matchmaking-insight__chance-red {
  display: block;
  height: 100%;
  transition: width 260ms ease;
}

.matchmaking-insight__chance-blue {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.matchmaking-insight__chance-red {
  background: linear-gradient(90deg, #fb7185, #b91c1c);
}

@media (max-width: 720px) {
  .matchmaking-insight {
    grid-template-columns: 1fr 1fr;
  }

  .matchmaking-insight__center {
    grid-column: 1 / -1;
    order: -1;
    min-height: 98px;
  }
}

@media (max-width: 420px) {
  .matchmaking-insight__team,
  .matchmaking-insight__center {
    min-height: 100px;
    padding: 14px;
  }

  .matchmaking-insight__team > strong {
    font-size: 1.45rem;
  }

  .matchmaking-insight__team > small {
    font-size: 0.72rem;
  }
}

/* Navegação por páginas */
.app-pages {
  position: relative;
  z-index: 1;
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: block;
  animation: pageEnter 240ms ease;
}

#configuracao.is-active + #resultado.is-active {
  margin-top: 24px;
}

.nav-chip.is-active {
  border-color: rgba(212, 170, 67, 0.62);
  background: linear-gradient(135deg, rgba(113, 78, 17, 0.58), rgba(44, 30, 11, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 228, 162, 0.08);
  color: #ffe4a2;
}

.hero__content {
  padding: 25px 30px;
}

.hero__content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero__description {
  max-width: 650px;
  margin-top: 9px;
  font-size: 0.98rem;
}

.list-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(122, 160, 220, 0.14);
  border-radius: 14px;
  background: rgba(6, 13, 23, 0.58);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.list-load-more__button {
  min-height: 40px;
  padding: 0 14px;
}

.list-load-more__button span {
  margin-left: 4px;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .hero__content {
    padding: 22px;
  }

  .list-load-more {
    align-items: stretch;
    flex-direction: column;
  }

  .list-load-more__button {
    width: 100%;
  }
}

/* Superfícies de vidro — a transparência revela o cenário sem comprometer a leitura. */
.hero__topbar,
.hero__content,
.panel,
.player-entry,
.summary-card,
.team-card,
.player-directory-card,
.list-load-more,
.dialog,
.admin-panel__drawer {
  border-color: var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 20px 52px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.hero__topbar,
.hero__content,
.panel,
.player-entry,
.summary-card,
.team-card,
.player-directory-card,
.list-load-more,
.dialog {
  background-color: var(--glass-surface);
}

.admin-panel__drawer {
  background-color: var(--glass-surface-strong);
}

.panel--glass::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(125deg, rgba(59, 130, 246, 0.1), transparent 38%),
    linear-gradient(305deg, rgba(239, 68, 68, 0.08), transparent 34%);
}

.hero__topbar::after,
.hero__content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 246, 255, 0.7), transparent);
  opacity: 0.72;
  pointer-events: none;
}

.hero__content,
.hero__topbar,
.panel--glass,
.team-card,
.summary-card,
.player-directory-card {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

.summary-card:hover,
.team-card:hover,
.player-directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 215, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 46px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(59, 130, 246, 0.09);
}

.hero__topbar .nav-chip,
.hero__topbar .button--compact,
.status-pill {
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dialog::backdrop,
.admin-panel__backdrop {
  background: rgba(2, 7, 15, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

@keyframes ambient-glow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(6vw, 34px, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before,
  .app-shell::after {
    animation: none;
  }

  .summary-card,
  .team-card,
  .player-directory-card {
    transition: none;
  }
}
