/* ============================================================================
   Abertura Procedural em Canvas (CS Solution — 26s)
   Overlay fullscreen ultraleve com fade-out cinematográfico para o site
   ============================================================================ */

html.cs-intro-active,
body.cs-intro-active {
  overflow: hidden !important;
  height: 100% !important;
}

#cs-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0b0b0d;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

#cs-intro-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

#cs-intro-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#cs-intro-actions {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 1000001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#cs-intro-sound,
#cs-intro-skip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 11, 13, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f2efe9;
  font-family: 'JetBrains Mono', 'Space Grotesk', Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#cs-intro-sound.is-prompt {
  border-color: #ff4d1a;
  background: rgba(255, 77, 26, 0.90);
  color: #ffffff;
  animation: csIntroPulse 1.6s ease-in-out infinite;
}

#cs-intro-sound.is-on {
  border-color: rgba(212, 255, 43, 0.65);
  color: #d4ff2b;
}

@keyframes csIntroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 26, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 77, 26, 0); }
}

#cs-intro-sound:hover,
#cs-intro-skip:hover {
  background: rgba(255, 77, 26, 0.92);
  border-color: #ff4d1a;
  color: #ffffff;
  transform: translateY(-1px);
  animation: none;
}

#cs-intro-sound:focus-visible,
#cs-intro-skip:focus-visible {
  outline: 2px solid #ff4d1a;
  outline-offset: 3px;
}

#cs-intro-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  z-index: 1000001;
  background: linear-gradient(90deg, #ff4d1a, #d4ff2b);
  pointer-events: none;
}

@media (max-width: 640px) {
  #cs-intro-actions {
    top: 14px;
    right: 14px;
    gap: 8px;
  }
  #cs-intro-sound,
  #cs-intro-skip {
    padding: 8px 12px;
    font-size: 11px;
  }
}
