:root {
  --pink-100: #ffe4e6;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-800: #9d174d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--pink-300) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--pink-800);
  overflow-x: hidden;
  padding: 1rem;
}

.container {
  max-width: 800px;
  width: 100%;
  margin: 2rem auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

header {
  margin-bottom: 2rem;
}

img {
  aspect-ratio: 1/1;
  max-width: 300px;
  width: 100%;
  border-radius: 50%;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--pink-600);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink-800);
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  text-wrap: pretty;
}

.glass-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(236, 72, 153, 0.2);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.message-box h2 {
  font-size: 1.8rem;
  color: var(--pink-600);
  margin-bottom: 1rem;
}

.message-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.highlight {
  font-weight: 900;
  font-size: 1.3rem !important;
  color: var(--pink-500);
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2deg);
  transition: transform 0.3s;
  margin-top: 1rem;
}

.highlight:hover {
  transform: rotate(2deg) scale(1.1);
}

.btn {
  background: linear-gradient(45deg, var(--pink-500), var(--pink-600));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

/* Animations */
.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 600px) {
  .glass-card {
    padding: 1.5rem;
  }
}

/* Envelope Onboarding */
.envelope-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--pink-300) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.envelope-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.envelope {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: var(--pink-800);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.envelope:hover {
  transform: translateY(-10px);
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 110px solid var(--pink-600);
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  transform-origin: top;
  z-index: 4;
  transition: transform 0.6s ease;
}

.envelope.open .flap {
  transform: rotateX(180deg);
}

.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 150px solid var(--pink-400);
  border-right: 150px solid var(--pink-400);
  border-bottom: 110px solid var(--pink-500);
  border-top: 90px solid transparent;
  z-index: 3;
  pointer-events: none;
  border-radius: 0 0 10px 10px;
}

.letter {
  position: absolute;
  bottom: 10px;
  left: 5%;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.8s ease 0.4s,
    z-index 0s ease 0.4s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.letter p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-600);
}

.envelope.open .letter {
  transform: translateY(-80px);
  z-index: 5;
}

.envelope-instruction {
  margin-top: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-800);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hidden {
  display: none !important;
}

#main-content {
  opacity: 0;
  transition: opacity 1s ease;
}

#main-content.visible {
  opacity: 1;
}
