* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e0000;
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
}

#flower-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 390px;
  z-index: 1;
  transition: opacity 0.6s ease;
}

#flower-container svg {
  width: 100%;
  height: auto;
}

#flower-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}

#flower-container.flash::after {
  animation: flashbang 0.8s ease forwards;
}

@keyframes flashbang {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 0; }
}

#reveal-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  backdrop-filter: blur(0px);
  z-index: 3;
  transition: background 0.8s ease, backdrop-filter 0.8s ease;
  pointer-events: none;
}

#reveal-curtain.active {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  pointer-events: all;
}

#card-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.5s ease;
}

#card-overlay.visible {
  visibility: visible;
  opacity: 1;
}

#memory-card {
  width: 300px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#card-overlay.visible #memory-card {
  transform: translateY(0);
  opacity: 1;
}

#memory-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 200px;
}

#message {
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

#card-closure {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#card-closure:active {
  background: rgba(255, 255, 255, 0.25);
}

#progression-button {
  width: 150px;
  height: 50px;
  background-color: #3b0202;
  color: white;
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  border-radius: 25px;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

#progression-button:active {
  background-color: #5a0303;
  transform: translateX(-50%) scale(0.96);
}

#hint {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, serif;
  font-size: 13px;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

#footer-message {
  position: fixed;
  bottom: 15%;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, serif;
  font-size: 15px;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  padding: 0 32px;
  z-index: 2;
}

#footer-message.visible {
  opacity: 1;
}

.petal, .clickable {
  transition: filter 0.3s ease;
}

.clickable:active {
  filter: brightness(1.4);
}