@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --lily-body-font: "Nunito", "Segoe UI", sans-serif;
  --lily-display-font: "Cormorant Garamond", Georgia, serif;
  --lily-letter-font: "Cormorant Garamond", Georgia, serif;
  --lily-cream: #fff7eb;
  --lily-green: #456b4e;
  --lily-deep: #173423;
  --lily-land-top: #93b86a;
  --lily-land-mid: #4f7d45;
  --lily-land-deep: #183b23;
  --lily-pink: #e9a4ce;
  --lily-gold: #f2ca6a;
}

body.lily-page {
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 244, 219, 0.88), transparent 30%),
    linear-gradient(180deg, #d6eadb 0%, #f7efd8 42%, #5f8757 100%);
  cursor: url("/imgs/cursors/lily.png"), auto;
  font-family: var(--lily-body-font);
  font-optical-sizing: auto;
}

body.lily-page[data-lily-time="dawn"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 191, 153, 0.74), transparent 28%),
    linear-gradient(180deg, #294d72 0%, #e9a08c 42%, #58784f 100%);
}

body.lily-page[data-lily-time="sunset"] {
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 150, 96, 0.74), transparent 28%),
    linear-gradient(180deg, #66508e 0%, #e77965 42%, #526342 100%);
}

body.lily-page[data-lily-time="dusk"],
body.lily-page[data-lily-time="moon"] {
  background:
    radial-gradient(circle at 28% 18%, rgba(184, 147, 224, 0.32), transparent 28%),
    linear-gradient(180deg, #101f3b 0%, #3a2b5b 46%, #193c2a 100%);
}

body.lily-page[data-lily-time="moon"] {
  background:
    radial-gradient(circle at 25% 18%, rgba(227, 218, 255, 0.42), transparent 26%),
    radial-gradient(circle at 70% 8%, rgba(175, 200, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #071326 0%, #1f234a 48%, #132e23 100%);
}

body.lily-page {
  --lily-panel-bg: rgba(255, 251, 242, 0.76);
  --lily-panel-border: rgba(255, 255, 255, 0.62);
  --lily-panel-shadow: rgba(52, 78, 48, 0.12);
  --lily-button-bg: rgba(255, 255, 255, 0.72);
  --lily-button-text: #30563a;
  --lily-button-border: rgba(69, 107, 78, 0.24);
  --lily-active-bg: #31583d;
  --lily-active-text: #fffdf4;
  --lily-range-track: #31583d;
  --lily-range-fill: #eca1ce;
}

body.lily-page[data-lily-time="dawn"] {
  --lily-panel-bg: rgba(255, 231, 211, 0.76);
  --lily-button-bg: rgba(255, 250, 241, 0.78);
  --lily-button-text: #663d44;
  --lily-button-border: rgba(180, 104, 96, 0.26);
  --lily-active-bg: #c56f69;
  --lily-range-track: #4f6d79;
  --lily-range-fill: #ffb184;
}

body.lily-page[data-lily-time="noon"] {
  --lily-panel-bg: rgba(238, 250, 246, 0.78);
  --lily-button-bg: rgba(255, 255, 255, 0.82);
  --lily-button-text: #245d63;
  --lily-button-border: rgba(78, 141, 146, 0.24);
  --lily-active-bg: #337c86;
  --lily-range-track: #337c86;
  --lily-range-fill: #f3cf72;
}

body.lily-page[data-lily-time="sunset"] {
  --lily-panel-bg: rgba(255, 223, 200, 0.74);
  --lily-button-bg: rgba(255, 247, 234, 0.78);
  --lily-button-text: #6a3444;
  --lily-button-border: rgba(190, 88, 86, 0.28);
  --lily-active-bg: #b84f6a;
  --lily-range-track: #583764;
  --lily-range-fill: #ff986e;
}

body.lily-page[data-lily-time="dusk"],
body.lily-page[data-lily-time="moon"] {
  --lily-panel-bg: rgba(45, 37, 70, 0.72);
  --lily-panel-border: rgba(234, 220, 255, 0.24);
  --lily-panel-shadow: rgba(14, 12, 30, 0.28);
  --lily-button-bg: rgba(246, 239, 255, 0.14);
  --lily-button-text: #f4eaff;
  --lily-button-border: rgba(235, 218, 255, 0.24);
  --lily-active-bg: #c39ae8;
  --lily-active-text: #241b34;
  --lily-range-track: #cfc0e8;
  --lily-range-fill: #f3b3d6;
}

body.lily-page[data-lily-time="moon"] {
  --lily-panel-bg: rgba(26, 31, 60, 0.76);
  --lily-button-bg: rgba(244, 248, 255, 0.16);
  --lily-button-text: #f4f0ff;
  --lily-active-bg: #d8c7ff;
  --lily-active-text: #17213f;
  --lily-range-track: #d8dcff;
  --lily-range-fill: #f4d1ff;
}

.lily-main {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
  position: relative;
  overflow: hidden;
}

.lily-main.content-visible {
  opacity: 1;
  transform: translateY(0);
}

.lily-meadow-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.lily-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.25rem 0 1.4rem;
  color: #24442d;
}

.lily-kicker {
  margin: 0 0 0.4rem;
  color: #6a8f60;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lily-hero h1 {
  margin: 0;
  color: #24442d;
  font-family: var(--lily-display-font);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 700;
  line-height: 0.92;
  text-shadow: 0 8px 28px rgba(255, 247, 235, 0.8);
}

.lily-hero p {
  max-width: 560px;
  margin-top: 1rem;
  color: #496c4d;
  font-size: 1.05rem;
}

body.lily-page[data-lily-time="dusk"] .lily-kicker,
body.lily-page[data-lily-time="moon"] .lily-kicker,
body.lily-page[data-lily-time="sunset"] .lily-kicker {
  color: #caa2df;
}

body.lily-page[data-lily-time="dusk"] .lily-hero h1,
body.lily-page[data-lily-time="moon"] .lily-hero h1,
body.lily-page[data-lily-time="moon"] .lily-showcase-header h2,
body.lily-page[data-lily-time="dusk"] .lily-showcase-header h2 {
  color: #f3e7ff;
  text-shadow: 0 8px 28px rgba(47, 28, 70, 0.6);
}

body.lily-page[data-lily-time="dusk"] .lily-hero p,
body.lily-page[data-lily-time="moon"] .lily-hero p {
  color: #dbcce8;
}

body.lily-page[data-lily-time="sunset"] .lily-hero h1,
body.lily-page[data-lily-time="sunset"] .lily-showcase-header h2 {
  color: #311d28;
  text-shadow: 0 8px 28px rgba(255, 206, 173, 0.5);
}

body.lily-page[data-lily-time="sunset"] .lily-hero p {
  color: #543140;
}

.lily-field-card {
  min-height: clamp(540px, 70vh, 780px);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(126, 192, 232, 0.95) 0%, rgba(188, 224, 240, 0.9) 43%, rgba(218, 233, 206, 0.84) 58%, rgba(164, 196, 123, 0.74) 72%, rgba(67, 115, 54, 0.88) 86%, rgba(28, 65, 33, 0.98) 100%);
  box-shadow: 0 26px 70px rgba(44, 81, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background 900ms ease;
}

.lily-field-card[data-time="dawn"] {
  background:
    linear-gradient(180deg, rgba(32, 65, 100, 0.98) 0%, rgba(231, 152, 138, 0.92) 42%, rgba(255, 217, 184, 0.9) 64%, rgba(106, 138, 90, 0.96) 69%, rgba(32, 58, 39, 0.99) 100%);
}

.lily-field-card[data-time="noon"] {
  background:
    linear-gradient(180deg, rgba(90, 168, 224, 0.98) 0%, rgba(165, 211, 238, 0.92) 45%, rgba(216, 238, 248, 0.86) 64%, rgba(155, 196, 106, 0.96) 69%, rgba(43, 72, 34, 0.99) 100%);
}

.lily-field-card[data-time="sunset"] {
  background:
    linear-gradient(180deg, rgba(90, 58, 138, 0.97) 0%, rgba(232, 106, 90, 0.9) 43%, rgba(255, 200, 138, 0.86) 64%, rgba(122, 138, 90, 0.95) 69%, rgba(35, 47, 38, 1) 100%);
}

.lily-field-card[data-time="dusk"],
.lily-field-card[data-time="moon"] {
  background:
    linear-gradient(180deg, rgba(13, 26, 58, 0.99) 0%, rgba(58, 42, 90, 0.95) 45%, rgba(90, 58, 106, 0.82) 64%, rgba(58, 74, 58, 0.96) 69%, rgba(14, 28, 22, 1) 100%);
}

.lily-field-card[data-time="moon"] {
  background:
    radial-gradient(circle at 24% 18%, rgba(228, 224, 255, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(6, 16, 35, 0.99) 0%, rgba(28, 32, 73, 0.96) 48%, rgba(61, 70, 91, 0.82) 64%, rgba(45, 68, 56, 0.96) 69%, rgba(10, 24, 22, 1) 100%);
}

.lily-field-card.lily-planting-mode {
  cursor: url("/imgs/cursors/lily.png"), crosshair;
  box-shadow: 0 30px 78px rgba(44, 81, 50, 0.26), 0 0 0 3px color-mix(in srgb, var(--lily-active-bg) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lily-field-card.lily-planting-mode::after {
  background:
    radial-gradient(circle at 50% 72%, color-mix(in srgb, var(--lily-active-bg) 14%, transparent), transparent 34%),
    rgba(255, 245, 218, 0.04);
}

.lily-sky,
.lily-field,
.lily-stars,
.lily-clouds,
.lily-pollen-layer,
.lily-butterflies-layer,
.lily-weather-layer {
  position: absolute;
  inset: 0;
}

.lily-sky,
.lily-stars,
.lily-clouds,
.lily-pollen-layer,
.lily-butterflies-layer,
.lily-weather-layer {
  pointer-events: none;
}

.lily-sky {
  z-index: 2;
}

.lily-sun {
  position: absolute;
  width: 156px;
  height: 156px;
  left: 76%;
  top: 18%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 238, 1) 0 13%, transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(255, 238, 165, 0.98) 0 34%, rgba(255, 185, 93, 0.58) 52%, rgba(255, 208, 136, 0.16) 70%, transparent 74%);
  box-shadow: 0 0 42px rgba(255, 231, 144, 0.46), 0 0 110px rgba(255, 197, 96, 0.36);
  filter: saturate(1.1);
  transition: left 900ms ease, top 900ms ease, background 900ms ease, box-shadow 900ms ease;
  animation: lilySunBob 8s ease-in-out infinite;
}

.lily-sun::before,
.lily-sun::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lily-sun::before {
  inset: 21%;
  background:
    radial-gradient(circle at 34% 35%, rgba(255, 255, 238, 0.72), transparent 24%),
    radial-gradient(circle at 68% 62%, rgba(239, 148, 65, 0.22), transparent 18%),
    radial-gradient(circle at 43% 73%, rgba(255, 190, 100, 0.18), transparent 16%);
  box-shadow: inset -12px -16px 22px rgba(221, 141, 57, 0.14);
}

.lily-sun::after {
  inset: -18%;
  background: radial-gradient(circle, rgba(255, 236, 161, 0.24), transparent 64%);
  filter: blur(10px);
}

.lily-field-card[data-time="dusk"] .lily-sun,
.lily-field-card[data-time="moon"] .lily-sun {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 252, 236, 0.98) 0 31%, rgba(217, 218, 236, 0.92) 47%, rgba(154, 143, 195, 0.22) 69%, transparent 74%);
  box-shadow: 0 0 34px rgba(222, 218, 255, 0.34), 0 0 96px rgba(158, 130, 211, 0.28);
  filter: saturate(0.9);
}

.lily-field-card[data-time="dusk"] .lily-sun::before,
.lily-field-card[data-time="moon"] .lily-sun::before {
  inset: 27%;
  background:
    radial-gradient(circle at 35% 34%, rgba(119, 111, 151, 0.28), transparent 18%),
    radial-gradient(circle at 70% 58%, rgba(114, 105, 145, 0.22), transparent 16%),
    radial-gradient(circle at 45% 76%, rgba(111, 104, 141, 0.2), transparent 13%);
  box-shadow: inset -14px -12px 18px rgba(67, 61, 98, 0.14);
}

.lily-field-card[data-time="dusk"] .lily-sun::after,
.lily-field-card[data-time="moon"] .lily-sun::after {
  inset: -20%;
  background: radial-gradient(circle, rgba(222, 218, 255, 0.22), transparent 66%);
}

.lily-sun-rays {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 76%;
  top: 18%;
  color: rgba(255, 239, 177, 0.3);
  transform: translate(-50%, -50%);
  animation: lilyRaySpin 120s linear infinite;
  transition: left 900ms ease, top 900ms ease, opacity 900ms ease;
}

.lily-field-card[data-time="dusk"] .lily-sun-rays,
.lily-field-card[data-time="moon"] .lily-sun-rays {
  opacity: 0;
}

.lily-stars {
  opacity: 0;
  transition: opacity 900ms ease;
}

.lily-field-card[data-time="dawn"] .lily-stars {
  opacity: 0.32;
}

.lily-field-card[data-time="dusk"] .lily-stars,
.lily-field-card[data-time="moon"] .lily-stars {
  opacity: 0.92;
}

.lily-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: lilyTwinkle 3s ease-in-out infinite;
}

.lily-mist {
  position: absolute;
  width: 68%;
  height: 18%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 18% 52%, rgba(255, 255, 255, 0.2), transparent 44%),
    radial-gradient(ellipse at 52% 60%, rgba(226, 248, 252, 0.18), transparent 38%),
    radial-gradient(ellipse at 82% 50%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(90deg, transparent, rgba(235, 251, 252, 0.18), transparent);
  filter: blur(18px);
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  animation: lilyMistDrift 24s ease-in-out infinite;
  transition: opacity 500ms ease;
}

.lily-field-card[data-weather="mist"] .lily-mist {
  opacity: 0.92;
}

.lily-mist-one {
  left: -12%;
  top: 49%;
}

.lily-mist-two {
  right: -18%;
  top: 61%;
  opacity: 0;
  animation-delay: -11s;
}

.lily-cloud {
  position: absolute;
  left: -18%;
  width: 218px;
  height: 96px;
  opacity: var(--cloud-opacity, 0.72);
  transform: scale(var(--cloud-scale));
  animation: lilyCloudDrift 90s linear infinite;
  filter: blur(var(--cloud-blur, 0.45px)) drop-shadow(0 18px 20px rgba(60, 96, 110, 0.1));
}

.lily-cloud::before,
.lily-cloud::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lily-cloud::before {
  left: 18px;
  right: 26px;
  bottom: 8px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(205, 224, 229, 0.26));
  filter: blur(2px);
}

.lily-cloud::after {
  left: 4px;
  right: 6px;
  bottom: -4px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91, 126, 137, 0.12), transparent 68%);
  filter: blur(8px);
}

.lily-cloud span {
  position: absolute;
  bottom: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 38%, rgba(221, 235, 238, 0.42) 74%, rgba(176, 201, 207, 0.16));
  box-shadow:
    inset -12px -14px 18px rgba(142, 170, 178, 0.16),
    inset 10px 9px 16px rgba(255, 255, 255, 0.24);
}

.lily-cloud span:nth-child(1) {
  left: 6px;
  width: 86px;
  height: 40px;
}

.lily-cloud span:nth-child(2) {
  left: 47px;
  bottom: 20px;
  width: 82px;
  height: 58px;
}

.lily-cloud span:nth-child(3) {
  left: 104px;
  bottom: 12px;
  width: 76px;
  height: 48px;
}

.lily-cloud span:nth-child(4) {
  left: 162px;
  bottom: 12px;
  width: 52px;
  height: 34px;
}

.lily-cloud span:nth-child(5) {
  left: 24px;
  bottom: 4px;
  width: 142px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(207, 224, 229, 0.34));
}

.lily-cloud span:nth-child(6) {
  left: 76px;
  bottom: 36px;
  width: 52px;
  height: 44px;
  opacity: 0.72;
}

.lily-cloud span:nth-child(7) {
  left: 128px;
  bottom: 2px;
  width: 70px;
  height: 26px;
  opacity: 0.84;
}

.lily-field-card[data-time="dusk"] .lily-cloud span,
.lily-field-card[data-time="moon"] .lily-cloud span {
  background:
    radial-gradient(circle at 34% 30%, rgba(205, 197, 226, 0.44), rgba(116, 104, 148, 0.34) 64%, rgba(43, 34, 69, 0.2));
  box-shadow:
    inset -12px -12px 18px rgba(19, 16, 35, 0.18),
    inset 10px 9px 16px rgba(255, 255, 255, 0.08);
}

.lily-field-card[data-time="dusk"] .lily-cloud::before,
.lily-field-card[data-time="moon"] .lily-cloud::before {
  background: linear-gradient(180deg, rgba(196, 185, 222, 0.28), rgba(53, 45, 83, 0.16));
}

.lily-hills {
  position: absolute;
  left: -8%;
  right: -8%;
  pointer-events: none;
  transition: background 900ms ease, opacity 900ms ease;
}

.lily-hills-far {
  bottom: 28%;
  height: 23%;
  z-index: 5;
  opacity: 0.74;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(122, 155, 139, 0.7), transparent 60%),
    radial-gradient(ellipse at 60% 100%, rgba(96, 139, 126, 0.62), transparent 64%),
    radial-gradient(ellipse at 88% 100%, rgba(133, 165, 142, 0.58), transparent 60%);
  filter: blur(1px);
}

.lily-hills-near {
  bottom: 23%;
  height: 24%;
  z-index: 6;
  background:
    radial-gradient(ellipse at 16% 100%, rgba(76, 128, 84, 0.66), transparent 62%),
    radial-gradient(ellipse at 53% 100%, rgba(58, 112, 72, 0.72), transparent 65%),
    radial-gradient(ellipse at 84% 100%, rgba(86, 133, 74, 0.7), transparent 62%);
}

.lily-field-card[data-time="dusk"] .lily-hills-far,
.lily-field-card[data-time="moon"] .lily-hills-far,
.lily-field-card[data-time="dusk"] .lily-hills-near,
.lily-field-card[data-time="moon"] .lily-hills-near {
  opacity: 0.52;
}

.lily-field-card::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 30%;
  height: 22%;
  background:
    radial-gradient(ellipse at 20% 95%, rgba(255, 255, 255, 0.18), transparent 58%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2) 45%, transparent);
  filter: blur(10px);
  pointer-events: none;
  z-index: 9;
}

.lily-field-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 245, 218, 0.04);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 34;
}

.lily-wind-ripples {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  pointer-events: none;
  z-index: 19;
  opacity: 0;
  transition: opacity 240ms ease;
}

.lily-wind-ripples.active {
  opacity: 0.34;
}

.lily-wind-ripples.breeze-active {
  opacity: 0.72;
}

.lily-wind-ripple {
  position: absolute;
  left: -30vw;
  width: var(--wind-width, 22vw);
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 8% 50%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3) 28%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  filter: blur(1px);
  animation: lilyWindStreak 3s linear infinite;
}

.lily-wind-ripple::before,
.lily-wind-ripple::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.lily-wind-ripple::before {
  top: 5px;
  transform: translateY(var(--wind-lift, 0));
}

.lily-wind-ripple::after {
  bottom: 5px;
  left: 36%;
  opacity: 0.55;
}

.lily-pollen-layer {
  z-index: 29;
  overflow: hidden;
}

.lily-pollen {
  position: absolute;
  border-radius: 50%;
  background: #fff5b8;
  box-shadow: 0 0 8px #fff5b8;
  opacity: 0;
  animation: lilyPollenRise linear infinite;
}

.lily-field-card[data-time="sunset"] .lily-pollen {
  background: #ffc58e;
  box-shadow: 0 0 8px #ffc58e;
}

.lily-field {
  overflow: hidden;
  z-index: 24;
}

.lily-grass-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 22;
}

.lily-ground {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -4%;
  height: 48%;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.055), transparent 34%),
    radial-gradient(ellipse at 72% 22%, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035), transparent 42%),
    radial-gradient(ellipse at 30% 100%, rgba(20, 55, 24, 0.58), transparent 62%),
    radial-gradient(ellipse at 78% 100%, rgba(44, 84, 36, 0.5), transparent 64%),
    linear-gradient(180deg, transparent 0%, rgba(120, 164, 87, 0.24) 16%, rgba(72, 122, 55, 0.76) 45%, rgba(18, 48, 25, 0.95));
  pointer-events: none;
  z-index: 18;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 7%, rgba(0, 0, 0, 0.72) 20%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 7%, rgba(0, 0, 0, 0.72) 20%, #000 38%);
}

.lily-ground-blade {
  position: absolute;
  left: var(--blade-x);
  bottom: var(--blade-soil);
  width: 3px;
  height: var(--blade-h);
  border-radius: 100% 100% 0 0;
  background: linear-gradient(to top, rgba(33, 82, 33, 0), rgba(63, 128, 54, 0.72) 34%, rgba(146, 190, 95, 0.62));
  transform: translateX(calc(-50% + var(--blade-shift, 0px))) scaleY(0) skewX(var(--blade-skew, 0deg)) rotate(calc(var(--blade-lean) + var(--blade-sway, 0deg)));
  transform-origin: 50% 100%;
  opacity: 0;
  animation: lilyBladeGrow 1.1s ease forwards;
  animation-delay: var(--blade-delay);
  will-change: transform;
}

.lily-plant {
  position: absolute;
  left: var(--x);
  bottom: var(--soil);
  width: var(--size);
  height: calc(var(--stem-h) + var(--size) * 0.72);
  transform: translateX(-50%) scale(var(--scale)) rotate(var(--lean));
  transform-origin: 50% 100%;
  pointer-events: none;
  will-change: transform;
}

.lily-soil-shadow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: calc(var(--size) * 0.82);
  height: calc(var(--size) * 0.13);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(19, 47, 21, 0.35), transparent 72%);
  transform: translateX(-50%);
}

.lily-stem {
  position: absolute;
  left: 50%;
  width: calc(var(--size) * 0.045);
  min-width: 4px;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(90deg, rgba(40, 81, 36, 0.95), #8ead62 48%, rgba(36, 75, 35, 0.96)),
    linear-gradient(to top, #244c2b, #83a95f);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.24), 0 8px 12px rgba(27, 49, 25, 0.16);
  transform-origin: 50% 100%;
  transform: translateX(-50%) scaleY(0);
  animation: lilyStemGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay);
}

.lily-stem-lower {
  bottom: 0;
  height: calc(var(--stem-h) * 0.58);
}

.lily-stem-upper {
  bottom: calc(var(--stem-h) * 0.55);
  height: calc(var(--stem-h) * 0.45);
}

.lily-basal-leaf,
.lily-stem-leaf {
  position: absolute;
  left: 50%;
  background:
    linear-gradient(110deg, transparent 0 45%, rgba(232, 255, 197, 0.3) 46% 49%, transparent 50%),
    linear-gradient(135deg, #a6c87b, #5e934c 62%, #2f6633);
  filter: drop-shadow(0 8px 6px rgba(21, 53, 29, 0.14));
  opacity: 0;
  transform-origin: 0 100%;
  animation: lilyLeafFold 1s ease forwards;
  animation-delay: var(--leaf-delay);
}

.lily-basal-leaf {
  bottom: 0;
  width: calc(var(--size) * 0.52);
  height: calc(var(--size) * 0.14);
  border-radius: 100% 0 100% 0;
  transform: scale(0);
}

.lily-stem-leaf {
  width: calc(var(--size) * 0.34);
  height: calc(var(--size) * 0.1);
  border-radius: 92% 0 92% 0;
  transform: scale(0);
}

.lily-stem-leaf-low {
  bottom: calc(var(--stem-h) * 0.32);
}

.lily-stem-leaf-mid {
  bottom: calc(var(--stem-h) * 0.52);
}

.lily-stem-leaf-high {
  bottom: calc(var(--stem-h) * 0.72);
  width: calc(var(--size) * 0.28);
}

.lily-bud {
  position: absolute;
  left: 50%;
  bottom: calc(var(--stem-h) - var(--size) * 0.07);
  width: calc(var(--size) * 0.28);
  height: calc(var(--size) * 0.48);
  border-radius: 54% 54% 44% 44% / 68% 68% 36% 36%;
  background:
    radial-gradient(ellipse at 34% 20%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(90deg, rgba(63, 108, 57, 0.28), transparent 20% 80%, rgba(49, 83, 47, 0.24)),
    linear-gradient(145deg, var(--bud), #f7eadf 48%, #7e9b66 100%);
  box-shadow: inset -4px -8px 12px rgba(50, 79, 49, 0.18), 0 10px 12px rgba(29, 55, 34, 0.13);
  transform: translateX(-50%) rotate(var(--head-tilt)) scale(1);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.lily-bud::before,
.lily-bud::after {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 12%;
  width: 1px;
  border-radius: 999px;
  background: rgba(86, 108, 70, 0.34);
}

.lily-bud::before {
  left: 44%;
  transform: rotate(-5deg);
}

.lily-bud::after {
  right: 42%;
  transform: rotate(5deg);
}

.lily-flower-fold {
  position: absolute;
  left: 50%;
  bottom: calc(var(--stem-h) - var(--size) * 0.42);
  width: var(--size);
  height: var(--size);
  transform: translateX(-50%) rotate(var(--head-tilt));
  transform-origin: 50% 62%;
  filter: drop-shadow(0 14px 12px rgba(31, 55, 34, 0.2));
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}

.lily-flower-fold:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 4px;
  border-radius: 50%;
}

.lily-bloom-img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 64%;
  opacity: 0;
  clip-path: ellipse(9% 24% at 50% 62%);
  transform: rotateX(72deg) scale(0.12) translateY(8px);
  will-change: transform, opacity, clip-path;
}

.lily-closed .lily-flower-fold {
  filter: drop-shadow(0 9px 8px rgba(31, 55, 34, 0.12));
}

.lily-plucking .lily-flower-fold {
  animation: lilyPluckFlower 980ms cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.lily-regrowing .lily-flower-fold {
  animation: lilyRegrowFlower 1.3s ease-out forwards !important;
}

.lily-growing .lily-bud {
  filter: drop-shadow(0 0 10px rgba(255, 244, 180, 0.34));
}

.lily-watered .lily-flower-fold {
  filter: drop-shadow(0 0 14px rgba(196, 239, 255, 0.78)) drop-shadow(0 14px 12px rgba(31, 55, 34, 0.2));
}

.lily-plant-preview {
  position: absolute;
  z-index: 118;
  width: 82px;
  height: 160px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(6px) scale(0.92);
  transform-origin: 50% 100%;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lily-plant-preview.visible {
  opacity: 0.72;
  transform: translateX(-50%) translateY(0) scale(1);
}

.lily-preview-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(41, 83, 40, 0.42), rgba(166, 198, 111, 0.64), rgba(41, 83, 40, 0.42));
  transform: translateX(-50%);
}

.lily-plant-preview img {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(30, 55, 35, 0.22));
  transform: translateX(-50%);
}

.lily-field-card.lily-watering-mode {
  cursor: url("/imgs/cursors/lily.png"), crosshair;
}

.lily-water-drop {
  position: absolute;
  z-index: 1195;
  width: 9px;
  height: 16px;
  border-radius: 70% 30% 70% 30%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98) 0 10%, transparent 14%),
    linear-gradient(135deg, rgba(238, 255, 255, 0.96), rgba(117, 220, 246, 0.86) 56%, rgba(43, 145, 196, 0.72));
  box-shadow:
    0 0 10px rgba(123, 226, 255, 0.56),
    inset 2px 0 3px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0 4px 7px rgba(36, 102, 128, 0.24));
  animation: lilyWaterDrop var(--duration, 0.64s) cubic-bezier(0.16, 0.7, 0.4, 1) forwards;
}

.lily-water-stream {
  position: absolute;
  z-index: 1194;
  width: 9px;
  height: var(--stream-length, 132px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(226, 253, 255, 0.78) 12%, rgba(117, 220, 246, 0.72) 72%, rgba(255, 255, 255, 0));
  box-shadow:
    0 0 12px rgba(123, 226, 255, 0.48),
    inset 2px 0 3px rgba(255, 255, 255, 0.52);
  pointer-events: none;
  transform: translateX(-50%) rotate(var(--stream-angle, 0deg)) scaleY(0);
  transform-origin: 50% 0;
  animation: lilyWaterStream 1.08s ease-out forwards;
}

.lily-water-ripple {
  position: absolute;
  z-index: 1193;
  width: 18px;
  height: 7px;
  border: 2px solid rgba(146, 226, 255, 0.72);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.35);
  filter: drop-shadow(0 0 8px rgba(112, 211, 239, 0.38));
  animation: lilyWaterRipple 0.72s ease-out forwards;
}

.lily-water-splash {
  position: absolute;
  z-index: 1195;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(220, 251, 255, 0.9);
  box-shadow: 0 0 8px rgba(123, 226, 255, 0.58);
  pointer-events: none;
  animation: lilyWaterSplash 0.58s ease-out forwards;
}

.lily-watering-can {
  position: absolute;
  z-index: 1196;
  width: clamp(98px, 11vw, 148px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 20px rgba(35, 61, 39, 0.22));
  transform: translate(-20%, -122%) scale(0.88);
  transform-origin: 74% 70%;
  animation: lilyWateringCanTilt 1.42s ease-out forwards;
}

.lily-pluck-glow {
  position: fixed;
  z-index: 1188;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 211, 0.92), rgba(255, 184, 213, 0.32) 42%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: lilyPluckGlow 900ms ease-out forwards;
}

.lily-wish-tag {
  position: absolute;
  left: 60%;
  bottom: calc(var(--stem-h) * 0.34);
  z-index: 8;
  display: grid;
  place-items: center;
  width: calc(var(--size) * 0.26);
  min-width: 24px;
  max-width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50% 50% 50% 8px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.84), transparent 34%),
    color-mix(in srgb, var(--bud) 42%, #fff8e9 58%);
  color: #31583d;
  cursor: pointer;
  font-size: clamp(0.74rem, calc(var(--size) * 0.12), 1rem);
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 8px 16px rgba(24, 53, 32, 0.18);
  transform: rotate(-10deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lily-wish-tag:hover,
.lily-wish-tag:focus-visible {
  outline: none;
  transform: translateY(-2px) rotate(-5deg) scale(1.04);
  box-shadow: 0 12px 22px rgba(24, 53, 32, 0.24), 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.lily-wish-bubble {
  position: fixed;
  left: 50%;
  top: 19%;
  z-index: 1210;
  max-width: min(540px, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.56), transparent 42%),
    color-mix(in srgb, var(--lily-panel-bg) 72%, #fff7ef 28%);
  color: var(--lily-button-text);
  font-family: var(--lily-letter-font);
  font-size: 1.46rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.26;
  text-align: center;
  box-shadow: 0 18px 42px var(--lily-panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  pointer-events: none;
  transform: translateX(-50%);
  animation: lilyPluckMessage 3.6s ease-out forwards;
}

.lily-pluck-message {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 1200;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.74), transparent 44%),
    repeating-linear-gradient(88deg, transparent 0 3px, rgba(86, 54, 22, 0.035) 3px 4px, transparent 4px 10px),
    linear-gradient(145deg, rgba(255, 249, 225, 0.97), rgba(238, 219, 170, 0.96));
  color: #244b2f;
  font-family: var(--lily-body-font);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.54);
  box-shadow:
    0 16px 34px rgba(38, 62, 35, 0.2),
    inset 0 0 28px rgba(107, 68, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  pointer-events: none;
  transform: translateX(-50%);
  animation: lilyPluckMessage 3.2s ease-out forwards;
}

body.lily-page[data-lily-time="sunset"] .lily-pluck-message {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.64), transparent 44%),
    repeating-linear-gradient(88deg, transparent 0 3px, rgba(112, 54, 26, 0.04) 3px 4px, transparent 4px 10px),
    linear-gradient(145deg, rgba(255, 231, 203, 0.98), rgba(235, 181, 126, 0.96));
  color: #563021;
}

body.lily-page[data-lily-time="dusk"] .lily-pluck-message,
body.lily-page[data-lily-time="moon"] .lily-pluck-message {
  border-color: rgba(246, 232, 194, 0.78);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 248, 214, 0.42), transparent 44%),
    repeating-linear-gradient(88deg, transparent 0 3px, rgba(48, 29, 12, 0.055) 3px 4px, transparent 4px 10px),
    linear-gradient(145deg, rgba(231, 207, 151, 0.96), rgba(176, 137, 82, 0.96));
  color: #21150d;
  text-shadow: 0 1px 0 rgba(255, 238, 190, 0.28);
}

.lily-pluck-petal {
  position: fixed;
  z-index: 1190;
  pointer-events: none;
  font-size: var(--petal-size, 1rem);
  transform: translate(-50%, -50%);
  animation: lilyPetalScatter 1.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lily-breeze-control.is-gusting {
  color: #2e6b4d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(201, 245, 220, 0.66)),
    rgba(222, 255, 232, 0.72);
  box-shadow: 0 0 26px rgba(117, 204, 152, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.lily-breeze-petal {
  position: absolute;
  z-index: 33;
  pointer-events: none;
  font-size: clamp(0.8rem, 1.6vw, 1.18rem);
  opacity: 0;
  filter: drop-shadow(0 8px 10px rgba(71, 85, 54, 0.18));
  animation: lilyBreezePetal 3s ease-in forwards;
}

.lily-butterflies-layer {
  z-index: 30;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.lily-field-card[data-time="dusk"] .lily-butterflies-layer,
.lily-field-card[data-time="moon"] .lily-butterflies-layer {
  opacity: 0;
  visibility: hidden;
}

.lily-butterfly {
  position: absolute;
  top: var(--butterfly-top, 32%);
  left: -10%;
  transform: translate(-50%, 0);
  animation: lilyButterflyPath 28s linear infinite;
  filter: drop-shadow(0 7px 8px rgba(59, 50, 42, 0.18));
  opacity: 0;
  will-change: left, transform, opacity;
}

.lily-butterfly svg {
  display: block;
  overflow: visible;
  animation: lilyButterflyBob 2.4s ease-in-out infinite;
}

.lily-butterfly-wing {
  transform-origin: 0 0;
  animation: lilyWingFlap 180ms ease-in-out infinite;
}

.lily-butterfly-wing-left {
  transform-box: fill-box;
}

.lily-butterfly-wing-right {
  transform-box: fill-box;
}

.lily-fireflies-layer {
  position: absolute;
  inset: 0;
  z-index: 17;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}

.lily-field-card[data-time="dusk"] .lily-fireflies-layer,
.lily-field-card[data-time="moon"] .lily-fireflies-layer {
  opacity: 1;
}

.lily-firefly {
  position: absolute;
  width: var(--fly-size, 3px);
  height: var(--fly-size, 3px);
  border-radius: 50%;
  background: #fff6a6;
  box-shadow:
    0 0 7px rgba(255, 239, 139, 0.95),
    0 0 20px rgba(255, 211, 105, 0.46);
  opacity: 0;
  animation:
    lilyFireflyDrift 7s ease-in-out infinite,
    lilyFireflyGlow 3.4s ease-in-out infinite;
  will-change: transform, opacity;
}

.lily-firefly::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 105, 0.26), transparent 68%);
}

.lily-weather-layer {
  z-index: 33;
  overflow: hidden;
}

.lily-rain-drop,
.lily-weather-mist,
.lily-moon-mote,
.lily-lightning-flash,
.lily-sheet-lightning,
.lily-lightning-bolt {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.lily-rain-drop {
  display: none;
  top: -12%;
  width: 1px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(224, 245, 255, 0.72), rgba(166, 214, 232, 0));
  transform: rotate(12deg);
  animation: lilyRainFall 1.08s linear infinite;
}

.lily-weather-mist {
  display: none;
  left: -38%;
  width: calc(44% * var(--mist-depth, 1));
  height: calc(46px * var(--mist-depth, 1));
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 16% 52%, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(ellipse at 52% 48%, rgba(226, 247, 252, 0.18), transparent 60%),
    radial-gradient(ellipse at 86% 58%, rgba(255, 255, 255, 0.14), transparent 56%),
    linear-gradient(90deg, transparent, rgba(230, 248, 250, 0.17), transparent);
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: lilyWeatherMist 24s ease-in-out infinite;
}

.lily-moon-mote {
  display: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff5bc;
  box-shadow: 0 0 14px rgba(255, 236, 177, 0.72);
  animation: lilyMoonMote 4.8s ease-in-out infinite;
}

.lily-lightning-flash {
  display: none;
  inset: 0;
  z-index: 7;
  background:
    radial-gradient(ellipse 80% 60% at var(--lx, 50%) var(--ly, 15%), rgba(200, 210, 255, 0.72) 0%, rgba(150, 170, 255, 0.28) 30%, rgba(100, 120, 200, 0.08) 60%, transparent 100%);
  mix-blend-mode: screen;
}

.lily-sheet-lightning {
  display: none;
  inset: 0 0 auto;
  height: 42%;
  z-index: 6;
  background:
    radial-gradient(ellipse 100% 80% at var(--slx, 50%) 30%, rgba(180, 190, 255, 0.46) 0%, rgba(120, 130, 200, 0.18) 40%, transparent 100%);
  mix-blend-mode: screen;
}

.lily-lightning-bolt {
  display: none;
  inset: 0;
  z-index: 8;
}

.lily-bolt-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lily-bolt-line {
  fill: none;
  stroke: rgba(200, 210, 255, 0.9);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 15px rgba(160, 180, 255, 0.8))
    drop-shadow(0 0 40px rgba(120, 140, 255, 0.4));
  opacity: 0;
}

.lily-bolt-line-thin {
  stroke: rgba(200, 210, 255, 0.5);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px rgba(160, 180, 255, 0.5));
}

.lily-field-card[data-weather="clear"] .lily-weather-layer {
  opacity: 0;
}

.lily-field-card[data-time="moon"] .lily-weather-layer,
.lily-field-card[data-weather="rain"] .lily-weather-layer,
.lily-field-card[data-weather="mist"] .lily-weather-layer {
  opacity: 1;
}

.lily-field-card[data-weather="rain"] .lily-rain-drop,
.lily-field-card[data-weather="mist"] .lily-weather-mist,
.lily-field-card[data-time="moon"] .lily-moon-mote {
  display: block;
  opacity: 1;
}

.lily-field-card[data-weather="rain"] .lily-lightning-flash,
.lily-field-card[data-weather="rain"] .lily-sheet-lightning,
.lily-field-card[data-weather="rain"] .lily-lightning-bolt {
  display: block;
}

.lily-field-card[data-weather="rain"] {
  filter: saturate(0.92) brightness(0.96);
}

.lily-field-card[data-weather="mist"]::before {
  opacity: 0.9;
}

.lily-field-card[data-time="moon"]::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 242, 188, 0.2), transparent 28%),
    rgba(232, 220, 255, 0.08);
}

.lily-field-card.lily-lightning-grade {
  filter: saturate(1.24) contrast(1.12) brightness(1.08);
}

.lily-lightning-flash.flash {
  animation: lilyLightningFlash var(--duration, 0.8s) ease-out forwards;
}

.lily-sheet-lightning.flash {
  animation: lilySheetFlash var(--duration, 0.5s) ease-out forwards;
}

.lily-bolt-line.flash {
  animation: lilyBoltFlash var(--duration, 0.8s) ease-out forwards;
}

.lily-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(220px, 0.8fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.3rem;
  padding: 0.8rem;
  border: 1px solid var(--lily-panel-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    var(--lily-panel-bg);
  box-shadow: 0 14px 28px var(--lily-panel-shadow);
  backdrop-filter: blur(14px);
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.lily-time-toggle,
.lily-weather-toggle,
.lily-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.lily-chip,
.lily-control,
.lily-plant-button {
  border: 1px solid var(--lily-button-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.1)),
    var(--lily-button-bg);
  color: var(--lily-button-text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lily-chip,
.lily-control {
  min-height: 42px;
  padding: 0.68rem 0.95rem;
}

.lily-chip:hover,
.lily-control:hover,
.lily-plant-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(72, 93, 63, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.lily-control:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(0.28);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.lily-control:disabled:hover {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.lily-chip.active {
  background: var(--lily-active-bg);
  color: var(--lily-active-text);
  border-color: color-mix(in srgb, var(--lily-active-bg) 78%, #fff 22%);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--lily-active-bg) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.lily-chip[data-time="morning"] {
  --lily-button-bg: rgba(236, 246, 219, 0.82);
  --lily-button-text: #31583d;
  --lily-button-border: rgba(86, 130, 72, 0.28);
}

.lily-chip[data-time="dawn"] {
  --lily-button-bg: rgba(255, 233, 217, 0.82);
  --lily-button-text: #814d4a;
  --lily-button-border: rgba(211, 132, 110, 0.32);
}

.lily-chip[data-time="noon"] {
  --lily-button-bg: rgba(226, 247, 250, 0.84);
  --lily-button-text: #276671;
  --lily-button-border: rgba(88, 160, 174, 0.3);
}

.lily-chip[data-time="sunset"] {
  --lily-button-bg: rgba(255, 226, 207, 0.84);
  --lily-button-text: #8c4351;
  --lily-button-border: rgba(218, 116, 101, 0.32);
}

.lily-chip[data-time="dusk"] {
  --lily-button-bg: rgba(236, 226, 255, 0.82);
  --lily-button-text: #523d78;
  --lily-button-border: rgba(141, 113, 188, 0.32);
}

.lily-chip[data-time="morning"].active {
  --lily-active-bg: #31583d;
  --lily-active-text: #fffdf4;
}

.lily-chip[data-time="dawn"].active {
  --lily-active-bg: #cf7a6f;
  --lily-active-text: #fff9f4;
}

.lily-chip[data-time="noon"].active {
  --lily-active-bg: #347f8b;
  --lily-active-text: #f4feff;
}

.lily-chip[data-time="sunset"].active {
  --lily-active-bg: #bd536c;
  --lily-active-text: #fff7f3;
}

.lily-chip[data-time="dusk"].active {
  --lily-active-bg: #b99ade;
  --lily-active-text: #251a35;
}

#bloom-all {
  --lily-button-bg: rgba(255, 230, 244, 0.86);
  --lily-button-text: #8b3e65;
  --lily-button-border: rgba(226, 133, 184, 0.38);
}

#close-all {
  --lily-button-bg: rgba(237, 232, 255, 0.86);
  --lily-button-text: #60477e;
  --lily-button-border: rgba(148, 121, 190, 0.34);
}

#plant-random {
  --lily-button-bg: rgba(231, 246, 216, 0.88);
  --lily-button-text: #315f3d;
  --lily-button-border: rgba(100, 148, 73, 0.34);
}

#plant-random.active {
  background: var(--lily-active-bg);
  color: var(--lily-active-text);
  border-color: color-mix(in srgb, var(--lily-active-bg) 78%, #fff 22%);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--lily-active-bg) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#water-lily {
  --lily-button-bg: rgba(219, 245, 249, 0.88);
  --lily-button-text: #27626b;
  --lily-button-border: rgba(84, 159, 172, 0.34);
}

#water-lily.active {
  background: #69b6c4;
  color: #f7feff;
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 20px rgba(69, 141, 156, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

#send-breeze {
  --lily-button-bg: rgba(230, 248, 225, 0.88);
  --lily-button-text: #386947;
  --lily-button-border: rgba(105, 166, 112, 0.34);
}

body.lily-page[data-lily-time="dusk"] #send-breeze,
body.lily-page[data-lily-time="moon"] #send-breeze {
  --lily-button-bg: linear-gradient(135deg, rgba(226, 212, 255, 0.82), rgba(183, 232, 205, 0.34));
  --lily-button-text: #4d4a68;
  --lily-button-border: rgba(226, 212, 255, 0.48);
  box-shadow: 0 10px 22px rgba(38, 28, 66, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

#send-breeze:disabled {
  opacity: 0.86;
  filter: none;
}

body.lily-page[data-lily-time="dusk"] #send-breeze:disabled,
body.lily-page[data-lily-time="moon"] #send-breeze:disabled,
body.lily-page[data-lily-time="dusk"] #send-breeze.is-gusting,
body.lily-page[data-lily-time="moon"] #send-breeze.is-gusting {
  color: #384f4a;
  border-color: rgba(235, 218, 255, 0.56);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(135deg, rgba(188, 160, 238, 0.84), rgba(86, 148, 125, 0.62));
  box-shadow: 0 0 24px rgba(195, 154, 232, 0.28), 0 10px 22px rgba(26, 19, 50, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

#reset-garden {
  --lily-button-bg: rgba(255, 244, 222, 0.88);
  --lily-button-text: #775934;
  --lily-button-border: rgba(193, 155, 88, 0.34);
}

.lily-control-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.76fr);
  grid-template-areas:
    "scene scene"
    "weather garden";
  align-items: stretch;
  gap: 0.95rem;
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 176, 207, 0.34), transparent 30%),
    radial-gradient(circle at 48% 0%, rgba(255, 226, 126, 0.26), transparent 31%),
    radial-gradient(circle at 88% 22%, rgba(152, 221, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(244, 232, 255, 0.18)),
    color-mix(in srgb, var(--lily-panel-bg) 62%, transparent);
  box-shadow:
    0 22px 46px color-mix(in srgb, var(--lily-panel-shadow) 80%, rgba(43, 53, 92, 0.18)),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -22px 42px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
}

.lily-control-group {
  position: relative;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, var(--group-glow), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.12)),
    color-mix(in srgb, var(--group-tint) 58%, var(--lily-panel-bg) 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -18px 28px rgba(255, 255, 255, 0.08),
    0 13px 28px color-mix(in srgb, var(--group-shadow) 70%, transparent);
  backdrop-filter: blur(16px) saturate(1.16);
}

.lily-control-group h2 {
  position: absolute;
  top: -0.68rem;
  left: 1rem;
  margin: 0;
  padding: 0 0.5rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06)),
    var(--group-label);
  color: var(--group-label-text);
  font-family: var(--lily-body-font);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--group-shadow) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.lily-scene-group {
  --group-tint: rgba(226, 213, 255, 0.56);
  --group-glow: rgba(255, 223, 141, 0.28);
  --group-shadow: rgba(101, 78, 158, 0.2);
  --group-label: rgba(91, 78, 138, 0.78);
  --group-label-text: #fff8ff;
  grid-area: scene;
}

.lily-weather-group {
  --group-tint: rgba(202, 239, 246, 0.56);
  --group-glow: rgba(182, 237, 255, 0.34);
  --group-shadow: rgba(42, 117, 144, 0.18);
  --group-label: rgba(57, 116, 139, 0.78);
  --group-label-text: #f7feff;
  grid-area: weather;
}

.lily-garden-group {
  --group-tint: rgba(224, 246, 202, 0.56);
  --group-glow: rgba(255, 183, 218, 0.28);
  --group-shadow: rgba(74, 128, 73, 0.18);
  --group-label: rgba(70, 128, 79, 0.78);
  --group-label-text: #fffdf4;
  grid-area: garden;
}

.lily-scene-group .lily-time-toggle {
  justify-content: center;
}

.lily-weather-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lily-garden-group .lily-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.lily-reset-control {
  grid-column: 2;
}

.lily-chip,
.lily-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.lily-chip[data-time="moon"] {
  --lily-button-bg: rgba(240, 239, 255, 0.84);
  --lily-button-text: #4f477d;
  --lily-button-border: rgba(150, 143, 205, 0.34);
}

.lily-chip[data-time="moon"].active {
  --lily-active-bg: #d8c7ff;
  --lily-active-text: #17213f;
}

.lily-chip[data-weather="clear"] {
  --lily-button-bg: rgba(255, 249, 220, 0.84);
  --lily-button-text: #6d5b28;
  --lily-button-border: rgba(204, 176, 76, 0.32);
}

.lily-chip[data-weather="mist"] {
  --lily-button-bg: rgba(234, 241, 238, 0.86);
  --lily-button-text: #5d6d68;
  --lily-button-border: rgba(139, 162, 154, 0.32);
}

.lily-chip[data-weather="rain"] {
  --lily-button-bg: rgba(221, 238, 249, 0.88);
  --lily-button-text: #315c79;
  --lily-button-border: rgba(90, 142, 174, 0.34);
}

.lily-chip[data-weather].active {
  --lily-active-bg: #3f778f;
  --lily-active-text: #f7fdff;
}

.lily-chip[data-weather="mist"].active {
  --lily-active-bg: #758d86;
}

.lily-chip[data-weather="clear"].active {
  --lily-active-bg: #c89d38;
}

.lily-plant-drawer {
  display: grid;
  gap: 0.9rem;
  margin: -0.35rem 0 1.35rem;
  padding: 0 1rem;
  border: 1px solid var(--lily-panel-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.38), transparent 38%),
    var(--lily-panel-bg);
  box-shadow: 0 16px 32px var(--lily-panel-shadow);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, max-height 260ms ease, padding 240ms ease;
}

.lily-plant-drawer.open {
  opacity: 1;
  transform: translateY(0);
  max-height: 560px;
  padding: 1rem;
  pointer-events: auto;
}

.lily-plant-drawer-header,
.lily-plant-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lily-plant-drawer-header h2 {
  margin: 0;
  color: var(--lily-button-text);
  font-family: var(--lily-display-font);
  font-size: clamp(1.7rem, 3vw, 2.42rem);
  font-weight: 700;
  line-height: 0.96;
}

.lily-plant-drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--lily-button-border);
  border-radius: 50%;
  background: var(--lily-button-bg);
  color: var(--lily-button-text);
  cursor: pointer;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lily-plant-drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.lily-plant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.lily-plant-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.42rem 0.56rem;
  border: 1px solid var(--lily-button-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 54%),
    var(--lily-button-bg);
  color: var(--lily-button-text);
  cursor: pointer;
  font-family: var(--lily-body-font);
  font-weight: 900;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lily-plant-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(32, 57, 36, 0.18));
}

.lily-plant-option small {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.72;
}

.lily-plant-option:hover,
.lily-plant-option:focus-visible,
.lily-plant-option.active {
  border-color: color-mix(in srgb, var(--lily-active-bg) 68%, #ffffff 32%);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--lily-active-bg) 18%, transparent);
  outline: none;
  transform: translateY(-2px);
}

.lily-plant-option.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 54%),
    color-mix(in srgb, var(--lily-active-bg) 18%, var(--lily-button-bg) 82%);
}

.lily-wish-field {
  display: grid;
  gap: 0.42rem;
  color: var(--lily-button-text);
  font-weight: 900;
}

.lily-wish-field textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--lily-button-border);
  border-radius: 16px;
  padding: 0.78rem 0.88rem;
  background: rgba(255, 255, 255, 0.62);
  color: #31513b;
  font-family: var(--lily-letter-font);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.lily-wish-field textarea:focus {
  border-color: color-mix(in srgb, var(--lily-active-bg) 66%, #ffffff 34%);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lily-active-bg) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.lily-plant-status {
  color: color-mix(in srgb, var(--lily-button-text) 82%, #ffffff 18%);
  font-weight: 900;
}

.lily-wind-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  color: var(--lily-button-text);
  font-weight: 900;
}

.lily-wind-control input {
  appearance: none;
  width: 100%;
  min-width: 110px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lily-range-fill), var(--lily-range-track));
  box-shadow: inset 0 1px 2px rgba(30, 50, 35, 0.24);
  outline: none;
}

.lily-wind-control input::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--lily-range-fill);
  box-shadow: 0 4px 12px rgba(39, 64, 44, 0.24);
}

.lily-wind-control input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--lily-range-fill);
  box-shadow: 0 4px 12px rgba(39, 64, 44, 0.24);
}

.lily-wind-control strong,
.lily-count {
  color: color-mix(in srgb, var(--lily-button-text) 72%, #ffffff 28%);
  font-variant-numeric: tabular-nums;
}

.lily-count {
  justify-self: end;
  font-weight: 900;
  white-space: nowrap;
}

.lily-showcase-card {
  background: rgba(255, 251, 242, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #3c5c40;
  box-shadow: 0 14px 28px rgba(52, 78, 48, 0.12);
  backdrop-filter: blur(14px);
}

.lily-showcase {
  margin-top: 2.2rem;
}

.lily-showcase-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lily-showcase-header h2 {
  margin: 0;
  color: #274a32;
  font-family: var(--lily-display-font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

.lily-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lily-showcase-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 202px;
  border-radius: 18px;
  padding: 1rem;
  opacity: 0;
  transform: translateY(14px);
  animation: lilyCardIn 520ms ease forwards;
}

.lily-showcase-visual {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(180deg, rgba(202, 230, 226, 0.82), rgba(246, 232, 198, 0.72) 58%, rgba(102, 145, 72, 0.86) 59%, rgba(49, 91, 43, 0.94));
}

.mini-lily-stem {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 5px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(90deg, #315f37, #a3bf71, #315f37);
  transform: translateX(-50%);
}

.mini-lily-img {
  position: absolute;
  left: 50%;
  bottom: 84px;
  width: 78px;
  height: 78px;
  clip-path: ellipse(76% 72% at 50% 50%);
  transform: translateX(-50%) scale(0.98);
  filter: drop-shadow(0 10px 10px rgba(29, 55, 34, 0.18));
  animation: lilyMiniBloom 3.2s ease-in-out infinite;
}

.lily-showcase-copy h3 {
  margin: 0;
  color: #2b4e35;
  font-family: var(--lily-display-font);
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1;
}

.lily-showcase-copy p {
  min-height: 38px;
  margin: 0.3rem 0 0.75rem;
  color: #607b61;
  font-size: 0.9rem;
  line-height: 1.4;
}

.lily-plant-button {
  --lily-button-bg: rgba(236, 247, 228, 0.9);
  --lily-button-text: #315f3d;
  --lily-button-border: rgba(92, 140, 70, 0.34);
  min-height: 38px;
  padding: 0.6rem 0.9rem;
}

.lily-letter-envelope {
  --letter-accent: #7a9b6e;
  --letter-seal: #e9a4ce;
  grid-column: 1 / -1;
  min-height: 148px;
  perspective: 900px;
  cursor: pointer;
  outline: none;
}

.lily-showcase-card[data-variant="white"] {
  --letter-accent: #8a8a83;
  --letter-seal: #f2efe5;
}

.lily-showcase-card[data-variant="pink"] {
  --letter-accent: #c85b86;
  --letter-seal: #f3a6c3;
}

.lily-showcase-card[data-variant="yellow"] {
  --letter-accent: #b47c21;
  --letter-seal: #f3ca55;
}

.lily-showcase-card[data-variant="orange"] {
  --letter-accent: #b35e31;
  --letter-seal: #f28e55;
}

.lily-showcase-card[data-variant="red"] {
  --letter-accent: #a34042;
  --letter-seal: #d85a5e;
}

.lily-showcase-card[data-variant="black"] {
  --letter-accent: #66518f;
  --letter-seal: #3d303d;
}

.lily-envelope-front {
  position: relative;
  min-height: 148px;
  border: 1px solid color-mix(in srgb, var(--letter-accent) 30%, #ffffff 70%);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #fff9f2 0%, color-mix(in srgb, var(--letter-seal) 18%, #fff7ec 82%) 100%);
  box-shadow: 0 12px 26px rgba(54, 78, 54, 0.12), inset 0 0 22px rgba(255, 255, 255, 0.42);
  transition: min-height 420ms cubic-bezier(0.2, 0.82, 0.2, 1), box-shadow 220ms ease, transform 220ms ease;
}

.lily-letter-envelope:hover .lily-envelope-front,
.lily-letter-envelope:focus-visible .lily-envelope-front {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(54, 78, 54, 0.16), inset 0 0 22px rgba(255, 255, 255, 0.48);
}

.lily-envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 58%;
  z-index: 3;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--letter-seal) 20%, #fff8f0 80%), color-mix(in srgb, var(--letter-seal) 36%, #fbe9dc 64%));
  border-bottom: 1px solid color-mix(in srgb, var(--letter-accent) 28%, transparent);
  filter: drop-shadow(0 6px 6px rgba(88, 72, 61, 0.08));
  transition: transform 620ms cubic-bezier(0.68, -0.35, 0.265, 1.25);
}

.lily-wax-seal {
  position: absolute;
  top: 47%;
  right: 1.1rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 46% 54% 48% 52% / 50% 45% 55% 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.44) 0 12%, transparent 13%),
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--letter-seal) 72%, #ffffff 28%) 0%, var(--letter-seal) 48%, color-mix(in srgb, var(--letter-accent) 76%, #5a263a 24%) 100%);
  color: #fff;
  font-size: 1.72rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
  box-shadow:
    0 5px 10px rgba(32, 27, 24, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.28),
    inset 0 -4px 7px rgba(0, 0, 0, 0.16);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lily-envelope-preview {
  position: absolute;
  left: 1.05rem;
  right: 9rem;
  bottom: 0.84rem;
  z-index: 2;
  min-height: 2.2rem;
  padding: 0.36rem 0.62rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  text-align: left;
  backdrop-filter: blur(3px);
}

.lily-envelope-preview span {
  display: block;
  color: var(--letter-accent);
  font-weight: 900;
}

.lily-envelope-preview em {
  display: block;
  margin-top: 0.14rem;
  color: color-mix(in srgb, var(--letter-accent) 72%, #64725f 28%);
  font-size: 0.76rem;
  line-height: 1.25;
}

.lily-envelope-hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--letter-seal) 22%, #ffffff 78%);
  color: var(--letter-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.lily-letter-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--letter-accent) 28%, #ffffff 72%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.74), transparent 32%),
    color-mix(in srgb, var(--letter-seal) 36%, #ffffff 64%);
  color: var(--letter-accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  box-shadow: 0 10px 22px rgba(78, 54, 63, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: scale(0) rotate(-120deg);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.68, -0.25, 0.265, 1.25), background 180ms ease, box-shadow 180ms ease;
}

.lily-letter-close:hover,
.lily-letter-close:focus-visible {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.86), transparent 32%),
    color-mix(in srgb, var(--letter-seal) 54%, #ffffff 46%);
  box-shadow: 0 14px 28px rgba(78, 54, 63, 0.24), 0 0 0 4px color-mix(in srgb, var(--letter-seal) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  outline: none;
  transform: scale(1.05) rotate(0deg);
}

.lily-letter-paper {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 16%;
  bottom: 7%;
  z-index: 2;
  overflow: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(139, 90, 43, 0.12);
  border-radius: 5px;
  background:
    radial-gradient(rgba(95, 69, 35, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(135deg, #fffdf8 0%, #fff3e8 100%);
  color: #4a3e36;
  box-shadow: inset 0 0 35px rgba(139, 90, 43, 0.06), 0 8px 16px rgba(44, 34, 27, 0.1);
  opacity: 0;
  transform: translateY(78%);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.68, -0.35, 0.265, 1.25);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--letter-accent) 55%, #ffffff 45%) transparent;
}

.lily-letter-paper::-webkit-scrollbar {
  width: 7px;
}

.lily-letter-paper::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--letter-accent) 55%, #ffffff 45%);
}

.lily-letter-header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.72rem;
  padding-bottom: 0.72rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--letter-seal) 45%, transparent);
}

.lily-letter-stamp {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--letter-seal) 24%, #ffffff 76%);
  font-size: 1.42rem;
}

.lily-letter-title {
  color: var(--letter-accent);
  font-family: var(--lily-letter-font);
  font-size: 1.58rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.lily-letter-subtitle {
  margin-top: 0.18rem;
  color: color-mix(in srgb, var(--letter-accent) 72%, #8a6d59 28%);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.28;
}

.lily-letter-body {
  min-height: 96px;
  color: #4d4137;
  font-family: var(--lily-letter-font);
  font-size: 1.34rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.58;
}

.lily-letter-signature {
  margin-top: 0.8rem;
  color: var(--letter-accent);
  font-family: var(--lily-letter-font);
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 700;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease;
}

.lily-letter-signature.visible {
  opacity: 1;
  visibility: visible;
}

.lily-typing-indicator {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 1.6rem 0;
}

.lily-typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--letter-seal);
  animation: lilyTypingBounce 1.35s infinite ease-in-out both;
}

.lily-typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.lily-typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

.lily-pen-cursor {
  display: inline-block;
  margin-left: 0.24rem;
  font-size: 1.08rem;
  vertical-align: middle;
  filter: drop-shadow(1px 3px 3px rgba(0, 0, 0, 0.18));
}

.lily-showcase-card.letter-open {
  min-height: 472px;
}

.lily-showcase-card.letter-open .lily-envelope-front {
  min-height: 330px;
}

.lily-showcase-card.letter-open .lily-envelope-flap {
  transform: rotateX(180deg);
}

.lily-showcase-card.letter-open .lily-wax-seal {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.lily-showcase-card.letter-open .lily-envelope-preview,
.lily-showcase-card.letter-open .lily-envelope-hint {
  opacity: 0;
  pointer-events: none;
}

.lily-showcase-card.letter-open .lily-letter-paper {
  opacity: 1;
  transform: translateY(0);
}

.lily-showcase-card.letter-open .lily-letter-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.lily-showcase-card.letter-open .lily-letter-close:hover,
.lily-showcase-card.letter-open .lily-letter-close:focus-visible {
  transform: scale(1.05) rotate(0deg);
}

.lily-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.4rem 1.7rem;
  border: 1px solid rgba(88, 57, 25, 0.34);
  border-radius: 12px 8px 14px 10px;
  background:
    radial-gradient(ellipse at 15% 18%, rgba(112, 72, 30, 0.12), transparent 24%),
    radial-gradient(ellipse at 86% 74%, rgba(91, 55, 20, 0.12), transparent 26%),
    radial-gradient(ellipse at 48% 42%, rgba(255, 250, 216, 0.32), transparent 34%),
    linear-gradient(145deg, #eadbad, #d8be82 58%, #c5a46a);
  color: #352315;
  box-shadow:
    0 20px 42px rgba(38, 62, 35, 0.22),
    0 2px 0 rgba(255, 250, 220, 0.28) inset,
    inset 0 0 54px rgba(92, 56, 20, 0.18),
    inset 0 0 8px rgba(55, 31, 10, 0.32),
    0 0 0 5px rgba(255, 248, 216, 0.14);
  overflow: hidden;
  transform: rotate(-0.25deg);
}

.lily-footer::before,
.lily-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lily-footer::before {
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(88deg, transparent 0 3px, rgba(86, 54, 22, 0.08) 3px 4px, transparent 4px 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 20% 40%, rgba(86, 50, 16, 0.09) 0 1px, transparent 1px 4px);
}

.lily-footer::after {
  z-index: 3;
  opacity: 0.74;
  background:
    linear-gradient(90deg, rgba(69, 35, 8, 0.19), transparent 7%, transparent 93%, rgba(69, 35, 8, 0.22)),
    linear-gradient(180deg, rgba(69, 35, 8, 0.2), transparent 16%, transparent 84%, rgba(69, 35, 8, 0.24)),
    radial-gradient(ellipse at center, transparent 48%, rgba(65, 37, 10, 0.18) 100%);
  mix-blend-mode: multiply;
}

.lily-footer-note {
  position: relative;
  z-index: 5;
  max-width: 62ch;
  color: #2f2a18;
  font-family: var(--lily-display-font);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-style: italic;
  font-weight: 650;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 1px 0 rgba(42, 26, 14, 0.08), 0 1px rgba(255, 255, 255, 0.24);
}

.lily-footer-count {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  padding: 0.62rem 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.14)),
    rgba(244, 230, 188, 0.48);
  backdrop-filter: blur(8px) saturate(1.12);
  color: #3c2a18;
  font-family: var(--lily-body-font);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -10px 18px rgba(96, 61, 24, 0.08),
    0 9px 18px rgba(70, 43, 17, 0.18);
  transform: rotate(0.5deg);
}

.lily-footer-count::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(107, 65, 26, 0.12);
  pointer-events: none;
}

body.lily-page[data-lily-time="sunset"] .lily-footer {
  border-color: rgba(112, 58, 34, 0.38);
  background:
    radial-gradient(ellipse at 15% 18%, rgba(130, 69, 32, 0.15), transparent 24%),
    radial-gradient(ellipse at 86% 74%, rgba(119, 58, 30, 0.16), transparent 26%),
    radial-gradient(ellipse at 48% 42%, rgba(255, 234, 195, 0.28), transparent 34%),
    linear-gradient(145deg, #ead1a2, #d59f68 62%, #b98050);
  color: #3e2119;
}

body.lily-page[data-lily-time="sunset"] .lily-footer-note,
body.lily-page[data-lily-time="sunset"] .lily-footer-count {
  color: #3e2119;
}

body.lily-page[data-lily-time="dusk"] .lily-footer,
body.lily-page[data-lily-time="moon"] .lily-footer {
  border-color: rgba(83, 52, 30, 0.5);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(128, 85, 43, 0.16), transparent 24%),
    radial-gradient(ellipse at 86% 74%, rgba(89, 51, 24, 0.18), transparent 26%),
    radial-gradient(ellipse at 52% 42%, rgba(236, 217, 170, 0.24), transparent 34%),
    linear-gradient(145deg, #c7ad78, #9f7a4e 64%, #6f5137);
  color: #23170f;
  box-shadow:
    0 18px 36px rgba(14, 12, 30, 0.28),
    0 2px 0 rgba(255, 232, 180, 0.18) inset,
    inset 0 0 54px rgba(50, 28, 12, 0.2),
    inset 0 0 8px rgba(33, 18, 8, 0.36),
    0 0 0 5px rgba(246, 222, 170, 0.08);
}

body.lily-page[data-lily-time="dusk"] .lily-footer-note,
body.lily-page[data-lily-time="moon"] .lily-footer-note {
  color: #23170f;
  text-shadow: 0 1px rgba(255, 244, 210, 0.18);
}

body.lily-page[data-lily-time="dusk"] .lily-footer-count,
body.lily-page[data-lily-time="moon"] .lily-footer-count {
  border-color: rgba(255, 238, 196, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 238, 190, 0.34), rgba(255, 238, 190, 0.08)),
    rgba(224, 196, 132, 0.28);
  color: #23170f;
}

.lily-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 1000;
  transform: translate(-50%, 120%);
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(47, 82, 54, 0.9);
  color: #fffdf4;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 42px rgba(30, 60, 36, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.lily-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lily-audio-toggle {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1400;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 14, 32, 0.48);
  color: #ffe6f3;
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(18, 10, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lily-audio-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 232, 247, 0.38);
  background: rgba(28, 18, 44, 0.68);
  box-shadow: 0 18px 38px rgba(18, 10, 30, 0.36), 0 0 24px rgba(232, 164, 206, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lily-audio-toggle.is-muted {
  color: #ffc8df;
  background: rgba(18, 12, 28, 0.62);
}

@keyframes lilyStemGrow {
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes lilyLeafFold {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 0.94;
    transform: var(--leaf-final);
  }
}

@keyframes lilyBladeGrow {
  to {
    opacity: 0.78;
    transform: translateX(calc(-50% + var(--blade-shift, 0px))) scaleY(var(--blade-scale)) skewX(var(--blade-skew, 0deg)) rotate(calc(var(--blade-lean) + var(--blade-sway, 0deg)));
  }
}

@keyframes lilySunBob {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -7px;
  }
}

@keyframes lilyRaySpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes lilyTwinkle {
  0%, 100% {
    opacity: 0.32;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

@keyframes lilyMistDrift {
  0% {
    transform: translate3d(-4%, 0, 0) scale(1);
  }
  45% {
    transform: translate3d(3%, -4px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(7%, 2px, 0) scale(1.02);
  }
}

@keyframes lilyCloudDrift {
  from {
    transform: translateX(-12vw) scale(var(--cloud-scale));
  }
  to {
    transform: translateX(132vw) scale(var(--cloud-scale));
  }
}

@keyframes lilyPollenRise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: var(--p-opacity);
  }
  88% {
    opacity: var(--p-opacity);
  }
  100% {
    transform: translate(var(--p-drift), -118vh);
    opacity: 0;
  }
}

@keyframes lilyWindStreak {
  from {
    transform: translateX(-30vw);
  }
  to {
    transform: translateX(126vw);
  }
}

@keyframes lilyPluckFlower {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(var(--head-tilt));
  }
  22% {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1.16) rotate(calc(var(--head-tilt) - 10deg));
  }
  58% {
    opacity: 0.82;
    transform: translateX(-50%) translateY(-42px) scale(0.9) rotate(calc(var(--head-tilt) + 22deg));
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-112px) scale(0.16) rotate(calc(var(--head-tilt) + 340deg));
  }
}

@keyframes lilyRegrowFlower {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(44px) scale(0.12) rotate(var(--head-tilt));
  }
  55% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px) scale(1.14) rotate(calc(var(--head-tilt) - 4deg));
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(var(--head-tilt));
  }
}

@keyframes lilyPluckMessage {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(28px) scale(0.86);
  }
  14%, 82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.94);
  }
}

@keyframes lilyPetalScatter {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.78);
  }
  22% {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx-start)), calc(-50% + var(--ty-start))) rotate(80deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--spin)) scale(0.62);
  }
}

@keyframes lilyBreezePetal {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.74);
  }
  12% {
    opacity: 0.9;
  }
  74% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--breeze-drift), var(--breeze-float), 0) rotate(var(--breeze-spin)) scale(0.58);
  }
}

@keyframes lilyPluckGlow {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

@keyframes lilyWaterDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--fall-angle, 0deg) + 45deg)) scale(calc(var(--drop-scale, 1) * 0.54));
  }
  12% {
    opacity: 1;
    transform: translate(calc(-50% + var(--drift, 0px) * 0.12), calc(-50% + var(--fall-distance, 120px) * 0.12)) rotate(calc(var(--fall-angle, 0deg) + 45deg)) scale(var(--drop-scale, 1));
  }
  100% {
    opacity: 0.14;
    transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% + var(--fall-distance, 120px))) rotate(calc(var(--fall-angle, 0deg) + 45deg)) scale(calc(var(--drop-scale, 1) * 0.74));
  }
}

@keyframes lilyWaterStream {
  0% {
    opacity: 0;
    transform: translateX(-50%) rotate(var(--stream-angle, 0deg)) scaleY(0);
  }
  18%, 72% {
    opacity: 0.88;
    transform: translateX(-50%) rotate(var(--stream-angle, 0deg)) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) rotate(var(--stream-angle, 0deg)) scaleY(0.18);
  }
}

@keyframes lilyWaterRipple {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
}

@keyframes lilyWaterSplash {
  0% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, -18px))) scale(0.3);
  }
}

@keyframes lilyWateringCanTilt {
  0% {
    opacity: 0;
    transform: translate(-8%, -136%) scale(0.78);
  }
  18% {
    opacity: 1;
    transform: translate(-20%, -124%) scale(0.96);
  }
  34%, 68% {
    opacity: 1;
    transform: translate(-20%, -122%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-5%, -134%) scale(0.86);
  }
}

@keyframes lilyRainFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(12deg);
  }
  12%, 82% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate3d(-8vw, 112vh, 0) rotate(12deg);
  }
}

@keyframes lilyWeatherMist {
  0% {
    opacity: 0;
    transform: translate3d(-10%, 8px, 0) scaleX(0.94);
  }
  18% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.88;
    transform: translate3d(86%, -4px, 0) scaleX(1.08);
  }
  82% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(178%, 4px, 0) scaleX(0.98);
  }
}

@keyframes lilyMoonMote {
  0%, 100% {
    opacity: 0.12;
    transform: translateY(0) scale(0.84);
  }
  50% {
    opacity: 0.88;
    transform: translateY(-14px) scale(1.25);
  }
}

@keyframes lilyLightningFlash {
  0% { opacity: 0; }
  3% { opacity: 1; }
  6% { opacity: 0.15; }
  10% { opacity: 0.85; }
  15% { opacity: 0.05; }
  22% { opacity: 0.7; }
  30% { opacity: 0.02; }
  38% { opacity: 0.5; }
  50% { opacity: 0.01; }
  65% { opacity: 0.25; }
  80% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes lilySheetFlash {
  0% { opacity: 0; }
  8% { opacity: 1; }
  18% { opacity: 0; }
  30% { opacity: 0.6; }
  45% { opacity: 0; }
  60% { opacity: 0.3; }
  80% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes lilyBoltFlash {
  0% { opacity: 0; }
  3% { opacity: 1; }
  6% { opacity: 0.1; }
  10% { opacity: 0.9; }
  15% { opacity: 0; }
  22% { opacity: 0.6; }
  30% { opacity: 0; }
  38% { opacity: 0.3; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes lilyButterflyPath {
  0% {
    left: -10%;
    transform: translate(-50%, 10px) rotate(calc(var(--butterfly-tilt, 0deg) - 8deg));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  24% {
    transform: translate(-50%, var(--flutter-y1, -26px)) rotate(calc(var(--butterfly-tilt, 0deg) + 7deg));
  }
  35% {
    opacity: 0.96;
  }
  48% {
    transform: translate(-50%, var(--flutter-y2, -52px)) rotate(calc(var(--butterfly-tilt, 0deg) - 3deg));
  }
  68% {
    transform: translate(-50%, var(--flutter-y3, 30px)) rotate(calc(var(--butterfly-tilt, 0deg) + 9deg));
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 110%;
    transform: translate(-50%, -20px) rotate(calc(var(--butterfly-tilt, 0deg) - 5deg));
    opacity: 0;
  }
}

@keyframes lilyButterflyBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes lilyWingFlap {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.35);
  }
}

@keyframes lilyFireflyDrift {
  0%, 100% {
    transform: translate(0, 0);
  }
  38% {
    transform: translate(calc(var(--fly-dx, 24px) * 0.46), calc(var(--fly-dy, -18px) * -0.34));
  }
  72% {
    transform: translate(var(--fly-dx, 24px), var(--fly-dy, -18px));
  }
}

@keyframes lilyFireflyGlow {
  0%, 100% {
    opacity: 0.06;
    filter: blur(0.4px) saturate(0.9);
  }
  18% {
    opacity: 0.78;
    filter: blur(0) saturate(1.28);
  }
  42% {
    opacity: 0.22;
  }
  64% {
    opacity: 1;
    filter: blur(0) saturate(1.38);
  }
  84% {
    opacity: 0.12;
  }
}

@keyframes lilyCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lilyTypingBounce {
  0%, 80%, 100% {
    opacity: 0.5;
    transform: scale(0);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lilyMiniBloom {
  0%, 100% {
    clip-path: ellipse(76% 72% at 50% 50%);
    transform: translateX(-50%) translateY(0) rotate(-1deg) scale(0.96);
  }
  50% {
    clip-path: ellipse(76% 72% at 50% 50%);
    transform: translateX(-50%) translateY(-4px) rotate(1deg) scale(1);
  }
}

@media (max-width: 980px) {
  .lily-control-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "scene"
      "weather"
      "garden";
  }

  .lily-count {
    justify-self: start;
  }

  .lily-plant-drawer-grid {
    grid-template-columns: 1fr;
  }

  .lily-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .lily-hero {
    align-items: start;
    flex-direction: column;
  }

  .lily-field-card {
    min-height: 620px;
    border-radius: 22px;
  }

}

@media (max-width: 620px) {
  .lily-meadow-shell {
    width: min(100% - 1rem, 1180px);
    padding-bottom: 2rem;
  }

  .lily-hero h1 {
    font-size: clamp(2.6rem, 17vw, 4rem);
  }

  .lily-field-card {
    min-height: 560px;
  }

  .lily-chip,
  .lily-control {
    min-height: 38px;
    padding: 0.62rem 0.78rem;
    font-size: 0.86rem;
  }

  .lily-weather-toggle,
  .lily-garden-group .lily-actions {
    grid-template-columns: 1fr;
  }

  .lily-reset-control {
    grid-column: auto;
  }

  .lily-plant-drawer-header,
  .lily-plant-drawer-actions {
    align-items: start;
    flex-direction: column;
  }

  .lily-plant-options {
    grid-template-columns: 1fr;
  }

  .lily-plant-option {
    grid-template-columns: 34px 1fr;
  }

  .lily-plant-option img {
    width: 34px;
    height: 34px;
  }

  .lily-wish-field textarea {
    min-height: 92px;
  }

  .lily-showcase-grid {
    grid-template-columns: 1fr;
  }

  .lily-showcase-header {
    align-items: start;
    flex-direction: column;
  }

  .lily-showcase-card {
    grid-template-columns: 108px 1fr;
  }

  .lily-showcase-card.letter-open {
    min-height: 520px;
  }

  .lily-showcase-visual {
    height: 148px;
  }

  .mini-lily-stem {
    height: 78px;
  }

  .mini-lily-img {
    bottom: 74px;
    width: 70px;
    height: 70px;
  }

  .lily-letter-envelope {
    min-height: 142px;
  }

  .lily-envelope-preview {
    left: 0.75rem;
    right: 7rem;
    bottom: 0.72rem;
    padding: 0.32rem 0.48rem;
  }

  .lily-envelope-preview span {
    font-size: 0.82rem;
  }

  .lily-envelope-preview em {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .lily-envelope-hint {
    right: 0.7rem;
    bottom: 0.72rem;
    padding: 0.3rem 0.58rem;
    font-size: 0.66rem;
  }

  .lily-showcase-card.letter-open .lily-envelope-front {
    min-height: 350px;
  }

  .lily-letter-paper {
    left: 4%;
    right: 4%;
    padding: 0.82rem;
  }

  .lily-letter-title {
    font-size: 1.36rem;
  }

  .lily-letter-body {
    font-size: 1.1rem;
    line-height: 1.58;
  }

  .lily-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .lily-footer-count {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lily-main,
  .lily-stem,
  .lily-basal-leaf,
  .lily-stem-leaf,
  .lily-ground-blade,
  .lily-sun,
  .lily-sun-rays,
  .lily-mist,
  .lily-star,
  .lily-cloud,
  .lily-pollen,
  .lily-butterfly,
  .lily-butterfly svg,
  .lily-butterfly-wing,
  .lily-firefly,
  .mini-lily-img,
  .lily-showcase-card,
  .lily-envelope-flap,
  .lily-letter-paper,
  .lily-wax-seal,
  .lily-typing-indicator span,
  .lily-plucking .lily-flower-fold,
  .lily-regrowing .lily-flower-fold,
  .lily-pluck-message,
  .lily-pluck-petal,
  .lily-breeze-petal,
  .lily-pluck-glow,
  .lily-plant-preview,
  .lily-rain-drop,
  .lily-weather-mist,
  .lily-moon-mote,
  .lily-lightning-flash,
  .lily-sheet-lightning,
  .lily-lightning-bolt,
  .lily-bolt-line,
  .lily-water-drop,
  .lily-water-stream,
  .lily-water-ripple,
  .lily-water-splash,
  .lily-watering-can {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
