@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Fredoka:wght@500;600;700&family=Great+Vibes&family=Lobster&family=Pacifico&display=swap");

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 5rem, transparent 5.2rem),
    radial-gradient(circle at 82% 10%, rgba(255, 220, 245, 0.75) 0 6rem, transparent 6.3rem),
    radial-gradient(circle at 72% 74%, rgba(180, 228, 255, 0.65) 0 7rem, transparent 7.4rem),
    linear-gradient(135deg, #fff8f3 0%, #ffe6f4 34%, #efe9ff 68%, #e8f7ff 100%) !important;
  font-family: "Fredoka", var(--font-base);
  animation: datesSkyGlow 18s ease-in-out infinite;
}

body.birthday-mode {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 245, 186, 0.95) 0 6rem, transparent 6.3rem),
    radial-gradient(circle at 82% 14%, rgba(255, 105, 180, 0.42) 0 8rem, transparent 8.5rem),
    radial-gradient(circle at 72% 74%, rgba(180, 228, 255, 0.72) 0 7rem, transparent 7.4rem),
    linear-gradient(135deg, #fff8df 0%, #ffe0f4 38%, #eadfff 72%, #e8f7ff 100%) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 70%);
  animation: calendarGridDrift 28s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 105, 180, 0.22), transparent 14rem),
    radial-gradient(circle at 78% 26%, rgba(201, 160, 220, 0.28), transparent 16rem),
    radial-gradient(circle at 50% 80%, rgba(255, 245, 186, 0.32), transparent 18rem);
  filter: blur(3px);
  animation: dreamyBloom 16s ease-in-out infinite alternate;
}

#main-content {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

#dates-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.date-spark {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 1.4rem;
  animation: dateSparkPop 900ms ease-out forwards;
}

.dates-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.dates-hero {
  text-align: center;
  padding: 2.8rem 1rem 1.7rem;
  position: relative;
}

.dates-hero::before {
  content: "💌  ✦  📅  ✦  💖";
  display: block;
  width: max-content;
  margin: 0 auto 0.7rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: #c71585;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(255, 105, 180, 0.14);
  animation: charmFloat 4s ease-in-out infinite;
}

.dates-kicker {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 105, 180, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #c71585;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  box-shadow: 0 8px 22px rgba(255, 105, 180, 0.12);
}

.dates-hero h1 {
  margin-top: 0.8rem;
  color: #ff1493;
  font-family: "Pacifico", "Fredoka", var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  text-shadow:
    0 3px 0 #fff,
    0 8px 22px rgba(255, 105, 180, 0.38),
    0 0 34px rgba(255, 179, 217, 0.58);
  animation: titleSway 5s ease-in-out infinite;
}

.dates-hero p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: #7b5267;
  font-size: 1.12rem;
  font-weight: 600;
}

.next-date-panel {
  margin: 1rem auto 2rem;
  padding: 1.65rem;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 238, 248, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 179, 217, 0.14) 52px 54px);
  box-shadow:
    0 22px 55px rgba(255, 105, 180, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(150%);
  position: relative;
  overflow: hidden;
  animation: panelRise 700ms ease both;
}

.birthday-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #8a3a00;
  background:
    linear-gradient(135deg, rgba(255, 245, 186, 0.95), rgba(255, 179, 217, 0.9));
  box-shadow:
    0 12px 30px rgba(255, 105, 180, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-weight: 900;
  animation: birthdayBanner 1.6s ease-in-out infinite;
}

.birthday-banner strong {
  font-family: "Caveat", "Fredoka", cursive;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.birthday-banner[hidden] {
  display: none;
}

.birthday-banner span {
  font-size: 1.25rem;
}

.next-date-panel::before,
.next-date-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.next-date-panel::before {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -5rem;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.28), transparent 68%);
  animation: softPulse 5s ease-in-out infinite;
}

.next-date-panel::after {
  width: 9rem;
  height: 9rem;
  left: -3rem;
  bottom: -4rem;
  background: radial-gradient(circle, rgba(180, 228, 255, 0.38), transparent 68%);
  animation: softPulse 6s ease-in-out infinite reverse;
}

.next-date-label {
  color: #c71585;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.next-date-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.next-date-emoji {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, #ff69b4, #c9a0dc 65%, #b4e4ff);
  box-shadow:
    0 12px 28px rgba(255, 105, 180, 0.34),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
  font-size: 2.3rem;
  animation: emojiOrbit 3.5s ease-in-out infinite;
}

.next-date-content h2 {
  margin: 0 0 0.35rem;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.next-date-content p {
  margin: 0;
  color: #76566a;
  font-family: "Caveat", "Fredoka", cursive;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.countdown-grid div {
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 242, 248, 0.78));
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 217, 0.22),
    0 10px 18px rgba(201, 160, 220, 0.12);
  transform: translateY(0);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.countdown-grid div:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 217, 0.38),
    0 16px 26px rgba(255, 105, 180, 0.18);
}

.countdown-grid strong {
  display: block;
  color: #ff1493;
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  line-height: 1;
  transform-origin: center;
}

.countdown-grid span {
  display: block;
  margin-top: 0.35rem;
  color: #8b4a6b;
  font-weight: 700;
  font-size: 0.82rem;
}

.countdown-grid strong.digit-pop {
  animation: digitPop 420ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.date-progress {
  display: grid;
  gap: 0.68rem;
  margin-top: 1.2rem;
  padding: 0.85rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 238, 248, 0.32)),
    radial-gradient(circle at 12% 50%, rgba(255, 179, 217, 0.26), transparent 8rem),
    radial-gradient(circle at 88% 50%, rgba(180, 228, 255, 0.3), transparent 8rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 0 0 1px rgba(255, 179, 217, 0.22),
    0 14px 30px rgba(201, 160, 220, 0.14);
  overflow: hidden;
}

.date-progress-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  color: #8c4b70;
}

.date-progress-heading strong {
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.date-progress-heading span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  opacity: 0.82;
  text-transform: uppercase;
}

.date-progress-heading span:last-child {
  text-align: right;
}

.date-progress-track {
  --progress: 0;
  --progress-percent: 0%;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: clamp(0.34rem, 1.4vw, 0.72rem);
  min-width: 0;
  position: relative;
}

.date-progress-endpoint {
  display: grid;
  place-items: center;
  width: clamp(2.15rem, 7vw, 3rem);
  height: clamp(2.15rem, 7vw, 3rem);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.9), transparent 1rem),
    linear-gradient(135deg, rgba(255, 179, 217, 0.86), rgba(201, 160, 220, 0.66), rgba(180, 228, 255, 0.58));
  box-shadow:
    0 10px 24px rgba(255, 105, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  z-index: 1;
}

.date-progress-segment {
  min-width: 0;
  height: clamp(0.82rem, 2.2vw, 1.05rem);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(178, 212, 240, 0.42), rgba(255, 255, 255, 0.62), rgba(255, 203, 233, 0.46));
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 217, 0.22),
    inset 0 2px 6px rgba(117, 72, 120, 0.08),
    0 8px 18px rgba(255, 105, 180, 0.09);
  overflow: hidden;
  position: relative;
}

.date-progress-segment > span {
  --segment-fill: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 50%, rgba(255, 255, 255, 0.5), transparent 1.1rem),
    linear-gradient(90deg, #ff1493 0%, #ff55ad 34%, #b84bd6 68%, #36bdf8 100%);
  box-shadow:
    0 0 24px rgba(255, 20, 147, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  transform: scaleX(var(--segment-fill));
  transform-origin: left center;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.date-progress-segment.is-filled > span,
.date-progress-segment.is-current > span {
  filter: saturate(1.18) brightness(1.03);
}

.date-progress-segment > span::after {
  content: "";
  position: absolute;
  inset: -35% 0;
  background:
    linear-gradient(105deg, transparent 0 35%, rgba(255, 255, 255, 0.6) 48%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-115%);
}

.date-progress-segment.is-filled > span::after,
.date-progress-segment.is-current > span::after {
  opacity: 0.6;
  animation: progressShine 2.6s linear infinite;
}

.date-progress-segment.is-current {
  box-shadow:
    inset 0 0 0 1px rgba(255, 105, 180, 0.3),
    0 10px 22px rgba(255, 105, 180, 0.14);
}

#date-progress-label {
  color: #9a4d77;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.date-meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.love-calendar {
  margin: 1.3rem 0 2rem;
}

.calendar-launcher {
  width: min(720px, 100%);
  min-height: 150px;
  margin: 0 auto;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  color: #56354a;
  text-align: left;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.9), transparent 5rem),
    radial-gradient(circle at 92% 12%, rgba(180, 228, 255, 0.42), transparent 7rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 230, 245, 0.76));
  box-shadow:
    0 20px 44px rgba(201, 160, 220, 0.18),
    0 8px 22px rgba(255, 105, 180, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  position: relative;
  overflow: hidden;
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
  transition: transform 240ms cubic-bezier(0.2, 1.25, 0.36, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.calendar-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.46) 42%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 220ms ease, transform 420ms ease;
}

.calendar-launcher:hover,
.calendar-launcher:focus-visible {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: rgba(255, 105, 180, 0.5);
  box-shadow:
    0 28px 56px rgba(255, 105, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.calendar-launcher:hover::before,
.calendar-launcher:focus-visible::before {
  opacity: 1;
  transform: translateX(40%);
}

.calendar-launcher-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 236, 247, 0.96), rgba(225, 243, 255, 0.86));
  box-shadow:
    0 12px 24px rgba(255, 105, 180, 0.16),
    inset 0 0 0 1px rgba(255, 179, 217, 0.32);
  font-size: 2.4rem;
}

.calendar-launcher-copy,
.calendar-launcher-action,
.calendar-launcher-icon {
  position: relative;
}

.calendar-launcher-copy {
  display: grid;
  gap: 0.28rem;
}

.calendar-launcher-copy strong {
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.calendar-launcher-copy > span:last-child {
  color: #87546e;
  font-weight: 800;
}

.calendar-launcher-action {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c986d9);
  box-shadow: 0 12px 24px rgba(255, 105, 180, 0.22);
  font-weight: 900;
  white-space: nowrap;
}

.flip-calendar-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 179, 217, 0.34), transparent 22rem),
    rgba(73, 28, 58, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 30020;
  overflow-y: auto;
}

.flip-calendar-modal[aria-hidden="false"] {
  display: flex;
  animation: modalFade 220ms ease both;
}

.flip-calendar-shell {
  width: min(820px, 100%);
  position: relative;
  padding: 1.35rem;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 14rem),
    linear-gradient(135deg, rgba(255, 249, 253, 0.86), rgba(255, 231, 245, 0.9));
  box-shadow:
    0 30px 90px rgba(91, 43, 77, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  perspective: 1400px;
}

.flip-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3.2rem;
  margin-bottom: 1rem;
}

.flip-calendar-header h2 {
  margin: 0;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 400;
}

.flip-calendar-expand,
.flip-calendar-nav,
.flip-page-tab {
  border: 1px solid rgba(255, 179, 217, 0.45);
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
  font-family: inherit;
  font-weight: 900;
}

.flip-calendar-expand,
.flip-calendar-nav {
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  color: #8a4567;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 20px rgba(255, 105, 180, 0.12);
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.flip-calendar-expand:hover,
.flip-calendar-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 105, 180, 0.18);
}

.flip-calendar-stage {
  perspective: 1200px;
}

.flip-calendar-page {
  min-height: 430px;
  padding: 1.35rem;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(90deg, rgba(255, 214, 234, 0.42) 0 10px, transparent 10px),
    radial-gradient(circle at 88% 12%, rgba(180, 228, 255, 0.36), transparent 10rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 241, 248, 0.92));
  box-shadow:
    0 24px 50px rgba(201, 160, 220, 0.22),
    inset 12px 0 22px rgba(129, 67, 112, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform-origin: left center;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.flip-page-binding {
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0.85rem;
  width: 8px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 105, 180, 0.42) 0 14px, rgba(255, 255, 255, 0.72) 14px 26px);
  box-shadow: 0 0 14px rgba(255, 105, 180, 0.16);
}

.flip-calendar-page.is-flipping-forward {
  animation: calendarPageFlipForward 520ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.flip-calendar-page.is-flipping-back {
  animation: calendarPageFlipBack 520ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.flip-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.flip-page-emoji {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 235, 247, 0.96), rgba(222, 243, 255, 0.88));
  box-shadow: 0 14px 28px rgba(255, 105, 180, 0.18);
  font-size: 2.35rem;
}

.flip-page-type {
  padding: 0.5rem 0.86rem;
  border-radius: 999px;
  color: #c22f83;
  background: rgba(255, 214, 236, 0.74);
  font-weight: 900;
  text-transform: uppercase;
}

.flip-calendar-page h3 {
  margin: 1rem 0 0.35rem;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.flip-page-when {
  margin: 0;
  color: #ff1493;
  font-weight: 900;
}

.flip-page-message {
  margin: 1rem 0;
  color: #70465d;
  font-family: "Caveat", "Fredoka", cursive;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
}

.flip-page-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.flip-page-facts span {
  padding: 0.72rem;
  border-radius: 16px;
  color: #76506a;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.22);
  font-weight: 800;
}

.flip-page-facts b {
  display: block;
  color: #a84775;
  font-size: 0.78rem;
}

.flip-page-countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c986d9);
  box-shadow: 0 14px 28px rgba(255, 105, 180, 0.22);
  font-weight: 900;
}

.flip-calendar-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.flip-calendar-controls span {
  color: #8a4567;
  font-weight: 900;
  white-space: nowrap;
}

.flip-calendar-next {
  justify-self: end;
}

.flip-calendar-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.flip-calendar-pages[hidden] {
  display: none;
}

.flip-page-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.52rem;
  padding: 0.7rem;
  border-radius: 18px;
  color: #69445b;
  text-align: left;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.16);
}

.flip-page-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c986d9);
}

.flip-page-tab span {
  grid-row: span 2;
  font-size: 1.35rem;
}

.flip-page-tab strong,
.flip-page-tab small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-strip-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.calendar-strip-header .dates-kicker {
  margin-bottom: 0.55rem;
}

.calendar-strip-header h2 {
  margin: 0;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.love-calendar::after {
  display: none;
}

.calendar-month {
  min-height: 260px;
  padding: 0.85rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 179, 217, 0.18), transparent 4.8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 248, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 179, 217, 0.24),
    0 10px 22px rgba(255, 105, 180, 0.12);
  backdrop-filter: blur(12px) saturate(145%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.calendar-month:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 179, 217, 0.38),
    0 16px 30px rgba(255, 105, 180, 0.18);
}

.calendar-month.is-current-month {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 105, 180, 0.2), transparent 4rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 234, 247, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 2px rgba(255, 105, 180, 0.3),
    0 16px 30px rgba(255, 105, 180, 0.17);
}

.calendar-month strong {
  display: block;
  color: #93496f;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  text-align: center;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.calendar-weekday {
  color: #b05a87;
  font-size: 0.63rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 31px;
  display: grid;
  place-items: center;
  gap: 0.02rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(117, 83, 102, 0.58);
  font-family: "Fredoka", var(--font-base);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-day.is-empty {
  background: transparent;
}

.calendar-day.is-today {
  box-shadow:
    inset 0 0 0 1px rgba(255, 105, 180, 0.42),
    0 6px 14px rgba(255, 105, 180, 0.12);
}

.calendar-day.has-special-date {
  min-height: 44px;
  color: #8b3f67;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.88), transparent 1.2rem),
    linear-gradient(135deg, rgba(255, 232, 247, 0.95), rgba(232, 246, 255, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 105, 180, 0.3),
    0 8px 18px rgba(255, 105, 180, 0.15);
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.calendar-day.has-special-date:hover,
.calendar-day.has-special-date:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 105, 180, 0.58),
    0 12px 22px rgba(255, 105, 180, 0.24);
}

.calendar-day-number {
  display: block;
  line-height: 1;
}

.calendar-day-marks {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  font-size: 0.92rem;
  line-height: 1;
}

.meaning-card {
  min-height: 150px;
  padding: 1.1rem;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 248, 0.8));
  box-shadow:
    0 14px 28px rgba(201, 160, 220, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  animation: cardFloatIn 700ms ease both;
}

.meaning-card:nth-child(2) {
  animation-delay: 80ms;
}

.meaning-card:nth-child(3) {
  animation-delay: 160ms;
}

.meaning-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.28);
}

.meaning-card h2 {
  margin: 0.8rem 0 0.35rem;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.meaning-card p {
  margin: 0;
  color: #7d5a6d;
  font-family: "Caveat", "Fredoka", cursive;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.12;
}

.date-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.date-view-toggle,
.date-type-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.date-view,
.date-filter,
.date-sound-toggle {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 179, 217, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #8b4a6b;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 179, 217, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.date-sound-toggle {
  min-width: 132px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 239, 248, 0.76));
}

.date-sound-toggle[aria-pressed="false"] {
  color: #806174;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(237, 232, 245, 0.72));
}

.date-view::after,
.date-filter::after,
.date-sound-toggle::after {
  content: "✨";
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: right 220ms ease, opacity 220ms ease;
}

.date-view:hover,
.date-filter:hover,
.date-sound-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 105, 180, 0.2);
}

.date-view:hover::after,
.date-filter:hover::after,
.date-sound-toggle:hover::after {
  right: 0.55rem;
  opacity: 0.9;
}

.date-view.active,
.date-filter.active {
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c9a0dc);
  text-shadow: 0 1px 2px rgba(121, 55, 95, 0.45);
}

.date-filter:disabled {
  cursor: not-allowed !important;
  opacity: 0.48;
  filter: grayscale(0.2);
  transform: none;
}

.date-filter:disabled::after {
  display: none;
}

.date-view:focus-visible,
.date-filter:focus-visible,
.date-sound-toggle:focus-visible,
.calendar-day.has-special-date:focus-visible,
.date-modal-close:focus-visible {
  outline: 3px solid rgba(255, 105, 180, 0.62);
  outline-offset: 4px;
}

.dates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  justify-items: center;
  perspective: 1200px;
}

.dates-list:has(.date-card:only-child) {
  grid-template-columns: minmax(260px, 360px);
  justify-content: center;
}

.date-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 0%;
  appearance: none;
  text-align: left;
  color: inherit;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  min-height: 260px;
  padding: 1.25rem;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.92), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 250, 0.36)),
    linear-gradient(135deg, rgba(255, 179, 217, 0.26), rgba(180, 228, 255, 0.2));
  box-shadow:
    0 16px 34px rgba(201, 160, 220, 0.2),
    0 6px 18px rgba(255, 105, 180, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 179, 217, 0.22);
  transform: translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(0deg);
  transform-style: preserve-3d;
  transition:
    transform 260ms cubic-bezier(0.2, 1.25, 0.36, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    filter 260ms ease;
  animation: cardFloatIn 600ms ease both;
  animation-delay: var(--card-delay, 0ms);
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.date-card:nth-child(2n) {
  animation-delay: 80ms;
}

.date-card:nth-child(3n) {
  animation-delay: 140ms;
}

.date-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 34%, rgba(255, 255, 255, 0.18) 54%, transparent 72%),
    radial-gradient(circle at top right, rgba(255, 179, 217, 0.32), transparent 55%);
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 220ms ease;
}

.date-card::after {
  content: attr(data-flair);
  position: absolute;
  right: -0.8rem;
  bottom: -1.2rem;
  font-size: 6.4rem;
  line-height: 1;
  opacity: 0.11;
  filter: blur(0.2px) drop-shadow(0 8px 14px rgba(255, 105, 180, 0.18));
  transform: rotate(-14deg) scale(0.88);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 1.4, 0.34, 1);
  animation: cardFlairFloat 5.2s ease-in-out infinite;
}

.date-card:hover {
  transform: translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1deg) scale(1.025);
  border-color: rgba(255, 179, 217, 0.78);
  filter: saturate(1.08);
  box-shadow:
    0 30px 62px rgba(255, 105, 180, 0.25),
    0 12px 30px rgba(201, 160, 220, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 179, 217, 0.28);
}

.date-card:hover::before {
  opacity: 1;
}

.date-card:hover::after {
  opacity: 0.2;
  transform: translate(-0.35rem, -0.35rem) rotate(-7deg) scale(1.02);
}

.date-card:active {
  transform: translateY(-4px) rotateX(0deg) rotateY(0deg) scale(0.985);
}

.date-card.is-pressed {
  transform: translateY(-3px) rotateX(0deg) rotateY(0deg) scale(0.97);
}

.date-card:focus-visible {
  outline: 4px solid rgba(255, 105, 180, 0.64);
  outline-offset: 4px;
  border-color: rgba(255, 105, 180, 0.72);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.58),
    0 26px 48px rgba(255, 105, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.date-card.is-today {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow:
    0 24px 48px rgba(255, 105, 180, 0.24),
    0 0 32px rgba(255, 215, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.date-card--birthday {
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.92), transparent 12rem),
    linear-gradient(135deg, rgba(255, 242, 248, 0.68), rgba(255, 226, 241, 0.48) 50%, rgba(255, 255, 255, 0.42));
}

.date-card--anniversary {
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.92), transparent 12rem),
    linear-gradient(135deg, rgba(255, 238, 248, 0.62), rgba(238, 231, 255, 0.5) 52%, rgba(255, 255, 255, 0.4));
}

.date-card--memory {
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.92), transparent 12rem),
    linear-gradient(135deg, rgba(255, 250, 231, 0.62), rgba(238, 246, 255, 0.5) 52%, rgba(255, 239, 248, 0.42));
}

.date-card > * {
  position: relative;
  transform: translateZ(18px);
}

.date-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-emoji {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.28);
  font-size: 2rem;
  animation: tinyBounce 3.2s ease-in-out infinite;
  backdrop-filter: blur(10px);
  transition: transform 260ms cubic-bezier(0.2, 1.35, 0.36, 1), filter 260ms ease, box-shadow 260ms ease;
}

.date-card:hover .date-emoji {
  transform: translateZ(28px) scale(1.12) rotate(6deg);
  filter: drop-shadow(0 8px 14px rgba(255, 105, 180, 0.28));
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 217, 0.44),
    0 10px 22px rgba(255, 105, 180, 0.16);
}

.date-type {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 179, 217, 0.28);
  color: #b83280;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.date-card h2 {
  margin: 1rem 0 0.35rem;
  color: #55364a;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: 1.48rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  transition: color 220ms ease, transform 220ms ease, text-shadow 220ms ease;
}

.date-card:hover h2 {
  color: #ff1493;
  transform: translateZ(24px) translateY(-2px);
  text-shadow: 0 5px 14px rgba(255, 105, 180, 0.16);
}

.date-when {
  color: #ff1493;
  font-weight: 800;
}

.date-description {
  margin-top: 0.8rem;
  color: #735366;
  font-family: "Caveat", "Fredoka", cursive;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.05;
  display: -webkit-box;
  min-height: 3.15em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.date-distance {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 240, 247, 0.92), rgba(238, 246, 255, 0.88));
  color: #7b3f61;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.date-card:hover .date-distance {
  transform: translateZ(22px) translateY(-2px);
  background:
    linear-gradient(90deg, rgba(255, 234, 247, 0.96), rgba(232, 246, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 217, 0.32),
    0 10px 20px rgba(255, 105, 180, 0.1);
}

.dates-empty {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 440px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.dates-empty h2 {
  font-family: "Lobster", "Fredoka", sans-serif;
  font-weight: 400;
}

.dates-empty p {
  font-family: "Caveat", "Fredoka", cursive;
  font-size: 1.35rem;
  font-weight: 600;
}

.dates-empty div {
  font-size: 3rem;
}

.date-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.2rem max(1rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 179, 217, 0.28), transparent 22rem),
    rgba(73, 28, 58, 0.34);
  backdrop-filter: blur(16px);
  z-index: 30000;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.date-modal[aria-hidden="false"] {
  display: flex;
  animation: modalFade 220ms ease both;
}

.date-modal-card {
  width: min(680px, 100%);
  max-height: none;
  overflow: auto;
  position: relative;
  padding: 2rem;
  margin: auto 0;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 240, 248, 0.86)),
    radial-gradient(circle at top right, rgba(255, 179, 217, 0.32), transparent 16rem);
  box-shadow:
    0 28px 80px rgba(91, 43, 77, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: modalPop 260ms cubic-bezier(0.2, 1.2, 0.4, 1) both;
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
}

.date-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 179, 217, 0.48);
  border-radius: 50%;
  color: #b8547a;
  background: rgba(255, 220, 240, 0.58);
  box-shadow:
    0 10px 24px rgba(255, 105, 180, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-weight: 900;
  line-height: 1;
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
  transition:
    transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 250ms ease,
    background 250ms ease,
    border-color 250ms ease,
    color 250ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.date-modal-close:hover {
  color: #ff4d8d;
  border-color: rgba(255, 107, 157, 0.68);
  background: rgba(255, 91, 154, 0.2);
  transform: rotate(90deg) scale(1.15);
  box-shadow:
    0 10px 26px rgba(255, 107, 157, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.date-modal-close:active {
  transform: rotate(90deg) scale(0.9);
}

.modal-date-emoji {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.86), transparent 36%),
    linear-gradient(135deg, #ff69b4, #c9a0dc, #b4e4ff);
  box-shadow: 0 16px 34px rgba(255, 105, 180, 0.3);
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.modal-date-type {
  margin: 0;
  color: #c71585;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.date-modal-card h2 {
  margin: 0.35rem 0;
  color: #4f3045;
  font-family: "Lobster", "Fredoka", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.06;
}

.modal-date-when {
  color: #ff1493;
  font-weight: 900;
}

.modal-date-message {
  color: #6f4f62;
  font-family: "Caveat", "Fredoka", cursive;
  font-size: clamp(1.7rem, 4.4vw, 2.18rem);
  font-weight: 600;
  line-height: 1.02;
}

.modal-date-message::after {
  content: "Neo & Lily";
  display: block;
  width: max-content;
  margin: 0.85rem 0 0 auto;
  color: #c71585;
  font-family: "Great Vibes", "Pacifico", cursive;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  opacity: 0.82;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.modal-fact {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 217, 0.2);
}

.modal-fact span {
  font-size: 1.45rem;
}

.modal-fact strong {
  display: block;
  color: #93496f;
  font-size: 0.8rem;
}

.modal-fact p {
  margin: 0.15rem 0 0;
  color: #62485a;
  font-weight: 750;
}

.modal-mini-countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c9a0dc);
  box-shadow: 0 16px 32px rgba(255, 105, 180, 0.24);
}

.modal-mini-countdown span {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  #main-content {
    padding-top: 24px;
  }

  .dates-page {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .dates-hero {
    padding: 1.6rem 0.5rem 1rem;
  }

  .dates-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .dates-hero p:last-child {
    font-size: 1rem;
  }

  .next-date-content p {
    font-size: 1.28rem;
  }

  .date-card h2 {
    font-size: 1.38rem;
  }

  .date-description {
    font-size: 1.18rem;
  }

  .next-date-content {
    align-items: flex-start;
  }

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

  .date-progress {
    padding: 0.72rem;
    border-radius: 20px;
  }

  .date-progress-heading {
    grid-template-columns: 1fr;
    gap: 0.16rem;
    text-align: center;
  }

  .date-progress-heading span,
  .date-progress-heading span:last-child {
    text-align: center;
  }

  .date-meaning-grid {
    grid-template-columns: 1fr;
  }

  .calendar-launcher {
    grid-template-columns: auto 1fr;
  }

  .calendar-launcher-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .flip-calendar-shell {
    padding: 1rem;
    border-radius: 26px;
  }

  .flip-calendar-header {
    display: grid;
    padding-right: 3rem;
  }

  .flip-page-facts {
    grid-template-columns: 1fr;
  }

  .date-toolbar {
    margin: 1.4rem 0;
  }

  .date-view,
  .date-filter,
  .date-sound-toggle {
    padding: 0.66rem 0.82rem;
  }

  .modal-facts {
    grid-template-columns: 1fr;
  }

  .date-modal {
    padding: 0.8rem;
  }

  .date-modal-card {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .modal-date-message {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  .next-date-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .next-date-emoji {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.8rem;
  }

  .next-date-content {
    gap: 0.75rem;
  }

  .countdown-grid {
    gap: 0.55rem;
  }

  .countdown-grid div {
    padding: 0.75rem 0.55rem;
  }

  .date-progress {
    gap: 0.52rem;
    padding: 0.64rem;
  }

  .date-progress-heading strong {
    white-space: normal;
  }

  .date-progress-heading span {
    font-size: 0.68rem;
  }

  .date-progress-track {
    gap: 0.24rem;
  }

  .date-progress-segment {
    height: 0.78rem;
  }

  #date-progress-label {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .calendar-launcher {
    min-height: auto;
    padding: 0.85rem;
    border-radius: 22px;
    gap: 0.75rem;
  }

  .calendar-launcher-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.9rem;
  }

  .calendar-launcher-copy strong {
    font-size: 1.32rem;
  }

  .flip-calendar-modal {
    align-items: flex-start;
    padding: 0.7rem;
  }

  .flip-calendar-page {
    min-height: 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: 22px;
  }

  .flip-calendar-page h3 {
    font-size: 1.72rem;
  }

  .flip-page-message {
    font-size: 1.38rem;
  }

  .flip-page-facts span {
    padding: 0.62rem;
  }

  .flip-page-emoji {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.9rem;
  }

  .flip-calendar-controls {
    grid-template-columns: 1fr;
  }

  .flip-calendar-next {
    justify-self: stretch;
  }

  .flip-calendar-nav {
    width: 100%;
  }

  .flip-calendar-controls span {
    text-align: center;
  }

  .flip-calendar-pages {
    grid-template-columns: 1fr;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.2rem;
  }

  .dates-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dates-list:has(.date-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .date-card {
    max-width: 100%;
    min-height: 240px;
  }

  .date-modal-card h2 {
    padding-right: 2.4rem;
  }

  .modal-date-message {
    font-size: 1.42rem;
  }

  .modal-date-message::after {
    font-size: 2rem;
    margin-left: auto;
    margin-right: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after,
  .dates-hero::before,
  .dates-hero h1,
  .next-date-panel,
  .next-date-panel::before,
  .next-date-panel::after,
  .next-date-emoji,
  .date-card,
  .date-card::after,
  .date-emoji,
  .date-spark,
  .date-progress-segment > span::after,
  .flip-calendar-modal,
  .flip-calendar-page,
  .meaning-card,
  .countdown-grid strong.digit-pop,
  .birthday-banner,
  .date-modal,
  .date-modal-card {
    animation: none !important;
  }

  .date-card,
  .date-view,
  .date-filter,
  .date-sound-toggle,
  .calendar-day.has-special-date,
  .calendar-month,
  .calendar-launcher,
  .flip-calendar-expand,
  .flip-calendar-nav,
  .date-progress-segment > span {
    transition: none !important;
  }
}

@keyframes datesSkyGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes calendarGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 88px 88px, 88px 88px; }
}

@keyframes dreamyBloom {
  from { opacity: 0.78; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes charmFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes titleSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg) translateY(-4px); }
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes emojiOrbit {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-7px) rotate(5deg); }
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(18px) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

@keyframes cardFlairFloat {
  0%, 100% { transform: rotate(-14deg) scale(0.88) translateY(0); }
  50% { transform: rotate(-8deg) scale(0.96) translateY(-8px); }
}

@keyframes tinyBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes dateSparkPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1.25) rotate(28deg); }
}

@keyframes digitPop {
  0% { transform: scale(0.86) translateY(6px); filter: brightness(1); }
  55% { transform: scale(1.18) translateY(-4px); filter: brightness(1.15); }
  100% { transform: scale(1) translateY(0); filter: brightness(1); }
}

@keyframes progressShine {
  from { transform: translateX(-115%) skewX(-12deg); }
  to { transform: translateX(115%) skewX(-12deg); }
}

@keyframes calendarPageFlipForward {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  48% { transform: rotateY(-24deg) translateX(-8px); filter: brightness(1.05); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

@keyframes calendarPageFlipBack {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  48% { transform: rotateY(18deg) translateX(8px); filter: brightness(1.05); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

@keyframes birthdayBanner {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
