/* Structural resets + layout utilities ONLY. No aesthetics (colors, fonts) —
   those live in each template's own <style> block. */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body { margin: 0; overflow-x: hidden; }

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

iframe.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.section {
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Fullscreen cover overlay, shown until #btn-open is clicked */
#cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#cover.cover-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Sticky bottom navigation pill bar */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: .25rem;
  padding: .5rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bottom-nav a {
  padding: .5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  max-width: 400px;
  margin: 1.5rem auto 0;
}
.countdown-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Form controls */
input, select, textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: .5rem 0;
  padding: .7rem .9rem;
  border-radius: .5rem;
  font: inherit;
}
textarea { resize: vertical; min-height: 6rem; }
form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.6rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

/* Fixed round music toggle button */
#music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: .5rem; }

.wish-item {
  text-align: left;
  border-radius: .75rem;
  padding: 1rem;
  margin: .75rem 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
