:root {
  color-scheme: light;
  --ink: #241e23;
  --muted: #71636b;
  --rose: #df6f9b;
  --rose-dark: #a74b73;
  --blue: #5aa7d9;
  --blue-dark: #277aaa;
  --line: rgba(36, 30, 35, 0.14);
  --paper: #fff8f3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  place-items: center;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(223, 111, 155, 0.18), rgba(90, 167, 217, 0.18)),
    #fff8f3;
}

.balloon-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at 25% 22%, rgba(223, 111, 155, 0.2), transparent 18rem),
    radial-gradient(circle at 78% 30%, rgba(90, 167, 217, 0.22), transparent 19rem),
    #fff8f3;
  cursor: pointer;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.balloon-screen.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0.8s;
}

.balloon-stage {
  position: relative;
  display: grid;
  width: min(88vw, 24rem);
  height: min(70vh, 34rem);
  place-items: center;
  filter: drop-shadow(0 24px 45px rgba(85, 57, 70, 0.18));
}

.balloon {
  position: absolute;
  width: 5.8rem;
  height: 7rem;
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset -12px -16px 28px rgba(76, 54, 69, 0.1), inset 10px 10px 20px rgba(255, 255, 255, 0.55);
  transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.65s ease;
}

.balloon::after {
  position: absolute;
  left: 50%;
  bottom: -4.4rem;
  width: 1px;
  height: 4.5rem;
  background: rgba(107, 85, 96, 0.28);
  content: "";
}

.balloon--pink {
  background: #ffc7dc;
}

.balloon--blue {
  background: #bfe4fb;
}

.balloon--cream {
  background: #fff0d8;
}

.balloon--one {
  top: 4.5rem;
  left: 3.2rem;
  transform: rotate(-10deg);
}

.balloon--two {
  top: 3.2rem;
  right: 3.1rem;
  transform: rotate(8deg);
}

.balloon--three {
  top: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
}

.balloon--four {
  top: 10.8rem;
  left: 5.6rem;
  width: 4.9rem;
  height: 5.9rem;
}

.balloon--five {
  top: 10.9rem;
  right: 5.7rem;
  width: 4.9rem;
  height: 5.9rem;
}

.balloon-screen.is-open .balloon--one {
  transform: translate(-8rem, -11rem) rotate(-24deg);
  opacity: 0;
}

.balloon-screen.is-open .balloon--two {
  transform: translate(8rem, -11rem) rotate(22deg);
  opacity: 0;
}

.balloon-screen.is-open .balloon--three {
  transform: translate(-50%, -13rem) scale(0.8);
  opacity: 0;
}

.balloon-screen.is-open .balloon--four {
  transform: translate(-7rem, 3rem) rotate(-15deg);
  opacity: 0;
}

.balloon-screen.is-open .balloon--five {
  transform: translate(7rem, 3rem) rotate(15deg);
  opacity: 0;
}

.balloon-text {
  position: absolute;
  bottom: 5rem;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #6a5863;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(83, 56, 68, 0.12);
  transition: transform 0.5s ease, opacity 0.45s ease;
}

.balloon-screen.is-open .balloon-text,
.balloon-screen.is-open .baby-figure {
  opacity: 0;
  transform: translateY(1rem) scale(0.88);
}

.baby-figure {
  position: relative;
  z-index: 2;
  display: block;
  width: 5.4rem;
  height: 6.1rem;
  margin-top: 5rem;
  transition: transform 0.5s ease, opacity 0.45s ease;
}

.baby-figure__curl {
  position: absolute;
  top: 0.05rem;
  left: 2.45rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 3px solid #bd8d6d;
  border-left-color: transparent;
  border-radius: 50%;
}

.baby-figure__face {
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 3.45rem;
  height: 3.45rem;
  border: 3px solid rgba(151, 103, 116, 0.2);
  border-radius: 50%;
  background: #ffe6d4;
  transform: translateX(-50%);
}

.baby-figure__face span {
  position: absolute;
  top: 1.45rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #513844;
}

.baby-figure__face span:first-child {
  left: 1rem;
}

.baby-figure__face span:last-child {
  right: 1rem;
}

.baby-figure__body {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4.4rem;
  height: 3rem;
  border-radius: 42% 42% 18px 18px;
  background: linear-gradient(90deg, #ffd2e3, #cfeafe);
  transform: translateX(-50%);
}

.invite-card {
  width: min(100%, 390px);
  background: #fff;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.55s ease 0.35s, transform 0.55s ease 0.35s;
}

body.invite-open .invite-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.14) 44%, rgba(255, 255, 255, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 214, 228, 0.08), rgba(217, 239, 255, 0.08));
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 445px;
  padding: 1rem 0.65rem 2.25rem;
  text-align: center;
  overflow: visible;
}

.content {
  position: relative;
  padding: 0.75rem 1rem 1rem;
  text-align: center;
}

.couple {
  position: absolute;
  left: 50%;
  top: 10.15rem;
  width: min(100% - 2rem, 18rem);
  margin: 0;
  background: linear-gradient(90deg, #d85b93 10%, #609fda 90%);
  background-clip: text;
  color: transparent;
  font-family: Parisienne, "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 1.62rem;
  line-height: 0.95;
  transform: translateX(-50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

h1 {
  position: absolute;
  left: 50%;
  bottom: 6.05rem;
  width: min(100%, 22rem);
  margin: 0;
  padding: 0 1.05rem 0 1.65rem;
  background: linear-gradient(90deg, #e25f9a 8%, #8d7be8 48%, #45a9df 92%);
  background-clip: text;
  color: transparent;
  font-family: Parisienne, "Snell Roundhand", "Apple Chancery", cursive;
  font-size: clamp(3.18rem, 13.3vw, 4.45rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  overflow: visible;
  transform: translateX(-50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.35px rgba(150, 92, 158, 0.18);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72)) drop-shadow(0 0 0.35px rgba(73, 45, 76, 0.45));
}

.intro {
  position: absolute;
  left: 50%;
  bottom: 4.32rem;
  width: min(100% - 1.8rem, 20rem);
  max-width: 18rem;
  margin: 0;
  color: #5f4b57;
  font-family: Parisienne, "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 1rem;
  line-height: 1.12;
  padding: 0;
  transform: translateX(-50%);
}

.details {
  display: grid;
  grid-template-columns: 1.1fr 0.65fr 1.35fr;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0.38rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.details span {
  display: flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.35rem;
  border-radius: 6px;
  background: #fff6fb;
  color: #463941;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.guess {
  margin-top: 0.55rem;
  padding: 0.6rem;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(223, 111, 155, 0.13), rgba(90, 167, 217, 0.14));
}

.guess p {
  margin: 0 0 0.5rem;
  color: #5d5058;
  font-weight: 800;
}

.guess__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  padding: 0.32rem;
  border: 1px solid rgba(36, 30, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.guess__button,
.button {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guess__button--girl {
  background: rgba(223, 111, 155, 0.16);
  color: #9e436d;
}

.guess__button--boy {
  background: rgba(90, 167, 217, 0.16);
  color: #2a78a4;
}

.guess__button.is-selected {
  color: #fff;
  box-shadow: 0 8px 18px rgba(70, 48, 58, 0.16);
  transform: translateY(-1px);
}

.guess__button--girl.is-selected {
  background: var(--rose);
}

.guess__button--boy.is-selected {
  background: var(--blue);
}

.guess small {
  display: block;
  min-height: 2.35rem;
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.actions {
  margin-top: 0.55rem;
}

.button {
  text-decoration: none;
}

.button--location {
  border: 0;
  background: linear-gradient(90deg, var(--rose), var(--blue));
  color: #fff;
  box-shadow: 0 10px 20px rgba(92, 70, 88, 0.14);
}

@media (min-width: 720px) {
  body {
    padding: 1.2rem 0;
  }

  .invite-card {
    min-height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(64, 47, 56, 0.18);
  }
}

@media (max-width: 360px) {

  .hero,
  .hero__content {
    min-height: 400px;
  }

  h1 {
    padding-left: 1.7rem;
    padding-right: 1.2rem;
    font-size: 2.95rem;
  }

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