/* ==========================================================
   Twinkle Little Star — a lullaby baby shower
   Periwinkle night, lilac, cream and soft gold; Marcellus, Alex Brush, Cormorant, Caveat.
   ========================================================== */

.tw {
  --vx-bg: #2c2f6b;
  --vx-ink: #f6efe2;
  --vx-accent: #d9b86a;
  --vx-accent-ink: #2c2f6b;
  --vx-line: rgba(217, 184, 106, 0.35);
  --vx-field-bg: rgba(255, 255, 255, 0.08);
  --vx-field-ink: #f6efe2;
  --vx-display: 'VS Numbers', 'Marcellus', serif;
  --vx-body: 'VS Numbers', 'Cormorant Garamond', serif;
  --tw-night: #2c2f6b;
  --tw-deep: #1d1f4d;
  --tw-lilac: #b9a7e3;
  --tw-cream: #f6efe2;
  --tw-gold: #d9b86a;
  --tw-ink: #3b3466;
  background: #14163a;
}
.tw .vx-loader { background: radial-gradient(circle at 50% 40%, #4a4a94, #1d1f4d 75%); }
.tw .vx-loader-mono { font: 400 3rem 'VS Numbers', 'Marcellus', serif; color: var(--tw-gold); }
.tw .vx-loader-text { font: 400 1.4rem 'Caveat', cursive; color: var(--tw-cream); }

.tw-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.tw-backdrop img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; filter: blur(26px) brightness(0.6); }

.tw-col { background: var(--tw-night); color: var(--tw-cream); box-shadow: 0 0 90px rgba(0, 0, 0, 0.5); }
.tw-sec { position: relative; padding: 92px 24px; text-align: center; overflow: hidden; }
.tw-kicker { margin: 0 0 12px; font: 400 0.72rem 'VS Numbers', 'Marcellus', serif; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tw-gold); }
.tw-h2 { margin: 0 0 22px; font: 400 clamp(2rem, 9vw, 2.5rem)/1.12 'VS Numbers', 'Marcellus', serif; color: #fff8ec; }
.tw-p { margin: 0 auto 22px; max-width: 360px; font: italic 500 1.12rem/1.6 'VS Numbers', 'Cormorant Garamond', serif; color: #dcd6f0; }
.tw-script { margin: 0 0 6px; font: 400 2.1rem/1.1 'Alex Brush', cursive; color: var(--tw-gold); }

/* ---------- Opening: wind the music box ---------- */
.tw-stage { z-index: 30; overflow: hidden; background: #2a2440; touch-action: none; user-select: none; -webkit-user-select: none; }
.tw-stage-poster, .tw-open { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tw-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(30, 24, 60, 0.55), transparent 26%, transparent 64%, rgba(25, 20, 50, 0.75)); }
.tw-stage-top { position: absolute; z-index: 2; top: 6%; left: 0; right: 0; text-align: center; color: var(--tw-cream); pointer-events: none; }
.tw-dear { margin: 0 0 4px; font: 400 1.6rem 'Caveat', cursive; }
.tw-stage-line { margin: 0; font: 400 1.9rem 'Alex Brush', cursive; color: #fbe6b8; text-shadow: 0 2px 14px rgba(20, 10, 40, 0.7); }
.tw-wind { position: absolute; z-index: 2; left: 50%; top: 56%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.tw-wind svg { width: 100%; height: 100%; overflow: visible; }
.tw-wind circle { fill: none; stroke-width: 2; }
.tw-wind-track { stroke: rgba(255, 240, 210, 0.28); stroke-dasharray: 3 7; }
.tw-wind-ring { stroke: #fbe6b8; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 6px rgba(255, 220, 150, 0.9)); }
.tw-wind-arrow { fill: none; stroke: #fbe6b8; stroke-width: 2; stroke-linecap: round; }
.tw-wind-dot { position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 16px 4px rgba(255, 220, 150, 0.8); transform-origin: 9px calc(32vw + 9px); }
.tw-stage-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5%; text-align: center; }
.tw-wind-label { margin: 0 0 8px; font: 400 1.4rem 'Caveat', cursive; color: var(--tw-cream); text-shadow: 0 2px 10px rgba(20, 10, 40, 0.8); }
.tw-wind-btn { padding: 8px 16px; border: 1px solid rgba(251, 230, 184, 0.5); border-radius: 999px; background: rgba(30, 24, 60, 0.4); color: #fbe6b8; font: 400 0.62rem 'Marcellus', serif; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.tw-hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.tw-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(29, 31, 77, 0.55) 72%, var(--tw-night)); }
.tw-sing { position: absolute; inset: 0; z-index: 2; }
.tw-star { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 10px rgba(255, 230, 160, 0.8)); -webkit-tap-highlight-color: transparent; }
.tw-star img { width: 100%; height: 100%; pointer-events: none; }
.tw-star::after { content: ''; position: absolute; inset: -60%; border-radius: 50%; }
.tw-sing-hint { position: absolute; z-index: 3; top: 40%; left: 0; right: 0; margin: 0; text-align: center; font: 400 1.3rem 'Caveat', cursive; color: #fff3d6; text-shadow: 0 2px 10px rgba(20, 10, 40, 0.8); pointer-events: none; }
.tw-note { position: absolute; z-index: 3; font: 400 1.4rem serif; color: #fff3d6; pointer-events: none; text-shadow: 0 0 10px rgba(255, 220, 150, 0.9); }
.tw-hero-text { position: relative; z-index: 3; padding: 0 20px 9svh; text-align: center; }
.tw-name { margin: 0; font: 400 clamp(3.6rem, 18vw, 5rem)/1 'Alex Brush', cursive; color: #fff8ec; text-shadow: 0 0 30px rgba(255, 220, 150, 0.5); }
.tw-hero-date { margin: 8px 0 4px; font: 400 0.82rem 'VS Numbers', 'Marcellus', serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tw-gold); }
.tw-hero-due { margin: 0; font: italic 500 1.1rem 'VS Numbers', 'Cormorant Garamond', serif; color: #dcd6f0; }

/* ---------- Letter ---------- */
.tw-letter { background: linear-gradient(180deg, var(--tw-night), #4b4789 40%, #b9a7e3); padding-bottom: 120px; }
.tw-letter-moon { width: 92px; margin: 0 auto 10px; filter: drop-shadow(0 0 20px rgba(255, 240, 200, 0.6)); }
.tw-paper { position: relative; padding: 34px 26px 30px; border-radius: 6px; text-align: left; background: #fbf6ea; color: #3b3466; box-shadow: 0 30px 60px -30px rgba(20, 10, 40, 0.7); background-image: repeating-linear-gradient(transparent 0 33px, rgba(150, 140, 200, 0.18) 33px 34px); }
.tw-line { margin: 0 0 12px; font: 400 1.32rem/1.45 'VS Numbers', 'Caveat', cursive; }
.tw-line--hello { font-size: 1.6rem; color: #6b4fa0; }
.tw-line--sign { text-align: right; font-size: 1.6rem; color: #6b4fa0; margin-top: 18px; }
.tw-letter-bunny { position: absolute; right: 6px; bottom: 10px; width: 100px; transform: rotate(8deg); filter: drop-shadow(0 10px 14px rgba(40, 20, 60, 0.35)); }

/* ---------- Photos in clouds ---------- */
.tw-clouds { background: linear-gradient(180deg, #b9a7e3, #d9d0f2 50%, #c7bdea); color: var(--tw-ink); padding-bottom: 60px; }
.tw-clouds .tw-h2 { color: var(--tw-ink); }
.tw-clouds .tw-kicker { color: #7b5fb0; }
.tw-cloud-photos { position: relative; height: 760px; }
.tw-cphoto { position: absolute; margin: 0; width: 64%; }
.tw-cphoto--0 { left: -2%; top: 0; }
.tw-cphoto--1 { right: -4%; top: 230px; width: 58%; }
.tw-cphoto--2 { left: 6%; top: 470px; width: 66%; }
.tw-cphoto-mask { aspect-ratio: 1.25; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 200'%3E%3Cpath d='M58 190c-31 0-56-23-56-52 0-26 20-48 46-51 5-41 38-72 79-72 34 0 63 21 74 52 26 3 47 25 47 52 0 30-25 54-56 54-2 0-4 0-6 0H64c-2 0-4 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 200'%3E%3Cpath d='M58 190c-31 0-56-23-56-52 0-26 20-48 46-51 5-41 38-72 79-72 34 0 63 21 74 52 26 3 47 25 47 52 0 30-25 54-56 54-2 0-4 0-6 0H64c-2 0-4 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 12px 18px rgba(60, 40, 100, 0.3)); }
.tw-cphoto-mask img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tw-cphoto figcaption { margin-top: -6px; font: 400 1.5rem 'Caveat', cursive; color: #5a4791; }
.tw-cloud-deco { position: absolute; width: 120px; opacity: 0.9; pointer-events: none; }
.tw-cloud-deco--a { right: 2%; top: 60px; }
.tw-cloud-deco--b { left: 0; top: 400px; width: 100px; }

/* ---------- Storybook (pinned) ---------- */
.tw-book-sec { position: relative; height: 420svh; background: var(--tw-deep); }
.tw-book-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 70px 18px 0; text-align: center; background: radial-gradient(circle at 50% 60%, #3d3a80, var(--tw-deep) 70%); }
.tw-book { position: relative; width: min(370px, 94vw); aspect-ratio: 667 / 431; margin-top: 20px; perspective: 1200px; }
.tw-book-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5)); }
.tw-page { position: absolute; left: 9%; right: 9%; top: 13%; bottom: 16%; display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; text-align: left; color: #4a3e2e; opacity: 0; }
.tw-page-no { grid-column: 1; margin: 0; align-self: start; font: 400 0.62rem 'Marcellus', serif; letter-spacing: 0.2em; text-transform: uppercase; color: #9a7a3e; }
.tw-page h3 { grid-column: 1; grid-row: 1 / span 2; margin: 18px 0 0; font: 400 1.05rem/1.25 'Alex Brush', cursive; font-size: 1.45rem; color: #6b4fa0; }
.tw-page p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; font: italic 500 0.86rem/1.35 'VS Numbers', 'Cormorant Garamond', serif; }
.tw-page-turn { position: absolute; top: 9%; bottom: 12%; left: 50%; width: 42%; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, #efe4cc, #fbf4e3); transform-origin: 0 50%; opacity: 0; box-shadow: -10px 0 20px rgba(0, 0, 0, 0.15); }
.tw-book-hint { margin-top: 24px; font: 400 1.25rem 'Caveat', cursive; color: #cfc6ee; }

/* ---------- Counting sheep ---------- */
.tw-sheep { background: linear-gradient(180deg, var(--tw-deep), #5b5499 55%, #8e83c9); }
.tw-meadow { position: relative; height: 220px; margin: 0 -24px 26px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #7fa38f 0 40%, transparent 41%); }
.tw-fence { position: absolute; left: 50%; bottom: 18px; width: 120px; transform: translateX(-50%); }
.tw-sheep-wait { position: absolute; left: 6%; bottom: 20px; width: 92px; }
.tw-sheep-jump { position: absolute; left: 20%; bottom: 22px; width: 96px; opacity: 0; }
.tw-sheep-count { position: absolute; left: 0; right: 0; top: 10px; margin: 0; font: 400 1.3rem 'Caveat', cursive; color: #fff3d6; }
.tw-puffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 28px; }
.tw-puff { position: relative; display: grid; justify-items: center; }
.tw-puff img { width: 100%; max-width: 92px; }
.tw-puff b { position: absolute; top: 18%; left: 0; right: 0; font: 400 1.35rem/1 'VS Numbers', 'Marcellus', serif; color: #3b3466; }
.tw-puff span { margin-top: 2px; font: 400 0.58rem 'Marcellus', serif; letter-spacing: 0.16em; text-transform: uppercase; color: #fff3d6; }
.tw .vx-btn--ghost { color: #fbe6b8; border-color: rgba(251, 230, 184, 0.6); }

/* ---------- Venue ---------- */
.tw-venue { background: linear-gradient(180deg, #8e83c9, var(--tw-night)); }
.tw-lamp { width: 90px; margin: 0 auto 10px; filter: drop-shadow(0 0 24px rgba(255, 220, 150, 0.7)); }

/* ---------- Wishes ---------- */
.tw-wishes { background: radial-gradient(ellipse at 50% 30%, #3a3a86, var(--tw-deep) 70%); }
.tw-wish-sky { position: relative; height: 380px; margin: 0 -10px; }
.tw-wish { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; margin: -17px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 12px rgba(255, 230, 160, 0.9)); }
.tw-wish img { width: 100%; height: 100%; pointer-events: none; }
.tw-wish.is-new { width: 46px; height: 46px; margin: -23px; }
.tw-wish-bubble { position: absolute; left: 8%; right: 8%; bottom: 0; padding: 16px 18px; border-radius: 18px; background: rgba(251, 246, 234, 0.95); color: #3b3466; text-align: center; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
.tw-wish-bubble p { margin: 0 0 6px; font: 400 1.3rem/1.3 'VS Numbers', 'Caveat', cursive; }
.tw-wish-bubble b { font: 400 0.65rem 'Marcellus', serif; letter-spacing: 0.2em; text-transform: uppercase; color: #9a7a3e; }

/* ---------- Wishlist ---------- */
.tw-list { background: linear-gradient(180deg, var(--tw-deep), #4b4789); }
.tw-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.tw-gift { padding: 16px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--vx-line); }
.tw-gift img { height: 84px; width: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); }
.tw-gift h3 { margin: 0 0 4px; font: 400 0.95rem/1.25 'Marcellus', serif; color: #fff8ec; }
.tw-gift p { margin: 0; font: 400 1.05rem 'Caveat', cursive; color: #cfc6ee; }

/* ---------- RSVP ---------- */
.tw-rsvp { background: linear-gradient(180deg, #4b4789, var(--tw-night)); padding-top: 140px; }
.tw-reply { position: relative; padding: 70px 20px 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--vx-line); backdrop-filter: blur(6px); }
.tw-reply-mobile { position: absolute; top: -110px; left: 50%; width: 150px; margin-left: -75px; transform-origin: 50% 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.tw .vx-thanks-title { font: 400 2.2rem 'Alex Brush', cursive; color: var(--tw-gold); }

/* ---------- FAQ ---------- */
.tw-faq-sec { background: var(--tw-night); padding-top: 50px; }
.tw-faq { text-align: left; }
.tw-faq details { border-bottom: 1px solid var(--vx-line); }
.tw-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font: 400 1.05rem 'Marcellus', serif; color: #fff8ec; }
.tw-faq summary::-webkit-details-marker { display: none; }
.tw-faq summary::after { content: '☆'; color: var(--tw-gold); }
.tw-faq details[open] summary::after { content: '★'; }
.tw-faq p { margin: -4px 0 16px; font: italic 500 1.05rem/1.55 'VS Numbers', 'Cormorant Garamond', serif; color: #dcd6f0; }

/* ---------- Finale ---------- */
.tw-finale { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 130px; background: radial-gradient(circle at 50% 35%, #34337a, #14163a 75%); }
#tw-fireflies { z-index: 0; }
.tw-finale > *:not(canvas) { position: relative; z-index: 1; }
.tw-finale-box { width: 170px; margin-bottom: 16px; filter: drop-shadow(0 0 30px rgba(255, 210, 140, 0.5)); }
.tw-finale-names { margin: 0; font: 400 clamp(2.2rem, 10vw, 2.8rem) 'VS Numbers', 'Marcellus', serif; color: #fff8ec; }
.tw-finale-names em { font: 400 1.2em 'Alex Brush', cursive; color: var(--tw-gold); }
.tw-finale-date { margin: 6px 0 0; font: 400 0.8rem 'VS Numbers', 'Marcellus', serif; letter-spacing: 0.25em; color: var(--tw-gold); }
.tw-finale .vx-share { margin-top: 26px; }
.tw .vx-dock { background: rgba(29, 31, 77, 0.82); }
.tw .vx-music { background: rgba(29, 31, 77, 0.5); color: var(--tw-gold); }

/* ---------- Program & gallery ---------- */
.tw-program { --vx-card: #fbf6ea; --vx-card-ink: #2c2a55; --vx-program-time: #f1d48f; --vx-accent-ink: #2c2f6b; background: linear-gradient(180deg, var(--tw-night), #3b3a80); }
.tw-gallery { background: linear-gradient(180deg, #c7bdea, #b9a7e3); color: var(--tw-ink); }
.tw-gallery .tw-h2 { color: var(--tw-ink); }
.tw-gallery .tw-kicker { color: #6b4fa0; }
.tw-gallery-hint { margin: 0; font: 400 1.25rem 'Caveat', cursive; color: #5a4791; }
.tw .vx-program-title { font-family: 'VS Numbers', 'Marcellus', serif; color: #fbe6b8; }

/* ---------- Readability ---------- */
.tw-stage-line, .tw-wind-label, .tw-sing-hint { display: inline-block; padding: 6px 16px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(30, 24, 60, 0.5); }
.tw-stage-line { font-size: 1.7rem; }
.tw-sing-hint { left: 50%; right: auto; transform: translateX(-50%); }
.tw-kicker { font-size: 0.76rem; color: #f1d48f; }
.tw-p, .tw-faq p, .tw-hero-due { font-size: 1.15rem; color: #ece8fb; }
.tw-puff span, .tw-page-no { font-size: 0.68rem; }
.tw-page p:last-child { font-size: 0.95rem; }
.tw-gift p { font-size: 1.15rem; color: #e3ddf8; }

.tw-wind-label { width: max-content; max-width: 92%; white-space: normal; text-align: center; }
@media (prefers-reduced-motion: reduce) { .tw-star { transition: none; } }

/* ---------- Readable for every guest: labels from 13.5px, text from 15px ---------- */
:root .tw-finale-date { font-size: 0.844rem; letter-spacing: 0.14em; }
:root .tw-kicker { font-size: 0.844rem; letter-spacing: 0.14em; }
:root .tw-puff > span { font-size: 0.844rem; }
:root .tw-wind-btn { font-size: 0.844rem; letter-spacing: 0.14em; }
/* ---------- end readable ---------- */
