* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--background, #f4f0e7);
  color: var(--ink, #193e36);
  font-family: var(--font, sans-serif);
  font-weight: var(--copy-weight, 400);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
#garden {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
#intro {
  position: absolute;
  z-index: 40;
  top: var(--intro-y, 20%);
  transform: translateX(calc(var(--intro-x, 0) * 100%));
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 22px;
  opacity: 0.7;
}
h1 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
}
#labels {
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.label {
  position: absolute;
  margin: 0;
  font-size: var(--label-size);
  letter-spacing: 0.05em;
  line-height: var(--copy-line-height);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}
.word-drop {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 27px;
  height: 31px;
  color: var(--water);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.word-drop::before {
  display: none;
  content: "";
  position: absolute;
  inset: 1px 2px 3px;
  z-index: -1;
  border-radius: 52% 48% 58% 42% / 58% 48% 52% 42%;
  background: var(--water);
  transform: rotate(18deg);
}
.stage-label {
  max-width: calc(100vw - 24px);
  white-space: normal;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--background) 78%, transparent);
}
#stage-caption {
  position: absolute;
  top: var(--caption-y, 33%);
  transform: translateX(calc(var(--caption-x, 0) * 100%));
  left: 16px;
  right: 16px;
  margin: 0;
  z-index: 35;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.8;
  pointer-events: none;
}
#water-button {
  position: absolute;
  z-index: 45;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: none;
}
#water-button:disabled {
  cursor: default;
}
#final {
  position: absolute;
  top: var(--final-y);
  left: 16px;
  right: 16px;
  z-index: 50;
  pointer-events: none;
  text-align: center;
  opacity: var(--copy-opacity);
}
#final p {
  opacity: 0;
  margin: 0;
  line-height: var(--copy-line-height);
}
#growth {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: var(--growth-size);
}
#thanks {
  font-size: var(--thanks-size);
}
#final.inline-bouquet #growth {
  position: relative;
  font-size: clamp(21px, 5.6vw, 30px);
}
#final.inline-bouquet #greeting {
  font-size: clamp(16px, 4.2vw, 22px);
}
#creator-credit {
  position: absolute;
  bottom: max(6px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--ink);
  opacity: 0.42;
  font-size: 10px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
}
#greeting {
  white-space: pre-line;
  font-size: var(--greeting-size);
  margin-top: 13px !important;
}
#save-card,
#restart {
  position: absolute;
  z-index: 60;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: 18px;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 12px;
  border: 0;
  background: none;
}
button:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dialog {
  max-width: 90vw;
  max-height: 90dvh;
  border: 0;
  padding: 16px;
  color: var(--ink);
  text-align: center;
}
dialog img {
  display: block;
  max-height: 65dvh;
  max-width: 75vw;
}
dialog button {
  padding: 12px;
  border: 0;
  background: none;
}
dialog::backdrop {
  background: #103e2c99;
}
@media (max-height: 500px) and (min-width: 600px) {
  #intro,
  #final,
  #stage-caption {
    left: 3%;
    width: 26%;
    right: auto;
  }
  #thanks {
    font-size: 20px;
  }
  #greeting {
    font-size: 13px;
  }
}
