/* Reset básico */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; background: #0b0f12; color: #e8eef3; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.app { position: relative; width: 100vw; height: 100vh; overflow: hidden; background: #000; }
video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scaleX(-1); /* espelho */ max-width: none; }
canvas { position: absolute; top: 0; left: 0; pointer-events: none; }

/* HUD */
.hud { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.status { font-size: 16px; background: rgba(0,0,0,0.5); padding: 8px 12px; border-radius: 8px; }

/* Botão de Captura */
.capture-btn { 
  background: #19d36b; 
  color: #fff; 
  border: none; 
  border-radius: 12px; 
  padding: 12px 20px; 
  font-size: 16px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(25, 211, 107, 0.3);
}
.capture-btn:hover { 
  background: #16c25d; 
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 211, 107, 0.4);
}
.capture-btn.active { 
  background: #e74c3c; 
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.capture-btn.active:hover { 
  background: #c0392b; 
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Mensagens grandes */
.message { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); background: rgba(16, 112, 39, 0.95); color: #fff; padding: 16px 24px; border-radius: 12px; font-size: 28px; font-weight: 700; z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.message.error { background: rgba(176, 30, 30, 0.95); }
.hidden { display: none; }

/* Botão Fullscreen */
.fs-btn { 
  position: absolute; 
  bottom: 16px; 
  right: 16px; 
  z-index: 6; 
  background: #1b2631; 
  color: #e8eef3; 
  border: 1px solid #2e3b4a; 
  border-radius: 10px; 
  padding: 10px 14px; 
  font-size: 14px; 
  cursor: pointer; 
}
.fs-btn:hover { background: #243447; }

/* Painel de cadastro */
.app--register .panel { position: absolute; right: 16px; top: 16px; width: 320px; background: rgba(0,0,0,0.55); border: 1px solid #2e3b4a; border-radius: 12px; padding: 14px; z-index: 6; }
.panel__row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel__row label { width: 60px; font-size: 14px; opacity: 0.9; }
.panel__row input[type="text"] { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid #2e3b4a; background: #101820; color: #e8eef3; }

button { background: #2a6df1; color: #fff; border: none; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
button:disabled { opacity: 0.5; cursor: default; }
.btn--primary { background: #2a6df1; }
.btn--secondary { background: #4a5568; }

.badge { background: #1b2631; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.linklike { color: #7fb3ff; cursor: pointer; text-decoration: underline; }

/* Responsivo */
@media (max-width: 900px) {
  .app--register .panel { width: calc(100% - 32px); left: 16px; right: 16px; top: auto; bottom: 16px; }
  .hud { flex-direction: column; gap: 12px; align-items: stretch; }
  .capture-btn { text-align: center; }
  .fs-btn { bottom: 80px; } /* Evitar sobreposição em mobile */
} 