:root {
  --bg: #201125;
  --deep: #150b19;
  --cream: #fff0e5;
  --muted: #dcc8d4;
  --gold: #e7c798;
  --gold-dark: #b98d60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Nunito", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.hindi-mode {
  font-family: "Noto Sans Devanagari", sans-serif;
}

body.is-loading,
body.is-choosing {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}


/* LOADER */

.loader,
.language-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 24px;

  background:
    radial-gradient(
      ellipse at 50% 35%,
      #56354d,
      #29182f 55%,
      #140b19
    );
}

.loader-content {
  width: min(100%, 390px);
  text-align: center;
}

.loader-flower {
  margin-bottom: 20px;
  font-size: 43px;
  animation: float 3s ease-in-out infinite;
}

.loader-heading {
  margin: 0 0 30px;
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: clamp(34px, 8vw, 46px);
}

.loading-track {
  position: relative;
  height: 55px;
  overflow: hidden;
  border: 1px solid #e7c79855;
  border-radius: 30px;
  background: #ffffff09;
  box-shadow: 0 12px 35px #0004;
}

.loading-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1%;
  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #71425f,
      #a46b86,
      #ce9eaf
    );
}

.loading-content {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 100%;

  padding: 0 20px;

  font-size: 15px;
  font-weight: 800;
}

.loader-message {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.skip-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}


/* LANGUAGE */

.language-screen {
  z-index: 900;
  overflow-y: auto;
}

.language-card {
  width: min(100%, 470px);

  padding: 36px 25px;

  border: 1px solid #e7c79835;
  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      #ffffff0d,
      #ffffff03
    );

  box-shadow:
    0 25px 70px #0005,
    inset 0 1px 0 #ffffff10;

  text-align: center;

  backdrop-filter: blur(12px);

  animation: card-enter 0.7s ease both;
}

.language-flower {
  font-size: 38px;
  animation: float 4s ease-in-out infinite;
}

.language-blessing {
  margin: 14px 0;
  color: var(--gold);
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 12px;
}

.language-heading {
  margin: 15px 0;
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: clamp(44px, 10vw, 60px);
}

.language-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  margin: 24px auto;

  color: var(--gold);
}

.language-divider span {
  width: 60px;
  height: 1px;
  background: #e7c79870;
}

.language-description {
  max-width: 320px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.language-options {
  display: grid;
  gap: 13px;
}

.language-choice {
  display: flex;
  align-items: center;
  gap: 15px;

  width: 100%;
  min-height: 75px;

  padding: 12px 15px;

  border: 1px solid #e7c79850;
  border-radius: 17px;

  background: #ffffff0a;

  color: var(--cream);
  text-align: left;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.language-choice:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: #e7c79816;
}

.choice-icon {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 46px;
  height: 46px;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #f3d8ad,
      #c89a65
    );

  color: #27172b;

  font-size: 15px;
  font-weight: 800;
}

.hindi-icon {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 23px;
}

.choice-content {
  display: grid;
  gap: 4px;
  flex: 1;
}

.choice-content strong {
  font-size: 17px;
}

.choice-content small {
  color: var(--muted);
  font-size: 11px;
}

.choice-arrow {
  color: var(--gold);
  font-size: 22px;
}

.language-footer {
  margin: 27px 0 0;
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: 20px;
}


/* LANGUAGE TOGGLE */

.language-toggle {
  position: fixed;

  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));

  z-index: 60;

  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 43px;

  padding: 6px 14px 6px 6px;

  border: 1px solid #e7c79865;
  border-radius: 30px;

  background: #28182fee;

  color: var(--cream);

  box-shadow: 0 8px 30px #0005;

  backdrop-filter: blur(9px);

  cursor: pointer;

  font-size: 13px;
  font-weight: 800;
}

.language-toggle-icon {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #f1d4a5,
      #c19360
    );

  color: #29172d;

  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 17px;
}


/* BACKGROUND */

#invitation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #211327;
}

#invitation::before,
#invitation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

#invitation::before {
  background:
    radial-gradient(
      ellipse at 15% 15%,
      #633d6070,
      transparent 43%
    ),
    radial-gradient(
      ellipse at 85% 75%,
      #56305060,
      transparent 48%
    ),
    linear-gradient(
      160deg,
      #301a39,
      #170d1d 60%,
      #26142c
    );
}

#invitation::after {
  opacity: 0;

  background:
    radial-gradient(
      ellipse at 20% 30%,
      #b37c4740,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 85% 70%,
      #a66b5540,
      transparent 50%
    ),
    linear-gradient(
      155deg,
      #39222a,
      #21131b 60%,
      #3b281c
    );
}

body.theme-events #invitation::after {
  opacity: 1;
}

body.theme-blessing #invitation::after {
  opacity: 1;

  background:
    radial-gradient(
      circle at 15% 15%,
      #b35a7c50,
      transparent 36%
    ),
    radial-gradient(
      circle at 85% 30%,
      #e5b08f30,
      transparent 42%
    ),
    linear-gradient(
      160deg,
      #3a1b2e,
      #1c0e1b 60%,
      #3d1d2e
    );
}


/* PAGES */

.page {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 100vh;
  min-height: 100svh;

  padding: 85px 23px;
}

.content {
  position: relative;
  z-index: 3;

  width: min(100%, 700px);

  text-align: center;
}

.flowers {
  position: absolute;
  z-index: 5;

  width: clamp(120px, 28vw, 250px);

  pointer-events: none;
}

.flowers-top {
  top: 0;
  left: 0;
}

.flowers-bottom {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.flowers img {
  display: block;
  width: 100%;
  height: auto;
}

.ganesha {
  display: block;

  width: clamp(80px, 18vw, 115px);

  height: auto;

  margin: 0 auto 20px;

  animation: float 6s ease-in-out infinite;
}

.couple-image {
  position: absolute;

  right: -20px;
  bottom: 15%;

  z-index: 1;

  width: clamp(180px, 48vw, 410px);
  max-height: 65%;

  object-fit: contain;

  opacity: 0.15;

  pointer-events: none;
}


/* TYPOGRAPHY */

.eyebrow {
  margin: 13px 0;

  color: var(--gold);

  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 800;

  line-height: 1.8;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

body.hindi-mode .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.blessing {
  font-size: 11px;
}

.script-heading {
  margin: 23px 0;

  color: var(--gold);

  font-family: "Dancing Script", cursive;
  font-size: clamp(43px, 9vw, 72px);
  font-weight: 700;

  line-height: 1.2;

  text-wrap: balance;
}

body.hindi-mode .script-heading {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: clamp(35px, 8vw, 57px);
  font-weight: 600;
  line-height: 1.5;
}


/* NAMES */

.names {
  display: grid;
  gap: 11px;
  margin: 32px 0 28px;
}

.name-line {
  min-height: 1.5em;

  font-family: "Merienda", cursive;
  font-size: clamp(27px, 6.7vw, 49px);

  line-height: 1.5;

  overflow-wrap: anywhere;
}

body.hindi-mode .name-line {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
}

.ampersand {
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: 43px;
  line-height: 1;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 17px;

  margin: 28px auto;

  color: var(--gold);

  font-size: 26px;
}

.ornament span {
  width: 65px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #e7c79890
    );
}

.ornament span:last-child {
  transform: rotate(180deg);
}

.message {
  max-width: 490px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 4vw, 21px);
  line-height: 1.85;
  text-wrap: pretty;
}

.handwritten {
  margin: 26px auto;

  color: #f0d0af;

  font-family: "Dancing Script", cursive;
  font-size: clamp(27px, 6vw, 37px);

  line-height: 1.5;
}

body.hindi-mode .handwritten {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.8;
}

.wedding-date {
  margin-top: 27px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.hindi-mode .wedding-date {
  letter-spacing: 0;
}


/* SCRATCH CARD */

.scratch-section {
  width: min(100%, 560px);
  margin: 38px auto 25px;
}

.scratch-eyebrow {
  margin: 0 0 8px;

  color: #cda67c;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

body.hindi-mode .scratch-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.scratch-heading {
  margin: 0 auto 18px;

  color: #f1d3ac;

  font-family: "Merienda", cursive;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 500;

  line-height: 1.6;
}

body.hindi-mode .scratch-heading {
  font-family: "Noto Sans Devanagari", sans-serif;
}

.scratch-card {
  position: relative;

  width: 100%;
  height: 150px;

  overflow: hidden;

  border: 1px solid #f1d8ab80;
  border-radius: 24px;

  background:
    radial-gradient(
      circle at 50% 50%,
      #673e56,
      #2a162c 72%
    );

  box-shadow:
    0 18px 42px #0005,
    0 0 0 4px #e7c7980a;

  isolation: isolate;
}

.scratch-card::before {
  content: "";

  position: absolute;
  inset: 7px;

  border: 1px dashed #e7c79842;
  border-radius: 18px;

  pointer-events: none;
}

.scratch-reveal {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 18px;
}

.scratch-heart {
  font-size: 23px;
  animation: heart-beat 2s ease-in-out infinite;
}

.scratch-date {
  color: #ffe7bd;

  font-family: "Merienda", cursive;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 700;

  white-space: nowrap;
}

body.hindi-mode .scratch-date {
  font-family: "Noto Sans Devanagari", sans-serif;
}

.scratch-reveal-small {
  color: #dcc6d0;
  font-size: 11px;
  font-weight: 700;
}

#scratch-canvas {
  position: absolute;
  inset: 0;

  z-index: 5;

  display: block;

  width: 100%;
  height: 100%;

  cursor: grab;

  touch-action: none;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

#scratch-canvas:active {
  cursor: grabbing;
}

.scratch-card.revealed #scratch-canvas {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.scratch-card.revealed {
  animation: scratch-revealed-glow 1.4s ease both;
}

.scratch-card.revealed .scratch-date {
  animation: date-reveal-pop 0.7s ease both;
}

.scratch-help {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}


/* COUNTDOWN */

.wedding-countdown {
  width: min(100%, 550px);

  margin: 35px auto 12px;
  padding: 24px 15px;

  border: 1px solid #e7c7983a;
  border-radius: 23px;

  background:
    linear-gradient(
      145deg,
      #ffffff0c,
      #ffffff03
    );

  box-shadow:
    0 18px 45px #0003,
    inset 0 1px 0 #ffffff0c;

  backdrop-filter: blur(8px);
}

.countdown-heading {
  margin: 0 0 22px;

  color: var(--muted);

  font-family: "Merienda", cursive;
  font-size: 13px;

  line-height: 1.8;
}

body.hindi-mode .countdown-heading {
  font-family: "Noto Sans Devanagari", sans-serif;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-box {
  position: relative;

  min-width: 0;

  padding: 16px 4px 13px;

  border: 1px solid #e7c79830;
  border-radius: 15px;

  background: #160e1a70;
}

.countdown-box::before {
  content: "";

  position: absolute;

  top: 0;
  left: 20%;
  right: 20%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}

.countdown-box strong {
  display: block;

  color: #fff2dc;

  font-family: "Merienda", cursive;
  font-size: clamp(19px, 5.6vw, 29px);

  font-variant-numeric: tabular-nums;
}

.countdown-box span {
  display: block;

  margin-top: 7px;

  color: var(--gold);

  font-size: clamp(8px, 2vw, 10px);
  font-weight: 800;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

body.hindi-mode .countdown-box span {
  letter-spacing: 0;
  text-transform: none;
}

.countdown-bottom {
  margin: 18px 0 0;

  color: var(--gold);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.12em;
}


/* NEXT LINK */

.next-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  margin-top: 25px;
  padding: 12px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.down-arrow {
  color: var(--gold);
  font-size: 26px;
  animation: arrow-bounce 2.4s ease-in-out infinite;
}


/* EVENTS */

.events {
  display: grid;
  gap: 35px;
  margin: 42px auto;
}

.event {
  padding: 15px 10px;

  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.event.revealed {
  opacity: 1;
  transform: translateY(0);
}

.event-icon {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 26px;
  animation: sway 5s ease-in-out infinite;
}

.event h3 {
  min-height: 1.5em;

  margin: 0 0 9px;

  font-family: "Merienda", cursive;
  font-size: clamp(22px, 5.4vw, 31px);
  font-weight: 500;

  line-height: 1.5;
}

body.hindi-mode .event h3 {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
}

.event-date {
  min-height: 1.7em;

  margin: 0;

  color: var(--muted);

  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 700;

  line-height: 1.7;
}

.event-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 33px;

  margin-top: 14px;
  padding: 7px 15px;

  border: 1px solid #e7c79835;
  border-radius: 30px;

  background: #e7c79812;

  color: #f0d2aa;

  font-size: 11px;
  font-weight: 800;
}


/* VENUE */

.venue {
  margin: 30px auto;
}

.venue-name {
  min-height: 1.6em;
  margin: 13px 0;
  font-size: clamp(20px, 4.7vw, 26px);
  line-height: 1.6;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 47px;

  margin-top: 13px;
  padding: 12px 18px;

  border: 1px solid #e7c79865;
  border-radius: 30px;

  background: #e7c79812;

  color: var(--gold);

  font-size: 13px;
  font-weight: 800;

  text-decoration: none;
}

.map-button:hover {
  background: #e7c79825;
}

.contact-heading {
  margin-top: 27px;
}

.phone-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 9px;

  color: var(--muted);
}

.phone-links a {
  padding: 10px 3px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}


/* FINAL BLESSING */

.final-blessing {
  position: relative;

  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;

  isolation: isolate;
}

.final-blessing::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background:
    radial-gradient(
      circle at 50% 40%,
      #e7ad9430,
      transparent 55%
    );
}

.blessing-content {
  padding-block: 50px;
}

.blessing-heart {
  display: block;
  margin-bottom: 22px;
  font-size: 40px;
  animation: heart-beat 2.3s ease-in-out infinite;
}

.blessing-title {
  margin: 23px 0;

  color: var(--gold);

  font-family: "Dancing Script", cursive;
  font-size: clamp(47px, 11vw, 80px);
  font-weight: 700;

  line-height: 1.3;

  text-wrap: balance;
}

body.hindi-mode .blessing-title {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: clamp(36px, 8.5vw, 63px);
  font-weight: 600;
  line-height: 1.5;
}

.blessing-message {
  max-width: 480px;

  margin: 0 auto 30px;

  color: var(--muted);

  font-size: clamp(17px, 4vw, 21px);

  line-height: 1.9;
}

.blessing-couple {
  display: grid;
  gap: 9px;

  margin: 32px auto;

  color: #fff0e4;

  font-family: "Merienda", cursive;
  font-size: clamp(24px, 6vw, 38px);

  line-height: 1.6;
}

body.hindi-mode .blessing-couple {
  font-family: "Noto Sans Devanagari", sans-serif;
}

.blessing-and {
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: 38px;
}

.blessing-love {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}


/* SIGNATURE */

.signature-ending {
  min-height: 115px;

  margin-top: 50px;
  padding-top: 35px;

  border-top: 1px solid #e7c79830;
}

.signature-text {
  max-width: 580px;
  margin: auto;

  color: #f3d2ae;

  font-family: "Dancing Script", cursive;
  font-size: clamp(27px, 6vw, 41px);

  line-height: 1.7;
}

body.hindi-mode .signature-text {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: clamp(20px, 5vw, 30px);
}


/* FOOTER */

.footer {
  position: relative;
  z-index: 5;

  padding: 20px 70px 140px;

  text-align: center;
}

.footer p {
  color: var(--gold);
  font-family: "Dancing Script", cursive;
  font-size: 27px;
}

body.hindi-mode .footer p {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 19px;
}

#replay-button {
  min-height: 44px;

  padding: 12px 16px;

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 13px;

  cursor: pointer;
}


/* CONTROLS */

.controls {
  position: fixed;

  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));

  z-index: 60;

  display: flex;
  gap: 10px;
}

.round-button {
  display: grid;
  place-items: center;

  width: 49px;
  height: 49px;

  padding: 0;

  border: 1px solid #e7c79850;
  border-radius: 50%;

  background: #29182ff2;

  color: var(--gold);

  box-shadow: 0 8px 24px #0005;

  backdrop-filter: blur(8px);

  text-decoration: none;

  cursor: pointer;
}

.round-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.music-symbol {
  font-size: 24px;
}

.playing .music-symbol {
  animation: music-dance 1.4s ease-in-out infinite;
}

.whatsapp {
  color: #d9f5dd;
}

.whatsapp svg {
  width: 24px;
  height: 24px;
}


/* EFFECTS */

#falling-layer,
#effects {
  position: fixed;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

#falling-layer {
  z-index: 6;
}

#effects {
  z-index: 45;
}

.falling-item {
  position: absolute;

  top: -50px;
  left: var(--left);

  opacity: 0;

  font-size: var(--size);

  animation:
    falling
    var(--duration)
    linear
    var(--delay)
    infinite;
}

.touch-heart {
  position: absolute;
  font-size: 24px;
  animation: heart-pop 1.4s ease-out forwards;
}


/* FIREWORKS */

.firework-shell {
  position: absolute;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--shell-color);

  box-shadow:
    0 0 7px var(--shell-color),
    0 0 12px var(--shell-color);

  animation:
    firework-rise
    var(--shell-duration, 0.7s)
    ease-out forwards;
}

.spark {
  position: absolute;

  width: var(--spark-size);
  height: var(--spark-size);

  border-radius: 50%;

  background: var(--color);

  box-shadow: 0 0 7px var(--color);

  animation:
    spark-burst
    var(--duration)
    ease-out forwards;
}

.diwali-flash {
  position: absolute;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: #fff7df;

  box-shadow:
    0 0 12px #fff,
    0 0 24px #ffd166;

  animation: flash-pop 0.4s ease-out forwards;
}


/* BLESSING PETALS */

.blessing-petals {
  position: absolute;
  inset: 0;

  z-index: 2;

  overflow: hidden;

  pointer-events: none;
}

.blessing-petal {
  position: absolute;

  top: -45px;

  font-size: var(--size);

  animation:
    blessing-petal-fall
    var(--duration)
    linear forwards;
}


/* TYPING */

.typing::after {
  content: "";

  display: inline-block;

  width: 2px;
  height: 0.85em;

  margin-left: 4px;

  background: var(--gold);

  vertical-align: -0.04em;

  animation: cursor-blink 0.7s step-end infinite;
}


/* ANIMATIONS */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-7deg);
  }

  50% {
    transform: rotate(7deg);
  }
}

@keyframes heart-beat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes music-dance {
  0%,
  100% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes falling {
  0% {
    opacity: 0;

    transform:
      translateY(-30px)
      rotate(0);
  }

  10%,
  85% {
    opacity: 0.35;
  }

  100% {
    opacity: 0;

    transform:
      translate(
        var(--drift),
        calc(100vh + 100px)
      )
      rotate(210deg);
  }
}

@keyframes heart-pop {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.8);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, -65px) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -115px) scale(0.8);
  }
}

@keyframes firework-rise {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(var(--rise));
  }
}

@keyframes spark-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  70% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;

    transform:
      translate(
        var(--dx),
        var(--dy)
      )
      scale(0.2);
  }
}

@keyframes flash-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.25);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

@keyframes blessing-petal-fall {
  0% {
    opacity: 0;

    transform:
      translateY(-30px)
      translateX(0)
      rotate(0);
  }

  10% {
    opacity: 0.75;
  }

  85% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;

    transform:
      translateY(110vh)
      translateX(var(--drift))
      rotate(300deg);
  }
}

@keyframes scratch-revealed-glow {
  0% {
    box-shadow:
      0 18px 42px #0005,
      0 0 0 4px #e7c7980a;
  }

  45% {
    box-shadow:
      0 20px 50px #0005,
      0 0 32px #f1c7852d;
  }

  100% {
    box-shadow:
      0 18px 42px #0005,
      0 0 15px #f1c78515;
  }
}

@keyframes date-reveal-pop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* DESKTOP */

@media (min-width: 760px) {
  .page {
    padding: 90px 80px;
  }

  .events {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 45px 35px;
  }

  .couple-image {
    right: 7%;
  }
}


/* MOBILE */

@media (max-width: 560px) {
  .scratch-card {
    height: 140px;
  }

  .scratch-date {
    font-size: clamp(18px, 5vw, 23px);
  }
}


/* SMALL MOBILE */

@media (max-width: 360px) {
  .page {
    padding-inline: 18px;
  }

  .name-line {
    font-size: 26px;
  }

  .script-heading {
    font-size: 40px;
  }

  .language-card {
    padding: 27px 18px;
  }

  .countdown-box {
    padding-inline: 2px;
  }

  .scratch-card {
    height: 132px;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #falling-layer,
  #effects,
  .blessing-petals {
    display: none;
  }

  .event {
    opacity: 1;
    transform: none;
  }
}