* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: #713b59;
  background: linear-gradient(135deg, #fff0f6, #ffe0ed, #f8e7ff);
  text-align: center;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sparkle {
  position: fixed;
  z-index: -1;
  font-size: 28px;
  opacity: .65;
  animation: float 5s ease-in-out infinite;
}

.sparkle1 { top: 8%; left: 5%; }
.sparkle2 { top: 25%; right: 7%; animation-delay: 1s; }
.sparkle3 { top: 65%; left: 3%; animation-delay: 2s; }
.sparkle4 { top: 80%; right: 8%; animation-delay: 3s; }
.sparkle5 { top: 45%; right: 3%; animation-delay: 1.5s; }

@keyframes float {
  50% { transform: translateY(-18px) rotate(12deg); }
}

.poster {
  width: min(1180px, 96%);
  margin: 30px auto;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 22px;
  align-items: center;
  background: rgba(255,255,255,.55);
  border: 3px solid #f4b5d0;
  border-radius: 30px;
  box-shadow: 0 12px 35px #d58aaa55;
}

.left-side, .right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bestie-label {
  font-size: 25px;
  font-weight: bold;
  color: #c44e83;
}

.hug-sticker {
  background: white;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 5px 18px #c77a9b44;
  transform: rotate(-3deg);
}

.friends-image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

.hug-sticker p, .teddy-sticker p {
  margin-bottom: 0;
  color: #bd4d80;
  font-weight: bold;
}

.qualities {
  background: #fff8fc;
  padding: 15px 25px;
  border-radius: 18px;
  box-shadow: 0 5px 15px #d88eaa33;
}

.qualities span {
  color: #bf4f82;
  font-weight: bold;
}

.qualities p {
  margin: 7px 0;
}

.flower-decoration {
  font-size: 42px;
}

.center-card {
  padding: 25px 18px;
  background: #fffafd;
  border: 2px dashed #e8a0bf;
  border-radius: 25px;
  box-shadow: 0 8px 25px #d98eae33;
}

.top-bow { font-size: 42px; }

.top-heading, .section-label {
  letter-spacing: 2px;
  color: #bd5786;
  font-size: 13px;
  font-weight: bold;
}

.title-hearts { font-size: 35px; }

.center-card h1 {
  color: #c0447c;
  font-size: clamp(30px, 4vw, 43px);
  margin: 8px 0;
}

.center-card h2 {
  color: #9d5b83;
  font-size: 19px;
}

.dotted-line {
  color: #df91b3;
  margin: 20px 0;
}

.welcome-message {
  line-height: 1.7;
}

.gift-area {
  margin: 22px 0;
}

.main-gift {
  font-size: 75px;
  animation: giftBounce 2s infinite;
}

@keyframes giftBounce {
  50% { transform: translateY(-9px) rotate(5deg); }
}

.open-button, .action-button {
  border: 0;
  border-radius: 30px;
  padding: 13px 24px;
  color: white;
  font-weight: bold;
  font-size: 15px;
  background: linear-gradient(120deg, #e66b9f, #bd5b9c);
  box-shadow: 0 5px 14px #c45a8b55;
  transition: .2s;
}

.open-button:hover, .action-button:hover {
  transform: translateY(-3px);
}

.calendar-date {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #b54b7e;
}

.bottom-heart, .made-with-love {
  color: #c75d8e;
}

.friend-note, .happy-note {
  padding: 18px;
  background: #fff8fc;
  border-radius: 18px;
  box-shadow: 0 5px 15px #d88eaa33;
}

.friend-note span, .teddy-sticker span {
  font-size: 38px;
}

.friend-note p {
  margin: 7px 0;
}

.friend-note strong {
  color: #c44e83;
}

.teddy-sticker span { font-size: 75px; }
.butterfly-decoration { font-size: 55px; }

.gifts-section {
  width: min(1000px, 94%);
  margin: 30px auto;
  padding: 25px;
  border: 3px solid #f0b0ce;
  border-radius: 28px;
  background: #fff9fc;
  box-shadow: 0 10px 30px #d58aaa44;
}

.gifts-section h1 {
  color: #bd4f83;
  font-size: clamp(26px, 5vw, 39px);
}

.gifts-section h2 {
  color: #9d5b83;
}

.gift-intro {
  line-height: 1.7;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 25px 0;
}

.gift-card {
  min-height: 90px;
  border: 2px solid #ed9fc1;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #ffe3ef);
  color: #ad4778;
  font-size: 27px;
  box-shadow: 0 4px 10px #d98aaa33;
  transition: .2s;
}

.gift-card span {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-top: 5px;
}

.gift-card:not(:disabled):hover {
  transform: translateY(-4px) scale(1.02);
}

.gift-card.locked {
  opacity: .55;
  background: #f2e8ed;
  cursor: not-allowed;
}

.gift-card.done {
  background: linear-gradient(145deg, #ffe0ef, #f6c5e5);
  border-color: #ca6c9a;
}

.gift-content {
  margin: 25px auto;
  padding: 25px;
  max-width: 760px;
  background: #fff0f7;
  border: 2px dashed #e59cbd;
  border-radius: 22px;
  animation: appear .45s ease;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gift-content h2 {
  color: #bd4f83;
}

.question {
  font-size: 21px;
  font-weight: bold;
  line-height: 1.5;
}

.answer-option {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 12px auto;
  padding: 14px;
  border: 2px solid #e7a1c0;
  border-radius: 15px;
  background: white;
  color: #854765;
  font-size: 16px;
  text-align: left;
}

.answer-option:hover {
  background: #ffe1ef;
}

.feedback {
  min-height: 30px;
  font-weight: bold;
  color: #a74778;
  line-height: 1.6;
}

.cake {
  font-size: 100px;
  margin: 15px 0;
  animation: giftBounce 2s infinite;
}

.voice-note {
  font-size: 14px;
  line-height: 1.6;
  background: #fffafd;
  border-radius: 12px;
  padding: 12px;
}

.heart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px auto;
}

.heart-card {
  position: relative;
  min-height: 175px;
  border: 2px solid #f1a5c4;
  border-radius: 20px;
  background: #fffafd;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 5px 14px #d77da333;
}

.heart-icon {
  display: block;
  font-size: 55px;
  transition: .3s;
}

.heart-card.opened .heart-icon {
  transform: scale(1.2);
}

.heart-number {
  color: #b34e7e;
  font-weight: bold;
  font-size: 13px;
}

.heart-wish {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #ffe1ed;
  color: #753c59;
  font-size: 12px;
  line-height: 1.5;
  animation: appear .4s ease;
}

.heart-wish p {
  margin: 5px 0;
}

.heart-wish .urdu {
  direction: rtl;
  font-size: 14px;
}

.heart-card.opened {
  background: #ffeaf3;
}

.media-placeholder {
  background: white;
  border: 2px dashed #d98aaa;
  border-radius: 15px;
  padding: 18px;
  line-height: 1.7;
  margin: 15px 0;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid white;
  box-shadow: 0 4px 12px #bd6d9133;
}

.video-box {
  width: 100%;
  max-height: 440px;
  border-radius: 15px;
  background: #2d1d27;
  margin: 12px 0;
}

.continue-button {
  margin-top: 18px;
}

#flowerLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 99;
}

.falling-flower {
  position: absolute;
  top: -35px;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(500deg);
    opacity: .2;
  }
}

.final-footer {
  color: #bd4f83;
  margin-top: 25px;
}

@media (max-width: 760px) {
  .poster {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 18px;
  }

  .left-side, .right-side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hug-sticker {
    max-width: 180px;
  }

  .friends-image {
    height: 145px;
  }

  .qualities {
    padding: 12px 18px;
  }

  .center-card {
    order: -1;
    padding: 20px 13px;
  }

  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .gift-card {
    min-height: 75px;
    font-size: 23px;
  }

  .gift-card span {
    font-size: 13px;
  }

  .gifts-section {
    padding: 15px 10px;
  }

  .gift-content {
    padding: 16px 10px;
  }

  .heart-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .heart-card {
    min-height: 185px;
    padding: 8px;
  }

  .heart-wish {
    font-size: 11px;
  }

  .photo-gallery img {
    height: 160px;
  }

  .question {
    font-size: 18px;
  }

  .answer-option {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .heart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-date {
    font-size: 11px;
  }
}/* GIFT 6 - SHOW FULL RIMSHA PHOTOS */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.photo-gallery img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #fff5f8;
    border-radius: 15px;
}

/* MOBILE PHOTOS */

@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-gallery img {
        height: auto;
        max-height: 500px;
        object-fit: contain;
    }
}/* GIFT 10 - BOTH VIDEOS LARGE */
.video-box {
    display: block;
    width: 100%;
    max-width: 850px;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 18px;
    background: #fff;
}/* GIFT 4 - SIX BIG HEART STICKERS */

.heart-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
}

.heart-card {
    min-height: 230px;
    padding: 20px 12px;
    border-radius: 22px;
    background: #fff0f6;
    border: 2px solid #f3b4ce;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.heart-button {
    border: none;
    background: transparent;
    font-size: 95px;
    cursor: pointer;
    line-height: 1.2;
    padding: 10px;
    transition: transform 0.3s ease;
}

.heart-button:hover {
    transform: scale(1.15);
}

.heart-card > p {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0;
}

.heart-wish {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 15px;
    background: #ffe0ed;
}

.heart-wish p {
    font-size: 15px;
    line-height: 1.7;
}

/* Mobile screen */
@media (max-width: 600px) {
    .heart-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .heart-card {
        min-height: 190px;
    }

    .heart-button {
        font-size: 75px;
    }
}/* PHOTO GIFT - OPENING DOUBLE DOORS */

.photo-door-scene {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 25px auto;
    perspective: 1200px;
}

.photo-door-scene .photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1s ease 0.8s,
                transform 1s ease 0.8s;
}

.photo-door-scene .photo-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.photo-doors {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
    perspective: 1200px;
    pointer-events: none;
}

.photo-door {
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #d879a2, #f6c1d6, #b94f7e);
    border: 5px solid #fff0f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    box-shadow: inset 0 0 20px #9d426b;
    transition: transform 2.5s ease-in-out;
    backface-visibility: hidden;
}

.left-door {
    transform-origin: left center;
    border-radius: 18px 0 0 18px;
}

.right-door {
    transform-origin: right center;
    border-radius: 0 18px 18px 0;
}

.photo-door-scene.open .left-door {
    transform: rotateY(-110deg);
}

.photo-door-scene.open .right-door {
    transform: rotateY(110deg);
}

.photo-door-scene.open .photo-gallery {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .photo-door-scene .photo-gallery img {
        height: 190px;
    }

    .photo-door {
        font-size: 35px;
    }
}/* FIX PHOTO GIFT - SHOW FULL PICTURES */

.photo-door-scene .photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease 0.8s;
}

.photo-door-scene .photo-gallery img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain !important;
    border-radius: 15px;
}

.photo-door-scene.open .photo-gallery {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .photo-door-scene .photo-gallery {
        grid-template-columns: 1fr;
    }
}/* FINAL GIFT - VIDEO DOOR ANIMATION */

.final-door-scene {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 25px auto;
    perspective: 1400px;
    overflow: hidden;
    border-radius: 18px;
    background: #f8e6ee;
}

.final-door-scene video {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.final-doors {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
    pointer-events: none;
}

.final-door {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    background: linear-gradient(135deg, #c75b89, #f6c2d8, #a83d70);
    border: 5px solid #fff0f6;
    box-shadow: inset 0 0 25px #843657;
    transition: transform 2.5s ease-in-out;
    backface-visibility: hidden;
}

.final-left {
    transform-origin: left center;
    border-radius: 18px 0 0 18px;
}

.final-right {
    transform-origin: right center;
    border-radius: 0 18px 18px 0;
}

.final-door-scene.doors-open .final-left {
    transform: rotateY(-110deg);
}

.final-door-scene.doors-open .final-right {
    transform: rotateY(110deg);
}

.final-door-message {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: linear-gradient(135deg, #c75b89, #f6c2d8);
    color: white;
    font-size: clamp(17px, 3vw, 27px);
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 1.8;
    padding: 20px;
    border: 5px solid white;
    border-radius: 18px;
}

@media (max-width: 600px) {
    .final-door {
        font-size: 35px;
    }
}/* GIFT 8 - CINEMA CURTAINS AND FULL VIDEO FRAME */

.gift8-stage {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 22px auto;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #100b12;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.gift8-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #100b12;
}

.gift8-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      #650b32 0px,
      #a51d55 18px,
      #6e103b 35px,
      #bd3269 52px
    );
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}

.gift8-curtain-left {
  left: 0;
  border-right: 3px solid #e8b6c9;
}

.gift8-curtain-right {
  right: 0;
  border-left: 3px solid #e8b6c9;
}

.gift8-opening .gift8-curtain-left {
  animation: gift8OpenLeft 2.5s ease-in-out forwards;
}

.gift8-opening .gift8-curtain-right {
  animation: gift8OpenRight 2.5s ease-in-out forwards;
}

@keyframes gift8OpenLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-102%);
  }
}

@keyframes gift8OpenRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(102%);
  }
}

#gift8Message {
  text-align: center;
  margin: 15px 0;
}