:root {
  font:
    600 16px/1.4 "Avenir Next",
    "Trebuchet MS",
    sans-serif;
  color: #334238;
  background: #f4edda;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top right, #fce5b8, transparent 50%), #f6f0e2;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid #873681;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.12;
}
.app {
  max-width: 1330px;
  margin: auto;
  padding: clamp(12px, 2.5vw, 36px);
}
.topbar {
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(25px, 4.4vw, 50px);
  letter-spacing: -0.055em;
  color: #30492e;
}
.home-link {
  border: 1px solid #b7bea1;
  border-radius: 50%;
  color: #3b4d36;
  box-shadow: none;
  background: #fff9e8;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #725420;
  background: #fff8d9;
  padding: 8px 15px;
  border: 1px solid #dfc481;
  border-radius: 50px;
  font-size: 13px;
}
.wallet span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #efb838;
  color: #86560c;
}
.wallet strong {
  font-size: 19px;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 23%, 300px);
  align-items: start;
  gap: clamp(14px, 2.2vw, 32px);
}
.scene-panel {
  overflow: hidden;
  border: 1px solid #ded1b2;
  border-radius: 19px;
  background: #fffbf0;
  box-shadow: 0 8px 22px #50381213;
}
.scene-title,
.scene-foot {
  padding: 12px 18px;
}
.scene-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scene-title h2 {
  font-size: clamp(19px, 2.4vw, 31px);
  font-weight: 500;
}
.scene-title span {
  font-size: 12px;
  color: #697159;
}
.stage {
  position: relative;
  aspect-ratio: 1.54;
  isolation: isolate;
  overflow: hidden;
  background: #a7bc65 var(--meadow, url(art/meadow.webp)) center/100% 100%
    no-repeat;
  user-select: none;
}
.stage:not([data-phase="meadow"]) {
  background-image: url(art/courtyard.webp);
}
#landscape,
.objects,
.effects {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scene-object,
.light {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  padding: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.scene-object:focus-visible,
.light:focus-visible {
  border-radius: 45%;
}
.flower {
  touch-action: none;
  width: 8.4%;
  height: 17%;
  min-width: 42px;
  min-height: 45px;
  z-index: 1;
}
.flower::after {
  content: "";
  position: absolute;
  bottom: 1%;
  left: 18%;
  width: 64%;
  height: 9%;
  border-radius: 50%;
  background: #34481744;
  z-index: -1;
}
.flower img,
.player img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flower img {
  transform-origin: 50% 95%;
  transition: transform 0.2s;
  filter: drop-shadow(1px 2px 1px #30481190);
}
.flower:hover img {
  transform: rotate(-6deg) scale(1.09);
}
.flower.collected {
  animation: pluck 0.32s ease-out forwards;
  pointer-events: none;
}
.player {
  z-index: 2;
  position: absolute;
  width: 11%;
  height: 25%;
  transform: translate(-50%, -90%);
  pointer-events: none;
  transition:
    left 0.5s ease,
    top 0.5s ease;
  filter: drop-shadow(1px 2px 1px #30481166);
}
.player.star {
  width: 17%;
  height: 34%;
  filter: drop-shadow(0 0 9px #fff0a1);
}
.effects {
  z-index: 4;
}
.effect {
  position: absolute;
  color: #fff8c9;
  text-shadow: 0 2px 4px #4b3519;
  font-size: clamp(17px, 2vw, 29px);
  animation: lift 1.1s forwards;
  transform: translate(-50%, -50%);
  font-weight: 900;
}
.home {
  color: #3e4b2e;
  border: 1px solid #d6bd76;
  background: #fff5d8;
  box-shadow: 1px 3px 3px #57482744;
  border-radius: 18px;
  font-size: clamp(11px, 1.5vw, 17px);
  padding: 5px 12px;
}
.scene-foot {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-size: clamp(13px, 1.4vw, 17px);
}
.guide {
  padding: 8px 0;
}
.journey {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.journey span {
  font-size: 12px;
  color: #626855;
}
.journey [aria-current] {
  border-bottom: 3px solid #c27b26;
  color: #32563c;
  font-weight: 900;
}
.journey i {
  color: #ab9d81;
  font-style: normal;
}
.guide > h2 {
  font-size: clamp(24px, 2.8vw, 37px);
  letter-spacing: -0.035em;
}
.guide > p {
  margin: 8px 0 16px;
  color: #546052;
  font-size: 14px;
}
.recipe-card {
  padding: 15px 12px 12px;
  border-radius: 4px;
  background: #fff9df;
  box-shadow: 0 3px 0 #cdbf943d;
  border: 1px solid #dfd0a4;
  position: relative;
  overflow: hidden;
}
.recipe-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d8a241;
}
.recipe-card h3 {
  font-size: 20px;
}
.recipe-card p {
  font-size: 12px;
  color: #626647;
}
#recipe {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 8px 0;
}
.ingredient {
  flex: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 4px;
  border-radius: 9px;
  background: #f1e9cf;
  font-size: 11px;
  text-align: center;
}
.ingredient img {
  width: 32px;
  height: 40px;
  object-fit: contain;
}
.ingredient.done {
  background: #d4e6c5;
}
.ingredient b {
  font-size: 13px;
}
.primary {
  display: block;
  width: 100%;
  color: #fff9df;
  background: #355c40;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 0 #25422c;
  margin: 15px 0;
  padding: 13px 9px;
  font-weight: 800;
}
.primary:hover:enabled {
  background: #426f4e;
}
.primary:disabled {
  background: #dddcca;
  color: #666956;
  box-shadow: none;
}
.garden {
  padding: 12px 0 0;
  border-top: 1px solid #dfd2b8;
  font-size: 12px;
}
.garden progress {
  width: 100%;
  height: 8px;
  accent-color: #8c9c5d;
}
.garden p {
  color: #626855;
}
.restart {
  padding: 10px 0;
  margin-top: 8px;
  background: none;
  border: none;
  font-size: 12px;
  color: #57604f;
}
.light {
  display: grid;
  place-items: center;
  width: clamp(39px, 5.9vw, 63px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #f5dc91;
  background: #122f39ad;
  border: 2px solid #ffe6a1a6;
  font: 900 clamp(17px, 2.1vw, 27px) Georgia;
  touch-action: none;
}
.light.current {
  background: #fff1b5;
  border-color: #fff8d7;
  color: #614825;
  box-shadow:
    0 0 0 5px #ffdd7660,
    0 0 20px #f9dc8a;
  animation: pulse 1.3s ease-in-out infinite alternate;
}
.light.lit {
  background: #fde4a1;
  color: #755922;
  border-color: #fde4a1;
}
.rock {
  display: grid;
  place-items: center;
  min-width: 43px;
  width: 10%;
  aspect-ratio: 1;
  touch-action: none;
  z-index: 3;
}
.rock img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px #48372366);
}
.sigil {
  position: relative;
  display: grid;
  place-items: center;
  color: #493923;
  background: #fff3d7e8;
  border: 1px solid #e6cea3;
  border-radius: 50%;
  width: 43%;
  aspect-ratio: 1;
  font: 800 clamp(16px, 2.1vw, 30px) / 1 Georgia;
  pointer-events: none;
}
.rock.dragging {
  z-index: 5;
  cursor: grabbing;
}
.rock.used {
  transition:
    left 0.3s,
    top 0.3s,
    opacity 0.2s 0.2s;
  opacity: 0;
}
.rock.bump {
  animation: shake 0.3s;
}
.jar-line {
  font-size: 20px;
  letter-spacing: 3px;
  color: #ad7031;
}
.fire-clue {
  position: absolute;
  left: 66%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: #fff6d9;
  color: #594623;
  border-radius: 18px;
  padding: 3px 12px;
  box-shadow: 0 3px 6px #2f362a55;
  font-size: clamp(13px, 1.8vw, 23px);
  pointer-events: none;
}
.fire-clue:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 45%;
  border: 5px solid transparent;
  border-top-color: #fff6d9;
}
.celebration {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #3b2c1666;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8%;
  color: #fff9de;
  isolation: isolate;
}
.celebration:before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  border-radius: 20px;
  background: #fff6dd;
  box-shadow: 0 8px 40px #27270f55;
  z-index: -1;
}
.celebration h2 {
  font-size: clamp(24px, 4vw, 48px);
  color: #72512d;
}
.celebration p {
  color: #605b45;
  font-size: clamp(12px, 1.3vw, 16px);
  max-width: 74%;
  margin: 4px;
}
.celebration .primary {
  align-self: center;
  width: auto;
  padding: 10px 22px;
  margin: 10px 0 0;
}
#jars {
  display: flex;
  height: 17%;
  min-height: 31px;
  align-items: center;
}
#jars img {
  width: auto;
  height: 100%;
  object-fit: contain;
  margin: 0 3px;
}
@keyframes lift {
  to {
    opacity: 0;
    translate: 0 -42px;
  }
}
@keyframes pluck {
  to {
    opacity: 0;
    translate: 0 -10px;
    scale: 0.5;
  }
}
@keyframes shake {
  30% {
    translate: -5px;
  }
  70% {
    translate: 5px;
  }
}
@keyframes pulse {
  to {
    box-shadow:
      0 0 0 8px #ffdd762a,
      0 0 22px #f9dc8a;
  }
}
@media (max-width: 760px) {
  .app {
    padding: 10px;
  }
  .app .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
  }
  .app .topbar > .wallet:last-child {
    grid-column: auto;
    justify-self: end;
    padding: 4px 8px;
    font-size: 11px;
  }
  .home-link {
    width: 38px;
    height: 38px;
  }
  .wallet strong {
    font-size: 16px;
  }
  .wallet span {
    width: 18px;
    height: 18px;
  }
  .play-layout {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .scene-title,
  .scene-foot {
    padding: 8px 12px;
  }
  .stage {
    aspect-ratio: 1.35;
  }
  .scene-foot {
    min-height: 46px;
  }
  .guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px 12px;
    padding: 7px;
  }
  .journey {
    grid-column: 1/-1;
    justify-content: start;
    gap: 12px;
    margin-bottom: 5px;
  }
  .guide > h2,
  .guide > p {
    grid-column: 1;
  }
  .guide > p {
    margin: 0;
    font-size: 13px;
  }
  .recipe-card {
    grid-column: 2;
    grid-row: 2/5;
    padding: 8px;
  }
  .recipe-card h3 {
    font-size: 16px;
  }
  .ingredient {
    padding: 3px 1px;
  }
  .ingredient .flower-name {
    display: none;
  }
  .ingredient img {
    height: 28px;
  }
  .primary {
    margin: 7px 0;
    align-self: start;
  }
  .garden {
    grid-column: 1/-1;
  }
  .restart {
    justify-self: start;
    margin: 0;
  }
  .celebration:before {
    inset: 5% 7%;
  }
}
@media (max-width: 370px) {
  .app .topbar {
    gap: 5px;
  }
  h1 {
    font-size: 21px;
  }
  .wallet span {
    display: none;
  }
  .flower {
    min-width: 36px;
  }
  .light {
    width: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 400px) {
  .app .topbar h1 {
    font-size: clamp(20px, 6.25vw, 25px);
  }
  .app .topbar > .wallet:last-child {
    gap: 4px;
    padding: 4px 6px;
  }
  .wallet span {
    width: 15px;
    height: 15px;
  }
}
.stage[data-phase="star"] {
  background-image: url(art/stargarden.webp);
}
.stage[data-phase="star"] .player {
  transition: none;
}
.garden progress {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: #dedac2;
}
.garden progress::-webkit-progress-bar {
  background: #dedac2;
  border-radius: 5px;
}
.garden progress::-webkit-progress-value {
  background: #718957;
  border-radius: 5px;
}
.garden progress::-moz-progress-bar {
  background: #718957;
  border-radius: 5px;
}
.field-recipe {
  display: none;
}
.stage[data-phase="meadow"] .field-recipe {
  position: absolute;
  z-index: 2;
  left: 2%;
  top: 2%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  background: #fff6dce8;
  border: 1px solid #d9be86;
  border-radius: 9px;
  box-shadow: 0 2px 4px #3b38203d;
  pointer-events: none;
}
.recipe-slot {
  width: clamp(20px, 3.4vw, 36px);
  height: clamp(23px, 4vw, 42px);
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed #a7a082;
  border-radius: 5px;
  background: #f9eed3;
}
.recipe-slot img {
  width: 78%;
  height: 88%;
  object-fit: contain;
}
.recipe-slot.filled {
  border: 1px solid #679460;
  background: #e3edc9;
}
.recipe-slot b {
  position: absolute;
  bottom: -4px;
  right: -4px;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  font: 900 9px/1 sans-serif;
  color: white;
  background: #45754d;
}

.garden-invite {
  color: #36533b;
  background: #edf0d1;
  border: 1px solid #acb780;
  border-radius: 15px;
  padding: 6px 12px;
  font-weight: 750;
}
.celebration .garden-invite {
  margin-top: 3px;
}
#garden-room {
  width: min(715px, 94vw);
  max-height: 94dvh;
  padding: 0;
  overflow-y: auto;
  background: #fff7e3;
  color: #38513e;
  border: 2px solid #c9b992;
  border-radius: 20px;
  box-shadow: 0 20px 100px #1c301c66;
}
#garden-room::backdrop {
  background: #192f24ac;
}
#garden-room header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 13px;
}
#garden-room h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(20px, 3vw, 32px);
}
#close-garden {
  width: 44px;
  height: 44px;
  border: 0;
  color: inherit;
  background: none;
  font-size: 20px;
}
#seed-bed {
  position: relative;
  aspect-ratio: 1.85;
  max-height: 53dvh;
  border-block: 1px solid #c8a77a;
  background: #b78b55 url(art/garden-bed.webp) center / 100% 100% no-repeat;
}
.planting-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #f9e3a9;
  font-size: 23px;
  font-weight: bold;
  width: 19%;
  height: 31%;
  min-height: 40px;
  cursor: pointer;
}
.planting-spot:before {
  content: "";
  position: absolute;
  bottom: 7%;
  left: 8%;
  right: 8%;
  height: 35%;
  border-radius: 50%;
  background: #69452ab5;
  box-shadow:
    inset 0 2px 2px #54361c94,
    0 1px 1px #d2a46f;
  z-index: -1;
}
.planting-spot span {
  align-self: end;
  line-height: 1.1;
  padding-bottom: 3%;
  text-shadow: 0 1px 2px #543419;
}
.planting-spot img {
  width: 80%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(1px 2px 1px #49301a44);
}
.seed-desk {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 9px 14px;
  gap: 4px 10px;
  align-items: center;
}
#seed-tin {
  display: flex;
  gap: 5px;
}
#seed-tin button {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: #354535;
  min-width: 45px;
  min-height: 43px;
  border: 1px solid #d0b78c;
  background: #fffaf0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
}
#seed-tin button[aria-pressed="true"] {
  border: 2px solid #537a4a;
  background: #e4edd1;
}
#seed-tin img {
  width: 25px;
  height: 32px;
  object-fit: contain;
}
#seed-tin button:disabled {
  opacity: 0.45;
}
#seed-message {
  margin: 3px 0;
  grid-column: 1/-1;
  font-size: 14px;
}
#garden-done {
  width: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 9px 14px;
}
@media (max-width: 550px) {
  .seed-desk {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }
  .seed-desk #seed-message {
    order: 3;
    width: 100%;
  }
  .seed-desk #garden-done {
    margin-left: auto;
    font-size: 12px;
  }
  .celebration {
    padding: 3%;
  }
  .celebration:before {
    inset: 3% 8%;
  }
  .celebration .primary {
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .planting-spot.freshly-planted img {
    transform-origin: 50% 90%;
    animation: garden-grow 0.86s ease-out;
  }
  @keyframes garden-grow {
    0% {
      transform: scale(0.12, 0.04);
      opacity: 0.25;
    }
    38% {
      transform: scale(0.6, 0.85) rotate(-5deg);
      opacity: 1;
    }
    69% {
      transform: scale(1.05, 1.11) rotate(3deg);
    }
    90% {
      transform: scale(0.98, 1.01) rotate(-1deg);
    }
  }
}

#play-sound {
  width: fit-content;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #c4b99f;
  color: #405748;
  background: #fff9e8;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#bee-help {
  cursor: pointer;
  position: absolute;
  left: 89%;
  top: 16%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  width: clamp(45px, 8.5%, 64px);
  height: clamp(44px, 11%, 57px);
  transition:
    left 0.63s ease-in-out,
    top 0.63s ease-in-out;
}
#bee-help img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #55492e77);
}
#bee-help span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid #a68c4b;
  background: #fff4cb;
  color: #454a36;
  font-size: 13px;
  font-weight: bold;
}
#bee-help.guiding {
  pointer-events: none;
  opacity: 1;
}
#bee-help.guiding span {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  #bee-help {
    transition: none;
  }
}

.scene-foot {
  gap: 9px;
}
.bouquet {
  width: 68px;
  height: 49px;
  flex: none;
  position: relative;
}
.bouquet img {
  object-fit: contain;
}
.basket-weave {
  position: absolute;
  left: 3%;
  top: 40%;
  width: 94%;
  height: 59%;
}
#bouquet-stems img {
  position: absolute;
  bottom: 27%;
  width: 28%;
  height: 68%;
  transform-origin: bottom center;
}
#bouquet-count:not(:empty) {
  position: absolute;
  bottom: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  line-height: 17px;
  text-align: center;
  background: #fff6d1;
  color: #3e4b34;
  border: 1px solid #af985e;
  border-radius: 50%;
  font-size: 11px;
}
.bloom-to-basket {
  position: fixed;
  z-index: 8;
  object-fit: contain;
  pointer-events: none;
}

#bouquet {
  border: 0;
  background: none;
  padding: 0;
  color: #3c5842;
}
#bouquet:disabled {
  opacity: 1;
}
.lift-bloom {
  position: absolute;
  left: 0;
  top: 3px;
  color: #445f45;
  font-size: 15px;
  font-weight: bold;
}
#bouquet:disabled .lift-bloom {
  display: none;
}

.stage[data-phase="sell"],
.stage[data-phase="complete"] {
  background-image: url(art/market.webp);
}
.stage[data-phase="sell"] #player {
  display: none;
}
.market-counter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding-bottom: 4.5%;
  gap: 1.5%;
}
#market-jars {
  height: 35%;
  width: 69%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4%;
}
.market-jar {
  border: 0;
  padding: 0;
  background: none;
  width: 28%;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: end;
}
.labeled-jar {
  position: relative;
  display: block;
  height: auto;
  max-height: 100%;
  aspect-ratio: 152 / 161;
  max-width: 100%;
  container-type: inline-size;
}
.market-jar .labeled-jar {
  width: 100%;
  filter: drop-shadow(1px 4px 2px #5833154d);
}
#jars .labeled-jar {
  height: 100%;
  margin: 0 3px;
}
#jars .labeled-jar img,
.market-jar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  margin: 0;
}
.jar-stamp {
  position: absolute;
  left: 61%;
  top: 65%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font:
    bold 28cqw/1 Georgia,
    serif;
  color: #74401f;
  text-shadow: 0 1px #fff6c1;
  pointer-events: none;
}
.market-jar:active {
  transform: translateY(2px);
}
#market-sale {
  font-weight: 800;
  background: #fff2c8;
  color: #583c28;
  border: 2px solid #966537;
  border-radius: 5px;
  box-shadow: 0 3px 0 #85572f;
  min-height: 37px;
  padding: 4px 12px;
}

.market-buyer {
  position: absolute;
  top: 11%;
  left: 28%;
  height: 43%;
  width: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#market-guest {
  height: 100%;
  width: 45%;
  object-fit: contain;
  object-position: center bottom;
}
.market-order {
  display: grid;
  justify-items: center;
  background: #fff2cd;
  color: #65412a;
  border: 1.5px solid #af7545;
  border-radius: 7px 9px 12px 2px;
  padding: 2% 4%;
  align-self: flex-start;
  margin-left: -3%;
  margin-top: 3.5%;
  box-shadow: 0 2px 1px #644b2b38;
}
.market-order strong {
  font-size: clamp(10px, 1.5vw, 15px);
}
.market-order span {
  font:
    bold clamp(22px, 3.2vw, 39px) / 1.06 Georgia,
    serif;
  white-space: pre;
}
.market-order.ready {
  background: #f0f1c0;
  border-color: #4d743e;
}
.market-ribbons,
.buyer-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.buyer-prize {
  font-weight: bold;
  color: #624529;
}
.market-ribbon {
  --paint: #c47635;
  background: var(--paint);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e4ad68;
  position: relative;
  margin-bottom: 6px;
  isolation: isolate;
}
.market-ribbon.rose {
  --paint: #bb6164;
}
.market-ribbon.indigo {
  --paint: #747eaa;
}
.market-ribbon::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -8px;
  left: 4px;
  right: 4px;
  height: 10px;
  background: var(--paint);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 63%, 0 100%);
}
.market-ribbon img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .celebration:has(#buyer-prize:not([hidden])) {
    gap: 0;
  }
  .buyer-prize .market-ribbon {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 420px) {
  .stage[data-phase="complete"] {
    min-height: 258px;
  }
}

.scene-object.home {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 39px;
  padding: 2px 7px;
  border: 2px solid #fff2bd;
  background: #fff6da;
  color: #3f582f;
  border-radius: 24px;
  box-shadow: 0 2px 5px #50341b75;
  font-size: clamp(18px, 2.3vw, 27px);
  line-height: 1;
  z-index: 3;
}
.scene-object.home[hidden] {
  display: none;
}
.scene-object.home img {
  width: 35px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
}
.scene-object.home.recipe-ready {
  outline: 3px solid #e8ae3e;
}

.stage #bouquet {
  position: absolute;
  top: 2%;
  left: 2%;
  width: 54px;
  height: 43px;
  z-index: 5;
  margin: 0;
  border-radius: 12px;
  background: #fff5d7;
}
.stage[data-phase="meadow"] .field-recipe {
  left: calc(2% + 54px);
  min-height: 43px;
  align-items: center;
  border-radius: 0 12px 12px 0;
}
.stage #bouquet .basket-weave {
  max-width: 48px;
}
.guide [hidden],
.wallet[hidden] {
  display: none;
}
