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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0d2418, #1a472a);
  color: #f0f7f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.site-logo {
  display: block;
  margin: 0 auto 10px auto;
  width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  border-radius: 10px;
  text-align: center;
}

/* Background Elements */
.bg-elements,
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.snowflake {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Container */
.container {
  max-width: 880px;
  width: 90%;
  padding: 40px 20px;
  z-index: 2;
  position: relative;
  text-align: center;
}

.header {
  margin-bottom: 30px;
}

.main-title {
  font-size: 3rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
  animation: soft-pulse 6s infinite alternate;
}

.company-name {
  font-size: 2.4rem;
  color: #ffd54f;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.header p {
  color: #d4edda;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Separator */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.separator-icon {
  margin: 0 10px;
  font-size: 1.6rem;
  color: #ffd54f;
}

/* Card */
.card-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.1s ease-in-out;
  cursor: pointer;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
}

.card-front {
  background: linear-gradient(
    145deg,
    rgba(26, 71, 42, 0.95),
    rgba(13, 36, 24, 0.95)
  );
}

.card-front h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.card-front p {
  color: #d4edda;
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.ornaments-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.ornament {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.ornament:hover {
  transform: scale(1.1);
}

.ornament-joy {
  background: linear-gradient(135deg, #c62828, #e53935);
}

.ornament-peace {
  background: linear-gradient(135deg, #2a623d, #388e3c);
}

.ornament-love {
  background: linear-gradient(135deg, #f9a825, #ffb300);
  color: #333;
}

.ornament-hope {
  background: linear-gradient(135deg, #1565c0, #1976d2);
}

.click-hint {
  margin-top: 15px;
  color: #ffd54f;
  font-size: 0.95rem;
  animation: fade 3s infinite alternate;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.card-back {
  background: linear-gradient(
    145deg,
    rgba(13, 36, 24, 0.98),
    rgba(26, 71, 42, 0.98)
  );
  transform: rotateY(180deg);
}

.message-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px 20px;
  max-width: 90%;
  text-align: center;
  color: #333;
}

.wish-type {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.message-title {
  font-size: 1.6rem;
  color: #1a472a;
  margin-bottom: 10px;
}

.message-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.btn-flip {
  background: linear-gradient(135deg, #1a472a, #2a623d);
  color: #fff;
}

.btn-share {
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  color: #d4edda;
  font-size: 1rem;
  padding-bottom: 40px;
}

.footer-logo {
  color: #ffd54f;
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.footer a {
  color: #ffd54f;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  .company-name {
    font-size: 2rem;
  }
  .card {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }
  .company-name {
    font-size: 1.6rem;
  }
  .site-logo {
    width: 140px;
  }

  .card {
    width: 95%;
    max-width: 380px;
    height: auto;
    min-height: 440px;
  }

  .card-front,
  .card-back {
    padding: 20px 15px;
  }

  .ornaments-container {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ornament {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 0.9rem;
    margin: 5px;
  }

  .card-front h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .card-front p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .message-display {
    width: 100%;
    max-width: 320px;
    padding: 25px 15px;
  }

  .message-title {
    font-size: 1.4rem;
  }

  .message-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    padding: 12px;
    font-size: 1rem;
  }

  .click-hint {
    font-size: 0.9rem;
    margin-top: 15px;
  }
}
