#app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.stage.is-peelable {
  cursor: pointer;
}
.stage.is-dragging {
  cursor: grabbing;
}
.scrim {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.scrim-top {
  top: 0;
  height: 30vh;
  background: linear-gradient(
    180deg,
    rgba(248, 246, 242, 0.94),
    rgba(248, 246, 242, 0.74) 45%,
    rgba(248, 246, 242, 0)
  );
}
.scrim-bottom {
  bottom: 0;
  height: 32vh;
  background: linear-gradient(
    0deg,
    rgba(244, 242, 238, 0.95),
    rgba(244, 242, 238, 0.7) 48%,
    rgba(244, 242, 238, 0)
  );
}
.ui {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 16px;
  pointer-events: none;
}
.ui {
  padding: calc(var(--safe-area-inset-top, 0px) + 18px) 18px
    calc(var(--safe-area-inset-bottom, 0px) + 16px) 18px;
}
@supports (padding-top: env(safe-area-inset-top)) {
  .ui {
    padding-top: calc(
      var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 18px
    );
    padding-bottom: calc(
      var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 16px
    );
  }
}
.brand,
.dock {
  position: relative;
}
.brand {
  max-width: 22rem;
}
.eyebrow {
  margin: 0 0 0.5em;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
}
.brand h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.1em;
  line-height: 1.05;
  color: var(--ink);
}
.lede {
  margin: 0.7em 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.dock > * + * {
  margin-top: 10px;
}
.hint {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  transition: opacity 0.4s ease;
}
.meter {
  display: flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.meter > * + * {
  margin-left: 0.7em;
}
.bar {
  width: 22vw;
  min-width: 96px;
  max-width: 168px;
  height: 3px;
  border-radius: 99px;
  background: rgba(90, 82, 72, 0.14);
  overflow: hidden;
}
.bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #9a8b7a, var(--shell));
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.count {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-faint);
  min-width: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}
.actions > * + * {
  margin-left: 8px;
}
.chip {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 0 1.05em;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 250, 0.86);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
@supports (
  (-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))
) {
  .chip {
    background: rgba(255, 253, 250, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.chip:active {
  transform: translateY(0);
}
.chip.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
}
.chip:focus {
  outline: 2px solid rgba(122, 110, 98, 0.55);
  outline-offset: 2px;
}
.chip:focus-visible {
  outline-offset: 3px;
}
@media (hover: hover) {
  .chip:hover {
    transform: translateY(-1px);
    border-color: rgba(122, 110, 98, 0.42);
  }
  .chip.ghost:hover {
    background: rgba(255, 253, 250, 0.7);
  }
}
.card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.4rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card[hidden] {
  display: none;
}
.card.is-on {
  opacity: 1;
}
.card-panel {
  pointer-events: auto;
  width: 21rem;
  max-width: 100%;
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #fafaf8, #edeae4);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 64px -30px rgba(42, 37, 32, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.8);
  text-align: center;
  transform: translateY(16px) scale(0.94);
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.card.is-on .card-panel {
  transform: none;
}
.card-eyebrow {
  margin: 0 0 0.5em;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
}
.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.card-line {
  margin: 0.6em 0 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.card-stats {
  display: grid;
  grid-template-columns: 33.33% 33.33% 33.33%;
  grid-gap: 0.7rem 0.6rem;
  margin: 1.15rem 0 0;
  padding: 0.95rem 0.3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.card-stats div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-stats dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.card-stats dd {
  margin: 0.25em 0 0;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.15rem;
  pointer-events: auto;
}
.chip.share {
  background: rgba(255, 36, 66, 0.1);
  border-color: rgba(255, 36, 66, 0.32);
  color: #d4183d;
}
@media (hover: hover) {
  .chip.share:hover {
    background: rgba(255, 36, 66, 0.16);
    border-color: rgba(255, 36, 66, 0.45);
  }
}
.loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 30%, #ffffff, var(--cream));
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  transition:
    opacity 0.5s ease,
    visibility 0s linear 0.5s;
}
.loader > * + * {
  margin-left: 0.4em;
}
.loader.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dots {
  display: inline-flex;
}
.dots i {
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--shell);
  opacity: 0.35;
  animation: dot 1.2s ease-in-out infinite;
}
.dots i + i {
  margin-left: 0.28em;
}
.dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.dots i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes dot {
  0%,
  to {
    opacity: 0.28;
    transform: translateY(0);
  }
  45% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.fallback:not([hidden]) {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
  background: var(--cream);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (min-width: 480px) {
  .brand h1 {
    font-size: 2.6rem;
  }
  .eyebrow {
    font-size: 0.68rem;
  }
  .lede {
    font-size: 0.88rem;
  }
  .card-title {
    font-size: 1.7rem;
  }
}
@media (min-width: 900px) {
  .ui {
    padding-left: 40px;
    padding-right: 40px;
  }
  .ui {
    padding-top: calc(var(--safe-area-inset-top, 0px) + 34px);
    padding-bottom: calc(var(--safe-area-inset-bottom, 0px) + 26px);
  }
  .brand h1 {
    font-size: 3.2rem;
  }
  .eyebrow {
    font-size: 0.72rem;
  }
  .lede {
    font-size: 0.94rem;
  }
  .hint {
    font-size: 0.82rem;
  }
  .loader {
    font-size: 1.05rem;
  }
  .card-title {
    font-size: 1.85rem;
  }
}
@media (max-width: 560px) {
  .brand {
    max-width: none;
    text-align: center;
  }
  .lede {
    margin-top: 0.5em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dots i {
    animation: none;
    opacity: 0.6;
  }
  .chip,
  .bar i,
  .hint {
    transition: none;
  }
}
