:root {
  --bg: #e7ece4;
  --card: #ffffff;
  --ink: #16201a;
  --soft: #78837b;
  --accent: #1f9d6b;
  --thirsty: #e39a1c;
  --dry: #d9482f;
  --water: #2f8fe6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 20% 0%, #f8fbf6, transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 16px;
}

.pl {
  --tone: var(--accent);
  position: relative;
  width: min(280px, 100%);
  padding: 14px 14px 13px;
  border-radius: 26px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(22, 32, 26, 0.06),
    0 2px 4px rgba(22, 32, 26, 0.05),
    0 20px 40px -18px rgba(22, 32, 26, 0.26),
    0 50px 80px -44px color-mix(in srgb, var(--tone) 60%, transparent);
  transition: box-shadow 0.8s ease;
}
.pl.is-thirsty { --tone: var(--thirsty); }
.pl.is-dry { --tone: var(--dry); }
.pl__head { display: flex; align-items: center; gap: 9px; }
.pl__leaf { flex: none; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, #ffffff); display: grid; place-items: center; }
.pl__leaf svg { width: 30px; height: 30px; overflow: visible; }
.leaf__stem { fill: none; stroke: #2c6e4f; stroke-width: 2; stroke-linecap: round; }
.leaf__blade { fill: var(--accent); }
.leaf__blade--b { fill: color-mix(in srgb, var(--accent) 72%, #b9f0d6); }
.leaf__vein { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.1; stroke-linecap: round; }
.pl__title { flex: 1; min-width: 0; }
.pl__title span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; color: var(--soft); }
.pl__title h1 { font-size: 18px; line-height: 22px; font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; }
.pl__state { flex: none; padding: 0 10px; border-radius: 99px; background: color-mix(in srgb, var(--tone) 14%, #ffffff); color: color-mix(in srgb, var(--tone) 80%, #000000); font-size: 11.5px; font-weight: 680; transition: background-color 0.6s ease, color 0.6s ease; }
.roll { display: block; height: 22px; line-height: 22px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }

.gauge { position: relative; margin: min(10px, 2.2vh) auto 0; width: min(190px, 100%, 44vh); }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; }
.gauge__trk { stroke: rgba(22, 32, 26, 0.08); stroke-width: 11; }
.gauge__arc { stroke: var(--tone); stroke-width: 11; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--tone) 45%, transparent)); transition: stroke 0.6s ease; }
.drops path { fill: var(--water); opacity: 0; }
.gauge__n { position: absolute; left: 0; right: 0; bottom: 6%; display: grid; justify-items: center; }
.gauge__n strong { font-size: min(40px, 9.6vh); line-height: 1; font-weight: 740; font-stretch: 110%; letter-spacing: -0.035em; }
.gauge__n small { font-size: 0.45em; font-weight: 680; margin-left: 1px; }
.gauge__n > span { margin-top: 3px; font-size: 11px; font-weight: 560; color: var(--soft); }

.pl__next { margin-top: min(8px, 1.8vh); text-align: center; font-size: 12px; font-weight: 600; color: var(--soft); height: 18px; line-height: 18px; }
.water { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: min(44px, 10.5vh); margin-top: min(9px, 2vh); border: 0; border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, var(--water) 88%, #ffffff), var(--water)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 18px -10px color-mix(in srgb, var(--water) 90%, #000000); color: #ffffff; font: inherit; font-size: 14px; font-weight: 660; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.water:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.water svg { width: 16px; height: 16px; }
.water path { fill: #ffffff; }
.water .roll { height: 20px; line-height: 20px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .pl { zoom: 1.25; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .pl { zoom: 1.7; }
}
