/**
 * Base styles — Cinematic Space Romance
 * Mobile-first, tipografia fluida, 100dvh real
 */

* {
  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 — usa Google Fonts como fallback se assets não existirem */
.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

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

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

/* Touch targets — mobile-first confortável */
button, .touch-target {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
}

/* Botões — scale 0.97 no press */
button:active {
  transform: scale(0.97);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Scene container — 4 camadas */
.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;
  transform: translateZ(0);
}

/* App preenche viewport */
#app {
  min-height: 100dvh;
  min-height: 100svh;
}

body, html, #app {
  max-width: 100vw;
  overflow-x: hidden;
}

.scene-scroll {
  scroll-behavior: smooth;
}

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