/* Tokaan Studio extras: styles for sections the approved style.css does not have. */
.photo .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin: 1rem 0; }
.fabrics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); display: block; }
.whatsapp { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: .4rem 0; }
.btn.whatsapp-btn { background: #128c4a; border-color: #0d6b38; color: #fff; }
.gift { border: 1px solid var(--gold); border-radius: 10px; padding: .8rem; margin: .8rem 0; background: #fffdf8cc; }
.gift h3, .gift p { margin: .2rem 0; }
.gift-number { font-size: 1.35rem; letter-spacing: .08em; font-weight: 600; }
.puzzle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(100%, 300px); margin: 1rem auto; }
.puzzle .piece { position: relative; overflow: hidden; padding: 0; border: 0; aspect-ratio: 1; min-width: 44px; cursor: pointer; background: #00000010; }
.puzzle .piece img { position: absolute; left: 0; top: 0; width: 300%; height: 300%; max-width: none; object-fit: cover; }
.puzzle .piece.picked { outline: 3px solid var(--gold); outline-offset: -3px; }
/* This design's opening layers */
.envelope-back { background-image: url('assets/back.webp'); }
.envelope-flap { background-image: url('assets/flap.webp'); }
.envelope-pocket { background-image: url('assets/pocket.webp'); }
:root { --wine: #b5487a; --gold: #e3b04b; --ivory: #fffafd; }
body { background: #fbeef6; color: #4a2c4a; font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif; }
h1, h2, .names, .card-names { font-family: 'Baloo 2', 'Trebuchet MS', sans-serif; font-weight: 700; font-style: normal; }
#opening { background: #f5e6f8; --seam-x: 50%; --seam-y: 46.5%; }
.envelope-flap, .envelope-pocket { z-index: 5; filter: none; }
.stage.is-opening .envelope-flap { transform: translateX(-75%) translateY(-6%) scale(1.1); opacity: 0; transition: transform 2s cubic-bezier(.4,.05,.25,1), opacity 1.7s ease .2s; }
.stage.is-opening .envelope-pocket { transform: translateX(75%) translateY(-6%) scale(1.1); opacity: 0; transition: transform 2s cubic-bezier(.4,.05,.25,1), opacity 1.7s ease .2s; }
.stage::after {
  content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: url('assets/sparkles.webp') center / 100% 100% no-repeat;
}
.stage.is-opening::after { animation: sparkle-shower 2.8s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes sparkle-shower {
  0% { opacity: 0; transform: scale(.6) rotate(-8deg); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: scale(1.1) rotate(4deg); }
  100% { opacity: 0; transform: scale(1.25) rotate(8deg) translateY(-8%); }
}
.inner-light { background: radial-gradient(ellipse 45% 30% at 50% 45%, #ffffff 0%, #fff1fbee 20%, #f9d8f0b3 42%, #e7c8ff40 70%, transparent 100%); }
.physical-card { top: 25%; transform: translateY(18%) scale(.82); opacity: 0; transition: none; }
.stage.is-emerging .physical-card, .stage.is-emerged .physical-card {
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 1.8s cubic-bezier(.24,.54,.25,1), opacity 1.2s ease;
}
.card-inside { color: #4a2c4a; text-shadow: none; }
.card-names { font-style: normal; }
#initials { color: #8a2f5c; text-shadow: 0 1px #ffe9f2; font-style: normal; font-family: 'Baloo 2', sans-serif; }
.tap { background: #8a2f5cd9; color: #fff4fa; }
.btn { border-radius: 999px; border-color: #e3b04b; font-weight: 600; }
.share { background: #b5487a; }
@media (prefers-reduced-motion: reduce) {
  .stage.is-opening .envelope-flap, .stage.is-opening .envelope-pocket, .stage.is-emerging .physical-card { transition: none !important; }
  .stage.is-opening::after { animation: none; }
}

/* Order style choices (Tokaan Studio) */
#dressCode { white-space: pre-line; }
.hero-art:has(#portrait[hidden]) { display: none; }
