@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

body {
  background: radial-gradient(circle at top, #ffe4f7 0%, #ffd4ec 45%, #ffb6e6 100%);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #43112d;
  margin: 0;
  padding: clamp(24px, 6vw, 52px) 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  perspective: none;
}

body.after-heart-win::before,
body.after-heart-win::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 4;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 179, 214, 0.55) 0, rgba(255, 179, 214, 0) 60%),
    radial-gradient(circle, rgba(255, 133, 188, 0.55) 0, rgba(255, 133, 188, 0) 55%),
    radial-gradient(circle, rgba(255, 214, 238, 0.6) 0, rgba(255, 214, 238, 0) 52%);
  animation: heartMist 12s ease-in-out infinite;
}

body.after-heart-win::after {
  animation-delay: 6s;
  opacity: 0.45;
}

body.blossom-mode {
  overflow: hidden;
}

body.blossom-mode .main-stage {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.96);
  pointer-events: none;
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.headerText {
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  text-align: center;
  margin: clamp(16px, 5vw, 32px) 0;
  font-family: "DM Sans", sans-serif;
  color: #821d56;
}

.main-stage {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 6vw, 32px);
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-stage.is-hidden-stage {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  pointer-events: none;
}

.main-stage--collapsed {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.game-portal {
  position: relative;
  width: min(96vw, 960px);
  max-width: 880px;
  margin: clamp(20px, 6vw, 40px) auto;
  padding: clamp(32px, 8vw, 56px);
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 240, 248, 0.85), rgba(255, 182, 214, 0.92));
  box-shadow: 0 28px 68px rgba(123, 37, 82, 0.28);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #5e1241;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 3;
}

.game-portal__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 5vw, 28px);
  max-width: 560px;
}

.game-portal__eyebrow {
  margin: 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(94, 18, 65, 0.68);
}

.game-portal__title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.game-portal__subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  line-height: 1.7;
  color: rgba(80, 12, 52, 0.82);
}

.game-portal__status {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  font-weight: 500;
  color: rgba(72, 10, 48, 0.92);
}

.game-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: clamp(12px, 3.5vw, 20px);
  width: min(100%, 360px);
  margin: clamp(20px, 6vw, 40px) auto;
}

.game-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(255, 105, 180, 0.55);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(129, 23, 72, 0.22);
  font-size: clamp(2.4rem, 8vw, 3.7rem);
  font-weight: 600;
  color: #ff2d6b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  backdrop-filter: blur(6px);
}

.game-cell:hover,
.game-cell:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(129, 23, 72, 0.32);
}

.game-cell:focus-visible {
  outline: 3px solid rgba(255, 112, 172, 0.75);
  outline-offset: 4px;
}

.game-cell--occupied {
  cursor: default;
  pointer-events: none;
}

.game-cell--heart {
  background: linear-gradient(160deg, rgba(255, 226, 239, 0.95), rgba(255, 196, 223, 0.98));
  color: #ff1f64;
  box-shadow: 0 18px 42px rgba(255, 105, 180, 0.35);
}

.game-cell--ai {
  background: linear-gradient(160deg, rgba(236, 210, 254, 0.9), rgba(203, 174, 246, 0.94));
  color: #5a2c9b;
  border-color: rgba(173, 134, 245, 0.7);
}

.game-cell--winner {
  border-color: #ff6faf;
  box-shadow: 0 22px 48px rgba(255, 111, 175, 0.45), 0 0 22px rgba(255, 120, 186, 0.65);
  animation: winnerPulse 1.4s ease infinite;
}

.game-portal__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: rgba(255, 93, 164, 0.65);
  animation: floatPortalHeart 8s ease-in-out infinite;
}

.floating-heart--1 {
  left: 8%;
  top: 12%;
  animation-delay: 0s;
}

.floating-heart--2 {
  right: 10%;
  top: 18%;
  animation-delay: 1.2s;
}

.floating-heart--3 {
  left: 18%;
  bottom: 12%;
  animation-delay: 2.4s;
}

.floating-heart--4 {
  right: 16%;
  bottom: 10%;
  animation-delay: 0.8s;
}

.floating-heart--5 {
  left: 50%;
  top: 4%;
  animation-delay: 1.8s;
}

.floating-heart--6 {
  right: 42%;
  bottom: 6%;
  animation-delay: 2.9s;
}

.game-portal--won .floating-heart {
  animation-duration: 5.6s;
  color: rgba(255, 63, 140, 0.85);
}

.game-portal--fade {
  opacity: 0;
  transform: translateY(-28px) scale(0.94);
  pointer-events: none;
}

.game-portal--hidden {
  display: none;
}

.heart-win-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 8;
}

.heart-win-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.heart-win-modal__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 219, 238, 0.85), rgba(255, 174, 207, 0.82));
  filter: blur(12px);
  opacity: 0.85;
}

.heart-win-modal__content {
  position: relative;
  padding: clamp(32px, 8vw, 48px);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 78px rgba(123, 37, 82, 0.32);
  text-align: center;
  color: #5e1241;
  max-width: min(92vw, 520px);
  transform: translateY(30px) scale(0.94);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.heart-win-modal.is-visible .heart-win-modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.heart-win-modal__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  color: rgba(94, 18, 65, 0.65);
}

.heart-win-modal__title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 700;
  color: #ff2d6b;
  text-shadow: 0 12px 30px rgba(255, 89, 149, 0.35);
}

.heart-win-modal__subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.7;
  color: rgba(80, 12, 52, 0.82);
}

.heart-win-modal__cta {
  margin-top: clamp(18px, 4vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(12px, 3.4vw, 18px) clamp(22px, 6vw, 32px);
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5fa5, #ff95c9);
  color: #4f0c33;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(255, 116, 186, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.heart-win-modal__cta:hover,
.heart-win-modal__cta:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(255, 116, 186, 0.42);
  outline: none;
}

@keyframes floatPortalHeart {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -70px, 0) scale(1.15);
    opacity: 0;
  }
}

@keyframes winnerPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 22px 48px rgba(255, 111, 175, 0.45), 0 0 22px rgba(255, 120, 186, 0.65);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 30px 56px rgba(255, 120, 186, 0.55), 0 0 28px rgba(255, 140, 200, 0.75);
  }
}

@keyframes heartMist {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }

  35% {
    transform: translateY(-12px) scale(1.02);
    opacity: 0.7;
  }

  70% {
    transform: translateY(-24px) scale(1.04);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
}

@media (max-width: 720px) {
  body {
    padding: clamp(20px, 8vw, 36px) 16px;
  }

  .game-portal {
    margin: clamp(12px, 5vw, 28px) auto;
    padding: clamp(24px, 8vw, 40px);
    border-radius: 28px;
  }

  .game-board {
    gap: clamp(10px, 4vw, 16px);
    max-width: 320px;
  }

  .game-cell {
    border-radius: 22px;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .main-stage {
    width: min(100%, 540px);
  }

  .heart-win-modal__content {
    padding: clamp(28px, 10vw, 40px);
  }
}

@media (max-width: 480px) {
  .game-portal__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .game-board {
    width: 100%;
  }

  .game-cell {
    border-width: 2px;
  }

  .flower-overlay__inner {
    min-height: auto;
  }

  .heart-win-modal__title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .heart-win-modal__subtitle {
    font-size: clamp(0.95rem, 4.5vw, 1.1rem);
  }
}

.image {
  object-fit: cover;
  mix-blend-mode: multiply;
  width: min(70vw, 360px);
  height: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.image.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.94);
}

.flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.button {
  background-image: linear-gradient(135deg, #ff4f99, #ff82c5);
  border: none;
  color: #36102a;
  padding: clamp(14px, 4vw, 22px) clamp(24px, 8vw, 36px);
  text-align: center;
  border-radius: clamp(16px, 5vw, 22px);
  text-decoration: none;
  display: inline-block;
  font-size: clamp(1rem, 4vw, 1.25rem);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.button:hover {
  background-image: linear-gradient(135deg, #ff71ac, #ff9ed6);
  color: #2b061a;
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 143, 196, 0.7);
  outline-offset: 3px;
}

.absImages {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.image1 {
  height: 40px;
  width: 40px;
  object-fit: cover;
  mix-blend-mode: multiply;
  position: absolute;
  animation: slideUp 1s ease-in-out;
  pointer-events: none;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0%);
  }
}

.f-aps {
  position: absolute;
  bottom: 0;
  animation: slideUp 1s ease-in-out;
  right: 0;
  padding: 20px;
  gap: 12px;
}

.f-aps img {
  height: 40px;
  width: 40px;
  object-fit: cover;
}

.plead-text {
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  font-weight: 500;
  color: #5c1440;
  max-width: 520px;
  margin: clamp(12px, 4vw, 20px) auto 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.plead-text[hidden] {
  display: none;
}

.plead-text:not([hidden]) {
  opacity: 1;
}

.button--wiggle {
  animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-3deg);
  }
}

.image.is-sad {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.flower-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(255, 217, 236, 0.96), rgba(255, 179, 220, 0.9) 38%, rgba(254, 150, 208, 0.86) 68%, rgba(230, 102, 176, 0.82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
  z-index: 5;
}

.flower-overlay.not-loaded {
  display: none;
}

.flower-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.flower-overlay__inner {
  width: min(94vw, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(42px, 9vw, 68px);
  position: relative;
  z-index: 3;
  padding: clamp(52px, 14vh, 132px) clamp(22px, 6vw, 46px) clamp(48px, 9vh, 120px);
  min-height: min(94vh, 880px);
}

.flower-caption {
  margin: 0 0 clamp(20px, 4vh, 32px);
  font-size: clamp(1.35rem, 4.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #5e1241;
  /* White border effect using text-shadow */
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  align-self: center;
  z-index: 5;
}

.flower-overlay__stage {
  position: relative;
  width: min(92vw, 760px);
  min-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-top: clamp(20px, 4vh, 40px);
}

.flower-overlay__gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
  z-index: 2;
}

.flower-overlay__gallery::before,
.flower-overlay__gallery::after {
  content: "";
  position: absolute;
  inset: clamp(6%, 8vw, 14%);
  border-radius: 34px;
  background: radial-gradient(circle at center, rgba(255, 176, 220, 0.18), rgba(255, 116, 176, 0));
  filter: blur(24px);
  opacity: 0;
  transition: opacity 1.8s ease;
}

.flower-overlay__gallery::after {
  inset: clamp(10%, 12vw, 18%);
  filter: blur(28px);
}

.photo-card {
  position: absolute;
  width: clamp(160px, 25vw, 260px);
  /* Increased size */
  aspect-ratio: 3 / 4;
  padding: clamp(10px, 1.5vw, 16px);
  border-radius: clamp(16px, 3.5vw, 24px);
  background: rgba(255, 252, 255, 0.9);
  /* Slightly more opaque */
  box-shadow: 0 20px 40px rgba(15, 0, 20, 0.25);
  transform-origin: center;
  opacity: 0;
  filter: blur(10px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  transition: transform 2.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 2.6s ease, filter 2.6s ease;
  will-change: transform, opacity, filter;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(14px, 3.2vw, 20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Initial positions (scattered slightly) */
.photo-card--1 {
  transform: translate(calc(-50% - 120px), calc(-50% - 80px)) scale(0.1) rotate(-15deg);
}

.photo-card--2 {
  transform: translate(calc(-50% + 120px), calc(-50% - 80px)) scale(0.1) rotate(15deg);
}

.photo-card--3 {
  transform: translate(calc(-50% - 110px), calc(-50% + 90px)) scale(0.1) rotate(10deg);
}

.photo-card--4 {
  transform: translate(calc(-50% + 110px), calc(-50% + 90px)) scale(0.1) rotate(-10deg);
}

.photo-card--5 {
  transform: translate(-50%, calc(-50% - 140px)) scale(0.1) rotate(5deg);
}

.photo-card--active {
  opacity: 1;
  filter: blur(0);
}

/* Active positions - Centered cluster, closer to middle */
.photo-card--1.photo-card--active {
  transform: translate(calc(-50% - 130px), calc(-50% - 100px)) scale(1.0) rotate(-12deg);
  transition-delay: 0.8s;
  z-index: 10;
}

.photo-card--2.photo-card--active {
  transform: translate(calc(-50% + 130px), calc(-50% - 100px)) scale(1.0) rotate(12deg);
  transition-delay: 1.4s;
  z-index: 11;
}

.photo-card--3.photo-card--active {
  transform: translate(calc(-50% - 120px), calc(-50% + 100px)) scale(1.0) rotate(8deg);
  transition-delay: 2.0s;
  z-index: 12;
}

.photo-card--4.photo-card--active {
  transform: translate(calc(-50% + 120px), calc(-50% + 100px)) scale(1.0) rotate(-8deg);
  transition-delay: 2.6s;
  z-index: 13;
}

.photo-card--5.photo-card--active {
  transform: translate(-50%, calc(-50% - 160px)) scale(1.0) rotate(4deg);
  transition-delay: 3.2s;
  z-index: 14;
}

.flower-overlay__canvas {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  z-index: 50;
  transform: translateY(30px) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 2.4s cubic-bezier(0.15, 0.8, 0.25, 1), opacity 2.4s ease;
}

.flower-overlay__canvas::before {
  content: none;
}

.flower-overlay.stage-flowers .flower-overlay__canvas {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.flower-overlay__heart-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
  z-index: 4;
}

.overlay-heart {
  position: absolute;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: rgba(255, 143, 196, 0.52);
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  filter: blur(0.6px);
}

.overlay-heart--1 {
  top: 12%;
  left: 24%;
}

.overlay-heart--2 {
  top: 28%;
  right: 20%;
}

.overlay-heart--3 {
  bottom: 26%;
  left: 18%;
}

.overlay-heart--4 {
  bottom: 18%;
  right: 26%;
}

.overlay-heart--5 {
  top: 42%;
  left: 12%;
}

.overlay-heart--6 {
  top: 46%;
  right: 12%;
}

.flower-overlay.stage-photos .flower-overlay__gallery::before,
.flower-overlay.stage-photos .flower-overlay__gallery::after {
  opacity: 1;
}

.flower-overlay.stage-photos .overlay-heart {
  animation: overlayHeartFloat 12s ease-in-out infinite;
}

.flower-overlay.stage-photos .overlay-heart--1 {
  animation-delay: 1.2s;
}

.flower-overlay.stage-photos .overlay-heart--2 {
  animation-delay: 2.4s;
}

.flower-overlay.stage-photos .overlay-heart--3 {
  animation-delay: 3.6s;
}

.flower-overlay.stage-photos .overlay-heart--4 {
  animation-delay: 1.8s;
}

.flower-overlay.stage-photos .overlay-heart--5 {
  animation-delay: 3s;
}

.flower-overlay.stage-photos .overlay-heart--6 {
  animation-delay: 4.2s;
}

.flower-overlay.stage-caption .flower-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.flower-overlay.stage-flowers .flower-overlay__canvas {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@keyframes overlayHeartFloat {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.6);
  }

  25% {
    opacity: 0.85;
  }

  65% {
    opacity: 1;
    transform: translateY(-18px) scale(0.96);
  }

  100% {
    opacity: 0;
    transform: translateY(-56px) scale(0.9);
  }
}

/* === BOUQUET STYLES === */
/* === BOUQUET STYLES - CENTERED & SHINING === */
.bouquet {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  /* Override previous bottom pos */
  transform: translate(-50%, -40%) scale(0.2);
  width: 320px;
  height: 480px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  transition: transform 2.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.5s ease;
  filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.3));
}

.flower-overlay.stage-flowers .bouquet {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  /* Center exactly and scale up */
  animation: bouquetFloat 6s ease-in-out infinite;
}

@keyframes bouquetFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  50% {
    transform: translate(-50%, -52%) scale(1.1);
  }
}

.bouquet__wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 240px;
  background: linear-gradient(170deg, #ffcce6, #ffa6c9);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  z-index: 4;
  box-shadow: 0 10px 40px rgba(189, 23, 85, 0.25);
}

.bouquet__wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
}

.bouquet__tissue {
  position: absolute;
  background: #fff0f7;
  border-radius: 50% 50% 0 0;
  z-index: 1;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.bouquet__tissue--l {
  width: 160px;
  height: 180px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-65%) rotate(-15deg);
  background: #ffe3f0;
}

.bouquet__tissue--r {
  width: 160px;
  height: 180px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-35%) rotate(15deg);
}

.bouquet__ribbon-band {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #d60049;
  z-index: 6;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bouquet__bow {
  position: absolute;
  bottom: 78px;
  width: 50px;
  height: 60px;
  border: 8px solid #d60049;
  border-radius: 50%;
  z-index: 5;
}

.bouquet__bow--l {
  left: 50%;
  transform: translateX(-120%) rotate(-20deg);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.bouquet__bow--r {
  right: 50%;
  transform: translateX(120%) rotate(20deg);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.bouquet__bow-center {
  position: absolute;
  bottom: 80px;
  left: 50%;
  width: 20px;
  height: 24px;
  transform: translateX(-50%);
  background: #b0003a;
  z-index: 7;
  border-radius: 4px;
}

/* Roses - Simple circular gradients */
/* SHINING ROSES */
.bouquet__rose {
  position: absolute;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 30% 30%, #ff4d88, #d60049 80%);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(168, 7, 63, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rosePulse 3s ease-in-out infinite alternate;
}

@keyframes rosePulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 77, 136, 0.5);
    transform: scale(1);
  }

  100% {
    box-shadow: 0 0 25px rgba(255, 77, 136, 0.8), 0 0 10px #fff;
    transform: scale(1.05);
  }
}

.bouquet__rose::after {
  content: "";
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: transparent;
  transform: rotate(45deg);
}

/* Positions for Roses */
.bouquet__rose--1 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 4;
  animation-delay: 0s;
}

.bouquet__rose--2 {
  top: 20px;
  left: 30px;
  transform: rotate(-10deg);
  animation-delay: 0.2s;
}

.bouquet__rose--3 {
  top: 20px;
  right: 30px;
  transform: rotate(10deg);
  animation-delay: 0.4s;
}

.bouquet__rose--4 {
  top: 60px;
  left: 10px;
  transform: rotate(-20deg);
  width: 42px;
  height: 42px;
  animation-delay: 0.6s;
}

.bouquet__rose--5 {
  top: 60px;
  right: 10px;
  transform: rotate(20deg);
  width: 42px;
  height: 42px;
  animation-delay: 0.8s;
}

.bouquet__rose--6 {
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: radial-gradient(circle at 30% 30%, #ff6b9d, #e60050 80%);
  animation-delay: 1s;
}

.bouquet__rose--7 {
  top: 90px;
  left: 40%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  animation-delay: 1.2s;
}

/* Leaves */
.bouquet__leaf {
  position: absolute;
  width: 40px;
  height: 60px;
  background: linear-gradient(to bottom right, #4caf50, #2e7d32);
  border-radius: 0 60% 0 60%;
  z-index: 2;
}

.bouquet__leaf--1 {
  top: 20px;
  left: -10px;
  transform: rotate(-60deg);
}

.bouquet__leaf--2 {
  top: 20px;
  right: -10px;
  transform: rotate(-30deg) scaleX(-1);
}

.bouquet__leaf--3 {
  top: 80px;
  left: -20px;
  transform: rotate(-80deg);
}

.bouquet__leaf--4 {
  top: 80px;
  right: -20px;
  transform: rotate(-10deg) scaleX(-1);
}

.bouquet__leaf--5 {
  top: 120px;
  left: -10px;
  transform: rotate(-70deg) scale(0.8);
}

.bouquet__leaf--6 {
  top: 120px;
  right: -10px;
  transform: rotate(-20deg) scaleX(-1) scale(0.8);
}

/* Breath (little white flowers) */
.bouquet__breath {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.bouquet__breath--1 {
  top: 10px;
  left: 80px;
}

.bouquet__breath--2 {
  top: 30px;
  left: 20px;
}

.bouquet__breath--3 {
  top: 0px;
  left: 180px;
}

.bouquet__breath--4 {
  top: 90px;
  left: 50px;
}

.bouquet__breath--5 {
  top: 40px;
  right: 40px;
}

.bouquet__breath--6 {
  top: 80px;
  right: 20px;
}

.bouquet__breath--7 {
  top: 5px;
  left: 140px;
}

.bouquet__breath--8 {
  top: 60px;
  left: 50%;
}


/* Hide other complex elements */
.flower-overlay__canvas .flower__line__leaf,
.flower-overlay__canvas .growing-grass,
.flower-overlay__canvas .grow-ans,
.flower-overlay__canvas .long-g,
.flower-overlay__canvas .flower__g-long,
.flower-overlay__canvas .flower__g-right,
.flower-overlay__canvas .flower__g-front,
.flower-overlay__canvas .flower__g-fr,
.flower-overlay__canvas .flower__grass {
  display: none !important;
}

.simple-flowers,
.simple-flower,
.tulip,
.lily {
  display: none !important;
}

/* === ADDITIONAL FLOWERS & POSITIONING === */
/* === ORGANIZED BOUQUET LAYOUT === */
/* All flowers anchored at bottom center inside wrapper */

/* LAYER 1: CENTER BACK (Tallest) */
.flower--6 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(0deg) scale(1.0);
  animation: moving-flower-3 5s ease-in-out infinite;
  z-index: 1;
}

/* LAYER 2: MID SIDES (Framing the center) */
/* === ORGANIZED BOUQUET LAYOUT === */
/* All flowers anchored at bottom center inside wrapper */

/* LAYER 1: CENTER BACK (Tallest) */
.flower--6 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(0deg) scale(1.0);
  animation: moving-flower-3 5s ease-in-out infinite;
  z-index: 1;
}

/* LAYER 2: MID SIDES (Framing the center) */
.flower--1 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(-15deg) scale(0.9);
  z-index: 2;
  animation: moving-flower-1 4.5s ease-in-out infinite;
}

.flower--2 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(15deg) scale(0.9);
  z-index: 2;
  animation: moving-flower-2 4.5s ease-in-out infinite;
}

/* Slightly left - REMOVED flower 3 */


/* Slightly right */

/* LAYER 3: OUTER SIDES (Widest spread) */
/* Flower 4 - Purple - Left Outer */
.flower--4 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(-35deg) scale(0.85);
  animation: moving-flower-1 4s ease-in-out infinite;
  z-index: 3;
}

.flower--4 .flower__line {
  height: 50vmin;
  animation-delay: 1.2s;
}

.flower--4 .flower__leaf {
  background-color: #b39ddb;
  background-image: linear-gradient(to top, #7e57c2, #b39ddb);
}

.flower--4 .flower__leaf--4 {
  background-image: linear-gradient(to top, #673ab7, #b39ddb);
}

.flower--4 .flower__white-circle {
  left: -2vmin;
}

.flower--4 .flower__light {
  background-color: #fff9c4;
}

.flower__leafs--4 {
  animation-delay: 2.0s;
}

.flower--4 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 1.9s backwards;
}

.flower--4 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 1.7s backwards;
}

.flower--4 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 1.5s backwards;
}

.flower--4 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1.3s backwards;
}


/* Flower 7 - Red - Right Outer */
.flower--7 {
  left: 50%;
  margin-left: 0;
  bottom: 12vmin;
  transform: rotate(35deg) scale(0.85);
  animation: moving-flower-3 4s ease-in-out infinite;
  z-index: 3;
}

.flower--7 .flower__line {
  height: 48vmin;
  animation-delay: 2.0s;
}

.flower--7 .flower__leaf {
  background-color: #d32f2f;
  background-image: linear-gradient(to top, #b71c1c, #e57373);
}

.flower--7 .flower__leaf--4 {
  background-image: linear-gradient(to top, #c62828, #ef9a9a);
}

.flower__leafs--7 {
  animation-delay: 2.8s;
}

.flower--7 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 2.7s backwards;
}

.flower--7 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.5s backwards;
}

.flower--7 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.3s backwards;
}

.flower--7 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.1s backwards;
}

/* Flower 8 - White/Cream - Front Center */
.flower--8 {
  left: 50%;
  margin-left: 0;
  /* was left 35% */
  bottom: 4vmin;
  transform: rotate(0deg) scale(0.8);
  animation: moving-flower-2 4s linear infinite;
  z-index: 10;
  /* Bring to front */
}

.flower--8 .flower__line {
  height: 40vmin;
  animation-delay: 2.2s;
}

/* Flower 8 - REMOVED */

/* === BOUQUET WRAPPER - LUXURIOUS CONE DESIGN === */
.bouquet-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 30vmin;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bouquet-wrapper__paper {
  position: absolute;
  bottom: 0;
  width: 22vmin;
  height: 32vmin;
  /* Double Layer Paper Effect */
  background:
    conic-gradient(from 150deg at 50% 60%, transparent 60deg, rgba(233, 30, 99, 0.4) 60deg, rgba(233, 30, 99, 0.4) 300deg, transparent 300deg),
    linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform-origin: bottom center;
  box-shadow: 0 -2vmin 15vmin rgba(100, 10, 50, 0.3);
  z-index: 5;
  opacity: 0;
  animation: paper-fade-in 1s 3.5s forwards ease-out;
}

.bouquet-wrapper__paper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.4), transparent 70%);
}

@keyframes paper-fade-in {
  to {
    opacity: 1;
  }
}

.bouquet-wrapper__ribbon {
  position: absolute;
  bottom: 12vmin;
  width: 26vmin;
  height: 4vmin;
  background: #c2185b;
  border-radius: 4px;
  box-shadow: 0 1vmin 2vmin rgba(0, 0, 0, 0.25);
  z-index: 6;
  opacity: 0;
  animation: ribbon-fade-in 1s 3.8s forwards ease-out;
}

.bouquet-wrapper__ribbon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6vmin;
  height: 6vmin;
  background: #e91e63;
  border-radius: 50%;
  box-shadow: 0 0.5vmin 1vmin rgba(0, 0, 0, 0.3);
}

@keyframes ribbon-fade-in {
  to {
    opacity: 1;
  }
}

/* === FLOATING HEARTS DECORATION === */
.floating-hearts-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.floating-heart-dec {
  position: absolute;
  font-size: 3rem;
  color: rgba(255, 105, 180, 0.6);
  animation: floatUp 8s linear infinite;
  opacity: 0;
}

.floating-heart-dec--1 {
  left: 10%;
  animation-delay: 4.0s;
  font-size: 2rem;
}

.floating-heart-dec--2 {
  left: 30%;
  animation-delay: 5.5s;
  font-size: 3rem;
}

.floating-heart-dec--3 {
  left: 50%;
  animation-delay: 4.5s;
  font-size: 2.5rem;
}

.floating-heart-dec--4 {
  left: 70%;
  animation-delay: 6.0s;
  font-size: 3rem;
}

.floating-heart-dec--5 {
  left: 90%;
  animation-delay: 5.0s;
  font-size: 2rem;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* === FLOWERS TRANSITION === */
.flower-overlay .flowers {
  opacity: 0;
  transition: opacity 2s ease 0.5s;
  pointer-events: none;
  /* Ensure it is centered in the overlay canvas */
  position: absolute;
  bottom: 15%;
  left: 46%;
  transform: translateX(-50%) scale(0.9);
  z-index: 100;
}

.flower-overlay.stage-flowers .flowers {
  opacity: 1;
}

.prompt-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.prompt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.prompt-modal__content {
  position: relative;
  z-index: 11;
  max-width: 420px;
  width: calc(100% - 48px);
  background: #fff6fb;
  border-radius: 24px;
  padding: clamp(28px, 8vw, 40px);
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 24px);
  color: #5c1440;
  transform: translateY(24px) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.5s ease;
}

.prompt-modal__content h2 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 600;
}

.prompt-modal__content p {
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  line-height: 1.6;
}

.prompt-modal__cta {
  align-self: center;
}

.prompt-modal.is-visible {
  display: flex;
}

.prompt-modal.is-visible .prompt-modal__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prompt-modal--reminder .prompt-modal__backdrop {
  background: linear-gradient(135deg, rgba(255, 137, 189, 0.6), rgba(255, 219, 245, 0.55));
}

.prompt-modal__content--reminder {
  background: radial-gradient(circle at top, rgba(255, 248, 255, 0.96), rgba(255, 222, 242, 0.96));
  border: 2px solid rgba(255, 143, 196, 0.75);
  box-shadow: 0 24px 54px rgba(255, 120, 190, 0.4), 0 12px 24px rgba(90, 14, 52, 0.14);
  padding: clamp(32px, 9vw, 44px);
  gap: clamp(18px, 4.5vw, 26px);
}

.prompt-modal__content--reminder h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.2rem);
  color: #ff2d6b;
  letter-spacing: 0.04em;
}

.prompt-modal__content--reminder p {
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.7;
  color: #5a0f39;
}

.prompt-modal__content--reminder .prompt-modal__cta {
  background: linear-gradient(135deg, #ff72b8, #ff9fd7);
  color: #4a0931;
  box-shadow: 0 14px 26px rgba(255, 112, 182, 0.38);
  border-radius: 999px;
  padding: clamp(14px, 4vw, 20px) clamp(30px, 9vw, 40px);
}

@media (max-width: 640px) {
  body {
    padding: clamp(24px, 8vw, 40px) 16px;
    justify-content: flex-start;
    gap: 24px;
  }

  #btns {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .button {
    width: min(220px, 80vw);
  }

  .image {
    width: min(80vw, 320px);
  }

  .image1 {
    height: 28px;
    width: 28px;
  }

  .f-aps {
    position: static;
    width: 100%;
    justify-content: center;
    padding: 0;
    margin-top: 24px;
  }

  .f-aps img {
    height: 32px;
    width: 32px;
  }
}

/* Intro Card */
.intro-card {
  position: fixed;
  inset: 0;
  background-color: #ffd1dc;
  /* Soft pink background */
  background-image: radial-gradient(circle at center, #fff0f5, #ffd1dc);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Topmost layer */
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  font-family: 'DM Sans', sans-serif;
}

.intro-card.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card__content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
  text-align: center;
  max-width: 90%;
  width: 400px;
  animation: floatCard 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #d81b60;
}

.intro-card__content h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #c2185b;
}

.intro-card__content p {
  font-size: 1.2rem;
  margin: 0;
  color: #ad1457;
  line-height: 1.6;
}

.intro-card__btn {
  background: linear-gradient(135deg, #ff4081, #d81b60);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: center;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.intro-card__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Intro Card Slide Styling */
.intro-slide {
  display: none;
  animation: fadeInSlide 0.8s ease;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.intro-slide.active {
  display: flex;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adjust button spacing */
.intro-card__btn {
  margin-top: 2rem;
}

/* Yes Celebration Animation */
#yesCelebration {
  background: radial-gradient(circle, #ffe6f2 60%, #ffd1e8 100%) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  color: #ff2d6c;
}

#yesCelebration.hidden {
  display: none !important;
}

#yesCelebration h1 {
  font-family: inherit;
  color: #ff0f5b;
  animation: pulseYes 1.8s infinite ease-in-out;
}

@keyframes pulseYes {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 45, 107, 0.4);
  }

  50% {
    transform: scale(1.15);
    text-shadow: 0 0 40px rgba(255, 45, 107, 0.8);
  }
}

.heart-emoji {
  position: absolute;
  font-size: 3rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  animation: floatUp 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(0.5) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-20vh) scale(1.5) rotate(720deg);
    opacity: 0;
  }
}

/* Playing GIF */
.playing-gif {
  margin-top: 1.5rem;
  border-radius: 16px;
  width: 140px;
  height: auto;
  box-shadow: 0 8px 20px rgba(130, 29, 86, 0.25);
  animation: fadeIn 0.8s ease;
}

.playing-gif.hidden {
  display: none;
}

/* Yes GIF Styling */
.yes-gif {
  max-width: min(90vw, 500px);
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(255, 45, 107, 0.3);
  z-index: 102;
  position: relative;
  /* animation: popInGif 0.8s ...  (animation removed to keep it simple or handled above) */
  animation: popInGif 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Emergency Slide Logic */
.emergency-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 100%;
  animation: slideContentUp 0.6s ease-out;
}

.emergency-slide.active {
  display: flex !important;
}

@keyframes slideContentUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emergency-slide p {
  margin: 0;
  text-align: center;
  max-width: 400px;
}

@keyframes popInGif {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Transform Emergency Popup into a flat page */
#emergencyPopup {
  background: #fdf2f8 !important;
  /* Flat background color */
  padding: 0 !important;
  overflow-y: auto !important;
  /* Enable vertical scrolling */
  -webkit-overflow-scrolling: touch;
}

#emergencyPopup .intro-card__content {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: 800px;
  min-height: 100%;
  /* Ensure full height but allow growth */
  height: auto;
  padding: 2rem 1rem;
  /* Adjust padding for mobile */
  animation: none;
  justify-content: flex-start;
  overflow: visible;
  /* Let parent handle scroll */
}

/* Ensure content is centered vertically if needed or flows naturally */
#emergencyPopup .intro-card__content>div {
  width: 100%;
}

#emergencyPopup .emergency-slide {
  justify-content: center;
  flex: 1;
  /* Allow slides to take available vertical space */
}

/* Transform Heart Win Modal into a flat page */
#heartWinModal {
  background: #fff0f5 !important;
  inset: 0 !important;
  display: flex !important;
  padding: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
}

#heartWinModal .heart-win-modal__backdrop {
  display: none;
}

#heartWinModal .heart-win-modal__content {
  transform: none !important;
  opacity: 1 !important;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: 800px;
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.game-portal__watcher-gif {
  width: clamp(120px, 20vw, 160px);
  /* Increased size */
  height: auto;
  margin: 10px 0;
  /* Changed from negative margin to positive spacing */
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 25px rgba(130, 29, 86, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-portal__watcher-gif:hover {
  transform: scale(1.1) rotate(5deg);
}