.seed-section {
  height: calc(var(--stage-height) * 2.75);
  background: radial-gradient(ellipse at top, #674526, #2b1d14 78%);
}

.seed-stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: var(--stage-height);
}

.seed-window {
  position: relative;
  width: min(100%, 680px, calc(var(--stage-height) * .62547));
  aspect-ratio: 992 / 1586;
  overflow: hidden;
  overflow: clip;
}

.seed-scene {
  position: absolute;
  inset: 0;
  transform-origin: 48% top;
}

.has-seed-picture .seed-scene {
  transform: translate3d(var(--picture-camera-x, 0%), var(--picture-camera-y, 0%), 0) scale(var(--picture-camera-scale, 1));
}

@media (prefers-reduced-motion: reduce) {
  .seed-section { height: var(--stage-height); }
  .has-seed-picture .seed-scene { transform: none; }
}

.seed-picture {
  display: block;
  width: 100%;
  height: auto;
}

.seed-options {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seed-target {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

.seed-target--roasted {
  left: 13.5%;
  top: 1.5%;
  width: 69%;
  height: 43.8%;
}

.seed-target--frozen {
  left: 11%;
  top: 45.3%;
  width: 73%;
  height: 49%;
}

.seed-target > span {
  margin: 1rem;
  padding: .65em .9em;
  border-radius: .65rem;
  background: #503323;
  color: var(--cream);
  font: 1rem / 1.25 var(--serif);
}

.has-seed-picture .seed-target > span {
  display: none;
}

.seed-target:focus-visible {
  outline: 3px solid #fff3d7;
  outline-offset: -5px;
}

@media (hover: hover) {
  .seed-target:hover { background: #fff3d710; }
}

.journey-scroll.has-seed-dialog {
  overflow-y: hidden;
}

.seed-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(calc(100% - 1rem), 535px);
  max-height: calc(100% - 1rem);
  margin: 0 auto;
  padding: 1.1rem clamp(.9rem, 4vw, 1.6rem) calc(1.15rem + env(safe-area-inset-bottom));
  border: 1px solid #d9c5a6;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  background: #f8f1e5;
  color: #3c291b;
  overscroll-behavior: contain;
}

.seed-dialog::backdrop {
  background: #21150b50;
}

.seed-dialog h2 {
  margin: 0 3rem .3rem 0;
  font: 400 clamp(1.2rem, 5.7vw, 1.65rem) / 1.14 var(--serif);
}

.seed-close {
  position: absolute;
  top: .6rem;
  right: .65rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ceb599;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 1.7rem / 1 var(--sans);
}

.seed-unit-price {
  color: #6a503a;
  font-size: 1rem;
}

.seed-unit-price strong {
  color: #3c291b;
}

.seed-calculation {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: end;
  margin-top: .9rem;
}

.seed-calculation-label {
  display: block;
  margin: 0 0 .25rem;
  font-size: .875rem;
  color: #634d37;
}

.seed-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #c1a887;
  border-radius: 99px;
}

.seed-quantity > span {
  min-width: 3.6rem;
  padding-inline: .25rem;
  text-align: center;
  font-size: .95rem;
  white-space: nowrap;
}

.seed-quantity button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eadbc4;
  color: inherit;
  font-size: 1.25rem;
}

.seed-quantity button:disabled {
  opacity: .45;
  cursor: default;
}

.seed-total {
  text-align: right;
}

.seed-total output {
  font: 400 clamp(1.1rem, 5vw, 1.55rem) / 1.2 var(--serif);
  white-space: nowrap;
}
