.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 20px 32px;
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(255, 92, 138, 0.4);
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.16s ease, opacity 0.12s ease;
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.toast-image {
  position: fixed;
  top: calc(50% + 120px);
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 32px rgba(255, 92, 138, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 10002;
  transition: transform 0.16s ease, opacity 0.12s ease;
  visibility: hidden;
}

.toast-image.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.toast-image-may5 {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 15px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 32px rgba(255, 92, 138, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 10002;
  transition: transform 0.16s ease, opacity 0.12s ease;
  visibility: hidden;
}

.toast-image-may5-1 {
  top: calc(50% + 190px);
  left: calc(50% - 70px);
  transform: translate(-50%, -50%) scale(0.9);
}

.toast-image-may5-2 {
  top: calc(50% + 190px);
  left: calc(50% + 70px);
  transform: translate(-50%, -50%) scale(0.9);
}

.toast-image-may5.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.monthsary-card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(82vw, 360px);
  padding: 18px 18px 20px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 234, 243, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 60px rgba(96, 40, 64, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10004;
  transform: translate(-50%, -50%) scale(0.86) rotate(-1deg);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.2s ease;
  overflow: hidden;
}

.monthsary-card.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  pointer-events: auto;
}

.monthsary-particles {
  position: fixed;
  inset: 0;
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 214, 102, 0.26), transparent 22%),
    radial-gradient(circle at 24% 24%, rgba(255, 107, 157, 0.24), transparent 26%),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(196, 69, 105, 0.16), transparent 34%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.monthsary-particles.show {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.monthsary-trace {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 10005;
  width: min(82vw, 560px);
  height: min(62vh, 460px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.monthsary-trace.show {
  opacity: 1;
  visibility: visible;
}

.monthsary-particles::before,
.monthsary-particles::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
}

.monthsary-particles.show::before {
  animation: monthsaryOrbitGlow 7.8s linear infinite;
  opacity: 0.9;
}

.monthsary-particles.show::after {
  animation: monthsaryOrbitGlow 9.2s linear infinite reverse;
  opacity: 0.56;
  width: min(62vw, 410px);
}

.monthsary-particles canvas {
  position: absolute !important;
  inset: 0;
}

.monthsary-gift {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff7fb, #ffd1e2 62%, #e64f86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 14px 36px rgba(196, 69, 105, 0.3);
  font-size: 3.1rem;
}

.monthsary-card > img {
  display: block;
  width: 100%;
  max-height: min(52vh, 360px);
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  max-height: 0;
  transform: scale(0.94);
  transition: opacity 0.2s ease, max-height 0.24s ease, transform 0.24s ease;
}

.monthsary-card.is-revealed .monthsary-gift {
  display: none;
}

.monthsary-card.is-resetting,
.monthsary-card.is-resetting * {
  transition: none !important;
}

.monthsary-card.is-resetting .monthsary-gift {
  display: grid;
}

.monthsary-card.is-resetting > img {
  max-height: 0;
  opacity: 0;
  transform: scale(0.94);
}

.monthsary-card.is-revealed > img {
  opacity: 1;
  max-height: min(52vh, 360px);
  transform: scale(1);
}

.monthsary-reel {
  display: none;
  margin-top: 2px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.monthsary-card.is-revealed .monthsary-reel {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.monthsary-card.is-revealed .monthsary-reel + #monthsaryImage {
  display: none;
}

.monthsary-reel-window {
  position: relative;
  width: min(100%, 210px);
  height: min(36vh, 330px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(125, 40, 72, 0.08),
    0 14px 30px rgba(125, 40, 72, 0.18);
}

.monthsary-reel-window::before,
.monthsary-reel-window::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 2;
  height: 24px;
  pointer-events: none;
}

.monthsary-reel-window::before {
  top: 0;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
}

.monthsary-reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.monthsary-reel-strip {
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.monthsary-reel-strip img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.monthsary-card.is-reel-running .monthsary-reel-window {
  animation: monthsaryReelPulse 520ms ease-in-out infinite;
}

.monthsary-card.is-reel-done .monthsary-reel-window {
  animation: monthsaryReelSettle 360ms ease-out;
}

.monthsary-reel-caption {
  margin-top: 8px !important;
  color: #8b3554 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monthsary-card p {
  margin: 14px 0 0;
  color: #7d2848;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.monthsary-card .monthsary-message {
  margin-top: 6px;
  color: #9b4763;
  font-size: 0.96rem;
  font-weight: 700;
}

.monthsary-reveal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d94178, #ff7aa8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 65, 120, 0.32);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  touch-action: manipulation;
}

.monthsary-reveal-btn:disabled {
  opacity: 0;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

.monthsary-progress {
  width: 100%;
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 40, 72, 0.13);
}

.monthsary-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b9d, #ffd166);
  transition: width 0.18s ease;
}

.monthsary-card.is-revealed .monthsary-progress {
  display: none;
}

.monthsary-constellation {
  position: relative;
  display: none;
  height: 138px;
  margin-top: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 68%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    linear-gradient(145deg, rgba(125, 40, 72, 0.13), rgba(255, 122, 168, 0.18));
  overflow: hidden;
}

.monthsary-constellation.show {
  display: block;
}

.monthsary-star {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  min-width: 48px;
  max-width: 116px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 204, 0.86));
  color: #7d2848;
  box-shadow:
    0 0 0 0 rgba(255, 209, 102, 0.42),
    0 10px 22px rgba(125, 40, 72, 0.22),
    inset 0 0 14px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  touch-action: manipulation;
  animation: monthsaryStarTease 1.75s ease-in-out infinite;
}

.monthsary-star::after {
  content: 'tap';
  position: absolute;
  right: -8px;
  top: -9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0a500;
  color: #fff;
  box-shadow: 0 5px 12px rgba(240, 165, 0, 0.28);
  font-size: 0.56rem;
  line-height: 1;
  opacity: 0.9;
  transform: rotate(8deg);
}

.monthsary-star .star-symbol {
  color: #d99a00;
  font-size: 1.18rem;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.7);
}

.monthsary-star .star-word {
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.18s ease, opacity 0.18s ease;
}

.monthsary-star.is-lit {
  background: linear-gradient(135deg, #fff9df, #ffe9a8);
  animation: none;
}

.monthsary-star.is-lit::after {
  display: none;
}

.monthsary-star.is-lit .star-word {
  width: auto;
  max-width: 72px;
  opacity: 1;
  text-overflow: ellipsis;
}

.monthsary-final {
  display: none;
  margin-top: 12px !important;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #7d2848;
  font-size: 1rem !important;
}

.monthsary-final.show {
  display: block;
  animation: monthsaryFinalPop 360ms ease-out;
}

.monthsary-mini-heart {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: monthsaryHeartBurst 760ms ease-out forwards;
}

@keyframes monthsaryFinalPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes monthsaryHeartBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.45);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.25);
    opacity: 0;
  }
}

@keyframes monthsaryStarTease {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 209, 102, 0.42),
      0 10px 22px rgba(125, 40, 72, 0.22),
      inset 0 0 14px rgba(255, 255, 255, 0.72);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
      0 0 0 8px rgba(255, 209, 102, 0),
      0 14px 28px rgba(125, 40, 72, 0.28),
      inset 0 0 18px rgba(255, 255, 255, 0.9);
  }
}

@keyframes monthsaryReelPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes monthsaryReelSettle {
  0% {
    transform: scale(0.98);
  }
  58% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes monthsaryOrbitGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.82) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.72) rotate(360deg);
  }
}

.speech-bubble {
  position: fixed;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 69, 105, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.16s ease;
  z-index: 10004;
  max-width: 200px;
  text-align: center;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #c44569 transparent transparent transparent;
}

.speech-bubble-1 {
  top: calc(50% + 70px);
  left: calc(50% - 190px);
}

.speech-bubble-2 {
  top: calc(50% + 80px);
  left: calc(50% + 20px);
}

.speech-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 36, 0.6);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.toast-overlay.show {
  opacity: 1;
  visibility: visible;
}

.question-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.question-popup.active {
  display: flex;
}

.question-popup-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  animation: popupFadeIn 0.25s ease-out;
  z-index: 10001;
  position: relative;
  transform: none;
}

@keyframes popupFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.question-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.question-text {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.question-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.question-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 54px;
  padding: 0 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
  line-height: 1;
  touch-action: manipulation;
  pointer-events: auto;
  z-index: 1;
}

.question-btn:hover {
  transform: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.question-btn-yes {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.question-btn-no {
  background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
}

.question-gif {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 300px;
  max-height: 300px;
  display: none;
  z-index: 30000;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  padding: 20px;
}

.question-gif.question-gif-no {
  background: none;
  border: none;
}

.question-gif.active {
  display: block;
  animation: gifPopIn 0.5s ease-out;
}

.question-no-text {
  position: fixed;
  top: calc(50% + 180px);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 30000;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  padding: 15px 25px;
  border-radius: 15px;
}

.question-no-text.active {
  display: block;
  animation: gifPopIn 0.5s ease-out;
}

.question-no-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 29999;
  display: none;
  pointer-events: none;
}

.question-no-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gifPopIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .question-popup-content {
    padding: 30px 20px;
    max-width: 90%;
  }

  .question-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .question-text {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .question-buttons {
    gap: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .question-btn {
    padding: 0 30px;
    font-size: 1rem;
    width: 100px;
    min-width: 100px;
    height: 50px;
    touch-action: manipulation;
  }
}
