:root {
  --fountain-aqua: #72E7F2;
  --soft-ink: #1A2440;
  --glass-sky: #BDEFFF;
  --peach-blush: #FFB6A6;
  --jelly-green: #9AFFD2;
  --lavender-chrome: #A998FF;
  --bubble-white: #F7FDFF;
  --deep-pool: #063B5C;
  --heading-font: "Dela Gothic One", "Arial Black", "Impact", system-ui, sans-serif;
  --round-font: "M PLUS Rounded 1c", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  --utility-font: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --sticker-font: "Kosugi Maru", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", sans-serif;
  --mood-a: #72E7F2;
  --mood-b: #BDEFFF;
  --mood-c: #A998FF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bubble-white);
  font-family: var(--round-font);
  background:
    radial-gradient(circle at 20% 10%, rgba(114, 231, 242, .35), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(169, 152, 255, .22), transparent 24rem),
    linear-gradient(145deg, #031B35 0%, var(--deep-pool) 42%, #0B5D78 100%);
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -3;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, rgba(247,253,255,.10) 0 2px, transparent 3px 42px),
    radial-gradient(ellipse at center, rgba(114,231,242,.18), transparent 58%);
  filter: url(#none);
  animation: waterDrift 18s linear infinite;
}

.aero-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .32;
  background-image:
    linear-gradient(115deg, transparent 0 45%, rgba(247,253,255,.2) 48%, transparent 52% 100%),
    radial-gradient(circle at 14% 21%, rgba(247,253,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 64%, rgba(189,239,255,.36) 0 1px, transparent 2px);
  background-size: 120% 120%, 86px 86px, 132px 132px;
  mix-blend-mode: screen;
}

.reflection-lag {
  position: fixed;
  left: 8vw;
  top: 58vh;
  width: 36vw;
  height: 24vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(189,239,255,.18), rgba(169,152,255,.08) 45%, transparent 72%);
  filter: blur(14px);
  transform: translate3d(0,0,0) skewX(-12deg);
  pointer-events: none;
  z-index: 1;
}

.cursor-bubble {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(247,253,255,.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  background: radial-gradient(circle at 30% 25%, var(--bubble-white), rgba(114,231,242,.24) 32%, rgba(169,152,255,.10));
  box-shadow: 0 0 18px rgba(114,231,242,.8), inset -5px -7px 12px rgba(6,59,92,.2);
  transform: translate(-50%, -50%);
}

.chapter {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--mood-a) 28%, transparent), transparent 30rem),
    linear-gradient(125deg, rgba(247,253,255,.04), rgba(6,59,92,.1));
}

.wake { --x: 28%; --y: 38%; background-color: #032B4A; }
.signal { --x: 67%; --y: 42%; background-color: rgba(6,59,92,.72); }
.weather { --x: 42%; --y: 30%; background-color: rgba(114,231,242,.16); }
.memory { --x: 70%; --y: 58%; background-color: rgba(154,255,210,.13); }
.mirror { --x: 30%; --y: 60%; background-color: rgba(169,152,255,.17); }
.night { --x: 52%; --y: 38%; background-color: #02192F; }

.glass-plaque {
  position: relative;
  z-index: 3;
  width: min(34rem, 86vw);
  padding: clamp(1.3rem, 3vw, 2.6rem);
  border: 1px solid rgba(247,253,255,.52);
  border-radius: 2rem 4.5rem 2.5rem 3.5rem;
  background:
    linear-gradient(135deg, rgba(247,253,255,.33), rgba(189,239,255,.12) 38%, rgba(169,152,255,.14)),
    radial-gradient(circle at 15% 10%, rgba(247,253,255,.58), transparent 10rem);
  box-shadow: 0 28px 80px rgba(3,27,53,.34), inset 0 1px 0 rgba(247,253,255,.75), inset 0 -16px 28px rgba(6,59,92,.16);
  backdrop-filter: blur(18px) saturate(1.35);
}

.glass-plaque::before {
  content: "";
  position: absolute;
  inset: .65rem;
  border-radius: inherit;
  border-top: 1px solid rgba(247,253,255,.55);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 .9rem;
  font-family: var(--utility-font);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jelly-green);
}

h1, h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  color: transparent;
  background: linear-gradient(180deg, var(--bubble-white), var(--glass-sky) 46%, var(--fountain-aqua));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 18px rgba(6,59,92,.42));
}

h1 { font-size: clamp(3rem, 8vw, 8.8rem); }
h2 { font-size: clamp(2.35rem, 6vw, 6.2rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(247,253,255,.9);
}

.plaque-wake { margin: 8vh 0 0 7vw; transform: rotate(-3deg); }
.plaque-signal { margin: 12vh 0 0 auto; transform: rotate(2deg); }
.plaque-weather { margin: 8vh auto 0 4vw; transform: rotate(3deg); }
.plaque-memory { margin: 23vh 0 0 auto; transform: rotate(-2deg); }
.plaque-mirror { margin: 13vh 0 0 48vw; transform: rotate(2deg); }
.plaque-night { margin: 16vh auto 0; text-align: center; }

.charm-nav {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: .85rem;
  padding: .85rem .55rem;
  border-radius: 999px;
  background: rgba(189,239,255,.16);
  border: 1px solid rgba(247,253,255,.36);
  backdrop-filter: blur(15px);
}

.nav-charm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 20%, var(--bubble-white), var(--mood-a) 44%, var(--lavender-chrome));
  box-shadow: inset -3px -4px 8px rgba(6,59,92,.3), 0 0 10px rgba(114,231,242,.45);
  transition: transform .35s ease, box-shadow .35s ease;
}

.nav-charm.active { transform: scale(1.35) translateX(-4px); box-shadow: 0 0 24px var(--peach-blush); }

.floating-phone {
  position: fixed;
  left: 1.5rem;
  bottom: 1.3rem;
  z-index: 45;
  width: 94px;
  height: 155px;
  transform-origin: 50% 85%;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease;
  filter: drop-shadow(0 22px 26px rgba(3,27,53,.45));
}

.strap {
  position: absolute;
  width: 42px;
  height: 42px;
  left: 56px;
  top: -22px;
  border: 5px solid rgba(154,255,210,.78);
  border-radius: 50%;
}

.phone-top, .phone-bottom, .hero-lid, .hero-base {
  border: 1px solid rgba(247,253,255,.64);
  background: linear-gradient(135deg, rgba(247,253,255,.58), rgba(114,231,242,.24) 38%, rgba(169,152,255,.24));
  box-shadow: inset 0 2px 2px rgba(247,253,255,.8), inset 0 -18px 26px rgba(6,59,92,.22), 0 20px 36px rgba(6,59,92,.25);
  backdrop-filter: blur(12px);
}

.phone-top { height: 70px; border-radius: 22px 22px 14px 14px; padding: 12px; }
.phone-bottom { height: 70px; border-radius: 14px 14px 24px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 17px; }
.phone-bottom i { border-radius: 50%; background: rgba(247,253,255,.52); box-shadow: inset 0 -2px 4px rgba(6,59,92,.2); }
.heart-hinge { height: 16px; text-align: center; color: var(--peach-blush); text-shadow: 0 0 10px var(--peach-blush); }
.screen-glow { height: 28px; border-radius: 10px; background: radial-gradient(circle, var(--bubble-white), var(--fountain-aqua) 55%, var(--deep-pool)); animation: screenPulse 2.8s ease-in-out infinite; }
.condensation { margin-top: 5px; font-family: var(--sticker-font); font-size: .62rem; color: var(--deep-pool); opacity: .65; }

.hero-phone {
  position: absolute;
  right: 12vw;
  top: 14vh;
  width: min(35vw, 360px);
  z-index: 2;
  transform: rotate(18deg);
  animation: phoneWake 3s ease both;
}
.hero-lid { height: 220px; border-radius: 44px 44px 20px 20px; padding: 34px; transform-origin: bottom; animation: lidOpen 3.4s cubic-bezier(.2,.7,.15,1) both; }
.inner-light { height: 100%; border-radius: 28px; background: radial-gradient(circle at 50% 35%, var(--bubble-white), var(--fountain-aqua) 35%, rgba(169,152,255,.5) 62%, rgba(6,59,92,.75)); box-shadow: 0 0 60px var(--fountain-aqua); }
.hero-hinge { height: 34px; text-align: center; font-size: 1.7rem; color: var(--peach-blush); }
.hero-base { height: 190px; border-radius: 22px 22px 54px 54px; padding: 36px; }
.key-grid { height: 100%; border-radius: 30px; background-image: radial-gradient(circle, rgba(247,253,255,.72) 0 10px, transparent 11px); background-size: 46px 42px; }

.condensation-title {
  position: absolute;
  right: 10vw;
  bottom: 12vh;
  z-index: 4;
  display: flex;
  gap: .1em;
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 9vw, 9rem);
  color: rgba(247,253,255,.82);
  filter: blur(.15px) drop-shadow(0 0 18px rgba(189,239,255,.9));
}
.condensation-title b { opacity: 0; animation: dropletLetter .7s ease forwards; }
.condensation-title b:nth-child(2) { animation-delay: .15s; } .condensation-title b:nth-child(3) { animation-delay: .3s; }
.condensation-title b:nth-child(4) { animation-delay: .45s; } .condensation-title b:nth-child(5) { animation-delay: .6s; }
.condensation-title b:nth-child(6) { animation-delay: .75s; } .condensation-title b:nth-child(7) { animation-delay: .9s; }
.condensation-title b:nth-child(8) { animation-delay: 1.05s; } .condensation-title b:nth-child(9) { animation-delay: 1.2s; }

.water-rings span, .dialogue-rings span, .reply-ripple {
  position: absolute;
  border: 1px solid rgba(189,239,255,.55);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(114,231,242,.35), inset 0 0 28px rgba(247,253,255,.1);
}
.water-rings span { left: 44%; top: 48%; width: 18rem; height: 9rem; transform: translate(-50%,-50%) rotate(-16deg); animation: ripple 5s ease-in-out infinite; }
.water-rings span:nth-child(2) { animation-delay: 1.2s; width: 28rem; height: 14rem; }
.water-rings span:nth-child(3) { animation-delay: 2.4s; width: 39rem; height: 19rem; }
.reply-ripple { width: 4rem; height: 4rem; opacity: .65; animation: replyRipple 4s ease-in-out infinite; }
.r1 { left: 15%; bottom: 13%; } .r2 { right: 28%; top: 22%; } .r3 { left: 50%; top: 50%; } .r4 { right: 12%; bottom: 17%; } .r5 { left: 36%; top: 26%; }

.orbit-line {
  position: absolute;
  inset: 14vh 12vw;
  border: 1px solid rgba(189,239,255,.28);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.message-droplet {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(247,253,255,.64);
  background: radial-gradient(circle at 30% 20%, rgba(247,253,255,.85), rgba(189,239,255,.34) 36%, rgba(114,231,242,.2));
  color: var(--soft-ink);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 55px rgba(6,59,92,.28), inset -14px -16px 30px rgba(6,59,92,.12);
  animation: wobble 4s ease-in-out infinite;
}
.message-droplet.large { left: 18vw; top: 28vh; width: 260px; height: 180px; border-radius: 56% 44% 58% 42%; display: grid; place-items: center; font-size: 2rem; }
.message-droplet.small { padding: .9rem 1.2rem; border-radius: 999px; font-family: var(--sticker-font); }
.message-droplet.one { right: 21vw; bottom: 22vh; animation-delay: .8s; }
.message-droplet.two { left: 43vw; top: 17vh; animation-delay: 1.5s; }

.weather-dial {
  position: absolute;
  right: 8vw;
  top: 20vh;
  z-index: 5;
  display: grid;
  gap: .9rem;
}
.weather-dial button, .soft-entry {
  border: 1px solid rgba(247,253,255,.55);
  border-radius: 999px;
  padding: .85rem 1.2rem;
  color: var(--bubble-white);
  background: linear-gradient(135deg, rgba(247,253,255,.22), rgba(114,231,242,.18));
  box-shadow: inset 0 1px 0 rgba(247,253,255,.7), 0 14px 30px rgba(3,27,53,.22);
  font-family: var(--utility-font);
  text-decoration: none;
  backdrop-filter: blur(14px);
}
.weather-dial button.active { background: linear-gradient(135deg, var(--peach-blush), var(--lavender-chrome)); transform: translateX(-12px); }
.climate-orb { position: absolute; right: 18vw; bottom: 11vh; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, var(--bubble-white), var(--mood-b) 28%, var(--mood-a) 52%, transparent 72%); filter: drop-shadow(0 0 60px var(--mood-a)); transition: background .45s ease; }
.climate-orb span { position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(247,253,255,.38); animation: spin 8s linear infinite; }
.climate-orb span:nth-child(2) { inset: 30%; animation-duration: 5s; } .climate-orb span:nth-child(3) { inset: 7%; animation-duration: 12s; }

.bracelet { position: absolute; left: 9vw; top: 12vh; width: 460px; height: 460px; border: 1px dashed rgba(189,239,255,.35); border-radius: 50%; transform: rotate(-20deg); }
.bead { position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: var(--soft-ink); font-family: var(--sticker-font); background: radial-gradient(circle at 30% 20%, var(--bubble-white), var(--jelly-green) 48%, var(--fountain-aqua)); box-shadow: inset -8px -12px 18px rgba(6,59,92,.18), 0 12px 24px rgba(3,27,53,.2); animation: beadFloat 4s ease-in-out infinite; }
.b1 { left: 45%; top: -8%; } .b2 { right: 2%; top: 24%; animation-delay: .4s; } .b3 { right: 18%; bottom: 1%; animation-delay: .8s; } .b4 { left: 8%; bottom: 10%; animation-delay: 1.2s; } .b5 { left: -6%; top: 30%; animation-delay: 1.6s; }
.sticker-seal { position: absolute; right: 19vw; top: 15vh; transform: rotate(12deg); padding: 1.1rem 1.4rem; border-radius: 35% 65% 44% 56%; background: var(--peach-blush); color: var(--deep-pool); font-family: var(--sticker-font); box-shadow: 0 0 0 8px rgba(247,253,255,.22), 0 20px 40px rgba(3,27,53,.24); }

.mirror-pool { position: absolute; left: 8vw; top: 18vh; width: 42vw; height: 62vh; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(189,239,255,.34), rgba(169,152,255,.2) 45%, rgba(6,59,92,.18) 70%, transparent 72%); box-shadow: inset 0 0 80px rgba(247,253,255,.24); }
.silhouette-fragment { position: absolute; border-radius: 50%; background: linear-gradient(180deg, rgba(247,253,255,.28), rgba(6,59,92,.28)); filter: blur(1px); opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.mirror.visible .silhouette-fragment { opacity: 1; transform: translateY(0); }
.f1 { width: 130px; height: 210px; left: 42%; top: 25%; transform: translateY(35px); }
.f2 { width: 90px; height: 80px; left: 48%; top: 16%; transform: translateY(25px); }
.f3 { width: 210px; height: 60px; left: 32%; bottom: 20%; transform: translateY(45px); }

.aquarium { position: absolute; inset: 0; overflow: hidden; }
.koi { position: absolute; font-family: var(--sticker-font); font-size: clamp(2rem, 5vw, 5rem); color: rgba(154,255,210,.7); text-shadow: 0 0 18px var(--fountain-aqua); animation: swim 12s linear infinite; }
.k1 { top: 22%; left: -20%; } .k2 { top: 54%; right: -20%; animation-name: swimBack; animation-duration: 15s; } .k3 { bottom: 13%; left: -22%; animation-delay: 5s; animation-duration: 17s; }
.dialogue-rings span { left: 50%; bottom: 6vh; width: 12rem; height: 4rem; transform: translateX(-50%); animation: ripple 4s ease-in-out infinite; }
.dialogue-rings span:nth-child(2) { width: 22rem; height: 7rem; animation-delay: 1s; } .dialogue-rings span:nth-child(3) { width: 34rem; height: 10rem; animation-delay: 2s; }
.soft-entry { display: inline-block; margin-top: 1rem; }

@keyframes waterDrift { to { transform: rotate(360deg) scale(1.05); } }
@keyframes screenPulse { 50% { filter: brightness(1.35); box-shadow: 0 0 22px var(--bubble-white); } }
@keyframes phoneWake { from { opacity: .4; filter: blur(8px); transform: rotate(18deg) translateY(40px); } to { opacity: 1; filter: blur(0); transform: rotate(18deg); } }
@keyframes lidOpen { from { transform: rotateX(68deg); } to { transform: rotateX(0); } }
@keyframes dropletLetter { from { opacity: 0; transform: translateY(-18px) scale(.8); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes ripple { 0%,100% { opacity: .2; transform: translate(-50%,-50%) rotate(-16deg) scale(.85); } 50% { opacity: .85; transform: translate(-50%,-50%) rotate(-16deg) scale(1.08); } }
@keyframes replyRipple { 0% { transform: scale(.3); opacity: .8; } 80%,100% { transform: scale(4); opacity: 0; } }
@keyframes wobble { 0%,100% { transform: translateY(0) rotate(-2deg); border-radius: 56% 44% 58% 42%; } 50% { transform: translateY(-18px) rotate(3deg); border-radius: 43% 57% 45% 55%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beadFloat { 50% { transform: translateY(-15px) scale(1.05); } }
@keyframes swim { from { transform: translateX(0); } to { transform: translateX(135vw); } }
@keyframes swimBack { from { transform: translateX(0); } to { transform: translateX(-135vw); } }

@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor-bubble { display: none; }
  .charm-nav { right: .5rem; }
  .floating-phone { width: 74px; height: 125px; }
  .hero-phone { width: 260px; right: -2rem; top: 12vh; opacity: .75; }
  .hero-lid { height: 150px; } .hero-base { height: 130px; }
  .condensation-title { right: 1rem; bottom: 8vh; }
  .plaque-wake, .plaque-signal, .plaque-weather, .plaque-memory, .plaque-mirror, .plaque-night { margin: 18vh auto 0; transform: none; }
  .weather-dial { position: relative; right: auto; top: auto; margin: 2rem auto; width: min(18rem, 80vw); }
  .climate-orb { right: -5rem; bottom: 3rem; width: 220px; height: 220px; }
  .bracelet { left: -6rem; width: 330px; height: 330px; }
  .mirror-pool { width: 86vw; left: 5vw; }
}
