@font-face {
  font-family: "Montserrat";
  src: url(../fonts/Montserrat-VariableFont_wght.ttf);
  font-style: normal;
  font-display: swap;
}
/* --- PAINEL DE CORES (VARIÁVEIS) --- */
:root {
  --cor-verde-neon: #12E06C;
  --cor-verde-escuro: #15e450d5;
  --cor-fundo-principal: #050B14;
  --cor-fundo-secundario: #0F1A2C;
  --cor-texto-claro: #FFFFFF;
  --cor-texto-cinza: #A0AAB5;
  --design-verde: #12e06c;
  --design-verde-hover: #35eb82;
  --design-fundo: #050a07;
  --design-superficie: #0d1510;
  --design-superficie-elevada: #121c16;
  --design-campo: #0a110d;
  --design-borda: rgba(213, 238, 222, 0.14);
  --design-borda-forte: rgba(18, 224, 108, 0.42);
  --design-texto: #f5faf7;
  --design-texto-secundario: #9baba1;
  --design-raio-sm: 10px;
  --design-raio-md: 14px;
  --design-raio-lg: 20px;
  --design-sombra: 0 24px 70px rgba(0, 0, 0, 0.38);
  /*------ABA-DE-TORNEIO-------*/
  
}

/* --- CONFIGURAÇÕES GERAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(90deg, rgba(3, 9, 13, 0.94), rgba(5, 21, 12, 0.9));
  background-image:
    linear-gradient(to bottom, rgba(5, 11, 20, 0.7), rgba(5, 11, 20, 0.95)),
    url('../IMG/fundo.png');
  background-image:
    linear-gradient(to bottom, rgba(5, 11, 20, 0.7), rgba(5, 11, 20, 0.95)),
    image-set(
      url('../IMG/fundo.webp') type('image/webp'),
      url('../IMG/fundo.png') type('image/png')
    );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment:fixed;
  color: var(--cor-texto-claro);
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #031008;
  background: #12e06c;
}
/* Wrapper que o JS injeta dentro de #login-header */
.header-usuario {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
 
/* Foto redonda */
.hu-foto {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #12E06C;
  transition: border-color 0.2s;
}
.header-usuario:hover .hu-foto {
  border-color: #fff;
}
 
/* Bolinha verde de "online" */
.hu-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.hu-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12E06C;
  border: 2px solid #0d0d0d;   /* combine com a cor de fundo do header */
}
 
/* Nome ao lado da foto */
.hu-nome {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* ── Dropdown ── */
.hu-dropdown {
  display: none;          /* escondido por padrão */
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 180px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 999;
  flex-direction: column;
}
.hu-dropdown.aberto {
  display: flex;
}
 
.hu-drop-item {
  display: block;
  padding: 10px 16px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hu-drop-item:hover {
  background: #252525;
  color: #12E06C;
}
 
.hu-drop-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 4px 0;
}
 
.hu-sair {
  color: #e06612 !important;
}
.hu-sair:hover {
  color: #ff8040 !important;
}
   .sr-only {
     position: absolute;
     width: 1px; height: 1px;
     padding: 0; margin: -1px;
     overflow: hidden;
     clip: rect(0,0,0,0);
     white-space: nowrap;
     border: 0;
   }

:focus-visible {
  outline: 3px solid #12e06c;
  outline-offset: 3px;
}

.mpc-consentimento {
  position: fixed;
  z-index: 10000;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 32px);
  max-width: 880px;
  padding: 16px;
  overflow: hidden;
  color: #f5faf7;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 224, 108, 0.13), transparent 38%),
    rgba(6, 13, 9, 0.96);
  border: 1px solid rgba(82, 238, 145, 0.3);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: mpc-consentimento-entrada 0.28s ease-out both;
}

.mpc-consentimento::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(18, 224, 108, 0.8), transparent);
}

.mpc-consentimento-icone {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #07150c;
  background: linear-gradient(145deg, #4bf293, #12e06c);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 224, 108, 0.2);
  font-size: 21px;
  font-weight: 900;
  place-items: center;
}

.mpc-consentimento-conteudo {
  flex: 1 1 auto;
  min-width: 0;
}

.mpc-consentimento-etiqueta {
  display: block;
  margin-bottom: 3px;
  color: #52ee91;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mpc-consentimento strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  line-height: 1.25;
}

.mpc-consentimento p {
  max-width: 570px;
  margin: 0 0 4px;
  color: #bdc9c1;
  font-size: 12px;
  line-height: 1.5;
}

.mpc-consentimento a {
  color: #6df2a5;
  font-size: 11px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.mpc-consentimento-detalhes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.mpc-consentimento-detalhes span {
  color: #78877e;
  font-size: 10px;
}

.mpc-consentimento-acoes {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.mpc-consentimento button {
  min-height: 44px;
  padding: 10px 14px;
  color: #e7eee9;
  background: rgba(20, 31, 24, 0.92);
  border: 1px solid rgba(213, 238, 222, 0.2);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mpc-consentimento button.primario {
  color: #031008;
  background: linear-gradient(135deg, #32ec83, #12e06c);
  border-color: #12e06c;
  box-shadow: 0 8px 24px rgba(18, 224, 108, 0.17);
}

.mpc-consentimento button:hover {
  border-color: rgba(82, 238, 145, 0.65);
  transform: translateY(-1px);
}

.mpc-consentimento button.primario:hover {
  background: linear-gradient(135deg, #55f39a, #1ce676);
  box-shadow: 0 10px 28px rgba(18, 224, 108, 0.26);
}

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

.mpc-consentimento button:focus-visible,
.mpc-consentimento a:focus-visible {
  outline: 3px solid rgba(82, 238, 145, 0.85);
  outline-offset: 3px;
}

@keyframes mpc-consentimento-entrada {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 768px) {
  body {
    background-image:
      linear-gradient(to bottom, rgba(5, 11, 20, 0.76), rgba(5, 11, 20, 0.96)),
      url('../IMG/fundo.png');
    background-image:
      linear-gradient(to bottom, rgba(5, 11, 20, 0.76), rgba(5, 11, 20, 0.96)),
      image-set(
        url('../IMG/fundo-mobile.webp') type('image/webp'),
        url('../IMG/fundo.png') type('image/png')
      );
  }

  .mpc-consentimento {
    bottom: 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 20px);
    padding: 16px;
  }

  .mpc-consentimento-icone {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .mpc-consentimento-acoes {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .mpc-consentimento button {
    width: 100%;
  }

  .mpc-consentimento-detalhes span {
    display: none;
  }
}

@media (max-width: 420px) {
  .mpc-consentimento-acoes {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpc-consentimento {
    animation: none;
  }

  .mpc-consentimento button {
    transition: none;
  }
}

/* Publicidade: espaços discretos, fora de áreas privadas e longe de CTAs. */
.mpc-publicidade[hidden] {
  display: none !important;
}

.mpc-publicidade {
  position: relative;
  width: min(100% - 32px, 970px);
  min-height: 112px;
  margin: 28px auto;
  padding: 25px 14px 10px;
  overflow: hidden;
  background: rgba(7, 14, 10, 0.72);
  border: 1px solid rgba(213, 238, 222, 0.1);
  border-radius: 14px;
}

.mpc-publicidade-rotulo {
  position: absolute;
  top: 8px;
  left: 14px;
  color: #748078;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.mpc-publicidade .adsbygoogle {
  width: 100%;
  min-height: 76px;
}

@media (max-width: 600px) {
  .mpc-publicidade {
    width: calc(100% - 20px);
    min-height: 96px;
    margin-block: 20px;
    padding-inline: 8px;
  }

  .mpc-publicidade .adsbygoogle {
    min-height: 60px;
  }
}
