/* Birthday card for Midel Shrestha - plain CSS (no build step) */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --border: oklch(0.929 0.013 255.508);
}
body { background-color: var(--background); color: var(--foreground); }
img, svg { display: block; }
button { font: inherit; cursor: pointer; padding: 0; }
.party-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
}
.party-button svg { width: 18px; height: 18px; }
.birthday-charm svg, .card-sparkle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.party-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root { --font-sans: "DM Sans", sans-serif; --font-display: "Cormorant Garamond", Georgia, serif; }
:root {
  --background: oklch(0.94 0.035 12);
  --foreground: oklch(0.36 0.12 12);
  --card: oklch(0.992 0.005 15);
  --card-foreground: oklch(0.36 0.12 12);
  --primary: oklch(0.46 0.16 12);
  --petal: oklch(0.7 0.13 13);
  --sage: oklch(0.58 0.08 151);
  --sunshine: oklch(0.82 0.13 85);
  --border: oklch(0.87 0.035 12);
  --card-shadow: 0 20px 70px oklch(0.38 0.09 12 / 0.12);
  --gold: oklch(0.7 0.1 83);
  --gold-light: oklch(0.88 0.07 83);
  --balloon-highlight: oklch(0.99 0.005 15 / 0.7);
  --balloon-shadow: oklch(0.36 0.12 12 / 0.15);
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-sans);
}
.celebration-page {
  position: relative;
  isolation: isolate;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
}
.celebration-card {
  position: relative;
  width: min(520px, 100%);
  height: min(740px, calc(100svh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 42px 52px;
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  animation: card-arrive 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.celebration-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  pointer-events: none;
}
.celebration-card h1 {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  font-family: "Caveat", cursive;
  font-size: 76px;
  font-weight: 500;
  line-height: 0.93;
  color: var(--primary);
  text-align: center;
  margin: 7px 0 29px;
  transform: rotate(-5deg);
  letter-spacing: 0;
}
.celebration-card h1 span {
  display: block;
}
.celebration-card h1 span:first-child {
  font-size: 56px;
  margin-bottom: 7px;
}
.celebration-card h1 span:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
}
.card-portrait {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px 3px 3px;
  border: 4px solid var(--card);
  outline: 1px solid var(--gold-light);
  box-shadow: 0 6px 20px var(--balloon-shadow);
}
.card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.card-flower {
  position: absolute;
  top: 49px;
  left: 37px;
  width: 40px;
  height: 40px;
  color: var(--petal);
  transform: rotate(-16deg);
  animation: flower-turn 18s linear infinite;
}
.card-sparkle {
  position: absolute;
  top: 162px;
  right: 32px;
  width: 36px;
  height: 36px;
  color: var(--sage);
  transform: rotate(12deg);
  animation: sparkle-pulse 2.5s ease-in-out infinite;
}
.celebration-confetti {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.celebration-confetti i {
  position: absolute;
  left: var(--x);
  top: -25px;
  width: 7px;
  height: 15px;
  background: var(--petal);
  animation: confetti-rain var(--duration) var(--delay) linear infinite;
}
.celebration-confetti i:nth-child(3n) {
  background: var(--sage);
  width: 11px;
  height: 6px;
}
.celebration-confetti i:nth-child(3n + 1) {
  background: var(--sunshine);
}
.celebration-confetti i:nth-child(4n) {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}
@keyframes confetti-dance {
  from {
    transform: translateY(-12px) rotate(var(--rotation));
  }
  to {
    transform: translateY(12px) rotate(calc(var(--rotation) + 45deg));
  }
}
.card-bottom-decoration {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}
.card-bottom-decoration span {
  width: 44px;
  height: 1px;
  background: var(--gold-light);
}
.card-bottom-decoration svg {
  width: 20px;
  height: 20px;
}
.party-button {
  position: absolute;
  bottom: 14px;
  right: 18px;
  color: var(--primary);
  border-radius: 50%;
  background: var(--background);
  transition:
    transform 0.2s,
    background 0.2s;
}
.party-button:hover {
  transform: rotate(-12deg) scale(1.12);
  background: var(--border);
}
.party-garland {
  position: absolute;
  top: -20px;
  left: -5%;
  width: 110%;
  height: 94px;
  border-bottom: 1px solid var(--gold);
  border-radius: 0 0 50% 50%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-bottom: 0;
  z-index: -1;
  transform-origin: top center;
  animation: garland-sway 6s ease-in-out infinite alternate;
}
.party-garland i {
  width: 32px;
  height: 43px;
  background: var(--petal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(39px) rotate(-8deg);
}
.party-garland i:nth-child(3n) {
  background: var(--sage);
}
.party-garland i:nth-child(3n + 1) {
  background: var(--sunshine);
}
.party-garland i:nth-child(2n) {
  transform: translateY(38px) rotate(10deg);
}
.party-balloons {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.balloon {
  position: absolute;
  width: 110px;
  height: 140px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(ellipse at 30% 23%, var(--balloon-highlight), transparent 38%),
    linear-gradient(135deg, var(--petal), var(--primary));
  box-shadow:
    inset -12px -9px 20px var(--balloon-shadow),
    0 12px 25px var(--balloon-shadow);
  animation: balloon-float 5s ease-in-out infinite alternate;
}
.balloon::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: calc(50% - 6px);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--petal);
}
.balloon span {
  position: absolute;
  width: 26px;
  height: 180px;
  top: calc(100% + 7px);
  left: 50%;
  border-left: 1px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-7deg);
}
.balloon-0 {
  left: 8%;
  top: 22%;
  transform: rotate(-12deg);
}
.balloon-1 {
  left: 3%;
  top: 47%;
  width: 88px;
  height: 115px;
  animation-delay: -2s;
  background:
    radial-gradient(ellipse at 30% 23%, var(--balloon-highlight), transparent 38%),
    linear-gradient(135deg, var(--gold-light), var(--sunshine));
}
.balloon-2 {
  left: 16%;
  top: 65%;
  width: 75px;
  height: 98px;
  animation-delay: -3s;
  background:
    radial-gradient(ellipse at 30% 23%, var(--balloon-highlight), transparent 38%), var(--sage);
}
.balloon-3 {
  right: 8%;
  top: 30%;
  animation-delay: -1s;
  background:
    radial-gradient(ellipse at 30% 23%, var(--balloon-highlight), transparent 38%), var(--sage);
}
.balloon-4 {
  right: 3%;
  top: 58%;
  width: 85px;
  height: 110px;
  animation-delay: -4s;
}
.balloon-5 {
  right: 17%;
  top: 16%;
  width: 75px;
  height: 98px;
  animation-delay: -2.5s;
  background:
    radial-gradient(ellipse at 30% 23%, var(--balloon-highlight), transparent 38%), var(--sunshine);
}
@keyframes confetti-rain {
  from {
    transform: translate3d(0, -5vh, 0) rotate(var(--rotation));
  }
  to {
    transform: translate3d(60px, 110vh, 0) rotate(calc(var(--rotation) + 540deg));
  }
}
@keyframes balloon-float {
  from {
    translate: 0 -10px;
    rotate: -7deg;
  }
  to {
    translate: 8px 15px;
    rotate: 7deg;
  }
}
@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.45;
    scale: 0.85;
  }
  50% {
    opacity: 1;
    scale: 1.12;
  }
}
@keyframes flower-turn {
  to {
    transform: rotate(344deg);
  }
}
@keyframes garland-sway {
  from {
    rotate: -0.7deg;
  }
  to {
    rotate: 0.7deg;
  }
}
@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(-2deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}
@media (max-width: 600px) {
  .celebration-page {
    padding: 20px;
  }
  .celebration-card {
    height: min(680px, calc(100svh - 40px));
    padding: 35px 28px 49px;
  }
  .celebration-card h1 {
    font-size: 65px;
    margin-bottom: 25px;
  }
  .celebration-card h1 span:first-child {
    font-size: 48px;
  }
  .party-garland {
    height: 55px;
  }
  .party-garland i {
    width: 19px;
    height: 25px;
    transform: translateY(23px);
  }
  .party-garland i:nth-child(2n) {
    transform: translateY(22px) rotate(10deg);
  }
  .balloon {
    width: 64px;
    height: 82px;
  }
  .balloon-0,
  .balloon-1,
  .balloon-2 {
    left: -33px;
  }
  .balloon-3,
  .balloon-4,
  .balloon-5 {
    right: -33px;
  }
  .card-flower {
    left: 23px;
    top: 40px;
    width: 29px;
    height: 29px;
  }
  .card-sparkle {
    right: 21px;
    top: 142px;
    width: 26px;
    height: 26px;
  }
}
@media (max-height: 600px) {
  .celebration-card {
    padding-top: 22px;
    padding-bottom: 46px;
  }
  .celebration-card h1 {
    font-size: 45px;
    margin: 0 0 14px;
  }
  .celebration-card h1 span:first-child {
    font-size: 30px;
  }
  .card-flower {
    top: 30px;
    width: 24px;
    height: 24px;
  }
  .card-sparkle {
    top: 80px;
    width: 22px;
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .celebration-page *,
  .celebration-page *::before {
    animation: none;
  }
  .celebration-confetti i {
    top: var(--y);
    transform: rotate(var(--rotation));
  }
}

/* A beveled gallery frame with a photographic mat. */
:root {
  --frame-edge: oklch(0.57 0.08 83);
  --frame-shadow:
    0 22px 55px oklch(0.36 0.12 12 / 0.22), inset 0 0 0 2px var(--gold-light),
    inset 0 0 0 5px var(--gold), inset 0 0 0 7px var(--gold-light);
}
.photo-frame {
  width: min(600px, 100%, calc((100svh - 90px) * 0.8));
  height: auto;
  aspect-ratio: 4 / 5;
  padding: 30px 30px 20px;
  border: 12px ridge var(--gold-light);
  border-radius: 2px;
  box-shadow: var(--frame-shadow);
}
.photo-frame::before {
  inset: 12px;
  border-color: var(--border);
  border-radius: 0;
}
.photo-frame .card-portrait {
  order: 0;
  border-radius: 0;
  border: 0;
  outline: 1px solid var(--border);
  box-shadow:
    inset 0 0 8px var(--balloon-shadow),
    0 2px 6px var(--balloon-shadow);
}
.photo-frame .card-portrait img {
  object-position: center;
}
.photo-frame h1 {
  order: 1;
  font-size: 56px;
  line-height: 1;
  margin: 21px 0 4px;
  transform: rotate(-3deg);
}
.photo-frame h1 span {
  display: inline;
}
.photo-frame h1 span:first-child {
  font-size: 44px;
  margin: 0 10px 0 0;
}
.photo-frame .card-flower {
  top: 9px;
  left: 9px;
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.photo-frame .card-sparkle {
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.photo-frame .party-button {
  bottom: -24px;
  right: -24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-light);
  box-shadow: var(--card-shadow);
  background: var(--card);
}
@media (max-width: 600px) {
  .photo-frame {
    width: min(100%, calc((100svh - 100px) * 0.8));
    padding: 20px 20px 16px;
    border-width: 9px;
  }
  .photo-frame h1 {
    font-size: 39px;
    margin-top: 18px;
  }
  .photo-frame h1 span:first-child {
    font-size: 33px;
    margin-right: 7px;
  }
  .photo-frame .card-flower,
  .photo-frame .card-sparkle {
    width: 16px;
    height: 16px;
    top: 6px;
  }
  .photo-frame .card-flower {
    left: 5px;
  }
  .photo-frame .card-sparkle {
    right: 5px;
  }
  .photo-frame .party-button {
    width: 34px;
    height: 34px;
    bottom: -19px;
    right: -17px;
  }
}
@media (max-height: 600px) {
  .photo-frame {
    padding: 15px 15px 10px;
    border-width: 8px;
  }
  .photo-frame h1 {
    font-size: 29px;
    margin-top: 12px;
  }
  .photo-frame h1 span:first-child {
    font-size: 24px;
    margin-right: 5px;
  }
}

/* Dimensional botanical decorations and a clean, balanced greeting. */
:root {
  --flower-pink: oklch(0.79 0.1 13);
  --flower-pink-edge: oklch(0.62 0.15 13);
  --flower-coral: oklch(0.7 0.15 23);
  --flower-ivory: oklch(0.98 0.02 85);
  --leaf-light: oklch(0.73 0.08 145);
  --floral-shadow: 0 3px 5px oklch(0.38 0.09 12 / 0.15);
}
.photo-frame {
  width: min(600px, calc(100% - 36px), calc((100svh - 140px) * 0.8));
}
.photo-frame h1 {
  font-family: var(--font-display);
  font-size: 49px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
  transform: none;
  margin: 23px 0 7px;
  color: var(--primary);
}
.photo-frame .card-sparkle {
  display: none;
}
.floral-corner {
  position: absolute;
  width: 165px;
  height: 165px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(var(--floral-shadow));
}
.floral-top {
  top: -58px;
  left: -57px;
  transform: rotate(-14deg);
}
.floral-bottom {
  bottom: -90px;
  right: -75px;
  transform: rotate(170deg);
}
.frame-bloom {
  position: absolute;
  width: 66px;
  height: 66px;
}
.frame-bloom > i {
  position: absolute;
  width: 28px;
  height: 38px;
  left: 19px;
  top: -1px;
  border-radius: 55% 55% 45% 45%;
  transform-origin: 50% 34px;
  transform: rotate(var(--petal-turn));
  background: linear-gradient(0deg, var(--flower-pink-edge), var(--flower-pink));
  border: 1px solid color-mix(in oklch, var(--flower-pink-edge) 20%, transparent);
}
.frame-bloom > span {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 20px;
  left: 20px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    var(--flower-pink) 0 3px,
    var(--flower-pink-edge) 4px 5px
  );
  box-shadow: var(--floral-shadow);
}
.frame-bloom.rose {
  top: 50px;
  left: 25px;
  transform: rotate(22deg);
  z-index: 2;
}
.frame-bloom.peony {
  top: 70px;
  left: 80px;
  transform: scale(0.8) rotate(30deg);
  z-index: 1;
}
.frame-bloom.peony > i {
  background: linear-gradient(0deg, var(--flower-pink-edge), var(--flower-coral));
}
.frame-bloom.daisy {
  top: 8px;
  left: 72px;
  transform: scale(0.7);
}
.frame-bloom.daisy > i {
  background: var(--flower-ivory);
  width: 19px;
  left: 23px;
  border-color: var(--gold-light);
}
.frame-bloom.daisy > span {
  background: var(--sunshine);
  width: 20px;
  height: 20px;
  top: 23px;
  left: 23px;
}
.floral-leaves {
  position: absolute;
  inset: 0;
}
.floral-leaves i {
  position: absolute;
  width: 28px;
  height: 49px;
  background: linear-gradient(90deg, var(--sage) 48%, var(--leaf-light) 49%);
  border-radius: 0 90% 0 90%;
}
.floral-leaves i:nth-child(1) {
  left: 8px;
  top: 62px;
  transform: rotate(-60deg);
}
.floral-leaves i:nth-child(2) {
  left: 23px;
  top: 13px;
  transform: rotate(-25deg);
}
.floral-leaves i:nth-child(3) {
  left: 51px;
  top: -4px;
  transform: rotate(20deg);
}
.floral-leaves i:nth-child(4) {
  left: 109px;
  top: 16px;
  transform: rotate(40deg);
}
.floral-leaves i:nth-child(5) {
  left: 132px;
  top: 64px;
  transform: rotate(75deg);
}
.floral-leaves i:nth-child(6) {
  left: 106px;
  top: 108px;
  transform: rotate(115deg);
}
.floral-leaves i:nth-child(7) {
  left: 60px;
  top: 111px;
  transform: rotate(165deg);
}
.floral-leaves i:nth-child(8) {
  left: 2px;
  top: 107px;
  transform: rotate(210deg);
}
.flower-ribbon {
  position: absolute;
  left: 43px;
  top: 105px;
  width: 15px;
  height: 59px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  transform: rotate(30deg);
}
.birthday-charm {
  position: absolute;
  z-index: 2;
  color: var(--primary);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}
.birthday-charm svg {
  width: 27px;
  height: 27px;
}
.birthday-gift {
  bottom: 45px;
  left: -30px;
  transform: rotate(-12deg);
}
.birthday-cake {
  top: 55px;
  right: -30px;
  transform: rotate(12deg);
}
.photo-frame .party-button {
  bottom: -23px;
  right: 70px;
}
@media (max-width: 600px) {
  .photo-frame {
    padding: 18px 18px 15px;
  }
  .photo-frame h1 {
    font-size: 32px;
    margin: 20px 0 4px;
  }
  .floral-top {
    transform: rotate(-14deg) scale(0.72);
    transform-origin: center;
    top: -66px;
    left: -65px;
  }
  .floral-bottom {
    transform: rotate(170deg) scale(0.72);
    bottom: -91px;
    right: -80px;
  }
  .birthday-charm {
    width: 36px;
    height: 36px;
  }
  .birthday-charm svg {
    width: 21px;
    height: 21px;
  }
  .birthday-gift {
    left: -24px;
    bottom: 42px;
  }
  .birthday-cake {
    right: -24px;
    top: 42px;
  }
  .photo-frame .party-button {
    right: 48px;
    bottom: -20px;
  }
}
@media (max-height: 600px) {
  .photo-frame h1 {
    font-size: 23px;
    margin: 12px 0 3px;
  }
  .floral-top {
    transform: rotate(-14deg) scale(0.6);
  }
  .floral-bottom {
    transform: rotate(170deg) scale(0.6);
  }
}
