/* invite-base.css — shared reset + behaviour styles. Templates own all the look. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
input { font: inherit; }

/* full-height helper that survives in-app browser toolbars */
.vh100 { height: 100vh; height: calc(var(--vh, 1vh) * 100); }
.minvh100 { min-height: 100vh; min-height: calc(var(--vh, 1vh) * 100); }

/* scroll lock while the entry sequence plays */
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }

/* the intro overlay is the first thing painted, so nothing flashes before GSAP runs */
[data-intro] { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 50; }
html.reduced [data-intro], html.no-anim [data-intro] { display: none !important; }

/* elements a template wants hidden until GSAP animates them in. Without GSAP / reduced motion they show. */
html.is-ready.anim .pre { visibility: hidden; }

/* music toggle (templates restyle) */
.music-btn { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; }
.music-btn .bars { display: flex; align-items: flex-end; height: 16px; }
.music-btn .bars i { display: block; width: 3px; margin: 0 1.5px; height: 4px; background: currentColor; border-radius: 2px; }
.music-btn.is-playing .bars i { -webkit-animation: mbar 0.9s ease-in-out infinite; animation: mbar 0.9s ease-in-out infinite; }
.music-btn.is-playing .bars i:nth-child(2) { -webkit-animation-delay: -0.3s; animation-delay: -0.3s; }
.music-btn.is-playing .bars i:nth-child(3) { -webkit-animation-delay: -0.6s; animation-delay: -0.6s; }
.music-btn .off-line { position: absolute; width: 26px; height: 2px; background: currentColor; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); opacity: .8; }
.music-btn.is-playing .off-line { display: none; }
@-webkit-keyframes mbar { 0%,100% { height: 4px; } 50% { height: 16px; } }
@keyframes mbar { 0%,100% { height: 4px; } 50% { height: 16px; } }

.petals-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

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

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