:root {
  --rain-glass: #B9F7FF;
  --pool-blue: #37B9FF;
  --umbrella-violet: #8B6CFF;
  --vending-peach: #FFB6A6;
  --cloud-pearl: #F4FFF9;
  --chrome-shadow: #6C7F91;
  --asphalt-navy: #102033;
  --highlight-white: #FFFFFF;
  --scene-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; overflow: hidden; }

body {
  font-family: "Zen Maru Gothic", "Lato", "Inter", ui-rounded, system-ui, sans-serif;
  color: var(--asphalt-navy);
  background: var(--cloud-pearl);
}

.rain-capsule {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(18% + var(--pointer-x) * 4%) calc(18% + var(--pointer-y) * 5%), rgba(255,255,255,.95), transparent 22%),
    radial-gradient(circle at 76% 24%, rgba(255,182,166,.46), transparent 16%),
    linear-gradient(135deg, #F4FFF9 0%, #B9F7FF 42%, #37B9FF 82%, #8B6CFF 130%);
  isolation: isolate;
}

.sky-wash {
  position: absolute;
  inset: -8%;
  background:
    repeating-linear-gradient(103deg, rgba(255,255,255,.18) 0 2px, transparent 2px 28px),
    radial-gradient(ellipse at 38% 8%, rgba(255,255,255,.78), transparent 35%),
    radial-gradient(ellipse at 88% 84%, rgba(139,108,255,.34), transparent 38%);
  filter: blur(1px);
  transform: translate3d(calc(var(--pointer-x) * -18px), calc(var(--pointer-y) * -12px), 0);
}

.city-silhouette {
  position: absolute;
  left: -3vw;
  right: -3vw;
  bottom: -2vh;
  height: 31vh;
  display: flex;
  align-items: end;
  gap: 1.4vw;
  opacity: .62;
  filter: blur(2.4px);
  transform: translateX(calc(var(--scene-progress) * -7vw));
}

.city-silhouette span {
  flex: 1;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(16,32,51,.52), rgba(108,127,145,.32));
  box-shadow: inset 0 18px 24px rgba(255,255,255,.18);
}
.city-silhouette span:nth-child(1) { height: 42%; }
.city-silhouette span:nth-child(2) { height: 72%; }
.city-silhouette span:nth-child(3) { height: 55%; }
.city-silhouette span:nth-child(4) { height: 86%; }
.city-silhouette span:nth-child(5) { height: 48%; }
.city-silhouette span:nth-child(6) { height: 64%; }

.rain-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rain-field i {
  position: absolute;
  top: -18vh;
  width: 2px;
  height: 16vh;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), rgba(185,247,255,.25));
  animation: rainDrop 2.8s linear infinite;
  transform: rotate(9deg);
}
.rain-field i:nth-child(1) { left: 3%; animation-delay: -.4s; height: 12vh; }
.rain-field i:nth-child(2) { left: 8%; animation-delay: -2.2s; }
.rain-field i:nth-child(3) { left: 14%; animation-delay: -1.4s; height: 20vh; }
.rain-field i:nth-child(4) { left: 19%; animation-delay: -.9s; }
.rain-field i:nth-child(5) { left: 25%; animation-delay: -2.6s; height: 11vh; }
.rain-field i:nth-child(6) { left: 31%; animation-delay: -1.8s; }
.rain-field i:nth-child(7) { left: 39%; animation-delay: -.2s; height: 18vh; }
.rain-field i:nth-child(8) { left: 44%; animation-delay: -2.0s; }
.rain-field i:nth-child(9) { left: 50%; animation-delay: -.7s; height: 13vh; }
.rain-field i:nth-child(10) { left: 57%; animation-delay: -1.2s; }
.rain-field i:nth-child(11) { left: 62%; animation-delay: -2.9s; height: 17vh; }
.rain-field i:nth-child(12) { left: 68%; animation-delay: -.5s; }
.rain-field i:nth-child(13) { left: 73%; animation-delay: -1.7s; }
.rain-field i:nth-child(14) { left: 79%; animation-delay: -2.4s; height: 14vh; }
.rain-field i:nth-child(15) { left: 84%; animation-delay: -.1s; }
.rain-field i:nth-child(16) { left: 89%; animation-delay: -1.1s; height: 21vh; }
.rain-field i:nth-child(17) { left: 94%; animation-delay: -2.7s; }
.rain-field i:nth-child(18) { left: 98%; animation-delay: -.8s; height: 12vh; }
.rain-field i:nth-child(n+19) { opacity: .55; animation-duration: 4s; }
.rain-field i:nth-child(19) { left: 6%; animation-delay: -3.3s; }
.rain-field i:nth-child(20) { left: 17%; animation-delay: -3.8s; }
.rain-field i:nth-child(21) { left: 36%; animation-delay: -3.0s; }
.rain-field i:nth-child(22) { left: 53%; animation-delay: -3.5s; }
.rain-field i:nth-child(23) { left: 71%; animation-delay: -3.9s; }
.rain-field i:nth-child(24) { left: 91%; animation-delay: -3.2s; }

.charm-bracelet {
  position: absolute;
  z-index: 9;
  top: 4vh;
  right: 3.5vw;
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(244,255,249,.36);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 38px rgba(16,32,51,.16);
  backdrop-filter: blur(18px);
}

.charm {
  position: relative;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(108,127,145,.36);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, #FFFFFF, rgba(185,247,255,.68) 26%, rgba(55,185,255,.3) 58%, rgba(139,108,255,.25));
  color: var(--asphalt-navy);
  cursor: pointer;
  box-shadow: inset -8px -10px 18px rgba(108,127,145,.2), inset 7px 7px 15px rgba(255,255,255,.88), 0 7px 16px rgba(16,32,51,.12);
  overflow: hidden;
}

.charm::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(55,185,255,.4), rgba(139,108,255,.72));
  transition: height .7s cubic-bezier(.2,.8,.2,1);
}
.charm.active::before { height: 78%; animation: waterSlosh 2.8s ease-in-out infinite; }
.charm b { position: relative; display: block; font-size: 1.25rem; font-family: "Dela Gothic One", "Inter", system-ui, sans-serif; text-shadow: 0 1px #FFFFFF; }
.charm span { position: relative; display: block; font-size: .55rem; line-height: 1.05; }

.cockpit-pane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform: translate3d(calc(var(--scene-progress) * -9vw), calc(var(--scene-progress) * 2vh), 0);
}

.axis-droplet {
  position: relative;
  width: min(68vmin, 660px);
  height: min(76vmin, 720px);
  border-radius: 52% 48% 55% 45% / 43% 42% 58% 57%;
  background:
    radial-gradient(circle at 31% 20%, rgba(255,255,255,.95) 0 10%, transparent 22%),
    radial-gradient(circle at 64% 74%, rgba(139,108,255,.28), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.44), rgba(185,247,255,.5) 34%, rgba(55,185,255,.2));
  border: 2px solid rgba(255,255,255,.74);
  box-shadow:
    inset 28px 28px 58px rgba(255,255,255,.64),
    inset -34px -48px 70px rgba(108,127,145,.2),
    0 34px 90px rgba(16,32,51,.28),
    0 0 0 10px rgba(185,247,255,.13);
  backdrop-filter: blur(16px) saturate(1.3);
  overflow: hidden;
  transform: rotateX(calc(var(--pointer-y) * -7deg)) rotateY(calc(var(--pointer-x) * 10deg)) rotateZ(calc(var(--scene-progress) * 5deg));
  transition: transform .25s ease-out;
}

.axis-droplet::before, .axis-droplet::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.axis-droplet::before {
  inset: 8% 10% 13% 8%;
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: inset 0 0 40px rgba(255,255,255,.32);
}
.axis-droplet::after {
  width: 34%;
  height: 9%;
  left: 15%;
  top: 13%;
  background: rgba(255,255,255,.72);
  filter: blur(10px);
  transform: rotate(-24deg);
}

.droplet-gloss {
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 33%, rgba(255,255,255,.58) 46%, transparent 58%);
  animation: reflectiveSweep 7s ease-in-out infinite;
}

.wordmark-wrap {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 22%;
  text-align: center;
  z-index: 3;
  filter: url(#none);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--chrome-shadow);
}

.wordmark {
  position: relative;
  margin: 0;
  font-family: "Dela Gothic One", "Arial Black", "Inter", system-ui, sans-serif;
  font-size: clamp(3rem, 9vw, 7.1rem);
  line-height: .85;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.56);
  -webkit-text-stroke: 1px rgba(16,32,51,.18);
  text-shadow: 0 3px 0 rgba(255,255,255,.7), 0 12px 20px rgba(55,185,255,.38), 0 -1px rgba(16,32,51,.22);
}
.wordmark::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #B9F7FF 35%, #37B9FF 70%, #8B6CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .54;
  transform: translate(calc(var(--pointer-x) * -5px), calc(var(--pointer-y) * 4px));
}

.ripple-spell {
  margin: 22px auto 0;
  width: min(78%, 410px);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--asphalt-navy);
}
.ripple-spell span, .ripple-spell em {
  position: relative;
  font-style: normal;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1rem;
}
.ripple-spell span::before {
  content: "";
  position: absolute;
  inset: -18px -22px;
  border: 2px solid rgba(55,185,255,.42);
  border-radius: 50%;
  animation: ripple 2.6s ease-out infinite;
}
.ripple-spell span:nth-child(2)::before { animation-delay: .65s; border-color: rgba(139,108,255,.42); }
.ripple-spell em::before, .ripple-spell em::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--vending-peach);
  border-radius: 50%;
}
.ripple-spell em::before { right: 110%; }
.ripple-spell em::after { left: 110%; }

.mini-scene {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 9%;
  height: 28%;
  opacity: 0;
  transform: translateY(26px) scale(.92);
  transition: opacity .7s ease, transform .7s ease;
}
.mini-scene.active { opacity: 1; transform: translateY(0) scale(1); }
.mini-scene p {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  margin: 0;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(.72rem, 1.5vw, .95rem);
  color: rgba(16,32,51,.78);
  background: rgba(255,255,255,.44);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.station-tiles {
  position: absolute;
  inset: 25% 4% 18%;
  border-radius: 40px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px) 0 0 / 36px 36px,
    rgba(55,185,255,.22);
  transform: perspective(360px) rotateX(54deg);
}
.window-streaks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255,255,255,.46) 23px 25px, transparent 26px 48px);
}
.umbrella {
  position: absolute;
  width: 145px;
  height: 74px;
  border-radius: 100px 100px 18px 18px;
  background: radial-gradient(circle at 25% 20%, #FFFFFF, rgba(255,182,166,.58) 26%, rgba(139,108,255,.5));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 10px 18px rgba(255,255,255,.46), 0 18px 26px rgba(16,32,51,.13);
}
.umbrella::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 62px; background: var(--chrome-shadow); }
.jelly-one { left: 12%; top: 22%; animation: floatCharm 4.4s ease-in-out infinite; }
.jelly-two { right: 10%; top: 5%; transform: scale(.78); animation: floatCharm 5s ease-in-out -.9s infinite; }
.cat-cloud {
  position: absolute;
  left: 18%; top: 12%; width: 64%; height: 54%;
  border-radius: 50% 48% 42% 55%;
  background: radial-gradient(circle at 27% 24%, #FFFFFF, #F4FFF9 40%, rgba(185,247,255,.62));
  box-shadow: inset 0 -14px 22px rgba(55,185,255,.16), 0 15px 35px rgba(139,108,255,.16);
}
.cat-cloud::before, .cat-cloud::after { content: ""; position: absolute; top: -12px; width: 34px; height: 34px; background: inherit; transform: rotate(45deg); border-radius: 10px; }
.cat-cloud::before { left: 24%; } .cat-cloud::after { right: 24%; }
.coordinate-stars { position: absolute; inset: 18% 20%; display: flex; align-items: center; justify-content: space-around; }
.coordinate-stars span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; color: #8B6CFF; font-weight: 800; box-shadow: 0 0 22px rgba(255,255,255,.9); animation: beadSnap 3s ease-in-out infinite; }
.coordinate-stars span:nth-child(2) { animation-delay: .2s; } .coordinate-stars span:nth-child(3) { animation-delay: .4s; }

.journey-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.scene {
  position: absolute;
  width: min(34vw, 430px);
  min-height: 42vh;
  padding: 36px 34px;
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,.35), rgba(185,247,255,.2));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 20px 52px rgba(16,32,51,.16);
  backdrop-filter: blur(15px);
  overflow: hidden;
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .7s ease;
}
.scene:not(.active) { opacity: .43; filter: blur(1.5px); }
.scene-x { left: 6vw; top: 15vh; transform: translate(calc(var(--scene-progress) * -30vw), calc(var(--pointer-y) * 18px)) rotate(-7deg); }
.scene-y { right: 8vw; top: 30vh; transform: translate(calc((1 - var(--scene-progress)) * 28vw), calc(var(--pointer-y) * -16px)) rotate(8deg); }
.scene-z { left: 28vw; bottom: 6vh; transform: translate(calc((2 - var(--scene-progress)) * 20vw), calc(var(--pointer-y) * 13px)) rotate(-3deg); }
.scene.active { opacity: 1; filter: none; z-index: 4; }
.pane-rim { position: absolute; inset: 12px; border-radius: 35px; border: 1px solid rgba(108,127,145,.2); box-shadow: inset 0 0 32px rgba(255,255,255,.34); }
.scene-label { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.5); color: var(--chrome-shadow); font-weight: 800; letter-spacing: .04em; }
.scene-label span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #B9F7FF, #8B6CFF); color: #FFFFFF; font-family: "Dela Gothic One", "Arial Black", sans-serif; }
.rain-note { position: relative; margin: 28px 0; font-family: "Noto Serif JP", Georgia, serif; font-size: clamp(1rem, 1.7vw, 1.28rem); line-height: 1.65; color: rgba(16,32,51,.8); }
.weather-sign { position: absolute; right: 26px; bottom: 18px; font-size: clamp(3.4rem, 7vw, 5.6rem); color: rgba(255,255,255,.34); text-shadow: 0 2px 10px rgba(55,185,255,.24); font-family: "Noto Serif JP", serif; }
.bubble-lens {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Noto Serif JP", Georgia, serif;
  background: radial-gradient(circle at 28% 22%, #FFFFFF 0 10%, rgba(185,247,255,.58) 28%, rgba(55,185,255,.22) 70%);
  box-shadow: inset 10px 12px 20px rgba(255,255,255,.58), inset -12px -18px 24px rgba(108,127,145,.2), 0 14px 26px rgba(16,32,51,.12);
  pointer-events: auto;
  cursor: crosshair;
}
.bubble-lens::after {
  content: attr(data-reveal);
  position: absolute;
  left: 62%;
  bottom: 75%;
  width: 170px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--asphalt-navy);
  font-family: "Zen Maru Gothic", system-ui, sans-serif;
  font-size: .78rem;
  opacity: 0;
  transform: translateY(10px) scale(.92);
  transition: .32s ease;
}
.bubble-lens:hover::after, .bubble-lens.revealed::after { opacity: 1; transform: translateY(0) scale(1); }
.bubble-lens.peach { background: radial-gradient(circle at 28% 22%, #FFFFFF, rgba(255,182,166,.65) 35%, rgba(139,108,255,.28)); }
.bubble-lens.violet { background: radial-gradient(circle at 28% 22%, #FFFFFF, rgba(139,108,255,.45) 40%, rgba(55,185,255,.28)); }

.thermometer-stem { position: absolute; left: 4vw; bottom: 8vh; width: 15px; height: 48vh; border-radius: 999px; background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 0 13px rgba(108,127,145,.24); }
.thermometer-stem span { position: absolute; left: 3px; right: 3px; bottom: 3px; height: calc(22% + var(--scene-progress) * 28%); border-radius: 999px; background: linear-gradient(180deg, #FFB6A6, #37B9FF, #8B6CFF); transition: height .6s ease; }
.koi-puddle { position: absolute; right: 13vw; bottom: 4vh; width: 250px; height: 72px; border-radius: 50%; background: radial-gradient(ellipse at 35% 48%, rgba(255,182,166,.56) 0 12%, transparent 13%), radial-gradient(ellipse at 58% 46%, rgba(255,255,255,.5) 0 16%, transparent 17%), radial-gradient(ellipse, rgba(185,247,255,.45), rgba(55,185,255,.18) 58%, transparent 70%); filter: blur(.2px); animation: puddleSwim 6s ease-in-out infinite; }
.condensation-wipe { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 18%, rgba(255,255,255,.24) 38%, rgba(185,247,255,.16) 70%); opacity: 0; mix-blend-mode: screen; }
.condensation-wipe.wiping { animation: wipeCondensation .75s ease-out; }

@keyframes rainDrop { to { transform: translateY(132vh) rotate(9deg); } }
@keyframes waterSlosh { 0%,100% { clip-path: ellipse(80% 58% at 50% 34%); } 50% { clip-path: ellipse(84% 50% at 46% 28%); } }
@keyframes reflectiveSweep { 0%, 42% { transform: translateX(-34%) rotate(0deg); opacity: .18; } 58% { opacity: .7; } 100% { transform: translateX(34%) rotate(7deg); opacity: .18; } }
@keyframes ripple { 0% { transform: scale(.5); opacity: .72; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes floatCharm { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes beadSnap { 0%,70%,100% { transform: translate(0,0) scale(1); } 82% { transform: translate(-8px,-10px) scale(1.12); } }
@keyframes puddleSwim { 0%,100% { transform: scaleX(1) translateX(0); } 50% { transform: scaleX(1.08) translateX(-18px); } }
@keyframes wipeCondensation { 0% { opacity: 0; clip-path: circle(0% at var(--wipe-x, 50%) var(--wipe-y, 50%)); } 28% { opacity: 1; } 100% { opacity: 0; clip-path: circle(82% at var(--wipe-x, 50%) var(--wipe-y, 50%)); } }

@media (max-width: 820px) {
  .charm-bracelet { top: auto; bottom: 3vh; left: 50%; right: auto; transform: translateX(-50%); gap: 9px; }
  .charm { width: 62px; height: 62px; }
  .charm span { display: none; }
  .axis-droplet { width: 86vmin; height: 94vmin; }
  .scene { width: 74vw; min-height: 28vh; padding: 24px; }
  .scene-x { left: 4vw; top: 7vh; }
  .scene-y { right: 4vw; top: 37vh; }
  .scene-z { left: 10vw; bottom: 13vh; }
  .wordmark { font-size: clamp(2.45rem, 13vw, 4.5rem); }
  .thermometer-stem, .koi-puddle { display: none; }
}
