body {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 243, 184, 0.38), transparent 26%),
    linear-gradient(180deg, #f7f1ff 0%, #f6f0dc 100%);
  color: #4e4567;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.display-font {
  font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 11px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.08) 75px, transparent 160px);
}

.custom-nav {
  position: relative;
  z-index: 2;
  margin-bottom: 9px;
}

.custom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 8px 17px rgba(133, 125, 166, 0.1),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(11px) saturate(1.06);
}

.custom-nav-title {
  font-size: 15px;
  color: #574f6f;
  letter-spacing: 0.5px;
}

.bg-orb,
.bg-mesh {
  position: absolute;
  pointer-events: none;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.42;
}

.bg-orb-a {
  width: 170px;
  height: 170px;
  top: 60px;
  left: -45px;
  background: radial-gradient(circle, rgba(193, 173, 245, 0.82) 0%, rgba(193, 173, 245, 0) 70%);
  animation: driftA 16s ease-in-out infinite;
}

.bg-orb-b {
  width: 150px;
  height: 150px;
  top: 310px;
  right: -35px;
  background: radial-gradient(circle, rgba(255, 232, 151, 0.82) 0%, rgba(255, 232, 151, 0) 72%);
  animation: driftB 18s ease-in-out infinite;
}

.bg-orb-c {
  width: 120px;
  height: 120px;
  top: 490px;
  left: 60px;
  background: radial-gradient(circle, rgba(255, 200, 225, 0.76) 0%, rgba(255, 200, 225, 0) 72%);
  animation: driftC 20s ease-in-out infinite;
}

.bg-mesh {
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 34%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.03) 8%, rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0.02) 44%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.02) 78%);
  background-size: 100% 100%, 100% 100%, 220% 220%;
  opacity: 0.26;
  animation: meshFlow 24s linear infinite;
}

.hero-card,
.stage-card,
.love-card {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  padding: 14px;
  border-radius: 16px;
  box-sizing: border-box;
  border: 0.5px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 22px rgba(129, 118, 167, 0.12),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(13px) saturate(1.04);
}

.hero-card::before,
.stage-card::before,
.love-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(237, 233, 247, 0.34), rgba(248, 243, 221, 0.3)),
    rgba(255, 255, 255, 0.14);
}

.stage-card {
  background:
    linear-gradient(135deg, rgba(239, 235, 248, 0.32), rgba(249, 244, 223, 0.28)),
    rgba(255, 255, 255, 0.14);
  text-align: center;
}

.love-card {
  background:
    linear-gradient(135deg, rgba(239, 232, 248, 0.32), rgba(249, 244, 224, 0.28)),
    rgba(255, 255, 255, 0.14);
  text-align: center;
  min-height: 98px;
  padding-top: 6px;
  padding-bottom: 4px;
}

.hero-copy {
  text-align: center;
  margin-bottom: 11px;
}

.hero-time,
.hero-date,
.progress-label,
.section-title,
.section-tag,
.days-chip-label {
  color: #746b8e;
}

.hero-time {
  display: block;
  font-size: 14.5px;
}

.hero-title {
  display: block;
  margin-top: 5px;
  font-size: 15.5px;
}

.hero-duration {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  color: #8b73b3;
}

.days-chip {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 499.5px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.44),
    0 5px 10px rgba(125, 118, 157, 0.08);
}

.days-chip-number {
  font-size: 18px;
  color: #5b5175;
}

.days-chip-label {
  font-size: 11px;
}

.hero-date {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.68;
}

.photo-placeholder {
  position: relative;
  height: 146px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.36),
    0 7px 12px rgba(128, 120, 163, 0.1);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.section-title {
  font-size: 12.5px;
}

.section-tag {
  padding: 4px 8px;
  border-radius: 499.5px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.42);
}

.stage-name {
  display: block;
  margin-top: 7px;
  font-size: 22px;
  color: #4e4567;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11px;
}

.progress-value {
  font-size: 12px;
  color: #866fb1;
}

.progress-track {
  margin-top: 6px;
  height: 8px;
  border-radius: 499.5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.34);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c4b4e6 0%, #f0d98a 100%);
}

.love-button-wrap {
  position: relative;
  width: 145px;
  height: 80px;
  margin: 3px auto 0;
}

.love-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 94px;
  margin-left: -47px;
  margin-top: -44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 226, 0.44) 0%, rgba(255, 226, 239, 0.16) 42%, rgba(255, 184, 211, 0) 74%);
  animation: auraPulse 2.8s ease-in-out infinite;
}

.love-shadow {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 54px;
  height: 9px;
  margin-left: -27px;
  border-radius: 50%;
  background: rgba(163, 120, 156, 0.18);
  filter: blur(2px);
  animation: shadowBreath 2.8s ease-in-out infinite;
}

.love-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75px;
  height: 75px;
  margin-left: -37.5px;
  margin-top: -35px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartFloat 2.8s ease-in-out infinite;
}

.love-button-active {
  transform: scale(1.1) translateY(-4px);
}

.heart-image {
  width: 60px;
  height: 60px;
  display: block;
  filter:
    saturate(0.82)
    brightness(1.08)
    contrast(0.92)
    drop-shadow(0 5px 9px rgba(246, 186, 212, 0.2));
}

.burst-plus {
  position: absolute;
  z-index: 2;
  font-size: 20px;
  font-weight: 600;
  color: #ef7ea8;
  animation: plusFloat 900ms ease-out forwards;
}

@keyframes driftA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(26px, 9px, 0) scale(1.08);
  }
}

@keyframes driftB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-21px, -12px, 0) scale(1.1);
  }
}

@keyframes driftC {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(14px, -15px, 0) scale(1.12);
  }
}

@keyframes meshFlow {
  0% {
    background-position: 0 0, 0 0, 0% 0%;
  }

  100% {
    background-position: 0 0, 0 0, 130% 100%;
  }
}

@keyframes heartFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-6px) rotate(-2deg) scale(1.03);
  }
}

@keyframes auraPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.28;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.46;
  }
}

@keyframes shadowBreath {
  0%, 100% {
    transform: scaleX(0.92);
    opacity: 0.18;
  }

  50% {
    transform: scaleX(1.04);
    opacity: 0.12;
  }
}

@keyframes plusFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.78);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -54px) scale(1.1);
  }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; }
.page { width: min(100%, 460px); margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 14px 12px; }
.custom-nav { height: 48px; margin-bottom: 12px; }
.custom-nav-title { margin: 0; font-size: 16px; font-weight: 500; }
.hero-card, .stage-card, .love-card { margin-bottom: 12px; }
.hero-duration { margin-bottom: 0; font-weight: 500; font-size: clamp(23px, 6.4vw, 29px); }
.hero-title { margin-bottom: 0; font-weight: 500; }
.hero-time { font-variant-numeric: tabular-nums; }
.hero-photo { object-fit: cover; object-position: center; }
.photo-placeholder { height: auto; aspect-ratio: 2.3; }
.stage-name { margin-bottom: 0; font-weight: 500; }
.love-card { display: block; width: 100%; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.love-card:focus-visible { outline: 2px solid #866fb1; outline-offset: 3px; }
.love-button-active { animation: heartPress 300ms ease-out; }
.site-footer { position: relative; z-index: 1; text-align: center; padding: 10px 8px max(12px, env(safe-area-inset-bottom)); color: #746b8e; font-size: 12px; line-height: 1.8; }
.site-footer p { margin: 0; }
.site-footer a { color: #65577d; text-underline-offset: 3px; }
[hidden] { display: none !important; }
@keyframes heartPress { 0%, 100% { transform: scale(1); } 45% { transform: scale(.88) rotate(-3deg); } 75% { transform: scale(1.08); } }
@media (min-width: 768px) { .page { padding-top: 28px; } .custom-nav { margin-bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .burst-plus { animation: plusFloat 900ms ease-out forwards !important; } }

/* Tablet: a full-width anniversary card, with two cards below. */
@media (min-width: 640px) {
  .page {
    width: min(100%, 900px);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
    align-content: center;
  }
  .custom-nav, .hero-card, .site-footer, noscript { grid-column: 1 / -1; }
  .custom-nav { height: 56px; margin: 0; }
  .custom-nav-title { font-size: 18px; letter-spacing: 2px; }
  .hero-card, .stage-card, .love-card { margin: 0; border-radius: 24px; }
  .hero-card { padding: 26px; }
  .hero-copy { margin-bottom: 22px; }
  .hero-title { font-size: 19px; margin-top: 14px; }
  .hero-duration { font-size: 36px; margin-top: 16px; }
  .hero-date { font-size: 13px; }
  .days-chip { margin-top: 16px; padding: 8px 20px; }
  .days-chip-number { font-size: 24px; }
  .photo-placeholder { aspect-ratio: 2.3; border-radius: 18px; }
  .stage-card { padding: 24px; align-self: stretch; }
  .section-title { font-size: 14px; }
  .section-tag { font-size: 12px; }
  .stage-name { font-size: 30px; }
  .progress-row { font-size: 12px; margin-top: 24px; }
  .progress-value { font-size: 14px; }
  .love-card { display: flex; align-items: center; justify-content: center; min-height: 205px; }
  .love-button-wrap { width: 210px; height: 160px; margin: 0; }
  .love-button { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .heart-image { width: 100px; height: 100px; }
  .love-aura { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .love-shadow { width: 86px; height: 12px; margin-left: -43px; bottom: 20px; }
  .site-footer { padding-top: 4px; padding-bottom: 0; }
  .bg-orb-a { width: 420px; height: 420px; top: 40px; left: -100px; }
  .bg-orb-b { width: 400px; height: 400px; top: 350px; right: -80px; }
  .bg-orb-c { width: 300px; height: 300px; top: 700px; left: 160px; }
}

/* Desktop: the photo and timer on the left; stage and heart on the right. */
@media (min-width: 1024px) {
  .page {
    width: min(100%, 1200px);
    padding: 32px 40px;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    grid-template-rows: 60px minmax(264px, auto) minmax(210px, auto) auto;
    column-gap: 24px;
    row-gap: 20px;
    min-height: 100vh;
    min-height: 100svh;
  }
  .custom-nav { grid-row: 1; height: 60px; }
  .custom-nav-title { font-size: 20px; }
  .hero-card { grid-column: 1; grid-row: 2 / 4; padding: 30px; display: flex; flex-direction: column; }
  .hero-copy { margin-bottom: 28px; }
  .hero-time { font-size: 15px; letter-spacing: 1px; }
  .hero-title { font-size: 22px; margin-top: 18px; }
  .hero-duration { font-size: clamp(36px, 3.2vw, 46px); margin-top: 20px; white-space: nowrap; }
  .days-chip-number { font-size: 28px; }
  .days-chip-label { font-size: 13px; }
  .hero-date { margin-top: 14px; font-size: 14px; }
  .photo-placeholder { flex: 1; min-height: 225px; aspect-ratio: auto; }
  .stage-card { grid-column: 2; grid-row: 2; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
  .section-head { gap: 12px; }
  .section-title { font-size: 15px; }
  .section-tag { padding: 6px 14px; font-size: 13px; }
  .stage-name { font-size: 40px; margin-top: 18px; }
  .progress-row { margin-top: 30px; }
  .progress-track { height: 10px; margin-top: 12px; }
  .love-card { grid-column: 2; grid-row: 3; }
  .love-button-wrap { width: 250px; height: 175px; }
  .heart-image { width: 120px; height: 120px; }
  .love-aura { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .love-shadow { width: 100px; margin-left: -50px; bottom: 12px; }
  .site-footer { grid-row: 4; font-size: 12px; }
  .bg-orb-c { top: 380px; left: 440px; }
}
