:root {
  --bg-top: #fff7fd;
  --bg-bottom: #f0e9ff;
  --bg-wash: #ffe4f4;
  --card: rgba(255, 255, 255, 0.6);
  --card-strong: rgba(255, 255, 255, 0.76);
  --text-main: #4a315f;
  --text-soft: #73598d;
  --accent: #ee7fc9;
  --accent-2: #9f7ae8;
  --accent-3: #c69cff;
  --shadow: 0 28px 70px rgba(143, 104, 196, 0.18);
  --border: rgba(180, 145, 232, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(238, 127, 201, 0.26), transparent 28%),
    radial-gradient(circle at bottom right, rgba(159, 122, 232, 0.22), transparent 24%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom) 56%, var(--bg-wash));
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  position: relative;
  z-index: 1;
}

.hero-card {
  width: min(920px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 255, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--accent-2);
}

h1 {
  margin: 16px 0 10px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.6rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.subtitle {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

.countdown-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 241, 255, 0.75));
  border: 1px solid rgba(180, 145, 232, 0.2);
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 0.96rem;
  flex-wrap: wrap;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.time-box {
  padding: 20px 14px;
  text-align: center;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(180, 145, 232, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.time-value {
  display: block;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}

.time-label {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.countdown-note {
  margin: 18px 2px 4px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.message-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.message-strip > div {
  padding: 20px;
  border-radius: 22px;
  background: var(--card-strong);
  border: 1px solid rgba(180, 145, 232, 0.16);
}

.message-strip p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.message-title {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.background-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.5;
  z-index: 0;
}

.glow-left {
  top: -80px;
  left: -60px;
  background: rgba(238, 127, 201, 0.28);
}

.glow-right {
  right: -80px;
  bottom: -90px;
  background: rgba(159, 122, 232, 0.24);
}

.card-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.card-sparkles span {
  position: absolute;
  color: rgba(159, 122, 232, 0.18);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  animation: shimmer 18s linear infinite;
}

.card-sparkles span:nth-child(1) {
  top: 12%;
  left: 7%;
  animation-delay: 0s;
}

.card-sparkles span:nth-child(2) {
  top: 22%;
  right: 12%;
  animation-delay: 4s;
}

.card-sparkles span:nth-child(3) {
  top: 64%;
  left: 14%;
  animation-delay: 2s;
}

.card-sparkles span:nth-child(4) {
  top: 70%;
  right: 16%;
  animation-delay: 6s;
}

.card-sparkles span:nth-child(5) {
  top: 42%;
  left: 48%;
  animation-delay: 8s;
}

.card-sparkles span:nth-child(6) {
  top: 16%;
  left: 52%;
  animation-delay: 10s;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-hearts span {
  position: absolute;
  bottom: -10%;
  color: rgba(238, 127, 201, 0.2);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  animation: drift linear infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.16;
  }

  50% {
    transform: translateY(-8px) scale(1.08);
    opacity: 0.3;
  }
}

.floating-hearts span:nth-child(1) {
  left: 10%;
  animation-duration: 14s;
}

.floating-hearts span:nth-child(2) {
  left: 24%;
  animation-duration: 19s;
  animation-delay: 2s;
}

.floating-hearts span:nth-child(3) {
  left: 40%;
  animation-duration: 16s;
  animation-delay: 6s;
}

.floating-hearts span:nth-child(4) {
  left: 62%;
  animation-duration: 17s;
  animation-delay: 4s;
}

.floating-hearts span:nth-child(5) {
  left: 78%;
  animation-duration: 20s;
  animation-delay: 1s;
}

.floating-hearts span:nth-child(6) {
  left: 90%;
  animation-duration: 15s;
  animation-delay: 5s;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  to {
    transform: translateY(-120vh) translateX(24px) rotate(20deg);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .hero-card {
    padding: 24px;
  }

  .countdown-grid,
  .message-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 18px 12px;
  }

  h1 {
    margin-top: 12px;
  }

  .countdown-grid,
  .message-strip {
    grid-template-columns: 1fr;
  }

  .time-box {
    padding: 18px 12px;
  }
}
