/* ==========================================================================
   MiX da Resenha — Design System
   Paleta: cinza claro · branco · preto profundo · azul elétrico
   ========================================================================== */

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #e3e4e8;
  --shell: #ffffff;
  --panel: #f1f1f3;
  --card: #ffffff;
  --card-2: #f6f6f8;

  --text: #0e0f11;
  --text-2: #4a4c55;
  --muted: #8a8c94;
  --line: #ececef;
  --line-2: #dfdfe4;

  --chip: #f0f0f3;
  --chip-hover: #e6e6ea;

  --ink: #0e0f11;
  --ink-2: #1c1d21;
  --ink-3: #2a2b31;
  --on-ink: #ffffff;
  --on-ink-muted: #a3a5ae;
  --btn-dark-bg: #0e0f11;
  --btn-dark-fg: #ffffff;

  --blue: #0b6bff;
  --blue-hover: #005be8;
  --blue-soft: #a9c9fb;
  --blue-50: #eaf2ff;
  --navy: #15327f;

  --green: #149c4a;
  --green-soft: #dff6e7;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #c27a06;
  --amber-soft: #fff3dc;
  --violet: #6e56cf;
  --violet-soft: #efebfd;

  --dot-0: #e9e9ed;
  --dot-1: var(--blue-soft);
  --dot-2: var(--blue);
  --dot-3: var(--ink);
  --gauge-off: #e7e7eb;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 13px;

  --shadow-sm: 0 1px 2px rgba(16, 17, 20, 0.04);
  --shadow-md: 0 18px 40px -22px rgba(16, 17, 20, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(16, 17, 20, 0.45);
  --ring: 0 0 0 4px rgba(11, 107, 255, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --stripes: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.17) 0 4px, transparent 4px 10px);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #060607;
  --shell: #0f1013;
  --panel: #16171b;
  --card: #1d1e23;
  --card-2: #24252b;

  --text: #f4f4f6;
  --text-2: #c3c5cc;
  --muted: #8a8d96;
  --line: #2a2b31;
  --line-2: #34363d;

  --chip: #26272d;
  --chip-hover: #303138;

  --ink: #070708;
  --ink-2: #121316;
  --ink-3: #1f2025;
  --on-ink-muted: #9a9ca5;
  --btn-dark-bg: #f4f4f6;
  --btn-dark-fg: #0e0f11;

  --blue-soft: #5d8fe2;
  --blue-50: #142440;
  --navy: #3a5ec6;

  --green-soft: #12301f;
  --red-soft: #3a1719;
  --amber: #f0a63a;
  --amber-soft: #3a2a0c;
  --violet: #a794f5;
  --violet-soft: #241c45;

  --dot-0: #2a2b31;
  --dot-3: #e8eaf2;
  --gauge-off: #2c2d33;

  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  /* reserva o espaço da barra de rolagem para a página não "pular" ao travar o scroll */
  scrollbar-gutter: stable;
}
/* Trava a rolagem da página com modal ou drawer do lobby abertos */
html:has(dialog[open]),
html:has(.reveal:not([hidden])),
html:has(body.drawer-open) {
  overflow: hidden;
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}
.muted {
  color: var(--muted);
}
.grow {
  flex: 1;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Ícones ---------- */
.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.i-fill {
  fill: currentColor;
}
.spin {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: calc(100dvh - 40px);
  margin: 20px;
  background: var(--shell);
  border-radius: 36px;
  box-shadow: var(--shadow-md);
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 20px;
  align-self: start;
  height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 22px 22px 26px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand,
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--blue);
  display: inline-flex;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name span {
  font-weight: 500;
  color: var(--text-2);
}
.icon-btn.sidebar-close {
  margin-left: auto;
  display: none;
}

.welcome h1 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.welcome p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.count-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  letter-spacing: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.count-pill.full {
  background: var(--blue);
  color: #fff;
}

.lobby-progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.lobby-progress span {
  height: 6px;
  border-radius: 999px;
  background: var(--chip);
  transition: background 0.3s var(--ease);
}
.lobby-progress span.on {
  background: var(--blue);
}

/* Picker (combobox) */
.picker {
  position: relative;
}
.picker-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.picker-field:focus-within {
  background: var(--card);
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.picker-icon {
  color: var(--muted);
}
.picker-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  height: 100%;
}
.picker-input::placeholder {
  color: var(--muted);
}
.picker kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 1px 7px;
}
.picker-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.picker-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.picker-list li.active,
.picker-list li:hover {
  background: var(--chip);
}
.picker-list li .pl-nick {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-list li .pl-meta {
  color: var(--muted);
  font-size: 12px;
}
.picker-list li.empty {
  color: var(--muted);
  cursor: default;
  justify-content: center;
  padding: 14px;
}
.picker-list li.empty:hover {
  background: transparent;
}
.picker-list li.create {
  color: var(--blue);
  font-weight: 600;
}

/* Lobby list */
.lobby-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lobby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 14px;
  transition: background 0.15s;
}
.lobby-item:hover {
  background: var(--chip);
}
.lobby-item .li-pos {
  width: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lobby-item .li-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.lobby-item .li-nick {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.lobby-item .li-nick:hover {
  color: var(--blue);
}
.lobby-item .li-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  align-items: center;
}
.lobby-item .li-meta > span:first-child {
  white-space: nowrap;
}
.lobby-item .li-meta .tag {
  height: 18px;
  font-size: 10px;
  padding: 0 7px;
}
.lobby-item .li-actions {
  display: flex;
  opacity: 0;
  transition: opacity 0.15s;
}
.lobby-item:hover .li-actions,
.lobby-item:focus-within .li-actions {
  opacity: 1;
}
.lobby-empty {
  margin-top: 12px;
  padding: 18px 14px;
  border: 1.5px dashed var(--line-2);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.reserve-block {
  margin-top: 18px;
}
.reserve-block .lobby-item {
  opacity: 0.85;
}
.side-link {
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
}
.side-link:hover {
  color: var(--red);
  background: var(--red-soft);
}
.side-link .i {
  width: 15px;
  height: 15px;
}

/* CTA card (sidebar) */
.side-cta {
  margin-top: auto;
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  min-height: 210px;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.cta-card::before {
  content: "5x5";
  position: absolute;
  right: -10px;
  bottom: 18px;
  font-size: 108px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  z-index: -1;
}
.cta-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.08);
  z-index: -1;
}
.cta-card .cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.cta-card h3 {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-card p {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}
.cta-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cta-actions .btn {
  flex: 1;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.cta-actions .btn:hover:not(:disabled) {
  background: #000;
}
.cta-actions .circle-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.scrim {
  display: none;
}

/* ---------- Topbar ---------- */
.topbar {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px 18px 4px;
  min-width: 0;
}
.topbar-brand {
  display: none;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab:hover {
  background: var(--chip-hover);
  color: var(--text);
}
.tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(11, 107, 255, 0.85);
}
.tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tab-badge:empty {
  display: none;
}
.tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lobby-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .lobby-toggle {
  background: var(--blue);
}
.org-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.org-chip:hover {
  background: var(--chip);
}
.org-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .org-avatar {
  color: #fff;
}
.org-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.org-text strong {
  font-weight: 600;
  font-size: 13.5px;
}
.org-text small {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Main ---------- */
.main {
  grid-column: 2;
  grid-row: 2;
  background: var(--panel);
  border-radius: var(--r-xl);
  margin: 0 16px 16px 0;
  padding: 28px;
  min-width: 0;
  outline: none;
  container-type: inline-size;
}
.view {
  animation: view-in 0.35s var(--ease);
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.crumbs {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   COMPONENTES BASE
   ========================================================================== */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-ink {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 140% at 88% -20%, #3a3b42 0%, transparent 48%),
    radial-gradient(90% 120% at 55% 130%, #24252b 0%, transparent 60%), var(--ink);
  color: var(--on-ink);
}
[data-theme="dark"] .card-ink {
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-ink::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  height: 58px;
  right: -12%;
  top: 22%;
  border-radius: 999px;
  transform: rotate(-32deg);
  background: linear-gradient(90deg, #111216 0%, #4a4b53 45%, #16171b 70%, #2b2c32 100%);
  box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.7);
  opacity: 0.9;
}
.card-ink .muted {
  color: var(--on-ink-muted);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card-head p {
  font-size: 12.5px;
  margin-top: 2px;
}
.card-head .head-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s var(--ease), box-shadow 0.15s, opacity 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(11, 107, 255, 0.9);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-hover);
}
.btn-dark {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.btn-dark:hover:not(:disabled) {
  opacity: 0.88;
}
.btn-ghost {
  background: var(--chip);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--chip-hover);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(0.94);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s;
}
.pill-btn:hover:not(:disabled) {
  background: var(--chip-hover);
}
.pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pill-btn.danger:hover:not(:disabled) {
  background: var(--red-soft);
  color: var(--red);
}
.pill-btn.sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.card .pill-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.card .pill-btn:hover {
  background: var(--chip);
}

.circle-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.15s var(--ease), color 0.15s;
  text-decoration: none;
}
.topbar .circle-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.circle-btn:hover {
  background: var(--chip-hover);
}
.circle-btn.sm {
  width: 36px;
  height: 36px;
}
.card .circle-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.card .circle-btn:hover {
  background: var(--chip);
}
.card-ink .circle-btn,
.circle-btn.light {
  background: #fff;
  color: var(--ink);
  border: 0;
}
.card-ink .circle-btn:hover,
.circle-btn.light:hover {
  background: #e9e9ee;
}
.circle-btn.blue {
  background: var(--blue);
  color: #fff;
  border: 0;
}
.circle-btn.blue:hover {
  background: var(--blue-hover);
}
.modal-head .circle-btn {
  background: var(--chip);
  border: 0;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn .i {
  width: 16px;
  height: 16px;
}
.icon-btn:hover {
  background: var(--chip-hover);
  color: var(--text);
}
.icon-btn.danger:hover {
  background: var(--red-soft);
  color: var(--red);
}

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > label,
.field > legend {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.field > legend {
  margin-bottom: 7px;
}
.opt {
  font-weight: 500;
  color: var(--muted);
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder {
  color: var(--muted);
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14);
}
select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8c94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-group {
  display: flex;
  gap: 8px;
}
.input-group .btn {
  height: 46px;
  flex-shrink: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 260px;
}
.search-pill:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  height: 100%;
}
.search-pill input::-webkit-search-cancel-button {
  cursor: pointer;
}
.modal .search-pill {
  background: var(--chip);
}
.select-pill .input {
  border-radius: 999px;
  border-color: transparent;
  background-color: var(--card);
  min-width: 170px;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 50%), var(--chip) var(--fill, 50%));
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--blue);
  box-shadow: 0 4px 10px rgba(11, 107, 255, 0.35);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--blue);
  cursor: grab;
}
.range:focus-visible {
  box-shadow: var(--ring);
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
}
output {
  margin-left: auto;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* Segmented */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.seg::-webkit-scrollbar {
  display: none;
}
.card .seg,
.modal .seg {
  background: var(--chip);
}
.seg button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover {
  color: var(--text);
}
.seg button.on {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.seg.blue button.on {
  background: var(--blue);
  color: #fff;
}
.seg.sm button {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.chip-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-radios label {
  position: relative;
}
.chip-radios input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.chip-radios span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--chip);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.chip-radios input:checked + span {
  background: var(--blue);
  color: #fff;
}
.chip-radios input:focus-visible + span {
  box-shadow: var(--ring);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tag .i {
  width: 12px;
  height: 12px;
}
.role-IGL {
  background: var(--blue);
  color: #fff;
}
.role-AWPer {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.role-Entry {
  background: var(--navy);
  color: #fff;
}
.role-Suporte {
  background: var(--blue-50);
  color: var(--blue);
}
[data-theme="dark"] .role-Suporte {
  color: #9cc0ff;
}
.role-Flex {
  background: var(--chip);
  color: var(--text-2);
}
.pen-advertencia {
  background: var(--amber-soft);
  color: var(--amber);
}
.pen-suspensao {
  background: var(--violet-soft);
  color: var(--violet);
}
.pen-banido {
  background: var(--red-soft);
  color: var(--red);
}
.tag-win {
  background: var(--green-soft);
  color: var(--green);
}
.tag-soft {
  background: var(--chip);
  color: var(--text-2);
}
.card-ink .tag-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trend.up {
  background: var(--green-soft);
  color: var(--green);
}
.trend.down {
  background: var(--red-soft);
  color: var(--red);
}
.trend.flat {
  background: var(--chip);
  color: var(--muted);
}
.trend .i {
  width: 13px;
  height: 13px;
}

/* Avatar */
.avatar {
  --s: 36px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  font-size: calc(var(--s) * 0.36);
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.av-xs {
  --s: 24px;
}
.av-sm {
  --s: 30px;
}
.av-md {
  --s: 36px;
}
.av-lg {
  --s: 52px;
}
.av-xl {
  --s: 96px;
}
.tone-blue {
  background: var(--blue);
  color: #fff;
}
.tone-ink {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.tone-navy {
  background: var(--navy);
  color: #fff;
}
.tone-soft {
  background: var(--blue-soft);
  color: var(--navy);
}
[data-theme="dark"] .tone-soft {
  color: #fff;
}

/* Estrelas */
.stars {
  --v: 60%;
  display: inline-block;
  width: max-content;
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue) var(--v), var(--line-2) var(--v));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px;
  border-radius: var(--r-lg);
  background: var(--card);
}
.empty-state .es-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.empty-state .es-icon .i {
  width: 24px;
  height: 24px;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.empty-state p {
  color: var(--muted);
  max-width: 380px;
}
.empty-state .btn {
  margin-top: 8px;
}
.empty-inline {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar .search-pill.grow {
  flex: 1;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.d-activity {
  grid-column: span 5;
}
.d-right {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.d-cta {
  grid-column: 1 / -1;
}
.d-fraggers {
  grid-column: span 8;
}
.d-gauge {
  grid-column: span 4;
}
.d-recent {
  grid-column: 1 / -1;
}

.big-num {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.big-num small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

/* Activity dots */
.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.legend {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-grid {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(0, 1fr));
  gap: 10px 6px;
  align-items: center;
}
.dot-label {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot {
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  justify-self: center;
  background-color: var(--dot-0);
  transition: transform 0.2s var(--ease);
}
.dot:hover {
  transform: scale(1.12);
}
.dot.l1 {
  background-color: var(--dot-1);
  background-image: var(--stripes);
}
.dot.l2 {
  background-color: var(--dot-2);
  background-image: var(--stripes);
}
.dot.l3 {
  background-color: var(--dot-3);
  background-image: var(--stripes);
}
.dot-day {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

/* CTA ink */
.cta-ink {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  min-height: 150px;
  padding: 24px;
}
.cta-ink h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 360px;
}
.cta-ink h3 b {
  font-weight: 700;
}
.cta-ink .cta-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--on-ink-muted);
}
.chip-green {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #d7f5dd;
  color: #177a3c;
  font-weight: 700;
  font-size: 12px;
}
.cta-ink .cta-actions {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.cta-ink .btn-primary {
  box-shadow: none;
}

/* Stat card */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
}
.stat-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-top .circle-btn {
  width: 40px;
  height: 40px;
}
.stat-top .lbl {
  line-height: 1.25;
  font-size: 13px;
  color: var(--text-2);
}
.stat-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* MVP card */
.mvp-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  cursor: pointer;
}
.mvp-card .mvp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mvp-card .mvp-top .circle-btn {
  width: 40px;
  height: 40px;
}
.mvp-card .mvp-top .ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mvp-card .mvp-bottom {
  margin-top: auto;
}
.mvp-card .mvp-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mvp-card .mvp-sub {
  font-size: 12.5px;
  color: var(--on-ink-muted);
  margin-top: 4px;
}
.mvp-card .avatar {
  border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Fraggers bars */
.fr-body {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: stretch;
}
.fr-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fr-left .pill-dark {
  align-self: flex-start;
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
  font-size: 12px;
  font-weight: 600;
}
.fr-left .desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  max-width: 180px;
}
.fr-left .legend {
  margin-top: auto;
}
.fr-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fr-trend {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fr-trend strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.fr-trend strong.neg {
  color: var(--red);
}
.fr-trend span {
  color: var(--muted);
  font-size: 12.5px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 210px;
}
.bar {
  --c: var(--blue);
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 20px;
  background-color: var(--c);
  background-image: var(--stripes);
  min-height: 70px;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: height 0.7s var(--ease), transform 0.2s var(--ease), filter 0.2s;
}
.bar:hover {
  filter: brightness(1.06);
}
.bar.c1 {
  --c: var(--blue);
}
.bar.c2 {
  --c: var(--dot-3);
}
.bar.c3 {
  --c: var(--navy);
}
.bar.c4 {
  --c: var(--blue-soft);
}
.bar-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #0e0f11;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bar-tag .i {
  width: 12px;
  height: 12px;
}
.bar.c1 .bar-tag {
  background: #0e0f11;
  color: #fff;
}
.bar-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar.c4 .bar-name {
  color: var(--navy);
}
[data-theme="dark"] .bar.c2 .bar-name {
  color: #0e0f11;
}
[data-theme="dark"] .bar.c4 .bar-name {
  color: #fff;
}

/* Gauge */
.gauge-card {
  display: flex;
  flex-direction: column;
}
.gauge-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.gauge-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.gauge-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.gauge {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
}
.gauge svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.gauge line {
  stroke-width: 9;
  stroke-linecap: round;
}
.gauge .g-off {
  stroke: var(--gauge-off);
}
.gauge .g-on {
  stroke: color-mix(in srgb, var(--blue) var(--t, 100%), var(--blue-soft));
}
.gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}
.gauge-center strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.gauge-center span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.gauge-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
}
.gauge-foot b {
  color: var(--text);
}
.gauge-foot .trend {
  background: var(--blue-soft);
  color: #fff;
}

/* Recent matches */
.recent-list {
  display: flex;
  flex-direction: column;
}
.recent-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 170px) 80px 24px;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 16px;
  transition: background 0.15s;
  width: 100%;
}
.recent-row + .recent-row {
  border-top: 1px solid var(--line);
}
.recent-row:hover {
  background: var(--card-2);
}
.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  justify-self: start;
}
.map-badge .i {
  width: 14px;
  height: 14px;
}
.recent-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 500;
}
.recent-teams > span:not(.recent-score) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.recent-teams > span:last-child {
  text-align: right;
}
.recent-teams .win {
  color: var(--text) !important;
  font-weight: 700;
}
.recent-score {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--chip);
  white-space: nowrap;
}
.recent-mvp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recent-mvp .i {
  width: 14px;
  height: 14px;
  color: var(--blue);
}
.recent-date {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.recent-row > .i {
  color: var(--muted);
}

/* ==========================================================================
   MIX
   ========================================================================== */
.stepper {
  display: grid;
  grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--card);
  margin-bottom: 18px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  color: var(--muted);
  min-width: 0;
}
.step .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--chip);
  font-size: 12px;
  font-weight: 700;
}
.step .n .i {
  width: 15px;
  height: 15px;
}
.step .t {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.step .t strong {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step .t small {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step.done {
  color: var(--text);
}
.step.done .n {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.step.current {
  background: var(--blue-50);
  color: var(--text);
}
.step.current .n {
  background: var(--blue);
  color: #fff;
}

.mix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.count-big {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.count-big small {
  font-size: 18px;
  color: var(--muted);
}
.mix-picker {
  margin-bottom: 18px;
}
.mix-picker .picker-field {
  height: 52px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 14px 8px;
  border-radius: 20px;
  background: var(--card-2);
  border: 1.5px solid transparent;
  text-align: center;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.slot.filled {
  animation: pop 0.35s var(--ease);
}
@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}
.slot .s-nick {
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
}
.slot .s-nick:hover {
  color: var(--blue);
}
.slot .stars {
  align-self: center;
}
.slot .s-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.slot .s-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0;
}
.slot:hover .s-remove,
.slot:focus-within .s-remove {
  opacity: 1;
}
.slot.empty {
  border: 1.5px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.slot.empty:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-50);
}
.slot.empty .plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
}
.slot.empty:hover .plus {
  background: var(--blue);
  color: #fff;
}
.reserves-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.reserves-row h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.reserve-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reserve-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 5px;
  border-radius: 999px;
  background: var(--card-2);
  font-weight: 600;
  font-size: 13px;
}

.ready-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  min-height: 100%;
}
.ready-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ready-card h3 b {
  font-weight: 700;
}
.choice-btn {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.choice-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.choice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.choice-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
}
.choice-btn.primary:hover:not(:disabled) {
  background: var(--blue-hover);
}
.choice-btn .ci {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  flex-shrink: 0;
}
.choice-btn.primary .ci {
  color: var(--blue);
}
.choice-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.choice-btn small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}
.ready-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.ready-stats div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.ready-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ready-stats span {
  font-size: 11.5px;
  color: var(--on-ink-muted);
}

/* Versus bar */
.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
}
.versus .vs-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.versus .vs-side.b {
  align-items: flex-end;
  text-align: right;
}
.versus .vs-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.versus .vs-stars {
  font-size: 12.5px;
  color: var(--muted);
}
.vs-meter {
  grid-column: 1 / -1;
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  gap: 3px;
}
.vs-meter span {
  height: 100%;
  border-radius: 999px;
  background-image: var(--stripes);
}
.vs-meter .a {
  background-color: var(--blue);
}
.vs-meter .b {
  background-color: var(--dot-3);
}
.vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.vs-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.vs-diff {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}
.card.team-card {
  padding: 0;
  overflow: hidden;
}
.team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  color: #fff;
  background-color: var(--blue);
  background-image: var(--stripes);
}
.team-card.b .team-head {
  background-color: #0e0f11;
}
[data-theme="dark"] .team-card.b .team-head {
  background-color: #2a2b31;
}
.team-side {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.team-name-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0 8px;
  transition: background 0.15s, border-color 0.15s;
}
.team-name-input:hover {
  background: rgba(255, 255, 255, 0.1);
}
.team-name-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.team-stars {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.roster-head,
.roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 58px 44px;
  align-items: center;
  gap: 8px;
}
.roster-head {
  padding: 12px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.roster-head span:not(:first-child) {
  text-align: center;
}
.roster {
  padding: 0 10px 8px;
}
.roster li {
  padding: 8px;
  border-radius: 16px;
  transition: background 0.15s;
}
.roster li:hover {
  background: var(--card-2);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.who-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.who-text .nick {
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.who-text .nick span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-text .nick:hover {
  color: var(--blue);
}
.who-text small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.captain {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.captain .i {
  width: 12px;
  height: 12px;
}
.kd-in {
  height: 40px;
  padding: 0 4px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--card-2);
  border-color: transparent;
}
.kd-live {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.kd-live.pos {
  color: var(--green);
}
.kd-live.neg {
  color: var(--red);
}
.team-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.team-foot b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.result-card h3 {
  font-size: 17px;
  font-weight: 600;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-chip {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  background: var(--chip);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.map-chip:hover {
  background: var(--chip-hover);
  color: var(--text);
}
.map-chip.on {
  background: var(--blue);
  color: #fff;
}
.map-other {
  margin-top: 8px;
  height: 40px;
  border-radius: 999px;
}
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.score-side .sname {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-side .sname i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--blue);
  vertical-align: middle;
}
.score-side.b .sname i {
  background: var(--dot-3);
}
.stepper-num {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card-2);
}
.stepper-num button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.stepper-num button:hover {
  background: var(--chip-hover);
}
.stepper-num button .i {
  width: 15px;
  height: 15px;
}
.score-in {
  width: 56px;
  height: 44px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 0;
  background: transparent;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.score-in:focus {
  box-shadow: none;
  background: var(--card);
}
.score-colon {
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 12px;
}
.winner-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card-2);
  font-size: 13px;
  color: var(--text-2);
}
.winner-preview .i {
  color: var(--blue);
}
.winner-preview b {
  color: var(--text);
}
.result-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   JOGADORES
   ========================================================================== */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}
.player-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.player-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.player-card.blocked {
  opacity: 0.7;
}
.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pc-name h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-name p {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pc-stats div {
  padding: 10px;
  border-radius: 14px;
  background: var(--card-2);
}
.pc-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pc-stats span {
  font-size: 11px;
  color: var(--muted);
}
.pc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pc-foot .btn {
  margin-right: auto;
}
.queue-btn.in {
  background: var(--blue-50);
  color: var(--blue);
}

/* ==========================================================================
   HISTÓRICO
   ========================================================================== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 2px;
}
.card.match-card {
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.match-card.flash {
  box-shadow: 0 0 0 3px var(--blue), var(--shadow-md);
}
.mc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0 22px;
}
.mc-head .date {
  font-size: 12.5px;
  color: var(--muted);
}
.mc-head .actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.yt-link .i {
  width: 13px;
  height: 13px;
}
.mc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px 22px 20px;
  align-items: start;
}
.mc-team {
  padding: 14px;
  border-radius: 20px;
  background: var(--card-2);
  min-width: 0;
}
.mc-team.is-win {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 25%, transparent);
}
.mc-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.mc-team-head strong {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-team-head .muted {
  font-size: 12px;
  white-space: nowrap;
}
.mc-team-head .tag {
  margin-left: auto;
}
.mc-team li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.mc-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mc-player > span:not(.avatar):not(.mvp-mark) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mvp-mark {
  color: var(--blue);
  display: inline-flex;
}
.mvp-mark .i {
  width: 14px;
  height: 14px;
}
.mc-kd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mc-kd i {
  font-style: normal;
  color: var(--muted);
  margin: 0 2px;
  font-weight: 500;
}
.mc-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 24px;
}
.mc-score .sc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mc-score .sc .lose {
  color: var(--muted);
}
.mc-score .sc i {
  font-style: normal;
  color: var(--line-2);
  font-weight: 400;
}
.mc-score small {
  font-size: 11.5px;
  color: var(--muted);
}
.mc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}
.award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 12.5px;
  color: var(--text-2);
}
.award .i {
  width: 14px;
  height: 14px;
}
.award b {
  color: var(--text);
  font-weight: 700;
}
.award-mvp {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.award-mvp b {
  color: inherit;
}
.award-mvp .i {
  color: var(--blue-soft);
}

/* ==========================================================================
   RANKING
   ========================================================================== */
.rank-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rank-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 300px;
}
.pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.pod .pod-nick {
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pod .pod-col {
  width: 100%;
  border-radius: 22px 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 16px 8px;
  color: #fff;
  background-image: var(--stripes);
  transition: filter 0.2s;
}
.pod:hover .pod-col {
  filter: brightness(1.08);
}
.pod .pod-col strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pod .pod-col span {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 600;
}
.pod.p1 .pod-col {
  height: 190px;
  background-color: var(--blue);
}
.pod.p2 .pod-col {
  height: 150px;
  background-color: #0e0f11;
}
[data-theme="dark"] .pod.p2 .pod-col {
  background-color: #2f3037;
}
.pod.p3 .pod-col {
  height: 120px;
  background-color: var(--navy);
}
.pod .medal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  margin-bottom: 6px;
}
.rank-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kpi {
  padding: 16px;
  border-radius: 20px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kpi .k-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .k-label .i {
  width: 14px;
  height: 14px;
}
.kpi strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kpi small {
  font-size: 11.5px;
  color: var(--muted);
}
.kpi.ink {
  background: var(--ink);
  color: #fff;
}
.kpi.ink .k-label,
.kpi.ink small {
  color: var(--on-ink-muted);
}
.kpi.blue {
  background: var(--blue);
  color: #fff;
}
.kpi.blue .k-label,
.kpi.blue small {
  color: rgba(255, 255, 255, 0.78);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  min-width: 640px;
}
.table th {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 12px;
  white-space: nowrap;
}
.table th:first-child,
.table th:nth-child(2),
.table td:first-child,
.table td:nth-child(2) {
  text-align: left;
}
.table td {
  padding: 10px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.table tbody tr:hover td {
  background: var(--card-2);
}
.table tbody tr td:first-child {
  border-radius: 14px 0 0 14px;
}
.table tbody tr td:last-child {
  border-radius: 0 14px 14px 0;
}
.table .hl {
  font-weight: 800;
  color: var(--blue);
}
.table th.hl {
  color: var(--blue);
}
.rank-n {
  font-weight: 700;
  color: var(--muted);
  width: 36px;
}
.t-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.wl .w {
  color: var(--green);
  font-weight: 700;
}
.wl .l {
  color: var(--red);
  font-weight: 700;
}
.wr-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wr-bar i {
  display: inline-block;
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--v), var(--chip) var(--v));
}

/* ==========================================================================
   MODAIS
   ========================================================================== */
dialog.modal {
  margin: auto;
  border: 0;
  padding: 0;
  border-radius: 30px;
  background: var(--card);
  color: var(--text);
  width: min(var(--w, 580px), calc(100vw - 24px));
  max-width: none;
  max-height: min(90dvh, 940px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.modal[open] {
  animation: modal-in 0.28s var(--ease);
}
dialog.modal::backdrop {
  background: rgba(8, 9, 12, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}
.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 8px 28px;
}
.modal-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.modal-head p {
  margin-top: 2px;
  font-size: 13px;
}
.modal-body {
  padding: 16px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-body > *,
.profile-body > * {
  flex-shrink: 0;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.span-2 {
  grid-column: span 2;
}
.avatar-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.avatar-row .avatar {
  margin-top: 22px;
}

/* Radio cards */
.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-cards label {
  position: relative;
  display: block;
}
.radio-cards input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.rc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}
.rc strong {
  display: block;
  font-size: 14px;
}
.rc small {
  color: var(--muted);
  font-size: 12.5px;
}
.radio-cards input:checked + .rc {
  border-color: var(--blue);
  background: var(--blue-50);
}
.radio-cards input:focus-visible + .rc {
  box-shadow: var(--ring);
}
.rc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rc-icon.ok {
  background: var(--green-soft);
  color: var(--green);
}
.rc-icon.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.rc-icon.susp {
  background: var(--violet-soft);
  color: var(--violet);
}
.rc-icon.ban {
  background: var(--red-soft);
  color: var(--red);
}

/* Confirm */
.confirm-body {
  align-items: center;
  text-align: center;
  padding-top: 30px;
  gap: 10px;
}
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.confirm-icon.danger {
  background: var(--red-soft);
  color: var(--red);
}
.confirm-icon .i {
  width: 24px;
  height: 24px;
}
.confirm-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.modal-confirm .modal-foot {
  border-top: 0;
  justify-content: stretch;
}
.modal-confirm .modal-foot .btn {
  flex: 1;
}

/* Manual match */
.mf-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--card-2);
}
.mf-team {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mf-team .input:not(.score-in) {
  font-weight: 600;
}
.mf-team .score-in {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--card);
}
.mf-team.a .score-in {
  border-color: var(--blue);
}
.mf-vs {
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
}
.mf-roster-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.mf-roster-head h4 {
  font-size: 16px;
  font-weight: 600;
}
.mf-roster-head p {
  font-size: 12.5px;
}
.mf-counters {
  display: flex;
  gap: 6px;
}
.count-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--chip);
}
.count-chip.a.ok {
  background: var(--blue);
  color: #fff;
}
.count-chip.b.ok {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.mf-roster {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px;
}
.mf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 64px 64px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 16px;
  transition: background 0.15s;
}
.mf-row:hover {
  background: var(--card-2);
}
.mf-row.on-A {
  background: var(--blue-50);
}
.mf-row.on-B {
  background: var(--chip);
}
.mf-row .kd-in {
  height: 38px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.seg-ab {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.seg-ab button {
  width: 36px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
}
.seg-ab button:hover {
  color: var(--text);
  background: var(--chip);
}
.seg-ab button.on-A {
  background: var(--blue);
  color: #fff;
}
.seg-ab button.on-B {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}

/* Demo */
.demo-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  flex-wrap: wrap;
}
.demo-summary .sc {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  background: var(--card-2);
}
.demo-row .dn {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.demo-row .dn strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-row .dn small {
  color: var(--muted);
  font-size: 11.5px;
}
.demo-row .input {
  height: 40px;
}
.demo-row > .i {
  color: var(--muted);
}

/* Draft */
.draft-turn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background-color: var(--blue);
  background-image: var(--stripes);
  transition: background-color 0.3s;
}
.draft-turn.b {
  background-color: #0e0f11;
}
[data-theme="dark"] .draft-turn.b {
  background-color: #2f3037;
}
.draft-turn.done {
  background-color: var(--green);
}
.draft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.draft-col {
  border-radius: 22px;
  padding: 14px;
  background: var(--card-2);
  min-height: 320px;
  transition: box-shadow 0.25s;
}
.draft-col.active.a {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.draft-col.active.b {
  box-shadow: inset 0 0 0 2px var(--text);
}
.draft-col h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.draft-col h4 span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.draft-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.draft-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.draft-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid transparent;
  text-align: left;
  min-width: 0;
  width: 100%;
  transition: border-color 0.15s, transform 0.15s var(--ease);
}
button.draft-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.draft-card .dc-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.draft-card .dc-text strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-card .dc-text small {
  font-size: 11.5px;
  color: var(--muted);
}
.draft-slot-empty {
  height: 52px;
  border-radius: 16px;
  border: 1.5px dashed var(--line-2);
}

/* Settings */
.set-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.set-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.set-block h4 {
  font-size: 15px;
  font-weight: 600;
}
.set-block p {
  font-size: 13px;
}
.set-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.set-stats div {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card-2);
}
.set-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.set-stats span {
  font-size: 12px;
  color: var(--muted);
}
.set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   PERFIL
   ========================================================================== */
.profile-body {
  padding: 22px;
  gap: 16px;
}
.profile-hero {
  flex-shrink: 0;
  min-height: min-content;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 26px;
}
.profile-hero .avatar {
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.ph-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph-info h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-info .ph-name {
  color: var(--on-ink-muted);
  font-size: 13.5px;
}
.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ph-tags .stars {
  --line-2: rgba(255, 255, 255, 0.25);
  font-size: 15px;
}
.ph-actions {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ph-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ph-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.profile-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.profile-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
}
.panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  min-width: 0;
}
.panel h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel h4 small {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.form-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
}
.fb {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.fb .fb-bar {
  width: 100%;
  max-width: 46px;
  border-radius: 14px;
  background-color: var(--blue);
  background-image: var(--stripes);
  min-height: 12px;
  position: relative;
  transition: height 0.6s var(--ease);
}
.fb.neg .fb-bar {
  background-color: var(--dot-3);
}
.fb .fb-val {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fb .fb-res {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.fb .fb-res.w {
  background: var(--green-soft);
  color: var(--green);
}
.fb .fb-res.l {
  background: var(--red-soft);
  color: var(--red);
}
.fb .fb-res.d {
  background: var(--chip);
  color: var(--muted);
}
.insights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.insight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card-2);
  font-size: 13px;
}
.insight .ii {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.insight .ii .i {
  width: 16px;
  height: 16px;
}
.insight strong {
  display: block;
  font-size: 13.5px;
}
.insight small {
  color: var(--muted);
}
.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.map-table th {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 10px;
}
.map-table th:first-child,
.map-table td:first-child {
  text-align: left;
}
.map-table td {
  text-align: right;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.map-table tbody tr {
  cursor: pointer;
}
.map-table tbody tr:hover td {
  background: var(--card-2);
}
.map-table td:first-child {
  font-weight: 600;
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(520px, calc(100vw - 24px));
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  background: #0e0f11;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 13.5px;
  animation: toast-in 0.3s var(--ease);
  max-width: 100%;
}
[data-theme="dark"] .toast {
  background: #f4f4f6;
  color: #0e0f11;
}
.toast.out {
  animation: toast-out 0.25s var(--ease) forwards;
}
.toast > span {
  flex: 1;
  min-width: 0;
}
.toast .i {
  width: 18px;
  height: 18px;
}
.toast-success > .i {
  color: #4ade80;
}
.toast-error > .i {
  color: #ff6b6f;
}
.toast-info > .i {
  color: #7fb0ff;
}
[data-theme="dark"] .toast-success > .i {
  color: var(--green);
}
[data-theme="dark"] .toast-error > .i {
  color: var(--red);
}
[data-theme="dark"] .toast-info > .i {
  color: var(--blue);
}
.toast-action {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.toast-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  display: grid;
  place-items: center;
}
.toast-close:hover {
  opacity: 1;
}
.toast-close .i {
  width: 15px;
  height: 15px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@container (max-width: 1100px) {
  .match-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .match-layout .result-card {
    grid-column: 1 / -1;
  }
  .profile-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 980px) {
  .d-activity,
  .d-right,
  .d-fraggers,
  .d-gauge {
    grid-column: 1 / -1;
  }
  .mix-grid,
  .rank-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .recent-row {
    grid-template-columns: 110px minmax(0, 1fr) 70px;
  }
  .recent-mvp,
  .recent-row > .i {
    display: none;
  }
}

@container (max-width: 720px) {
  .match-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .slots {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
  .fr-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .fr-left .legend {
    margin-top: 6px;
  }
  .mc-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .mc-score {
    order: -1;
    padding-top: 0;
  }
  .stepper {
    border-radius: 24px;
  }
  .step .t small {
    display: none;
  }
}

@container (max-width: 560px) {
  .d-right {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-ink {
    flex-direction: column;
    align-items: stretch;
  }
  .recent-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .recent-date {
    text-align: left;
  }
  .stepper {
    grid-template-columns: repeat(var(--steps, 3), auto);
    justify-content: space-between;
  }
  .step {
    padding: 6px;
  }
  .step .t {
    display: none;
  }
  .step.current .t {
    display: flex;
  }
  .versus {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 16px;
  }
  .versus .vs-name {
    font-size: 15px;
  }
  .podium {
    min-height: 240px;
  }
  .pod.p1 .pod-col {
    height: 150px;
  }
  .pod.p2 .pod-col {
    height: 120px;
  }
  .pod.p3 .pod-col {
    height: 96px;
  }
  .rank-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    background: var(--shell);
    border-radius: 0 30px 30px 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
  }
  .drawer-open .sidebar {
    transform: none;
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(8, 9, 12, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .drawer-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .icon-btn.sidebar-close {
    display: inline-grid;
  }
  .topbar {
    grid-column: 1;
    flex-wrap: wrap;
    padding: 18px 20px 16px;
  }
  .topbar-brand {
    display: flex;
    margin-right: auto;
  }
  .tabs {
    order: 3;
    flex-basis: 100%;
  }
  .main {
    grid-column: 1;
    margin: 0 12px 12px;
  }
  .lobby-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .app {
    margin: 0;
    border-radius: 0;
    min-height: 100dvh;
    box-shadow: none;
  }
  .topbar {
    padding: 14px 16px 12px;
    gap: 10px;
  }
  .org-text,
  .org-chip {
    display: none;
  }
  .topbar .circle-btn {
    width: 40px;
    height: 40px;
  }
  .lobby-toggle {
    height: 40px;
  }
  .tab {
    height: 42px;
    padding: 0 18px;
  }
  .main {
    margin: 0;
    padding: 18px 16px 28px;
    border-radius: 26px 26px 0 0;
  }
  .page-head h2 {
    font-size: 26px;
  }
  .page-head .head-actions {
    width: 100%;
  }
  .card {
    padding: 18px;
    border-radius: 22px;
  }
  .big-num {
    font-size: 34px;
  }
  .toolbar .search-pill,
  .toolbar .select-pill,
  .toolbar .select-pill .input {
    width: 100%;
    min-width: 0;
  }
  .toolbar .seg {
    width: 100%;
  }
  dialog.modal {
    width: 100vw;
    margin: auto 0 0;
    max-height: 94dvh;
    border-radius: 28px 28px 0 0;
  }
  dialog.modal[open] {
    animation: sheet-in 0.32s var(--ease);
  }
  .modal-head {
    padding: 20px 18px 6px 20px;
  }
  .modal-body {
    padding: 12px 20px 18px;
  }
  .modal-foot {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .modal-foot .btn {
    flex: 1;
  }
  .modal-foot .grow {
    display: none;
  }
  .grid-2,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .mf-score {
    grid-template-columns: minmax(0, 1fr);
  }
  .mf-team.b {
    flex-direction: row-reverse;
  }
  .mf-vs {
    display: none;
  }
  .mf-row {
    grid-template-columns: minmax(0, 1fr) auto 54px 54px;
    padding: 6px 4px;
  }
  .mf-row .who .avatar {
    display: none;
  }
  .draft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .draft-col.pool {
    grid-column: 1 / -1;
    order: -1;
    min-height: 0;
  }
  .draft-col {
    min-height: 0;
  }
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .ph-actions {
    justify-content: flex-start;
  }
  .ph-info h3 {
    font-size: 26px;
  }
  .profile-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .set-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .toasts {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 440px) {
  #theme-btn {
    display: none;
  }
  .lobby-toggle {
    padding: 0 14px;
  }
  .brand-name {
    font-size: 18px;
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

@media (hover: none) {
  .lobby-item .li-actions,
  .slot .s-remove {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Penalidade: motivo ---------- */
.textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 16px;
  line-height: 1.45;
  resize: vertical;
}
.pen-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.35;
}
.pen-note .i {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.pen-note span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pen-note.pen-advertencia,
.pen-banner.pen-advertencia {
  background: var(--amber-soft);
  color: var(--amber);
}
.pen-note.pen-suspensao,
.pen-banner.pen-suspensao {
  background: var(--violet-soft);
  color: var(--violet);
}
.pen-note.pen-banido,
.pen-banner.pen-banido {
  background: var(--red-soft);
  color: var(--red);
}
.pen-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
}
.pen-banner .pb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  flex-shrink: 0;
}
.pen-banner .pb-text {
  flex: 1;
  min-width: 0;
}
.pen-banner strong {
  font-size: 14px;
}
.pen-banner p {
  color: var(--text);
  font-size: 13.5px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.pen-banner small {
  font-size: 12px;
  opacity: 0.85;
}
.pen-banner .btn {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .pen-banner {
    flex-wrap: wrap;
  }
  .pen-banner .btn {
    width: 100%;
  }
}

/* ---------- Popover: Mapas x dia da semana ---------- */
button.dot {
  border: 0;
  padding: 0;
  cursor: pointer;
}
button.dot[aria-expanded="true"] {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--blue);
}
.dot-pop {
  --ax: 50%;
  position: fixed;
  z-index: 900;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: dp-in 0.18s var(--ease);
}
.dot-pop::after {
  content: "";
  position: absolute;
  left: var(--ax);
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.dot-pop.below::after {
  bottom: auto;
  top: -7px;
  transform: rotate(225deg);
}
@keyframes dp-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--line);
}
.dp-title {
  text-align: right;
  line-height: 1.25;
}
.dp-title strong {
  display: block;
  font-size: 14px;
}
.dp-title small {
  font-size: 11.5px;
  color: var(--muted);
}
.dp-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 272px;
  overflow-y: auto;
  margin-top: 6px;
}
.dp-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}
.dp-item:hover,
.dp-item:focus-visible {
  background: var(--card-2);
}
.dp-item > .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}
.dp-item:hover > .i {
  color: var(--blue);
  transform: translateX(2px);
}
.dp-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 12px;
  background: var(--chip);
  font-size: 11px;
  line-height: 1.15;
  color: var(--muted);
}
.dp-date b {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dp-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dp-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.dp-score span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.dp-score span:last-child {
  text-align: right;
}
.dp-score .win {
  color: var(--text);
  font-weight: 700;
}
.dp-score b {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--chip);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dp-main small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.dp-main small .i {
  width: 12px;
  height: 12px;
  color: var(--blue);
}
.dp-hint {
  margin-top: 6px;
  padding: 8px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Menu de contexto (ações rápidas) ---------- */
[data-ctx] {
  -webkit-touch-callout: none;
}
.ctx-host {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ctx-menu {
  --ox: left top;
  position: fixed;
  z-index: 950;
  min-width: 250px;
  max-width: min(310px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  outline: none;
  transform-origin: var(--ox);
  animation: ctx-in 0.14s var(--ease);
}
@keyframes ctx-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
.ctx-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.ctx-head .map-badge {
  flex-shrink: 0;
}
.ctx-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.ctx-title strong {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctx-title small {
  font-size: 11.5px;
  color: var(--muted);
}
.ctx-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.ctx-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx-item .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.ctx-item:hover:not(:disabled),
.ctx-item:focus-visible {
  background: var(--chip);
  outline: none;
}
.ctx-item:hover:not(:disabled) .i,
.ctx-item:focus-visible .i {
  color: var(--text);
}
.ctx-item.danger,
.ctx-item.danger .i {
  color: var(--red);
}
.ctx-item.danger:hover:not(:disabled),
.ctx-item.danger:focus-visible {
  background: var(--red-soft);
}
.ctx-item.danger:hover:not(:disabled) .i {
  color: var(--red);
}
.ctx-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ctx-item small {
  margin-left: auto;
  padding-left: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.ctx-sep {
  height: 1px;
  margin: 4px 8px;
  background: var(--line);
}

/* ---------- Select customizado ---------- */
.cselect {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.cs-native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.cs-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-right: 12px;
  text-align: left;
  cursor: pointer;
}
.cs-btn:disabled {
  cursor: not-allowed;
}
.cs-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.cselect.open .cs-btn {
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.cselect.open .cs-chev {
  transform: rotate(180deg);
  color: var(--blue);
}
.cs-pop {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 1200;
  max-width: min(380px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  animation: cs-in 0.14s var(--ease);
  transform-origin: top center;
}
.cs-pop.up {
  transform-origin: bottom center;
}
@keyframes cs-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
.cs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--muted);
}
.cs-search .i {
  width: 16px;
  height: 16px;
}
.cs-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}
.cs-list {
  max-height: 290px;
  overflow-y: auto;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cs-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 11px;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
.cs-opt.active {
  background: var(--chip);
}
.cs-opt.selected {
  font-weight: 600;
  color: var(--blue);
}
.cs-opt[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.cs-check {
  width: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.cs-check .i {
  width: 15px;
  height: 15px;
}
.cs-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-opt small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.cs-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Importação em lote ---------- */
.dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 26px;
  border-radius: 22px;
  border: 1.5px dashed var(--line-2);
  background: var(--card-2);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover,
.dropzone.over {
  border-color: var(--blue);
  background: var(--blue-50);
}
.dropzone.compact {
  padding: 12px 16px;
}
.dz-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}
.dropzone.compact .dz-icon {
  width: 36px;
  height: 36px;
}
.dz-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dz-text strong {
  font-size: 15px;
}
.dropzone.compact .dz-text strong {
  font-size: 13.5px;
}
.dz-text small {
  color: var(--muted);
  font-size: 12.5px;
}
.imp-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.imp-help > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.imp-help .ii {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.imp-help .ii .i {
  width: 16px;
  height: 16px;
}
.imp-help strong {
  display: block;
  font-size: 13.5px;
}
.imp-help small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.imp-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.imp-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.imp-chip.ok {
  background: var(--green-soft);
  color: var(--green);
}
.imp-chip.err {
  background: var(--red-soft);
  color: var(--red);
}
.imp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.imp-section-head h4 {
  font-size: 15px;
  font-weight: 600;
}
.imp-section-head p {
  font-size: 12.5px;
}
.imp-section-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.warn {
  color: var(--amber);
  font-weight: 700;
}
.imp-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.imp-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  background: var(--card-2);
}
.imp-name.pending {
  background: var(--amber-soft);
}
.imp-name > .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.imp-name-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.imp-name-txt strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.imp-name-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.imp-name .cs-btn,
.imp-name select.input {
  height: 40px;
  background-color: var(--card);
}
.imp-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 2px;
  list-style-position: inside;
}
.imp-details .imp-names {
  margin-top: 8px;
}
.imp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.imp-row {
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.imp-row.st-exists,
.imp-row.st-batch {
  opacity: 0.6;
}
.imp-row.st-error {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  background: var(--red-soft);
  border-color: transparent;
}
.imp-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.imp-check input:disabled {
  cursor: not-allowed;
}
.imp-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.imp-main strong {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.imp-main strong .win {
  font-weight: 700;
}
.imp-main small {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.imp-foot-info {
  font-size: 12.5px;
  color: var(--muted);
}
body.dragging-files::after {
  content: "Solte os arquivos .json para importar partidas";
  position: fixed;
  inset: 16px;
  z-index: 2000;
  display: grid;
  place-items: center;
  border-radius: 30px;
  border: 2px dashed var(--blue);
  background: color-mix(in srgb, var(--blue-50) 88%, transparent);
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}
@media (max-width: 720px) {
  .imp-help,
  .imp-names {
    grid-template-columns: minmax(0, 1fr);
  }
  .imp-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .imp-row .map-badge {
    display: none;
  }
  .imp-foot-info {
    display: none;
  }
}

/* Rolagem interna não vaza para a página */
.sidebar,
.picker-list,
.cs-list,
.dp-list,
.mf-roster {
  overscroll-behavior: contain;
}

/* ---------- Detalhe da partida ---------- */
.i.flip {
  transform: rotate(180deg);
}
.card.match-card {
  cursor: pointer;
}
.card.match-card:hover {
  box-shadow: var(--shadow-md);
}
.fb[data-action] {
  cursor: pointer;
}
.fb[data-action]:hover .fb-bar {
  filter: brightness(1.12);
}
.md-back {
  margin-bottom: 12px;
}
.md-title-score {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.md-nav {
  display: flex;
  gap: 6px;
}
.md-nav .circle-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.md-del:hover {
  background: var(--red-soft) !important;
  color: var(--red);
}
.md-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.md-hero {
  grid-column: 1 / -1;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.md-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.md-map {
  background: #fff;
  color: #0e0f11;
}
.md-when {
  color: var(--on-ink-muted);
  font-size: 13px;
}
.md-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.md-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.md-team.b {
  align-items: flex-end;
  text-align: right;
}
.md-side {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.md-team.a .md-side::before,
.md-team.b .md-side::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.md-team.b .md-side::after {
  background: #fff;
}
.md-team strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-team small {
  font-size: 13px;
  color: var(--on-ink-muted);
}
.md-team .tag {
  align-self: flex-start;
}
.md-team.b .tag {
  align-self: flex-end;
}
.md-nums {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 84px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.md-nums .lose {
  color: rgba(255, 255, 255, 0.38);
}
.md-nums i {
  font-style: normal;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}
.md-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
}
.md-result > .i {
  color: var(--blue-soft);
}
.md-result .tag {
  margin-left: auto;
}
.md-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.md-kpis .kpi {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.md-kpis .kpi.ink {
  background: var(--ink);
}
.md-kpis .kpi.blue {
  background: var(--blue);
}
.md-mvp {
  cursor: pointer;
}
.md-kpi-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.md-kpi-player strong {
  font-size: 22px;
}
.md-duel {
  grid-column: span 5;
}
.md-related {
  grid-column: span 7;
}
.md-teams {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.md-awards {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.md-awards .award {
  background: var(--card);
}
.md-awards .award-mvp {
  background: var(--btn-dark-bg);
}
.duel-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.duel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.duel-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.duel-legend i.a,
.duel-total .a,
.duel-side.a .duel-bar {
  background-color: var(--blue);
}
.duel-legend i.b,
.duel-total .b,
.duel-side.b .duel-bar {
  background-color: var(--dot-3);
}
.duel-total {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-bottom: 16px;
}
.duel-total span {
  border-radius: 999px;
  background-image: var(--stripes);
}
.duel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.duel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.duel-pos {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.duel-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  grid-template-areas: "nick nick" "track val";
  gap: 3px 8px;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  min-width: 0;
}
.duel-side:hover {
  background: var(--card-2);
}
.duel-side.b {
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas: "nick nick" "val track";
  text-align: right;
}
.duel-side.empty:hover {
  background: transparent;
}
.duel-nick {
  grid-area: nick;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.duel-side.b .duel-nick {
  justify-content: flex-end;
}
.duel-nick .i {
  width: 13px;
  height: 13px;
  color: var(--blue);
}
.duel-track {
  grid-area: track;
  height: 12px;
  border-radius: 999px;
  background: var(--chip);
  display: flex;
  overflow: hidden;
}
.duel-side.b .duel-track {
  justify-content: flex-end;
}
.duel-bar {
  height: 100%;
  border-radius: 999px;
  background-image: var(--stripes);
  transition: width 0.6s var(--ease);
}
.duel-side b {
  grid-area: val;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.duel-side.a b {
  text-align: right;
}
.md-team-card .team-head {
  flex-wrap: wrap;
}
.md-team-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-team-card .table-wrap {
  margin: 0;
  padding: 6px 10px 10px;
}
.md-table {
  min-width: 560px;
}
.md-table th:nth-child(2),
.md-table td:nth-child(2) {
  text-align: right;
}
.md-table .num.pos {
  color: var(--green);
  font-weight: 700;
}
.md-table .num.neg {
  color: var(--red);
  font-weight: 700;
}
.md-table tfoot td {
  border-top: 1px solid var(--line-2);
  font-weight: 700;
  color: var(--text-2);
  text-align: right;
}
.md-table tfoot td:first-child {
  text-align: left;
}
.md-table .t-player > span:not(.avatar):not(.mvp-mark) {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 12.5px;
}
.md-delta .i {
  width: 13px;
  height: 13px;
}
.md-delta.up {
  color: var(--green);
}
.md-delta.down {
  color: var(--red);
}
.md-impact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  font-size: 12.5px;
}
.md-impact i {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--v), var(--chip) var(--v));
}
.md-team-card.b .md-impact i {
  background: linear-gradient(90deg, var(--dot-3) var(--v), var(--chip) var(--v));
}
@container (max-width: 1100px) {
  .md-teams {
    grid-template-columns: minmax(0, 1fr);
  }
  .md-duel,
  .md-related {
    grid-column: 1 / -1;
  }
}
@container (max-width: 720px) {
  .md-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-score {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .md-nums {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    font-size: 64px;
  }
  .md-team strong {
    font-size: 19px;
  }
  .md-hero {
    padding: 20px;
  }
  .md-result .tag {
    margin-left: 0;
  }
}

/* ---------- Página do jogador ---------- */
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
}
.pp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.pp-full,
.pp-hero,
.pp-kpis {
  grid-column: 1 / -1;
}
.pp-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
}
.pp-hero .avatar {
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.pp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0;
}
.pp-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}
.pp-hero-stats span {
  font-size: 11.5px;
  color: var(--on-ink-muted);
}
.pp-hero-stats strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pp-hero-stats small {
  font-size: 11.5px;
  color: var(--on-ink-muted);
}
.pp-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.pp-kpis .kpi {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.pp-kpis .kpi.ink {
  background: var(--ink);
}
.pp-kpis .kpi.blue {
  background: var(--blue);
}
.pp-evo {
  grid-column: span 8;
}
.pp-insights {
  grid-column: span 4;
}
.pp-records,
.pp-people {
  grid-column: span 4;
}
.pp-maps,
.pp-recent {
  grid-column: span 6;
}
.pp-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.pp-legend i {
  width: 18px;
  border-top: 2px dashed var(--muted);
}
.pp-chart {
  overflow-x: auto;
  scrollbar-width: thin;
}
.pp-plot,
.pp-axis {
  display: flex;
  gap: 8px;
  min-width: min-content;
}
.pp-plot {
  position: relative;
  align-items: flex-end;
}
.pp-axis {
  margin-top: 8px;
}
.pp-axis > span {
  flex: 1;
  min-width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pp-avg {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--line-2);
  pointer-events: none;
  z-index: 0;
}
.pp-col {
  flex: 1;
  min-width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.pp-val {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pp-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 12px;
  background-image: var(--stripes);
  display: grid;
  place-items: start center;
  padding-top: 6px;
  color: #fff;
  transition: filter 0.15s, transform 0.15s var(--ease);
}
.pp-bar .i {
  width: 13px;
  height: 13px;
}
.pp-bar.pos {
  background-color: var(--blue);
}
.pp-bar.neg {
  background-color: var(--dot-3);
}
[data-theme="dark"] .pp-bar.neg {
  color: #0e0f11;
}
.pp-col:hover .pp-bar {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.pp-map {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: capitalize;
}
.pp-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-rec {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--card-2);
  text-align: left;
}
.pp-rec:hover {
  background: var(--chip-hover);
}
.pp-rec .ii {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.pp-rec .ii .i {
  width: 17px;
  height: 17px;
}
.pp-rec > .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pp-rec-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.pp-rec-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.pp-rec-txt strong {
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.pp-rec-txt em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.pp-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pp-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  line-height: 1.25;
}
.pp-chip small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pp-chip strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-chip em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.85;
}
.pp-chip.blue {
  background: var(--blue);
  color: #fff;
}
.pp-chip.green {
  background: var(--green-soft);
  color: var(--green);
}
.pp-chip.red {
  background: var(--red-soft);
  color: var(--red);
}
.pp-people-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-person {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 14px;
  cursor: pointer;
}
.pp-person:hover {
  background: var(--card-2);
}
.pp-person-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.pp-person-txt strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-person-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.pp-person .wr-bar {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pp-person .wr-bar i {
  width: 44px;
}
.pp-match-list {
  display: flex;
  flex-direction: column;
}
.pp-match {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px 16px;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}
.pp-match + .pp-match {
  border-top: 1px solid var(--line);
}
.pp-match:hover {
  background: var(--card-2);
}
.pp-match > .i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pp-match-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.pp-match-main strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-match-main small {
  font-size: 11.5px;
  color: var(--muted);
}
.pp-match-kd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.pp-match-kd small {
  font-size: 11.5px;
  font-weight: 600;
}
.pp-match-kd .pos {
  color: var(--green);
}
.pp-match-kd .neg {
  color: var(--red);
}
@container (max-width: 1100px) {
  .pp-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pp-evo,
  .pp-maps,
  .pp-recent {
    grid-column: 1 / -1;
  }
  .pp-insights,
  .pp-records,
  .pp-people {
    grid-column: span 6;
  }
  .pp-hero {
    flex-wrap: wrap;
  }
  .pp-hero-stats {
    width: 100%;
  }
}
@container (max-width: 720px) {
  .pp-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pp-insights,
  .pp-records,
  .pp-people {
    grid-column: 1 / -1;
  }
  .pp-hero {
    padding: 20px;
    gap: 16px;
  }
  .pp-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pp-hero-stats > div {
    min-width: 0;
    padding: 10px 12px;
  }
  .pp-hero-stats strong {
    font-size: 18px;
  }
}

a.pill-btn {
  text-decoration: none;
}
.btn.pp-inlobby {
  background: var(--blue-50);
  color: var(--blue);
}
.btn.pp-inlobby:hover {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------- Conquistas (badges) ---------- */
.bm {
  --s: 48px;
  position: relative;
  width: var(--s);
  height: calc(var(--s) * 1.08);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: var(--chip);
  color: var(--muted);
}
.bm .i {
  width: calc(var(--s) * 0.42);
  height: calc(var(--s) * 0.42);
}
.bm b {
  position: absolute;
  bottom: calc(var(--s) * 0.1);
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--s) * 0.2);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.9;
}
.bm-xs {
  --s: 22px;
}
.bm-xs b {
  display: none;
}
.bm-sm {
  --s: 30px;
}
.bm-sm b {
  display: none;
}
.bm-md {
  --s: 52px;
}
.bm-md .i {
  transform: translateY(-3px);
}
.bm.tier-1 {
  background: var(--blue-50);
  color: var(--blue);
}
.bm.tier-2 {
  background: var(--blue-soft);
  color: var(--navy);
}
[data-theme="dark"] .bm.tier-2 {
  color: #fff;
}
.bm.tier-3 {
  background-color: var(--blue);
  background-image: var(--stripes);
  color: #fff;
}
.bm.tier-4 {
  background: linear-gradient(135deg, #0e0f11 0%, #15327f 55%, #0b6bff 100%);
  color: #fff;
}
.bm.solo {
  background-color: var(--navy);
  background-image: var(--stripes);
  color: #fff;
}
.bm.legend {
  background: conic-gradient(from 210deg, #0b6bff, #a9c9fb, #0e0f11, #0b6bff);
  color: #fff;
}
.bm.locked {
  background: var(--chip);
  color: var(--muted);
  opacity: 0.8;
}
.bm-strip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.bm-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}
.pc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.pp-hero .bm-strip {
  margin-top: 2px;
}
.pp-hero .bm-more {
  color: var(--on-ink-muted);
}
.pp-hero .bm.locked,
.pp-hero .bm.tier-1 {
  background: rgba(255, 255, 255, 0.92);
}
.pp-badges {
  grid-column: 1 / -1;
}
.bc-overall {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 16px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.bc-prog {
  display: inline-block;
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: var(--chip);
  overflow: hidden;
  flex-shrink: 0;
}
.bc-prog.lg {
  flex: 1;
  height: 8px;
}
.bc-prog i {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: 999px;
  background-color: var(--blue);
  background-image: var(--stripes);
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.badge-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}
button.badge-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.badge-card.locked {
  background: var(--card-2);
  border-style: dashed;
}
.badge-card.locked .bc-txt strong {
  color: var(--text-2);
}
.bc-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.3;
}
.bc-txt strong {
  font-size: 14px;
  font-weight: 700;
}
.bc-txt small {
  font-size: 12.5px;
  color: var(--text-2);
}
.bc-txt small b {
  color: var(--text);
}
.bc-txt em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.bc-txt em .i {
  width: 12px;
  height: 12px;
}
.bc-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bc-rare {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
  font-size: 11px;
  font-weight: 700;
}
.bc-rare .i {
  width: 11px;
  height: 11px;
}
.bc-upnext {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bc-upnext h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.md-unlocks {
  grid-column: 1 / -1;
}
.unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.unlock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-align: left;
}
.unlock:hover {
  border-color: var(--blue);
}
.unlock span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.unlock strong {
  font-size: 13px;
}
.unlock small {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Ranking de conquistas ---------- */
.seg button .i {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}
.br-scope {
  height: 32px;
  padding: 0 12px;
  font-weight: 600;
}
.pod-badges {
  display: inline-flex;
  gap: 3px;
  margin-top: 8px;
}
.pod-badges .bm.tier-1,
.pod-badges .bm.locked {
  background: rgba(255, 255, 255, 0.9);
}
.br-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.br-main {
  grid-row: span 1;
}
.br-rarity {
  grid-column: 1 / -1;
}
.br-table {
  min-width: 620px;
}
.br-table td:nth-child(3),
.br-table th:nth-child(3) {
  text-align: left;
}
.br-table td.hl {
  font-size: 16px;
}
.br-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.br-count small {
  color: var(--muted);
  font-weight: 500;
}
.br-table .bc-rare {
  margin: 0;
}
.br-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.br-note .i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.br-feed {
  display: flex;
  flex-direction: column;
}
.br-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--text-2);
}
.br-feed-item + .br-feed-item {
  border-top: 1px solid var(--line);
}
.br-feed-item:hover {
  background: var(--card-2);
}
.br-feed-item strong,
.br-feed-item b {
  color: var(--text);
}
.br-feed-item span {
  line-height: 1.35;
  min-width: 0;
}
.br-feed-item small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.br-rar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}
.br-rar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 104px;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.br-rar.none {
  opacity: 0.6;
}
.br-rar-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.br-rar-txt strong {
  font-size: 13.5px;
}
.br-rar-txt small {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.br-holders {
  display: inline-flex;
  align-items: center;
}
.br-holders > span:not(.bm-more) {
  margin-left: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card);
  display: inline-flex;
}
.br-holders > span:first-child {
  margin-left: 0;
}
.br-pct {
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.br-pct .wr-bar i {
  width: 44px;
}
@container (max-width: 1100px) {
  .br-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .br-rar-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 560px) {
  .br-rar {
    grid-template-columns: 30px minmax(0, 1fr) 90px;
  }
  .br-holders {
    display: none;
  }
}

@container (min-width: 721px) and (max-width: 1100px) {
  .br-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .br-feed-item + .br-feed-item {
    border-top: 0;
  }
  .br-feed-item {
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Importação: SteamID e partidas a completar ---------- */
.tag-enrich,
.imp-chip.info {
  background: var(--blue-50);
  color: var(--blue);
}
.imp-steam {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-weight: 700;
}
.imp-steam .i {
  width: 11px;
  height: 11px;
}

/* ---------- Conta (login Steam) ---------- */
.account-mount {
  display: flex;
  align-items: center;
}
.steam-btn {
  height: 44px;
  padding: 0 18px 0 14px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.steam-btn:hover:not(:disabled) {
  opacity: 0.9;
}
.steam-btn .i {
  width: 20px;
  height: 20px;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.account-chip:hover,
.account-chip.ctx-host {
  background: var(--chip);
  outline: none;
}
.account-chip .avatar {
  --s: 42px;
}
.acc-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.acc-txt strong {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-txt small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.acc-txt small .i {
  width: 12px;
  height: 12px;
}
.account-chip.is-pending .acc-txt small {
  color: var(--amber);
}
.acc-chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.account-skel {
  display: block;
  width: 150px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--chip) 0%, var(--chip-hover) 50%, var(--chip) 100%);
  background-size: 200% 100%;
  animation: skel 1.2s linear infinite;
}
@keyframes skel {
  to {
    background-position: -200% 0;
  }
}
.tag-you {
  background: var(--green-soft);
  color: var(--green);
}
.auth-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
}
.auth-banner .i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-banner.pending {
  background: var(--amber-soft);
  color: var(--amber);
}
.auth-banner.pending strong,
.auth-banner.denied strong {
  color: inherit;
}
.auth-banner span {
  color: var(--text-2);
}
.auth-banner.denied {
  background: var(--red-soft);
  color: var(--red);
}
.side-org {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}
.side-org .org-avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.side-org:hover {
  color: var(--text);
}

/* ---------- Sino de notificações ---------- */
.bell {
  position: relative;
}
.topbar .bell-btn {
  position: relative;
}
.bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--shell);
  font-variant-numeric: tabular-nums;
}
.bell-btn.ring .i {
  animation: bell-ring 0.9s var(--ease);
  transform-origin: 50% 2px;
}
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
.bell-pop {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 1150;
  width: 370px;
  max-width: calc(100vw - 16px);
  max-height: min(520px, calc(100dvh - 90px));
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  outline: none;
  overflow: hidden;
  animation: ctx-in 0.16s var(--ease);
  transform-origin: top right;
}
.bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.bell-head strong {
  font-size: 15px;
  font-weight: 700;
}
.bell-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 8px;
}
.bell-link:hover {
  background: var(--blue-50);
}
.bell-link.muted {
  color: var(--muted);
}
.bell-link.muted:hover {
  background: var(--chip);
  color: var(--text);
}
.bell-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.bell-group {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bell-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 10px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  color: var(--text);
}
.bell-item:hover,
.bell-item:focus-visible {
  background: var(--card-2);
  outline: none;
}
.bell-item.unread {
  background: color-mix(in srgb, var(--blue-50) 70%, transparent);
}
.bell-item.unread:hover {
  background: var(--blue-50);
}
.bell-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--text-2);
}
.bell-ico .i {
  width: 17px;
  height: 17px;
}
.kind-success .bell-ico {
  background: var(--green-soft);
  color: var(--green);
}
.kind-warning .bell-ico {
  background: var(--amber-soft);
  color: var(--amber);
}
.kind-danger .bell-ico {
  background: var(--red-soft);
  color: var(--red);
}
.kind-info .bell-ico {
  background: var(--blue-50);
  color: var(--blue);
}
.bell-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}
.bell-txt strong {
  font-size: 13.5px;
  font-weight: 600;
}
.bell-item:not(.unread) .bell-txt strong {
  font-weight: 500;
  color: var(--text-2);
}
.bell-txt small {
  font-size: 12.5px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bell-txt em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.bell-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.bell-foot {
  display: flex;
  justify-content: center;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.bell-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 24px 40px;
  text-align: center;
}
.bell-empty .i {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--muted);
  margin-bottom: 4px;
}
.bell-empty small {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 250px;
}
@media (max-width: 720px) {
  .steam-btn span,
  .acc-txt,
  .acc-chev {
    display: none;
  }
  .steam-btn {
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .account-chip {
    padding: 0;
  }
  .account-chip .avatar {
    --s: 40px;
  }
  .bell-pop {
    left: 8px !important;
    right: 8px;
    width: auto;
  }
}
@media (max-width: 440px) {
  .bell-mount .circle-btn {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 440px) {
  .topbar-brand .brand-name span {
    display: none;
  }
}

/* ---------- Modo online: papel, sincronização e presença ---------- */
.readonly [data-action="new-player"],
.readonly [data-action="edit-player"],
.readonly [data-action="delete-player"],
.readonly [data-action="penalty"],
.readonly [data-action="toggle-queue"],
.readonly [data-action="add-manual-match"],
.readonly [data-action="edit-match"],
.readonly [data-action="delete-match"],
.readonly [data-action="open-import"],
.readonly [data-action="import"],
.readonly [data-action="import-demo"],
.readonly [data-action="suggest-stars"],
.readonly [data-action="remove-from-mix"],
.readonly [data-action="open-settings"],
.readonly [data-action="export"],
.readonly [data-action="export-matches"],
.readonly [data-action="hist-select-mode"],
.readonly .md-del,
.readonly .pp-actions > .btn,
.readonly .lobby .picker,
.readonly .side-link {
  display: none !important;
}
.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--chip);
  color: var(--text-2);
  white-space: nowrap;
}
.sync-chip .i {
  width: 14px;
  height: 14px;
}
.sync-chip.saved {
  background: var(--green-soft);
  color: var(--green);
}
.sync-chip.error,
.sync-chip.offline {
  background: var(--red-soft);
  color: var(--red);
}
.auth-banner.info {
  align-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.auth-banner.info span {
  flex: 1;
}
.auth-banner .btn {
  flex-shrink: 0;
  text-decoration: none;
}
.ol-av {
  position: relative;
  display: inline-flex;
}
.online-dot {
  display: none;
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--card);
}
.online-dot.is-online {
  display: block;
}
.sidebar .online-dot {
  box-shadow: 0 0 0 2px var(--shell);
}

/* ---------- Lobby online (jogadores) ---------- */
.ol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ol-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  min-height: 300px;
}
.ol-hero .tag {
  align-self: flex-start;
}
.ol-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.ol-count strong {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ol-count span {
  font-size: 22px;
  color: var(--on-ink-muted);
}
.lobby-progress.on-ink span {
  background: rgba(255, 255, 255, 0.14);
}
.lobby-progress.on-ink span.on {
  background: var(--blue);
}
.ol-me {
  font-size: 14px;
  color: var(--on-ink-muted);
}
.ol-me b {
  color: #fff;
}
.ol-actions {
  margin-top: auto;
}
.ol-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ol-list ul,
.ol-entries {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 14px;
}
.ol-row:hover {
  background: var(--card-2);
}
.ol-row .li-nick {
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ol-row .li-nick:hover {
  color: var(--blue);
}
.ol-role {
  margin-left: auto;
  font-size: 12px;
}
.ol-row-actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.lobby-item + .ol-row,
.lobby-list .ol-row .ol-role {
  font-size: 11.5px;
}

/* ---------- Admin ---------- */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-section + .admin-section {
  margin-top: 18px;
}
.admin-head h3 {
  font-size: 17px;
  font-weight: 600;
}
.admin-head p {
  font-size: 13px;
  margin-top: 2px;
}
.admin-head.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-cols .admin-section + .admin-section {
  margin-top: 0;
}
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.req-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.req-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.req-txt strong {
  font-size: 15px;
}
.req-txt small a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.req-txt small a:hover {
  color: var(--blue);
}
.req-txt small .i {
  width: 12px;
  height: 12px;
}
.req-txt .tag {
  align-self: flex-start;
}
.req-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}
.req-actions .btn {
  flex: 1;
}
.adm-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
}
.adm-row:hover {
  background: var(--card-2);
}
.adm-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.adm-txt small {
  font-size: 12px;
  color: var(--muted);
}
.adm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-form.row {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
}
.adm-form .btn {
  align-self: flex-start;
}
.adm-form.row .btn {
  align-self: flex-end;
}
.admin-lobby-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  margin-bottom: 18px;
}
.admin-lobby-hero h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 4px;
}
.invite-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -6px;
  padding: 0 6px;
}
.invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 14px;
  cursor: pointer;
}
.invite-row:hover {
  background: var(--card-2);
}
.invite-row.on {
  background: var(--blue-50);
}
.invite-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.invite-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.invite-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.invite-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.mig-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
}
.mig-note.err {
  background: var(--red-soft);
  color: var(--red);
}
.mig-note .i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.mig-note span {
  color: var(--text-2);
}
.mig-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
@container (max-width: 1100px) {
  .ol-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ol-hero {
    grid-column: 1 / -1;
    min-height: 0;
  }
}
@container (max-width: 820px) {
  .admin-cols,
  .ol-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .sync-chip span {
    display: none;
  }
  .sync-chip {
    padding: 0 9px;
  }
}

/* Abrir lobby: aviso no Discord */
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.small-note {
  font-size: 12.5px;
}
.cta-actions a.btn,
.cta-actions a.circle-btn {
  text-decoration: none;
}

/* Card "Abrir lobby online" separado do que vem abaixo (Mix e Admin) */
.lobby-open {
  margin-bottom: 18px;
}

/* Sino: respiro entre as notificações e entre os grupos */
.bell-body {
  padding: 8px 10px 10px;
}
.bell-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bell-body ul + .bell-group {
  margin-top: 8px;
}
.bell-group {
  padding: 8px 6px 8px;
}
.bell-item {
  padding: 12px 14px;
}

/* ---------- Histórico: seleção múltipla ---------- */
.history-list.selecting .match-card {
  cursor: pointer;
  user-select: none;
}
.history-list.selecting .mc-head .actions,
.history-list.selecting .mc-head .yt-link {
  display: none;
}
.match-card.is-selected {
  box-shadow: 0 0 0 2px var(--blue), var(--shadow-sm, none);
}
.match-card.is-selected:not(.has-map) {
  background: color-mix(in srgb, var(--blue-50) 55%, var(--card));
}
.mc-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 2px solid var(--line-strong, var(--line));
  background: var(--card);
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.match-card.is-selected .mc-check {
  background: var(--blue);
  border-color: var(--blue);
}
.mc-check .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
#history-select-btn.on {
  background: var(--text);
  color: var(--card);
}
.bulk-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--ink, #0e0f11);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s var(--ease);
}
.bulk-bar .pill-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.bulk-bar .pill-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}
.bulk-count {
  font-size: 14px;
  white-space: nowrap;
}
.bulk-count strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.bulk-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.bulk-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.bulk-bar .btn-ghost {
  background: transparent;
  color: #fff;
}
.bulk-bar .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .bulk-bar {
    border-radius: 22px;
    padding: 12px;
  }
  .bulk-hint {
    display: none;
  }
  .bulk-actions {
    width: 100%;
  }
  .bulk-actions .btn {
    flex: 1;
  }
}

/* Conquistas secretas */
.bc-secret {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 2px;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue);
}
.badge-card.secret strong {
  letter-spacing: 0.2em;
}
.bm .bm-q {
  position: static;
  font-size: 1.1em;
  font-weight: 800;
  line-height: 1;
  background: none;
  color: inherit;
  padding: 0;
  box-shadow: none;
}

/* ---------- Seasons ---------- */
.season-pick select {
  min-width: 180px;
}
.season-pill .i {
  color: var(--amber);
}
.season-live {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
}
.sl-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  flex-shrink: 0;
}
.sl-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sl-txt small {
  color: var(--muted);
  font-size: 12.5px;
}
.sl-prog {
  margin-left: auto;
  width: min(220px, 30%);
}
.season-result {
  margin-bottom: 18px;
  padding: 24px;
}
.season-result header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 2px;
}
.season-result header p {
  color: var(--on-ink-muted);
  font-size: 13px;
}
.sr-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.sr-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
}
.sr-person:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.12);
}
.sr-person > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.sr-person small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-ink-muted);
}
.sr-person small .i {
  width: 13px;
  height: 13px;
}
.sr-person.gold small {
  color: #f5c542;
}
.sr-person.silver small {
  color: #cfd6e0;
}
.sr-person.bronze small {
  color: #e0975e;
}
.sr-person strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-person em {
  font-style: normal;
  font-size: 12px;
  color: var(--on-ink-muted);
}

/* Troféus e selos */
.ph-strips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trophy-strip {
  display: inline-flex;
  gap: 4px;
}
.trophy-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.trophy-dot .i {
  width: 15px;
  height: 15px;
}
.trophy-dot.gold,
.trophy.gold .i {
  color: #f5c542;
}
.trophy-dot.silver,
.trophy.silver .i {
  color: #b8c1cc;
}
.trophy-dot.bronze,
.trophy.bronze .i {
  color: #d9844a;
}
.trophy-dot.blue,
.trophy.blue .i {
  color: var(--blue);
}
.trophy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trophy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--card-2);
  font-size: 13px;
  font-weight: 600;
}
.trophy .i {
  width: 16px;
  height: 16px;
}
.trophy em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.trophy.seal .i {
  color: var(--green);
}

/* Perfil: seção de seasons */
.pp-season {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ss-live {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ss-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card-2);
}
.ss-head small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.ss-head strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ss-head strong span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.ss-pts {
  text-align: right;
}
.ss-pts strong {
  color: var(--blue);
}
.pp-season h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ch-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.ch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.ch .bc-prog {
  grid-column: 1 / -1;
}
.ch-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip);
  color: var(--text-2);
}
.ch-ico .i {
  width: 16px;
  height: 16px;
}
.ch.done {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  background: var(--green-soft);
}
.ch.done .ch-ico {
  background: var(--green);
  color: #fff;
}
.ch-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ch-txt small {
  font-size: 12px;
  color: var(--muted);
}

/* Admin → Seasons */
.admin-season-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px;
  margin-bottom: 18px;
}
.ash-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 320px);
  flex: 1;
}
.ash-main .tag {
  align-self: flex-start;
}
.ash-main h3 {
  font-size: 26px;
  font-weight: 700;
}
.bc-prog.on-ink {
  background: rgba(255, 255, 255, 0.14);
  max-width: 420px;
}
.ash-lead {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ash-lead li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.ash-lead .medal {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ash-lead em {
  font-style: normal;
  color: var(--on-ink-muted);
}
.season-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 13px;
  color: var(--text-2);
}
.season-preview .i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}
.season-preview.bad {
  color: var(--red, #e5484d);
}
.season-preview.bad .i {
  color: currentColor;
}
.season-preview b {
  font-weight: 700;
}
.season-free {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--card-2);
}
.season-free > .i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
}
.season-free > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.season-free small {
  font-size: 12px;
  color: var(--muted);
}
#season-past-form .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
#season-open-form .seg {
  flex-wrap: wrap;
}
.season-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.season-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
}
.season-list li:hover {
  background: var(--card-2);
}
.sl-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip);
  font-weight: 700;
}
.sl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.sl-main small {
  font-size: 12px;
  color: var(--muted);
}
.sl-champ {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.sl-champ > .i {
  width: 16px;
  height: 16px;
  color: #f5c542;
}
@media (max-width: 720px) {
  .season-live {
    flex-wrap: wrap;
  }
  .sl-prog {
    width: 100%;
    margin-left: 0;
  }
  .season-list li {
    flex-wrap: wrap;
  }
}
.ch .bc-prog {
  width: 100%;
}

/* Mix do admin: confirmar a própria vaga quando está na lista */
.join-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
  background: color-mix(in srgb, var(--blue-50) 60%, var(--card));
}
.jc-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}
.jc-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.jc-txt small {
  font-size: 12.5px;
  color: var(--text-2);
}
@media (max-width: 720px) {
  .join-callout {
    flex-wrap: wrap;
  }
  .join-callout .btn {
    width: 100%;
  }
}

/* ---------- Admin → Níveis ---------- */
.lv-top {
  margin-bottom: 18px;
}
.lv-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lv-rules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-2);
}
.lv-rules .i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 1px;
}
.lv-table .t-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.lv-table .t-player:hover {
  color: var(--blue);
}
.lv-table tr.is-locked td {
  opacity: 0.6;
}
.lv-table tr.is-locked td:nth-last-child(2) {
  opacity: 1;
}
.lv-conf {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.lv-conf.hi {
  background: var(--green-soft);
  color: var(--green);
}
.lv-conf.mid {
  background: var(--blue-50);
  color: var(--blue);
}
.lv-conf.lo {
  background: var(--amber-soft);
  color: var(--amber);
}
.lv-sug {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.lv-delta {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.lv-delta.up {
  background: var(--green-soft);
  color: var(--green);
}
.lv-delta.down {
  background: var(--red-soft);
  color: var(--red);
}
.lv-delta.same {
  color: var(--muted);
}
.lv-lock {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.lv-lock input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lv-lock span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip);
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.lv-lock span .i {
  width: 15px;
  height: 15px;
}
.lv-lock input:checked + span {
  background: var(--text);
  color: var(--card);
}
.lv-lock input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Meu perfil / Setup ---------- */
.me-sec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid .span-2 {
  grid-column: span 2;
}
.me-edpi {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.me-edpi:empty {
  display: none;
}
.me-edpi .i {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
.pp-setup {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pp-setup.empty {
  gap: 0;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.setup-grid > div {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card-2);
  min-width: 0;
}
.setup-grid > div.hl {
  background: var(--blue);
  color: #fff;
}
.setup-grid dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.setup-grid .hl dt {
  color: rgba(255, 255, 255, 0.75);
}
.setup-grid dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-cross {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
}
.setup-cross > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.setup-cross small {
  font-size: 11.5px;
  color: var(--muted);
}
.setup-cross code {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .form-grid,
  .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .form-grid,
  .form-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
}

/* ---------- Comunidade no perfil: reputação e visitas ---------- */
.pp-social {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}
.pp-social > header {
  grid-column: 1 / -1;
}
.social-rep,
.social-visits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.social-visits {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.rep-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rep-summary > strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rep-summary > strong.good {
  color: var(--green);
}
.rep-summary > strong.mid {
  color: var(--amber);
}
.rep-summary > strong.bad {
  color: var(--red);
}
.rep-summary > span:not(.rep-bar) {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rep-summary b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}
.rep-summary b .i {
  width: 16px;
  height: 16px;
}
.rep-summary b:first-child .i {
  color: var(--green);
}
.rep-summary b:nth-child(2) .i {
  color: var(--red);
}
.rep-summary small {
  font-size: 12px;
  color: var(--muted);
}
.rep-bar {
  flex-basis: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--red-soft);
  overflow: hidden;
}
.rep-bar i {
  display: block;
  height: 100%;
  width: var(--v);
  background: var(--green);
  border-radius: inherit;
}
.rep-vote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card-2);
}
.rep-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rep-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.rep-btn .i {
  width: 16px;
  height: 16px;
}
.rep-btn.up.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.rep-btn.down.on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.rep-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.rep-hint:empty {
  display: none;
}
.rep-hint,
.rep-reason {
  font-size: 13px;
  color: var(--text-2);
}
.rep-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card-2);
}
.rep-list,
.visit-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rep-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
}
.rep-item:hover {
  background: var(--card-2);
}
.rep-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-top: 4px;
}
.rep-ico .i {
  width: 14px;
  height: 14px;
}
.rep-ico.up {
  background: var(--green-soft);
  color: var(--green);
}
.rep-ico.down {
  background: var(--red-soft);
  color: var(--red);
}
.rep-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rep-txt .li-nick {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
.rep-txt .li-nick:hover {
  color: var(--blue);
}
.rep-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.visit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.visit:hover {
  background: var(--card-2);
}
.visit span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.visit small {
  font-size: 11.5px;
  color: var(--muted);
}
.social-visits .small-note {
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-visits .small-note .i {
  width: 14px;
  height: 14px;
}
@container (max-width: 820px) {
  .pp-social {
    grid-template-columns: minmax(0, 1fr);
  }
  .social-visits {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}

/* Conectar ao servidor / importar resultado */
.connect-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.ol-hero .connect-box {
  margin: 4px 0 0;
}
.connect-box.big .btn-primary {
  box-shadow: 0 10px 30px color-mix(in srgb, var(--blue) 45%, transparent);
}
.ol-hero .connect-box .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.server-card {
  margin-bottom: 18px;
}
#confirm-message {
  white-space: pre-line;
}

/* Saída depois do sorteio */
.leave-callout {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber-soft) 70%, var(--card));
}
.leave-callout .jc-ico {
  background: var(--amber);
}
.ol-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-btn .i {
  width: 12px;
  height: 12px;
}
.resolve-reason {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.resolve-next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.resolve-next .i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ---------- Arte dos mapas (ícone + foto de fundo) ---------- */
.map-badge.has-icon {
  padding-left: 4px;
}
.map-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.map-chip .map-ico {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}
/* Histórico: a foto aparece no alto do card e some num degradê até a cor do card */
.card.match-card.has-map {
  background-image: linear-gradient(
      180deg,
      color-mix(in srgb, var(--card) 50%, transparent) 0%,
      color-mix(in srgb, var(--card) 86%, transparent) 34%,
      var(--card) 58%
    ),
    var(--map-bg);
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat;
}
.card.match-card.has-map .mc-head .date,
.card.match-card.has-map .mc-head .actions {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(6px);
}
.card.match-card.has-map .mc-head .actions {
  padding: 2px 4px;
}
/* Página da partida: foto à direita, escurecida para o placar continuar legível */
.md-hero.has-map {
  background: linear-gradient(90deg, var(--ink) 18%, color-mix(in srgb, var(--ink) 72%, transparent) 55%, color-mix(in srgb, var(--ink) 45%, transparent) 100%),
    var(--map-bg) center / cover no-repeat, var(--ink);
}
.md-hero.has-map::after {
  display: none;
}

/* ---------- Sequência no avatar: fogo (vitórias) e gelo (derrotas) ---------- */
.streak-av {
  --gap: var(--card);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 50%;
  isolation: isolate;
}
.card-ink .streak-av {
  --gap: var(--ink);
}
.streak-av > .avatar {
  box-shadow: 0 0 0 3px var(--gap);
}
.streak-av::before,
.streak-av::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.streak-av::before {
  inset: 0;
  z-index: -1;
  animation: streak-spin 3.2s linear infinite;
}
.streak-av::after {
  inset: -7px;
  z-index: -2;
  animation: streak-pulse 1.8s ease-in-out infinite;
}
.streak-av.fire::before {
  background: conic-gradient(from 0deg, #ff3d00, #ff8a00, #ffd54f, #ff8a00, #ff3d00, #ff6d00, #ff3d00);
}
.streak-av.fire::after {
  background: radial-gradient(circle, transparent 56%, rgba(255, 109, 0, 0.45) 68%, rgba(255, 61, 0, 0) 78%);
}
.streak-av.ice::before {
  background: conic-gradient(from 0deg, #4fc3f7, #e1f5fe, #81d4fa, #0288d1, #b3e5fc, #4fc3f7);
  animation-duration: 7s;
}
.streak-av.ice::after {
  background: radial-gradient(circle, transparent 56%, rgba(79, 195, 247, 0.4) 68%, rgba(79, 195, 247, 0) 78%);
  animation-duration: 3.4s;
}
.streak-badge {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  box-shadow: 0 0 0 2px var(--gap);
  font-variant-numeric: tabular-nums;
}
.streak-badge .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}
.streak-av.fire .streak-badge {
  background: linear-gradient(135deg, #ff3d00, #ff9100);
}
.streak-av.ice .streak-badge {
  background: linear-gradient(135deg, #0277bd, #4fc3f7);
}
.streak-av.sz-lg {
  padding: 3px;
}
.streak-av.sz-lg .streak-badge {
  right: -8px;
  bottom: -6px;
  font-size: 10.5px;
  padding: 1px 6px 1px 4px;
}
.streak-av.sz-lg .streak-badge .i {
  width: 12px;
  height: 12px;
}
@keyframes streak-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes streak-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .streak-av::before,
  .streak-av::after {
    animation: none;
  }
}
/* anel mais visível */
.streak-av {
  padding: 5px;
}
.streak-av > .avatar {
  box-shadow: 0 0 0 2.5px var(--gap);
}
.streak-av.fire::before {
  box-shadow: 0 0 16px 3px rgba(255, 109, 0, 0.6);
}
.streak-av.ice::before {
  box-shadow: 0 0 16px 3px rgba(79, 195, 247, 0.55);
}
.streak-av.sz-lg {
  padding: 4px;
}

/* anel em avatares menores (listas, pódio, partida) */
.streak-av.sz-md {
  padding: 3px;
}
.streak-av.sz-md .streak-badge {
  right: -9px;
  bottom: -6px;
  font-size: 10px;
  padding: 1px 5px 1px 3px;
}
.streak-av.sz-md .streak-badge .i {
  width: 11px;
  height: 11px;
}
.streak-av.sz-sm,
.streak-av.sz-xs {
  padding: 2.5px;
}
.streak-av.sz-sm > .avatar,
.streak-av.sz-xs > .avatar {
  box-shadow: 0 0 0 1.5px var(--gap);
}
.streak-av.sz-sm::after,
.streak-av.sz-xs::after {
  inset: -4px;
}
.streak-av.sz-sm::before,
.streak-av.sz-xs::before {
  box-shadow: none;
}
/* nas listas o selo mostra só o ícone; o número fica no título (passar o mouse) */
.streak-av.sz-sm .streak-badge,
.streak-av.sz-xs .streak-badge {
  right: -5px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  padding: 0;
  justify-content: center;
  font-size: 0;
  gap: 0;
  box-shadow: 0 0 0 1.5px var(--gap);
}
.streak-av.sz-sm .streak-badge .i,
.streak-av.sz-xs .streak-badge .i {
  width: 10px;
  height: 10px;
}
.sidebar .streak-av {
  --gap: var(--shell);
}
/* com anel de sequência o selo ocupa o canto de baixo: o "online" sobe para o canto de cima */
.ol-av .streak-av + .online-dot {
  top: 0;
  right: 0;
  bottom: auto;
  z-index: 2;
}
/* regras de "cortar texto" de tabelas/listas não podem cortar o selo do anel */
.streak-av {
  overflow: visible !important;
  text-overflow: clip !important;
}

/* ---------- Aba "Jogar" em destaque ---------- */
.tab.tab-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 38%, transparent);
}
.tab.tab-play .i {
  width: 15px;
  height: 15px;
}
.tab.tab-play:hover {
  filter: brightness(1.08);
}
.tab.tab-play.active {
  background: var(--text);
  color: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 55%, transparent);
}
.tab.tab-play .tab-badge:not(:empty) {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
.play-fab {
  display: none;
}
@media (max-width: 720px) {
  .play-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--blue) 45%, transparent);
  }
  .play-fab.here {
    display: none;
  }
  .play-fab .i {
    width: 18px;
    height: 18px;
  }
  .play-fab b:not(:empty) {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
  }
}

/* ---------- Jogar: times sorteados ---------- */
.play-teams-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px;
  margin-bottom: 18px;
}
.play-teams-hero h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 12px;
}
.play-teams-hero .connect-box {
  margin: 0;
}
.tb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.tb-vs {
  display: grid;
  place-items: center;
}
.tb-vs span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--card);
  font-weight: 800;
  font-size: 14px;
}
.tb-team {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tb-team.mine {
  box-shadow: 0 0 0 2px var(--blue), var(--shadow-md);
}
.tb-team header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-side {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tb-team header strong {
  font-size: 17px;
}
.tb-stars {
  margin-left: auto;
  font-weight: 700;
  color: var(--text-2);
}
.tb-team ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tb-team li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 14px;
}
.tb-team li.me {
  background: var(--blue-50);
}
.tb-team li .li-nick {
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.tb-team li .muted {
  margin-left: auto;
  font-size: 12px;
}
.play-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  max-width: 640px;
}
.pr-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.pr-score span:last-child {
  text-align: right;
}
.pr-score strong {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.play-result.won .tag {
  background: var(--green);
  color: #fff;
}
.play-result.lost .tag {
  background: var(--red);
  color: #fff;
}
.pr-me {
  color: var(--on-ink-muted);
}
.pr-me b {
  color: #fff;
}
.play-next {
  margin-top: 14px;
}
@container (max-width: 820px) {
  .tb-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Revelação dos times ---------- */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, #050507 95%, transparent);
  backdrop-filter: blur(10px);
  color: #fff;
  animation: rv-fade 0.25s ease;
}
.reveal[hidden] {
  display: none;
}
.rv-inner {
  width: min(980px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rv-head .btn-ghost,
.rv-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.rv-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rv-team {
  min-height: 330px;
  padding: 18px;
  border-radius: 24px;
  background: #131418;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.rv-team h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.rv-team.a h3 {
  color: #6ea8ff;
}
.rv-team ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  --gap: #16171b;
}
.rv-card span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.rv-card small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
}
.rv-card.me {
  background: var(--blue);
}
.rv-card.enter {
  animation: rv-enter 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.rv-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 30px;
}
.rv-slot {
  width: 190px;
  height: 190px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(46, 107, 255, 0.35), rgba(255, 255, 255, 0.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 40px rgba(46, 107, 255, 0.25);
}
.rv-slot .avatar {
  --gap: transparent;
}
.rv-name {
  font-weight: 700;
  font-size: 16px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-q {
  font-size: 64px;
  font-weight: 800;
  opacity: 0.5;
}
.rv-slot.pop {
  animation: rv-pop 0.35s ease;
}
.rv-slot.to-a {
  box-shadow: inset 0 0 0 2px #6ea8ff, 0 0 40px rgba(110, 168, 255, 0.5);
}
.rv-slot.to-b {
  box-shadow: inset 0 0 0 2px #fff, 0 0 40px rgba(255, 255, 255, 0.35);
}
.rv-done .i {
  width: 56px;
  height: 56px;
  color: #4ade80;
}
.rv-vs {
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.reveal.finished.mine-a .rv-team.a,
.reveal.finished.mine-b .rv-team.b {
  background: rgba(46, 107, 255, 0.16);
  box-shadow: inset 0 0 0 2px var(--blue), 0 0 50px rgba(46, 107, 255, 0.35);
}
.rv-foot:empty {
  display: none;
}
.rv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  animation: rv-fade 0.35s ease;
}
.rv-msg {
  font-size: 22px;
}
.rv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rv-actions .connect-box {
  margin: 0;
}
@keyframes rv-fade {
  from {
    opacity: 0;
  }
}
@keyframes rv-pop {
  0% {
    transform: scale(0.86);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes rv-enter {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
  }
}
@media (max-width: 720px) {
  .rv-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rv-center {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: 0;
  }
  .rv-slot {
    width: 150px;
    height: 150px;
  }
  .rv-team {
    min-height: 0;
    padding: 12px;
  }
  .rv-card small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card.enter,
  .rv-slot.pop,
  .reveal {
    animation: none;
  }
}

.reveal.finished [data-action="reveal-skip"] {
  visibility: hidden;
}
.reveal.finished.mine-a .rv-team.a h3::after,
.reveal.finished.mine-b .rv-team.b h3::after {
  content: "Seu time";
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 3px;
}

/* ---------- Veto de mapas ---------- */
.veto {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
  scroll-margin-top: 90px;
}
.veto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.veto-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.veto-head h3 > .i {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.veto-head p {
  font-size: 13px;
  margin-top: 2px;
}
.veto-caps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.veto-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.25s, background 0.25s;
}
.veto-cap > span:not(.captain) {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.veto-cap small {
  font-size: 11px;
  color: var(--muted);
}
.veto-cap strong {
  font-size: 13.5px;
}
.veto-cap.turn {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.veto-cap.side-b.turn {
  background: color-mix(in srgb, var(--dot-3) 12%, var(--card));
  box-shadow: inset 0 0 0 1.5px var(--dot-3);
}
.veto-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--card-2);
  font-size: 14px;
}
.veto-status p {
  flex: 1;
  min-width: 200px;
}
.veto-status p small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.veto-status.mine {
  background: var(--blue);
  color: #fff;
}
.veto-status.mine p small,
.veto-status.mine .veto-count {
  color: rgba(255, 255, 255, 0.75);
}
.veto-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.veto-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 currentColor;
  color: var(--blue);
  animation: veto-ping 1.4s ease-out infinite;
  flex-shrink: 0;
}
.veto-dot.side-b {
  background: var(--dot-3);
  color: var(--dot-3);
}
.veto-status.mine .veto-dot {
  background: #fff;
  color: #fff;
}
.veto-confirm {
  display: flex;
  gap: 8px;
  align-items: center;
}
.veto-status.mine .veto-confirm .btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.veto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.veto-map {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  min-height: 108px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.2s, filter 0.35s;
}
.veto-map.has-map {
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.05) 20%, rgba(8, 9, 12, 0.82) 100%), var(--map-bg) center / cover no-repeat, var(--ink);
}
.veto-map:not([disabled]):hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.veto-map[disabled] {
  cursor: default;
}
.veto-map.picked {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 3px var(--red), 0 12px 28px rgba(229, 72, 77, 0.35);
}
.vm-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.vm-name .map-ico {
  width: 22px;
  height: 22px;
}
/* banido: foto em cinza e escurecida (só o fundo; o carimbo continua vermelho) */
.veto-map.banned {
  background: linear-gradient(rgba(10, 11, 14, 0.62), rgba(10, 11, 14, 0.62)), var(--ink);
}
.veto-map.banned.has-map {
  background: linear-gradient(rgba(10, 11, 14, 0.62), rgba(10, 11, 14, 0.62)), linear-gradient(#777, #777), var(--map-bg) center / cover no-repeat;
  background-blend-mode: normal, color, normal;
}
.veto-map.banned .vm-name {
  color: rgba(255, 255, 255, 0.6);
}
.veto-map.banned .vm-name {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.vm-stamp {
  position: absolute;
  top: 12px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 6px;
  border-radius: 8px;
  border: 2px solid #ff5a5f;
  color: #ff5a5f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  background: rgba(0, 0, 0, 0.35);
}
.vm-stamp .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.veto-map.fresh .vm-stamp {
  animation: veto-stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.veto-map.fresh {
  animation: veto-shake 0.4s 0.15s both;
}
.vm-by {
  max-width: 100%;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.veto-map.final {
  box-shadow: 0 0 0 3px var(--green, #30a46c), 0 14px 30px rgba(48, 164, 108, 0.35);
}
.vm-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px 2px 5px;
  border-radius: 999px;
  background: var(--green, #30a46c);
  white-space: nowrap;
}
.vm-pick .i {
  width: 13px;
  height: 13px;
}
.veto-final {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  color: #fff;
  background: var(--ink);
}
.veto-final.has-map {
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.92) 25%, rgba(8, 9, 12, 0.45) 100%), var(--map-bg) center / cover no-repeat, var(--ink);
}
.veto-final small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.veto-final strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 34px;
  letter-spacing: -0.02em;
}
.veto-final strong .map-ico {
  width: 40px;
  height: 40px;
}
.veto-final span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.veto-final.fresh {
  animation: veto-final 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.veto-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(127, 127, 127, 0.18));
}
.veto-pool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.veto-pool .section-label {
  width: 100%;
  margin: 4px 0 2px;
}
.veto-jump {
  color: inherit;
  font-weight: 700;
}
.li-nick .captain,
.nick .captain {
  margin-left: 6px;
}
@keyframes veto-ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@keyframes veto-stamp {
  0% {
    opacity: 0;
    transform: scale(2.2) rotate(-18deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }
}
@keyframes veto-shake {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: -4px 1px;
  }
  50% {
    translate: 3px -1px;
  }
  75% {
    translate: -2px 0;
  }
}
@keyframes veto-final {
  0% {
    opacity: 0;
    transform: scale(0.92);
    filter: brightness(2.2) blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Revelação: sorteio dos capitães */
.rv-card {
  position: relative;
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
}
.rv-card.hl {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  transform: scale(1.02);
}
.rv-card.cap {
  box-shadow: inset 0 0 0 2px #f5c542;
}
.rv-card.crowned {
  animation: rv-crowned 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.rv-crown {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5c542;
  color: #1a1400;
}
.rv-crown .i {
  width: 16px;
  height: 16px;
}
.rv-card.crowned .rv-crown {
  animation: rv-crown-drop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.5) both;
}
.rv-crown-big .i {
  width: 64px;
  height: 64px;
  color: #f5c542;
}
.rv-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rv-caps {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}
.rv-caps .i {
  width: 18px;
  height: 18px;
  color: #f5c542;
}
@keyframes rv-crowned {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
    box-shadow: inset 0 0 0 2px #f5c542, 0 0 30px rgba(245, 197, 66, 0.55);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes rv-crown-drop {
  0% {
    opacity: 0;
    transform: translateY(-26px) scale(1.6) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .veto-dot,
  .veto-map.fresh,
  .veto-map.fresh .vm-stamp,
  .veto-final.fresh,
  .rv-card.crowned,
  .rv-card.crowned .rv-crown {
    animation: none;
  }
}
.veto-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.veto-line .map-ico {
  width: 22px;
  height: 22px;
}

/* Veto: relógio de cada vez */
.veto-clock {
  --p: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  isolation: isolate;
}
.veto-clock i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  transition: width 1s linear;
  z-index: -1;
}
.veto-clock .i {
  width: 15px;
  height: 15px;
}
.veto-clock.low {
  color: #fff;
  background: color-mix(in srgb, var(--red) 55%, transparent);
  animation: veto-tick 1s ease-in-out infinite;
}
.veto-clock.low i {
  background: var(--red);
}
.veto-status.mine .veto-clock {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.veto-status.mine .veto-clock i {
  background: rgba(255, 255, 255, 0.28);
}
.veto-status.mine .veto-clock.low i {
  background: var(--red);
}
@keyframes veto-tick {
  50% {
    transform: scale(1.06);
  }
}

/* Veto: chance de vitória em cada mapa */
.vm-odds {
  display: flex;
  width: 100%;
  height: 18px;
  margin-top: 4px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  background: rgba(20, 21, 26, 0.78);
  font-variant-numeric: tabular-nums;
}
.vo-a {
  padding-left: 7px;
  background: var(--blue);
  white-space: nowrap;
  transition: width 0.4s ease;
}
.vo-b {
  flex: 1;
  padding-right: 7px;
  text-align: right;
  white-space: nowrap;
}
.veto-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
}
.vl-a,
.vl-b {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}
.vl-b {
  margin-left: 6px;
  background: rgba(20, 21, 26, 0.85);
}
.vf-odds {
  margin-top: 6px;
}
.vf-odds b {
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .veto-clock.low {
    animation: none;
  }
}
.veto-pool .map-chip {
  display: inline-flex;
  align-items: center;
}

/* ---------- Página do veto ---------- */
.veto-page .veto-grid {
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
}
.veto-page .veto-map {
  min-height: 150px;
  padding: 14px;
}
.veto-page .vm-name {
  font-size: 17px;
}
.veto-page .vm-odds {
  height: 22px;
  line-height: 22px;
  font-size: 11.5px;
}
.veto-connect {
  margin-bottom: 18px;
}
.veto-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.veto-lock .i {
  width: 14px;
  height: 14px;
}
.veto-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.veto-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.veto-cta > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.veto-cta small {
  color: var(--muted);
}
.vc-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
}
.vc-ic .i {
  width: 22px;
  height: 22px;
}
.rv-auto {
  align-self: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Veto: qual cor é qual time */
.veto-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.veto-teams small {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.vtl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}
.vtl b,
.vc-tag {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
}
.vtl em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.vtl.side-a {
  background: var(--blue);
}
.vtl.side-b {
  background: #1b1c22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.vtl-vs {
  font-weight: 700;
  color: var(--muted);
}
.vc-tag {
  color: #fff;
}
.veto-cap.side-a .vc-tag {
  background: var(--blue);
}
.veto-cap.side-b .vc-tag {
  background: #1b1c22;
}
.veto-cap.side-b.turn {
  background: color-mix(in srgb, #1b1c22 10%, var(--card));
  box-shadow: inset 0 0 0 1.5px #1b1c22;
}
:root[data-theme="dark"] .veto-cap.side-b.turn {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.vm-odds {
  background: #1b1c22;
}
.vm-odds i {
  font-style: normal;
  font-weight: 800;
  opacity: 0.75;
  margin-right: 4px;
}
.vo-b i {
  margin: 0 0 0 4px;
}
.veto-legend {
  font-size: 12px;
}

/* Chance por mapa: sigla + % em cima, barra fina embaixo (o texto nunca se sobrepõe) */
.vm-odds,
.veto-page .vm-odds {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: auto;
  line-height: 1.2;
  overflow: visible;
  background: none;
  border-radius: 0;
  font-size: 11.5px;
}
.vo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.vo-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vo-tag {
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: none;
}
.vo-tag.a {
  background: var(--blue);
}
.vo-tag.b {
  background: #1b1c22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.vo-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #1b1c22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.vo-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}

/* ---------- Estatísticas manuais: K · D · A · ADR · HS numa linha só ----------
   Os campos extras entram na mesma grade do K/D (display: contents); em card
   estreito descem para uma segunda linha, com o nome de cada campo. */
.card.team-card,
.mf-roster {
  container-type: inline-size;
}
.adv-in {
  display: contents;
}
.roster-head,
.roster li {
  grid-template-columns: minmax(0, 1fr) 50px 50px 46px 58px 46px 40px;
  gap: 6px;
}
.kd-in.adv {
  font-weight: 500;
}
.kd-in.adv::placeholder {
  font-size: 11.5px;
}
.roster-head .h-adv {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.mf-row {
  grid-template-columns: minmax(0, 1fr) auto 54px 54px 46px 58px 46px;
  gap: 6px;
}
/* card médio (telas de 1280 a 1600px, com o resultado ao lado): tudo numa linha, mais justo */
@container (max-width: 470px) {
  .roster {
    padding: 0 6px 8px;
  }
  .roster-head {
    padding: 12px 10px 6px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .roster-head,
  .roster li {
    grid-template-columns: minmax(0, 1fr) 38px 38px 34px 46px 34px 30px;
    gap: 4px;
  }
  .roster li {
    padding: 6px 4px;
  }
  .roster li .who > :first-child {
    display: none;
  }
  .roster .kd-in {
    height: 36px;
    padding: 0 2px;
    font-size: 13px;
    border-radius: 10px;
  }
  .roster .kd-in.adv::placeholder {
    font-size: 10.5px;
  }
  .roster .kd-live {
    font-size: 11px;
  }
}
/* card estreito (celular): A · ADR · HS descem para uma segunda linha */
@container (max-width: 360px) {
  .roster-head,
  .roster li {
    grid-template-columns: minmax(0, 1fr) 46px 46px 34px;
  }
  .roster-head .h-adv {
    display: none;
  }
  .roster li .who {
    grid-row: 1 / span 2;
  }
  .roster li .kd-live {
    grid-column: 4;
    grid-row: 1;
  }
  .roster li .adv-in {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .roster li .kd-in.adv {
    height: 34px;
  }
}
@container (max-width: 620px) {
  .mf-row {
    grid-template-columns: minmax(0, 1fr) auto 54px 54px;
  }
  .mf-row .who,
  .mf-row .seg-ab {
    grid-row: 1 / span 2;
  }
  .mf-row .adv-in {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    grid-column: 3 / -1;
    grid-row: 2;
  }
  .mf-row .kd-in.adv {
    height: 34px;
  }
}
.map-chip {
  display: inline-flex;
  align-items: center;
}

/* ---------- Paginação do histórico ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.pg-info {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pg-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pg-num {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pg-num:hover {
  background: var(--chip-hover);
}
.pg-num.on {
  background: var(--ink);
  color: #fff;
}
[data-theme="dark"] .pg-num.on {
  background: var(--blue);
}
.pg-gap {
  padding: 0 2px;
  color: var(--muted);
}
.pager .pill-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
.i.flip {
  transform: scaleX(-1);
}

/* ---------- Lista do lobby: escolhidos em etiquetas + busca de quem falta ---------- */
.inv-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  align-items: center;
}
.inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 4px;
  border-radius: 999px;
  background: var(--blue-50);
  font-size: 13px;
  font-weight: 600;
}
.inv-chip > span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.inv-chip button:hover {
  background: color-mix(in srgb, var(--red) 15%, transparent);
  color: var(--red);
}
.inv-chip button .i {
  width: 13px;
  height: 13px;
}
.inv-empty {
  font-size: 12.5px;
}
button.invite-row {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
}
.inv-add {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.15s;
}
.inv-add .i {
  width: 14px;
  height: 14px;
}
button.invite-row:hover .inv-add,
button.invite-row:focus-visible .inv-add {
  opacity: 1;
}
@media (hover: none) {
  .inv-add {
    opacity: 1;
  }
}

/* Editar partida: aviso de que só aparecem os que jogaram */
.mf-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 4px;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 12.5px;
  color: var(--muted);
}
.mf-hint .i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

#players-pager:not(:empty) {
  margin-top: 18px;
}

/* ==========================================================================
   PAINEL: visões do jogador, do admin e do visitante
   ========================================================================== */
.dash-grid > .c4 { grid-column: span 4; }
.dash-grid > .c5 { grid-column: span 5; }
.dash-grid > .c6 { grid-column: span 6; }
.dash-grid > .c7 { grid-column: span 7; }
.dash-grid > .c8 { grid-column: span 8; }
.dash-grid > .c12,
.dash-grid > .dash-full { grid-column: 1 / -1; }
.dash-full > .card { height: 100%; }
.d-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.d-stack {
  display: grid;
  gap: 18px;
}
@container (max-width: 980px) {
  .dash-grid > .c4,
  .dash-grid > .c5,
  .dash-grid > .c6,
  .dash-grid > .c7,
  .dash-grid > .c8 {
    grid-column: 1 / -1;
  }
}
@container (max-width: 560px) {
  .d-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Meu momento */
.me-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.me-top strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.me-kpis,
.ml-kpis,
.att-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.att-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.me-kpis > div,
.ml-kpis > div,
.att-kpis > div {
  padding: 12px;
  border-radius: 16px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.me-kpis strong,
.ml-kpis strong,
.att-kpis strong {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.me-kpis strong.pos { color: var(--green); }
.me-kpis strong.neg { color: var(--red); }
.me-kpis span,
.ml-kpis span,
.att-kpis span {
  font-size: 11.5px;
  color: var(--muted);
}
.ml-kpis strong .i {
  width: 16px;
  height: 16px;
  color: #f5c542;
}
.me-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
}
.form-dots {
  display: inline-flex;
  gap: 6px;
}
.fd {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}
.fd.w { background: var(--green); }
.fd.l { background: var(--red); }
.fd.d { background: var(--muted); }
.fd:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Minha season */
.ms-pos {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ms-pos strong {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.ms-pos span {
  color: var(--muted);
  font-size: 13px;
}
.ms-pos b { color: var(--text); }
.ms-gap {
  font-size: 13px;
  margin: 4px 0 12px;
}
.ms-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 10px 0 8px;
  display: flex;
  justify-content: space-between;
}
.ms-ch,
.nb-list,
.mm-list,
.rk-list,
.pend-list,
.att-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-ch li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  font-size: 13px;
}
.ms-ch li > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.ms-ch li .i { width: 15px; height: 15px; color: var(--blue); }
.ms-ch small { color: var(--muted); }
.ms-ch .bc-prog { grid-column: 1 / -1; }

/* Próximas conquistas */
.nb-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nb-txt {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
  font-size: 13px;
}
.nb-txt small { color: var(--muted); }
.nb-txt .bc-prog { grid-column: 1 / -1; }

/* Minha última partida */
.d-last.has-map {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--card) 55%, transparent) 0%, var(--card) 70%), var(--map-bg);
  background-size: cover;
  background-position: center 30%;
}
.ml-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ml-res {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--muted);
}
.ml-res.w { background: var(--green); }
.ml-res.l { background: var(--red); }
.ml-score {
  margin-left: auto;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Meus mapas */
.mm-list li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 46px 78px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.mm-list small { color: var(--muted); text-align: right; }
.mm-list strong { text-align: right; font-variant-numeric: tabular-nums; }
.mm-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.mm-bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 999px;
  background: var(--blue);
}
.mm-bar i.bad { background: color-mix(in srgb, var(--red) 70%, var(--card)); }

/* Ranking resumido */
.rk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 12px;
}
.rk-list li.me {
  background: var(--blue-50);
  font-weight: 700;
}
.rk-pos {
  width: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rk-list li:nth-child(1) .rk-pos { color: #d4a514; }
.rk-pts {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rk-gap {
  text-align: center;
  color: var(--muted);
  padding: 0;
}

/* Pendências (admin) */
.pend-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card-2);
}
.pd-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--blue-50);
  color: var(--blue);
}
.pend-list li.warn .pd-ic {
  background: color-mix(in srgb, #f5a524 18%, var(--card));
  color: #c77a00;
}
.pd-ic .i { width: 17px; height: 17px; }
.pd-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.pd-txt strong { font-size: 14px; }
.pd-txt small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pend-list .pill-btn { text-decoration: none; white-space: nowrap; }
.pend-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 10%, var(--card));
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}
.pend-ok .i { width: 18px; height: 18px; }

/* Frequência (admin) */
.att-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.att-list small {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.d-bal .stat-bottom span { font-size: 12.5px; }

.rk-list .li-nick,
.att-list .li-nick {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-list .li-nick:hover,
.att-list .li-nick:hover {
  color: var(--blue);
}
.d-stack > .card {
  height: 100%;
}

/* Filtro de seasons anteriores ativo */
.season-pick.on select {
  background: var(--ink);
  color: #fff;
}
[data-theme="dark"] .season-pick.on select {
  background: var(--blue);
}

/* Minha última partida: quem jogou junto e contra */
.ml-mates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.ml-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tm-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-2) 85%, transparent);
  color: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.tm > .avatar {
  flex: 0 0 auto;
}
.tm > span:not(.avatar) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.tm small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tm:hover {
  background: var(--blue-50);
}
.tm-row.foe .tm > span:not(.avatar) {
  font-weight: 500;
}
@container (max-width: 560px) {
  .ml-mates {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Histórico filtrado por jogador: a linha dele e o resultado dele em destaque */
.mc-team li.focus {
  margin: 0 -8px;
  padding: 5px 8px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--blue) 35%, transparent);
}
.mc-team li.focus .mc-kd,
.mc-team li.focus .mc-kd i,
.mc-team li.focus .mvp-mark {
  color: #fff;
}
.mc-focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--muted);
}
.mc-focus b {
  font-weight: 800;
}
.mc-focus .i {
  width: 13px;
  height: 13px;
}
.mc-focus.w {
  background: var(--green);
}
.mc-focus.l {
  background: var(--red);
}

/* ---------- Redes sociais no card do jogador ---------- */
.ph-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.soc {
  --c: #1b2838;
  --ink: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.soc:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.soc .brand {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}
.soc-steam { --c: #1b2838; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); --c: #d6249f; }
.soc-twitch { --c: #9146ff; }
.soc-kick { --c: #53fc18; --ink: #0b0e0f; }
.soc-youtube { --c: #ff0000; }
.soc-add {
  --c: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  border: 0;
}
.soc-add .i {
  width: 15px;
  height: 15px;
}
@media (max-width: 560px) {
  .soc {
    padding: 0 10px;
  }
  .soc:not(.soc-add) span {
    display: none;
  }
  .soc .brand {
    width: 18px;
    height: 18px;
  }
}

/* rótulos com logo nos formulários */
.soc-lbl {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
  border-radius: 5px;
  color: #fff;
  background: var(--c, #555);
}
.soc-lbl .brand {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.soc-lbl.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-lbl.soc-twitch { background: #9146ff; }
.soc-lbl.soc-kick { background: #53fc18; color: #0b0e0f; }
.soc-lbl.soc-youtube { background: #ff0000; }
.socials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-sec {
  margin-top: 6px;
}
@media (max-width: 560px) {
  .socials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field label .soc-lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 0;
}
.field label .soc-lbl svg.brand {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0;
}
.field label:has(.soc-lbl) {
  display: flex;
  align-items: center;
}

/* ---------- Sidebar: só a lista do lobby rola ----------
   Logo, saudação e cartão de ação ficam fixos; a lista rola por dentro, com
   barra fina (aparece ao passar o mouse) e degradê indicando que há mais nomes. */
.sidebar {
  overflow: hidden;
}
.sidebar .lobby {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lobby-scroll {
  flex: 1 1 auto;
  min-height: 72px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -8px;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.2s;
  --fade: 28px;
}
.lobby-scroll:hover,
.lobby-scroll:focus-within {
  scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
}
.lobby-scroll::-webkit-scrollbar {
  width: 4px;
}
.lobby-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}
.lobby-scroll:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.lobby-scroll.fade-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 100%);
}
.lobby-scroll.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--fade)), transparent 100%);
}
.lobby-scroll.fade-top.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.sidebar .side-cta {
  flex-shrink: 0;
}
/* telas muito baixas: a sidebar volta a rolar inteira (sem barra aparente) */
@media (max-height: 620px) {
  .sidebar {
    overflow-y: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar .lobby,
  .lobby-scroll {
    flex: none;
    overflow: visible;
  }
}

/* ---------- Espera compacta ---------- */
.wait-block {
  margin-top: 14px;
}
.wait-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--card-2);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.wait-sum:hover {
  background: var(--chip-hover, var(--chip));
}
.wait-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.av-stack {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.av-stack > .avatar {
  box-shadow: 0 0 0 2px var(--card-2);
}
.av-stack > * + * {
  margin-left: -7px;
}
.av-more {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--chip);
  box-shadow: 0 0 0 2px var(--card-2);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-2);
}
.wait-me {
  white-space: nowrap;
}
.wait-sum .count-pill {
  margin-left: auto;
}
.wait-chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wait-block.open .wait-chev {
  transform: rotate(180deg);
}
.wait-block .lobby-list {
  margin-top: 8px;
}

/* a linha da espera fica sempre à vista, logo abaixo da lista do lobby */
#reserve-wrap {
  flex-shrink: 0;
}
#reserve-wrap:empty {
  display: none;
}
.wait-block .lobby-list {
  max-height: 210px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.wait-block .lobby-list:hover {
  scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
}
.wait-block .lobby-list::-webkit-scrollbar {
  width: 4px;
}
.wait-block .lobby-list:hover::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}

.wait-sum {
  flex-wrap: wrap;
  row-gap: 6px;
}
.wait-me-row {
  flex-basis: 100%;
  display: flex;
}
.wait-me .i {
  width: 12px;
  height: 12px;
}
/* lobby e espera dividem o espaço da sidebar; cada lista rola por dentro */
#reserve-wrap {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wait-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wait-block .lobby-list {
  flex: 1 1 auto;
  min-height: 60px;
}
.lobby-scroll {
  min-height: 112px;
}
/* a linha de resumo da espera nunca encolhe (só as listas rolam) */
#reserve-wrap,
.wait-block {
  min-height: auto;
}
.wait-sum {
  flex-shrink: 0;
}
.lobby-scroll {
  min-height: 96px;
}

/* Telas baixas: a parte fixa da sidebar fica enxuta para sobrar espaço à lista */
@media (max-height: 900px) {
  .sidebar {
    gap: 16px;
  }
  .welcome h1 {
    font-size: 24px;
  }
  .welcome p {
    display: none;
  }
  .sidebar .cta-card {
    min-height: 0;
    padding: 16px;
    gap: 2px;
  }
  .sidebar .cta-card::before {
    font-size: 72px;
    bottom: 8px;
  }
}
@media (max-height: 760px) {
  .sidebar .welcome {
    display: none;
  }
  .wait-block .lobby-list {
    min-height: 44px;
  }
}
@media (max-height: 680px) {
  .sidebar {
    overflow-y: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar .lobby,
  .lobby-scroll,
  #reserve-wrap,
  .wait-block .lobby-list {
    flex: none;
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* a espera encolhe com o espaço: o resumo fica, a lista (que rola) é que diminui */
#reserve-wrap,
.wait-block {
  min-height: 0;
}
.wait-block .lobby-list {
  min-height: 0;
}
.wait-block > .wait-sum {
  flex: 0 0 auto;
}
/* espera aberta: lobby e espera dividem o espaço por igual */
.lobby:has(.wait-block.open) .lobby-scroll {
  flex: 1 1 0;
  min-height: 72px;
}
.lobby:has(.wait-block.open) #reserve-wrap,
.wait-block.open {
  flex: 1 1 0;
}
.wait-block.open .lobby-list {
  flex: 1 1 0;
  min-height: 0;
}
.lobby:has(.wait-block.open) #reserve-wrap {
  flex-grow: 2;
}
/* espera fechada: o resumo nunca encolhe (quem cede espaço é a lista do lobby) */
#reserve-wrap:has(.wait-block:not(.open)),
.wait-block:not(.open) {
  flex: none;
}
/* as listas ocupam só o que precisam (sem vão com poucos nomes); no aperto, encolhem e rolam */
.lobby-scroll,
.lobby:has(.wait-block.open) .lobby-scroll {
  flex: 0 1 auto;
}
.lobby:has(.wait-block.open) #reserve-wrap,
.wait-block.open,
.wait-block.open .lobby-list {
  flex: 0 1 auto;
}
/* espera aberta: quem cede espaço primeiro é a lista do lobby (até o mínimo) */
.lobby:has(.wait-block.open) .lobby-scroll {
  flex: 0 8 auto;
  min-height: 72px;
}

/* ---------- Cartão da partida ao passar o mouse nas últimas partidas ---------- */
.dot-pop.match-pop {
  width: 300px;
  padding: 0;
  overflow: visible;
}
.match-pop .mp-head {
  padding: 14px 14px 12px;
  border-radius: 18px 18px 0 0;
  background: var(--ink);
  color: #fff;
}
.match-pop .mp-head.has-map {
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.35) 0%, rgba(10, 11, 14, 0.88) 100%), var(--map-bg) center / cover no-repeat, var(--ink);
}
.mp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mp-res {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.mp-res.w { background: var(--green); }
.mp-res.l { background: var(--red); }
.mp-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
}
.mp-score span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}
.mp-score span:last-child {
  text-align: right;
}
.mp-score b {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.mp-head small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}
.mp-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px 4px;
}
.mp-stats > div {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card-2);
}
.mp-stats strong {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mp-stats span {
  font-size: 11px;
  color: var(--muted);
}
.mp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
}
.mp-mates {
  display: inline-flex;
}
.mp-mates > * + * {
  margin-left: -6px;
}
.mp-mates .avatar {
  box-shadow: 0 0 0 2px var(--card);
}
.mp-mvp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-mvp .i {
  width: 14px;
  height: 14px;
  color: #f5c542;
}
.mp-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 28px);
  margin: 4px 14px 14px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.mp-open:hover {
  background: var(--blue);
  color: #fff;
}
.mp-open .i {
  width: 15px;
  height: 15px;
}
.match-pop .mp-head {
  border-radius: 21px 21px 0 0;
}
.dot-pop.match-pop.below::after {
  background: #1a1b20;
  border-color: #1a1b20;
}

/* Visitas: total grande + últimos que visitaram */
.vis-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vis-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.vis-num strong {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.vis-num span {
  color: var(--muted);
  font-size: 13px;
}
.vis-stack {
  display: inline-flex;
  align-items: center;
}
.vis-stack > * + * {
  margin-left: -8px;
}
.vis-stack .avatar {
  box-shadow: 0 0 0 2px var(--card);
}
.vis-more {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--chip);
  box-shadow: 0 0 0 2px var(--card);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.vis-stack > .vis-more {
  margin-left: -4px;
}

/* Logo da Nextreme no rodapé da sidebar (símbolo branco num círculo escuro) */
.side-org .org-logo {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0e0f11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: transparent;
}
.side-org .org-logo img {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---------- Logo do MiX da Resenha ---------- */
.brand-logo {
  display: block;
  width: auto;
  height: 78px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.topbar-brand .brand-logo {
  height: 40px;
}
@media (max-height: 900px) {
  .sidebar .brand-logo {
    height: 60px;
  }
}
/* logo centralizada no topo da sidebar (o botão de fechar do celular fica no canto) */
.sidebar .brand {
  position: relative;
  justify-content: center;
}
.sidebar .brand .sidebar-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
