* {
  box-sizing: border-box;
}

:root {
  --bg-1: #0f1923;
  --bg-2: #1f2a36;
  --text-soft: #c8d1d9;
  --text-muted: #8fa0b1;
  --border-soft: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, var(--bg-2) 0%, var(--bg-1) 55%, #091017 100%);
  color: white;
  min-height: 100vh;
  padding: 20px;
}

/* TELA INICIAL */
.tela-inicial {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tela-inicial.fade-saindo {
  opacity: 0;
  transform: translateY(-8px);
}

.tela-inicial-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 40px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.tela-inicial-card h1 {
  margin: 0 0 12px;
  font-size: 42px;
  letter-spacing: 0.4px;
}

.tela-inicial-card p {
  margin: 0 auto 24px;
  max-width: 420px;
  color: #c5d0d8;
  line-height: 1.5;
  font-size: 16px;
}

.tela-inicial-botoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.menu-modos {
  margin-bottom: 12px;
}

.destaque-composicao {
  box-shadow: 0 8px 20px rgba(127, 90, 240, 0.15);
}

/* APP */
.app {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app-escondido {
  display: none;
  opacity: 0;
}

.app.fade-entrando {
  opacity: 0;
  transform: translateY(8px);
}

.app.fade-visivel {
  opacity: 1;
  transform: translateY(0);
}

.topo {
  padding: 28px 28px 10px;
  text-align: center;
}

.topo h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.3px;
}

.topo p {
  margin-top: 10px;
  color: #b8c2cc;
  font-size: 15px;
}

.modos-topo {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.botao-modo {
  width: auto;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.botao-modo.ativo {
  background: rgba(255, 70, 85, 0.18);
  color: white;
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.14);
}

.conteudo {
  display: grid;
  grid-template-columns: 360px 1fr 320px;
  gap: 0;
}

.painel,
.lateral {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.painel {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.lateral {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.painel h2,
.lateral h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 16px;
}

.titulo-secundario {
  margin-top: 24px !important;
}

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #d7dee5;
  font-weight: bold;
}

.campo select,
button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  outline: none;
}

.botoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.bloco-acoes-fixas {
  margin-top: 22px;
}

button {
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.botao-principal {
  background: #ff4655;
  color: white;
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.15);
}

.botao-principal:hover {
  background: #e53d4b;
}

.botao-secundario {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.botao-alerta {
  background: rgba(255, 193, 7, 0.18);
  color: #ffe27d;
  border: 1px solid rgba(255, 226, 125, 0.15);
}

.modo-escondido {
  display: none !important;
}

/* BLOQUEADOR */
.campo-bloqueio,
.campo-time {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bloqueio-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bloqueio-topo label {
  margin: 0;
}

.contador-bloqueados {
  font-size: 12px;
  color: #a9b6c2;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

.lista-bloqueio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bloqueio-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: white;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.bloqueio-item:hover {
  transform: translateY(-1px);
}

.bloqueio-item.pick-feedback {
  animation: pulsePickLista 0.42s ease;
}

@keyframes pulsePickLista {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 184, 148, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(0, 184, 148, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 184, 148, 0);
  }
}

.bloqueio-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.bloqueio-item span {
  min-width: 0;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bloqueio-item.bloqueado {
  background: rgba(255, 70, 85, 0.15);
  border-color: rgba(255, 70, 85, 0.35);
  opacity: 0.9;
}

.bloqueio-item.favorito {
  box-shadow: 0 0 0 1px rgba(241, 196, 15, 0.22), 0 0 18px rgba(241, 196, 15, 0.08);
  border-color: rgba(241, 196, 15, 0.24);
}

.bloqueio-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.botao-acao {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.botao-acao:hover {
  transform: translateY(-1px) scale(1.03);
}

.botao-favorito.ativo {
  background: rgba(241, 196, 15, 0.18);
  color: #ffe27d;
  box-shadow: 0 0 18px rgba(241, 196, 15, 0.12);
}

.botao-bloqueio.ativo {
  background: rgba(255, 70, 85, 0.18);
  color: #ff9ca4;
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.12);
}

.botao-time.ativo {
  background: rgba(0, 184, 148, 0.18);
  color: #86f2d2;
  box-shadow: 0 0 18px rgba(0, 184, 148, 0.12);
}

/* CARD E RESULTADO */
.resultado-area {
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#cardResultado {
  position: sticky;
  top: 20px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 610px;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.card-composicao {
  border-color: rgba(127, 90, 240, 0.45);
  box-shadow: 0 0 0 1px rgba(127, 90, 240, 0.1), 0 0 28px rgba(127, 90, 240, 0.15);
}

.card.sorteando {
  animation: pulsarCard 0.25s infinite alternate;
}

@keyframes pulsarCard {
  from {
    transform: scale(1) rotate(-0.2deg);
  }
  to {
    transform: scale(1.02) rotate(0.2deg);
  }
}

.reveal-overlay {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0) 65%);
  transform: scale(0.8);
  z-index: 1;
}

.card.reveal .reveal-overlay {
  animation: overlayBurst 0.6s ease;
}

@keyframes overlayBurst {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.particulas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.particula {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(0, 0) scale(0.4);
}

.particula.animar {
  animation: particulaExplodir 0.9s ease forwards;
}

@keyframes particulaExplodir {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

.card.reveal {
  animation: revealFlash 0.6s ease;
}

@keyframes revealFlash {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  40% {
    transform: scale(1.04);
    box-shadow: 0 0 44px rgba(255, 255, 255, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.imagem-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  margin-bottom: 18px;
  z-index: 3;
}

.imagem-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.imagem-wrapper.sorteando img {
  opacity: 0.45;
  transform: scale(1.07);
  filter: blur(1px);
}

.imagem-wrapper.reveal img {
  animation: revealZoom 0.65s ease;
}

@keyframes revealZoom {
  0% {
    transform: scale(1.14);
    filter: brightness(1.18);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.status,
.nome-agente,
.classe-agente,
.descricao,
.resultado-texto {
  position: relative;
  z-index: 3;
}

.status {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.nome-agente {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  min-height: 38px;
  transition: opacity 0.28s ease, transform 0.28s ease, letter-spacing 0.28s ease;
}

.nome-escondido {
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: 2px;
}

.nome-reveal {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.2px;
}

.classe-agente {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 14px;
}

.descricao {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  min-height: 72px;
  margin-bottom: 16px;
}

.resultado-texto {
  margin-top: 8px;
  font-size: 14px;
  color: #a9b6c2;
  min-height: 22px;
}

/* HISTÓRICO E RANKING */
.lista-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.competitivo-box {
  margin-bottom: 4px;
}

.competitivo-resumo {
  align-items: flex-start;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #d7dee5;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.item-info-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-info strong {
  color: white;
}

.item-info small {
  color: #9fb0bd;
}

.item-ranking {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-ranking-topo {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.item-ranking strong {
  color: white;
}

.ranking-barra {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ranking-barra-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.medalha {
  margin-right: 6px;
}

/* CORES */
.duelista {
  background: rgba(255, 70, 85, 0.20);
  color: #ff8c96;
}

.controlador {
  background: rgba(127, 90, 240, 0.20);
  color: #c5b3ff;
}

.iniciador {
  background: rgba(0, 184, 148, 0.20);
  color: #86f2d2;
}

.sentinela {
  background: rgba(241, 196, 15, 0.20);
  color: #ffe27d;
}

.borda-duelista {
  border-color: rgba(255, 70, 85, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.1), 0 0 28px rgba(255, 70, 85, 0.18);
}

.borda-controlador {
  border-color: rgba(127, 90, 240, 0.65);
  box-shadow: 0 0 0 1px rgba(127, 90, 240, 0.1), 0 0 28px rgba(127, 90, 240, 0.18);
}

.borda-iniciador {
  border-color: rgba(0, 184, 148, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.1), 0 0 28px rgba(0, 184, 148, 0.18);
}

.borda-sentinela {
  border-color: rgba(241, 196, 15, 0.65);
  box-shadow: 0 0 0 1px rgba(241, 196, 15, 0.1), 0 0 28px rgba(241, 196, 15, 0.18);
}

.barra-duelista {
  background: linear-gradient(90deg, #ff4655, #ff7a84);
}

.barra-controlador {
  background: linear-gradient(90deg, #7f5af0, #b69cff);
}

.barra-iniciador {
  background: linear-gradient(90deg, #00b894, #6ff0cb);
}

.barra-sentinela {
  background: linear-gradient(90deg, #f1c40f, #ffe27d);
}

.brilho {
  animation: piscar 0.7s infinite alternate;
}

@keyframes piscar {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

/* COMPOSIÇÃO */
.card-composicao-destaque {
  border-color: rgba(127, 90, 240, 0.45);
  box-shadow:
    0 0 0 1px rgba(127, 90, 240, 0.12),
    0 0 28px rgba(127, 90, 240, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-composicao-destaque::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(127, 90, 240, 0.18), transparent 28%),
    radial-gradient(circle at 80% 100%, rgba(255, 70, 85, 0.12), transparent 26%);
  opacity: 0.9;
  z-index: 0;
}

.badge-funcao-composicao,
.score-composicao-box,
.score-detalhado-box,
.painel-balanceamento,
.composicao-slots,
.texto-composicao-centro {
  position: relative;
  z-index: 3;
}

.badge-funcao-composicao {
  margin: 0 auto 16px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(127, 90, 240, 0.16);
  border: 1px solid rgba(127, 90, 240, 0.28);
  color: #ddd2ff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.4px;
  box-shadow: 0 0 24px rgba(127, 90, 240, 0.12);
  animation: flutuarBadge 2.2s ease-in-out infinite;
}

@keyframes flutuarBadge {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 24px rgba(127, 90, 240, 0.12);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(127, 90, 240, 0.18);
  }
}

.score-composicao-box,
.score-detalhado-box {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.score-composicao-topo,
.score-detalhado-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.score-composicao-topo strong,
.score-detalhado-topo strong {
  font-size: 14px;
}

.score-detalhado-topo small {
  color: #9fb0bd;
  font-size: 12px;
  text-align: right;
}

#scoreComposicaoValor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.score-estrelas {
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 6px;
  color: #ffe27d;
}

.score-texto {
  color: #a9b6c2;
  font-size: 13px;
  line-height: 1.4;
}

.score-criterios-grid {
  display: grid;
  gap: 10px;
}

.criterio-score {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.criterio-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.criterio-topo span {
  font-size: 13px;
  color: #d8e0e7;
  font-weight: bold;
}

.criterio-topo strong {
  font-size: 12px;
  color: white;
}

.criterio-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.criterio-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.composicao-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.slot-composicao {
  position: relative;
  min-height: 150px;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  overflow: hidden;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  animation: entradaSlot 0.45s ease forwards;
}

.slot-composicao::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

@keyframes entradaSlot {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.slot-composicao.vazio {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.slot-composicao.escolhido-time {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 255, 255, 0.05);
}

.slot-composicao.picked {
  animation: slotPicked 0.5s ease;
}

@keyframes slotPicked {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.slot-indice {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 1px;
  z-index: 2;
}

.slot-foto {
  width: 100%;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.slot-conteudo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.slot-conteudo strong {
  font-size: 13px;
  color: white;
  line-height: 1.15;
}

.slot-conteudo small {
  color: #a8b7c4;
  font-size: 11px;
  line-height: 1.25;
}

.slot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.slot-time-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.16);
  color: #86f2d2;
  font-size: 10px;
  font-weight: bold;
}

.painel-balanceamento {
  margin-top: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.painel-balanceamento-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.painel-balanceamento-topo strong {
  font-size: 14px;
}

.painel-balanceamento-topo small {
  color: #9fb0bd;
  font-size: 12px;
}

.balanceamento-grid {
  display: grid;
  gap: 10px;
}

.balance-item {
  display: grid;
  grid-template-columns: 92px 1fr 26px;
  align-items: center;
  gap: 10px;
}

.balance-item span {
  font-size: 12px;
  color: #cdd7df;
  text-align: left;
}

.balance-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.balance-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.balance-valor {
  font-size: 12px;
  color: #dfe7ee;
  font-weight: bold;
  text-align: right;
}

.texto-composicao-centro {
  margin-top: 16px;
  min-height: 38px;
  line-height: 1.45;
}

.item-funcao-destaque {
  border-color: rgba(127, 90, 240, 0.22);
  box-shadow: 0 0 20px rgba(127, 90, 240, 0.08);
}

.sugestoes-composicao {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 2px;
}

.mini-sugestao {
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 112px;
  position: relative;
  overflow: hidden;
}

.mini-sugestao::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.mini-sugestao img,
.mini-sugestao span {
  position: relative;
  z-index: 1;
}

.mini-sugestao img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.mini-sugestao span {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}

.mini-sugestao:hover {
  transform: translateY(-2px) scale(1.01);
}

.mini-sugestao.desabilitado {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.mini-sugestao.desabilitado:hover {
  transform: none;
}

.mini-sugestao.pick-ok {
  animation: animacaoSugestaoPick 0.46s ease;
}

@keyframes animacaoSugestaoPick {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* RESPONSIVO */
@media (max-width: 1200px) {
  .conteudo {
    grid-template-columns: 1fr;
  }

  .painel,
  .lateral {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .resultado-area {
    order: -1;
  }

  #cardResultado {
    position: static;
  }
}

@media (max-width: 900px) {
  .composicao-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sugestoes-composicao {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .tela-inicial-card h1 {
    font-size: 34px;
  }

  .topo {
    padding: 22px 16px 6px;
  }

  .painel,
  .lateral,
  .resultado-area {
    padding: 16px;
  }

  .imagem-wrapper {
    height: 280px;
  }

  .nome-agente {
    font-size: 28px;
  }

  .botoes button,
  .tela-inicial-botoes button {
    padding: 13px;
  }

  .lista-bloqueio {
    grid-template-columns: 1fr;
  }

  .botao-acao {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .modos-topo {
    gap: 8px;
  }

  .botao-modo {
    min-width: 120px;
  }

  .badge-funcao-composicao {
    font-size: 12px;
  }

  .composicao-slots {
    grid-template-columns: 1fr;
  }

  .slot-composicao {
    min-height: 128px;
  }

  .balance-item {
    grid-template-columns: 82px 1fr 22px;
  }

  .sugestoes-composicao {
    grid-template-columns: 1fr;
  }

  .mini-sugestao {
    min-height: 90px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .mini-sugestao img {
    width: 48px;
    height: 48px;
  }

  .score-detalhado-topo {
    flex-direction: column;
    align-items: flex-start;
  }
}