/* Veira art (vm-art.js): drawn plates and products that act out an answer, and the glue-through-the-day ruler. */
.va {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.va .a-plate,
.va .a-tube,
.va .a-shake,
.va .a-peel,
.va .a-q {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
/* one-shot moves when the answer is tapped */
.va.go .a-plate {
  animation: va-loose 0.7s cubic-bezier(0.3, 0, 0.2, 1);
}
.va.go .a-up {
  animation: va-drop 0.7s cubic-bezier(0.3, 0, 0.2, 1);
}
.va.go .a-dn {
  animation: va-loose 0.7s cubic-bezier(0.3, 0, 0.2, 1) 0.08s;
}
@keyframes va-loose {
  0% {
    transform: none;
  }
  22% {
    transform: translateY(-4px) rotate(-9deg);
  }
  48% {
    transform: translateY(1px) rotate(7deg);
  }
  72% {
    transform: rotate(-3deg);
  }
  100% {
    transform: none;
  }
}
@keyframes va-drop {
  0% {
    transform: none;
  }
  30% {
    transform: translateY(5px) rotate(6deg);
  }
  60% {
    transform: translateY(2px) rotate(-4deg);
  }
  100% {
    transform: none;
  }
}
.va.go .a-tube {
  animation: va-squeeze 0.7s cubic-bezier(0.3, 0, 0.2, 1);
}
@keyframes va-squeeze {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: scale(0.86, 1.12);
  }
}
.va .a-ribbon {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}
.va.go .a-ribbon {
  animation: va-ribbon 0.7s ease-out;
}
@keyframes va-ribbon {
  0% {
    stroke-dashoffset: 30;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.va.go .a-shake {
  animation: va-shake 0.7s ease-in-out;
}
@keyframes va-shake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: rotate(-24deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(-26deg);
  }
  80% {
    transform: rotate(-12deg);
  }
}
.va .a-dust circle {
  opacity: 0;
}
.va.go .a-dust circle {
  animation: va-dust 0.8s ease-in both;
}
.va.go .a-dust circle:nth-child(2) {
  animation-delay: 0.12s;
}
.va.go .a-dust circle:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes va-dust {
  0% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}
.va .a-peel {
  transform-origin: 12% 50%;
}
.va.go .a-peel {
  animation: va-peel 0.75s cubic-bezier(0.3, 0, 0.2, 1);
}
@keyframes va-peel {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: rotate(-16deg) translateY(-3px);
  }
}
.va.go .a-q {
  animation: va-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes va-pop {
  0% {
    transform: scale(0.2);
  }
  100% {
    transform: none;
  }
}

/* glue through the day */
.va-day {
  position: relative;
  margin: 2px 0 14px;
}
.va-day svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.va-day .dt-t {
  font:
    700 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.06em;
  fill: #5d6858;
}
.va-day .dt-m {
  font:
    700 13px Fustat,
    Arial,
    sans-serif;
  fill: #3d4a3f;
  text-anchor: middle;
}
.va-day .dt-bad {
  fill: #d6452f;
  opacity: 0.9;
}
.va-day.trust .dt-bad {
  fill: #e9a23b;
  opacity: 0.75;
}
.va-day .dt-x {
  font:
    900 14px "Figtree",
    system-ui,
    sans-serif;
  fill: #fff;
  text-anchor: middle;
}
.va-day .dt-chip {
  position: absolute;
  top: 2%;
  transform: translate(-50%, 6px);
  padding: 6px 10px;
  border-radius: 99px;
  background: #d6452f;
  color: #fff;
  font:
    800 13px / 1 "Figtree",
    system-ui,
    sans-serif;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.va-day .dt-chip.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.va-day .dt-end {
  text-anchor: end;
}
/* survey answers under a day ruler */
.va-stats .vs-rows {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.va-stats .vs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2ded2;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.va-stats .vs-row b {
  flex: none;
  min-width: 3.1em;
  font-size: 22px;
  line-height: 1;
  color: #d6452f;
}
.va-stats .vs-row span {
  font-size: 15px;
  line-height: 1.3;
}
.va-stats .vs-row[aria-pressed="true"] {
  border-color: #d6452f;
  background: #fff4f1;
}
/* a week of meals */
.va-week {
  cursor: pointer;
}
.va-week .wk-d {
  font-size: 15px;
}
.va-week .wk-good {
  fill: #86c93a;
}
.va-week .dt-chip {
  background: #2f8a3a;
}
/* the pack as tubes */
.va-tubes .vt-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.va-tubes .vt-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.va-tubes .vt-tube {
  display: block;
  height: 92px;
  opacity: 0.2;
  filter: grayscale(1);
  transition:
    opacity 0.25s,
    filter 0.25s;
}
.va-tubes .vt-tube img {
  display: block;
  width: auto;
  height: 100%;
}
.va-tubes .vt-slot em {
  font:
    700 12px / 1 Fustat,
    Arial,
    sans-serif;
  font-style: normal;
  color: #a7ab9f;
}
.va-tubes .vt-slot.on .vt-tube {
  opacity: 1;
  filter: none;
}
.va-tubes .vt-slot.on em {
  color: #1d2b17;
}
.va-tubes .vt-slot.in .vt-tube {
  animation: vt-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d, 0ms) backwards;
}
@keyframes vt-in {
  0% {
    transform: translateY(-26px);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.va-tubes .vt-cap {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
/* a price or count lands */
.va-land {
  display: inline-block;
  animation: va-land 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes va-land {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }
  60% {
    transform: translateY(2px);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}
/* the drawer */
.va-drawer svg,
.va-ridge svg,
.va-purse svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.va-drawer .dr-it .dr-fall {
  opacity: 0;
  transform: translateY(-130px);
}
.va-drawer .dr-it.on .dr-fall {
  opacity: 1;
  transform: none;
  transition:
    transform 0.42s cubic-bezier(0.5, 0, 0.75, 0),
    opacity 0.1s;
}
.dr-row {
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.dr-row:not(.dr-on) {
  opacity: 0.25;
}
.dr-row.dr-on {
  opacity: 1;
  animation: dr-row 0.4s ease-out;
}
@keyframes dr-row {
  0% {
    transform: translateX(-10px);
  }
  100% {
    transform: none;
  }
}
/* the ridge */
.va-ridge .vr-cap {
  display: block;
  min-height: 2.7em;
  margin: 8px 6px 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}
/* the purse */
.va-purse .pu-tin {
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.7, 1);
}
.va-purse.shut .pu-tin {
  transform: translateY(62px);
}
.va-purse.shut .pu-t:nth-of-type(2) .pu-tin {
  transition-delay: 0.2s;
}
.va-purse.shut .pu-t:nth-of-type(3) .pu-tin {
  transition-delay: 0.4s;
}
.va-purse .pu-flap,
.va-purse .pu-clasp {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 1s;
}
.va-purse.shut .pu-flap,
.va-purse.shut .pu-clasp {
  transform: none;
}
.va-purse.now * {
  transition: none !important;
}
.va-purse .pu-ok {
  transition: opacity 0.3s;
}
/* bars */
.va-bars .vb-bar {
  height: 16px;
  border-radius: 8px;
  background: #ece8de;
  overflow: hidden;
}
.va-bars .vb-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--c, #d6452f);
  transition: width 1.1s cubic-bezier(0.3, 0, 0.2, 1);
}
.va-bars.on .vb-bar i {
  width: var(--w);
}
/* the time bar: a clock label rides the end of the bar */
.va-day .dt-tt {
  font:
    800 12px "Figtree",
    system-ui,
    sans-serif;
  fill: #fff;
  text-anchor: middle;
}
.va-day .mk-plate {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.va-day.trust .mk-plate {
  animation: dt-wob 0.55s ease-in-out infinite;
}
@keyframes dt-wob {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
/* how it works, every step in a list */
.va-how {
  padding: 8px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 0 #e5e2d8,
    0 8px 22px rgba(0, 0, 0, 0.06);
}
.va-how .vh-list {
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}
.va-how .vh-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.va-how .vh-row + .vh-row {
  border-top: 1px solid #ece8dc;
}
.va-how .vh-pic {
  position: relative;
  flex: 0 0 116px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #faf8f2;
}
.va-how .vh-pic .vsc {
  width: 100%;
}
.va-how .vh-img {
  width: auto;
  height: 82px;
  object-fit: contain;
  transform: rotate(-8deg);
}
.va-how .vh-n {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2f6b1f;
  color: #fff;
  font:
    800 14px / 1 "Figtree",
    system-ui,
    sans-serif;
}
.va-how .vh-t {
  margin: 0;
  font-size: 17px;
  line-height: 1.38;
}
@media (prefers-reduced-motion: reduce) {
  .va.go *,
  .va-land,
  .dr-row.dr-on,
  .va-tubes .vt-slot.in .vt-tube {
    animation: none !important;
  }
  .va-bars .vb-bar i,
  .va-drawer .dr-it.on .dr-fall {
    transition: none !important;
  }
}
