:root {
  --sage: #dce9d2;
  --sage-dark: #819370;
  --paper: #fff8ef;
  --cream: #fbf1e6;
  --marigold: #d68a31;
  --gold: #c39a54;
  --wine: #a8213b;
  --rose: #cf5e6d;
  --ink: #422b25;
  --white: #fffdf8;
  --shadow: 0 26px 70px rgba(65, 38, 27, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--sage);
  font-family: "Marcellus", Georgia, serif;
}

body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a,
button {
  touch-action: manipulation;
}
img { max-width: 100%; }

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.floater {
  position: absolute;
  top: -64px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  opacity: .74;
  animation: floatDown linear infinite;
  filter: drop-shadow(0 6px 5px rgba(77, 70, 43, .16));
}

@keyframes floatDown {
  0% { transform: translate3d(0, -70px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .82; }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotate(560deg); opacity: 0; }
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 249, 238, .24), rgba(255, 247, 232, .34)),
    url("assets/bg-intro-generated.png") center / cover no-repeat,
    #f7ead1;
  transition: opacity .9s ease, visibility .9s ease, transform .9s ease;
}

.gate::before,
.gate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gate::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, .62), transparent 30%),
    linear-gradient(90deg, rgba(116, 83, 42, .08), transparent 24% 76%, rgba(116, 83, 42, .08));
}

.gate::after {
  display: none;
}

.gate.opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

.envelopeButton {
  grid-row: 2;
  position: relative;
  z-index: 1;
  width: min(72vw, 330px);
  aspect-ratio: 1.06;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}

.envelopeButton:focus-visible { outline: 3px solid rgba(168, 33, 59, .52); outline-offset: 8px; }
.envelopeButton:hover .envelope { transform: translateY(-8px) rotateX(4deg); }

.envelopeShadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -18px;
  height: 32px;
  border-radius: 50%;
  background: rgba(75, 80, 57, .24);
  filter: blur(16px);
}

.envelope {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
}

.envBack,
.envFlap,
.envPocket,
.envPrint,
.seal {
  position: absolute;
}

.envBack {
  inset: 7% 5%;
  border-radius: 8px;
  background: linear-gradient(135deg, #82916f, #c1ccb2 58%, #718466);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.26);
}

.envFlap {
  z-index: 4;
  inset: 7% 5% auto;
  height: 50%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #b8c6a9, #78896c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .95s cubic-bezier(.2,.9,.2,1), z-index .5s ease;
}

.envPocket {
  z-index: 3;
  inset: 7% 5%;
  border-radius: 8px;
  background:
    linear-gradient(34deg, transparent 49.5%, rgba(255,255,255,.22) 50%, transparent 50.5%),
    linear-gradient(-34deg, transparent 49.5%, rgba(49, 62, 42, .18) 50%, transparent 50.5%),
    linear-gradient(0deg, #748664, #aebda0);
  clip-path: polygon(0 42%, 50% 73%, 100% 42%, 100% 100%, 0 100%);
}

.envPrint {
  z-index: 5;
  left: 14%;
  right: 14%;
  height: 28%;
  opacity: .94;
  background:
    radial-gradient(circle at 12% 74%, rgba(255,255,255,.92) 0 5px, transparent 6px),
    radial-gradient(circle at 22% 50%, rgba(255,255,255,.86) 0 4px, transparent 5px),
    radial-gradient(circle at 34% 66%, rgba(255,255,255,.88) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.82) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 65%, rgba(255,255,255,.9) 0 6px, transparent 7px),
    linear-gradient(80deg, transparent 47%, rgba(255,255,255,.76) 48% 50%, transparent 51%),
    linear-gradient(-68deg, transparent 48%, rgba(255,255,255,.62) 49% 50%, transparent 51%);
  border-radius: 50%;
}

.topPrint { top: 15%; }
.bottomPrint { bottom: 15%; transform: scaleY(-1); }

.seal {
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff7e8;
  background: linear-gradient(145deg, #d4ad6c, #a66b2e);
  box-shadow: 0 14px 28px rgba(76, 57, 35, .24), inset 0 0 0 1px rgba(255,255,255,.32);
  transform: translate(-50%, -50%);
  font-family: "Cinzel", serif;
  letter-spacing: .08em;
  transition: opacity .35s ease, transform .7s ease;
}

.envelopeButton.isOpening .envFlap { transform: rotateX(180deg); z-index: 0; }
.envelopeButton.isOpening .seal { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
.envelopeButton.isOpening .envelope { transform: translateY(-22px) scale(1.04); }

.gateCopy {
  grid-row: 3;
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 58px;
  text-align: center;
  color: #607251;
}

.gateCopy h1 {
  margin: 0 0 6px;
  color: #6f875f;
  font-family: "Alex Brush", cursive;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0;
}

.gateCopy p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
}

.site {
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.62), transparent 240px),
    linear-gradient(180deg, var(--paper), var(--sage));
  transition: opacity .8s ease;
}

.site.visible {
  opacity: 1;
  visibility: visible;
}

.panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 20px 72px;
  overflow: hidden;
}

.introPanel {
  padding-left: clamp(46px, 7vw, 78px);
  padding-right: clamp(46px, 7vw, 78px);
  padding-bottom: 72px;
  background:
    linear-gradient(rgba(255, 250, 242, .08), rgba(255, 250, 242, .12)),
    url("assets/bg-intro-generated.png") center / cover no-repeat,
    #fff8ed;
}

.eventsPanel::after,
.cardsPanel::after,
.venuePanel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 24%, rgba(217, 139, 60, .18), transparent 96px),
    radial-gradient(circle at 88% 74%, rgba(168, 33, 59, .11), transparent 130px);
}

.cornerArt {
  position: absolute;
  top: 0;
  width: 210px;
  height: 330px;
  opacity: .44;
  background:
    radial-gradient(circle at 35% 18%, #e08732 0 15px, transparent 16px),
    radial-gradient(circle at 48% 24%, #f2b142 0 10px, transparent 11px),
    radial-gradient(circle at 25% 38%, #7e9a61 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 46%, rgba(121, 145, 95, .8) 47% 49%, transparent 50%);
}

.cornerArt.left { left: -36px; transform: rotate(10deg); }
.cornerArt.right { right: -36px; transform: scaleX(-1) rotate(10deg); }

.introContent,
.scratchWrap,
.sectionTitle,
.memoryGrid {
  position: relative;
  z-index: 2;
  text-align: center;
}

.introContent {
  width: min(100%, 760px);
  padding: 0;
  color: #6b3d34;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  top: 64px;
}

.smallCaps {
  margin: 0 0 10px;
  color: #8a7b58;
  font-family: "Cinzel", serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.introLine {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 1.32rem;
  line-height: 1.6;
}

.familyLine {
  margin: 6px auto 14px;
  color: #6b3d34;
  font-size: 1.2rem;
  line-height: 1.52;
}

.introContent h2,
.sectionTitle h2,
.footer h2,
.scratchWrap h2 {
  margin: 4px 0;
  color: var(--wine);
  font-family: "Alex Brush", cursive;
  font-size: 6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

.with {
  display: inline-block;
  margin: 10px 0 2px;
  color: #ba6c37;
  font-family: "Alex Brush", cursive;
  font-size: 2.35rem;
}

.dateSeal {
  width: min(100%, 440px);
  display: grid;
  gap: 4px;
  margin: 28px auto 22px;
  padding: 14px 24px;
  border: 1px solid rgba(195, 154, 84, .42);
  border-radius: 8px;
  background: rgba(255, 251, 245, .62);
  box-shadow: 0 18px 38px rgba(96, 54, 36, .08);
}

.dateSeal span {
  color: var(--wine);
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.dateSeal strong {
  color: #754634;
  font-family: "Cinzel", serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dateSeal small {
  color: #8a7b58;
}

.introActions,
.downloadRow,
.venueActions,
.eventButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.goldButton,
.outlineButton,
.sceneButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0 22px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.goldButton,
.sceneButton {
  color: #fffaf0;
  background: linear-gradient(145deg, #cf9e52, #9b6b32);
  box-shadow: 0 16px 30px rgba(125, 82, 39, .22);
}

.outlineButton {
  color: #8a6130;
  background: rgba(255, 253, 248, .68);
  box-shadow: inset 0 0 0 1px rgba(195, 154, 84, .42);
}

.goldButton:hover,
.outlineButton:hover,
.sceneButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(125, 82, 39, .24);
}

.revealPanel {
  min-height: 74svh;
  background:
    linear-gradient(rgba(255, 250, 244, .9), rgba(255, 250, 244, .92)),
    var(--cream);
}

.scratchWrap {
  width: min(100%, 760px);
}

.scratchWrap h2,
.sectionTitle h2 {
  font-size: 4.6rem;
}

.scratchCard {
  position: relative;
  width: min(100%, 640px);
  min-height: 210px;
  display: grid;
  place-items: center;
  margin: 28px auto 0;
  border: 1px solid rgba(195, 154, 84, .46);
  border-radius: 8px;
  overflow: visible;
  background: linear-gradient(120deg, #ffe7b9, #b9823d);
  box-shadow: 0 30px 60px rgba(95, 64, 42, .16);
}

.scratchCard.shaking {
  animation: cardShake .72s ease-in-out;
}

.scratchMessage {
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 30px 24px 26px;
  color: #6c4533;
  justify-items: center;
}

.scratchMessage span {
  color: var(--wine);
  font-family: "Alex Brush", cursive;
  font-size: 2.9rem;
  line-height: 1;
}

.scratchMessage strong {
  color: var(--wine);
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scratchTimerBox {
  width: min(100%, 640px);
  margin: 20px auto 0;
  padding: 14px;
  border: 1px solid rgba(195, 154, 84, .38);
  border-radius: 8px;
  background: rgba(255, 253, 248, .76);
  box-shadow: 0 22px 46px rgba(95, 64, 42, .12);
  opacity: 0;
  transform: translateY(-12px) scale(.97);
  pointer-events: none;
}

.scratchWrap.timerReady .scratchTimerBox {
  animation: timerBoxIn .58s cubic-bezier(.2,1.1,.3,1) forwards;
}

.scratchCountdown {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.scratchCountdown div {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 8px;
  color: #fff8ef;
  background: linear-gradient(145deg, var(--wine), #d17849);
  box-shadow: 0 12px 24px rgba(99, 51, 31, .16);
}

.scratchCountdown b {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 4vw, 1.45rem);
}

.scratchCountdown small {
  font-family: "Cinzel", serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  touch-action: none;
}

.confettiLayer {
  position: absolute;
  inset: -170px;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 22px;
  border-radius: 3px;
  background: var(--confetti-color);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: confettiBurst 1.35s ease-out forwards;
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  12% { transform: translateX(-8px) rotate(-.5deg); }
  24% { transform: translateX(8px) rotate(.5deg); }
  36% { transform: translateX(-6px) rotate(-.35deg); }
  48% { transform: translateX(6px) rotate(.35deg); }
  60% { transform: translateX(-3px) rotate(-.2deg); }
  72% { transform: translateX(3px) rotate(.2deg); }
}

@keyframes timerBoxIn {
  0% { opacity: 0; transform: translateY(-12px) scale(.97); }
  70% { opacity: 1; transform: translateY(4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.6); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1);
  }
}

.eventsPanel {
  display: block;
  padding-top: 96px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.7), transparent 260px),
    var(--sage);
}

.sectionTitle {
  max-width: 780px;
  margin: 0 auto 38px;
}

.sectionTitle p:not(.smallCaps) {
  margin: 12px auto 0;
  max-width: 660px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.eventStack {
  position: relative;
  z-index: 2;
  width: min(100%, 840px);
  display: grid;
  gap: 28px;
  margin: 0 auto;
}

.eventScene {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 44px 26px;
  border-radius: 8px;
  overflow: hidden;
  color: #fffaf3;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.eventScene::before,
.eventScene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.eventScene::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, .08), transparent 220px),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.24) 48%, rgba(0,0,0,.42));
}

.sangeet::before {
  background: url("assets/bg-sangeet-generated.png") center / cover no-repeat;
}

.sangeet .eventOverlay {
  background: radial-gradient(circle at 50% 52%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28) 64%, rgba(0, 0, 0, .44));
}

.anand::before {
  background: url("assets/bg-anand-generated.png") center / cover no-repeat;
}

.vivaha::before {
  background: url("assets/bg-vivaha-generated.png") center / cover no-repeat;
  filter: saturate(1.12);
}

.reception::before {
  background: url("assets/bg-reception-generated.png") center / cover no-repeat;
}

.eventOverlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .72;
  pointer-events: none;
}

.eventText {
  width: min(100%, 560px);
  justify-self: center;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
  padding: 28px 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(2px);
}

.anand .eventText,
.vivaha .eventText {
  padding-top: 34px;
}

.eventText h3 {
  margin: 0 0 8px;
  font-family: "Alex Brush", cursive;
  font-size: 4.7rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

.ritualSymbol {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0 auto 58px;
  color: #fff8ef;
  opacity: .46;
  text-shadow: 0 2px 14px rgba(0,0,0,.42);
}

.sikhSymbol {
  font-size: 2.8rem;
  line-height: 1;
}

.hinduSymbol {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.eventText > p {
  margin: 0 auto 30px;
  max-width: 520px;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
}

.eventText dl {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.eventText dt {
  margin-bottom: 5px;
  font-family: "Cinzel", serif;
  font-size: .84rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.eventText dd {
  margin: 0;
  font-size: 1.22rem;
}

.tinyNote {
  margin-top: -4px !important;
  margin-bottom: 18px !important;
  color: rgba(255, 248, 232, .82);
  font-size: .92rem !important;
}

.sceneButton {
  min-height: 44px;
  padding-inline: 18px;
  font-size: .76rem;
  background: rgba(170, 121, 61, .86);
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}

.sceneButton.map {
  background: rgba(84, 104, 68, .86);
}

.cardsPanel {
  background:
    linear-gradient(rgba(255, 248, 239, .88), rgba(255, 248, 239, .88)),
    var(--paper);
}

.cardStage {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.inviteFrame {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #bf8c43, #fff0cf, #a8213b);
  box-shadow: var(--shadow);
}

.inviteFrame img {
  display: block;
  width: 100%;
  aspect-ratio: 910 / 1282;
  border-radius: 6px;
  object-fit: cover;
  background: #fff8ee;
  transition: opacity .28s ease, transform .28s ease;
}

.inviteFrame.switching img {
  opacity: .18;
  transform: scale(.985);
}

.roundControl {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fffaf0;
  background: linear-gradient(145deg, var(--wine), #c46c32);
  box-shadow: 0 14px 26px rgba(75, 38, 27, .2);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 22px;
}

.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(168, 33, 59, .26);
  cursor: pointer;
}

.dots button.active {
  width: 28px;
  border-radius: 999px;
  background: var(--wine);
}

.downloadRow {
  position: relative;
  z-index: 2;
}

.creativePanel {
  min-height: 88svh;
  background:
    linear-gradient(rgba(255, 248, 239, .88), rgba(255, 248, 239, .82)),
    url("assets/bg-intro-generated.png") center / cover no-repeat;
}

.creativePanel .sectionTitle .smallCaps {
  margin-bottom: 76px;
}

.memoryGrid {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.memoryGrid article {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px solid rgba(195, 154, 84, .45);
  border-radius: 8px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 20px 46px rgba(77, 51, 33, .1);
  backdrop-filter: blur(6px);
}

.memoryGrid span {
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: .22em;
}

.memoryGrid h3 {
  margin: 0;
  color: var(--wine);
  font-family: "Alex Brush", cursive;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

.memoryGrid p {
  margin: 0;
  color: #6b3d34;
  font-size: 1.02rem;
  line-height: 1.5;
}

.venuePanel {
  display: block;
  min-height: auto;
  background:
    linear-gradient(rgba(255, 248, 239, .92), rgba(255, 248, 239, .92)),
    var(--paper);
}

.mapWrap {
  position: relative;
  z-index: 2;
  width: min(100%, 840px);
  margin: 0 auto 26px;
  border: 1px solid rgba(195, 154, 84, .52);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(77, 51, 33, .13);
}

.mapWrap iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  filter: sepia(.12) saturate(.86);
}

.venueActions {
  position: relative;
  z-index: 2;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 66px 20px 82px;
  text-align: center;
  color: #fff8ec;
  background: #3a2a22;
}

.footer h2 {
  color: #fff8ec;
  font-size: 4.2rem;
  margin-top: 52px;
}

.footer p {
  margin: 8px 0;
}

.footer .smallCaps {
  color: #d6bf86;
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 22px;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff8ec;
  background: rgba(58, 42, 34, .94);
  box-shadow: 0 18px 38px rgba(45, 31, 25, .28);
  text-align: center;
  transform: translate(-50%, 140%);
  transition: transform .3s ease;
}

.toast.show { transform: translate(-50%, 0); }
.toast:empty { display: none; }

.revealOnView {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}

.revealOnView.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  html {
    font-size: 87.5%;
  }

  .panel {
    padding: 70px 14px 58px;
  }

  .cornerArt {
    display: none;
  }

  .introPanel {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 58px;
    background:
      linear-gradient(rgba(255, 250, 242, .08), rgba(255, 250, 242, .12)),
      url("assets/bg-intro-portrait.png") center / cover no-repeat,
      #fff8ed;
  }

  .gate {
    background:
      linear-gradient(rgba(255, 249, 238, .22), rgba(255, 247, 232, .3)),
      url("assets/bg-intro-portrait.png") center / cover no-repeat,
      #f7ead1;
  }

  .gateCopy h1 {
    font-size: 3.25rem;
  }

  .introContent {
    padding: 0;
    top: 0;
  }

  .introContent h2 {
    font-size: 4.7rem;
  }

  .sectionTitle h2,
  .scratchWrap h2 {
    font-size: 3.7rem;
  }

  .introLine {
    max-width: 470px;
    font-size: 1.16rem;
  }

  .familyLine {
    font-size: 1.14rem;
  }

  .with {
    font-size: 2.3rem;
  }

  .scratchCard {
    min-height: 220px;
  }

  .scratchCountdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eventStack {
    gap: 22px;
  }

  .eventScene {
    min-height: 650px;
    padding: 36px 18px;
  }

  .eventText h3 {
    font-size: 3.9rem;
  }

  .eventText dd {
    font-size: 1.1rem;
  }

  .memoryGrid {
    grid-template-columns: 1fr;
  }

  .cardStage {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 7px;
  }

  .roundControl {
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .downloadRow .goldButton,
  .downloadRow .outlineButton,
  .venueActions .goldButton,
  .venueActions .outlineButton {
    width: min(100%, 330px);
  }

  .mapWrap iframe {
    height: 360px;
  }
}

@media (max-width: 420px) {
  .introContent h2 {
    font-size: 4.2rem;
  }

  .sectionTitle h2,
  .scratchWrap h2 {
    font-size: 3.2rem;
  }

  .eventText h3 {
    font-size: 3.4rem;
  }

  .goldButton,
  .outlineButton,
  .sceneButton {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .confettiLayer.reducedCelebration .confetti {
    opacity: .9 !important;
    animation: none !important;
    transform: translate(calc(-50% + var(--x-static)), calc(-50% + var(--y-static))) rotate(var(--r)) !important;
  }
}
