/* LiveDefense — Reset e base mobile-first */

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

html {
  /* Evita zoom duplo em iOS ao tocar em inputs/buttons */
  touch-action: manipulation;
  font-size: 14px;
}

body {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* viewport dinâmica mobile (oculta barra de endereço) */
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none; /* impede scroll/zoom do navegador sobre o WebGL */
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

#loading {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 38%, #1a2233 0%, #0b0d12 62%);
  transition: opacity 0.7s ease, visibility 0.7s;
}

#loading.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Variáveis */
:root {
  --bg-0: #0b0d12;
  --line: #343b4b;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #e9e6df;
  --muted: #9aa0ad;
  --faint: #6b7280;
  --gold: #d4a017;
  --gold-bright: #ffd45a;
  --gold-soft: rgba(212, 160, 23, 0.14);
  --red: #d84f3f;
  --green: #3ecf6a;
  --blue: #3d8fd6;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --radius: 10px;
}

/* Utilitários */
.hidden { display: none !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;
}
