/* Noches de Faroles · seasonal entry. Shared brand paths are untouched. */
.flower-entry {
  --entry-ink: #0f131a;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--entry-ink);
  overflow: hidden;
  color: var(--ivory);
}
.flower-entry::backdrop { background: #0f131a; }
.flower-entry::before {
  content: '';
  position: absolute;
  top: 28%; bottom: -34%; left: 50%;
  width: min(85%, 580px);
  translate: -50% 0;
  border: 1px solid #d49a422c;
  border-radius: 400px 400px 0 0;
  pointer-events: none;
}
.entry-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  isolation: isolate;
}
.entry-top {
  display: flex;
  width: min(100%, 1300px);
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.entry-top img { width: 92px; height: 46px; }
.entry-back { font-size: .75rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #cec2b0; }
.entry-heading { margin-top: clamp(14px, 3svh, 35px); text-align: center; }
.entry-heading .eyebrow { font-size: .63rem; letter-spacing: .2em; }
.entry-heading h2 { font-size: clamp(2rem, 7.9vw, 3.3rem); line-height: 1.04; margin: 12px 0 0; }
.entry-heading em { font-weight: 400; color: #ecc17f; }
.flower-stage {
  position: relative;
  isolation: isolate;
  width: min(94vw, 490px, calc(100svh - 300px));
  min-width: 264px;
  aspect-ratio: 1;
  flex-shrink: 0;
  margin: auto;
  perspective: 1100px;
}
.flower-light { position: absolute; inset: -3%; pointer-events: none; background: radial-gradient(circle, #eab55e40, #67201b0e 54%, transparent 70%); opacity: .2; z-index: 0; }
.flower-bract {
  position: absolute;
  left: 50%; top: 50%;
  width: 54%; aspect-ratio: 1;
  translate: -50% -98%;
  transform-origin: 50% 98%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 7px 5px #00000068);
}
.art-ready .flower-bract { opacity: 1; transition: opacity 320ms ease; }
.flower-bract img { width: 100%; height: 100%; object-fit: contain; }
.flower-inner { width: 43%; z-index: 4; }
.flower-green { width: 59%; z-index: 1; filter: drop-shadow(0 7px 6px #0008); }
.flower-trigger {
  position: absolute;
  z-index: 6;
  top: 50%; left: 50%; translate: -50% -50%;
  width: 78px; height: 78px;
  border: 0; padding: 0;
  background: transparent;
  border-radius: 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.flower-trigger:focus-visible { outline: 1px solid #ecc17f; outline-offset: 9px; }
.flower-entry:not([data-phase=idle]) .flower-trigger:focus-visible { outline: none; }
.flower-core {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 24%, #413632, #241b20 70%);
  box-shadow: inset 0 0 0 1px #c89a5d8c, inset 0 0 0 4px #291f25, inset 0 0 0 5px #c89a5d59, 0 4px 12px #0008;
  border-radius: 50%;
  transition: transform 150ms ease;
}
.flower-core img { width: 59px; height: 59px; }
@media (hover: hover) { [data-phase=idle] .flower-trigger:hover .flower-core { transform: translateY(-2px); } }
.flower-trigger:active .flower-core { transform: scale(.97); }
.opening-card {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%; translate: -50% -50%;
  width: 57%; height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 18px 9px;
  background: #111720 url('../assets/patio-800.webp') 50% 50% / cover;
  border: 1px solid #c29759;
  box-shadow: 0 10px 36px #0007;
  opacity: 0;
  transform: translateY(20%) scale(.12);
  pointer-events: none;
}
.opening-card::before { content: ''; position: absolute; inset: 4px; border: 1px solid #e0b77756; }
.opening-card .eyebrow { position: relative; font-size: clamp(6px, 1.8vw, 9px); letter-spacing: .15em; }
.opening-card-title { position: relative; margin: 12px 0 9px; font: 400 clamp(27px, 7vw, 42px)/.93 var(--serif); letter-spacing: -.045em; text-shadow: 0 2px 12px #000; }
.opening-card-title em { font-weight: 400; font-size: .7em; }
.opening-card-date { position: relative; margin: 0; font-size: clamp(8px, 2.3vw, 11px); }
.entry-controls { position: relative; text-align: center; flex-shrink: 0; padding-bottom: 4px; }
.flower-instruction { color: #ece0cc; font-size: .8rem; margin: 5px 0 4px; letter-spacing: .035em; }
.opening-skip { border: 0; background: none; color: #cec2b0; font-size: .73rem; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 10px 16px; }
.opening-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.flower-pending .hero :is(.stars, .lantern, .lantern-halo, .guiding-star) { animation-play-state: paused; }
.flower-entered .sky-art { animation: patio-arrive 1500ms cubic-bezier(.2,.65,.2,1) both; }
.flower-entered .hero-copy { animation: title-arrive 900ms 150ms ease-out both; }
.flower-entered .hero-bottom { animation: title-arrive 800ms 380ms ease-out both; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 850ms ease, transform 850ms cubic-bezier(.2,.65,.2,1); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.replay-opening { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; color: var(--bright); padding: 8px 0; font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
#titulo:focus, #welcome:focus, #rsvp-title:focus { outline: none; }
.paper { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.71' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23p)' opacity='.045' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.program { position: relative; }
.schedule li { position: relative; padding-block: 20px; }
.schedule time { min-width: 48px; }
.schedule span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
@keyframes patio-arrive { from { transform: scale(1.045); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 780px) {
  .entry-layout { padding-inline: 40px; }
  .entry-heading { margin-top: 1.4svh; }
  .flower-stage { width: min(490px, calc(100svh - 292px)); }
}
@media (max-height: 600px) {
  .entry-layout { padding-block: 8px; }
  .entry-heading { margin-top: 0; }
  .entry-heading h2 { font-size: 1.8rem; }
  .entry-heading .eyebrow { display: none; }
  .flower-stage { min-width: 230px; width: min(72vw, calc(100svh - 222px)); }
  .entry-controls { padding: 0; }
}
@media (max-height: 450px) {
  .entry-heading { display: none; }
  .entry-top { position: absolute; top: 8px; left: 18px; right: 18px; width: auto; }
  .entry-top img { width: 70px; }
  .flower-stage { width: calc(100svh - 80px); min-width: 210px; margin: 0 auto; }
  .entry-controls { position: absolute; bottom: 2px; }
  .flower-instruction { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flower-bract, .flower-core, [data-reveal] { transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
