/* ==========================================================================
   Her Little Universe: powder blue + white + midnight blue
   Colors are variables below. Change them once and the whole site follows.
   ========================================================================== */
:root {
  --midnight: #0f1e3d;
  --navy: #1b2f5e;
  --navy-soft: #2f4a80;
  --sky: #7fb8ec;
  --baby: #a9d0f4;
  --powder: #a8cbee;
  --mist: #bcd6f1;
  --white: #ffffff;
  --silver: #c7d2df;
  --ink: #1d2c4d;            /* body text on light backgrounds */
  --ink-soft: #2f4570;
  --glow: rgba(110, 170, 235, 0.6);
  --line: rgba(27, 47, 94, 0.18);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --radius: 26px;
  --shadow: 0 18px 50px -18px rgba(27, 47, 94, 0.35);
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.05rem; line-height: 1.75; color: var(--ink);
  background: linear-gradient(180deg, #bcd6f1, #a9cbee 40%, #bcd6f1); overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--midnight); }
h2 em, .hero-title em { font-style: italic; color: var(--navy-soft); }
p { margin: 0 0 1.1rem; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 2; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--white); color: var(--midnight); padding: 0.6rem 1rem; border-radius: 10px; z-index: 300; }
.skip:focus { left: 0.5rem; }

/* ---------- Navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: 14px; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative; width: min(var(--maxw), 100% - 2rem); margin-inline: auto; height: 56px; padding: 0 0.7rem 0 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--white);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.site-header.scrolled .nav { background: rgba(15, 30, 61, 0.78); color: var(--white); box-shadow: 0 10px 30px -14px rgba(15, 30, 61, 0.6); border-color: rgba(142, 197, 240, 0.35); }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand svg { color: var(--sky); filter: drop-shadow(0 0 6px var(--glow)); }
.nav-links { display: flex; gap: 0.1rem; }
.nav-links a { display: block; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.92rem; letter-spacing: 0.02em; opacity: 0.88; transition: background 0.25s, opacity 0.25s; }
.nav-links a:hover { opacity: 1; background: rgba(142, 197, 240, 0.28); }
.nav-links a.active { opacity: 1; background: rgba(142, 197, 240, 0.4); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.7rem; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Shared sky pieces (stars, clouds) ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.star { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.8); animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; opacity: 0.2; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.cloud { position: absolute; width: 380px; height: 110px; border-radius: 999px; background: rgba(214, 232, 250, 0.4); filter: blur(34px); animation: drift 60s linear infinite; }
.cloud.c1 { top: 52%; left: -420px; }
.cloud.c2 { top: 30%; left: -420px; width: 300px; animation-duration: 85s; animation-delay: -30s; opacity: 0.7; }
.cloud.c3 { top: 72%; left: -420px; width: 460px; animation-duration: 100s; animation-delay: -55s; }
@keyframes drift { to { transform: translateX(calc(100vw + 900px)); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 7rem 0 9rem; color: var(--white); overflow: hidden;
  background: linear-gradient(180deg, #0f1e3d 0%, #1d3566 32%, #4a79b8 62%, #8bbcec 88%, #bcd6f1 100%);
}
.moon { position: absolute; top: 17%; right: 3.5%; width: clamp(64px, 8vw, 118px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #e3effc 55%, #bcdcf6 100%); box-shadow: 0 0 60px 18px rgba(188, 220, 246, 0.45), 0 0 140px 50px rgba(142, 197, 240, 0.25); animation: float 9s ease-in-out infinite; }
.moon span { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); }
.moon::after { content: ""; position: absolute; inset: -34%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.18); animation: spin 80s linear infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; }
.waves svg { width: 100%; height: 100%; display: block; }
.waves .w1 { fill: rgba(188, 214, 241, 0.5); animation: sway 9s ease-in-out infinite alternate; }
.waves .w2 { fill: var(--mist); }
@keyframes sway { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.hero-inner { text-align: center; max-width: 900px; }
.kicker { font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--baby); margin-bottom: 1.4rem; }
.hero-title { font-size: clamp(2.5rem, 7.2vw, 5rem); font-weight: 500; color: var(--white); text-shadow: 0 6px 40px rgba(15, 30, 61, 0.4); }
.hero-title .line { display: block; }
.hero-title em { color: var(--baby); }
.hero-sub { max-width: 600px; margin: 1.8rem auto 2.2rem; font-size: 1.12rem; font-weight: 300; color: rgba(255, 255, 255, 0.92); }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.8rem; border-radius: 999px; border: 1px solid transparent; font: 500 0.98rem var(--sans); letter-spacing: 0.04em; cursor: pointer;
  background: #d6e8fa; color: var(--midnight); box-shadow: 0 10px 30px -10px rgba(15, 30, 61, 0.5), 0 0 0 0 var(--glow); transition: transform 0.3s, box-shadow 0.3s, background 0.3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(15, 30, 61, 0.55), 0 0 28px 4px var(--glow); }
.btn.ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }
.scroll-cue { position: absolute; bottom: 4.6rem; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 14px; z-index: 3; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-tint { background: linear-gradient(180deg, #bcd6f1, #96bde8 50%, #bcd6f1); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 0.9rem; }
.eyebrow.light { color: var(--baby); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section-head.left { text-align: left; margin-left: 0; }
.section-sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-body .lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.4; color: var(--midnight); }
.about-body p { color: var(--ink-soft); }
.about-body .lead { color: var(--midnight); }
.becoming { position: relative; margin-top: 2.6rem; display: flex; align-items: center; padding-bottom: 2.4rem; }
.b-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-soft); box-shadow: 0 0 14px 2px var(--glow); flex: none; }
.b-dot.big { width: 20px; height: 20px; background: var(--navy); box-shadow: 0 0 0 6px rgba(142, 197, 240, 0.4), 0 0 24px 6px var(--glow); animation: pulse 3s ease-in-out infinite; }
.b-line { height: 2px; flex: 1; background: linear-gradient(90deg, var(--sky), var(--navy-soft)); border-radius: 2px; }
.becoming p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: flex; justify-content: space-between; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-soft); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(142, 197, 240, 0.4), 0 0 20px 4px var(--glow); } 50% { box-shadow: 0 0 0 10px rgba(142, 197, 240, 0.18), 0 0 34px 10px var(--glow); } }

/* Cards */
.cards { display: grid; gap: 1.4rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.six { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: 2.2rem 1.8rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(222, 236, 251, 0.85), rgba(176, 207, 241, 0.72)); border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s; transform-style: preserve-3d; will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(142, 197, 240, 0.28), transparent 60%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card:hover { box-shadow: 0 26px 60px -18px rgba(27, 47, 94, 0.45), 0 0 0 1px rgba(142, 197, 240, 0.6); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.75rem; color: var(--midnight); margin-bottom: 0.6rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.icon { width: 68px; height: 68px; margin-bottom: 1.4rem; border-radius: 22px; display: grid; place-items: center; color: var(--navy); background: linear-gradient(145deg, #e0eefc, #9cc6ee); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px -10px rgba(47, 74, 128, 0.5); transition: transform 0.4s; }
.icon svg { width: 38px; height: 38px; }
.card:hover .icon { transform: translateY(-5px) rotate(-4deg); }
.card.glass { background: linear-gradient(160deg, rgba(214, 231, 250, 0.7), rgba(150, 190, 236, 0.5)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glyph { display: block; font-size: 2rem; line-height: 1; margin-bottom: 1rem; color: var(--navy-soft); text-shadow: 0 0 18px var(--glow); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", var(--sans); }
#personality { background: radial-gradient(900px 400px at 85% 0%, rgba(110, 170, 235, 0.4), transparent 70%), radial-gradient(700px 400px at 5% 100%, rgba(130, 180, 235, 0.45), transparent 70%), #b3d0ef; }

/* Dreams path */
.dreams-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.dreams-wrap .section-head { position: sticky; top: 7rem; margin-bottom: 0; }
.path { position: relative; padding-left: 2.6rem; }
.path::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--navy-soft)); border-radius: 2px; opacity: 0.7; }
.path li { position: relative; margin-bottom: 1.6rem; }
.path li:last-child { margin-bottom: 0; }
.node { position: absolute; left: -2.6rem; top: 1.6rem; width: 24px; height: 24px; border-radius: 50%; background: #d6e8fa; border: 2px solid var(--sky); box-shadow: 0 0 0 6px rgba(142, 197, 240, 0.25), 0 0 20px 3px var(--glow); }
.node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--navy-soft); }
.path-card { padding: 1.8rem 1.9rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(222, 236, 251, 0.85), rgba(176, 207, 241, 0.72)); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.45); transition: transform 0.4s, box-shadow 0.4s; }
.path-card:hover { transform: translateX(8px); box-shadow: 0 24px 56px -18px rgba(27, 47, 94, 0.45), 0 0 0 1px rgba(142, 197, 240, 0.6); }
.path-card h3 { font-size: 1.6rem; color: var(--midnight); margin-bottom: 0.5rem; }
.path-card p { margin: 0; color: var(--ink-soft); }

/* Reminder */
.reminder { background: linear-gradient(180deg, #bcd6f1 0, #4a79b8 12%, #1d3566 38%, #0f1e3d 100%); color: var(--white); overflow: hidden; padding-top: clamp(6rem, 12vw, 10rem); }
.sky.night { z-index: 0; }
.sky.night .cloud { background: rgba(142, 197, 240, 0.16); }
.reminder h2 { color: var(--white); }
.reminder h2 em { color: var(--baby); }
.letter { max-width: 720px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 32px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); text-align: center; }
.letter p { color: rgba(255, 255, 255, 0.9); }
.letter-main { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.25; color: #fff !important; margin-bottom: 1.4rem; }
.letter-end { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--baby) !important; margin-top: 1.6rem; }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 1.4rem 0 0; color: rgba(255, 255, 255, 0.78) !important; }
.reminder-box { max-width: 720px; margin: 2.4rem auto 0; text-align: center; }
.reminder-text { min-height: 4.4em; display: grid; place-items: center; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-style: italic; line-height: 1.4; color: var(--baby); transition: opacity 0.45s, transform 0.45s; }
.reminder-text.fade { opacity: 0; transform: translateY(8px); }

/* Footer */
.footer { text-align: center; padding: 3rem 1.25rem 3.5rem; background: var(--midnight); color: rgba(255, 255, 255, 0.75); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin: 0 0 0.3rem; }
.footer-note { margin: 0; font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity 0.9s ease var(--rd, 0s), transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards.three, .cards.six { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .dreams-wrap { grid-template-columns: 1fr; }
  .dreams-wrap .section-head { position: static; margin-bottom: 1rem; }
  .moon { right: 6%; top: 11%; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; flex-direction: column; padding: 0.7rem; border-radius: 24px;
    background: rgba(15, 30, 61, 0.94); color: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(142, 197, 240, 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 0.8rem 1rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards.three, .cards.six { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; padding-bottom: 8rem; }
  .brand { font-size: 1.2rem; }
  .path { padding-left: 2.2rem; }
  .node { left: -2.2rem; }
  .path-card { padding: 1.4rem; }
  .becoming p { font-size: 0.7rem; letter-spacing: 0.08em; }
  .scroll-cue { bottom: 4.2rem; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .star { opacity: 0.7; }
  .cloud { left: 10%; }
}


/* ==========================================================================
   Playful layer: sound button, sparkles, wishing stars, lit dreams, toast
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), #fff); box-shadow: 0 0 10px var(--glow); }

.nav-links { order: 2; }
.sound-toggle { order: 3; display: grid; place-items: center; width: 38px; height: 38px; flex: none; margin-left: 0.3rem; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); color: inherit; transition: background 0.25s, box-shadow 0.25s, transform 0.25s; }
.sound-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.08); }
.sound-toggle .ico-on { display: none; }
.sound-toggle[aria-pressed="true"] .ico-on { display: block; }
.sound-toggle[aria-pressed="true"] .ico-off { display: none; }
.sound-toggle[aria-pressed="true"] { box-shadow: 0 0 14px rgba(127, 184, 236, 0.7); border-color: var(--sky); }
.nav-toggle { order: 4; }

.fx-layer { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.spark { position: fixed; pointer-events: none; line-height: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.9); transform: translate(-50%, -50%); animation: spark 0.9s ease-out forwards; }
@keyframes spark {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); }
}
.trail { position: fixed; width: var(--s, 5px); height: var(--s, 5px); margin: calc(var(--s, 5px) / -2) 0 0 calc(var(--s, 5px) / -2); border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 2px rgba(127, 184, 236, 0.9); pointer-events: none; animation: trail 0.8s ease-out forwards; }
@keyframes trail { to { opacity: 0; transform: translateY(14px) scale(0.2); } }
.float-word { position: fixed; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: #fff; text-shadow: 0 0 14px var(--glow), 0 2px 10px rgba(15, 30, 61, 0.5); pointer-events: none; animation: float-word 1.6s ease-out forwards; }
@keyframes float-word { from { opacity: 0; transform: translate(-50%, -30%) scale(0.8); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -190%) scale(1.1); } }

.catch { margin: 1.4rem 0 0; font-size: 0.9rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); }
.catch .again { background: none; border: 0; border-bottom: 1px dotted currentColor; color: var(--baby); font: inherit; cursor: pointer; padding: 0; }
.catch .again:hover { color: #fff; }
.wish { position: absolute; z-index: 3; width: 46px; height: 46px; padding: 8px; border: 0; background: none; cursor: pointer; animation: bob var(--bd, 6s) ease-in-out var(--bdelay, 0s) infinite; }
.wish svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px var(--glow)); transition: transform 0.25s; animation: glowpulse 2.6s ease-in-out infinite; }
.wish:hover svg, .wish:focus-visible svg { transform: scale(1.35) rotate(20deg); }
.wish.caught { animation: none; pointer-events: none; }
.wish.caught svg { animation: none; transform: scale(2.2); opacity: 0; transition: transform 0.4s, opacity 0.4s; }
@keyframes bob { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(8px, -14px); } 66% { transform: translate(-8px, -6px); } }
@keyframes glowpulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.shoot { position: absolute; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform: rotate(-35deg); opacity: 0; animation: shoot 1.2s ease-out forwards; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(-35deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-360px, 250px) rotate(-35deg); } }

.tap-hint { display: inline-block; font-size: 0.85em; font-style: italic; color: var(--navy-soft); opacity: 0.85; }
.card[data-fx], .card.tilt { cursor: pointer; }
.card:active { transform: scale(0.98) !important; }

.node { padding: 0; cursor: pointer; }
.node::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.node { transition: transform 0.25s, box-shadow 0.3s, background 0.3s; }
.node:hover { transform: scale(1.18); }
.node.lit { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 0 30px 8px var(--glow); }
.node.lit::after { background: var(--navy); }
.path li.lit .path-card { box-shadow: 0 24px 56px -18px rgba(27, 47, 94, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 36px rgba(127, 184, 236, 0.55); }

.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 260; max-width: min(92vw, 460px); padding: 0.8rem 1.4rem; border-radius: 999px; text-align: center; color: #fff; font-size: 0.98rem;
  background: rgba(15, 30, 61, 0.88); border: 1px solid rgba(142, 197, 240, 0.5); box-shadow: 0 14px 40px -12px rgba(15, 30, 61, 0.7), 0 0 24px rgba(127, 184, 236, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 1.1rem; bottom: 1.2rem; z-index: 120; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: rgba(15, 30, 61, 0.8); border: 1px solid rgba(142, 197, 240, 0.5); box-shadow: 0 10px 26px -10px rgba(15, 30, 61, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 0 22px rgba(127, 184, 236, 0.8); }

@media (max-width: 820px) { .sound-toggle { margin-left: auto; margin-right: -0.2rem; } }
@media (max-width: 600px) { .wish { width: 42px; height: 42px; } .toast { bottom: 5rem; } }
@media (prefers-reduced-motion: reduce) { .spark, .trail, .shoot { display: none; } .toast { transition: none; } }


/* ==========================================================================
   Blue universe theme: the fixed canvas (js/background.js) shows through the page.
   Cards stay light blue glass; text that sits directly on the sky turns light.
   ========================================================================== */
html { background: #0b1633; }
body { background: linear-gradient(165deg, #0b1633 0%, #13285a 28%, #1b3f80 62%, #2a5da8 100%) fixed; color: #eaf3fd; }
#space-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .footer { position: relative; z-index: 1; }

.hero { background: linear-gradient(180deg, rgba(8, 16, 40, 0.35) 0%, rgba(30, 70, 140, 0) 55%, rgba(60, 120, 200, 0.2) 100%); }
.sky .cloud { display: none; }
.waves .w1 { fill: rgba(127, 184, 236, 0.2); }
.waves .w2 { fill: rgba(80, 140, 215, 0.16); }
.section-tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(120, 175, 240, 0.12) 50%, rgba(255, 255, 255, 0)); }
#personality { background: none; }
.reminder { background: linear-gradient(180deg, rgba(8, 16, 40, 0) 0, rgba(8, 16, 40, 0.55) 100%); }
.reminder .sky { display: none; }
.footer { background: rgba(8, 16, 40, 0.85); }

h2, .about-body .lead { color: #fff; }
h2 em { color: var(--baby); }
.eyebrow { color: var(--baby); }
.section-sub, .about-body p { color: rgba(234, 243, 253, 0.84); }
.about-body .lead { color: #fff; }
.becoming p { color: var(--baby); }
.b-dot { background: var(--baby); }
.b-dot.big { background: #fff; }
.b-line { background: linear-gradient(90deg, var(--baby), var(--sky)); }
.tap-hint { color: var(--baby); }
.path::before { background: linear-gradient(180deg, var(--baby), var(--sky)); opacity: 0.8; }
.card, .path-card { box-shadow: 0 18px 50px -18px rgba(3, 10, 30, 0.7); }
