/* ==========================================================================
   Reset e fundação — mobile-first, sem versão desktop adaptada
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  background: radial-gradient(120% 90% at 50% 0%, var(--forest) 0%, var(--forest-deep) 62%, #071d10 100%);
  color: var(--cream);
  font-family: var(--font-body);
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.scroll-enabled {
  position: static;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

input, select {
  font-family: inherit;
}

img, video {
  display: block;
  max-width: 100%;
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Camada de partículas — cobre toda a experiência */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* Botão de música — discreto, sempre acessível com o polegar */
#music-toggle {
  position: fixed;
  right: calc(16px + var(--sar));
  bottom: calc(16px + var(--sab));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(13, 48, 26, 0.55);
  border: 1px solid rgba(240, 214, 106, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
  color: var(--gold-light);
  font-size: 18px;
}

#music-toggle.visible {
  opacity: 1;
  transform: scale(1);
}

#music-toggle:active {
  transform: scale(0.9);
}

#music-toggle .icon-off {
  display: none;
}

#music-toggle.muted .icon-on {
  display: none;
}

#music-toggle.muted .icon-off {
  display: block;
}
