/* Alive site idea A: the app's drop.css (cfc27b19, Linah with her aqua wings), unchanged, then the order page's fit. */
/* drop.css: living water drop companion (drop.ts) and sound toggle (feel.ts).
   Joined after elements.css in dist/style.css (package.json "build" and "dev").
   Every animation uses CSS transforms only, rests while the tab is hidden, and stops under prefers-reduced-motion. */
.gs-ready-row[hidden] { display: none; }
@media print { .wd, .wd-sound { display: none !important; } }

@media screen {

.wd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wd-size, 56px);
  height: var(--wd-size, 56px);
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}
.wd-stage {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 85%;
  transition: transform 360ms var(--e-ease-out, cubic-bezier(.16, 1, .3, 1));
}
.wd-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(48, 187, 184, .35));
}

/* idle: gentle breathing (single CSS keyframe loop) */
.wd[data-state="idle"] .wd-stage {
  animation: wd-breathe 3.4s ease-in-out infinite;
}
@keyframes wd-breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-2px) scale(1.03, .97); }
}

/* watch: pupils follow the caret */
.wd-pupils {
  transform: translate(var(--wd-px, 0px), var(--wd-py, 0px));
  transition: transform 110ms var(--e-ease-out, ease-out);
}
.wd[data-state="watch"] .wd-stage {
  animation: none;
  transform: translateY(-1px) scale(1.02, .99);
}

/* dive: squash, jump, dive down into the address box on submit */
.wd[data-state="dive"] .wd-stage {
  animation: wd-dive 520ms cubic-bezier(.3, .1, .25, 1) 1 forwards;
}
@keyframes wd-dive {
  0% { transform: translate(0, 0) scale(1, 1); }
  24% { transform: translate(0, 6px) scale(1.26, .72); }
  54% { transform: translate(calc(var(--wd-dive-x, 22px) * .55), -26px) scale(.84, 1.18); }
  84% { transform: translate(var(--wd-dive-x, 22px), 14px) scale(.72, 1.24); }
  100% { transform: translate(var(--wd-dive-x, 22px), 22px) scale(0, 0); }
}

/* nap: eyes close and drop settles lower after 30 s with no input */
.wd-nap-eyes { display: none; }
.wd[data-state="nap"] .wd-eyes { display: none; }
.wd[data-state="nap"] .wd-nap-eyes { display: inline; }
.wd[data-state="nap"] .wd-stage {
  animation: none;
  transform: translateY(7px) scale(1.07, .88);
}

/* cheer: pop up, arms up, bounce, and six small drops splash outward once */
.wd-cheer-smile { display: none; }
.wd[data-state="cheer"] .wd-smile { display: none; }
.wd[data-state="cheer"] .wd-cheer-smile { display: inline; }
.wd-arms {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scale(0);
  transition: transform 200ms var(--e-ease-out, ease-out);
}
.wd[data-state="cheer"] .wd-arms { transform: scale(1); }
.wd[data-state="cheer"] .wd-stage {
  animation: wd-cheer-pop 640ms var(--e-ease-out, ease-out) 1 forwards;
}
@keyframes wd-cheer-pop {
  0% { transform: translateY(18px) scale(.4, .2); }
  45% { transform: translateY(-10px) scale(.94, 1.08); }
  70% { transform: translateY(2px) scale(1.06, .94); }
  86% { transform: translateY(-4px) scale(.98, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}

.wd-sp {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.wd-splashing[data-state="cheer"] .wd-sp {
  animation: wd-splash-drop 620ms var(--e-ease-out, ease-out) 1 forwards;
}
@keyframes wd-splash-drop {
  0% { transform: rotate(var(--wd-a)) translateY(0) scale(0); }
  30% { transform: rotate(var(--wd-a)) translateY(-18px) scale(1.05); }
  72% { transform: rotate(var(--wd-a)) translateY(-27px) scale(.8); }
  100% { transform: rotate(var(--wd-a)) translateY(-32px) scale(0); }
}

/* layout wrappers on address entry, scan card Ready row, finished toast, and top-bar speaker toggle */
.wd-ask-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.wd-ask-field > input { flex: 1 1 auto; min-width: 0; padding-left: 52px; }
/* the drop sits inside the box at its left edge, like a search mark: the box keeps its full width and the headline stays clear */
.wd-ask-field > .wd { position: absolute; left: 8px; top: 0; bottom: 0; margin: auto 0; height: max-content; z-index: 2; pointer-events: none; }
.gs-ready-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--u-r-m, 12px);
  background: var(--u-wash, rgba(190, 205, 255, .07));
  border: 1px solid var(--u-hair, rgba(190, 205, 255, .14));
  overflow: visible;
}
.gs-ready-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gs-ready-msg b { font-size: var(--e-t-label, 15px); color: var(--ink); }
.gs-ready-msg small { font-size: var(--e-t-cap, 14px); color: var(--ink-mid); }
.wm-ready-note .wd-note-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wd-sound {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--edge);
  background: var(--u-wash, rgba(190, 205, 255, .07));
  color: var(--ink-mid);
  transition: transform var(--e-m-tap, 90ms) var(--e-ease-out, ease-out);
}
.wd-sound svg { width: 20px; height: 20px; display: block; }
.wd-sound.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
@media (hover: hover) { .wd-sound:hover { border-color: var(--accent); color: var(--ink); } }
.wd-sound:active { transform: scale(.94); }

@media (max-width: 820px) {
  .wd-ask-field { width: 100%; }
  .wd-ask-field .wd { --wd-dive-x: 16px; }
}

/* Linah (drop.ts linah): halo, wings beating, hovering instead of breathing; dot eyes as in her tips */
.wd-linah .wd-svg { filter: none; }
.wd-linah .wd-eyes > ellipse, .wd-linah .wd-smile { display: none; }
.wd-linah .wd-pupils circle:nth-child(-n+2) { transform-box: fill-box; transform-origin: center; transform: scale(1.05, 1.4); }
.wd-wing { transform-box: fill-box; }
.wd-wing-l { transform-origin: 100% 60%; }
.wd-wing-r { transform-origin: 0% 60%; }
/* while she is out of sight the box keeps its plain 16 px start (no blank gap); when she arrives the words slide over
   to make room for her wings, which reach past the plain drop */
.wd-ask-field:has(> .wd-linah) > input { transition: padding-left 420ms cubic-bezier(.22, .8, .32, 1); }
.wd-ask-field:has(> .wd-linah.wd-hide) > input { padding-left: 16px; }
.wd-ask-field:has(> .wd-linah:not(.wd-hide)) > input { padding-left: 64px; }
@media (prefers-reduced-motion: reduce) { .wd-ask-field:has(> .wd-linah) > input { transition: none; } }
.wd-linah[data-state="idle"] .wd-wing, .wd-linah[data-state="watch"] .wd-wing, .wd-linah[data-state="cheer"] .wd-wing, .wd-linah[data-state="dive"] .wd-wing {
  animation: wd-flap 190ms ease-in-out infinite alternate;
}
@keyframes wd-flap {
  from { transform: scaleX(1); }
  to { transform: scaleX(.5) translateY(.6px); }
}
.wd-linah[data-state="nap"] .wd-wing { transform: scaleX(.7) rotate(10deg); }
.wd-linah[data-state="idle"] .wd-stage, .wd-linah[data-state="watch"] .wd-stage {
  animation: wd-hover 2.6s ease-in-out infinite;
}
@keyframes wd-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* out of sight until the box has words, then she flies in from up and to the right */
.wd.wd-hide { visibility: hidden; opacity: 0; }
.wd.wd-arrive { animation: wd-fly-in 760ms cubic-bezier(.22, .8, .32, 1) 1 backwards; }
@keyframes wd-fly-in {
  0% { transform: translate(150px, -70px) scale(.6) rotate(-14deg); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translate(52px, -30px) scale(.8) rotate(-6deg); }
  82% { transform: translate(-4px, 3px) scale(1.06, .94) rotate(2deg); }
  100% { transform: none; opacity: 1; }
}

/* rest while the tab is hidden */
.wd.wd-away, .wd.wd-away *, .gs-away .wd, .gs-away .wd * {
  animation-play-state: paused !important;
}

/* reduced motion: drop stays still, no follow, no jump, no splash; cheer shows as a still pose */
@media (prefers-reduced-motion: reduce) {
  .wd, .wd *, .wd *::before, .wd *::after { animation: none !important; transition: none !important; }
  .wd-pupils { transform: none !important; }
  .wd[data-state="watch"] .wd-stage,
  .wd[data-state="dive"] .wd-stage,
  .wd[data-state="nap"] .wd-stage,
  .wd[data-state="cheer"] .wd-stage { transform: none !important; }
  .wd[data-state="cheer"] .wd-arms { transform: scale(1) !important; }
  .wd-sp { transform: scale(0) !important; animation: none !important; }
}
.wd.wd-still, .wd.wd-still *, .wd.wd-still *::before, .wd.wd-still *::after {
  animation: none !important;
  transition: none !important;
}
.wd.wd-still .wd-pupils { transform: none !important; }
.wd.wd-still[data-state="watch"] .wd-stage,
.wd.wd-still[data-state="dive"] .wd-stage,
.wd.wd-still[data-state="nap"] .wd-stage,
.wd.wd-still[data-state="cheer"] .wd-stage { transform: none !important; }
.wd.wd-still[data-state="cheer"] .wd-arms { transform: scale(1) !important; }
.wd.wd-still .wd-sp { transform: scale(0) !important; animation: none !important; }

} /* @media screen */

/* Linah in the site's look (owner, 27 Nov ~01:30Z: "Change the linah drop back to the style and theme of the one on the site
   now. Keep everything you've done just match the one on the screen"). The site's water drops (watermri.com step cards,
   wm-story-v3-*.webp) are a plain glowing teardrop, aqua at the top to lime at the bottom, two small dark dot eyes, no wings,
   no halo disc, no mouth; her wings stay, owner's pick. Her moves stay as they are (fly-in, hover, watch, dive, nap, cheer); only the look changes.
   Undo: delete this block (the wings and halo come back as PR 160 drew them). */
.wd-linah .wd-halo { display: none; }
/* her wings stay (owner, 27 Nov ~01:50Z: "Keep wings"), in the site's aqua glow so they read as part of the same drop */
.wd-linah .wd-wing { fill: #9ff3ea; opacity: .55; }
.wd-linah .wd-svg {
  filter: drop-shadow(0 0 3px rgba(190, 245, 140, .75)) drop-shadow(0 0 9px rgba(79, 224, 228, .45));
}
.wd-linah .wd-pupils circle:nth-child(n+3) { display: none; }   /* the site's eyes are plain dark dots, no white glint */
.wd-linah .wd-arms, .wd-linah[data-state] .wd-cheer-smile { display: none; }   /* no arms or mouth on the site's drops, cheering included: her cheer is the hop and the splash */
@media (prefers-reduced-motion: reduce) {
  .wd-linah .wd-svg { filter: drop-shadow(0 0 3px rgba(190, 245, 140, .75)); }
}

/* order page fit (redesign head 6): the label's own input margin moves to the wrapper, and the drop sits a little
   smaller inside the 52 px box */
@media screen {
  .o label .wd-ask-field { margin-top: 8px; }
  .o label .wd-ask-field > input { margin-top: 0; }
  .o .wd-ask-field > .wd { left: 6px; }
  .o .wd-ask-field:has(> .wd-linah:not(.wd-hide)) > input { padding-left: 56px; }
}
