/**
 * Base styles - Design system mobile-first
 */
:root {
  --bg-deep: #07070a;
  --bg-dark: #0b0b10;
  --bg-elevated: #12121a;
  --text-primary: #f2f2f2;
  --text-muted: #b8b8c2;
  --glow-accent: rgba(255, 255, 255, 0.15);
  --glow-warm: rgba(255, 220, 180, 0.12);
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

/* Font-face personalizado - fallback para Google Fonts se não existir */
@font-face {
  font-family: 'Display';
  src: url('../assets/fonts/Display.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: 'Text';
  src: url('../assets/fonts/Text.woff2') format('woff2');
  font-weight: 300 400;
  font-display: swap;
}

/* Fallback: se Display não carregar, usa Playfair */
.font-display {
  font-family: 'Display', 'Playfair Display', Georgia, serif;
}

.font-text {
  font-family: 'Text', 'Inter', -apple-system, sans-serif;
}

h1, h2 {
  font-family: 'Display', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Touch targets */
button, .touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* Botões suaves */
button:active {
  transform: scale(0.98);
  transition: transform 0.15s ease;
}

/* Scene container - padding sobrescrito em responsive.css */
.scene {
  position: absolute;
  inset: 0;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Garantir que o app preencha a viewport em mobile */
#app {
  min-height: 100dvh;
  min-height: 100svh;
}

/* Evitar overflow horizontal em qualquer viewport */
body, html, #app {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Smooth scroll suave */
.scene-scroll {
  scroll-behavior: smooth;
}

/* Aceleração GPU para animações suaves */
.scene {
  transform: translateZ(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
