:root {
  --bg: #090b08;
  --card: #12160f;
  --ink: #f1f3ea;
  --soft: rgba(241, 243, 234, 0.52);
  --line: rgba(241, 243, 234, 0.09);
  --accent: #e6d44c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: 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;
}

.po {
  position: relative;
  width: min(336px, 100%);
  padding: 14px 15px 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, #181d14 0%, var(--card) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px -30px color-mix(in srgb, var(--accent) 34%, transparent);
  isolation: isolate;
  overflow: clip;
}
/* the air of the card: the grains drift behind the text */
.po__air { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: inherit; pointer-events: none; }
.po__head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.po__title { font-size: 15px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.008em; }
.po__place { font-size: 11.5px; font-weight: 600; color: var(--soft); }

.po__read { display: grid; gap: 1px; margin-top: 4px; }
.po__level {
  display: block;
  height: clamp(36px, 11vh, 46px);
  overflow: hidden;
  font-size: clamp(32px, 10vh, 42px);
  line-height: clamp(36px, 11vh, 46px);
  letter-spacing: -0.03em;
  font-variation-settings: "wght" var(--w, 600), "wdth" var(--d, 100);
  color: var(--accent);
}
.po__level span { display: block; white-space: nowrap; }
.po__main { display: block; height: 17px; overflow: hidden; font-size: 12.5px; line-height: 17px; font-weight: 560; color: var(--soft); }
.po__main span { display: block; white-space: nowrap; }

/* three kinds of pollen, five steps each */
.po__rows { display: grid; gap: clamp(5px, 1.700vh, 8px); margin-top: clamp(8px, 2.600vh, 13px); }
.kind { display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; align-items: center; column-gap: 8px; }
.kind__name { font-size: 12px; font-weight: 600; }
.kind__meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.kind__meter i { display: block; height: 8px; border-radius: 4px; background: rgba(241, 243, 234, 0.1); }
.kind__meter i b { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); opacity: 0; }
.kind__num { font-size: 12px; font-weight: 660; text-align: right; color: var(--soft); transition: color 0.3s ease; }
.kind.is-main .kind__num { color: var(--accent); }

.po__days { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(9px, 2.800vh, 14px); padding: 3px; border-radius: 15px; background: rgba(241, 243, 234, 0.055); }
.po__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 5); pointer-events: none; }
.po__pick i { display: block; width: 100%; height: 100%; border-radius: 12px; background: rgba(241, 243, 234, 0.13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.pd {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  height: clamp(40px, 11.500vh, 46px);
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--soft);
  font: inherit;
  font-size: 11.5px;
  font-weight: 620;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.25s ease;
}
.pd[aria-checked="true"] { color: var(--ink); }
.pd:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
/* the day's three levels in small, so the week reads at a glance */
.pd__mini { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.pd__mini i { display: block; width: 3px; border-radius: 1.5px; background: currentColor; opacity: 0.55; transition: opacity 0.25s ease, background-color 0.25s ease; }
.pd[aria-checked="true"] .pd__mini i { background: var(--accent); opacity: 1; }

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

@media (hover: hover) {
  .pd:hover { color: var(--ink); }
}
/* larger in a roomy window, so the preview is not a small card in a big page */
@media (min-width: 700px) and (min-height: 500px) { .po { zoom: 1.45; } .ghost { width: 28px; height: 28px; } }
@media (min-width: 1100px) and (min-height: 760px) { .po { zoom: 2.15; } .ghost { width: 34px; height: 34px; } }
