/* ============================================================
   Modo Pentest — mesma linguagem visual, acento laranja
   (o jogador esta do lado de fora do radar).
   ============================================================ */

.attacker {
  --accent-attacker: hsl(var(--attention));
}

.attacker-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--attention) / 0.5);
  color: hsl(var(--attention));
  background: hsl(var(--attention) / 0.08);
}

.attacker .decision__tag {
  color: hsl(var(--attention));
}

.attacker .decision__timer {
  background: hsl(var(--attention));
}

.attacker .option:hover:not(:disabled) {
  border-color: hsl(var(--attention));
}

.attacker .option.is-selected {
  border-color: hsl(var(--attention));
  background: hsl(var(--attention) / 0.12);
}

.attacker .btn-primary {
  background: hsl(var(--attention));
  border-color: hsl(var(--attention));
  color: #17100a;
}

.attacker .btn-primary:hover {
  background: hsl(var(--attention) / 0.85);
  border-color: hsl(var(--attention) / 0.85);
}

.attacker .standby__dot {
  background: hsl(var(--attention));
}

/* ---------- Chance de sucesso / custo de deteccao na opcao ---------- */

.odds {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.4rem;
  font-size: 0.68rem;
}

.odds span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: hsl(var(--muted-foreground));
}

.odds b {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.odds .odds--risk b {
  color: hsl(var(--destructive));
}

.odds .odds--safe b {
  color: hsl(var(--success));
}

/* ---------- Card do alvo ---------- */

.target {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
}

.target__name {
  font-size: 0.95rem;
  font-weight: 600;
}

.target__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

.target__row b {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.target__sca {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.target__sca b {
  font-size: 1.35rem;
  color: hsl(var(--secondary));
}

/* ---------- Inventário ---------- */

.inventory {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem 0.9rem;
  font-size: 0.72rem;
  overflow-y: auto;
}

.inv-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px dashed hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.inv-item.is-owned {
  border-style: solid;
  border-color: hsl(var(--attention) / 0.6);
  background: hsl(var(--attention) / 0.08);
  color: hsl(var(--foreground));
}

.inv-item__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: hsl(var(--border));
  flex-shrink: 0;
}

.inv-item.is-owned .inv-item__dot {
  background: hsl(var(--attention));
}

/* ---------- Seleção de alvo ---------- */

.targets {
  display: grid;
  gap: 0.7rem;
}

.target-option {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.target-option:hover {
  border-color: hsl(var(--attention));
  background: hsl(var(--hover));
}

.target-option__title {
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.target-option__sca {
  color: hsl(var(--secondary));
  font-variant-numeric: tabular-nums;
}

.target-option__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

/* ---------- Card compartilhável ---------- */

.share-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(150deg, hsl(213 67% 10%), hsl(213 58% 15%));
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.share-card__big {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--secondary));
}

.share-card__sub {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  max-width: 34ch;
  line-height: 1.5;
}

.share-card img {
  height: 1.4rem;
}

/* ---------- Aviso de varredura ---------- */

.sweep-warning {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--destructive));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 5;
}

.sweep-warning.is-on {
  opacity: 1;
  animation: vg-pulse 0.7s ease-in-out infinite;
}
