:root {
  --coral: #ff6b5f;
  --coral-dark: #d94d45;
  --navy: #122c3a;
  --cream: #fff8ed;
  --paper: #f6ebdc;
  --yellow: #ffd267;
  --green: #2f8f77;
  --violet: #7c6caa;
  --shadow: 0 20px 50px rgba(23, 39, 45, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #e9dfd2;
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

#app { width: 100%; overflow: hidden; background: var(--cream); }
.map-screen { min-height: 100svh; padding: max(32px, env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); background:
  radial-gradient(circle at 12% 6%, rgba(255, 210, 103, .28) 0 90px, transparent 91px),
  linear-gradient(180deg, #fff9ef 0%, #f8ebda 100%); }
.map-header { max-width: 560px; margin: 0 auto 8px; text-align: center; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1; letter-spacing: .15em; text-transform: uppercase; font-weight: 850; color: var(--coral-dark); }
.eyebrow span { font-size: 19px; }
h1, h2, h3, p { margin-top: 0; }
.map-header h1 { margin: 18px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 13vw, 68px); line-height: .84; letter-spacing: -.055em; font-weight: 500; }
h1 em, .celebration h2 em, .intro-copy h3 em { color: var(--coral); font-weight: 500; }
.map-header > p { max-width: 330px; margin: 0 auto 22px; color: #63727a; font-size: 15px; line-height: 1.5; }
.progress { position: relative; width: 172px; height: 7px; margin: 0 auto 8px; overflow: hidden; border-radius: 20px; background: rgba(18,44,58,.09); }
.progress__fill { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--coral); }
.map-header small { font-size: 10px; font-weight: 800; color: #8d989b; letter-spacing: .1em; text-transform: uppercase; }

.date-map { position: relative; width: min(100%, 430px); height: 1300px; margin: 0 auto; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__glow { stroke: rgba(255,255,255,.78); stroke-width: 13; stroke-linecap: round; }
.route__vine { stroke: #cfae81; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgba(114,78,45,.08)); }
.route__flower { color: #ef8faf; filter: drop-shadow(0 5px 5px rgba(92,55,47,.2)); }
.route__flower use { transform-box: fill-box; transform-origin: center; animation: flower-flight 12s cubic-bezier(.45,.05,.55,.95) infinite; }
.route__flower--cream { color: #f4c873; }
.route__flower--lilac { color: #b8a2e4; }
.route__flower--coral { color: #f08079; }
.route__flower--small { opacity: .88; }
.route__flower:nth-of-type(2n) use { animation-duration: 14s; animation-delay: -6s; }
.route__flower:nth-of-type(3n) use { animation-duration: 16s; animation-delay: -10s; }
.flower__petal { fill: currentColor; stroke: rgba(255,255,255,.82); stroke-width: 1.5px; }
.flower__petals { filter: drop-shadow(0 1px 1px rgba(125,65,71,.16)); }
.flower__center { fill: url("#flower-center"); stroke: rgba(150,92,42,.58); stroke-width: 1px; }
.flower__shine { fill: rgba(255,255,255,.9); }
@keyframes flower-flight {
  0%, 100% { transform: translate(-8px, 10px) rotate(-9deg) scale(.98); }
  28% { transform: translate(8px, -8px) rotate(6deg) scale(1.03); }
  58% { transform: translate(16px, -17px) rotate(12deg) scale(1.06); }
  82% { transform: translate(-5px, -5px) rotate(-3deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .route__flower use { animation: none; } }
.date-node { position: absolute; z-index: 1; }
.date-node__pin { position: absolute; z-index: 4; display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--coral); border: 4px solid var(--cream); border-radius: 50%; box-shadow: 0 6px 15px rgba(18,44,58,.2); font-size: 11px; font-weight: 900; }
.date-node--active { top: 40px; left: 50%; width: min(92%, 360px); cursor: pointer; transform: translateX(-50%); }
.date-node--active .date-node__pin { top: -16px; left: -7px; }
.active-card { overflow: hidden; background: white; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(-1.2deg); transition: transform .25s ease, box-shadow .25s ease; }
.date-node--active:hover .active-card { box-shadow: 0 24px 44px rgba(18,44,58,.22); transform: rotate(-1.2deg) translateY(-4px); }
.date-node--active:focus-visible .active-card { outline: 3px solid rgba(255,107,95,.72); outline-offset: 5px; }
.active-card__image { position: relative; height: 214px; background: url("assets/wakeboard-card.jpg") center / cover no-repeat; }
.active-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,23,29,.05), rgba(5,23,29,.48)); }
.available { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 99px; color: white; background: rgba(11, 36, 43, .7); backdrop-filter: blur(10px); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.available i { width: 7px; height: 7px; border-radius: 50%; background: #77e7b5; box-shadow: 0 0 0 3px rgba(119,231,181,.15); }
.active-card__number { position: absolute; z-index: 2; left: 18px; bottom: 14px; color: white; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.active-card__number strong { font-family: Georgia, serif; font-size: 36px; line-height: .9; letter-spacing: -.04em; }
.active-card__body { padding: 18px 20px 20px; }
.active-card__body > p { margin-bottom: 7px; color: var(--coral-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.active-card h2 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 35px; line-height: .9; letter-spacing: -.045em; font-weight: 500; }
.primary-cta { position: relative; display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; overflow: hidden; padding: 0 18px; border: 0; border-radius: 16px; color: white; background: var(--coral); box-shadow: 0 8px 20px rgba(255,107,95,.3); font-weight: 850; isolation: isolate; animation: cta-breathe 2.8s ease-in-out infinite; }
.primary-cta::before { content: ""; position: absolute; z-index: -1; top: -45%; bottom: -45%; left: -34%; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-18deg) translateX(-260%); animation: cta-shimmer 3.8s ease-in-out infinite; }
.primary-cta span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); animation: cta-arrow 1.5s ease-in-out infinite; }
@keyframes cta-breathe { 0%, 100% { box-shadow: 0 8px 20px rgba(255,107,95,.3); transform: scale(1); } 50% { box-shadow: 0 12px 28px rgba(255,107,95,.52), 0 0 0 7px rgba(255,107,95,.1); transform: scale(1.018); } }
@keyframes cta-shimmer { 0%, 48% { transform: skewX(-18deg) translateX(-260%); } 72%, 100% { transform: skewX(-18deg) translateX(680%); } }
@keyframes cta-arrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .primary-cta, .primary-cta::before, .primary-cta span { animation: none; } }

.date-node--locked { width: 175px; }
.date-node--right { right: 4px; }
.date-node--left { left: 4px; }
.date-node--locked:nth-of-type(2) { top: 510px; }
.date-node--locked:nth-of-type(3) { top: 710px; }
.date-node--locked:nth-of-type(4) { top: 910px; }
.date-node--locked:nth-of-type(5) { top: 1110px; }
.date-node--locked .date-node__pin { top: -13px; left: -8px; color: #68757a; background: #e7ddd0; }
.locked-card { position: relative; display: flex; height: 142px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 3px solid rgba(255,255,255,.78); border-radius: 25px; color: white; box-shadow: 0 14px 30px rgba(18,44,58,.13); text-align: center; isolation: isolate; }
.locked-card::before { content: ""; position: absolute; z-index: -1; inset: -10px; background:
  linear-gradient(135deg, rgba(23,48,55,.52), rgba(23,48,55,.82)),
  url("assets/wakeboard-locked.jpg") center / cover; filter: blur(8px); transform: scale(1.12); }
.locked-card--violet::before { filter: blur(9px) hue-rotate(50deg); }
.locked-card--green::before { filter: blur(9px) hue-rotate(-20deg); }
.locked-card--navy::before { filter: blur(10px) saturate(.55); }
.lock { display: grid; width: 38px; height: 38px; margin-bottom: 8px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 17px; }
.locked-card strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.locked-card small { margin-top: 4px; opacity: .76; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.map-footer { width: min(100%, 430px); margin: 0 auto; padding: 20px 0 4px; border-top: 1px solid rgba(18,44,58,.1); color: #8a9698; text-align: center; font-size: 11px; }
.map-footer span { color: var(--coral); }

.date-detail { display: none; background: var(--cream); }
.date-detail.is-open { display: block; animation: pageIn .5s cubic-bezier(.22,.8,.25,1) both; }
.detail-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: white; background: url("assets/wakeboard-hero.jpg") center / cover no-repeat; }
.detail-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,22,29,.12) 20%, rgba(4,22,29,.83) 100%); }
.back-button { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top)); left: 18px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; background: rgba(13,38,47,.35); backdrop-filter: blur(12px); font-size: 20px; cursor: pointer; }
.detail-hero__content { position: absolute; z-index: 2; right: 24px; bottom: max(32px, env(safe-area-inset-bottom)); left: 24px; }
.eyebrow--light { color: var(--yellow); }
.detail-hero h2 { max-width: 620px; margin: 14px 0; font-family: Georgia, serif; font-size: clamp(52px, 15vw, 82px); line-height: .87; letter-spacing: -.055em; font-weight: 500; }
.detail-hero p { max-width: 430px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.5; }
.scroll-hint { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.scroll-hint span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; animation: bob 1.7s ease-in-out infinite; }

.detail-content { overflow: hidden; }
.intro-copy { padding: 76px 24px 54px; text-align: center; }
.intro-copy h3, .invitation h3, .plan-card h3 { margin: 16px 0; font-family: Georgia, serif; font-size: clamp(38px, 11vw, 56px); line-height: .95; letter-spacing: -.045em; font-weight: 500; }
.intro-copy > p { max-width: 560px; margin: 0 auto; color: #66767c; font-size: 15px; line-height: 1.75; }
.photo-story { display: grid; gap: 14px; padding: 0 14px 58px; }
.story-photo { position: relative; display: flex; height: 390px; align-items: flex-end; overflow: hidden; padding: 24px; border-radius: 30px; color: white; background-repeat: no-repeat; box-shadow: 0 20px 40px rgba(18,44,58,.12); }
.story-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,22,29,.74)); }
.story-photo--action { background: url("assets/wakeboard-action.jpg") center / cover no-repeat; }
.story-photo--hands { background: url("assets/wakeboard-hands.jpg") center / cover no-repeat; }
.story-photo--picnic { background: url("assets/wakeboard-celebration.jpg") center / cover no-repeat; }
.story-photo > span { position: absolute; z-index: 2; top: 20px; right: 20px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; backdrop-filter: blur(7px); font-size: 10px; font-weight: 900; }
.story-photo p { position: relative; z-index: 2; margin: 0; font-family: Georgia, serif; font-size: 25px; line-height: 1.1; }
.story-photo strong { color: var(--yellow); font-weight: 500; }

.plan-card { margin: 0 14px 66px; overflow: hidden; border-radius: 30px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.plan-card__top { padding: 34px 26px 27px; background: linear-gradient(135deg, #173d4c, #102933); }
.plan-card .kicker { color: var(--yellow); }
.plan-card h3 { margin-bottom: 10px; font-size: 42px; }
.plan-card p { margin-bottom: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.6; }
.plan-card ul { margin: 0; padding: 5px 26px 17px; list-style: none; }
.plan-card li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.plan-card li:last-child { border-bottom: 0; }
.plan-card li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--navy); background: var(--yellow); font-size: 18px; }
.plan-card li div { display: grid; gap: 4px; }
.plan-card li strong { font-size: 13px; }
.plan-card li small { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.4; }

.invitation { position: relative; min-height: 610px; padding: 72px 22px calc(44px + env(safe-area-inset-bottom)); overflow: hidden; background: var(--coral); color: white; text-align: center; }
.invitation::before, .invitation::after { content: "♡"; position: absolute; color: rgba(255,255,255,.1); font-family: Georgia, serif; font-size: 220px; transform: rotate(-18deg); }
.invitation::before { top: -70px; left: -70px; }
.invitation::after { right: -80px; bottom: -90px; }
.mini-heart { display: grid; width: 48px; height: 48px; margin: 0 auto 22px; place-items: center; border-radius: 50%; color: var(--coral); background: white; box-shadow: 0 8px 20px rgba(143,44,38,.2); }
.invitation .kicker { color: #631f1b; }
.invitation h3 { position: relative; z-index: 1; font-size: clamp(47px, 13vw, 68px); }
.invitation > p { position: relative; z-index: 1; max-width: 360px; margin: 0 auto 30px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.55; }
.answer-zone { position: relative; z-index: 3; width: min(100%, 400px); min-height: 190px; margin: 0 auto; }
.yes-button, .no-button { border: 0; font-weight: 900; cursor: pointer; }
.yes-button { position: relative; display: flex; width: 100%; min-height: 59px; align-items: center; justify-content: center; gap: 9px; overflow: hidden; border-radius: 18px; color: var(--coral-dark); background: linear-gradient(120deg, #fff 0%, #fff 45%, #fff4ef 72%, #fff 100%); background-size: 220% 100%; box-shadow: 0 12px 30px rgba(118,36,31,.22); isolation: isolate; animation: yes-breathe 2.5s ease-in-out infinite; transition: color .2s ease, box-shadow .2s ease; }
.yes-button::before { content: ""; position: absolute; z-index: -1; top: -55%; bottom: -55%; left: -28%; width: 18%; background: linear-gradient(90deg, transparent, rgba(255,107,95,.34), transparent); transform: skewX(-18deg) translateX(-280%); animation: yes-shimmer 3.4s ease-in-out infinite; }
.yes-button::after { content: ""; position: absolute; z-index: -2; inset: 6px; border: 1px solid rgba(255,107,95,.16); border-radius: 13px; animation: yes-inner-glow 2.5s ease-in-out infinite; }
.yes-button span { display: inline-block; color: var(--coral-dark); transform-origin: center; animation: yes-heartbeat 1.35s ease-in-out infinite; }
.yes-button:hover { color: #b92f29; box-shadow: 0 16px 38px rgba(118,36,31,.34), 0 0 0 8px rgba(255,255,255,.13); }
.yes-button:active { animation: none; transform: scale(.97); }
@keyframes yes-breathe { 0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 12px 30px rgba(118,36,31,.22); } 50% { transform: translateY(-3px) scale(1.018); box-shadow: 0 18px 38px rgba(118,36,31,.34), 0 0 0 7px rgba(255,255,255,.12); } }
@keyframes yes-shimmer { 0%, 43% { transform: skewX(-18deg) translateX(-280%); } 72%, 100% { transform: skewX(-18deg) translateX(820%); } }
@keyframes yes-inner-glow { 0%, 100% { opacity: .35; transform: scale(.98); } 50% { opacity: .9; transform: scale(1); } }
@keyframes yes-heartbeat { 0%, 44%, 100% { transform: scale(1); } 15% { transform: scale(1.3) rotate(-5deg); } 27% { transform: scale(1.08) rotate(4deg); } }
.no-button { position: absolute; top: 79px; left: 50%; min-width: 88px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; color: white; background: rgba(99,31,27,.18); transform: translateX(-50%); transition: left .16s cubic-bezier(.2,.95,.35,1), top .16s cubic-bezier(.2,.95,.35,1), transform .12s; touch-action: none; }
.no-button.is-dodging { animation: no-dodge-shake .34s linear; }
.no-button.is-catchable { border-color: white; background: rgba(99,31,27,.55); animation: no-nervous .75s linear infinite; }
.tease { position: relative; z-index: 2; display: block; min-height: 17px; margin-top: 7px; color: rgba(99,31,27,.76); font-size: 10px; font-weight: 800; }

.no-feedback { position: fixed; z-index: 18; right: 16px; bottom: max(24px, env(safe-area-inset-bottom)); left: 16px; max-width: 420px; margin: 0 auto; padding: 20px 21px; border: 1px solid rgba(255,255,255,.62); border-radius: 22px; color: white; background: rgba(18,44,58,.94); box-shadow: 0 22px 55px rgba(18,44,58,.3); opacity: 0; pointer-events: none; transform: translateY(28px) scale(.96); transition: opacity .3s ease, transform .3s cubic-bezier(.22,.8,.25,1); }
.no-feedback.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.no-feedback p { position: relative; z-index: 2; margin: 0; font-size: 15px; font-weight: 750; line-height: 1.5; }
.no-feedback__emojis { position: fixed; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.no-feedback__emojis span { position: absolute; top: var(--y); left: var(--x); opacity: 0; filter: drop-shadow(0 5px 8px rgba(18,44,58,.18)); animation: sad-face-pop 2.7s ease-out var(--delay) both; }

@keyframes no-dodge-shake { 0%, 100% { rotate: 0deg; } 20% { rotate: -7deg; } 40% { rotate: 8deg; } 60% { rotate: -5deg; } 80% { rotate: var(--dodge-rotate); } }
@keyframes no-nervous { 0%, 100% { rotate: 0deg; } 20% { rotate: -3deg; } 40% { rotate: 3deg; } 60% { rotate: -2deg; } 80% { rotate: 2deg; } }
@keyframes sad-face-pop { 0% { opacity: 0; transform: translate(0, 25px) scale(.4) rotate(-12deg); } 24% { opacity: 1; transform: translate(var(--drift), 0) scale(1.15) rotate(6deg); } 72% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--drift-end), -95px) scale(.82) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .yes-button, .yes-button::before, .yes-button::after, .yes-button span, .no-button, .no-button.is-dodging, .no-button.is-catchable, .no-feedback__emojis span { animation: none; transition-duration: .01ms; } }

.celebration { position: fixed; z-index: 20; inset: 0; display: none; overflow: auto; padding: max(46px, env(safe-area-inset-top)) 24px max(36px, env(safe-area-inset-bottom)); place-items: center; color: var(--navy); background: var(--yellow); text-align: center; }
.celebration.is-open { display: grid; animation: pageIn .35s ease both; }
.celebration__content { position: relative; z-index: 2; max-width: 480px; }
.celebration__stamp { display: grid; width: 92px; height: 92px; margin: 0 auto 28px; place-items: center; border: 3px solid var(--coral); border-radius: 50%; color: white; background: var(--coral); box-shadow: 0 15px 0 rgba(217,77,69,.15); font-family: Georgia, serif; font-size: 42px; transform: rotate(-8deg); }
.celebration h2 { margin: 17px 0 22px; font-family: Georgia, serif; font-size: clamp(60px, 17vw, 90px); line-height: .82; letter-spacing: -.065em; font-weight: 500; }
.celebration p { margin: 0 auto 30px; color: #52636b; line-height: 1.65; }
.celebration button { min-height: 54px; padding: 0 22px; border: 0; border-radius: 17px; color: white; background: var(--navy); font-weight: 850; cursor: pointer; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: 10px; height: 16px; border-radius: 3px; animation: fall var(--duration) linear var(--delay) infinite; transform: rotate(var(--rotation)); }

.reveal { animation: rise .7s cubic-bezier(.22,.8,.25,1) both; }
.reveal--delay-1 { animation-delay: .12s; }
.reveal--delay-2 { animation-delay: .22s; }
.reveal--delay-3 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.date-node--active.reveal { animation-name: activeRise; }
@keyframes activeRise { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes bob { 50% { transform: translateY(6px); } }
@keyframes wiggle { 20% { transform: translateX(-50%) rotate(-7deg); } 60% { transform: translateX(-50%) rotate(7deg); } }
@keyframes fall { to { transform: translateY(110vh) rotate(760deg); } }

@media (min-width: 700px) {
  #app { max-width: 760px; min-height: 100vh; margin: 0 auto; box-shadow: 0 0 80px rgba(25,35,40,.12); }
  .photo-story { grid-template-columns: repeat(3, 1fr); }
  .story-photo { height: 430px; }
  .story-photo--action, .story-photo--hands, .story-photo--picnic { background-size: cover; }
  .intro-copy { padding-right: 80px; padding-left: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
