:root {
  --bg: #f6f0ff;
  --bg-2: #e7dbff;
  --surface: rgba(255, 255, 255, 0.65);
  --accent: #b58cff;
  --accent-2: #ff9ad5;
  --accent-3: #7bd7ff;
  --text: #2b1f3f;
  --muted: #5b4c78;
  --shadow: 0 20px 45px rgba(88, 48, 140, 0.25);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, rgba(255, 154, 213, 0.22), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(123, 215, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(88, 48, 140, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(181, 140, 255, 0.22), transparent 45%),
    linear-gradient(-130deg, rgba(255, 154, 213, 0.18), transparent 45%);
  pointer-events: none;
  mix-blend-mode: screen;
}
body.theme-night {
  --accent: #9c7bff;
  --accent-2: #ff9ad5;
  --accent-3: #7bd7ff;
}
body.theme-breeze {
  --accent: #b08bff;
  --accent-2: #ffb3e3;
  --accent-3: #8edbff;
}
body.theme-rose {
  --accent: #c39bff;
  --accent-2: #ff9ad5;
  --accent-3: #7bd7ff;
}
body.theme-gold {
  --accent: #b58cff;
  --accent-2: #ffb0df;
  --accent-3: #8edbff;
}
body.theme-ember {
  --accent: #a980ff;
  --accent-2: #ff9ad5;
  --accent-3: #7bd7ff;
}
img {
  max-width: 100%;
}
h1, h2, h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 12px;
  letter-spacing: 0.4px;
}
a {
  text-decoration: none;
  color: inherit;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6vw 10px;
  background: linear-gradient(180deg, rgba(246, 240, 255, 0.92), rgba(246, 240, 255, 0.6), transparent);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 22px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 4px;
}
.brand-mark::before {
  left: 6px;
  transform: rotate(-35deg);
}
.brand-mark::after {
  left: 10px;
  transform: rotate(35deg);
}
.brand-text {
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a.active,
.nav-links a:hover {
  border-color: rgba(88, 48, 140, 0.2);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 25px rgba(88, 48, 140, 0.18);
}
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(88, 48, 140, 0.2);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}
.page-shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 70px 0 90px;
}
.page-shell.center-flow {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.story-shell {
  width: min(1220px, 94vw);
}
.story-cinema {
  display: grid;
  gap: 34px;
}
.memory-page {
  display: grid;
  gap: 34px;
}
.memory-hero {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.memory-hero h1 {
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: 0.94;
  margin-bottom: 14px;
}
.memory-hero .muted {
  line-height: 1.75;
}
.memory-chapter {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 245, 250, 0.76));
  border: 1px solid rgba(181, 140, 255, 0.18);
  box-shadow: 0 24px 55px rgba(88, 48, 140, 0.1);
}
.chapter-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chapter-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}
.chapter-copy .muted {
  max-width: 34rem;
  margin: 0;
}
.chapter-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}
.memory-grid {
  display: grid;
  gap: 14px;
}
.memory-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.memory-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.memory-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(27, 18, 42, 0.82);
  box-shadow: 0 18px 35px rgba(29, 18, 52, 0.14);
}
.memory-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.memory-shot-wide {
  grid-column: span 2;
}
.memory-shot-tall {
  grid-row: span 2;
}
.home-shell {
  padding-top: 44px;
  position: relative;
}
.surprise-hint {
  position: absolute;
  top: -4px;
  right: -18px;
  z-index: 1;
  width: min(250px, 44vw);
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 251, 253, 0.84);
  border: 1px solid rgba(214, 124, 170, 0.16);
  box-shadow: 0 16px 34px rgba(120, 71, 135, 0.08);
  backdrop-filter: blur(10px);
}
.surprise-hint-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a14f89;
}
.surprise-hint-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}
.center-flow {
  padding-top: 40px;
}
.center-flow .section {
  width: min(640px, 92vw);
}
.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}
.home-hero-copy {
  padding: 20px 0;
  display: grid;
  align-content: center;
  gap: 16px;
}
.home-intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.home-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 252, 0.88);
  border: 1px solid rgba(214, 124, 170, 0.18);
  box-shadow: 0 14px 28px rgba(120, 71, 135, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a14f89;
}
.home-greeting-line {
  margin: -4px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: #9f5f84;
  letter-spacing: 0.01em;
}
.home-hero-copy h1 {
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: 0.92;
  max-width: 10ch;
  margin-bottom: 0;
}
.home-hero-copy .muted {
  max-width: 36rem;
  font-size: 1.04rem;
  line-height: 1.7;
}
.home-promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.promise-chip-card {
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 242, 248, 0.88));
  border: 1px solid rgba(181, 140, 255, 0.14);
  box-shadow: 0 18px 35px rgba(88, 48, 140, 0.08);
}
.promise-chip-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.promise-chip-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(88, 48, 140, 0.14);
  border-color: rgba(181, 140, 255, 0.24);
}
.surprise-box-trigger {
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.16;
  filter: saturate(0.85);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}
.surprise-box-trigger:hover,
.surprise-box-trigger:focus-visible {
  opacity: 0.92;
  transform: translateY(-4px) rotate(-6deg);
  filter: saturate(1.1);
}
.surprise-box-trigger:focus-visible {
  outline: 2px solid rgba(214, 124, 170, 0.4);
  outline-offset: 6px;
}
.surprise-box-base,
.surprise-box-lid,
.surprise-box-ribbon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
}
.surprise-box-base {
  bottom: 5px;
  width: 28px;
  height: 22px;
  background: linear-gradient(180deg, #ffb7d8, #ea76a8);
  box-shadow: 0 10px 18px rgba(143, 75, 121, 0.22);
}
.surprise-box-lid {
  top: 7px;
  width: 32px;
  height: 10px;
  background: linear-gradient(180deg, #ffd5e7, #f3a2c5);
}
.surprise-box-ribbon {
  top: 6px;
  width: 8px;
  height: 25px;
  background: linear-gradient(180deg, rgba(255, 244, 250, 0.95), rgba(255, 220, 236, 0.8));
  box-shadow: 10px 10px 0 0 rgba(255, 244, 250, 0.34), -10px 10px 0 0 rgba(255, 244, 250, 0.34);
}
.surprise-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.surprise-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.surprise-overlay.is-enchanted .surprise-card::before,
.surprise-overlay.is-enchanted .surprise-card::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: 1;
  pointer-events: none;
}
.surprise-overlay.is-enchanted .surprise-card::before {
  width: 240px;
  height: 240px;
  top: 18%;
  left: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 235, 0.26), transparent 68%);
  animation: enchantedPulse 1.15s ease-out 2;
}
.surprise-overlay.is-enchanted .surprise-card::after {
  width: 280px;
  height: 280px;
  right: 8%;
  bottom: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 140, 255, 0.22), transparent 70%);
  animation: enchantedPulse 1.2s ease-out 2 0.18s;
}
.surprise-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 8, 14, 0.92);
}
.surprise-card {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  min-height: min(78vh, 760px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 192, 233, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(181, 140, 255, 0.16), transparent 34%),
    radial-gradient(circle at left center, rgba(123, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #140f1d, #201429 36%, #2b1834 100%);
  border: 1px solid rgba(255, 206, 216, 0.16);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  align-content: start;
}
.flames-celebration {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.celebration-piece {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation-name: celebrationFall;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: forwards;
}
.celebration-piece.is-icon {
  font-size: 1.5rem;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}
.celebration-piece.is-ribbon {
  width: 14px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb7df, #b58cff 55%, #7bd7ff);
  box-shadow: 0 10px 18px rgba(181, 140, 255, 0.18);
}
.celebration-piece.is-burst {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 172, 1), rgba(255, 183, 226, 0.82) 45%, rgba(123, 215, 255, 0.35) 72%, rgba(123, 215, 255, 0) 100%);
  box-shadow: 0 0 24px rgba(255, 183, 226, 0.32);
}
.surprise-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 235, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff3f8;
  font-size: 1.8rem;
  cursor: pointer;
  pointer-events: auto;
}
.surprise-copy {
  position: relative;
  z-index: 2;
  padding: 28px 110px 0 28px;
  color: #fff4f6;
}
.surprise-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 10px;
}
.surprise-copy .muted {
  color: rgba(255, 235, 246, 0.76);
}
.surprise-open {
  overflow: hidden;
}
.surprise-flames {
  position: relative;
  z-index: 1;
  padding: 22px 28px 28px;
  display: grid;
  gap: 22px;
}
.flames-stepboard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 20px;
}
.flames-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.flames-name-card,
.flames-count-card,
.flames-result-card {
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.12), rgba(239, 229, 255, 0.08));
  border: 1px solid rgba(255, 220, 244, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.flames-name-card {
  position: relative;
  overflow: hidden;
}
.flames-name-love {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0.95;
}
.flames-name-card-one .flames-name-love {
  color: #b58cff;
  text-shadow: 0 0 18px rgba(181, 140, 255, 0.32);
}
.flames-name-card-two .flames-name-love {
  color: #7bd7ff;
  text-shadow: 0 0 18px rgba(123, 215, 255, 0.32);
}
.flames-name-card h3,
.flames-result-card h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  margin-bottom: 10px;
  color: #fff4f6;
}
.flames-name-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 211, 224, 0.7);
}
.flames-name-clean {
  margin: 0;
  min-height: 1.6em;
  color: rgba(255, 238, 242, 0.88);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flames-total {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  color: #ffd0f0;
  text-shadow: 0 0 28px rgba(255, 171, 218, 0.2);
}
.flames-count-note,
.flames-result-note {
  margin: 10px 0 0;
  color: rgba(255, 239, 243, 0.82);
  line-height: 1.6;
}
.flames-wheel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.flames-letter {
  padding: 18px 10px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 220, 244, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.08), rgba(231, 220, 255, 0.05));
  color: rgba(255, 244, 246, 0.92);
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.flames-letter span {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 229, 244, 0.8);
}
.flames-letter.is-active {
  background: linear-gradient(180deg, rgba(255, 183, 226, 0.34), rgba(181, 140, 255, 0.24));
  border-color: rgba(255, 183, 226, 0.3);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 22px 36px rgba(196, 133, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.flames-letter.is-removed {
  opacity: 0.18;
  transform: scale(0.9);
  filter: grayscale(0.1);
}
.flames-result-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.flames-result-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.flames-result-card.is-revealed {
  background:
    radial-gradient(circle at top center, rgba(255, 198, 235, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 183, 226, 0.18), rgba(181, 140, 255, 0.14));
  border-color: rgba(255, 198, 235, 0.26);
  box-shadow: 0 0 0 1px rgba(255, 198, 235, 0.06), 0 20px 40px rgba(181, 140, 255, 0.1);
}
.surprise-overlay.is-enchanted .flames-result-card.is-revealed {
  box-shadow:
    0 0 0 1px rgba(255, 198, 235, 0.08),
    0 22px 42px rgba(181, 140, 255, 0.14),
    0 0 46px rgba(255, 183, 226, 0.18);
  transform: translateY(-4px) scale(1.02);
  animation: resultCheer 0.9s ease-out 2;
}
.surprise-overlay.is-enchanted .flames-letter.is-active {
  animation: enchantedWinner 0.8s ease-out 2;
}
.surprise-overlay.is-enchanted .flames-total {
  animation: totalGlow 1.1s ease-out 2;
}
.surprise-overlay.is-enchanted .surprise-copy h2 {
  animation: titleCheer 0.8s ease-out 2;
}
.surprise-overlay.is-enchanted .flames-result-note::before {
  content: "♥  ✦  ♥";
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 198, 235, 0.86);
}
.promise-chip-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}
.promise-chip-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a274af;
}
.home-love-note {
  position: relative;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 197, 223, 0.34), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(255, 239, 247, 0.92));
  border: 1px solid rgba(214, 124, 170, 0.22);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(120, 71, 135, 0.16);
  overflow: hidden;
  display: grid;
  gap: 18px;
}
.home-love-note::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 211, 0.55), transparent 70%);
}
.love-note-orbit {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  perspective: 1400px;
  filter: drop-shadow(0 26px 38px rgba(120, 71, 135, 0.16));
}
.love-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(190, 120, 174, 0.22);
  animation: ringOrbit 14s linear infinite;
}
.love-arrow {
  position: absolute;
  z-index: 0;
  width: 222px;
  height: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  border-radius: 999px;
  background: #d86a9f;
  box-shadow:
    0 10px 22px rgba(216, 106, 159, 0.24),
    0 0 28px rgba(255, 171, 208, 0.22);
  opacity: 0.92;
  animation: arrowBlink 2.4s ease-in-out infinite;
}
.love-arrow::before,
.love-arrow::after {
  content: "";
  position: absolute;
}
.love-arrow::before {
  right: -10px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-top: 8px solid #d86a9f;
  border-right: 8px solid #d86a9f;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
}
.love-arrow::after {
  left: -20px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%) rotate(-45deg);
  border-left: 8px solid #d86a9f;
  border-bottom: 8px solid #d86a9f;
  border-radius: 4px 0 10px 2px;
}
.love-orbit-symbol {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 250, 252, 0.82);
  border: 1px solid rgba(214, 124, 170, 0.18);
  box-shadow:
    0 14px 28px rgba(120, 71, 135, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  color: #d86a9f;
  font-size: 1rem;
  line-height: 1;
  animation: orbitBlink 2.8s ease-in-out infinite;
}
.symbol-a {
  top: 7%;
  left: 4%;
  animation-delay: 0s;
}
.symbol-b {
  top: 11%;
  right: 4%;
  color: #a274af;
  animation-delay: 0.7s;
}
.symbol-c {
  bottom: 10%;
  left: 7%;
  animation-delay: 1.2s;
}
.symbol-d {
  right: 7%;
  bottom: 9%;
  color: #a274af;
  animation-delay: 1.8s;
}
.ring-a {
  --ring-scale: 1;
}
.ring-b {
  --ring-scale: 0.78;
  animation-direction: reverse;
  animation-duration: 17s;
}
.ring-c {
  --ring-scale: 0.56;
  animation-duration: 10s;
}
.love-core {
  position: relative;
  z-index: 1;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 22px;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-20deg);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 239, 246, 0.94) 48%, rgba(236, 170, 208, 0.9));
  border: 1px solid rgba(214, 124, 170, 0.2);
  box-shadow:
    0 30px 56px rgba(120, 71, 135, 0.22),
    0 0 42px rgba(255, 194, 220, 0.18),
    inset -10px -14px 24px rgba(216, 147, 187, 0.28),
    inset 10px 14px 24px rgba(255, 255, 255, 0.64);
  animation: loveCoreFloat 7.8s ease-in-out infinite;
}
.love-core::before,
.love-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.love-core::before {
  inset: 8px;
  transform: translateZ(18px);
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: screen;
}
.love-core::after {
  inset: 0;
  transform: translateZ(-16px) scale(0.96);
  background: linear-gradient(180deg, rgba(197, 129, 171, 0.9), rgba(122, 73, 111, 0.96));
  filter: blur(0.4px);
}
.love-core-face {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  transform: translateZ(26px);
}
.love-core span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #a274af;
}
.love-core strong {
  display: block;
  font-family: "Fraunces", serif;
  max-width: 11ch;
  margin: 2px auto 0;
  font-size: clamp(0.82rem, 1.25vw, 1rem);
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: normal;
  color: #8f4b79;
  text-shadow: 0 6px 12px rgba(255, 255, 255, 0.34);
}
.love-note-copy {
  position: relative;
  z-index: 1;
}
.home-love-note h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  max-width: 14ch;
}
.love-tab-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.love-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
@keyframes loveCoreFloat {
  0%,
  100% {
    transform: rotateX(18deg) rotateY(-20deg) translateY(0);
  }
  25% {
    transform: rotateX(12deg) rotateY(-10deg) translateY(-6px);
  }
  50% {
    transform: rotateX(20deg) rotateY(8deg) translateY(-10px);
  }
  75% {
    transform: rotateX(14deg) rotateY(16deg) translateY(-4px);
  }
}
@keyframes ringOrbit {
  0% {
    transform: rotate(0deg) scale(var(--ring-scale, 1));
    opacity: 0.42;
  }
  50% {
    opacity: 0.72;
  }
  100% {
    transform: rotate(360deg) scale(var(--ring-scale, 1));
    opacity: 0.42;
  }
}
@keyframes orbitBlink {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
    box-shadow: 0 12px 24px rgba(120, 71, 135, 0.08);
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 18px 34px rgba(214, 124, 170, 0.18);
  }
}
@keyframes arrowBlink {
  0%,
  100% {
    opacity: 0.42;
    box-shadow: 0 10px 22px rgba(216, 106, 159, 0.14);
  }
  50% {
    opacity: 1;
    box-shadow: 0 14px 28px rgba(216, 106, 159, 0.34);
  }
}
@keyframes enchantedPulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}
@keyframes enchantedWinner {
  0%,
  100% {
    transform: translateY(-6px) scale(1.03);
  }
  50% {
    transform: translateY(-10px) scale(1.08);
  }
}
@keyframes resultCheer {
  0%,
  100% {
    transform: translateY(-4px) scale(1.02);
  }
  35% {
    transform: translateY(-10px) scale(1.05) rotate(-1deg);
  }
  70% {
    transform: translateY(-6px) scale(1.03) rotate(1deg);
  }
}
@keyframes totalGlow {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 28px rgba(255, 171, 218, 0.2);
  }
  50% {
    transform: scale(1.08);
    text-shadow: 0 0 40px rgba(255, 171, 218, 0.34);
  }
}
@keyframes titleCheer {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
}
@keyframes celebrationFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -40px, 0) rotate(0deg) scale(0.8);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x, 0), var(--drift-y, 290px), 0) rotate(var(--drift-rot, 180deg)) scale(1);
  }
}
.love-tab:hover {
  transform: translateY(-2px);
}
.love-tab.is-active {
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.22), rgba(255, 154, 213, 0.24));
  color: var(--text);
}
.love-panel-wrap {
  position: relative;
  z-index: 1;
}
.love-panel {
  display: none;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(181, 140, 255, 0.14);
  line-height: 1.65;
}
.love-panel.is-active {
  display: block;
}
.love-panel p:last-child {
  margin: 0;
}
.love-panel-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9f5f84;
}
.love-note-top {
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}
.love-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.home-route {
  position: relative;
}
.home-head {
  text-align: center;
  margin-bottom: 28px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  border: 1px solid rgba(88, 48, 140, 0.12);
  box-shadow: 0 18px 35px rgba(88, 48, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.route-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 140, 255, 0), rgba(181, 140, 255, 0.45), rgba(181, 140, 255, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.route-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(88, 48, 140, 0.16);
  border-color: rgba(181, 140, 255, 0.26);
}
.route-card:hover::after {
  opacity: 1;
}
.route-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.route-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a274af;
}
.route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.route-card-wide {
  grid-column: span 2;
}
.route-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.18), rgba(255, 154, 213, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-size: 1.35rem;
}
.glow-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 181, 107, 0.6), transparent 70%);
  top: -80px;
  right: -80px;
  filter: blur(10px);
  animation: floatSlow 12s ease-in-out infinite;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #161616;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.counter {
  margin-top: 16px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.section {
  margin-top: 60px;
}
.section-head {
  margin-bottom: 22px;
}
.center-flow .section-head {
  text-align: center;
}
.center-flow .unlock-card {
  width: min(520px, 92vw);
  margin: 0 auto;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 232, 255, 0.92));
  border: 1px solid rgba(181, 140, 255, 0.32);
  box-shadow: 0 30px 70px rgba(88, 48, 140, 0.16);
  position: relative;
  overflow: hidden;
}
.center-flow .unlock-card::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto 10%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 154, 213, 0.4), transparent 65%);
  opacity: 0.8;
}
.center-flow .unlock-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 50%;
  background: radial-gradient(circle, rgba(181, 140, 255, 0.35), transparent 70%);
  opacity: 0.7;
}
.unlock-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}
.center-flow .section-head h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}
.center-flow .section-head p {
  font-size: 1rem;
}
.center-flow .btn-row .btn {
  min-width: 140px;
}
.unlock-form label {
  text-align: center;
}
.question-block {
  display: grid;
  gap: 12px;
}
.question-block label {
  font-size: 1.05rem;
}
.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn.primary {
  letter-spacing: 0.3px;
}
.btn.ghost {
  backdrop-filter: blur(6px);
}
.password-block {
  display: grid;
  gap: 12px;
}
.password-field {
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(181, 140, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.password-field input {
  border: none;
  background: transparent;
  margin-bottom: 0;
}
.pass-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(181, 140, 255, 0.35);
}
.form-note {
  text-align: center;
  line-height: 1.4;
}
.form-note.hint {
  background: rgba(181, 140, 255, 0.16);
  border: 1px solid rgba(181, 140, 255, 0.3);
  color: #4a3372;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(181, 140, 255, 0.18);
  animation: warnPop 0.35s ease;
}
.form-note.warning {
  background: rgba(255, 115, 140, 0.18);
  border: 1px solid rgba(255, 115, 140, 0.35);
  color: #8a1d45;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(255, 115, 140, 0.2);
  animation: warnPop 0.35s ease;
}
.form-note.good {
  background: rgba(123, 215, 255, 0.2);
  border: 1px solid rgba(123, 215, 255, 0.35);
  color: #1d4f77;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(123, 215, 255, 0.22);
  animation: warnPop 0.35s ease;
}
.form-note.warning::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 115, 140, 0.4);
  color: #7a1238;
  font-weight: 800;
}
.form-note.good::before {
  content: "♥";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(123, 215, 255, 0.35);
  color: #1b4c78;
  font-weight: 800;
}
@keyframes warnPop {
  0% { transform: scale(0.96); opacity: 0; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}
.bye-final {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 230, 242, 0.9);
  border: 1px solid rgba(209, 74, 146, 0.35);
  box-shadow: 0 18px 40px rgba(209, 74, 146, 0.15);
}
.center-flow .btn-row {
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(181, 140, 255, 0.25);
  border-radius: 999px;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.center-flow .btn-row .btn {
  flex: 1 1 140px;
}
.bye-final {
  padding: 24px;
  text-align: center;
  font-weight: 700;
  color: #d14a92;
}
.blocked .site-nav,
.blocked .site-footer {
  pointer-events: none;
  opacity: 0.3;
  filter: blur(3px);
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(88, 48, 140, 0.15);
  box-shadow: var(--shadow);
}
.unlock-card {
  padding: 24px;
}
.unlock-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  margin-bottom: 12px;
}
.password-field {
  position: relative;
  display: grid;
}
.password-field input {
  padding-right: 68px;
}
.pass-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.pass-toggle .pass-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.question-block label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}
.bye-msg {
  margin-top: 12px;
  color: #d14a92;
  font-weight: 700;
  text-align: center;
}
.portal-grid,
.promise-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.portal-card,
.promise-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(88, 48, 140, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-card:hover,
.promise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.page-hero {
  margin-bottom: 40px;
}
.countdown-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.counted-shell {
  padding-top: 26px;
}
.counted-stage {
  display: grid;
  gap: 28px;
}
.counted-stage-head {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.counted-stage-head h1 {
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 0.92;
  margin-bottom: 14px;
}
.counted-stage-head .muted {
  line-height: 1.75;
}
.counted-spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
}
.counted-whisper-card,
.together-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(213, 163, 213, 0.22);
  box-shadow: 0 28px 60px rgba(88, 48, 140, 0.12);
}
.counted-whisper-card {
  padding: 28px 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 235, 0.36), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(247, 239, 255, 0.92));
  display: grid;
  align-content: space-between;
  gap: 18px;
}
.counted-whisper-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.04;
}
.counted-whisper-card .muted {
  margin: 0;
  line-height: 1.72;
}
.counted-love-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.counted-love-row span {
  color: #c06aa3;
  font-size: 1rem;
  animation: sparkleFloat 2.8s ease-in-out infinite;
}
.counted-love-row span:nth-child(2) {
  animation-delay: 0.3s;
}
.counted-love-row span:nth-child(3) {
  animation-delay: 0.6s;
}
.together-marquee {
  padding: 34px 30px 28px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(255, 203, 231, 0.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(123, 215, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 240, 247, 0.94));
}
.marquee-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.72;
}
.glow-left {
  left: -74px;
  top: -40px;
  background: radial-gradient(circle, rgba(255, 176, 215, 0.52), transparent 66%);
}
.glow-right {
  right: -74px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(181, 140, 255, 0.32), transparent 68%);
}
.tiny-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}
.together-marquee h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  max-width: 13ch;
  margin: 0 auto 18px;
  line-height: 1.08;
}
.together-number {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 1;
  margin-bottom: 14px;
  color: #904579;
  text-shadow: 0 0 28px rgba(255, 196, 226, 0.32);
}
.marquee-note {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.7;
}
.marquee-ornaments {
  display: inline-flex;
  gap: 14px;
  margin-top: 16px;
  align-items: center;
}
.marquee-ornaments span {
  font-size: 1.05rem;
  color: #c06aa3;
  animation: sparkleFloat 2.8s ease-in-out infinite;
}
.marquee-ornaments span:nth-child(2) {
  animation-delay: 0.35s;
}
.marquee-ornaments span:nth-child(3) {
  animation-delay: 0.7s;
}
.journey-graph-card {
  display: grid;
  gap: 18px;
  padding: 26px 28px 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 213, 233, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 239, 255, 0.9));
  border: 1px solid rgba(181, 140, 255, 0.16);
  box-shadow: 0 24px 50px rgba(88, 48, 140, 0.08);
}
.journey-graph-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}
.journey-graph {
  position: relative;
  height: 190px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 247, 252, 0.74), rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(
      to right,
      rgba(181, 140, 255, 0.08) 0,
      rgba(181, 140, 255, 0.08) 1px,
      transparent 1px,
      transparent 22%
    );
  overflow: hidden;
}
.journey-axis {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(181, 140, 255, 0.22), rgba(255, 154, 213, 0.4), rgba(123, 215, 255, 0.22));
}
.journey-line {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  height: 112px;
  border-left: 0;
}
.journey-line::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 112px;
  clip-path: polygon(0% 92%, 20% 70%, 44% 62%, 68% 30%, 100% 10%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(255, 183, 226, 0.3), rgba(181, 140, 255, 0.08));
}
.journey-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  clip-path: polygon(0% 92%, 20% 70%, 44% 62%, 68% 30%, 100% 10%);
  border-top: 4px solid transparent;
  background: linear-gradient(90deg, #ff9ad5, #b58cff 54%, #7bd7ff);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding-top: 4px;
}
.journey-node {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(181, 140, 255, 0.18);
  box-shadow: 0 16px 30px rgba(88, 48, 140, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: #8c4f82;
  cursor: default;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.journey-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(88, 48, 140, 0.12);
  border-color: rgba(181, 140, 255, 0.28);
}
.journey-node-date {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 251, 253, 0.98);
  border: 1px solid rgba(181, 140, 255, 0.18);
  box-shadow: 0 16px 26px rgba(88, 48, 140, 0.1);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8c4f82;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.journey-node:hover .journey-node-date {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.journey-node::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #c06aa3;
  box-shadow: 0 0 0 6px rgba(255, 183, 226, 0.14);
}
.node-one {
  left: 0;
  bottom: 54px;
}
.node-two {
  left: 38%;
  bottom: 84px;
}
.node-three {
  right: 0;
  bottom: 116px;
}
.milestone-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.milestone-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 233, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 240, 255, 0.9));
  border: 1px solid rgba(181, 140, 255, 0.16);
  box-shadow: 0 22px 42px rgba(88, 48, 140, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.milestone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(88, 48, 140, 0.14);
  border-color: rgba(181, 140, 255, 0.26);
}
.milestone-card-featured {
  background:
    radial-gradient(circle at top center, rgba(255, 198, 228, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 233, 244, 0.92));
}
.milestone-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.milestone-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.2), rgba(255, 154, 213, 0.2));
  color: #9f5f84;
  font-size: 1.1rem;
}
.milestone-card h3 {
  font-size: 1.56rem;
  line-height: 1.12;
  min-height: 2.6em;
}
.mini-date-number {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 16px 0 12px;
  color: #7c4cb5;
}
.mini-date-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.countdown-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(88, 48, 140, 0.18);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.countdown-card.special {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 220, 245, 0.7));
  border-color: rgba(255, 154, 213, 0.45);
  box-shadow: 0 30px 60px rgba(255, 154, 213, 0.25);
}
.countdown-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(181, 140, 255, 0.25), transparent 70%);
  opacity: 0.9;
}
.countdown-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(88, 48, 140, 0.2);
}
.countdown-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.date-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(181, 140, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
}
.countdown-timer {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 14px 16px;
  border-radius: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.16), rgba(255, 154, 213, 0.14));
  border: 1px solid rgba(181, 140, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.countdown-pop {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(181, 140, 255, 0.3);
  font-size: 0.9rem;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.countdown-card:hover .countdown-pop {
  transform: translateY(-2px);
  opacity: 1;
}
.date-whisper {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(181, 140, 255, 0.25);
  color: var(--muted);
  line-height: 1.6;
}
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-6px); opacity: 1; }
}
.password-block {
  position: relative;
}
.password-block.shake {
  animation: softShake 0.35s ease;
}
.password-block.heart-burst::after {
  content: "";
  position: absolute;
  inset: -10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 154, 213, 0.45), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(181, 140, 255, 0.35), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(123, 215, 255, 0.35), transparent 45%);
  animation: burstGlow 1.1s ease;
  pointer-events: none;
}
@keyframes softShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
@keyframes burstGlow {
  0% { opacity: 0; transform: scale(0.98); }
  40% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}
.timeline-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.timeline-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(88, 48, 140, 0.15);
}
.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.soundtrack {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.sound-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(88, 48, 140, 0.2);
  background: rgba(255, 255, 255, 0.6);
}
.quest-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.quest-card {
  min-height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(88, 48, 140, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}
.quest-card.burst {
  box-shadow: 0 20px 45px rgba(242, 181, 107, 0.4);
}
.jar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.jar-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(88, 48, 140, 0.15);
  background: rgba(255, 255, 255, 0.65);
}
.polaroid-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.polaroid {
  position: relative;
  height: 200px;
  border-radius: 14px;
  border: 1px solid rgba(88, 48, 140, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  perspective: 1000px;
  padding: 0;
  overflow: hidden;
}
.polaroid-front,
.polaroid-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  backface-visibility: hidden;
  transition: transform 0.5s ease;
}
.polaroid-front {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}
.polaroid-back {
  transform: rotateY(180deg);
  background: linear-gradient(130deg, rgba(242, 181, 107, 0.2), rgba(231, 109, 138, 0.2));
}
.polaroid.flipped .polaroid-front {
  transform: rotateY(180deg);
}
.polaroid.flipped .polaroid-back {
  transform: rotateY(360deg);
}
.wish-grid {
  display: grid;
  gap: 16px;
}
.wish-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(88, 48, 140, 0.15);
}
.wish-item.done {
  background: rgba(105, 198, 194, 0.18);
}
.wishbook-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}
.bucketlist-kpi {
  margin-bottom: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(88, 48, 140, 0.12);
  box-shadow: 0 20px 45px rgba(88, 48, 140, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.bucketlist-kpi-copy h2 {
  margin-bottom: 8px;
}
.bucketlist-kpi-copy .muted {
  margin: 0;
}
.bucketlist-kpi-metrics {
  min-width: 138px;
  text-align: center;
}
.bucketlist-kpi-metrics strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 4px 0;
}
.wishbook-ask,
.wishbook-log {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  border: 1px solid rgba(88, 48, 140, 0.12);
  box-shadow: 0 24px 55px rgba(88, 48, 140, 0.1);
}
.wishbook-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.wishbook-head .muted {
  line-height: 1.65;
}
.wishbook-form {
  display: grid;
  gap: 14px;
}
.bucketlist-mode-row {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(88, 48, 140, 0.14);
  background: rgba(255, 255, 255, 0.74);
  margin-bottom: 16px;
}
.bucketlist-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.bucketlist-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.32), rgba(255, 176, 223, 0.3));
  box-shadow: 0 10px 24px rgba(88, 48, 140, 0.14);
}
.bucketlist-panel {
  display: none;
}
.bucketlist-panel.is-active {
  display: grid;
}
.wishbook-label {
  font-weight: 600;
  color: var(--text);
}
.wishbook-form input,
.wishbook-form select,
.wishbook-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(181, 140, 255, 0.25);
  background: rgba(255, 252, 255, 0.92);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.wishbook-form textarea {
  min-height: 168px;
  resize: vertical;
}
.wishbook-form input:focus,
.wishbook-form select:focus,
.wishbook-form textarea:focus {
  outline: none;
  border-color: rgba(181, 140, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(181, 140, 255, 0.12);
}
.wishbook-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.wishbook-list {
  display: grid;
  gap: 14px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
}
.history-toggle-btn {
  align-self: flex-start;
  margin: 2px 0 10px;
}
.wishbook-entry {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.96), rgba(246, 240, 255, 0.94));
  border: 1px solid rgba(181, 140, 255, 0.14);
}
.wishbook-entry-text {
  margin: 8px 0 10px;
  line-height: 1.65;
}
.wishbook-entry-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.wishbook-entry-text strong {
  display: inline-block;
  margin-bottom: 2px;
}
.history-sidebar {
  position: sticky;
  top: 104px;
}
.bucketlist-history-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.bucketlist-history-modal.is-open {
  display: grid;
  place-items: center;
}
.bucketlist-history-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 12, 24, 0.62);
  backdrop-filter: blur(4px);
}
.bucketlist-history-card {
  position: relative;
  width: min(1120px, 94vw);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(181, 140, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 254, 255, 0.98), rgba(245, 239, 255, 0.96));
  box-shadow: 0 28px 60px rgba(22, 16, 42, 0.32);
  padding: 24px;
  display: grid;
  gap: 14px;
  z-index: 1;
}
.bucketlist-history-head h2 {
  margin-bottom: 8px;
}
.bucketlist-history-head .muted {
  margin: 0;
}
.bucketlist-history-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(88, 48, 140, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.bucketlist-history-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(88, 48, 140, 0.15);
  background: rgba(255, 255, 255, 0.82);
}
.bucketlist-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
.bucketlist-history-table th,
.bucketlist-history-table td {
  border-bottom: 1px solid rgba(88, 48, 140, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.93rem;
}
.bucketlist-history-table th {
  position: sticky;
  top: 0;
  background: rgba(243, 235, 255, 0.97);
  z-index: 1;
  font-weight: 600;
}
.bucketlist-history-open {
  overflow: hidden;
}
.birthday-shell {
  display: grid;
  gap: 22px;
}
[data-birthday-app].mood-soft .birthday-card,
[data-birthday-app].mood-soft .birthday-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 235, 255, 0.92));
  box-shadow: 0 22px 52px rgba(95, 64, 156, 0.16);
}
[data-birthday-app].mood-playful .birthday-card,
[data-birthday-app].mood-playful .birthday-hero {
  background: linear-gradient(145deg, rgba(255, 250, 236, 0.95), rgba(255, 222, 242, 0.92));
  border-color: rgba(255, 150, 194, 0.32);
  box-shadow: 0 22px 52px rgba(204, 100, 138, 0.17);
}
[data-birthday-app].mood-royal .birthday-card,
[data-birthday-app].mood-royal .birthday-hero {
  background: linear-gradient(145deg, rgba(241, 233, 255, 0.96), rgba(224, 210, 255, 0.94));
  border-color: rgba(137, 97, 223, 0.4);
  box-shadow: 0 22px 58px rgba(85, 57, 146, 0.2);
}
.birthday-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(246, 233, 255, 0.88));
  border: 1px solid rgba(170, 120, 255, 0.22);
  box-shadow: 0 26px 60px rgba(46, 26, 78, 0.2);
}
.birthday-orbital {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.birthday-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(181, 140, 255, 0.4);
}
.birthday-ring.ring-one {
  transform: rotateX(68deg) rotateY(6deg);
  animation: birthday-spin-a 10s linear infinite;
}
.birthday-ring.ring-two {
  inset: 18%;
  transform: rotateY(72deg) rotateX(8deg);
  border-color: rgba(255, 146, 210, 0.5);
  animation: birthday-spin-b 8s linear infinite;
}
.birthday-core {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(180, 137, 255, 0.95), rgba(255, 156, 217, 0.95));
  color: #fff;
  box-shadow: 0 20px 38px rgba(95, 44, 154, 0.35);
  transform: rotateY(-18deg) rotateX(10deg);
}
.birthday-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 10px;
}
.birthday-copy .muted {
  margin-bottom: 16px;
}
.birthday-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mood-lab {
  position: relative;
}
.mood-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mood-row .btn.is-active {
  border-color: rgba(181, 140, 255, 0.45);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(88, 48, 140, 0.14);
}
.birthday-card {
  position: relative;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(170, 120, 255, 0.2);
  box-shadow: 0 22px 52px rgba(46, 26, 78, 0.16);
}
.reasons-card {
  display: grid;
  gap: 14px;
}
.reasons-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.reasons-count {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.reason-chip {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(181, 140, 255, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.reason-chip.is-open {
  min-height: 92px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  background: linear-gradient(145deg, rgba(250, 241, 255, 0.98), rgba(255, 238, 247, 0.98));
}
.secret-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.46;
}
.secret-lock:hover {
  opacity: 1;
}
.birthday-letter-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.birthday-letter-modal.is-open {
  display: grid;
  place-items: center;
}
.birthday-letter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 10, 34, 0.72);
  backdrop-filter: blur(5px);
}
.birthday-letter-card {
  position: relative;
  width: min(860px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(201, 162, 255, 0.35);
  background: linear-gradient(165deg, rgba(255, 251, 255, 0.98), rgba(246, 236, 255, 0.96));
  box-shadow: 0 30px 70px rgba(24, 10, 48, 0.4);
  padding: 24px 24px 22px;
}
.birthday-letter-card h2 {
  margin-bottom: 10px;
}
.birthday-letter-card p {
  line-height: 1.78;
}
.letter-chapter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.letter-chapter-btn {
  border: 1px solid rgba(181, 140, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 12px;
  cursor: pointer;
}
.letter-chapter-btn.is-active {
  background: linear-gradient(140deg, rgba(184, 141, 255, 0.35), rgba(255, 173, 227, 0.34));
}
.letter-chapter-panel {
  perspective: 1100px;
}
.letter-page {
  display: none;
  transform-origin: left center;
}
.letter-page.is-active {
  display: block;
  animation: page-turn 0.48s ease;
}
.birthday-letter-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(88, 48, 140, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
.letter-open {
  overflow: hidden;
}
.crown-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 52;
}
.crown-overlay.is-open {
  display: grid;
}
.crown-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: radial-gradient(circle at center, rgba(255, 244, 204, 0.28), rgba(17, 10, 27, 0.74));
  backdrop-filter: blur(4px);
}
.crown-card {
  position: relative;
  z-index: 1;
  width: min(540px, 92vw);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(155deg, rgba(255, 254, 240, 0.98), rgba(255, 240, 210, 0.95));
  border: 1px solid rgba(240, 193, 98, 0.55);
  box-shadow: 0 30px 70px rgba(55, 38, 14, 0.34);
}
.crown-stage {
  position: relative;
  margin: 8px 0 12px;
  min-height: 210px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.crown-spotlight {
  position: absolute;
  inset: 10px 14%;
  background: radial-gradient(circle at center, rgba(255, 243, 169, 0.5), rgba(255, 243, 169, 0.06) 58%, transparent 76%);
  filter: blur(0.5px);
}
.crown-queen-wrap {
  position: relative;
  width: min(360px, 86%);
  min-height: 150px;
  display: grid;
  place-items: end center;
}
.crown-queen-name {
  position: relative;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  color: #fff;
  background: linear-gradient(145deg, rgba(121, 78, 187, 0.96), rgba(208, 138, 228, 0.94));
  box-shadow: 0 16px 36px rgba(77, 36, 139, 0.35);
}
.crown-3d {
  position: absolute;
  top: -128px;
  left: 50%;
  width: 170px;
  height: 110px;
  transform-style: preserve-3d;
  transform: translateX(-50%) rotateX(22deg) rotateY(-12deg) translateY(-64px) scale(0.82);
  filter: drop-shadow(0 18px 20px rgba(101, 67, 14, 0.35));
  opacity: 0;
}
.crown-base {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5db8a, #d8a73b 72%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(104, 66, 8, 0.28);
  transform: translateZ(16px);
}
.crown-prong {
  position: absolute;
  bottom: 32px;
  width: 24px;
  height: 56px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #ffefb7, #d8a73b 72%);
  transform-origin: bottom center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.prong-a { left: 10px; transform: rotateZ(-12deg) rotateY(-12deg) translateZ(12px); }
.prong-b { left: 38px; transform: rotateZ(-5deg) rotateY(-6deg) translateZ(14px); }
.prong-c { left: 73px; height: 66px; transform: rotateY(0deg) translateZ(18px); }
.prong-d { left: 108px; transform: rotateZ(5deg) rotateY(6deg) translateZ(14px); }
.prong-e { left: 136px; transform: rotateZ(12deg) rotateY(12deg) translateZ(12px); }
.crown-gem {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #ff7ebf 62%, #c93176);
  box-shadow: 0 0 10px rgba(255, 109, 184, 0.7);
}
.gem-a { left: 42px; bottom: 40px; transform: translateZ(26px); }
.gem-b { left: 79px; bottom: 50px; width: 14px; height: 14px; transform: translateZ(30px); }
.gem-c { left: 116px; bottom: 40px; transform: translateZ(26px); }
.crown-overlay.is-open .crown-3d {
  animation: crown-drop 1.55s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, crown-float 3.2s ease-in-out 1.65s infinite;
}
.crown-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(130, 91, 19, 0.26);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.crown-sparkles {
  min-height: 120px;
  position: relative;
}
.crown-spark {
  position: absolute;
  color: #c07e0e;
  font-size: 1.2rem;
  animation: crown-fall linear forwards;
}
.crown-open {
  overflow: hidden;
}
.secret-note-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 53;
}
.secret-note-modal.is-open {
  display: grid;
}
.secret-note-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 11, 28, 0.7);
}
.secret-note-card {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 252, 255, 0.98);
  border: 1px solid rgba(181, 140, 255, 0.32);
}
.secret-note-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(88, 48, 140, 0.22);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}
.secret-note-open {
  overflow: hidden;
}
@keyframes page-turn {
  from { opacity: 0; transform: rotateY(-12deg) translateX(-8px); }
  to { opacity: 1; transform: rotateY(0) translateX(0); }
}
@keyframes crown-fall {
  from { transform: translateY(0) scale(0.9); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(98px) scale(1.12); opacity: 0; }
}
@keyframes crown-drop {
  0% {
    opacity: 0;
    transform: translateX(-50%) rotateX(24deg) rotateY(-16deg) translateY(-96px) scale(0.78);
  }
  24% {
    opacity: 1;
    transform: translateX(-50%) rotateX(24deg) rotateY(-12deg) translateY(-18px) scale(1.02);
  }
  52% {
    opacity: 1;
    transform: translateX(-50%) rotateX(20deg) rotateY(-8deg) translateY(8px) scale(0.96);
  }
  75% {
    opacity: 1;
    transform: translateX(-50%) rotateX(19deg) rotateY(-7deg) translateY(2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) rotateX(18deg) rotateY(-6deg) translateY(0) scale(0.98);
  }
}
@keyframes crown-float {
  0%, 100% { transform: translateX(-50%) rotateX(18deg) rotateY(-6deg) translateY(0) scale(0.98); }
  50% { transform: translateX(-50%) rotateX(20deg) rotateY(-8deg) translateY(-6px) scale(1); }
}
@keyframes birthday-spin-a {
  to { transform: rotateX(68deg) rotateY(366deg); }
}
@keyframes birthday-spin-b {
  to { transform: rotateY(432deg) rotateX(8deg); }
}
.envelope-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.envelope {
  position: relative;
  min-height: 200px;
  border-radius: 16px;
  border: 1px solid rgba(88, 48, 140, 0.18);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  cursor: pointer;
}
.envelope-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), transparent 55%);
  clip-path: polygon(0 0, 100% 0, 50% 55%);
  transition: transform 0.4s ease;
}
.envelope-card {
  position: absolute;
  inset: 18px;
  border-radius: 12px;
  padding: 16px;
  background: rgba(246, 240, 255, 0.9);
  border: 1px solid rgba(88, 48, 140, 0.15);
  transform: translateY(40px);
  transition: transform 0.4s ease;
}
.envelope.open .envelope-top {
  transform: translateY(-30px);
}
.envelope.open .envelope-card {
  transform: translateY(0);
}
.lock-screen {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.8);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}
body[data-requires-unlock="true"] .lock-screen {
  display: none;
}
html.auth-ok .lock-screen {
  display: none !important;
}
.locked {
  overflow: hidden;
}
.locked .page-shell,
.locked .site-footer {
  filter: blur(12px);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}
.locked .site-nav {
  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;
}
.lock-card {
  width: min(420px, 90vw);
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: var(--shadow);
}
.site-footer {
  text-align: center;
  padding: 20px 0 40px;
  color: var(--muted);
}
.float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.float-heart {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
  border-radius: 4px;
  opacity: 0.8;
  animation: floatUp 12s linear infinite;
}
.float-heart::before,
.float-heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 50%;
}
.float-heart::before {
  top: -8px;
  left: 0;
}
.float-heart::after {
  top: 0;
  left: -8px;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes floatUp {
  0% {
    transform: translateY(110vh) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(45deg);
    opacity: 0;
  }
}
@media (max-width: 860px) {
  .chapter-copy {
    align-items: start;
  }
  .chapter-lead {
    grid-template-columns: 1fr;
  }
  .memory-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .counted-spotlight,
  .milestone-lane {
    grid-template-columns: 1fr;
  }
  .counted-stage-head {
    max-width: 34rem;
  }
  .journey-node {
    min-width: 78px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }
  .node-two {
    left: 34%;
  }
  .home-hero {
    grid-template-columns: 1fr;
  }
  .surprise-hint {
    position: static;
    width: min(100%, 320px);
    margin: 0 auto 18px;
  }
  .home-promise-strip {
    grid-template-columns: 1fr;
  }
  .surprise-box-trigger {
    right: 10px;
    bottom: -10px;
  }
  .route-grid {
    grid-template-columns: 1fr 1fr;
  }
  .route-card-wide {
    grid-column: span 2;
  }
  .wishbook-shell {
    grid-template-columns: 1fr;
  }
  .bucketlist-kpi {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .birthday-hero {
    grid-template-columns: 1fr;
  }
  .reasons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bucketlist-kpi-metrics {
    text-align: left;
  }
  .history-sidebar {
    position: static;
    top: auto;
  }
  .wishbook-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 6vw;
    background: rgba(16, 24, 32, 0.95);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    display: none;
  }
  body.nav-open .nav-links {
    display: flex;
  }
}
@media (max-width: 640px) {
  .memory-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }
  .memory-chapter {
    padding: 18px;
  }
  .memory-grid-3,
  .memory-grid-4 {
    grid-template-columns: 1fr;
  }
  .memory-shot-wide {
    grid-column: auto;
  }
  .home-shell {
    padding-top: 28px;
  }
  .counted-shell {
    padding-top: 16px;
  }
  .counted-stage-head h1 {
    font-size: clamp(2.5rem, 10vw, 3.8rem);
  }
  .counted-whisper-card,
  .together-marquee,
  .milestone-card {
    border-radius: 26px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .journey-graph-card {
    padding: 22px 20px 24px;
    border-radius: 26px;
  }
  .journey-graph {
    height: 174px;
  }
  .node-two {
    left: 31%;
  }
  .node-three {
    bottom: 108px;
  }
  .together-marquee {
    padding-top: 28px;
  }
  .milestone-topline {
    margin-bottom: 8px;
  }
  .home-hero-copy h1 {
    max-width: none;
  }
  .home-intro-row {
    gap: 8px;
  }
  .home-greeting-line {
    font-size: 1rem;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
  .route-card,
  .route-card-wide {
    grid-column: auto;
  }
  .home-love-note {
    padding: 22px;
  }
  .love-note-orbit {
    width: min(220px, 100%);
  }
  .love-arrow {
    width: 172px;
  }
  .surprise-overlay {
    padding: 14px;
  }
  .surprise-card {
    min-height: 72vh;
    border-radius: 26px;
  }
  .surprise-copy {
    padding: 22px 84px 0 20px;
  }
  .surprise-flames {
    padding: 18px 18px 18px;
  }
  .flames-stepboard {
    grid-template-columns: 1fr;
  }
  .flames-names {
    grid-template-columns: 1fr;
  }
  .flames-wheel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wish-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.memory-board {
  display: grid;
  gap: 30px;
}
.memory-board-hero {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.memory-board-hero h1 {
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: 0.94;
  margin-bottom: 14px;
}
.memory-board-hero .muted {
  line-height: 1.75;
}
.story-videos-cta {
  margin-top: 12px;
  border-color: rgba(146, 96, 232, 0.45);
  background: linear-gradient(145deg, rgba(177, 136, 255, 0.28), rgba(255, 170, 225, 0.3));
  box-shadow: 0 14px 32px rgba(109, 62, 187, 0.26);
  animation: videos-cta-pulse 2.4s ease-in-out infinite;
}
.story-videos-cta:hover,
.story-videos-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(109, 62, 187, 0.34);
}
.videos-back-cta {
  margin-top: 12px;
  border-color: rgba(146, 96, 232, 0.45);
  background: linear-gradient(145deg, rgba(177, 136, 255, 0.28), rgba(255, 170, 225, 0.3));
  box-shadow: 0 14px 32px rgba(109, 62, 187, 0.26);
  animation: videos-cta-pulse 2.4s ease-in-out infinite;
}
.videos-back-cta:hover,
.videos-back-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(109, 62, 187, 0.34);
}
@keyframes videos-cta-pulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(109, 62, 187, 0.24); }
  50% { box-shadow: 0 20px 44px rgba(109, 62, 187, 0.4); }
}
.video-collection {
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(245, 239, 255, 0.84));
  border: 1px solid rgba(181, 140, 255, 0.16);
  box-shadow: 0 16px 36px rgba(35, 20, 62, 0.12);
}
.video-wait-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(181, 140, 255, 0.26);
  background: linear-gradient(150deg, rgba(255, 250, 253, 0.9), rgba(241, 233, 250, 0.86));
}
.video-wait-note .muted {
  margin: 0;
}
.video-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(120, 90, 185, 0.25);
  border-top-color: rgba(120, 90, 185, 0.92);
  animation: videoSpin 0.9s linear infinite;
}
.video-wait-note:not(.is-waiting) .video-spinner {
  animation-play-state: paused;
  opacity: 0.55;
}
@keyframes videoSpin {
  to { transform: rotate(360deg); }
}
.video-collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.video-collection-head h2 {
  margin: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.video-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(181, 140, 255, 0.14);
}
.video-card video {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 248, 252, 0.95), rgba(239, 229, 248, 0.9));
  aspect-ratio: 16/10;
  opacity: 0.95;
  transition: opacity 0.28s ease;
}
.video-card video.media-ready {
  opacity: 1;
}
.video-name {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  word-break: break-all;
}
.story-mode-switch {
  display: inline-flex;
  gap: 8px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(181, 140, 255, 0.16);
  box-shadow: 0 16px 35px rgba(88, 48, 140, 0.08);
}
.story-mode-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.story-mode-chip.is-active {
  background: linear-gradient(135deg, rgba(181, 140, 255, 0.22), rgba(255, 154, 213, 0.24));
  color: var(--text);
}
.story-mode-panel {
  display: none;
}
.story-mode-panel.is-active {
  display: block;
}
.memory-card-grid2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.memory-date-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(181, 140, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 255, 0.94), rgba(255, 239, 247, 0.86));
  box-shadow: 0 24px 55px rgba(88, 48, 140, 0.1);
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 365px;
}
.memory-date-card:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 30px 65px rgba(88, 48, 140, 0.16);
  border-color: rgba(181, 140, 255, 0.34);
}
.memory-date-card.featured {
  grid-column: span 1;
}
.memory-date-stack {
  position: relative;
  min-height: 190px;
  padding-right: 50px;
}
.stack-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 252, 255, 0.92), rgba(244, 235, 255, 0.9));
  box-shadow: 0 18px 35px rgba(29, 18, 52, 0.18);
}
.stack-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.34s ease, transform 0.5s ease;
}
.stack-photo img.media-ready {
  opacity: 1;
  transform: scale(1);
}
.stack-photo.main {
  max-width: 100%;
  aspect-ratio: 4 / 5;
}
.stack-photo.side {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(38%, 120px);
  aspect-ratio: 4 / 5;
  transform: rotate(9deg);
}
.memory-date-copy h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-bottom: 6px;
  line-height: 1.08;
  min-height: 2.2em;
}
.memory-date-copy .eyebrow {
  margin-bottom: 6px;
}
.memory-date-copy .muted {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 4.5em;
}
.video-card-grid .memory-date-card {
  min-height: 210px;
  justify-content: center;
}
.memory-date-card-video {
  background: linear-gradient(180deg, rgba(255, 253, 255, 0.94), rgba(239, 244, 255, 0.88));
}
.memory-poker-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.memory-poker-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.memory-overlay-open {
  overflow: hidden;
}
.memory-poker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 10, 18, 0.82);
  cursor: pointer;
}
.memory-poker-board {
  position: relative;
  z-index: 1;
  width: min(1240px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 30px 24px 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 230, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 255, 0.98), rgba(248, 239, 250, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 40px 90px rgba(15, 10, 24, 0.44);
}
.memory-poker-close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(181, 140, 255, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}
.memory-poker-set {
  display: none;
  gap: 18px;
}
.memory-poker-set.is-active {
  display: grid;
}
.memory-poker-head {
  text-align: center;
  gap: 8px;
  display: grid;
}
.memory-poker-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.02;
}
.memory-overlay-note {
  max-width: 36rem;
  margin: 0 auto;
}
.memory-poker-spread {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 10px 10px 18px;
}
.memory-poker-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 2px 12px 8px;
}
.memory-poker-progress {
  text-align: center;
}
.memory-poker-more[hidden] {
  display: none;
}
.memory-poker-card {
  margin: 0 0 0 -42px;
  width: min(240px, 32vw);
  padding: 12px 12px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fff7fb);
  border: 1px solid rgba(199, 171, 255, 0.24);
  box-shadow: 0 24px 45px rgba(29, 18, 52, 0.16);
  transform: perspective(1200px) translateX(-140px) rotateY(90deg) rotate(-5deg);
  transform-origin: left center;
  opacity: 0;
}
.memory-poker-card:first-child {
  margin-left: 0;
}
.memory-poker-card:nth-child(2n) {
  margin-top: 22px;
  transform: perspective(1200px) translateX(-140px) rotateY(90deg) rotate(4deg);
}
.memory-poker-card:nth-child(3n) {
  margin-top: 10px;
  transform: perspective(1200px) translateX(-140px) rotateY(90deg) rotate(-8deg);
}
.memory-poker-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  cursor: zoom-in;
  background: linear-gradient(145deg, rgba(255, 248, 252, 0.95), rgba(239, 229, 248, 0.9));
  content-visibility: auto;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.memory-poker-card img.media-ready {
  opacity: 1;
}
.memory-poker-card video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 248, 252, 0.95), rgba(239, 229, 248, 0.9));
}
.memory-poker-card-video {
  width: min(280px, 36vw);
}
.memory-poker-overlay.is-open .memory-poker-card {
  animation: pokerSlideIn 0.74s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(0.04s + (var(--card-index, 0) * 0.05s));
}
.memory-lightbox-open {
  overflow: hidden;
}
.memory-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.memory-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.memory-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 16, 0.88);
  cursor: pointer;
}
.memory-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
}
.memory-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.memory-lightbox-nav.prev {
  left: 22px;
}
.memory-lightbox-nav.next {
  right: 22px;
}
.memory-lightbox-nav:hover,
.memory-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}
.memory-lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1280px);
  max-height: 90vh;
  display: grid;
  place-items: center;
}
.memory-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}
.memory-lightbox-caption {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .memory-board {
    justify-items: center;
  }
  .memory-card-grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .memory-date-stack {
    min-height: 170px;
    padding-right: 44px;
  }
}

@media (max-width: 640px) {
  .memory-board-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }
  .memory-date-card {
    padding: 14px;
  }
  .memory-date-stack {
    min-height: 160px;
    padding-right: 0;
  }
  .stack-photo.side {
    width: 38%;
    right: 8px;
    bottom: 8px;
  }
  .memory-poker-overlay {
    padding: 12px;
  }
  .memory-poker-board {
    width: 100%;
    max-height: 94vh;
    padding: 22px 14px 16px;
    border-radius: 24px;
  }
  .memory-poker-spread {
    padding-inline: 0;
  }
  .memory-poker-card {
    width: min(170px, 42vw);
    margin-left: -26px;
  }
  .video-card-grid .memory-date-card {
    min-height: 180px;
  }
  .memory-lightbox {
    padding: 18px;
  }
  .memory-lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
  }
  .memory-lightbox-nav.prev {
    left: 10px;
  }
  .memory-lightbox-nav.next {
    right: 10px;
  }
}

@keyframes pokerSlideIn {
  0% {
    opacity: 0;
    transform: perspective(1400px) translateX(-120px) rotateY(90deg);
  }
  55% {
    opacity: 1;
    transform: perspective(1400px) translateX(12px) rotateY(-10deg);
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) translateX(0) rotateY(0deg);
  }
}
