:root {
  --bg: #fff6ec;
  --card: #fffaf5;
  --gold: #d39a3e;
  --gold-soft: #f3ddb2;
  --text: #4a3527;
  --muted: #7c6550;
  --blue: #bfe0fb;
  --blue-strong: #8fc1f0;
  --pink: #f7d0de;
  --pink-strong: #eca7bf;
  --green: #cde9b6;
  --green-strong: #9fd07b;
  --orange: #f5c28e;
  --cream: #fffefb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(191,224,251,0.34), transparent 18%),
    radial-gradient(circle at 90% 9%, rgba(247,208,222,0.34), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(211,154,62,0.12), transparent 20%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text);
}
.card {
  width: min(760px, 100%);
  background: linear-gradient(180deg, rgba(255,250,245,0.99), rgba(255,245,234,0.99));
  border: 2px solid rgba(211,154,62,0.28);
  border-radius: 36px;
  padding: 24px 20px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 66px rgba(93, 64, 26, 0.12);
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(211,154,62,0.18);
  border-radius: 28px;
  pointer-events: none;
}
.topline {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.bunting {
  text-align: center;
  color: var(--pink-strong);
  letter-spacing: 0.24em;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.title {
  text-align: center;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}
.subtitle {
  text-align: center;
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 1rem;
}
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 370px;
  margin-bottom: 12px;
}
.photo-ring {
  width: min(340px, 75vw);
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffefb, #f5ead8);
  border: 3px solid rgba(211,154,62,0.44);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
  position: relative;
  z-index: 3;
}
.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.badge-one {
  position: absolute;
  top: 0;
  right: calc(50% - 170px);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9be, var(--gold));
  color: white;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  border: 4px solid rgba(255,255,255,0.82);
  box-shadow: 0 12px 26px rgba(211,154,62,0.22);
  z-index: 4;
}
.balloon {
  position: absolute;
  width: 62px;
  height: 82px;
  border-radius: 50% 50% 46% 54% / 44% 44% 56% 56%;
  z-index: 1;
}
.balloon::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 28px;
  bottom: -27px;
  left: 50%;
  background: rgba(124,101,80,0.38);
}
.balloon.a { left: calc(50% - 228px); top: 64px; background: linear-gradient(180deg, var(--blue-strong), var(--blue)); }
.balloon.b { right: calc(50% - 228px); top: 72px; background: linear-gradient(180deg, var(--pink-strong), var(--pink)); }
.balloon.c { left: calc(50% - 186px); top: 156px; width: 46px; height: 60px; background: linear-gradient(180deg, var(--green-strong), var(--green)); }
.cloud {
  position: absolute;
  width: 110px;
  height: 54px;
  background: rgba(255,255,255,0.78);
  border-radius: 999px;
  z-index: 0;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.78);
  border-radius: 50%;
}
.cloud::before { width: 46px; height: 46px; left: 12px; top: -18px; }
.cloud::after { width: 54px; height: 54px; left: 40px; top: -22px; }
.cloud.left { top: 24px; left: 40px; transform: scale(0.75); }
.cloud.right { top: 42px; right: 44px; transform: scale(0.65); }
.cake, .gift {
  position: absolute;
  z-index: 2;
  font-size: 3rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.08));
}
.cake { left: 72px; bottom: 52px; }
.gift { right: 66px; bottom: 50px; }
.sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold-soft);
  z-index: 2;
}
.sparkle.s1 { left: 132px; top: 112px; }
.sparkle.s2 { right: 138px; top: 128px; }
.sparkle.s3 { left: 160px; bottom: 118px; }
.sparkle.s4 { right: 154px; bottom: 120px; }
.details-box {
  margin: 0 auto;
  max-width: 520px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(211,154,62,0.16);
  border-radius: 22px;
  padding: 18px 18px 16px;
  text-align: center;
}
.name {
  font-family: Georgia, serif;
  color: #9d5b61;
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin: 0;
}
.turns-one {
  margin: 4px 0 12px;
  font-size: 0.98rem;
  color: var(--muted);
}
.date-time {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 600;
}
.venue {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}
.footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}
.stars {
  text-align: center;
  margin-top: 12px;
  color: var(--gold-soft);
  font-size: 1.18rem;
  letter-spacing: 0.18em;
}
@media (max-width: 700px) {
  .cake { left: 24px; bottom: 44px; }
  .gift { right: 24px; bottom: 44px; }
  .balloon.a { left: 8px; top: 100px; }
  .balloon.b { right: 8px; top: 108px; }
  .balloon.c, .sparkle.s3, .sparkle.s4 { display: none; }
  .badge-one { right: calc(50% - 140px); width: 74px; height: 74px; font-size: 2rem; }
}
