* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #0d1f3c;
  --blue-800: #1a3a6e;
  --blue-700: #234b8d;
  --blue-050: #e8edf5;
  --gold-500: #f0a500;
  --gold-050: #fff8e1;
  --red-500: #c0392b;
  --red-050: #fdecea;
  --green-500: #2e7d32;
  --green-050: #eaf7ed;
  --gray-050: #f6f7f9;
  --gray-100: #eceff3;
  --gray-200: #d8dee8;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.12);
  --radius-md: 12px;
  --radius-lg: 18px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--blue-900);
  color: #111827;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.boot-screen,
.empty-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.boot-text,
.empty-text {
  font-size: 14px;
  color: var(--gray-500);
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-800);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Tela de abertura (splash) ---------- */
.boot-screen {
  gap: 24px;
  background: radial-gradient(120% 80% at 50% 0%, #143768 0%, #0a1c3a 46%, #060f22 100%);
}
.boot-crest-wrap { position: relative; display: grid; place-items: center; }
.boot-crest {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 16px 44px rgba(0, 0, 0, 0.55));
  animation: boot-pulse 1.9s ease-in-out infinite;
}
.boot-subtitle {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.boot-loader {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--hfc-gold, #f0a500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes boot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .boot-crest { animation: none; }
}

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

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px;
  background: linear-gradient(180deg, var(--blue-900), #102650);
}

.login-logo {
  font-size: 56px;
  line-height: 1;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  border: 1px solid var(--gray-200);
  background: var(--gray-050);
  color: var(--gray-700);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 12px;
}

.auth-tab.is-active {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.input,
.select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 14px;
  color: #111827;
}

.input:focus,
.select:focus {
  outline: 2px solid rgba(35, 75, 141, 0.16);
  border-color: var(--blue-700);
}

.helper-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-500);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 600;
}

.btn-primary {
  background: var(--blue-800);
  color: var(--white);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.finance-action-button {
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}


.message-box {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.message-box.is-error {
  background: var(--red-050);
  color: var(--red-500);
  border: 1px solid rgba(192, 57, 43, 0.16);
}

.message-box.is-success {
  background: var(--green-050);
  color: var(--green-500);
  border: 1px solid rgba(46, 125, 50, 0.16);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  /* safe-area-inset-top: respeita o recorte/status bar quando embrulhado (TWA/PWA) */
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 14px;
  box-shadow: var(--shadow-sm);
}

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

.header-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.header-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.header-logout {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}

.header-avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-avatar-btn:active { transform: scale(0.94); }
.avatar.header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 15px;
}

.nav {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  flex: 1 0 auto;
  min-width: max-content;
  border: 0;
  background: transparent;
  padding: 13px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-button.is-active {
  color: var(--blue-800);
  border-bottom-color: var(--blue-800);
}

.content {
  flex: 1;
  padding: 16px;
  background: var(--gray-050);
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.hero-date {
  font-size: 24px;
  font-weight: 600;
  margin-top: 8px;
}

.hero-meta {
  font-size: 13px;
  opacity: 0.84;
  margin-top: 6px;
}

.hero-progress {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold-500);
  border-radius: 999px;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* Cards colapsáveis (aba Campeonato) */
.champ-collapse > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.champ-collapse > summary::-webkit-details-marker { display: none; }
.champ-collapse > summary .card-title { margin-bottom: 0; flex: 1 1 auto; }
.champ-collapse-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}
.champ-collapse[open] > summary .champ-collapse-chevron { transform: rotate(45deg); }
.champ-collapse-body { margin-top: 14px; }

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

.kpi-box {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 12px;
  background: var(--gray-050);
}

.kpi-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-900);
}

.kpi-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.kpi-box--highlight {
  background: var(--green-050);
  border-color: rgba(46, 125, 50, 0.18);
}

.kpi-box--muted {
  background: var(--blue-050);
  border-color: rgba(17, 75, 95, 0.12);
}

.status-box {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--gray-100);
}

.status-box.is-ok {
  background: var(--green-050);
  border-color: rgba(46, 125, 50, 0.18);
}

.status-box.is-warn {
  background: var(--gold-050);
  border-color: rgba(240, 165, 0, 0.2);
}

.status-box.is-danger {
  background: var(--red-050);
  border-color: rgba(192, 57, 43, 0.18);
}

.status-title {
  font-size: 15px;
  font-weight: 600;
}

.status-subline {
  font-size: 13px;
  color: var(--gray-700);
  margin-top: 6px;
}

.placeholder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
}

.placeholder-row:last-child {
  border-bottom: 0;
}

.placeholder-row.is-current {
  background: rgba(232, 237, 245, 0.65);
  border-radius: 14px;
  padding: 12px;
  border-bottom: 0;
}

.placeholder-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-050);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Convidado: inicial + selo "conv" abaixo (tamanho relativo p/ funcionar em
   qualquer contexto de avatar). */
.avatar-guest {
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.avatar-guest-initial {
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}
.avatar-guest-tag {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
}

.avatar-lg {
  width: 62px;
  height: 62px;
  font-size: 20px;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.row-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 3px;
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.is-ok {
  background: var(--green-050);
  color: var(--green-500);
}

.tag.is-warn {
  background: var(--gold-050);
  color: #8b5e00;
}

.tag.is-neutral {
  background: var(--blue-050);
  color: var(--blue-800);
}

.info-block {
  display: grid;
  gap: 8px;
}

/* Texto explicativo (tier único: footer-note / info-line / empty-inline = 12px) */
.info-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-700);
}

.footer-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-500);
}

.session-card {
  display: grid;
  gap: 12px;
}

.session-card.compact {
  gap: 10px;
}

.session-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row-sm {
  margin-top: 6px;
}

.empty-inline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-500);
}

@media (max-width: 420px) {
  .form-row,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .nav-button {
    padding-left: 10px;
    padding-right: 10px;
  }
}


.player-admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #cfd6e4;
  background: #fff;
  font: inherit;
}

/* Campos de data/hora: o controle nativo do WebKit (iOS/Safari) tem largura
   intrínseca e "escorre" pra fora do container. Remover o appearance nativo +
   travar a largura no container resolve em todos os lugares. */
input.input[type="date"],
input.input[type="time"],
input.input[type="datetime-local"],
.input[type="date"],
.input[type="time"],
.input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
/* Garante que o valor não force a expansão dentro do controle */
.input::-webkit-date-and-time-value { text-align: left; min-width: 0; }
/* Itens de formulário em grid não podem ter min-width:auto, senão estouram */
.field-label { min-width: 0; }

@media (max-width: 720px) {
  .player-admin-form {
    grid-template-columns: 1fr;
  }
}


.player-admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { background: #1b7f3a; }
.toast.error { background: #a12828; }


.placeholder-row.is-editing {
  border: 2px solid #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.placeholder-row.is-editing .row-title {
  color: #312e81;
}


.btn:disabled,
.btn.is-busy {
  opacity: 0.72;
  cursor: wait;
}

.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 60, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.confirm-modal {
  width: min(100%, 420px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
}

.confirm-modal-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}


.field-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}


.team-draw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.team-draw-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.team-draw-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.update-banner {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2147483646;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(240, 165, 0, 0.5);
  background: #f0a500;
  color: #0c1a38;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  white-space: nowrap;
}

.team-strength-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--hfc-gold, #f0a500);
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}
.team-strength-badge:hover,
.team-strength-badge:active {
  background: rgba(240, 165, 0, 0.22);
}
.team-strength-info {
  font-size: 11px;
  opacity: .7;
}

@media (min-width: 720px) {
  .team-draw-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.presence-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.presence-list-column {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.presence-list-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.presence-list-stack {
  display: grid;
  gap: 8px;
}

.presence-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.presence-mini-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.presence-mini-main > div:last-child {
  min-width: 0;
}

.presence-mini-row > div:last-child {
  flex: 0 0 auto;
  gap: 6px !important;
}

.presence-remove-button,
.presence-add-button {
  padding: 4px 8px;
  min-width: auto;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.presence-remove-button {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.presence-remove-button:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.presence-add-button {
  padding-inline: 10px;
}

@media (min-width: 980px) {
  .presence-list-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}


.team-draw-player-row {
  align-items: center;
  gap: 10px;
}

.btn-move-player {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 6px 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.btn-move-player-inline {
  display: block !important;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.team-draw-player-main {
  align-items: flex-start;
}



.team-draw-player-row {
  align-items: center;
  gap: 10px;
}

.team-draw-player-main {
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.team-draw-player-text {
  min-width: 0;
}

.team-inline-move-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.team-inline-move-button:active {
  transform: translateY(1px);
}

.team-inline-move-button span {
  display: inline-block;
}

@media (max-width: 520px) {
  .team-inline-move-button {
    min-width: 42px;
    width: 42px;
    height: 36px;
    padding: 0;
  }

  .team-inline-move-button span {
    display: none;
  }
}


.carne-schedule-form {
  align-items: end;
}

.carne-schedule-card {
  padding: 16px;
}

.carne-schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.carne-schedule-title {
  margin-bottom: 4px;
}

.carne-schedule-subtitle {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.35;
}

.carne-next-pill {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--blue-050);
  color: var(--blue-900);
  text-align: center;
}

.carne-next-pill span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.carne-next-pill strong {
  font-size: 17px;
  line-height: 1.1;
}

.carne-schedule-list {
  display: grid;
  gap: 8px;
}

.carne-schedule-list-head,
.carne-schedule-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
}

.carne-schedule-list.no-actions .carne-schedule-list-head,
.carne-schedule-item.no-actions {
  grid-template-columns: 96px minmax(0, 1fr);
}

.carne-schedule-list-head {
  padding: 0 10px 2px;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carne-schedule-list-head > div:last-child {
  text-align: right;
}

.carne-schedule-item {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  background: var(--white);
}

.carne-schedule-item:nth-child(odd) {
  background: #f8fafc;
}

.carne-schedule-item.is-next {
  border-color: rgba(35, 75, 141, 0.28);
  background: var(--blue-050);
  box-shadow: inset 4px 0 0 var(--blue-800);
}

.carne-date-box {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 74px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid rgba(35, 75, 141, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--blue-900);
  text-align: center;
}

.carne-date-box span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.carne-date-box small {
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.carne-pair-boxes {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.carne-player-box {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.carne-schedule-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.btn-sm {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.1;
}

.carne-next-note {
  margin-top: 12px;
  font-size: 12px;
}

@media (max-width: 620px) {
  .carne-schedule-card {
    padding: 12px;
  }

  .carne-schedule-header {
    align-items: center;
  }

  .carne-schedule-subtitle {
    font-size: 12px;
  }

  .carne-schedule-list-head {
    display: none;
  }

  .carne-schedule-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 68px;
    padding: 8px;
  }

  .carne-schedule-item.no-actions {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .carne-date-box {
    min-width: 54px;
    min-height: 50px;
    padding: 6px 5px;
  }

  .carne-date-box span {
    font-size: 14px;
  }

  .carne-date-box small {
    font-size: 9px;
  }

  .carne-pair-boxes {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .carne-player-box {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.12;
  }

  .carne-schedule-actions {
    flex-direction: column;
    gap: 5px;
    justify-content: center;
  }

  .btn-sm {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .carne-schedule-header {
    display: grid;
    gap: 10px;
  }

  .carne-next-pill {
    justify-self: start;
  }

  .carne-schedule-item {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .carne-date-box {
    width: 100%;
  }

  .carne-pair-boxes {
    grid-template-columns: 1fr;
  }

  .carne-schedule-actions {
    flex-direction: row;
    justify-content: stretch;
    width: 100%;
  }

  .carne-schedule-actions .btn-sm {
    flex: 1;
    min-width: 0;
    text-indent: 0;
    overflow: visible;
    white-space: normal;
    position: static;
    height: auto;
  }

  .carne-schedule-actions .btn-sm::after {
    content: none;
  }
}

/* Campeonato v1.57.0 */
.championship-screen .card { overflow: hidden; }
.championship-hero .hero-date { font-size: 24px; }
.championship-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.championship-rule-grid > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  text-align: center;
}
.championship-rule-grid strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
}
.championship-rule-grid span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.championship-date-grid {
  margin-top: 14px;
  max-width: 240px;
}
.championship-player-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.championship-player-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}
.championship-player-result-card span {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.championship-player-result-card select {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.championship-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.championship-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 520px;
}
.championship-table th {
  font-size: 11px;
  text-align: left;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 8px;
}
.championship-table td {
  background: #f8fafc;
  padding: 10px 8px;
  font-size: 13px;
  color: #0f172a;
  vertical-align: middle;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.championship-table td:first-child {
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px 0 0 12px;
}
.championship-table td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0 12px 12px 0;
}
/* Matriz jogador × rodada (Inverno 26): tabela larga com scroll horizontal,
   uma coluna por data e pontos coloridos pelo resultado. */
.championship-matrix-table {
  min-width: max-content;
}
.championship-matrix-table th,
.championship-matrix-table td {
  text-align: center;
  padding: 8px 6px;
  white-space: nowrap;
}
.championship-matrix-table th.championship-matrix-name-col,
.championship-matrix-table td.championship-matrix-name-col {
  text-align: left;
}
.championship-matrix-cell {
  font-weight: 600;
  min-width: 34px;
}
.championship-matrix-cell.is-win { color: #166534; background: #dcfce7; }
.championship-matrix-cell.is-draw { color: #1d4ed8; background: #dbeafe; }
.championship-matrix-cell.is-loss { color: #92400e; background: #fef3c7; }
.championship-matrix-cell.is-no-play { color: #94a3b8; background: #f1f5f9; }
.rank-badge {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.championship-player-name {
  min-width: 150px;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.2;
}
.championship-result-row {
  align-items: center;
}
.history-details {
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
}
.history-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.history-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px;
  background: #f8fafc;
}
.history-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.history-card .championship-table {
  min-width: 0;
  border-spacing: 0 6px;
}
.history-card .championship-table th,
.history-card .championship-table td {
  font-size: 11px;
  padding: 7px 6px;
}
.history-card .rank-badge {
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}
.empty-state {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 640px) {
  .championship-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .championship-player-result-grid {
    grid-template-columns: 1fr;
  }
  .championship-player-result-card {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
  .championship-table {
    min-width: 460px;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
}

/* Campeonato v1.57.1 - resultado por time */
.championship-date-grid {
  max-width: 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.championship-teams-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.championship-team-result-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.championship-team-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.championship-team-player-list {
  display: grid;
  gap: 8px;
}

.championship-team-player-list span {
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .championship-date-grid,
  .championship-teams-result-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* v1.58.13 - self profile edit form layout */
.self-profile-card {
  scroll-margin-top: 96px;
}

.self-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.self-profile-form .form-group {
  min-width: 0;
}

.self-profile-form .input {
  min-height: 52px;
  font-size: 16px;
}

.self-profile-note {
  grid-column: 1 / -1;
  color: var(--gray-500);
  line-height: 1.45;
  font-size: 14px;
  max-width: 680px;
}

.self-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.self-profile-actions .btn {
  min-width: 150px;
}

@media (max-width: 720px) {
  .self-profile-form {
    grid-template-columns: 1fr;
  }

  .self-profile-actions .btn {
    width: 100%;
  }
}

.home-stack {
  gap: 12px;
}

.home-user-card {
  padding: 12px;
}

.home-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-user-text {
  min-width: 0;
  flex: 1;
}

.home-user-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-user-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.home-user-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.home-user-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-500);
  margin-top: 8px;
}

.btn-compact {
  padding: 8px 10px;
  font-size: 12px;
}

.next-game-card {
  display: grid;
  gap: 12px;
}

.next-game-card .hero-progress {
  margin-top: 0;
}

.hero-presence-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-presence-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.hero-presence-status {
  font-size: 15px;
  font-weight: 600;
  margin-top: 3px;
}

.hero-presence-note {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.82;
  margin-top: 4px;
}

.notifications-card {
  padding: 12px 14px;
  box-shadow: none;
}

.compact-title {
  margin-bottom: 8px;
}

.notification-list {
  display: grid;
  gap: 6px;
}

.notification-item {
  font-size: 13px;
  line-height: 1.35;
  color: var(--gray-700);
}

.notification-item.is-empty {
  color: var(--gray-500);
}


.notification-item-carne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #166534;
}

.notification-icon-carne {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  flex: 0 0 auto;
}

.notification-content-carne {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.35;
}

.notification-content-carne strong {
  font-weight: 700;
  color: #166534;
}


/* v1.60.13 - weekly game UI polish */
.weekly-game-stack {
  gap: 16px;
}

.weekly-hero-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f2a52 0%, #214983 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 42, 82, 0.20);
  overflow: hidden;
  position: relative;
}

.weekly-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0));
  pointer-events: none;
}

.weekly-hero-main,
.weekly-presence-card {
  position: relative;
  z-index: 1;
}

.weekly-eyebrow {
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  opacity: 0.78;
  margin-bottom: 10px;
}

.weekly-date {
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.weekly-meta {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

.weekly-progress-track {
  margin-top: 16px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.weekly-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: #f8b400;
}

.weekly-count {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.weekly-presence-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.weekly-presence-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.78;
}

.weekly-presence-status {
  font-size: 22px;
  font-weight: 700;
}

.weekly-presence-status.is-confirmed {
  color: #bbf7d0;
}

.weekly-presence-status.is-pending {
  color: #e2e8f0;
}

.weekly-presence-subtitle,
.weekly-presence-warning {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.84;
}

@media (min-width: 860px) {
  .weekly-hero-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    padding: 22px;
  }
}

.notification-icon-carne {
  color: #f97316;
  background: #fff7ed;
}


.notification-icon-carne svg {
  width: 22px;
  height: 22px;
  display: block;
}


/* v1.60.15 - Switch-based admin UI */
.players-admin-panel,
.weekly-presence-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.players-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid #eef2f7;
}

.players-admin-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.4rem;
}

.players-admin-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.players-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-pill.is-active {
  color: #0f3f91;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.filter-pill.is-ok {
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.filter-pill.is-warn {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.players-switch-table {
  display: flex;
  flex-direction: column;
}

.players-switch-head,
.players-switch-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) minmax(100px, 0.8fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(90px, 0.5fr);
  align-items: center;
  gap: 14px;
}

.players-switch-head {
  padding: 13px 18px;
  color: #64748b;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.players-switch-row {
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
}

.players-switch-row:last-child {
  border-bottom: 0;
}

.players-switch-row.is-current {
  background: #f8fbff;
}

.players-switch-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.position-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.78rem;
}

.switch-control {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.switch-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.switch-control.is-on .switch-track {
  background: #22c55e;
}

.switch-control.is-on .switch-thumb {
  transform: translateX(18px);
}

.switch-label {
  font-size: 0.72rem;
  font-weight: 700;
}

.switch-label.is-ok {
  color: #166534;
}

.switch-label.is-warn {
  color: #c2410c;
}

.switch-label.is-neutral {
  color: #475569;
}

.switch-placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.players-switch-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.icon-action-button {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.switch-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 14px 18px;
  color: #475569;
  font-size: 0.85rem;
  border-top: 1px solid #eef2f7;
  background: #fbfdff;
}

.legend-switch {
  display: inline-block;
  width: 28px;
  height: 16px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: -3px;
  background: #cbd5e1;
}

.legend-switch.is-on {
  background: #22c55e;
}

.weekly-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.weekly-game-card,
.weekly-self-card {
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.weekly-game-card {
  background: linear-gradient(135deg, #0f2f5f 0%, #1f4c91 100%);
  color: #fff;
}

.weekly-self-card {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.weekly-self-switch {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.weekly-self-switch .switch-track {
  width: 48px;
  height: 28px;
}

.weekly-self-switch .switch-thumb {
  width: 22px;
  height: 22px;
}

.weekly-self-switch.is-on .switch-thumb {
  transform: translateX(20px);
}

.weekly-self-switch .switch-label {
  font-size: 1rem;
}

.weekly-game-stats {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 600;
}

.weekly-game-stats span {
  color: #bbf7d0;
}

.weekly-presence-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.weekly-presence-tab {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: #64748b;
}

.weekly-presence-tab.is-active {
  color: #0f3f91;
  background: #fff;
  border-bottom: 3px solid #1d4ed8;
}

.weekly-presence-grid {
  padding: 16px;
}

.weekly-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
}

.weekly-player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .players-admin-header,
  .weekly-summary-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .players-filter-row {
    justify-content: flex-start;
  }

  .players-switch-head {
    display: none;
  }

  .players-switch-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .players-switch-row > div:not(.players-switch-player) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .players-switch-row > div:nth-child(2)::before { content: 'Posição'; font-weight: 600; color: #64748b; }
  .players-switch-row > div:nth-child(3)::before { content: 'Pago'; font-weight: 600; color: #64748b; }
  .players-switch-row > div:nth-child(4)::before { content: 'No jogo'; font-weight: 600; color: #64748b; }

  .weekly-presence-grid {
    grid-template-columns: 1fr;
  }

  .weekly-player-row,
  .weekly-player-meta {
    align-items: flex-start;
  }

  .weekly-player-row {
    flex-direction: column;
  }
}


/* v1.60.16 - fixes for switch layout */
.weekly-game-screen .progress-bar {
  display: none;
}

.weekly-progress {
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  margin-top: 14px;
}

.weekly-progress > div {
  height: 100%;
  border-radius: inherit;
  background: #f59e0b;
}

.weekly-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.weekly-game-card,
.weekly-self-card {
  width: 100%;
  box-sizing: border-box;
}

.weekly-self-card {
  padding: 18px;
}

.weekly-presence-card {
  padding: 0;
}

.weekly-presence-main-title {
  padding: 16px 18px 8px;
  margin: 0;
}

.weekly-presence-section {
  padding: 10px 14px 16px;
  border-top: 1px solid #eef2f7;
}

.weekly-presence-title {
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 700;
}

.weekly-presence-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weekly-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.weekly-player-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.switch-control-inline {
  flex-direction: row;
  gap: 8px;
}

.switch-control-inline .switch-label {
  min-width: 44px;
  text-align: left;
}

.players-switch-row {
  min-width: 0;
}

.players-switch-player,
.weekly-player-row .players-switch-player {
  min-width: 0;
}

.players-switch-player .row-title,
.players-switch-player .row-subtitle {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .weekly-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .weekly-game-card {
    min-height: auto;
  }

  .weekly-self-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .weekly-player-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-player-meta {
    width: 100%;
    justify-content: space-between;
  }

  .switch-control-inline {
    flex-direction: row;
  }

  .players-switch-table {
    overflow: visible;
  }

  .players-switch-row {
    grid-template-columns: 1fr !important;
  }

  .players-switch-row > div:not(.players-switch-player) {
    min-width: 0;
  }
}


/* v1.60.17 - isolate switch UI so Carne keeps its original layout */
.carne-schedule-card .carne-schedule-list,
.carne-schedule-card .carne-schedule-item,
.carne-schedule-card .carne-pair-boxes,
.carne-schedule-card .carne-schedule-actions {
  box-sizing: border-box;
}

.carne-schedule-card .carne-schedule-item {
  display: grid !important;
}

.carne-schedule-card .carne-schedule-item.has-actions {
  grid-template-columns: 90px minmax(0, 1fr) auto !important;
}

.carne-schedule-card .carne-schedule-item.no-actions {
  grid-template-columns: 90px minmax(0, 1fr) !important;
}

.carne-schedule-card .carne-pair-boxes {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-width: 0;
}

.carne-schedule-card .carne-schedule-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: max-content;
}

.carne-schedule-card .btn-sm {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
}

.carne-schedule-card + .card .placeholder-row,
.card .placeholder-list .placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card .placeholder-list .placeholder-row > div:last-child {
  margin-left: auto;
}

@media (max-width: 760px) {
  .carne-schedule-card .carne-schedule-list-head {
    display: none;
  }

  .carne-schedule-card .carne-schedule-item.has-actions,
  .carne-schedule-card .carne-schedule-item.no-actions {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .carne-schedule-card .carne-schedule-actions {
    grid-column: 1 / -1;
    justify-content: flex-end !important;
    padding-top: 8px;
  }

  .carne-schedule-card .carne-pair-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .card .placeholder-list .placeholder-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .card .placeholder-list .placeholder-row .placeholder-main {
    min-width: 0;
  }
}


/* v1.60.19 - Carne membership rows isolated from player switch table */
.carne-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.carne-member-row:last-child {
  border-bottom: 0;
}

.carne-member-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.carne-member-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .carne-member-row {
    flex-direction: row !important;
    align-items: center !important;
  }

  .carne-member-main {
    min-width: 0;
  }

  .carne-member-main .row-title,
  .carne-member-main .row-subtitle {
    overflow-wrap: anywhere;
  }

  .carne-member-tags {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}


/* v1.60.20 - keep player edit visible on narrow screens */
.players-switch-player {
  position: relative;
}

.players-switch-player-text {
  min-width: 0;
}

.player-inline-edit-button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.player-inline-edit-button:hover {
  background: #dbeafe;
}

@media (max-width: 760px) {
  .players-switch-player {
    width: 100%;
  }

  .player-inline-edit-button {
    align-self: flex-start;
  }

  .players-switch-actions {
    justify-content: flex-start;
  }
}


/* v1.60.21 - edit as icon action, not as status pill */
.player-inline-edit-button {
  display: none !important;
}

.players-switch-actions {
  display: flex !important;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.icon-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .players-switch-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .players-switch-row > div:nth-child(2),
  .players-switch-row > div:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .players-switch-actions {
    justify-content: flex-end !important;
  }
}


/* v1.60.22 - visible edit icon near payment switch and cleaner rows */
.players-paid-action-cell {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.player-edit-near-paid {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  border-color: #dbeafe;
}

.player-edit-near-paid:hover {
  background: #dbeafe;
}

.players-switch-player .row-title {
  line-height: 1.2;
}

@media (max-width: 760px) {
  .players-switch-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(82px, 0.6fr) minmax(100px, 0.7fr) !important;
  }

  .players-switch-row > div:nth-child(2)::before,
  .players-switch-row > div:nth-child(3)::before,
  .players-switch-row > div:nth-child(4)::before {
    content: none !important;
  }

  .players-paid-action-cell {
    justify-content: flex-end !important;
  }

  .players-switch-actions {
    display: none !important;
  }
}


/* v1.60.23 - players layout cleanup */
.players-admin-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.players-admin-header h2 {
  margin-bottom: 0 !important;
}

.players-admin-header p {
  display: none !important;
}

.players-filter-row {
  justify-content: flex-start !important;
  gap: 8px !important;
}

.players-switch-head,
.players-switch-row {
  grid-template-columns: minmax(170px, 1.35fr) minmax(82px, 0.65fr) minmax(116px, 0.75fr) !important;
}

.players-switch-head > div:nth-child(4),
.players-switch-head > div:nth-child(5),
.players-switch-row > div:nth-child(4),
.players-switch-row > div:nth-child(5) {
  display: none !important;
}

.players-switch-player {
  gap: 10px !important;
}

.players-paid-action-cell {
  justify-content: flex-end !important;
  gap: 8px !important;
}

.position-pill {
  white-space: nowrap;
}

.icon-action-button.player-edit-near-paid,
.player-edit-near-paid {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

@media (max-width: 760px) {
  .players-switch-head,
  .players-switch-row {
    grid-template-columns: minmax(0, 1.45fr) minmax(76px, 0.58fr) minmax(104px, 0.72fr) !important;
    column-gap: 8px !important;
  }

  .players-switch-row {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .players-switch-head {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .players-switch-player {
    gap: 8px !important;
  }

  .players-switch-player .avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .players-switch-player .row-title {
    font-size: 0.88rem !important;
  }

  .position-pill {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }

  .switch-track {
    width: 38px !important;
    height: 22px !important;
  }

  .switch-thumb {
    width: 16px !important;
    height: 16px !important;
  }

  .switch-control.is-on .switch-thumb {
    transform: translateX(16px) !important;
  }

  .switch-label {
    font-size: 0.68rem !important;
  }

  .players-paid-action-cell {
    gap: 6px !important;
  }
}


/* v1.60.24 - fotos de jogadores */
.avatar {
  overflow: hidden;
}

.avatar-photo {
  background: #e2e8f0;
  color: transparent;
}

.avatar-photo img,
.avatar .avatar-image,
.player-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-photo-upload {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}

.player-photo-upload:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.player-photo-upload input[type="file"] {
  display: none;
}

.player-photo-preview {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.player-photo-preview.has-photo {
  background: #dbeafe;
}

.player-photo-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.player-photo-upload-copy small {
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 760px) {
  .player-photo-preview {
    width: 52px;
    height: 52px;
  }
}


/* v1.60.27 - self photo target */
.self-photo-upload {
  grid-column: 1 / -1;
}


/* v1.60.32 - delete player button */
.players-row-actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-action-button.player-delete-near-paid {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.icon-action-button.player-delete-near-paid:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}



/* v1.60.34 - Harmonia crest branding */
:root {
  --harmonia-navy: #0d2236;
  --harmonia-navy-2: #102b46;
  --harmonia-silver: #d7dce2;
}

.header,
.app-header,
.topbar {
  background: linear-gradient(135deg, #0b1d30 0%, #102b46 100%) !important;
}

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

.brand-crest {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}

.login-crest {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}

.btn-primary,
.header-logout,
.header-badge {
  background-color: var(--harmonia-navy-2) !important;
}

.next-game-card,
.game-card,
.weekly-game-hero {
  background: linear-gradient(135deg, #0b1d30 0%, #173b61 100%) !important;
}

@media (max-width: 760px) {
  .brand-crest {
    width: 44px;
    height: 44px;
  }
}


/* v1.60.37 - own password change */
.password-change-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.72);
}

.password-change-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}


/* v1.60.39 - admin reset password visible */
.icon-action-button.player-reset-password-near-paid {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.icon-action-button.player-reset-password-near-paid:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}


/* v1.60.40 - admin access onboarding */
.access-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.access-status.has-access {
  color: #166534;
  background: #dcfce7;
}

.access-status.no-access {
  color: #92400e;
  background: #fef3c7;
}

.access-action-button {
  height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.access-action-button:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}


/* v1.60.41 - phone validation */
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}


/* v1.60.44 mobile admin layout fix */
.player-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .player-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .player-admin-actions {
    width: 100%;
  }

  .player-admin-actions .access-action-button {
    flex: 1;
    min-width: 140px;
  }
}


/* v1.60.45 - mobile player cards hard layout fix */
@media (max-width: 768px) {
  .players-table,
  .players-table-body,
  .players-list,
  .players-grid {
    width: 100%;
  }

  .players-table-header,
  .players-header-row,
  .players-row-header {
    display: none !important;
  }

  .player-row,
  .players-row,
  [role="row"].player-row {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    grid-template-areas:
      "avatar identity"
      "avatar meta" !important;
    gap: 8px 12px !important;
    align-items: start !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    min-width: 0 !important;
  }

  .player-row > *,
  .players-row > * {
    min-width: 0 !important;
  }

  .player-avatar,
  .player-initials,
  .avatar {
    grid-area: avatar !important;
  }

  .player-main,
  .player-identity,
  .player-info,
  .player-name-cell,
  [role="cell"]:first-child {
    grid-area: identity !important;
    min-width: 0 !important;
  }

  .player-meta,
  .player-status-line,
  .players-switch-actions,
  [role="cell"]:nth-child(2),
  [role="cell"]:nth-child(3) {
    grid-area: meta !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .player-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .player-status-line {
    flex-direction: row !important;
  }

  .player-admin-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .player-admin-actions .access-action-button {
    flex: 1 1 130px !important;
    max-width: 180px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .player-admin-actions .icon-action-button,
  .icon-action-button {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  .switch-control {
    flex: 0 0 auto !important;
    transform: scale(.88) !important;
    transform-origin: left center !important;
  }

  .switch-label {
    font-size: 12px !important;
  }

  .position-badge {
    max-width: 120px !important;
  }
}


/* v1.60.46 - definitive player row layout fix */
.players-switch-head,
.players-switch-row.player-row-card {
  grid-template-columns: minmax(170px, 1.35fr) minmax(150px, 0.9fr) minmax(190px, 1fr) !important;
}

.player-row-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.player-row-actions .access-action-button {
  min-width: 126px;
}

@media (max-width: 760px) {
  .players-switch-head {
    display: none !important;
  }

  .players-switch-row.player-row-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px 18px !important;
    grid-template-columns: none !important;
  }

  .player-row-identity,
  .player-row-status,
  .player-row-actions {
    width: 100% !important;
  }

  .player-row-status {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-left: 56px !important;
  }

  .player-row-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-left: 56px !important;
  }

  .player-row-actions .access-action-button {
    flex: 1 1 150px !important;
    max-width: 210px !important;
    min-width: 140px !important;
  }

  .player-row-actions .icon-action-button {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .player-row-status .switch-control {
    transform: none !important;
  }

  .player-row-status .position-pill {
    max-width: 160px !important;
  }
}


/* v1.60.47 - player actions never overflow */
.players-switch-row.player-row-card {
  grid-template-columns: minmax(170px, 1fr) minmax(120px, auto) !important;
  grid-template-areas:
    "identity status"
    "identity actions" !important;
}

.players-switch-row.player-row-card .player-row-identity {
  grid-area: identity !important;
}

.players-switch-row.player-row-card .player-row-status {
  grid-area: status !important;
  justify-content: flex-start !important;
}

.players-switch-row.player-row-card .player-row-actions {
  grid-area: actions !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.players-switch-row.player-row-card .access-action-button {
  max-width: 150px !important;
  min-width: 118px !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.players-switch-row.player-row-card .icon-action-button {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
}

@media (max-width: 1100px) {
  .players-switch-head {
    display: none !important;
  }

  .players-switch-row.player-row-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-areas:
      "avatar identity"
      "avatar status"
      "avatar actions" !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    align-items: start !important;
    padding: 14px 16px !important;
  }

  .players-switch-row.player-row-card .players-switch-player {
    display: contents !important;
  }

  .players-switch-row.player-row-card .player-avatar,
  .players-switch-row.player-row-card .avatar,
  .players-switch-row.player-row-card .player-photo,
  .players-switch-row.player-row-card .player-initials,
  .players-switch-row.player-row-card .avatar-circle,
  .players-switch-row.player-row-card .players-switch-player > :first-child {
    grid-area: avatar !important;
  }

  .players-switch-row.player-row-card .players-switch-player-text {
    grid-area: identity !important;
    min-width: 0 !important;
  }

  .players-switch-row.player-row-card .player-row-status {
    grid-area: status !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-left: 0 !important;
    min-width: 0 !important;
  }

  .players-switch-row.player-row-card .player-row-actions {
    grid-area: actions !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .players-switch-row.player-row-card .access-action-button {
    flex: 0 1 auto !important;
    max-width: 150px !important;
    min-width: 118px !important;
  }

  .players-switch-row.player-row-card .switch-control {
    transform: none !important;
  }

  .players-switch-row.player-row-card .position-pill {
    max-width: 150px !important;
  }
}

/* v1.60.51 - responsive team draw layout */
.team-draw-grid,
.teams-draw-grid,
.draw-teams-grid {
  max-width: 100%;
  overflow: hidden;
}

.team-draw-card,
.draw-team-card,
.team-column {
  min-width: 0;
}

@media (max-width: 900px) {
  .team-draw-grid,
  .teams-draw-grid,
  .draw-teams-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .team-draw-card,
  .draw-team-card,
  .team-column {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 901px) {
  .team-draw-grid,
  .teams-draw-grid,
  .draw-teams-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px !important;
  }
}


/* v1.60.52 - championship audit history */
.championship-audit-list {
  display: grid;
  gap: 10px;
}

.championship-audit-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

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

.championship-audit-item summary::-webkit-details-marker {
  display: none;
}

.championship-audit-item summary strong {
  display: block;
  color: #0f172a;
}

.championship-audit-item summary span,
.championship-audit-item summary small {
  color: #64748b;
  font-weight: 600;
}

.championship-audit-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #e5e7eb;
}

.championship-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.championship-audit-table th,
.championship-audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.championship-audit-table th {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f8fafc;
}

.championship-audit-table tr.is-unmatched td {
  background: #fff7ed;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  font-size: 0.75rem;
}

.status-chip.is-win {
  color: #166534;
  background: #dcfce7;
}

.status-chip.is-draw {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-chip.is-loss {
  color: #92400e;
  background: #fef3c7;
}

.status-chip.is-no-play {
  color: #991b1b;
  background: #fee2e2;
}


/* v1.60.54 safari carne mobile stabilization */
@media (max-width: 620px) {
  .carne-schedule-item,
  .carne-schedule-item.no-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    grid-template-columns: none !important;
  }

  .carne-date-box {
    width: 100%;
    max-width: none;
  }

  .carne-pair-boxes {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .carne-schedule-actions {
    display: flex;
    flex-direction: row !important;
    width: 100%;
    justify-content: stretch !important;
    gap: 8px !important;
  }

  .carne-schedule-actions .btn-sm {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
  }
}


/* v1.60.55 - final Carne mobile specificity override */
@media (max-width: 760px) {
  .carne-schedule-card .carne-schedule-item.has-actions,
  .carne-schedule-card .carne-schedule-item.no-actions,
  .carne-schedule-card .carne-schedule-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    padding: 12px !important;
  }

  .carne-schedule-card .carne-date-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .carne-schedule-card .carne-pair-boxes {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  .carne-schedule-card .carne-player-box {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .carne-schedule-card .carne-schedule-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    gap: 8px !important;
    grid-column: auto !important;
  }

  .carne-schedule-card .carne-schedule-actions .btn-sm {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    white-space: normal !important;
    text-indent: 0 !important;
    overflow: visible !important;
    position: static !important;
  }

  .carne-schedule-card .carne-schedule-actions .btn-sm::after {
    content: none !important;
  }
}


/* v1.60.60 - championship real adjustments */
.weekly-summary-grid {
  grid-template-columns: 1fr !important;
}

.championship-teams-result-details {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
}

.championship-teams-result-details > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #1d3557;
  list-style: none;
}

.championship-teams-result-details > summary::-webkit-details-marker {
  display: none;
}

.championship-teams-result-details > summary::before {
  content: "▶ ";
}

.championship-teams-result-details[open] > summary::before {
  content: "▼ ";
}

.championship-teams-result-details .championship-teams-result-grid {
  padding: 0 12px 12px;
}

@media (max-width: 760px) {
  .championship-teams-result-details .championship-teams-result-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v1.60.61 - admin notifications and waitlist */
.notification-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

.notification-item-admin {
  display: grid;
  gap: 6px;
  align-items: start;
}

.notification-item-admin span {
  white-space: normal;
}

.waitlist-section {
  border-top: 1px dashed #e5e7eb;
  padding-top: 12px;
}

.waitlist-player-row {
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-presence-note {
  max-width: 36rem;
}


/* v1.60.62 - config layout and waitlist stability */
#game-config-form.game-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

#game-config-form.game-config-form .checkbox-line {
  align-self: center;
  min-height: 44px;
}

#game-config-form.game-config-form .config-notifications-field {
  grid-column: 1 / -1;
}

#game-config-form.game-config-form .config-notifications-help {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}

#game-config-form.game-config-form .game-config-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

#game-config-form.game-config-form .notification-textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

@media (min-width: 860px) {
  #game-config-form.game-config-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #game-config-form.game-config-form .config-notifications-field,
  #game-config-form.game-config-form .config-notifications-help,
  #game-config-form.game-config-form .game-config-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #game-config-form.game-config-form {
    grid-template-columns: 1fr;
  }
}


/* v1.60.66 - championship launch UX, responsive config, home waitlist */
.championship-result-status-row,
.championship-result-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-top: 12px;
}

.championship-result-actions-row .footer-note {
  flex: 1 1 240px;
}

.championship-team-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.championship-team-player-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}

.championship-team-player-pill small {
  color: #64748b;
  font-weight: 600;
}

.championship-launch-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.championship-launch-summary-grid > div {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.championship-launch-summary-grid strong {
  display: block;
  font-size: 1.35rem;
  color: #0f172a;
}

.championship-launch-summary-grid span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
}

.home-waitlist-card {
  border-color: #fed7aa;
  background: #fff7ed;
}

.home-waitlist-highlight {
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 10px;
}

.home-waitlist-list {
  display: grid;
  gap: 8px;
}

.home-waitlist-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fed7aa;
}

.home-waitlist-row span {
  font-weight: 700;
  color: #c2410c;
}

#game-config-form.game-config-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: end !important;
}

#game-config-form.game-config-form label,
#game-config-form.game-config-form .field-label {
  min-width: 0;
}

#game-config-form.game-config-form .config-notifications-field,
#game-config-form.game-config-form .config-notifications-help,
#game-config-form.game-config-form .game-config-actions {
  grid-column: 1 / -1 !important;
}

#game-config-form.game-config-form .notification-textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .championship-launch-summary-grid,
  #game-config-form.game-config-form {
    grid-template-columns: 1fr !important;
  }

  .championship-audit-item summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .championship-result-actions-row .btn {
    width: 100%;
  }
}


/* v1.60.67 - real championship current focus and draw history */
.championship-hero-current {
  border: 2px solid rgba(29, 78, 216, .18);
}

.championship-current-ranking-card {
  border: 2px solid rgba(29, 78, 216, .20);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.championship-result-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(170px, 1fr);
}

.championship-result-status-row,
.championship-result-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-top: 12px;
}

.championship-team-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.championship-team-player-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}

.championship-team-player-pill small {
  color: #64748b;
  font-weight: 600;
}

.championship-launch-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.championship-launch-summary-grid > div {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.championship-launch-summary-grid strong {
  display: block;
  font-size: 1.35rem;
  color: #0f172a;
}

.championship-launch-summary-grid span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .championship-result-grid,
  .championship-launch-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .championship-result-actions-row .btn {
    width: 100%;
  }
}


/* v1.60.68 - championship result form layout fix */
.championship-result-card {
  overflow: hidden;
}

.championship-result-card .championship-result-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}

.championship-result-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 14px;
  align-items: end;
  margin-top: 8px;
}

.championship-result-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 700;
  color: #0f172a;
}

.championship-result-form-grid .championship-draw-select-field {
  grid-column: 1 / -1;
}

.championship-result-form-grid input,
.championship-result-form-grid select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.championship-result-card .championship-teams-result-details {
  margin-top: 18px;
}

.championship-result-card .championship-result-actions-row {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.championship-result-card .championship-result-actions-row .btn {
  width: 100%;
}

.championship-result-card .championship-result-actions-row .footer-note {
  margin: 0;
}

@media (max-width: 760px) {
  .championship-result-card .championship-result-status-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .championship-result-card .championship-result-actions-row {
    grid-template-columns: 1fr;
  }
}

/* v1.60.69 - real clean layout for championship result form */
.championship-result-card-v2{padding:28px 32px!important;overflow:hidden}
.championship-result-header-v2{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:start}
.championship-result-icon-v2{display:grid;place-items:center;width:48px;height:48px;border-radius:999px;background:#0f3765;color:#fff;font-size:1.45rem}
.championship-result-subtitle-v2{margin:8px 0 0;color:#64748b;font-weight: 600;line-height:1.45}
.championship-result-badges-v2{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 0}
.championship-pill-v2{display:inline-flex;align-items:center;border-radius:999px;padding:8px 14px;font-weight: 700;font-size:.92rem}
.championship-pill-v2.is-blue{color:#12356a;background:#e8f0fb}
.championship-pill-v2.is-gold{color:#8a5a00;background:#fff2d2}
.championship-pill-v2.is-green{color:#166534;background:#dcfce7}
.championship-result-divider-v2{height:1px;background:#e5e7eb;margin:22px 0}
.championship-result-form-v2{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:18px!important;align-items:end!important}
.championship-field-v2{display:grid!important;gap:8px!important;min-width:0!important;margin:0!important;font-weight: 700!important;color:#0f172a!important}
.championship-draw-field-v2{grid-column:1/-1!important}
.championship-control-v2{width:100%!important;max-width:100%!important;min-width:0!important;height:56px!important;box-sizing:border-box!important;border:2px solid #153660!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;font-size:1rem!important;font-weight: 600!important;line-height:1.2!important;padding:0 14px!important}
.championship-teams-result-details-v2{margin-top:22px!important;border:1px solid var(--hfc-glass-border)!important;background:var(--hfc-glass-2)!important;border-radius:14px!important}
.championship-teams-result-details-v2>summary{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:16px!important}
.championship-teams-result-details-v2>summary span{font-weight: 700!important;color:var(--hfc-text)!important}
.championship-teams-result-details-v2>summary small{display:block!important;grid-column:2!important;color:var(--hfc-text-muted)!important;font-weight: 600!important}
.championship-save-result-btn-v2{width:100%!important;height:64px!important;margin-top:24px!important;font-size:1.15rem!important}
.championship-result-info-v2{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:center;margin-top:18px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#173760;font-weight: 600;line-height:1.35}
.championship-result-info-v2 strong{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#1d4ed8;color:#fff}
@media(max-width:760px){.championship-result-card-v2{padding:20px 16px!important}.championship-result-header-v2{grid-template-columns:40px minmax(0,1fr);gap:12px}.championship-result-icon-v2{width:40px;height:40px;font-size:1.15rem}.championship-result-badges-v2{display:grid;grid-template-columns:1fr}.championship-result-form-v2{grid-template-columns:1fr!important}.championship-control-v2{height:52px!important;font-size:.95rem!important}}

/* v1.60.70 - multiple future games */
.games-list-config{display:grid;gap:10px;margin-top:12px}.game-config-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.game-config-row.is-active{border-color:#2563eb;background:#eff6ff}.game-config-row strong,.game-config-row span{display:block}.game-config-row span{margin-top:3px;color:#64748b;font-weight: 600;font-size:.86rem}@media(max-width:640px){.game-config-row{grid-template-columns:1fr}.game-config-row .btn{width:100%}}


/* v1.60.66 - multiple games config UX separation */
#game-config-form.game-config-form,
#create-game-form.game-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

#game-config-form.game-config-form label,
#game-config-form.game-config-form .field-label,
#create-game-form.game-config-form label,
#create-game-form.game-config-form .field-label {
  min-width: 0;
}

#game-config-form.game-config-form .checkbox-line,
#create-game-form.game-config-form .checkbox-line {
  align-self: center;
  min-height: 44px;
}

#game-config-form.game-config-form .config-notifications-field,
#game-config-form.game-config-form .config-notifications-help,
#game-config-form.game-config-form .game-config-actions,
#create-game-form.game-config-form .game-config-actions {
  grid-column: 1 / -1;
}

.active-game-config-card {
  border-color: #bfdbfe;
}

.create-game-card {
  border-color: #fed7aa;
  background: #fffaf0;
}

@media (min-width: 860px) {
  #game-config-form.game-config-form,
  #create-game-form.game-config-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #game-config-form.game-config-form,
  #create-game-form.game-config-form {
    grid-template-columns: 1fr !important;
  }
}


/* v1.60.69 - config UX: collapsed game editing and notifications at bottom */
.games-config-card {
  border-color: #bfdbfe;
}

.game-config-details {
  display: block;
}

.game-config-details > summary,
.create-game-details > summary {
  list-style: none;
  cursor: pointer;
}

.game-config-details > summary::-webkit-details-marker,
.create-game-details > summary::-webkit-details-marker {
  display: none;
}

.game-config-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.game-config-summary-main strong,
.game-config-summary-main span {
  display: block;
}

.game-config-summary-main span {
  margin-top: 3px;
  color: #64748b;
  font-weight: 600;
  font-size: .86rem;
}

.game-config-summary-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-config-details[open] .game-config-edit-indicator,
.create-game-details[open] .create-game-open-indicator {
  background: #173760;
  color: #fff;
}

.game-edit-form,
.create-game-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dbeafe;
}

.create-game-details {
  display: block;
}

/* "Novo jogo" agora vive dentro do card Jogos — separa da lista acima. */
.games-create-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.12));
}

.create-game-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.create-game-summary strong,
.create-game-summary small {
  display: block;
}

.create-game-summary small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .game-config-summary,
  .create-game-summary {
    grid-template-columns: 1fr;
  }

  .game-config-summary-actions {
    justify-content: stretch;
  }

  .game-config-summary-actions .btn,
  .game-config-summary-actions .game-config-edit-indicator,
  .create-game-open-indicator {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


.game-edit-form.game-config-form,
#create-game-form.game-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.game-edit-form.game-config-form .field-label,
#create-game-form.game-config-form .field-label {
  min-width: 0;
}

.game-edit-form.game-config-form .checkbox-line,
#create-game-form.game-config-form .checkbox-line {
  align-self: center;
  min-height: 44px;
}

.game-edit-form.game-config-form .game-config-actions,
#create-game-form.game-config-form .game-config-actions {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .game-edit-form.game-config-form,
  #create-game-form.game-config-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .game-edit-form.game-config-form,
  #create-game-form.game-config-form {
    grid-template-columns: 1fr !important;
  }
}

/* v1.60.72 - tamanho global das fotos/avatares de jogadores */
:root {
  --player-avatar-size: 62px;
  --player-avatar-font-size: 20px;
}

.avatar,
.avatar-lg,
.player-avatar,
.player-photo,
.player-initials,
.avatar-circle,
.players-switch-player .avatar,
.players-switch-row.player-row-card .avatar,
.players-switch-row.player-row-card .player-avatar,
.players-switch-row.player-row-card .player-photo,
.players-switch-row.player-row-card .player-initials,
.players-switch-row.player-row-card .avatar-circle {
  width: var(--player-avatar-size) !important;
  height: var(--player-avatar-size) !important;
  min-width: var(--player-avatar-size) !important;
  flex: 0 0 var(--player-avatar-size) !important;
  font-size: var(--player-avatar-font-size) !important;
}

.avatar-photo img,
.avatar .avatar-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1100px) {
  .players-switch-row.player-row-card {
    grid-template-columns: var(--player-avatar-size) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .player-row-status,
  .player-row-actions {
    padding-left: calc(var(--player-avatar-size) + 12px) !important;
  }
}

/* v1.60.73 - avatares também no Campeonato */
.championship-player-avatar,
.championship-avatar,
.championship-photo,
.championship-player-photo,
.championship-table .avatar,
.championship-table .avatar-lg,
.championship-ranking .avatar,
.championship-ranking .avatar-lg,
.championship-card .avatar,
.championship-card .avatar-lg,
.championship-row .avatar,
.championship-row .avatar-lg,
.ranking-player-avatar,
.ranking-avatar,
.ranking-photo,
.ranking-player-photo,
.standings-player-avatar,
.standings-avatar,
.standings-photo,
.standings-player-photo {
  width: var(--player-avatar-size) !important;
  height: var(--player-avatar-size) !important;
  min-width: var(--player-avatar-size) !important;
  flex: 0 0 var(--player-avatar-size) !important;
  font-size: var(--player-avatar-font-size) !important;
}

.championship-player-avatar img,
.championship-avatar img,
.championship-photo img,
.championship-player-photo img,
.ranking-player-avatar img,
.ranking-avatar img,
.ranking-photo img,
.ranking-player-photo img,
.standings-player-avatar img,
.standings-avatar img,
.standings-photo img,
.standings-player-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* v1.60.75 - avatares na notificação da dupla da carne na Home */
.notification-content-carne {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-carne-avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.home-carne-avatars .home-carne-avatar + .home-carne-avatar {
  margin-left: -10px;
}

.home-carne-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
  font-size: 16px !important;
  border: 2px solid #ffffff;
}

.home-carne-avatar img,
.home-carne-avatar .avatar-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.home-carne-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

@media (max-width: 760px) {
  .notification-content-carne {
    align-items: flex-start;
  }

  .home-carne-text {
    display: block;
  }
}

/* v1.60.77 - notificação automática de aniversariantes */
.notification-item-birthday {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.86));
}

.notification-icon-birthday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  font-size: 24px;
}

.notification-content-birthday {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.notification-content-birthday strong {
  color: #92400e;
}

/* v1.60.84 - avatares locais no Campeonato sem import externo */
.championship-player-avatar {
  vertical-align: middle;
}

.championship-ranking-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef7;
  color: #143966;
  font-weight: 700;
  font-size: 20px !important;
}

.championship-ranking-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* v1.60.87 - Campeonato usa getAvatarHtml real dos jogadores */
.championship-player-avatar {
  vertical-align: middle;
}

.championship-ranking-avatar,
.championship-player-avatar .championship-ranking-avatar,
.championship-player-avatar .avatar {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  flex: 0 0 62px !important;
  font-size: 20px !important;
}

.championship-ranking-avatar img,
.championship-ranking-avatar .avatar-image,
.championship-player-avatar img,
.championship-player-avatar .avatar-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* v1.60.90 - segmento exclusivo de goleiros */
.goalkeeper-section {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
  border-radius: 18px;
  padding: 12px;
}

.goalkeeper-player-row {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(239, 246, 255, 0.72);
}

.rental-goalkeeper-row {
  background: rgba(255, 251, 235, 0.82);
  border-color: rgba(245, 158, 11, 0.32);
}

.rental-goalkeeper-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
}

.rental-goalkeeper-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.goalkeeper-pending-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.weekly-copy-presence-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (min-width: 760px) {
  .rental-goalkeeper-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* v1.60.93 - inclusão manual de confirmados no sorteio */
.draw-outside-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.draw-outside-row {
  background: rgba(255, 251, 235, 0.72);
  border-color: rgba(245, 158, 11, 0.28);
}

.draw-add-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ==========================================================================
   v1.70.10 - Home v2
   Home como dashboard operacional: jogo primeiro, perfil por último
   ========================================================================== */

.home-v2 {
  display: grid;
  gap: 14px;
}

.home-v2-hero {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.34), transparent 17rem),
    linear-gradient(145deg, #07172f 0%, #0d2d5c 55%, #1e5aa0 100%);
  box-shadow: 0 18px 46px rgba(8, 27, 58, 0.26);
  overflow: hidden;
}

.home-v2-hero-main,
.home-v2-actions,
.home-v2-card-head,
.home-v2-profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-v2-kicker {
  color: rgba(255,255,255,.64);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-v2-date {
  margin-top: 4px;
  font-size: clamp(30px, 8vw, 40px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.06em;
}

.home-v2-time {
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 600;
}

.home-v2-status {
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}

.home-v2-status.is-ok {
  background: rgba(34,197,94,.20);
  color: #dcfce7;
}

.home-v2-status.is-wait {
  background: rgba(245,158,11,.22);
  color: #ffedd5;
}

.home-v2-big-number {
  display: grid;
  gap: 2px;
}

.home-v2-big-number strong {
  font-size: 54px;
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.08em;
}

.home-v2-big-number span {
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-v2-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.home-v2-primary,
.home-v2-secondary,
.home-v2-link {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.home-v2-primary {
  min-height: 48px;
  padding: 0 20px;
  background: #ffffff;
  color: #123b75;
}

.home-v2-secondary {
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255,255,255,.13);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.15);
}

.home-v2-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.home-v2-metric {
  padding: 12px 10px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.home-v2-metric strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-v2-metric span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.home-v2-card,
.home-v2-profile {
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,.075);
}

.home-v2-goalkeepers {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

/* Card enxuto quando as inscrições estão fechadas (sem jogo ativo). */
.home-v2-closed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
}
.home-v2-closed-main { min-width: 0; }
.home-v2-closed-date {
  margin-top: 4px;
  color: var(--hfc-text, #0f172a);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.home-v2-closed-sub {
  margin-top: 5px;
  color: var(--hfc-text-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
}
.home-v2-closed-card .home-v2-secondary { flex: 0 0 auto; }
/* Tema escuro da home. */
.content--home .home-v2-closed-date { color: var(--hfc-text); }
.content--home .home-v2-closed-sub { color: var(--hfc-text-muted); }

.home-v2-card-head strong,
.home-v2-profile strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.home-v2-card-head span,
.home-v2-profile span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.home-v2-link {
  padding: 8px 12px;
  color: #174681;
  background: #eef4ff;
}

.home-v2-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 42px;
  border-radius: 16px;
  background: #dbeafe;
  color: #174681;
  font-weight: 700;
}

.home-v2-avatar-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 54px;
  margin-top: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px 4px;
  scrollbar-width: none;
}
.home-v2-avatar-row::-webkit-scrollbar { display: none; }
/* Contém o scroll horizontal: sem min-width:0 o conteúdo do carrossel estica
   o card (grid item) e estoura o layout inteiro. */
.home-v2-card, .home-v2-confirmed-group { min-width: 0; }

.home-v2-avatar {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
}

.home-v2-avatar + .home-v2-avatar,
.home-v2-more {
  margin-left: -12px;
}

.home-v2-more {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.home-v2-notices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.home-v2-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
}

.home-v2-notice > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 15px;
  background: #fff7ed;
}

.home-v2-notice strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.home-v2-notice small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.home-v2-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.home-v2-profile {
  align-items: center;
  justify-content: flex-start;
}

.home-v2-profile .home-v2-link {
  margin-left: auto;
}

.home-v2-profile-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
}

@media (max-width: 760px) {
  .home-v2-hero {
    border-radius: 24px;
    padding: 16px;
  }

  .home-v2-metrics {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .home-v2-metric {
    padding: 10px 7px;
  }

  .home-v2-metric strong {
    font-size: 18px;
  }

  .home-v2-primary,
  .home-v2-secondary {
    flex: 1 1 140px;
  }
}

/* v1.70.12 - Home v2 progress + promoção de fila */
.home-v2-progress {
  display: grid;
  gap: 8px;
}

.home-v2-progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.home-v2-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #22c55e);
}

.home-v2-progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 600;
}

/* v1.70.13 - Confirmados em linha/goleiros e notificações completas */
.home-v2-confirmed-card {
  display: grid;
  gap: 14px;
}

.home-v2-confirmed-group {
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
}

.home-v2-confirmed-goalkeepers {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, 0.10);
}

.home-v2-confirmed-group-title {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-v2-confirmed-group .home-v2-avatar-row {
  margin-top: 10px;
}

.home-v2-goalie-names {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.home-v2-rental-goalie-avatar {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #174681;
  font-size: 22px;
}

.home-v2-notice:nth-child(1) > span {
  background: #fff7ed;
}

.home-v2-notice {
  align-items: flex-start;
}

.home-v2-notice small {
  line-height: 1.25;
}


/* v1.70.17 - login somente entrar e avatares da carne na Home */
.auth-tabs-single {
  grid-template-columns: 1fr;
}

.home-v2-notice .notification-content-carne {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-v2-notice .home-carne-avatars {
  display: inline-flex;
  align-items: center;
}

.home-v2-notice .home-carne-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  font-size: 13px !important;
}

.home-v2-notice .home-carne-avatar + .home-carne-avatar {
  margin-left: -8px;
}

.home-v2-notice .home-carne-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}


/* v1.70.31 access/delete hardening */
.confirm-modal-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.confirm-modal-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.confirm-modal-field input {
  width: 100%;
}

.confirm-modal-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* v1.70.32 - environment safety guard */
.env-safety-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
}

.env-safety-banner--danger {
  color: #7f1d1d;
  background: #fee2e2;
  border-bottom: 1px solid #fecaca;
}


/* v1.70.33 hard block localhost -> prod */
.fatal-env-block {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #0f172a;
  color: #0f172a;
}

.fatal-env-card {
  width: min(620px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff7ed;
  border: 2px solid #fb7185;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.fatal-env-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.fatal-env-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.fatal-env-card p {
  color: #334155;
  font-size: 16px;
  line-height: 1.45;
}

.fatal-env-card dl {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.fatal-env-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #fed7aa;
}

.fatal-env-card dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a3412;
}

.fatal-env-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #111827;
}

.fatal-env-action {
  margin-top: 18px;
  font-weight: 700;
  color: #991b1b !important;
}


/* v1.70.34 localhost DEV-only fatal environment block */
.fatal-env-block {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #0f172a;
  color: #0f172a;
}

.fatal-env-card {
  width: min(620px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff7ed;
  border: 2px solid #fb7185;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.fatal-env-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.fatal-env-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.fatal-env-card p {
  color: #334155;
  font-size: 16px;
  line-height: 1.45;
}

.fatal-env-card dl {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.fatal-env-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #fed7aa;
}

.fatal-env-card dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a3412;
}

.fatal-env-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #111827;
}

.fatal-env-action {
  margin-top: 18px;
  font-weight: 700;
  color: #991b1b !important;
}

/* =====================================================================
   STADIUM GLASS — redesign (fundacao + telas re-skinadas, incremental)
   Tokens globais, fonte e estilos novos. Telas ainda nao convertidas
   continuam usando o CSS antigo; cada bloco abaixo e escopado.
   ===================================================================== */
:root {
  --hfc-navy-900: #060a16;
  --hfc-navy-800: #0c1a38;
  --hfc-navy-700: #1b3a73;
  --hfc-gold: #f0a500;
  --hfc-gold-200: #ffc23d;
  --hfc-grass: #19c37d;
  --hfc-glass: rgba(255, 255, 255, 0.06);
  --hfc-glass-2: rgba(255, 255, 255, 0.05);
  --hfc-glass-border: rgba(255, 255, 255, 0.12);
  --hfc-line: rgba(150, 195, 255, 0.16);
  --hfc-text: #eef2f9;
  --hfc-text-muted: #8b97b0;
  --hfc-text-dim: #7e8aa3;
  --hfc-accent-blue: #8fb4ff;
  --hfc-radius-lg: 20px;
  --hfc-radius: 16px;
}

body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- LOGIN (Stadium Glass) ---------- */
.login-screen {
  background: radial-gradient(130% 70% at 50% -8%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 42%, var(--hfc-navy-900) 100%);
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  border: 1.5px solid var(--hfc-line);
  border-radius: 50%;
  pointer-events: none;
}
.login-screen::after {
  content: '';
  position: absolute;
  top: calc(6% + 160px);
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--hfc-line);
  pointer-events: none;
}
.login-screen > * {
  position: relative;
  z-index: 1;
}
.login-crest {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.55), 0 12px 34px rgba(0, 0, 0, 0.5);
}
.login-title {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.login-subtitle {
  color: var(--hfc-text-muted);
}
.login-screen .auth-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--hfc-radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.login-screen .auth-tabs-single {
  display: none;
}
.login-screen .form-label {
  color: var(--hfc-text-muted);
}
.login-screen .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--hfc-text);
  border-radius: 12px;
}
.login-screen .input::placeholder {
  color: #6b7691;
}
.login-screen .input:focus {
  border-color: var(--hfc-gold);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.18);
  outline: none;
}
.login-screen .field-hint {
  color: var(--hfc-text-dim);
}
.login-screen .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
  font-weight: 600;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(240, 165, 0, 0.32);
}

/* Login por passkey */
.auth-passkey {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-passkey .btn { width: 100%; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hfc-text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hfc-border, rgba(255,255,255,0.12));
}

/* ---------- HOME (Stadium Glass) ---------- */
.content--home {
  /* Camadas: (1) grande área + entrada da área ("D") no rodapé, em proporção
     com o círculo central (raio do D = raio do círculo, 150px); (2) o gradiente
     de fundo. Tamanho fixo em px = não estica, mantém a proporção. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='403' height='220' viewBox='0 0 403 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='1.8'%3E%3Cpath d='M0,220 L0,55 L403,55 L403,220'/%3E%3Cpath d='M110,220 L110,165 L293,165 L293,220'/%3E%3Cpath d='M128.5,55 A91.5,91.5 0 0 1 274.5,55'/%3E%3C/g%3E%3Ccircle cx='201.5' cy='110' r='2.6' fill='%23ffffff' fill-opacity='0.16'/%3E%3C/svg%3E"),
    radial-gradient(130% 60% at 50% -6%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 40%, var(--hfc-navy-900) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom 24px, center top;
  background-size: 340px auto, 100% 100%;
  position: relative;
  overflow: hidden;
}
.content--home::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 50%;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  border: 1.5px solid var(--hfc-line);
  border-radius: 50%;
  pointer-events: none;
}
.content--home::after {
  content: '';
  position: absolute;
  top: 214px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--hfc-line);
  pointer-events: none;
}
.content--home > * {
  position: relative;
  z-index: 1;
}
.content--home > div:first-child {
  display: none;
}
.content--home .home-v2-hero {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.11' stroke-width='2'%3E%3Ccircle cx='160' cy='110' r='52'/%3E%3Cline x1='0' y1='110' x2='320' y2='110'/%3E%3Crect x='98' y='-2' width='124' height='48' rx='3'/%3E%3Crect x='98' y='174' width='124' height='48' rx='3'/%3E%3C/g%3E%3Ccircle cx='160' cy='110' r='3' fill='%23ffffff' fill-opacity='0.14'/%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(circle at top right, rgba(240, 165, 0, 0.16), transparent 16rem),
    linear-gradient(150deg, rgba(27, 58, 115, 0.55), rgba(10, 18, 38, 0.6));
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--hfc-radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.content--home .home-v2-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  box-shadow: 0 8px 20px rgba(240, 165, 0, 0.32);
}
.content--home .home-v2-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .home-v2-metric {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.content--home .home-v2-metric strong { color: var(--hfc-text); }
.content--home .home-v2-metric span { color: var(--hfc-text-muted); }
.content--home .home-v2-card,
.content--home .home-v2-profile {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
.content--home .home-v2-goalkeepers { background: var(--hfc-glass-2); }
.content--home .home-v2-card-head strong,
.content--home .home-v2-profile strong { color: var(--hfc-text); }
.content--home .home-v2-card-head span,
.content--home .home-v2-profile span { color: var(--hfc-text-muted); }
.content--home .home-v2-link {
  background: rgba(240, 165, 0, 0.14);
  color: var(--hfc-gold-200);
}
.content--home .home-v2-count {
  background: rgba(143, 180, 255, 0.16);
  color: var(--hfc-accent-blue);
}
.content--home .home-v2-confirmed-group {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .home-v2-confirmed-goalkeepers {
  background: rgba(143, 180, 255, 0.08);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .home-v2-confirmed-group-title { color: var(--hfc-accent-blue); }
.content--home .home-v2-goalie-names { color: var(--hfc-text-muted); }
.content--home .home-v2-rental-goalie-avatar {
  background: rgba(143, 180, 255, 0.16);
  color: var(--hfc-accent-blue);
}
.content--home .home-v2-notice {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .home-v2-notice:nth-child(1) > span { background: transparent; }
.content--home .home-v2-notice strong { color: var(--hfc-text); }
.content--home .home-v2-notice small,
.content--home .home-v2-notice > span { color: var(--hfc-text-muted); }
.content--home .home-v2-empty { color: var(--hfc-text-muted); }
.content--home .home-carne-text { color: var(--hfc-text-muted); }

/* Edição do próprio cadastro na home: alinhar ao tema escuro (Stadium Glass).
   Antes herdava .card branco do tema claro e ficava toda branca. */
.content--home .self-profile-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
.content--home .self-profile-card .card-title { color: var(--hfc-text-muted); }
.content--home .self-profile-form .form-label { color: var(--hfc-text); }
.content--home .self-profile-form .input,
.content--home .password-change-card .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hfc-glass-border);
  color: var(--hfc-text);
}
.content--home .self-profile-form .input::placeholder,
.content--home .password-change-card .input::placeholder { color: #6b7691; }
.content--home .self-profile-form .input:focus,
.content--home .password-change-card .input:focus { border-color: var(--hfc-gold); outline: none; }
.content--home .self-profile-note { color: var(--hfc-text-muted); }
.content--home .self-photo-upload {
  background: var(--hfc-glass-2);
  border: 1px dashed var(--hfc-glass-border);
}
.content--home .self-photo-upload .player-photo-upload-copy strong { color: var(--hfc-text); }
.content--home .self-photo-upload .player-photo-upload-copy small { color: var(--hfc-text-muted); }
.content--home .password-change-card {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .password-change-title { color: var(--hfc-text); }
.content--home .self-profile-actions .btn-secondary,
.content--home .password-change-card .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}
.content--home .self-profile-actions .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
}

/* Painel de perfil — modo VER (aberto pelo avatar do header). */
.profile-view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.avatar.profile-view-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 20px;
}
.profile-view-id { flex: 1 1 auto; min-width: 0; }
.profile-view-id strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--hfc-text);
}
.profile-view-id span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--hfc-text-muted);
}
.profile-view-rows { display: grid; gap: 10px; margin-bottom: 16px; }
.profile-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.profile-view-row > span { color: var(--hfc-text-muted); font-size: 13px; font-weight: 600; }
.profile-view-row > strong { color: var(--hfc-text); font-weight: 600; }
.profile-view-actions { display: flex; gap: 10px; }
.profile-view-actions .btn { flex: 1 1 0; min-width: 0; }
.content--home .profile-view-actions .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
}
.content--home .profile-view-actions .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}

/* ---------- JOGO DA SEMANA (Stadium Glass) ---------- */
.content--weekly_game {
  background: radial-gradient(130% 55% at 50% -6%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 40%, var(--hfc-navy-900) 100%);
  position: relative;
  color: var(--hfc-text);
}
.content--weekly_game > div:first-child { display: none; }

.content--weekly_game .weekly-game-card {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='200' viewBox='0 0 320 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='2'%3E%3Ccircle cx='160' cy='100' r='48'/%3E%3Cline x1='0' y1='100' x2='320' y2='100'/%3E%3Crect x='100' y='-2' width='120' height='44' rx='3'/%3E%3Crect x='100' y='158' width='120' height='44' rx='3'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(circle at top right, rgba(240, 165, 0, 0.16), transparent 16rem),
    linear-gradient(150deg, rgba(27, 58, 115, 0.6), rgba(10, 18, 38, 0.65));
  border: 1px solid var(--hfc-glass-border);
  border-radius: var(--hfc-radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.content--weekly_game .weekly-game-stats span { color: var(--hfc-grass); }

.content--weekly_game .card,
.content--weekly_game .weekly-presence-card,
.content--weekly_game .weekly-self-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--hfc-text);
}
.content--weekly_game .card-title,
.content--weekly_game .weekly-presence-main-title,
.content--weekly_game .weekly-presence-title,
.content--weekly_game .row-title { color: var(--hfc-text); }
.content--weekly_game .row-subtitle,
.content--weekly_game .footer-note,
.content--weekly_game .info-line,
.content--weekly_game .weekly-presence-subtitle,
.content--weekly_game .empty-inline { color: var(--hfc-text-muted); }

.content--weekly_game .weekly-player-row,
.content--weekly_game .placeholder-row { border-color: rgba(255, 255, 255, 0.08); }
.content--weekly_game .avatar { background: rgba(143, 180, 255, 0.16); color: #cfe0ff; }

.content--weekly_game .switch-track { background: rgba(255, 255, 255, 0.16); }
.content--weekly_game .switch-control.is-on .switch-track { background: var(--hfc-gold); }
.content--weekly_game .switch-label { color: var(--hfc-text-muted); }
.content--weekly_game .switch-label.is-ok { color: var(--hfc-grass); }
.content--weekly_game .switch-label.is-warn { color: var(--hfc-gold-200); }

.content--weekly_game .tag.is-ok { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); }
.content--weekly_game .tag.is-warn { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); }

.content--weekly_game .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
}
.content--weekly_game .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}

.content--weekly_game .weekly-presence-tabs {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--hfc-glass-border);
}
.content--weekly_game .weekly-presence-tab { color: var(--hfc-text-muted); }
.content--weekly_game .weekly-presence-tab.is-active { color: var(--hfc-gold-200); }
.content--weekly_game .weekly-presence-status.is-confirmed { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); }
.content--weekly_game .weekly-presence-status.is-pending { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); }

.content--weekly_game .goalkeeper-section,
.content--weekly_game .waitlist-section,
.content--weekly_game .draw-outside-panel {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--weekly_game .rental-goalkeeper-avatar { background: rgba(143, 180, 255, 0.16); color: #cfe0ff; }

/* Sorteio: caixas de vidro + linhas compactas sem o "Mover" sobre o nome */
.content--weekly_game .team-draw-box {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
  border-radius: 16px;
}
.content--weekly_game .team-draw-title { color: var(--hfc-accent-blue); }
.content--weekly_game .team-draw-player-row .avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  font-size: 13px !important;
}
.content--weekly_game .team-draw-player-row .row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content--weekly_game .team-inline-move-button {
  min-width: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  gap: 0;
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  color: var(--hfc-text);
  box-shadow: none;
}
.content--weekly_game .team-inline-move-button span { display: none; }

/* Jogo da semana: linhas de jogador (presença/fora) em vidro — corrige nome
   claro sobre card branco (contraste) */
.content--weekly_game .weekly-player-row,
.content--weekly_game .draw-outside-row {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--weekly_game .weekly-presence-section { border-top-color: var(--hfc-glass-border); }
.content--weekly_game .weekly-presence-main-title { color: var(--hfc-text); }

/* ---------- JOGADORES (Stadium Glass) ---------- */
.content--players {
  background: radial-gradient(130% 50% at 50% -6%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 38%, var(--hfc-navy-900) 100%);
  color: var(--hfc-text);
}
.content--players > div:first-child { display: none; }

.content--players .card,
.content--players .players-admin-panel,
.content--players .session-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--hfc-text);
}
.content--players .card-title,
.content--players .players-admin-header h2,
.content--players .row-title { color: var(--hfc-text); }
.content--players .row-subtitle,
.content--players .players-admin-header p,
.content--players .footer-note { color: var(--hfc-text-muted); }

.content--players .players-admin-header,
.content--players .players-switch-row,
.content--players .players-switch-head { border-color: var(--hfc-glass-border); }
.content--players .players-switch-head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--hfc-text-muted);
}
.content--players .players-switch-row.is-current { background: rgba(143, 180, 255, 0.08); }

.content--players .filter-pill {
  background: var(--hfc-glass-2);
  border-color: var(--hfc-glass-border);
  color: var(--hfc-text-muted);
}
.content--players .filter-pill.is-active { background: rgba(143, 180, 255, 0.16); color: var(--hfc-accent-blue); border-color: transparent; }
.content--players .filter-pill.is-ok { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); border-color: transparent; }
.content--players .filter-pill.is-warn { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); border-color: transparent; }

.content--players .input,
.content--players .select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--hfc-text);
}
.content--players .input::placeholder { color: #6b7691; }
.content--players .input:focus,
.content--players .select:focus { border-color: var(--hfc-gold); outline: none; }

.content--players .tag.is-ok { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); }
.content--players .tag.is-warn { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); }
.content--players .tag.is-neutral { background: rgba(255, 255, 255, 0.08); color: var(--hfc-text-muted); }
.content--players .switch-track { background: rgba(255, 255, 255, 0.16); }
.content--players .switch-control.is-on .switch-track { background: var(--hfc-gold); }
.content--players .switch-label.is-ok { color: var(--hfc-grass); }
.content--players .switch-label.is-warn { color: var(--hfc-gold-200); }
.content--players .switch-label.is-neutral { color: var(--hfc-text-muted); }
.content--players .static-finance-label.is-ok { color: var(--hfc-grass); }
.content--players .static-finance-label.is-warn { color: var(--hfc-gold-200); }

.content--players .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
}
.content--players .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}
.content--players .avatar { background: rgba(143, 180, 255, 0.16); color: #cfe0ff; }
.content--players .switch-legend { color: var(--hfc-text-muted); }

.content--players .players-pay-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hfc-glass-border);
}
.content--players .players-pay-due { color: var(--hfc-text-muted); font-size: 13px; }
.content--players .players-pay-due strong { color: var(--hfc-text); }

/* Conciliação PIX (comprovante por IA) */
.pix-receipt-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pix-receipt-card .pix-ok { color: var(--hfc-accent-green, #46c46a); font-weight: 600; }

/* Bloco de envio no perfil do jogador */
.self-pix-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--hfc-glass-border);
  border-bottom: 1px solid var(--hfc-glass-border);
}
.self-pix-block .footer-note { margin: 0; }
.self-pix-submit-btn { width: 100%; }
.self-pix-result { margin-top: 4px; }

/* Chip "revisar comprovante" / "PIX" no painel do admin */
.pix-review-chip { white-space: nowrap; }

/* Linhas do modal de detalhes do pagamento PIX */
.pix-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hfc-glass-border);
}
.pix-info-row:last-child { border-bottom: 0; }
.pix-info-row > span { color: var(--hfc-text-muted); }

/* Central de notificações */
.notif-center-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.notif-center-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 2px; border-bottom: 0.5px solid var(--hfc-glass-border); cursor: pointer;
}
.notif-center-row:last-child { border-bottom: 0; }
.notif-center-text { display: flex; flex-direction: column; gap: 2px; }
.notif-center-text strong { font-weight: 600; }
.notif-center-text small { color: var(--hfc-text-muted); font-size: 12px; line-height: 1.4; }
.notif-center-toggle { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--hfc-gold); }
.notif-center-recado { margin-top: 16px; padding-top: 16px; border-top: 0.5px solid var(--hfc-glass-border); }

/* Jogos: expander dos jogos anteriores (fica no topo, espaço abaixo) */
.game-old-list { margin: 0 0 14px; }

/* Jogadores: botões de ação (editar/senha/excluir/criar acesso) em vidro */
.content--players .icon-action-button {
  background: var(--hfc-glass) !important;
  border: 1px solid var(--hfc-glass-border) !important;
  color: var(--hfc-text) !important;
  border-radius: 11px;
}
.content--players .icon-action-button.player-edit-near-paid { color: var(--hfc-accent-blue) !important; }
.content--players .icon-action-button.player-reset-password-near-paid { color: var(--hfc-gold-200) !important; }
.content--players .icon-action-button.player-delete-near-paid { color: #f0897b !important; }
.content--players .icon-action-button:hover { background: rgba(255, 255, 255, 0.12) !important; }
.content--players .access-action-button {
  background: rgba(240, 165, 0, 0.14) !important;
  border: 1px solid rgba(240, 165, 0, 0.35) !important;
  color: var(--hfc-gold-200) !important;
  border-radius: 11px;
}
.content--players .access-action-button:hover { background: rgba(240, 165, 0, 0.22) !important; }

/* ---------- CAMPEONATO (Stadium Glass) ---------- */
.content--championship {
  background: radial-gradient(130% 45% at 50% -5%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 36%, var(--hfc-navy-900) 100%);
  color: var(--hfc-text);
}
.content--championship > div:first-child { display: none; }

.content--championship .hero-card,
.content--championship .championship-hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='2'%3E%3Ccircle cx='160' cy='80' r='42'/%3E%3Cline x1='0' y1='80' x2='320' y2='80'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(circle at top right, rgba(240, 165, 0, 0.16), transparent 16rem),
    linear-gradient(150deg, rgba(27, 58, 115, 0.6), rgba(10, 18, 38, 0.65));
  border: 1px solid var(--hfc-glass-border);
  color: #fff;
  overflow: hidden;
}
.content--championship .championship-hero-current { border: 1px solid var(--hfc-glass-border); }

.content--championship .card,
.content--championship .championship-current-ranking-card,
.content--championship .championship-launch-summary-card,
.content--championship .championship-result-card-v2,
.content--championship .history-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--hfc-text);
}
.content--championship .card-title { color: var(--hfc-text); }
.content--championship .footer-note,
.content--championship .empty-state { color: var(--hfc-text-muted); }

.content--championship .championship-table th { color: var(--hfc-text-muted); }
.content--championship .championship-table td {
  background: var(--hfc-glass-2);
  color: var(--hfc-text);
  border-top-color: var(--hfc-glass-border);
  border-bottom-color: var(--hfc-glass-border);
}
.content--championship .championship-table td:first-child { border-left-color: var(--hfc-glass-border); }
.content--championship .championship-table td:last-child { border-right-color: var(--hfc-glass-border); }
.content--championship .championship-player-name { color: var(--hfc-text); }
.content--championship .rank-badge { background: rgba(255, 255, 255, 0.10); color: var(--hfc-text); }
.content--championship .championship-ranking-avatar { background: rgba(143, 180, 255, 0.16); color: #cfe0ff; }

.content--championship .championship-field-v2 { color: var(--hfc-text) !important; }
.content--championship .championship-control-v2 {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: var(--hfc-text) !important;
}
.content--championship .championship-result-subtitle-v2 { color: var(--hfc-text-muted); }
.content--championship .championship-result-divider-v2 { background: var(--hfc-glass-border); }
.content--championship .championship-pill-v2.is-blue { background: rgba(143, 180, 255, 0.16); color: var(--hfc-accent-blue); }
.content--championship .championship-pill-v2.is-gold { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); }
.content--championship .championship-pill-v2.is-green { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); }
.content--championship .championship-result-info-v2 {
  background: rgba(143, 180, 255, 0.08);
  border: 1px solid var(--hfc-glass-border);
  color: var(--hfc-text-muted);
}
.content--championship .championship-team-result-box,
.content--championship .championship-team-player-pill {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
  color: var(--hfc-text);
}
.content--championship .championship-team-label,
.content--championship .championship-teams-result-details > summary { color: var(--hfc-text-muted); }

.content--championship .championship-launch-summary-grid > div {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--championship .championship-launch-summary-grid strong { color: var(--hfc-text); }
.content--championship .championship-launch-summary-grid span { color: var(--hfc-text-muted); }

.content--championship .championship-audit-item {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--championship .championship-audit-item summary strong { color: var(--hfc-text); }
.content--championship .championship-audit-item summary span,
.content--championship .championship-audit-item summary small { color: var(--hfc-text-muted); }
.content--championship .championship-audit-table th { color: var(--hfc-text-muted); }
.content--championship .championship-audit-table td { color: var(--hfc-text); border-color: var(--hfc-glass-border); }

.content--championship .history-details summary,
.content--championship .history-title { color: var(--hfc-text); }
.content--championship .history-card .championship-table th { color: var(--hfc-text-muted); }
.content--championship .history-card .championship-table td { color: var(--hfc-text); }

.content--championship .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
}
.content--championship .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}

/* Campeonato: avatar na matriz + colunas congeladas (Pos/Jogador/Pts) na rolagem lateral */
.content--championship .championship-matrix-table .cm-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.content--championship .championship-matrix-table .cm-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content--championship .championship-matrix-table .championship-ranking-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex: 0 0 28px !important;
  font-size: 11px !important;
}
.content--championship .championship-matrix-table .cm-freeze {
  position: sticky;
  z-index: 2;
  background: #101f3e;
}
.content--championship .championship-matrix-table thead .cm-freeze { z-index: 3; }
.content--championship .championship-matrix-table .cm-c1 { left: 0; width: 44px; min-width: 44px; }
.content--championship .championship-matrix-table .cm-c2 { left: 44px; width: 116px; min-width: 116px; max-width: 116px; }
.content--championship .championship-matrix-table .cm-c3 { left: 160px; width: 44px; min-width: 44px; }

/* ---------- NAV INFERIOR (chrome Stadium Glass) ---------- */
.nav { display: none; }
.content { padding-bottom: 86px; }
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 14, 30, 0.86);
  border-top: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bnav-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hfc-text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  border-radius: 13px;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.bnav-btn.is-active {
  color: #1a1200;
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
}

/* Campeonato: congelar cabeçalho da matriz (scroll box + thead sticky) */
.content--championship .championship-matrix-wrap {
  max-height: 66vh;
  overflow: auto;
}
.content--championship .championship-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #0c1832;
}
.content--championship .championship-matrix-table thead .cm-freeze {
  z-index: 5;
}

/* Campeonato: cabeçalho congelado mais legível */
.content--championship .championship-matrix-table thead th {
  color: var(--hfc-accent-blue);
  box-shadow: inset 0 -1px 0 var(--hfc-glass-border);
}

/* Header do app rola junto (nav agora é inferior); libera o topo para o
   cabeçalho congelado das tabelas */
.header { position: static; }

/* ---------- CARNE (Stadium Glass) ---------- */
.content--carne {
  background: radial-gradient(130% 48% at 50% -6%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 38%, var(--hfc-navy-900) 100%);
  color: var(--hfc-text);
}
.content--carne > div:first-child { display: none; }

.content--carne .card,
.content--carne .session-card,
.content--carne .carne-schedule-card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--hfc-text);
}
.content--carne .card-title,
.content--carne .carne-schedule-title,
.content--carne .row-title { color: var(--hfc-text); }
.content--carne .carne-schedule-subtitle,
.content--carne .carne-schedule-list-head,
.content--carne .row-subtitle,
.content--carne .footer-note,
.content--carne .empty-inline,
.content--carne .carne-next-note { color: var(--hfc-text-muted); }

.content--carne .carne-schedule-item,
.content--carne .carne-schedule-item:nth-child(odd) {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--carne .carne-schedule-item.is-next {
  background: rgba(240, 165, 0, 0.10);
  border-color: rgba(240, 165, 0, 0.30);
  box-shadow: inset 4px 0 0 var(--hfc-gold);
}
.content--carne .carne-date-box,
.content--carne .carne-player-box {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
  color: var(--hfc-text);
}
.content--carne .carne-date-box small,
.content--carne .carne-next-pill span { color: var(--hfc-text-muted); }
.content--carne .carne-next-pill {
  background: rgba(240, 165, 0, 0.14);
  color: var(--hfc-gold-200);
}
.content--carne .carne-next-pill strong { color: var(--hfc-text); }

.content--carne .filter-pill {
  background: var(--hfc-glass-2);
  border-color: var(--hfc-glass-border);
  color: var(--hfc-text-muted);
}
.content--carne .filter-pill.is-active { background: rgba(143, 180, 255, 0.16); color: var(--hfc-accent-blue); border-color: transparent; }
.content--carne .filter-pill.is-ok { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); border-color: transparent; }
.content--carne .filter-pill.is-warn { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); border-color: transparent; }

.content--carne .input,
.content--carne .select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--hfc-text);
}
.content--carne .input::placeholder { color: #6b7691; }
.content--carne .input:focus,
.content--carne .select:focus { border-color: var(--hfc-gold); outline: none; }

.content--carne .tag.is-ok { background: rgba(25, 195, 125, 0.16); color: var(--hfc-grass); }
.content--carne .tag.is-warn { background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200); }
.content--carne .tag.is-neutral { background: rgba(255, 255, 255, 0.08); color: var(--hfc-text-muted); }
.content--carne .position-pill { background: rgba(143, 180, 255, 0.16); color: var(--hfc-accent-blue); border-color: transparent; }
.content--carne .avatar { background: rgba(143, 180, 255, 0.16); color: #cfe0ff; }

.content--carne .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
}
.content--carne .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}

/* Carne: cards de resumo (kpi) em vidro */
.content--carne .kpi-box {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
  box-shadow: none;
}
.content--carne .kpi-value { color: var(--hfc-text); }
.content--carne .kpi-label { color: var(--hfc-text-muted); }

/* Botões de excluir (btn-danger) nas telas escuras */
.content--carne .btn-danger,
.content--championship .btn-danger,
.content--weekly_game .btn-danger,
.content--players .btn-danger,
.content--config .btn-danger,
.self-profile-card .btn-danger,
.self-delete-zone .btn-danger {
  background: rgba(240, 137, 123, 0.16);
  color: #f0897b;
  border: 1px solid rgba(240, 137, 123, 0.35);
}

/* Zona de auto-exclusão de conta no painel de perfil */
.self-delete-zone {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 137, 123, 0.35);
  border-radius: 12px;
  background: rgba(240, 137, 123, 0.06);
  display: grid;
  gap: 8px;
}
.self-delete-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.self-delete-actions .btn { flex: 1; }

/* Links legais (login / perfil) e checkbox de aceite (cadastro) */
.login-legal {
  margin: 14px auto 0;
  max-width: 340px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hfc-text-muted, #9fb2cc);
}
.login-legal a, .profile-legal a { color: var(--hfc-accent, #f0c040); text-decoration: underline; }
.profile-legal { margin-top: 14px; text-align: center; font-size: 12px; }
.register-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.register-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.register-consent a { color: var(--hfc-accent, #f0c040); text-decoration: underline; }

/* Bloco do responsável legal (cadastro de menor de 18) */
.register-minor-block {
  border: 1px solid rgba(240, 192, 64, 0.3);
  background: rgba(240, 192, 64, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 6px 0;
  display: grid;
  gap: 8px;
}

/* Fila de aprovação de auto-cadastro (admin) */
.pending-approval-card { border: 1px solid rgba(240, 192, 64, 0.35); }
.pending-approval-head { display: flex; align-items: center; gap: 8px; }
.pending-approval-count {
  background: var(--hfc-accent, #f0c040); color: #1a1a1a;
  border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 13px;
}
.pending-approval-list { display: grid; gap: 6px; margin-top: 8px; }
.pending-approval-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.08));
}
.pending-approval-id { display: flex; flex-direction: column; min-width: 0; }
.pending-approval-id small { opacity: .7; }
.pending-approval-actions { display: flex; gap: 6px; flex: none; }

/* Jogadores: card de upload de foto em vidro (corrige contraste do nome/título) */
.content--players .player-photo-upload {
  background: var(--hfc-glass-2);
  border: 1px dashed var(--hfc-glass-border);
  color: var(--hfc-text);
}
.content--players .player-photo-preview {
  background: rgba(143, 180, 255, 0.16) !important;
  color: var(--hfc-text) !important;
}
.content--players .player-photo-upload-copy strong { color: var(--hfc-text); }
.content--players .player-photo-upload-copy small { color: var(--hfc-text-muted); }

/* Carne: form de cadastro da dupla — empilha em coluna única para o
   container estreito (~390px). Em 3 colunas o select de "Responsável 1"
   ficava espremido/truncado. Cada campo ocupa a largura total. */
.content--carne .carne-schedule-form {
  grid-template-columns: 1fr;
}
.content--carne .carne-schedule-form .player-admin-actions {
  grid-column: 1 / -1;
}

/* ---------- CONFIG (Stadium Glass) ---------- */
.content--config {
  background: radial-gradient(130% 46% at 50% -6%, var(--hfc-navy-700) 0%, var(--hfc-navy-800) 38%, var(--hfc-navy-900) 100%);
  color: var(--hfc-text);
}
.content--config > div:first-child { display: none; }

.content--config .card {
  background: var(--hfc-glass);
  border: 1px solid var(--hfc-glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--hfc-text);
}
.content--config .games-config-card { border-color: var(--hfc-glass-border); }
.content--config .card-title,
.content--config .game-config-summary-main strong,
.content--config .create-game-summary strong,
.content--config .field-label { color: var(--hfc-text); }
.content--config .game-config-summary-main span,
.content--config .create-game-summary small,
.content--config .footer-note,
.content--config .config-notifications-help { color: var(--hfc-text-muted); }

.content--config .input,
.content--config .notification-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--hfc-text);
}
.content--config .input::placeholder,
.content--config .notification-textarea::placeholder { color: #6b7691; }
.content--config .input:focus,
.content--config .notification-textarea:focus { border-color: var(--hfc-gold); outline: none; }

.content--config .game-edit-form,
.content--config .create-game-form { border-top-color: var(--hfc-glass-border); }
.content--config .game-config-details[open] .game-config-edit-indicator,
.content--config .create-game-details[open] .create-game-open-indicator {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
}

.content--config .btn-primary {
  background: linear-gradient(180deg, var(--hfc-gold-200), var(--hfc-gold));
  color: #1a1200;
  border: none;
}
.content--config .btn-secondary {
  background: var(--hfc-glass);
  color: var(--hfc-text);
  border: 1px solid var(--hfc-glass-border);
}

/* Config: blocos de jogo (lista) em vidro */
.content--config .game-config-row {
  background: var(--hfc-glass-2);
  border: 1px solid var(--hfc-glass-border);
}
.content--config .game-config-row.is-active {
  background: rgba(240, 165, 0, 0.10);
  border-color: rgba(240, 165, 0, 0.30);
}
.content--config .game-config-row strong { color: var(--hfc-text); }
.content--config .game-config-row span { color: var(--hfc-text-muted); }

/* ---------- HOME: badge longo "Abertura das inscrições em breve" ---------- */
.home-v2-status.is-soon {
  white-space: normal;
  text-align: right;
  max-width: 168px;
  line-height: 1.15;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- CONFIG: regra de inadimplência (modos de mensalidade) ---------- */
.content--config .mens-mode-fieldset {
  border: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.content--config .mens-mode-fieldset > legend {
  padding: 0;
  margin-bottom: 2px;
}
.content--config .mens-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--hfc-glass-border);
  background: var(--hfc-glass-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.content--config .mens-mode-option.is-selected {
  border-color: var(--hfc-gold);
  background: rgba(240, 165, 0, 0.10);
}
.content--config .mens-mode-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--hfc-gold);
  flex: 0 0 auto;
}
.content--config .mens-mode-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.content--config .mens-mode-text strong {
  color: var(--hfc-text);
  font-size: 14px;
}
.content--config .mens-mode-text small {
  color: var(--hfc-text-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* ---------- CONFIG: bloco do lembrete de atraso (push) ---------- */
.mens-reminder-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
  display: grid;
  gap: 8px;
}
.card-subtitle {
  font-weight: 600;
  font-size: 14px;
  color: var(--hfc-text, #e8eefc);
}
.mens-reminder-block .btn { justify-self: start; }

/* ---------- CONFIG: form da mensalidade em COLUNA ÚNICA ----------
   As regras de grid single-column existentes miram só #game-config-form /
   #create-game-form por ID; este form ficava no grid base (1fr 1fr auto) e
   espremia data, regras e nota lado a lado. Força empilhamento full-width. */
.content--config #mensalidade-config-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.content--config #mensalidade-config-form > * {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

/* ---------- HOME: bloqueio por inadimplência (parcial/total) ---------- */
.home-v2-status.is-blocked {
  background: rgba(239, 68, 68, 0.20);
  color: #fecaca;
}
.home-v2-primary.is-blocked,
.home-v2-primary.is-blocked:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.40);
  cursor: not-allowed;
  box-shadow: none;
}
.home-v2-blocked-note {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #fecaca;
}

/* ---------- LOGIN: aviso informativo (ex.: sessão expirada) ---------- */
.message-box.is-info {
  background: rgba(143, 180, 255, 0.12);
  color: #dbe7ff;
  border: 1px solid rgba(143, 180, 255, 0.30);
}

/* ---------- JOGADORES: formulário "Novo jogador" colapsável ---------- */
.content--players .player-create-details {
  border: 1px solid var(--hfc-glass-border);
  border-radius: 16px;
  background: var(--hfc-glass-2);
  overflow: hidden;
}
.content--players .player-create-details[open] {
  background: transparent;
}
.content--players .player-create-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.content--players .player-create-summary::-webkit-details-marker { display: none; }
.content--players .player-create-summary .card-title { margin: 0; }
.content--players .player-create-open-indicator {
  flex: 0 0 auto;
  pointer-events: none;
}
.content--players .player-create-details[open] .player-create-summary {
  border-bottom: 1px solid var(--hfc-glass-border);
}
.content--players .player-create-details[open] .player-create-open-indicator { display: none; }
.content--players .player-create-details .player-admin-form { padding: 14px 16px 16px; }

/* ---------- CAMPEONATO: histórico navegável (cada temporada colapsável) ---------- */
.content--championship .history-section-label {
  margin: 16px 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hfc-accent-blue);
}
.content--championship .history-list { display: grid; gap: 10px; }
.content--championship .history-year {
  border: 1px solid var(--hfc-glass-border);
  border-radius: 14px;
  background: var(--hfc-glass-2);
  overflow: hidden;
}
.content--championship .history-year-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.content--championship .history-year-summary::-webkit-details-marker { display: none; }
.content--championship .history-year-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--hfc-text);
}
.content--championship .history-year-hint {
  font-size: 12px;
  color: var(--hfc-text-muted);
}
.content--championship .history-year[open] .history-year-summary {
  border-bottom: 1px solid var(--hfc-glass-border);
}
.content--championship .history-year > .championship-table-wrap { padding: 8px 12px 12px; }

/* Histórico anual simples (Pos/Jogador/Pts): cabe sem scroll lateral; PTS sempre visível */
.content--championship .championship-table-simple {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.content--championship .championship-table-simple th:first-child,
.content--championship .championship-table-simple td:first-child { width: 56px; }
.content--championship .championship-table-simple th:last-child,
.content--championship .championship-table-simple td:last-child { width: 56px; text-align: center; }
.content--championship .championship-table-simple .championship-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Tela de erro fatal (rede de segurança render/init) ---------- */
.fatal-screen {
  /* Fundo próprio: na falha de render o wrapper temático pode não existir,
     então não dependemos do fundo escuro do app. */
  min-height: 100vh;
  background: var(--hfc-navy-900, #0a1428);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fatal-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: var(--hfc-glass-2, rgba(255,255,255,0.05));
  border: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
  border-radius: 18px;
  padding: 28px 24px;
  color: var(--hfc-text, #e8eefc);
}
.fatal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.fatal-text { font-size: 14px; line-height: 1.5; color: var(--hfc-text-muted, #9fb0cc); margin-bottom: 20px; }

/* ---------- Lightbox: tocar na foto do avatar amplia ---------- */
.avatar-photo { cursor: zoom-in; }
.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 22, 0.90);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: avatar-lightbox-in 0.14s ease-out;
}
@keyframes avatar-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.avatar-lightbox-img {
  max-width: min(90vw, 420px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.avatar-lightbox-close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Card de opt-in de notificações push (home) ---------- */
.push-optin-card .home-v2-card-head { align-items: center; }
.push-optin-card #push-status-line { display: block; }
.push-optin-hint { margin-top: 10px; }
.push-optin-card #push-toggle-btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- CARNÊ: gerenciador do rodízio recorrente ---------- */
.carne-rotation-start-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.carne-rotation-start-row .input { flex: 1 1 auto; min-width: 0; }
.carne-rotation-start-row .btn { flex: 0 0 auto; }
.carne-rotation-list { display: grid; gap: 8px; margin: 14px 0; }
.carne-rotation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hfc-glass-2, rgba(255,255,255,0.05));
  border: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
}
.carne-row-date {
  flex: 0 0 auto;
  min-width: 58px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
  line-height: 1.15;
}
.carne-row-date strong { font-weight: 700; font-size: 15px; color: var(--hfc-text, #e8eefc); }
.carne-row-date small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; opacity: 0.7; }
.carne-row-date.is-next {
  background: rgba(240,165,0,0.16);
  border-color: rgba(240,165,0,0.45);
}
.carne-row-date.is-next strong { color: var(--hfc-gold-200, #ffd980); }
.carne-row-date.is-next small { color: var(--hfc-gold-200, #ffd980); opacity: 0.9; }
.carne-rotation-item.is-next { border-color: rgba(240,165,0,0.3); }
.carne-rotation-names { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.carne-rotation-names small { font-weight: 500; opacity: 0.6; }
.carne-rotation-item-actions { flex: 0 0 auto; display: flex; gap: 4px; }
.carne-rotation-item-actions .icon-action-button {
  width: 32px; height: 32px; font-size: 16px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.12));
  color: var(--hfc-text, #e8eefc);
  border-radius: 10px;
}
.carne-rotation-item-actions .icon-action-button[disabled] { opacity: 0.3; pointer-events: none; }
.carne-rotation-item-actions .icon-action-button.is-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.carne-rotation-add { display: grid; gap: 8px; margin-top: 6px; }
@media (min-width: 520px) {
  .carne-rotation-add { grid-template-columns: 1fr 1fr auto; align-items: center; }
}

/* ---------- CARNÊ: barra de salvar rodízio (rascunho) ---------- */
.carne-rotation-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
}
.carne-rotation-save-actions { display: flex; gap: 8px; align-items: center; }
.carne-rotation-dirty-note { color: var(--hfc-gold-200, #ffd980); font-weight: 600; font-size: 13px; }
.carne-rotation-saved-note { color: var(--hfc-text-muted, #9fb0cc); font-size: 13px; }
.carne-rotation-card.is-dirty { border-color: rgba(240,165,0,0.45); }

/* ---------- CARNÊ: drag-and-drop + edição inline + conflito ---------- */
.carne-drag-handle {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hfc-glass-border, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.06);
  color: var(--hfc-text, #e8eefc);
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: none; /* essencial: o gesto vira drag, não scroll */
  user-select: none;
}
.carne-drag-handle:active { cursor: grabbing; }
.carne-rotation-item {
  transition: box-shadow 0.12s ease, background 0.12s ease;
}
.carne-rotation-item.is-dragging {
  position: relative;
  z-index: 5;
  background: rgba(240,165,0,0.12);
  border-color: var(--hfc-gold, #f0a500);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.carne-rotation-item.is-conflict { border-color: rgba(239,68,68,0.5); }
.carne-conflict-flag { font-size: 13px; }
.carne-rotation-edit-fields {
  flex: 1 1 auto; min-width: 0;
  display: grid; gap: 6px;
}
.carne-rotation-edit-fields .input { min-height: 40px; }
.carne-rotation-item.is-editing { align-items: center; }
.carne-rotation-item-actions .icon-action-button.is-ok {
  color: #86efac; border-color: rgba(34,197,94,0.4);
}
.carne-rotation-warning {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
  font-size: 13px; font-weight: 600;
}

/* ===================== Votação de desempenho (modal bloqueante) ===================== */
body.vote-open { overflow: hidden; }
.vote-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* Dupla do churrasco: dois avatares lado a lado. */
.carne-vote-duo { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.perf-vote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 24, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.perf-vote-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(150deg, rgba(27, 58, 115, 0.65), rgba(10, 18, 38, 0.92));
  border: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.14));
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: var(--hfc-text, #e8eefc);
  animation: avatar-lightbox-in 0.18s ease;
}
.perf-vote-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.perf-vote-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfc-gold-200, #ffd980); }
.perf-vote-progress { font-size: 12px; font-weight: 600; color: var(--hfc-text-muted, #9fb0cc); }
.perf-vote-player { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.avatar.perf-vote-avatar { width: 84px; height: 84px; border-radius: 999px; font-size: 28px; border: 2px solid rgba(255, 255, 255, 0.18); }
.perf-vote-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.perf-vote-pos { font-size: 13px; font-weight: 600; color: var(--hfc-text-muted, #9fb0cc); }
/* Nota: número grande colorido + slider com trilha colorida (arrasta pra avaliar). */
.perf-vote-rate { margin-bottom: 20px; }
.perf-vote-value {
  text-align: center;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  transition: color .12s ease;
}
.perf-vote-value.is-empty { color: rgba(255, 255, 255, 0.30); }
.perf-vote-value.is-low { color: #f87171; }
.perf-vote-value.is-mid { color: #fbbf24; }
.perf-vote-value.is-good { color: #a3e635; }
.perf-vote-value.is-top { color: #34d399; }

.perf-vote-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 45%, #a3e635 75%, #22c55e 100%);
  cursor: pointer;
}
.perf-vote-slider[data-untouched="1"] { filter: saturate(0.45) opacity(0.6); }
.perf-vote-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(10, 18, 38, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: grab;
}
.perf-vote-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.perf-vote-slider::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(10, 18, 38, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: grab;
}
.perf-vote-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hfc-text-muted, #9fb0cc);
}
.perf-vote-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.perf-vote-actions .btn { flex: 1 1 0; }
.perf-vote-actions > span { flex: 1 1 0; }
.perf-vote-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--hfc-text-muted, #9fb0cc); }

/* Seção "Somente carne" na aba Jogadores (perfis que não jogam, editáveis). */
.players-carne-only {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.12));
}
.players-subhead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--hfc-text, #e8eefc);
  margin-bottom: 10px;
}
.players-subhead strong { color: var(--hfc-gold-200, #ffd980); margin-left: 4px; }
/* Linha compacta unificada de jogadores (lista principal + somente carne). */
.player-compact-list { display: flex; flex-direction: column; }
.player-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.10));
}
.player-compact-row:last-child { border-bottom: 0; }
.player-compact-row.is-current { background: rgba(143, 180, 255, 0.07); border-radius: 12px; }
.player-compact-row.is-editing { background: rgba(240, 165, 0, 0.10); border-radius: 12px; }
.player-compact-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.player-compact-text { min-width: 0; }
.player-compact-text .row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-compact-text .row-subtitle { font-size: 12px; color: var(--hfc-text-muted, #9fb0cc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-compact-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.carne-edit-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* ===== Identidade visual distinta das votações (jogo x churrasco) ===== */
/* Marca d'água atrás do conteúdo nos dois modais. */
.game-vote-modal, .carne-vote-modal { overflow: hidden; }
.game-vote-modal > *, .carne-vote-modal > * { position: relative; z-index: 1; }
.game-vote-modal::before, .carne-vote-modal::before, .carne-vote-modal::after {
  position: absolute; line-height: 1; pointer-events: none; z-index: 0;
}

/* Jogo: mantém o azul, com uma bola d'água sutil. */
.game-vote-modal::before {
  content: '⚽';
  right: -14px; top: -18px;
  font-size: 130px; opacity: 0.07; transform: rotate(-12deg);
}

/* Churrasco: fundo quente (brasa) + espetinho e fogo d'água. */
.carne-vote-modal {
  background: linear-gradient(155deg, rgba(124, 45, 18, 0.80), rgba(35, 14, 8, 0.95));
  border-color: rgba(245, 158, 11, 0.38);
}
.carne-vote-modal::before {
  content: '🥩';
  right: -8px; top: -24px;
  font-size: 142px; opacity: 0.12; transform: rotate(-15deg);
}
.carne-vote-modal::after {
  content: '🔥';
  left: -16px; bottom: -26px;
  font-size: 100px; opacity: 0.10;
}
.carne-vote-modal .perf-vote-kicker { color: #fdba74; }

/* Nota média de desempenho na classificação + ranking dos churrascos. */
.championship-nota-cell { text-align: center; }
.championship-nota { font-weight: 700; color: var(--hfc-gold-200, #ffd980); }
.championship-nota.is-empty { color: var(--hfc-text-muted, #9fb0cc); font-weight: 600; }
.churrasco-rank-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.churrasco-rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--hfc-glass-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--hfc-glass-border, rgba(255, 255, 255, 0.12));
}
.churrasco-rank-pos {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  background: rgba(240, 165, 0, 0.16); color: var(--hfc-gold-200, #ffd980);
}
.churrasco-rank-name { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.churrasco-rank-avg { flex: 0 0 auto; font-weight: 700; color: var(--hfc-gold-200, #ffd980); }
.churrasco-rank-avg small { font-weight: 600; color: var(--hfc-text-muted, #9fb0cc); margin-left: 4px; }

/* Áurea no avatar do jogador melhor votado (aparece em todo lugar). */
.avatar.avatar-aura {
  box-shadow: 0 0 0 2px var(--hfc-gold, #f0a500), 0 0 14px 3px rgba(240, 165, 0, 0.55);
  animation: avatar-aura-pulse 2.1s ease-in-out infinite;
}
@keyframes avatar-aura-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--hfc-gold, #f0a500), 0 0 10px 2px rgba(240, 165, 0, 0.45); }
  50% { box-shadow: 0 0 0 2px var(--hfc-gold, #f0a500), 0 0 20px 6px rgba(240, 165, 0, 0.72); }
}
@media (prefers-reduced-motion: reduce) { .avatar.avatar-aura { animation: none; } }
