/* Load after hero.css. Typography and button dimensions stay in hero.css. */
.droplet {
  border-radius: 999px;
  background: transparent;
}

.droplet .droplet-surface {
  border-radius: 999px;
  background: transparent;
  box-shadow:
    inset 0 .7px .8px rgb(255 255 255 / .78),
    inset 0 -1px 1px rgb(62 73 48 / .20),
    0 1.5px 1.8px rgb(70 77 48 / .09);
  overflow: hidden;
}

.droplet .refracted-paper { display: none; }

.droplet .water-refraction {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

/* Keep a visible fine rim above the sampled paper, without a milky fill. */
.droplet .droplet-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 .7px .8px rgb(255 255 255 / .78),
    inset 0 -1px 1px rgb(62 73 48 / .20);
  pointer-events: none;
}

.droplet .droplet-highlight {
  z-index: 1;
  left: 8%;
  top: 11%;
  width: 9%;
  max-width: 30px;
  height: 10px;
  border-top: 2px solid #fff;
  border-radius: 65% 75% 0 0;
  background: transparent;
  transform: rotate(-20deg);
  filter: none;
  pointer-events: none;
}

.droplet .droplet-highlight::after {
  left: 18%;
  top: -3px;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.droplet .droplet-edge {
  z-index: 1;
  left: 31%;
  right: 17%;
  bottom: 2.5%;
  height: 3%;
  background: radial-gradient(ellipse, rgb(61 75 45 / .22), transparent 72%);
  pointer-events: none;
}

.droplet::after {
  left: 40%;
  right: 22%;
  bottom: -2px;
  height: 2px;
  background: radial-gradient(ellipse, rgb(255 254 240 / .60), transparent 73%);
  filter: blur(.65px);
}

/* CSS-only fallback remains clear when the texture cannot be sampled. */
.droplet:not([data-water-ready]) .water-refraction { visibility: hidden; }

@media (forced-colors: active) {
  .droplet { border: 1px solid ButtonText; }
  .droplet .droplet-surface, .droplet::after { display: none; }
}
