/* LiveDefense — Componentes de UI */

/* Botões de ação rápida (mobile) */
.fab {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #262d3c, #1a1f2a);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  touch-action: none;
  z-index: 35;
}
.fab:active { transform: scale(0.92); }
.fab.primary {
  background: linear-gradient(180deg, #e7b62a, #b8890f);
  color: #17120a;
  border-color: #f0c94a;
}

/* Botão de iniciar onda (destacado) */
#start-wave-fab {
  bottom: env(safe-area-inset-bottom);
  right: 16px;
  background: linear-gradient(180deg, #d4a017, #b8890f);
  color: #17120a;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.45);
}
#start-wave-fab:disabled {
  opacity: 0.5;
  filter: grayscale(0.5);
  transform: none;
}

/* Seletor de build rápido (escondido em desktop, visível em mobile) */
.build-quick {
  position: absolute;
  bottom: env(safe-area-inset-bottom);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 34;
  padding-bottom: 8px;
  display: none;
}
.build-quick .btn {
  min-width: 56px;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 8px;
}

/* Toggle painel mobile */
.mobile-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  cursor: pointer;
}
.mobile-toggle:active { color: var(--gold-bright); }

/* Overlay de carga */
.load-crest {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 24px;
  border: 1px solid rgba(212, 160, 23, 0.5);
  transform: rotate(45deg);
  animation: pulse 2.2s ease-in-out infinite;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 70%);
}
.load-crest span { transform: rotate(-45deg); }
#loading h1 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  letter-spacing: 0.14em;
}
#loading p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loadbar {
  width: 180px;
  height: 4px;
  border-radius: 2px;
  background: #1a1f2a;
  overflow: hidden;
  margin-top: 10px;
}
.loadbar span {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: load 1.4s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 160, 23, 0); }
  50% { box-shadow: 0 0 22px rgba(212, 160, 23, 0.5); }
}

/* Vignette */
#vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.42) 100%);
}

/* Status dot */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b6270;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.04);
  transition: all 0.3s;
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 9px rgba(62, 207, 106, 0.8);
}

/* Etiquetas */
.eyebrow {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.muted { color: var(--muted); }

/* Palavras-chave */
.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--gold-bright);
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
