#unlockModal.material-level-modal:not(.hidden) {
  display: flex;
}
#unlockModal.material-level-modal {
  flex-direction: column;
  --xhs-height:calc(100% - 28px);
  height: calc(100% - 28px);
  max-height: calc(100% - 28px);
  padding: 24px 18px 28px;
  overflow: hidden;
  background: #fff4df;
  color: #604531;
}
#unlockModal .material-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c49a71 transparent;
  padding: 0 6px 12px;
  border-radius: 16px;
}
#unlockModal .material-shop-note {
  display: flex;
  align-items: center;
  justify-content: center;
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
  min-height: 72px;
  margin: 2px 0 12px;
  border-bottom: 2px dashed #d2b791;
  background:
    radial-gradient(
      ellipse at center,
      #ffe4b9,
      transparent 72%);
}
#unlockModal .material-shop-note img {
  --xhs-width:62px;
  width: 62px;
  --xhs-height:65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #82583c30);
}
#unlockModal .material-shop-note span {
  font-family: "Xiaoman Rounded", sans-serif;
  font-size: 21px;
  color: #855035;
  text-align: left;
}
#unlockModal .material-shop-note small {
  display: block;
  margin-top: 5px;
  font-family: inherit;
  font-size: 11px;
  color: #8a684d;
}
#unlockModal #unlockTitle {
  align-self: center;
  margin: 0;
  font-family:
    "Xiaoman Rounded",
    "YouYuan",
    sans-serif;
  font-size: var(--xhs-math-33);
  font-size: clamp(28px, 7.6vw, 36px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #a66a3b;
  -webkit-text-stroke: 4px #fff4cb;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #75462e, 0 5px 0 #d8b280;
  --xhs-transform:rotate(-2deg);
  transform: rotate(-2deg);
}
#unlockModal #researchLevel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 16px;
  border: 2px solid #bc8b55;
  border-radius: 14px 17px 13px 16px;
  background: linear-gradient(#fff8d7, #efd49d);
  box-shadow: inset 0 2px #fffdf0, 0 3px #b58a5d;
  font-size: 24px;
  line-height: 1.25;
  color: #795033;
  text-shadow: 0 1px #fff9e5;
}
#unlockModal.material-level-modal .research-stats {
  margin: 8px 0 14px;
}
#unlockModal .research-stats #recipeBook {
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid #af9271;
  border-radius: 14px;
  background: linear-gradient(#fffdf1, #f4dfbb);
  font-size: 14px;
  color: #775438;
  box-shadow: 0 3px #d2b28d;
}
#unlockModal.material-level-modal .research-xp {
  font-size: 12px;
}
#unlockModal.material-level-modal #researchMessage {
  padding: 8px 6px;
  border-radius: 10px;
  background: #f5e8cc;
  font-size: 12px;
}
#unlockModal .material-machines {
  margin: 12px 0 4px;
  padding: 10px 6px;
  border-top: 2px dashed #d2b791;
}
#unlockModal.material-level-modal .modal-head {
  position: relative;
  top: auto;
  flex: none;
  align-items: center;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
  min-height: 60px;
  padding: 0 4px 12px;
  margin: 0 0 6px;
  background: transparent;
}
#unlockModal .modal-head .close-btn {
  flex: none;
  --xhs-width:44px;
  width: 44px;
  --xhs-height:44px;
  height: 44px;
}
#unlockModal #ingredientShelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  --xhs-row-gap:12px;
  --xhs-column-gap:9px;
  grid-gap: 12px 9px;
  gap: 12px 9px;
  padding: 8px 4px 18px;
  overflow: visible;
}
#unlockModal .menu-material {
  position: relative;
  min-width: 0;
  min-height: 154px;
  padding: 10px 6px 8px;
  background: linear-gradient(#fffdf2, #f5dfb8);
  border: 2px solid #c99d6e;
  border-radius: 16px;
  box-shadow: inset 0 3px 0 #fffdf5, 0 4px 5px rgba(138, 90, 48, .15);
  color: #604531;
  touch-action: manipulation;
  cursor: pointer;
  --xhs-row-gap:3px;
  --xhs-column-gap:3px;
  grid-gap: 3px;
  gap: 3px;
}
#unlockModal .menu-material .material-art {
  display: flex;
  align-items: center;
  justify-content: center;
  --xhs-width:100%;
  width: 100%;
  --xhs-height:66px;
  height: 66px;
  background: #f4e4cb;
  border-radius: 50% 50% 42% 42%;
  box-shadow: inset 0 -3px 5px rgba(202, 167, 128, .22);
}
#unlockModal .menu-material .material-art img {
  --xhs-width:70px;
  width: 70px;
  --xhs-height:64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #79523530);
}
#unlockModal .menu-material b {
  font-size: 15px;
  line-height: 1.4;
}
#unlockModal .menu-material small {
  font-size: 12px;
  color: #74523b;
  white-space: normal;
}
#unlockModal .menu-material .material-price {
  display: flex;
  align-items: center;
  justify-content: center;
  --xhs-row-gap:4px;
  --xhs-column-gap:4px;
  grid-gap: 4px;
  gap: 4px;
  min-height: 25px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#unlockModal .menu-material .material-price img {
  --xhs-width:21px;
  width: 21px;
  --xhs-height:21px;
  height: 21px;
  filter: none;
}
#unlockModal .menu-material.undiscovered {
  background: #ede6db;
  border-color: #c3b7a7;
  box-shadow: inset 0 2px 0 #fff9ef;
  color: #6a6054;
  cursor: default;
}
#unlockModal .menu-material.undiscovered .material-art {
  background: #ddd5c9;
}
#unlockModal .menu-material.undiscovered .material-art img {
  filter: grayscale(1);
  opacity: .5;
}
#unlockModal .menu-material.undiscovered .material-price {
  font-size: 12px;
  font-weight: 600;
}
#unlockModal .menu-material:focus,
.menu-price-sheet button:focus,
.menu-price-sheet input:focus {
  outline: 3px solid #527951;
  outline-offset: 3px;
}
#unlockModal .menu-material:focus-visible,
.menu-price-sheet button:focus-visible,
.menu-price-sheet input:focus-visible {
  outline: 3px solid #527951;
  outline-offset: 3px;
}
#unlockModal .menu-material:not(.undiscovered):active {
  --xhs-transform:translateY(2px);
  transform: translateY(2px);
}
.menu-price-sheet {
  box-sizing: border-box;
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  inset: auto 0 0;
  margin: 0 auto;
  --xhs-width:var(--xhs-local-74);
  width: var(--xhs-local-74);
  width: min(100%, 480px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  border: 3px solid #caa16f;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px var(--xhs-local-75);
  padding: 24px 22px max(24px, var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));
  background: #fff5df;
  color: #604531;
  box-shadow: 0 -8px 30px rgba(80, 50, 29, .19);
  font-family: inherit;
}
.menu-price-sheet::backdrop {
  background: rgba(62, 45, 40, .42);
}
.menu-price-sheet[open] {
  animation: menu-sheet-in .22s ease-out;
}
.menu-price-sheet form {
  display: flex;
  flex-direction: column;
  align-items: center;
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
}
.menu-price-sheet #menuPriceArt {
  --xhs-width:90px;
  width: 90px;
  --xhs-height:88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #79523530);
}
.menu-price-sheet h2 {
  margin: 0;
  font-size: 24px;
  font-family: inherit;
}
.menu-price-sheet p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.menu-price-sheet label {
  font-size: 16px;
}
.menu-price-sheet output {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #88511d;
}
.menu-price-sheet #menuPriceLabel {
  font-size: 13px;
  color: #4c673c;
}
.menu-price-sheet input {
  --xhs-width:100%;
  width: 100%;
  --xhs-height:44px;
  height: 44px;
  accent-color: #74905b;
  cursor: pointer;
}
.price-limits {
  display: flex;
  justify-content: space-between;
  --xhs-width:100%;
  width: 100%;
  font-size: 13px;
}
.price-actions {
  display: flex;
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
  --xhs-width:100%;
  width: 100%;
  margin-top: 8px;
}
.menu-price-sheet button {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid #b78e63;
  border-radius: 12px;
  background: #fffbef;
  color: #604531;
  padding: 8px 12px;
}
.price-actions button {
  flex: 1;
}
.price-actions #menuPriceApply {
  background: #5c7845;
  border-color: #5c7845;
  color: #fffdf1;
  box-shadow: 0 3px 5px rgba(53, 75, 48, .15);
}
.menu-price-sheet .price-close {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 44px;
  font-size: 24px;
  padding: 2px;
}
@keyframes menu-sheet-in {
  from {
    --xhs-transform:translateY(32px);
    transform: translateY(32px);
    opacity: .6;
  }
  to {
    --xhs-transform:translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 350px) {
  #unlockModal #ingredientShelf {
    --xhs-row-gap:10px;
    --xhs-column-gap:6px;
    grid-gap: 10px 6px;
    gap: 10px 6px;
  }
  #unlockModal .menu-material {
    min-height: 142px;
    padding-left: 3px;
    padding-right: 3px;
    padding-inline: 3px;
  }
  #unlockModal .menu-material b {
    font-size: 13px;
  }
  #unlockModal .menu-material .material-art {
    --xhs-height:58px;
    height: 58px;
  }
  #unlockModal .menu-material .material-art img {
    --xhs-height:56px;
    height: 56px;
    --xhs-width:60px;
    width: 60px;
  }
  .menu-price-sheet {
    padding: 18px 16px;
  }
  .menu-price-sheet #menuPriceArt {
    --xhs-height:66px;
    height: 66px;
    --xhs-width:70px;
    width: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-price-sheet[open] {
    animation: none;
  }
}
@media (max-width: 350px) {
  #unlockModal.material-level-modal {
    padding: 20px 12px 24px;
  }
  #unlockModal .material-scroll {
    padding-left: 4px;
    padding-right: 4px;
    padding-inline: 4px;
  }
  #unlockModal .material-shop-note {
    --xhs-row-gap:4px;
    --xhs-column-gap:4px;
    grid-gap: 4px;
    gap: 4px;
  }
  #unlockModal .material-shop-note span {
    font-size: 18px;
  }
  #unlockModal .material-shop-note small {
    font-size: 10px;
  }
}
