/* Shaadi Invite · DS-070 · .sh- prefixed */
.sh { font: 400 14px/1.6 ui-sans-serif, system-ui, sans-serif; }
.sh-env {
  position: relative; width: min(420px, 90vw); height: 270px; margin: 0 auto;
  cursor: pointer; outline-offset: 6px;
}
.sh-pocket {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, #8C1D2F 0%, #6E1424 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.sh-pocket::before {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 49.6%, rgba(255,215,130,.25) 50%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, rgba(255,215,130,.25) 50%, transparent 50.4%);
}
.sh-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 52%;
  background: linear-gradient(180deg, #A82640 0%, #8C1D2F 100%);
  border-radius: 10px 10px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  z-index: 3;
}
.sh-seal {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8C56A 0%, #B8902F 60%, #8F6B1F 100%);
  color: #5C4710; font: 700 24px/52px Georgia, serif; text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 0 0 3px rgba(140,105,30,.5);
  z-index: 4; transition: opacity .3s, transform .3s;
}
.sh-card {
  position: absolute; left: 6%; right: 6%; top: 5%; bottom: 8%;
  z-index: 2; transform: translateY(8%);
  transition: transform .6s cubic-bezier(.34, 1.3, .5, 1) .25s;
}
.sh-card-inner {
  height: 100%; border-radius: 8px; padding: 22px 18px;
  background: linear-gradient(180deg, #FDF6E4 0%, #F5E8C8 100%);
  border: 1px solid #D4B96A;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
}
.sh-msg { color: #8A6D2F; font: italic 400 12px/1.5 Georgia, serif; }
.sh-names { color: #6E1424; font: 700 26px/1.2 Georgia, serif; }
.sh-date { color: #3F3A2E; font: 600 13px/1.4 inherit; }
.sh-venue { color: #6B6248; font-size: 12px; }
.sh-open .sh-flap { transform: rotateX(180deg); }
.sh-open .sh-seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.sh-open .sh-card { transform: translateY(-46%); }
/* reduced motion: card just fades/slides minimally */
.sh-rm .sh-flap, .sh-rm .sh-seal, .sh-rm .sh-card { transition: opacity .2s, transform .2s; }
.sh-rm.sh-open .sh-card, .sh-rm .sh-open .sh-card { transform: translateY(-46%); }
@media (prefers-reduced-motion: reduce) {
  .sh-flap, .sh-seal, .sh-card { transition: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
