.music-btn {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 15px;
  z-index: 900;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(235,216,180,.28);
  border-radius: 50%;
  background: rgba(7,22,16,.42);
  box-shadow: 0 5px 22px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-soft);
  cursor: pointer;
}

.music-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(232,212,175,.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.music-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translate(-50%, -50%);
}

.music-disc i {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(232,212,175,.7);
  transform-origin: 0 9px;
}

.music-btn.is-playing .music-disc { animation: spin 6s linear infinite; }

.music-btn.is-paused::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 10px;
  width: 23px;
  height: 1px;
  background: rgba(235,216,180,.9);
  transform: rotate(-44deg);
}

.music-btn.is-paused { opacity: .72; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.auto-pill {
  position: fixed;
  left: 50%;
  bottom: calc(17px + env(safe-area-inset-bottom));
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(227,204,165,.3);
  border-radius: 999px;
  background: rgba(7,23,17,.54);
  box-shadow: 0 6px 25px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(242,230,209,.84);
  font-size: 9px;
  letter-spacing: .1em;
  white-space: nowrap;
  transform: translateX(-50%);
  cursor: pointer;
}

.auto-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 0 rgba(221,199,159,.5);
  animation: pulse 1.9s ease-out infinite;
}

.auto-pill > i {
  width: 7px;
  height: 8px;
  margin-left: 1px;
  border-left: 1.5px solid rgba(236,216,180,.8);
  border-right: 1.5px solid rgba(236,216,180,.8);
}

.auto-pill.is-paused .auto-dot { animation: none; opacity: .5; }

.auto-pill.is-paused > i {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(236,216,180,.85);
  border-right: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(221,199,159,.42); }
  70% { box-shadow: 0 0 0 7px rgba(221,199,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(221,199,159,0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 1300;
  max-width: 82vw;
  padding: 10px 15px;
  border: 1px solid rgba(216,191,149,.23);
  border-radius: 6px;
  background: rgba(7,23,17,.92);
  color: #f2e7d1;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .3s ease, transform .3s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.share-guide {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4,16,11,.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.share-guide.open { opacity: 1; visibility: visible; }

.share-arrow {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 23px;
  color: #f2e5cf;
  font-family: Georgia, serif;
  font-size: 49px;
  font-weight: 300;
  transform: rotate(-5deg);
  animation: arrow 1.7s ease-in-out infinite;
}

@keyframes arrow {
  0%, 100% { transform: rotate(-5deg) translate(0, 0); }
  50% { transform: rotate(-5deg) translate(4px, -5px); }
}

.share-panel {
  width: 100%;
  max-width: 560px;
  padding: 32px 26px calc(25px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.share-panel h3 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .1em;
}

.share-panel p {
  margin: 0 0 23px;
  color: #756c59;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .06em;
}

.share-panel button {
  width: 100%;
  height: 47px;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .15em;
  cursor: pointer;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.petals span {
  position: absolute;
  top: -8vh;
  width: 7px;
  height: 7px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(237,199,174,.6), rgba(177,95,78,.3));
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .55; }
  82% { opacity: .36; }
  100% { transform: translate3d(7vw, 108vh, 0) rotate(280deg); opacity: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
}

.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal.delay-1 { transition-delay: .14s; }

@media (min-width: 680px) {
  .hero-header, .hero-copy, .closing-inner {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy { padding-left: 8vw; padding-right: 8vw; }
  .section-title { font-size: 50px; }
  .opening-date { font-size: 178px; }
}

@media (max-height: 680px) {
  .hero-copy { padding-bottom: 80px; }
  .hero h1 { font-size: clamp(54px, 15vw, 74px); }
  .hero-date { margin-top: 24px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .scroll-cue span, .music-btn.is-playing .music-disc, .petals span {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { scroll-behavior: auto !important; }
}
